Files
vps_web/static/css/forum.css

1226 lines
22 KiB
CSS
Raw Normal View History

2026-02-10 11:07:04 +08:00
.forum-page {
background: var(--bg);
}
.forum-header {
position: sticky;
top: 0;
z-index: 100;
background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
2026-02-09 22:36:32 +08:00
border-bottom: 1px solid var(--border);
2026-02-10 11:07:04 +08:00
padding: 1rem 1.5rem;
position: relative;
overflow: hidden;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, var(--accent), var(--green), var(--accent));
opacity: 0.8;
}
.forum-header-inner {
max-width: 1200px;
2026-02-09 22:36:32 +08:00
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
2026-02-10 11:07:04 +08:00
.forum-header-left {
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 0;
}
.forum-logo {
2026-02-10 13:48:58 +08:00
display: inline-flex;
align-items: center;
gap: 0.45rem;
text-decoration: none;
color: var(--text);
min-width: 0;
}
.forum-logo img {
width: 34px;
height: 34px;
border-radius: 9px;
flex-shrink: 0;
}
.forum-logo span {
2026-02-09 22:36:32 +08:00
font-family: var(--font-mono);
2026-02-10 13:48:58 +08:00
font-size: 1.05rem;
2026-02-09 22:36:32 +08:00
font-weight: 700;
2026-02-10 13:48:58 +08:00
letter-spacing: -0.01em;
white-space: nowrap;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-primary-nav {
2026-02-09 22:36:32 +08:00
display: flex;
align-items: center;
2026-02-10 11:07:04 +08:00
gap: 0.5rem;
flex-wrap: wrap;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-primary-nav a {
color: var(--text-muted);
2026-02-09 22:36:32 +08:00
text-decoration: none;
font-size: 0.9rem;
2026-02-10 11:07:04 +08:00
padding: 0.3rem 0.5rem;
border-radius: 6px;
transition: var(--transition);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-primary-nav a:hover,
.forum-primary-nav a.active {
color: var(--accent);
background: var(--accent-glow);
}
.forum-header-right {
display: flex;
align-items: center;
gap: 0.7rem;
flex-wrap: wrap;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-user-chip {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.6rem;
border-radius: 999px;
border: 1px solid var(--border);
background: var(--bg-elevated);
2026-02-09 22:36:32 +08:00
color: var(--text-muted);
font-size: 0.85rem;
}
2026-02-10 11:07:04 +08:00
.forum-link {
color: var(--accent);
text-decoration: none;
font-size: 0.9rem;
padding: 0.3rem 0.5rem;
border-radius: 6px;
transition: var(--transition);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-link:hover {
background: var(--accent-glow);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-shell {
max-width: 1200px;
margin: 0 auto;
padding: 1.5rem;
width: 100%;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-topline {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 0.9rem;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-tools {
margin-bottom: 0.9rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.forum-search-form {
2026-02-09 22:36:32 +08:00
display: flex;
align-items: center;
2026-02-10 11:07:04 +08:00
gap: 0.55rem;
flex-wrap: wrap;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-search-form input[type="text"] {
min-width: 240px;
flex: 1;
border: 1.5px solid var(--border);
border-radius: 6px;
padding: 0.5rem 0.62rem;
font-size: 0.88rem;
color: var(--text);
background: var(--bg-card);
transition: var(--transition);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-search-form input[type="text"]:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
.category-bar {
display: flex;
align-items: center;
gap: 0.48rem;
flex-wrap: wrap;
}
.category-chip {
display: inline-flex;
align-items: center;
gap: 0.42rem;
text-decoration: none;
color: var(--text-muted);
2026-02-09 22:36:32 +08:00
border: 1px solid var(--border);
2026-02-10 11:07:04 +08:00
border-radius: 999px;
padding: 0.25rem 0.56rem;
background: var(--bg-card);
font-size: 0.78rem;
transition: var(--transition);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.category-chip strong {
font-family: var(--font-mono);
font-size: 0.72rem;
2026-02-09 22:36:32 +08:00
color: var(--text);
}
2026-02-10 11:07:04 +08:00
.category-chip.active,
.category-chip:hover {
2026-02-09 22:36:32 +08:00
color: var(--accent);
2026-02-10 11:07:04 +08:00
border-color: var(--accent);
background: var(--accent-glow);
}
.forum-actions {
display: flex;
align-items: center;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-tabs {
2026-02-09 22:36:32 +08:00
display: flex;
2026-02-10 11:07:04 +08:00
gap: 0.45rem;
2026-02-09 22:36:32 +08:00
flex-wrap: wrap;
2026-02-10 11:07:04 +08:00
}
.forum-tabs a {
text-decoration: none;
2026-02-09 22:36:32 +08:00
color: var(--text-muted);
2026-02-10 11:07:04 +08:00
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.4rem 0.62rem;
font-size: 0.82rem;
font-family: var(--font-mono);
transition: var(--transition);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-tabs a.active,
.forum-tabs a:hover {
color: var(--accent);
border-color: var(--accent);
background: var(--accent-glow);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-btn-primary,
.forum-btn-muted {
2026-02-09 22:36:32 +08:00
display: inline-block;
text-decoration: none;
border-radius: 6px;
2026-02-10 11:07:04 +08:00
font-size: 0.86rem;
font-weight: 600;
padding: 0.52rem 0.86rem;
2026-02-09 22:36:32 +08:00
cursor: pointer;
2026-02-10 11:07:04 +08:00
transition: var(--transition);
}
.forum-btn-primary {
border: none;
color: #fff;
background: var(--accent);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-btn-primary:hover {
2026-02-09 22:36:32 +08:00
background: var(--accent-dim);
2026-02-10 11:07:04 +08:00
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-btn-muted {
border: 1px solid var(--border);
2026-02-09 22:36:32 +08:00
color: var(--text);
2026-02-10 11:07:04 +08:00
background: var(--bg-card);
}
.forum-btn-muted:hover {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-glow);
}
.forum-btn-muted.active {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-glow);
}
.forum-btn-danger {
display: inline-block;
border: 1px solid rgba(220, 38, 38, 0.45);
color: var(--red);
background: rgba(220, 38, 38, 0.08);
border-radius: 6px;
font-size: 0.86rem;
font-weight: 600;
padding: 0.52rem 0.86rem;
cursor: pointer;
transition: var(--transition);
}
.forum-btn-danger:hover {
background: rgba(220, 38, 38, 0.15);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 300px;
gap: 1rem;
align-items: start;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.topic-stream,
.side-card,
.topic-post-card {
2026-02-09 22:36:32 +08:00
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
2026-02-10 11:07:04 +08:00
box-shadow: var(--shadow);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.topic-head {
display: grid;
grid-template-columns: minmax(0, 1fr) 90px 90px 110px;
padding: 0.7rem 0.92rem;
font-size: 0.75rem;
color: var(--text-muted);
background: var(--bg-elevated);
border-bottom: 1px solid var(--border);
text-transform: uppercase;
letter-spacing: 0.04em;
font-family: var(--font-mono);
2026-02-09 22:36:32 +08:00
}
2026-02-10 13:48:58 +08:00
.topic-col-mini {
text-align: center;
}
2026-02-10 11:07:04 +08:00
.topic-list {
list-style: none;
margin: 0;
padding: 0;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.topic-result {
2026-02-09 22:36:32 +08:00
color: var(--text-muted);
2026-02-10 11:07:04 +08:00
font-size: 0.78rem;
2026-02-10 13:48:58 +08:00
}
.topic-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.58rem 0.92rem;
border-top: 1px solid var(--border);
2026-02-10 11:07:04 +08:00
background: var(--bg-card);
2026-02-09 22:36:32 +08:00
}
2026-02-10 13:48:58 +08:00
.page-size-form {
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.78rem;
color: var(--text-muted);
}
.page-size-form select {
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg-elevated);
color: var(--text);
font-size: 0.82rem;
line-height: 1.2;
padding: 0.26rem 0.42rem;
cursor: pointer;
}
.page-size-form select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
2026-02-10 11:07:04 +08:00
.topic-row {
display: grid;
grid-template-columns: minmax(0, 1fr) 90px 90px 110px;
align-items: center;
min-height: 74px;
border-bottom: 1px solid var(--border);
transition: var(--transition);
2026-02-10 13:48:58 +08:00
padding: 0 0.92rem;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.topic-row:last-child {
border-bottom: none;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.topic-row:hover {
background: var(--bg-elevated);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.topic-main {
2026-02-09 22:36:32 +08:00
display: flex;
align-items: center;
2026-02-10 11:07:04 +08:00
gap: 0.68rem;
min-width: 0;
2026-02-10 13:48:58 +08:00
padding: 0.68rem 0;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.topic-avatar {
width: 34px;
height: 34px;
border-radius: 999px;
background: var(--accent-glow);
color: var(--accent);
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-mono);
font-size: 0.82rem;
font-weight: 700;
flex-shrink: 0;
}
.topic-content {
min-width: 0;
}
.topic-title {
display: block;
color: var(--text);
text-decoration: none;
font-size: 0.96rem;
font-weight: 600;
line-height: 1.35;
margin-bottom: 0.26rem;
word-break: break-word;
}
.topic-title:hover {
color: var(--accent);
}
.topic-meta {
display: flex;
align-items: center;
gap: 0.45rem;
flex-wrap: wrap;
color: var(--text-muted);
font-size: 0.76rem;
}
.topic-category {
display: inline-block;
border-radius: 999px;
background: var(--accent-glow);
color: var(--accent);
border: 1px solid rgba(3, 105, 161, 0.2);
padding: 0.1rem 0.42rem;
font-size: 0.7rem;
font-weight: 600;
line-height: 1.45;
}
.topic-flag {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
padding: 0.08rem 0.45rem;
font-size: 0.68rem;
font-weight: 700;
line-height: 1.5;
margin-right: 0.25rem;
border: 1px solid transparent;
}
.topic-flag.flag-pinned {
color: var(--accent);
border-color: rgba(3, 105, 161, 0.28);
background: rgba(3, 105, 161, 0.08);
}
.topic-flag.flag-featured {
color: #b45309;
border-color: rgba(180, 83, 9, 0.35);
background: rgba(245, 158, 11, 0.12);
}
.topic-flag.flag-locked {
2026-02-09 22:36:32 +08:00
color: var(--red);
2026-02-10 11:07:04 +08:00
border-color: rgba(220, 38, 38, 0.35);
background: rgba(220, 38, 38, 0.08);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.topic-stat {
text-align: center;
font-family: var(--font-mono);
font-size: 0.82rem;
color: var(--text-muted);
padding: 0 0.2rem;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.topic-activity {
color: var(--accent);
}
.topic-empty {
padding: 1rem;
2026-02-09 22:36:32 +08:00
color: var(--text-muted);
2026-02-10 11:07:04 +08:00
font-size: 0.9rem;
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.forum-pagination {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
padding: 0.78rem 0.92rem;
border-top: 1px solid var(--border);
}
.page-link {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 34px;
height: 30px;
padding: 0 0.55rem;
text-decoration: none;
border: 1px solid var(--border);
border-radius: 6px;
2026-02-09 22:36:32 +08:00
color: var(--text-muted);
2026-02-10 11:07:04 +08:00
background: var(--bg-card);
font-size: 0.8rem;
transition: var(--transition);
2026-02-09 22:36:32 +08:00
}
2026-02-10 11:07:04 +08:00
.page-link:hover {
2026-02-09 22:36:32 +08:00
color: var(--accent);
2026-02-10 11:07:04 +08:00
border-color: var(--accent);
background: var(--accent-glow);
}
.page-link.active {
color: #fff;
border-color: var(--accent);
background: var(--accent);
}
.page-link.disabled {
color: var(--text-muted);
opacity: 0.5;
}
.forum-sidebar {
display: flex;
flex-direction: column;
gap: 0.8rem;
}
.side-card {
padding: 0.8rem 0.82rem;
}
.side-card h3 {
margin: 0 0 0.65rem 0;
font-size: 0.83rem;
text-transform: uppercase;
letter-spacing: 0.03em;
color: var(--text-muted);
font-family: var(--font-mono);
}
.side-stats {
display: grid;
gap: 0.46rem;
}
.side-stats > div {
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid var(--border);
border-radius: 7px;
padding: 0.45rem 0.55rem;
background: var(--bg);
}
.side-stats span {
color: var(--text-muted);
font-size: 0.8rem;
}
.side-stats strong {
color: var(--text);
font-family: var(--font-mono);
font-size: 0.9rem;
}
.side-list {
list-style: none;
margin: 0;
padding: 0;
}
.side-list li {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px dashed var(--border);
padding: 0.36rem 0;
gap: 0.4rem;
}
.side-list li:last-child {
border-bottom: none;
}
.side-list span {
color: var(--text);
font-size: 0.82rem;
}
.side-list strong {
font-family: var(--font-mono);
color: var(--text-muted);
font-size: 0.8rem;
}
.side-empty {
margin: 0;
color: var(--text-muted);
font-size: 0.82rem;
}
.topic-post-card {
padding: 0.96rem 1.02rem;
margin-bottom: 0.82rem;
}
.topic-post-card h1 {
margin: 0.26rem 0 0.55rem;
font-size: 1.22rem;
line-height: 1.35;
}
.topic-post-card h2 {
margin: 0 0 0.65rem;
font-size: 1rem;
}
.topic-post-head {
display: flex;
flex-wrap: wrap;
gap: 0.4rem 0.62rem;
color: var(--text-muted);
font-size: 0.78rem;
}
.topic-post-author {
color: var(--text-muted);
font-size: 0.82rem;
margin-bottom: 0.74rem;
}
.topic-action-bar {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
margin-bottom: 0.72rem;
}
.topic-post-content {
2026-02-10 13:48:58 +08:00
white-space: normal;
2026-02-10 11:07:04 +08:00
color: var(--text);
line-height: 1.66;
font-size: 0.95rem;
}
.comment-form .form-group,
.post-form .form-group {
margin-bottom: 0.76rem;
}
.comment-form label,
.post-form label {
display: block;
margin-bottom: 0.3rem;
color: var(--text-muted);
font-size: 0.82rem;
}
2026-02-10 13:48:58 +08:00
.form-help {
display: block;
margin-top: 0.35rem;
color: var(--text-muted);
font-size: 0.76rem;
}
2026-02-10 11:07:04 +08:00
.comment-form textarea,
.post-form input,
.post-form textarea,
.post-form select {
width: 100%;
border: 1.5px solid var(--border);
border-radius: 7px;
padding: 0.56rem 0.62rem;
font-size: 0.92rem;
color: var(--text);
background: var(--bg-card);
transition: var(--transition);
}
.comment-form textarea:focus,
.post-form input:focus,
.post-form textarea:focus,
.post-form select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
.post-form textarea,
.comment-form textarea {
min-height: 120px;
resize: vertical;
}
.form-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.55rem;
}
.comment-stream {
list-style: none;
margin: 0.82rem 0 0;
padding: 0;
}
.comment-row {
display: flex;
gap: 0.68rem;
padding: 0.65rem 0;
border-bottom: 1px solid var(--border);
}
.comment-row:last-child {
border-bottom: none;
}
.comment-avatar {
width: 30px;
height: 30px;
border-radius: 999px;
background: var(--accent-glow);
color: var(--accent);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.76rem;
font-family: var(--font-mono);
font-weight: 700;
flex-shrink: 0;
}
.comment-body {
min-width: 0;
}
.comment-head {
display: flex;
gap: 0.7rem;
flex-wrap: wrap;
color: var(--text-muted);
font-size: 0.76rem;
}
.comment-author {
color: var(--text);
font-weight: 600;
}
.comment-content {
2026-02-10 13:48:58 +08:00
white-space: normal;
2026-02-10 11:07:04 +08:00
margin-top: 0.32rem;
color: var(--text);
line-height: 1.58;
font-size: 0.9rem;
}
2026-02-10 13:48:58 +08:00
.md-content p {
margin: 0 0 0.7rem;
}
.md-content p:last-child {
margin-bottom: 0;
}
.md-content ul,
.md-content ol {
margin: 0.25rem 0 0.75rem 1.25rem;
padding: 0;
}
.md-content li + li {
margin-top: 0.22rem;
}
.md-content blockquote {
margin: 0.75rem 0;
padding: 0.45rem 0.8rem;
border-left: 3px solid var(--accent);
background: var(--accent-glow);
color: var(--text-muted);
}
.md-content a {
color: var(--accent);
text-decoration: underline;
text-underline-offset: 2px;
}
.md-content pre {
margin: 0.75rem 0;
padding: 0.72rem 0.82rem;
border-radius: 10px;
border: 1px solid var(--border);
background: #0f172a;
color: #e2e8f0;
overflow-x: auto;
white-space: pre;
line-height: 1.45;
}
.md-content code {
font-family: var(--font-mono);
font-size: 0.86em;
background: rgba(2, 132, 199, 0.12);
border: 1px solid rgba(2, 132, 199, 0.18);
border-radius: 5px;
padding: 0.08rem 0.32rem;
}
.md-content pre code {
background: transparent;
border: none;
border-radius: 0;
padding: 0;
color: inherit;
}
2026-02-10 11:07:04 +08:00
.comment-actions {
margin-top: 0.44rem;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.45rem;
}
.comment-actions a,
.btn-link-delete {
color: var(--accent);
text-decoration: none;
border: none;
background: none;
padding: 0;
margin: 0;
font-size: 0.78rem;
cursor: pointer;
}
.btn-link-delete {
color: var(--red);
}
.report-form-inline {
display: inline-flex;
align-items: center;
gap: 0.4rem;
flex-wrap: wrap;
}
.report-form-inline select {
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg-card);
color: var(--text);
font-size: 0.78rem;
padding: 0.28rem 0.36rem;
}
.post-editor-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 280px;
gap: 1rem;
align-items: start;
}
.post-editor {
margin-bottom: 0;
}
.editor-subtitle {
margin: 0 0 0.86rem;
color: var(--text-muted);
font-size: 0.86rem;
}
.post-helper {
position: sticky;
top: 82px;
}
.helper-list {
margin: 0;
padding-left: 1rem;
color: var(--text-muted);
font-size: 0.82rem;
line-height: 1.65;
}
.auth-panel {
max-width: 520px;
margin: 1.5rem auto;
}
.profile-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 300px;
gap: 1rem;
align-items: start;
}
.profile-main {
min-width: 0;
}
.profile-summary {
margin-bottom: 0.85rem;
}
.profile-stat-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.55rem;
}
.profile-stat-grid > div {
border: 1px solid var(--border);
border-radius: 7px;
background: var(--bg);
padding: 0.5rem 0.55rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.profile-stat-grid span {
color: var(--text-muted);
font-size: 0.82rem;
}
.profile-stat-grid strong {
color: var(--text);
font-family: var(--font-mono);
font-size: 0.9rem;
}
.profile-tabs {
margin-bottom: 0.8rem;
}
.profile-list {
list-style: none;
margin: 0;
padding: 0;
}
.profile-row {
display: flex;
justify-content: space-between;
gap: 0.8rem;
padding: 0.72rem 0;
border-bottom: 1px solid var(--border);
}
.profile-row:last-child {
border-bottom: none;
}
.profile-row-main {
min-width: 0;
}
.profile-row-actions {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
flex-shrink: 0;
}
.profile-row-actions form {
margin: 0;
}
.profile-row-actions a {
color: var(--accent);
text-decoration: none;
font-size: 0.8rem;
}
.settings-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.9rem;
}
.settings-grid form {
border: 1px solid var(--border);
border-radius: 9px;
padding: 0.75rem 0.8rem;
background: var(--bg-card);
}
.settings-grid h3 {
margin: 0 0 0.65rem 0;
font-size: 0.95rem;
}
.notification-topline {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.8rem;
flex-wrap: wrap;
margin-bottom: 0.7rem;
}
.notification-list {
list-style: none;
margin: 0;
padding: 0;
}
.notification-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 0.85rem;
padding: 0.72rem 0;
border-bottom: 1px solid var(--border);
}
.notification-row:last-child {
border-bottom: none;
}
.notification-row.unread {
background: rgba(3, 105, 161, 0.03);
border-radius: 8px;
padding-left: 0.55rem;
padding-right: 0.55rem;
}
.notification-body {
min-width: 0;
}
.notification-head {
display: flex;
align-items: center;
gap: 0.42rem;
flex-wrap: wrap;
color: var(--text-muted);
font-size: 0.76rem;
margin-bottom: 0.3rem;
}
.notification-message {
color: var(--text);
line-height: 1.58;
font-size: 0.9rem;
word-break: break-word;
}
.notification-actions {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
flex-shrink: 0;
}
.notification-actions form {
margin: 0;
}
.forum-primary-nav .nav-link-with-badge,
.forum-header-right .nav-link-with-badge {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.form-error {
margin: 0 0 0.72rem 0;
color: var(--red);
font-size: 0.84rem;
}
.form-success {
margin: 0 0 0.72rem 0;
color: var(--green);
font-size: 0.84rem;
}
@media (max-width: 980px) {
.forum-layout,
.post-editor-layout,
.profile-layout {
grid-template-columns: 1fr;
}
.post-helper {
position: static;
}
.forum-sidebar {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.7rem;
}
.forum-search-form input[type="text"] {
min-width: 180px;
}
}
@media (max-width: 768px) {
.forum-header {
padding: 1.5rem 1rem;
}
.forum-header-inner {
flex-direction: column;
align-items: flex-start;
}
.forum-header-left {
width: 100%;
justify-content: space-between;
flex-wrap: wrap;
}
.forum-header-right {
width: 100%;
justify-content: flex-start;
}
2026-02-10 13:48:58 +08:00
.forum-logo img {
width: 30px;
height: 30px;
}
.forum-logo span {
font-size: 0.96rem;
2026-02-10 11:07:04 +08:00
}
.forum-shell {
padding: 1.5rem 1rem;
}
.forum-topline {
flex-direction: column;
align-items: stretch;
}
.forum-actions {
justify-content: flex-start;
}
.forum-search-form {
align-items: stretch;
}
.forum-search-form input[type="text"] {
min-width: 0;
width: 100%;
}
2026-02-10 13:48:58 +08:00
.topic-footer {
flex-direction: column;
align-items: flex-start;
}
2026-02-10 11:07:04 +08:00
.topic-head {
grid-template-columns: minmax(0, 1fr) 64px 64px;
}
.topic-head .topic-col-mini:last-child {
display: none;
}
.topic-row {
grid-template-columns: minmax(0, 1fr) 64px 64px;
}
.topic-row .topic-activity {
display: none;
}
.forum-sidebar {
grid-template-columns: 1fr;
}
.profile-stat-grid,
.settings-grid {
grid-template-columns: 1fr;
}
.profile-row {
flex-direction: column;
align-items: flex-start;
}
.profile-row-actions {
gap: 0.65rem;
}
}
@media (prefers-reduced-motion: reduce) {
* {
transition: none !important;
animation: none !important;
}
2026-02-09 22:36:32 +08:00
}