/* 静态页共用（上传规则 / 论坛） —— 按用户最新截图复刻 */
.static-main { padding-top: 20px; }

/* ===== 上传规则页 ===== */
.upload-wrap { max-width: 960px; margin: 0 auto; padding: 0 20px 40px; }
.upload-title {
    margin: 18px 0 22px;
    text-align: center;
    color: #e8e8e8;
    font-size: 26px;
    font-weight: 600;
}
.upload-intro {
    margin: 0 0 18px;
    color: #c9ccd0;
    font-size: 14px;
    line-height: 1.8;
    text-indent: 2em;
}
.upload-section-link {
    border-bottom: 1px solid #2e2e2e;
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.upload-section-link a { color: #4a9ad9; font-size: 14px; font-weight: 600; }
.upload-section-link a:hover { text-decoration: underline; }
.upload-warn-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #242424;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 18px 22px;
    margin-bottom: 20px;
    color: #c9ccd0;
    font-size: 13px;
    line-height: 1.9;
}
.upload-warn-box b { color: #e8e8e8; }
.upload-warn-ico { color: #ddd; flex: 0 0 auto; display: flex; }
.upload-warn-ico svg { fill: currentColor; }
.upload-rules {
    margin: 0 0 14px;
    padding-left: 12px;
    color: #c9ccd0;
    font-size: 14px;
    line-height: 2.1;
    list-style: none;
    counter-reset: rule;
}
.upload-rules li { position: relative; padding-left: 20px; counter-increment: rule; }
.upload-rules li::before {
    content: counter(rule) '.';
    position: absolute;
    left: 0;
    color: #c9ccd0;
}
.warn-word { color: #d85050; }
.rule-more { color: #4a9ad9; margin-left: 6px; }
.rule-more:hover { text-decoration: underline; }
.upload-note { margin: 6px 0; color: #c9ccd0; font-size: 14px; line-height: 1.8; }
.upload-note a { color: #4a9ad9; }

/* ===== 论坛页 ===== */
.forum-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px 40px; }
.forum-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 16px;
}
.forum-heading-icon {
    display: flex;
    color: #e8a020;
    filter: drop-shadow(0 0 10px rgba(232, 160, 32, .5));
}
.forum-heading-icon svg { fill: currentColor; }
.forum-heading h1 { margin: 0; font-size: 26px; font-weight: 800; color: #f2f2f2; }

.forum-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.forum-main { flex: 1 1 auto; min-width: 0; }
.forum-side { flex: 0 0 276px; display: flex; flex-direction: column; gap: 14px; }

/* 版块组 */
.forum-group { margin-bottom: 18px; }
.forum-group-name {
    background: linear-gradient(180deg, #2e2e2e, #262626);
    border: 1px solid #3a3a3a;
    border-radius: 3px 3px 0 0;
    padding: 8px 12px;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
}
.forum-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-top: none;
}
.forum-row:hover { background: #222; }
.forum-row-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    background: linear-gradient(180deg, #d2a52f, #a8811f);
    border-radius: 3px;
    color: #1a1a1a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.forum-row-ico svg { fill: currentColor; }
.forum-row-info { flex: 1 1 auto; min-width: 0; }
.forum-row-title {
    color: #c9a12e;
    font-size: 14px;
    font-weight: 600;
}
.forum-row-title:hover { text-decoration: underline; color: #dcb63f; }
.forum-row-desc {
    margin: 3px 0 0;
    color: #8a8f94;
    font-size: 12px;
    line-height: 1.5;
}
.forum-row-counts {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #8a8f94;
    font-size: 12px;
    text-align: left;
    min-width: 64px;
}
.forum-row-counts b { color: #c9ccd0; font-weight: 400; }
.forum-row-last {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.forum-last-avatar, .forum-side-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 2px;
    background: #2a2a2a;
    color: #ddd;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.forum-side-thumb {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 2px;
    background: linear-gradient(135deg, #3d4a5a, #26303c);
}
.forum-last-meta, .forum-side-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.4;
}
.forum-last-meta a, .forum-side-meta a {
    color: #4a9ad9;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.forum-last-meta a:hover, .forum-side-meta a:hover { text-decoration: underline; }
.forum-arrow { color: #6a9cc8; font-style: normal; }
.forum-last-meta em, .forum-side-meta em {
    font-style: normal;
    color: #8a8f94;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 侧栏盒子 */
.forum-box {
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-radius: 3px;
    overflow: hidden;
}
.forum-box-head {
    background: linear-gradient(180deg, #2e2e2e, #262626);
    border-bottom: 1px solid #3a3a3a;
    padding: 8px 12px;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
}
.forum-search {
    display: flex;
    padding: 10px;
    gap: 6px;
}
.forum-search input {
    flex: 1;
    height: 32px;
    padding: 0 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    color: #ccc;
    font-size: 12px;
    outline: none;
}
.forum-search input:focus { border-color: #4a9ad9; }
.forum-search button {
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #2e2e2e, #262626);
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    color: #bbb;
    cursor: pointer;
}
.forum-search button:hover { color: #fff; }
.forum-search svg { fill: currentColor; }
.forum-side-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #262626;
}
.forum-side-item:last-child { border-bottom: none; }
.forum-side-item:hover { background: #222; }

@media (max-width: 900px) {
    .forum-layout { flex-direction: column; }
    .forum-side { flex: 1 1 auto; width: 100%; }
    .forum-row-last { display: none; }
}

/* ===== 论坛·版块线程列表页（wallhaven 展厅版式） ===== */
.forum-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 14px 0 6px;
    font-size: 13px;
}
.forum-crumbs a { color: #4a9ad9; display: inline-flex; align-items: center; }
.forum-crumbs a:hover { text-decoration: underline; }
.forum-crumbs svg { fill: currentColor; }
.forum-crumbs .crumb-sep { color: #6a6f74; }
.forum-crumbs .crumb-cur { color: #8a8f94; }
.forum-board-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 14px;
}
.forum-board-head h1 { margin: 0; font-size: 26px; font-weight: 800; color: #c9a12e; }

.thread-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px;
}
.thread-pager { display: flex; align-items: center; gap: 3px; }
.thread-pager a, .thread-pager span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    background: #232323;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    color: #c9ccd0;
    font-size: 13px;
}
.thread-pager .pg-ends { background: #1a1a1a; color: #7a7f84; }
.thread-pager a:hover { background: #2e2e2e; color: #fff; }
.btn-new-topic, .btn-reply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.btn-new-topic {
    background: linear-gradient(180deg, #1d6478, #134c5c);
    border: 1px solid #0e3d4a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-new-topic:hover { background: linear-gradient(180deg, #24758b, #175a6c); }
.btn-reply {
    background: linear-gradient(180deg, #3f8b46, #2c6b33);
    border: 1px solid #215428;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-reply:hover { background: linear-gradient(180deg, #4a9c52, #347a3c); }
.thread-actions { display: flex; align-items: center; gap: 8px; }

.thread-cols {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #2e2e2e, #262626);
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    padding: 7px 12px;
    color: #9aa0a6;
    font-size: 12px;
}
.thread-box-head {
    background: linear-gradient(180deg, #2e2e2e, #262626);
    border: 1px solid #3a3a3a;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    padding: 8px 12px;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
}
.thread-cols { border-radius: 0; }
.tc-subject { flex: 1 1 auto; min-width: 0; }
.tc-replies { flex: 0 0 64px; text-align: right; }
.tc-views { flex: 0 0 80px; text-align: right; }
.tc-last { flex: 0 0 190px; text-align: left; padding-left: 14px; }

.thread-row {
    display: flex;
    align-items: center;
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-top: none;
    padding: 9px 12px;
}
.thread-row:hover { background: #222; }
.thread-row:first-of-type { border-top: 1px solid #2e2e2e; }
.thread-subject { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.thread-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 3px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.thread-subject-meta { min-width: 0; line-height: 1.5; }
.thread-title {
    color: #c9a12e;
    font-size: 14px;
    font-weight: 600;
    display: inline;
}
.thread-title:hover { text-decoration: underline; color: #dcb63f; }
.thread-go { color: #3fa98f; font-style: normal; font-weight: 400; }
.thread-byline { display: block; color: #8a8f94; font-size: 12px; font-style: normal; }
.thread-byline a { color: #a8862c; }
.thread-byline a:hover { text-decoration: underline; }
.thread-pages { color: #4a9ad9; }
.thread-pages a { color: #4a9ad9; }
.thread-row > .tc-replies, .thread-row > .tc-views {
    color: #b8bdc2;
    font-size: 13px;
    text-align: right;
}
.thread-row .tc-last { display: flex; align-items: center; gap: 8px; min-width: 0; }
.thread-row .forum-last-avatar { width: 30px; height: 30px; font-size: 12px; }

/* ===== 论坛·帖子详情页 ===== */
.thread-head { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 4px; }
.thread-h1 { margin: 0; font-size: 28px; font-weight: 800; color: #c9a12e; line-height: 1.3; }
.thread-h1 .thread-go { color: #3fa98f; font-weight: 400; }
.thread-meta { color: #8a8f94; font-size: 12px; margin: 0 0 14px 46px; }
.thread-meta b { color: #c9ccd0; font-weight: 400; }

.post-row { display: flex; gap: 12px; margin-bottom: 10px; }
.post-avatar-col { flex: 0 0 56px; padding-top: 26px; }
.post-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
    padding: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.post-card {
    flex: 1 1 auto;
    min-width: 0;
    background: #1e1e1e;
    border: 1px solid #303030;
    border-radius: 3px;
}
.post-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid #2c2c2c;
    font-size: 13px;
}
.post-user { color: #4a9ad9; font-weight: 600; }
.post-user:hover { text-decoration: underline; }
.post-time { color: #8a8f94; font-style: normal; }
.post-new { color: #7fc75f; font-size: 12px; }
.post-quote { margin-left: auto; color: #7a7f84; font-size: 12px; }
.post-quote a { color: #8a8f94; }
.post-quote a:hover { color: #c9ccd0; }
.post-quote em { font-style: normal; color: #6a6f74; margin-left: 4px; }
.post-op-star { color: #e8a020; font-size: 13px; }
.post-body {
    padding: 12px 14px;
    color: #c9ccd0;
    font-size: 13px;
    line-height: 1.8;
}
.post-body p { margin: 0 0 10px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body ul { margin: 0 0 10px; padding: 0; list-style: none; }
.post-body ul li { position: relative; padding-left: 18px; margin: 4px 0; }
.post-body ul li::before { content: '▶'; position: absolute; left: 0; font-size: 10px; color: #9aa0a6; top: 5px; }
.post-body a { color: #3fa98f; }
.post-body a:hover { text-decoration: underline; }
.post-body a.mention { color: #4a9ad9; }
.post-img {
    display: block;
    max-width: 280px;
    width: 100%;
    height: 150px;
    border-radius: 3px;
    border: 1px solid #333;
    margin: 4px 0 10px;
}
.post-foot { color: #7a7f84; font-size: 12px; margin-top: 10px; }

@media (max-width: 900px) {
    .thread-cols { display: none; }
    .thread-row { flex-wrap: wrap; gap: 6px; }
    .thread-row > .tc-replies, .thread-row > .tc-views { flex: 0 0 auto; }
    .thread-row .tc-last { flex: 1 1 100%; padding-left: 0; }
    .post-avatar-col { flex: 0 0 44px; padding-top: 20px; }
    .post-avatar { width: 44px; height: 44px; }
}
