:root {
  --ink: #172220;
  --muted: #66736f;
  --paper: #f4f0e6;
  --surface: #fffdf7;
  --line: #dcd4c3;
  --river: #176b68;
  --river-dark: #0d4b49;
  --gold: #c78b39;
  --warning: #9a4b33;
  --shadow: 0 14px 35px rgba(37, 48, 44, .08);
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.7; }
body { margin: 0; background: radial-gradient(circle at top right, rgba(199,139,57,.12), transparent 30rem), var(--paper); }
a { color: var(--river-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: #a45f1f; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(220,212,195,.9); background: rgba(255,253,247,.93); backdrop-filter: blur(12px); }
.header-inner, .site-main, .site-footer { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50% 50% 46% 54%; color: white; background: var(--river); font-family: "Songti SC", STSong, serif; font-weight: 700; box-shadow: inset 0 -4px 0 rgba(0,0,0,.1); }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Songti SC", STSong, serif; font-size: 1.22rem; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: .74rem; letter-spacing: .06em; }
.primary-nav { display: flex; gap: 20px; font-size: .92rem; }
.primary-nav a { text-decoration: none; }
.site-main { min-height: calc(100vh - 180px); padding: 42px 0 64px; }
.site-footer { padding: 24px 0 40px; color: var(--muted); font-size: .84rem; border-top: 1px solid var(--line); }
.hero { padding: 40px; border-radius: 22px; background: linear-gradient(145deg, #0d4b49, #176b68 65%, #2b7d72); color: white; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero::after { content: "天河"; position: absolute; right: 3%; bottom: -36%; color: rgba(255,255,255,.06); font: 900 12rem/1 "Songti SC", serif; }
.eyebrow { margin: 0 0 6px; color: #d9bd84; font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 760px; font: 700 clamp(2rem, 5vw, 4.4rem)/1.15 "Songti SC", STSong, serif; letter-spacing: .04em; }
.hero-title-line { display: inline-block; }
.hero p { max-width: 670px; margin: 18px 0 0; color: rgba(255,255,255,.8); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 36px; }
.stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 8px 20px rgba(37,48,44,.04); }
.stat strong { display: block; color: var(--river-dark); font: 700 1.7rem/1.1 ui-monospace, SFMono-Regular, monospace; }
.stat span { color: var(--muted); font-size: .82rem; }
.stat-link { position: relative; color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.stat-link::after { content: "查看 →"; position: absolute; right: 16px; bottom: 12px; color: var(--river); font-size: .7rem; opacity: 0; transform: translateX(-4px); transition: opacity .18s ease, transform .18s ease; }
.stat-topics::after { content: "发现主题 →"; }
.stat-members::after { content: "进入群像 →"; }
.stat-link:hover, .stat-link:focus-visible { border-color: rgba(23,107,104,.45); color: inherit; outline: none; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,48,44,.1); }
.stat-link:hover::after, .stat-link:focus-visible::after { opacity: 1; transform: translateX(0); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 36px 0 14px; }
.section-heading h1, .section-heading h2 { margin: 0; font-family: "Songti SC", STSong, serif; }
.section-heading p { margin: 0; color: var(--muted); }
.category { margin: 0 0 28px; }
.category-title { display: flex; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--river); }
.category-title h2 { margin: 0; font: 700 1.35rem "Songti SC", STSong, serif; }
.forum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.forum-card { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; min-height: 116px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 20px rgba(37,48,44,.04); text-decoration: none; color: inherit; }
.forum-card:hover { border-color: var(--gold); color: inherit; transform: translateY(-1px); }
.forum-logo, .forum-logo-placeholder { width: 54px; height: 54px; border-radius: 13px; object-fit: cover; background: #d8e1dc; }
.forum-logo-placeholder { display: grid; place-items: center; color: var(--river); font: 700 1.2rem "Songti SC", serif; }
.forum-card h3 { margin: 0 0 3px; color: var(--river-dark); }
.forum-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.forum-count { color: var(--muted); font-size: .78rem; text-align: right; white-space: nowrap; }
.breadcrumb { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0 0 20px; padding: 5px 8px 5px 10px; border: 1px solid rgba(13,75,73,.14); border-radius: 12px; background: rgba(255,253,247,.76); color: var(--muted); font-size: .76rem; box-shadow: 0 5px 16px rgba(37,48,44,.045), inset 0 1px rgba(255,255,255,.8); backdrop-filter: blur(8px); }
.breadcrumb::before { content: ""; width: 7px; height: 7px; margin: 0 6px 0 1px; border: 2px solid rgba(13,75,73,.32); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(199,139,57,.1); }
.breadcrumb a, .breadcrumb > span:not(.breadcrumb-separator) { display: inline-flex; align-items: center; min-height: 25px; padding: 1px 7px; border-radius: 7px; color: inherit; line-height: 1.35; text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { background: rgba(23,107,104,.09); color: var(--river-dark); outline: none; }
.breadcrumb [aria-current="page"] { color: var(--river-dark); font-weight: 650; }
.breadcrumb-separator { padding: 0 1px; color: rgba(102,115,111,.48); font-size: 1.05rem; line-height: 1; }
.archive-note { padding: 12px 16px; border-left: 4px solid var(--gold); background: #fff8e8; color: #654a2c; border-radius: 0 9px 9px 0; font-size: .87rem; }
.topic-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.topic-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 96px; gap: 18px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.topic-row:last-child { border-bottom: 0; }
.topic-main a { font-weight: 650; text-decoration: none; }
.topic-main p, .topic-meta { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.topic-number { color: var(--muted); font-size: .8rem; text-align: right; }
.badge { display: inline-block; margin-left: 5px; padding: 1px 7px; border-radius: 99px; background: #e7ece8; color: #40524c; font-size: .68rem; vertical-align: .12em; }
.badge-locked { background: #e5e5e5; color: #555; }
.badge-digest { background: #fff0cc; color: #855613; }
.badge-topped { background: #dcefed; color: #145b58; }
.badge-warning { background: #f6ddd6; color: var(--warning); }
.thread-title { margin: 0; overflow-wrap: anywhere; font: 700 clamp(1.65rem, 4vw, 2.6rem)/1.25 "Songti SC", STSong, serif; }
.thread-hero { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 18px; padding: 27px 31px 25px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: radial-gradient(circle at 86% 18%, rgba(218,181,113,.18), transparent 15rem), linear-gradient(128deg, #132e32, #23555a 58%, #70583d); color: #fff; box-shadow: var(--shadow); }
.thread-hero::before { content: ""; position: absolute; left: 10px; top: 11px; bottom: 11px; z-index: -1; width: 3px; border-radius: 99px; background: linear-gradient(180deg, rgba(218,181,113,.15), #d6a65b 48%, rgba(218,181,113,.12)); }
.thread-hero::after { content: "TID " attr(data-tid); position: absolute; right: 2%; bottom: -29%; z-index: -1; color: rgba(255,255,255,.055); font: 800 clamp(4rem, 11vw, 7.5rem)/1 ui-monospace, SFMono-Regular, monospace; white-space: nowrap; }
.thread-hero.write-hero::after { content: "天河来信"; font-family: "Songti SC", STSong, serif; letter-spacing: .08em; }
.thread-hero .eyebrow { margin: 0 0 6px; color: #dcb977; }
.thread-hero .thread-title { position: relative; max-width: 900px; color: #fffdf7; text-shadow: 0 2px 12px rgba(0,0,0,.12); }
.thread-hero .thread-title img { display: inline-block; width: auto; max-width: 1.5em; height: auto; max-height: 1.5em; margin: 0 .1em; vertical-align: -.28em; }
.thread-hero-meta { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 15px; color: rgba(255,255,255,.72); font-size: .78rem; }
.thread-hero-meta > span:not(.thread-hero-badges) { display: inline-flex; align-items: center; }
.thread-hero-meta > span:not(:last-child):not(.thread-hero-badges)::after { content: "·"; margin-left: 10px; color: rgba(255,255,255,.35); }
.thread-hero-meta a { color: #fff; font-weight: 650; text-decoration-color: rgba(255,255,255,.38); }
.thread-hero-meta strong { color: #fff; font-family: ui-monospace, SFMono-Regular, monospace; }
.thread-hero-badges { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.thread-hero .badge { margin-left: 0; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.thread-hero-actions { position: relative; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.thread-contribute { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: .8rem; font-weight: 650; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.thread-contribute:hover, .thread-contribute:focus-visible { background: rgba(255,255,255,.18); color: #fff; outline: none; transform: translateY(-1px); }
.post { display: grid; grid-template-columns: 160px minmax(0, 1fr); margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: 0 8px 20px rgba(37,48,44,.035); }
.post-author { padding: 20px; background: #f6f1e7; border-right: 1px solid var(--line); }
.post-author strong, .post-author .author-uid { display: block; }
.post-author strong { word-break: break-word; }
.post-author .author-uid { color: var(--muted); font-size: .76rem; }
.member-avatar { display: block; margin: 0 auto 12px; }
.member-avatar-image { width: auto; max-width: 120px; height: auto; object-fit: contain; }
.member-avatar-placeholder { display: grid; width: 100px; min-width: 100px; height: 100px; place-items: center; overflow: hidden; border: 1px solid rgba(37,48,44,.14); border-radius: 50%; color: #fff; font: 700 1.65rem/1 "Songti SC", STSong, serif; letter-spacing: .04em; box-shadow: 0 5px 14px rgba(37,48,44,.1); }
.member-avatar-color-0 { background: linear-gradient(145deg, #d76563, #8e2f36); }
.member-avatar-color-1 { background: linear-gradient(145deg, #d9853d, #984817); }
.member-avatar-color-2 { background: linear-gradient(145deg, #c49a2f, #7e5d0d); }
.member-avatar-color-3 { background: linear-gradient(145deg, #5f9781, #28604e); }
.member-avatar-color-4 { background: linear-gradient(145deg, #5590c2, #28577f); }
.member-avatar-color-5 { background: linear-gradient(145deg, #6e70ba, #41447f); }
.member-avatar-color-6 { background: linear-gradient(145deg, #9b68ad, #633c75); }
.member-profile-card { position: relative; isolation: isolate; display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 26px; overflow: hidden; margin-bottom: 18px; padding: 28px; border: 1px solid rgba(13,75,73,.18); border-radius: 20px; background: linear-gradient(135deg, #fffdf7 0%, #f4eddf 58%, #e5efea 100%); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.85); }
.member-profile-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; z-index: -1; width: 7px; background: linear-gradient(180deg, var(--river-dark), var(--river), var(--gold)); }
.member-profile-card::after { content: attr(data-uid); position: absolute; right: 2%; bottom: -28%; z-index: -1; color: rgba(13,75,73,.045); font: 800 clamp(4.5rem, 11vw, 8rem)/1 ui-monospace, SFMono-Regular, monospace; white-space: nowrap; }
.member-profile-avatar { display: grid; min-height: 168px; place-items: center; align-self: start; padding: 18px 12px; border: 1px solid rgba(13,75,73,.12); border-radius: 15px; background: rgba(255,253,247,.62); box-shadow: inset 0 1px rgba(255,255,255,.8); }
.member-profile-avatar .member-avatar { margin: 0; }
.member-profile-main { position: relative; min-width: 0; }
.member-profile-main .eyebrow { margin: 0 0 3px; color: var(--river); }
.member-profile-main h1 { margin: 0; overflow-wrap: anywhere; color: var(--river-dark); font: 700 clamp(1.85rem, 4vw, 2.75rem)/1.2 "Songti SC", STSong, serif; }
.member-profile-contact { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 0; }
.member-profile-email { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 6px 11px; border: 1px solid rgba(13,75,73,.13); border-radius: 10px; background: rgba(255,253,247,.72); color: var(--muted); font-size: .78rem; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.member-profile-email[href]:hover, .member-profile-email[href]:focus-visible { border-color: rgba(23,107,104,.4); background: rgba(255,255,255,.9); color: var(--river-dark); outline: none; transform: translateY(-1px); }
.member-email-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; background: var(--river-dark); color: #fff; font-size: .9rem; line-height: 1; }
.member-profile-email small, .member-profile-email strong { display: block; line-height: 1.25; }
.member-profile-email small { color: #8a928f; font-size: .62rem; letter-spacing: .06em; }
.member-profile-email strong { color: #4d5d58; font-size: .76rem; font-weight: 650; }
.member-profile-signature { margin-top: 18px; padding: 13px 15px; border-top: 1px solid rgba(13,75,73,.12); border-radius: 0 0 10px 10px; background: rgba(255,253,247,.48); color: #64645d; font-size: .82rem; }
.member-profile-signature-label { display: block; margin-bottom: 5px; color: #9a7b51; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.member-profile-signature-content > :first-child { margin-top: 0; }
.member-profile-signature-content > :last-child { margin-bottom: 0; }
.member-profile-signature img { max-width: min(100%, 560px); max-height: 180px; object-fit: contain; }
.member-profile-signature-empty { color: #8a918e; font-style: italic; }
.member-wall-hero { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 22px; padding: 30px 32px; border-radius: 18px; background: linear-gradient(128deg, #102f3a, #285b61 54%, #76546f); color: #fff; box-shadow: var(--shadow); }
.member-wall-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 11% 24%, rgba(255,255,255,.62) 0 1px, transparent 2px), radial-gradient(circle at 24% 72%, rgba(218,181,113,.5) 0 1.5px, transparent 2.5px), radial-gradient(circle at 58% 18%, rgba(255,255,255,.45) 0 1px, transparent 2px), radial-gradient(circle at 73% 68%, rgba(218,181,113,.5) 0 1px, transparent 2px), radial-gradient(circle at 91% 28%, rgba(255,255,255,.5) 0 1.5px, transparent 2.5px); opacity: .8; }
.member-wall-hero::after { content: "255"; position: absolute; right: 2%; bottom: -34%; z-index: -1; color: rgba(255,255,255,.07); font: 800 8rem/1 ui-monospace, monospace; }
.member-wall-hero h1 { margin: 3px 0 8px; font: 700 clamp(1.8rem, 4vw, 2.8rem)/1.2 "Songti SC", STSong, serif; }
.member-wall-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.78); }
.member-wall-controls { margin: 0 0 22px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,247,.78); box-shadow: 0 7px 20px rgba(37,48,44,.05); }
.member-wall-tools { display: flex; align-items: center; gap: 14px; }
.member-wall-tools input { width: min(100%, 420px); padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.member-wall-tools input:focus { border-color: var(--river); outline: 2px solid rgba(23,107,104,.16); }
.member-wall-status { margin: 0; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.member-sort-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(13,75,73,.1); overflow-x: auto; scrollbar-width: thin; }
.member-sort-label { flex: 0 0 auto; margin-right: 2px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.member-sort-button { flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--river-dark); font: 650 .78rem/1.2 inherit; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.member-sort-button:hover { border-color: rgba(23,107,104,.48); transform: translateY(-1px); }
.member-sort-button.is-active { border-color: var(--river); background: var(--river); color: #fff; }
.member-wall-stage { min-height: 210px; padding: 24px; border: 1px solid rgba(23,107,104,.18); border-radius: 18px; background: linear-gradient(145deg, rgba(249,245,234,.84), rgba(237,243,238,.72)); box-shadow: var(--shadow); }
.member-constellation { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.member-portrait { display: flex; min-width: 0; min-height: 104px; align-items: center; justify-content: flex-start; gap: 15px; padding: 14px 16px; border: 1px solid rgba(13,75,73,.14); border-radius: 14px; background: rgba(255,253,247,.94); box-shadow: 0 7px 18px rgba(37,48,44,.055); color: inherit; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.member-portrait[hidden] { display: none !important; }
.member-portrait:hover, .member-portrait:focus-visible { border-color: rgba(23,107,104,.44); outline: none; box-shadow: 0 11px 25px rgba(37,48,44,.1); transform: translateY(-2px); }
.member-portrait .member-avatar { flex: 0 0 auto; margin: 0; }
.member-portrait .member-avatar-image { max-width: 72px; max-height: 72px; object-fit: contain; }
.member-portrait .member-avatar-placeholder { width: 72px; min-width: 72px; height: 72px; font-size: 1.15rem; }
.member-portrait-label { min-width: 0; }
.member-portrait-label strong, .member-portrait-label small { display: block; overflow: visible; text-overflow: clip; white-space: normal; }
.member-portrait-label strong { color: var(--river-dark); font-size: .94rem; }
.member-portrait-label small { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.member-wall-empty { padding: 70px 20px; color: var(--muted); text-align: center; }
.topic-discovery-hero { position: relative; overflow: hidden; margin-bottom: 22px; padding: 30px 32px; border-radius: 18px; background: linear-gradient(128deg, #123f3e, #176b68 58%, #8d672e); color: #fff; box-shadow: var(--shadow); }
.topic-discovery-hero::after { content: "3291"; position: absolute; right: 2%; bottom: -34%; color: rgba(255,255,255,.07); font: 800 8rem/1 ui-monospace, monospace; }
.topic-discovery-hero h1 { position: relative; margin: 3px 0 8px; font: 700 clamp(1.8rem, 4vw, 2.8rem)/1.2 "Songti SC", STSong, serif; }
.topic-discovery-hero p { position: relative; max-width: 720px; margin: 0; color: rgba(255,255,255,.78); }
.topic-sort-bar { display: flex; gap: 8px; margin: 18px 0 12px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: thin; }
.topic-sort-button, .topic-random-button { flex: 0 0 auto; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--river-dark); font: 650 .8rem/1.2 inherit; cursor: pointer; }
.topic-sort-button:hover, .topic-sort-button:focus-visible, .topic-random-button:hover, .topic-random-button:focus-visible { border-color: var(--river); outline: none; }
.topic-sort-button.is-active { border-color: var(--river); background: var(--river); color: #fff; }
.topic-filter-row { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(140px, .6fr) minmax(120px, .45fr) auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.topic-filter-row input, .topic-filter-row select { min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; }
.topic-filter-row input:focus, .topic-filter-row select:focus { border-color: var(--river); outline: 2px solid rgba(23,107,104,.14); }
.topic-discovery-note { display: flex; justify-content: space-between; gap: 16px; margin: 8px 0 15px; color: var(--muted); font-size: .78rem; }
.topic-discovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.topic-discovery-card { display: flex; min-width: 0; min-height: 176px; flex-direction: column; padding: 17px 18px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 7px 18px rgba(37,48,44,.035); }
.topic-discovery-card:hover { border-color: rgba(23,107,104,.38); box-shadow: 0 10px 23px rgba(37,48,44,.07); transform: translateY(-1px); }
.topic-discovery-card .topic-card-kicker { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .7rem; }
.topic-discovery-card h2 { margin: 8px 0 5px; font: 700 1.03rem/1.45 "Songti SC", STSong, serif; }
.topic-discovery-card h2 a { text-decoration: none; }
.topic-discovery-card .topic-card-byline { margin: 0 0 13px; color: var(--muted); font-size: .76rem; }
.topic-card-metrics { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid #eee7d9; color: #596863; font-size: .72rem; }
.topic-card-metrics strong { color: var(--river-dark); font-family: ui-monospace, SFMono-Regular, monospace; }
.topic-discovery-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 4px; }
.topic-discovery-pagination button { min-width: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--river-dark); cursor: pointer; }
.topic-discovery-pagination button[aria-current="page"] { border-color: var(--river); background: var(--river); color: #fff; }
.topic-discovery-pagination button:disabled { opacity: .42; cursor: default; }
.post-main { min-width: 0; }
.post-meta { display: flex; justify-content: space-between; gap: 10px; padding: 11px 18px; color: var(--muted); font-size: .78rem; border-bottom: 1px solid var(--line); }
.post-content { padding: 22px; overflow-wrap: anywhere; }
.post-content img { display: block; max-width: 100%; height: auto; margin: 12px auto; border-radius: 7px; }
.post-content blockquote, .phpwind-quote { position: relative; margin: 16px 0; padding: 14px 18px 15px 20px; border: 1px solid #ded3bf; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; background: linear-gradient(135deg, #faf6ed, #f5efe3); color: #4e4a41; box-shadow: inset 0 1px rgba(255,255,255,.72); }
.phpwind-quote::before { content: "“"; position: absolute; right: 12px; top: 2px; color: rgba(199,139,57,.16); font: 700 3.6rem/1 Georgia, serif; pointer-events: none; }
.phpwind-quote > b:first-child, .phpwind-quote > strong:first-child { display: block; margin: -14px -18px 12px -20px; padding: 8px 42px 8px 16px; border-bottom: 1px solid #ded3bf; background: rgba(231,220,198,.45); color: #74634c; font-size: .78rem; font-weight: 500; letter-spacing: .02em; }
.phpwind-quote > b:first-child i, .phpwind-quote > strong:first-child em { color: var(--river-dark); font-style: normal; font-weight: 700; }
.phpwind-quote > br:first-of-type { display: none; }
.post-content table { max-width: 100%; border-collapse: collapse; }
.post-content td, .post-content th { border: 1px solid var(--line); padding: 6px; }
.legacy-forum-import { line-height: 1.78; }
.legacy-forum-import > table { width: 100%; margin: 14px 0 8px; overflow: hidden; border: 1px solid #e1d8c8; border-left: 3px solid #c69a55; border-radius: 8px; border-collapse: separate; border-spacing: 0; background: #f8f5ed; }
.legacy-forum-import > table td, .legacy-forum-import > table th { border: 0; padding: 8px 12px; color: #6b6a62; font-size: .76rem; line-height: 1.55; }
.legacy-forum-import > table td:empty { display: none; }
.legacy-forum-import > table table { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: transparent; }
.legacy-forum-import > table:first-child { margin-top: 0; border-left-color: var(--river); background: linear-gradient(135deg, #edf4ef, #fbf7ee); }
.legacy-forum-import > table:first-child td { color: var(--river-dark); font: 700 1rem/1.55 "Songti SC", STSong, serif; }
.legacy-forum-import > table:nth-child(2) { margin-top: -3px; margin-bottom: 18px; border-left-width: 1px; background: #fbfaf6; }
.legacy-forum-import > table:nth-child(2) td { color: #817866; font-size: .72rem; }
.legacy-forum-import > div { padding: 2px 2px 0; }
.legacy-forum-import .external-image { margin: 8px 0; }
.post-content pre { max-width: 100%; overflow: auto; padding: 12px; background: #202725; color: #f8f6ee; border-radius: 8px; }
.post-signature { margin: 0 22px 20px; padding: 12px 0 0; border-top: 1px dashed #c9bda9; color: #6b675e; font-size: .82rem; }
.post-signature::before { content: "签名档 · 2013 备份"; display: block; margin-bottom: 4px; color: #9a8a72; font-size: .68rem; letter-spacing: .12em; }
.post-signature img { max-width: min(100%, 560px); max-height: 180px; object-fit: contain; }
.write-invitation { position: relative; isolation: isolate; overflow: hidden; margin: 25px 0 34px; padding: 26px 28px; border: 1px solid rgba(13,75,73,.18); border-radius: 18px; background: linear-gradient(135deg, #fffaf0, #edf4ef); box-shadow: var(--shadow); }
.write-invitation::after { content: "✉"; position: absolute; right: 2%; bottom: -42%; z-index: -1; color: rgba(13,75,73,.055); font: 800 9rem/1 serif; transform: rotate(-8deg); }
.write-invitation h2 { margin: 2px 0 7px; color: var(--river-dark); font: 700 1.65rem/1.25 "Songti SC", STSong, serif; }
.write-invitation p { max-width: 760px; margin: 6px 0; color: var(--muted); }
.write-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.write-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 16px; border: 1px solid var(--river-dark); border-radius: 10px; background: var(--river-dark); color: #fff; font-weight: 650; text-decoration: none; }
.write-button:hover, .write-button:focus-visible { background: var(--river); color: #fff; outline: none; }
.write-button-secondary { background: transparent; color: var(--river-dark); }
.write-button-secondary:hover, .write-button-secondary:focus-visible { background: rgba(23,107,104,.08); color: var(--river-dark); }
.write-composer { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 20px; align-items: stretch; margin: 20px 0 30px; }
.write-letter { position: relative; min-width: 0; overflow: hidden; padding: 25px 28px 27px; border: 1px solid rgba(89,74,47,.18); border-radius: 18px; background: #fffdf8; box-shadow: 0 14px 34px rgba(62,53,37,.09); }
.write-letter::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--river-dark), var(--river) 55%, var(--gold)); }
.write-letter-header { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; padding-bottom: 16px; border-bottom: 1px solid #e7dfd1; }
.write-letter-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #e9f2ee; color: var(--river-dark); font-size: 1.15rem; }
.write-letter-header strong, .write-letter-header small { display: block; }
.write-letter-header strong { color: var(--river-dark); font: 700 1.05rem/1.25 "Songti SC", STSong, serif; }
.write-letter-header small { margin-top: 3px; color: var(--muted); font-size: .72rem; letter-spacing: .06em; }
.write-letter-meta { display: grid; gap: 10px; margin-bottom: 19px; }
.write-letter-field { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: baseline; gap: 9px; }
.write-letter-field span, .write-letter-body-label { color: #9a7b51; font-size: .69rem; font-weight: 750; letter-spacing: .13em; }
.write-letter-field code { overflow-wrap: anywhere; color: #33413d; font: 650 .83rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.write-letter-body-wrap { padding: 17px 19px; border: 1px solid #e8dfcf; border-radius: 12px; background: linear-gradient(145deg, #fbf8f0, #f5f7f1); }
.write-letter-body-label { display: block; margin-bottom: 9px; }
.write-letter-body { min-height: 248px; margin: 0; color: #46504c; font: .84rem/1.82 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.write-send-panel { display: flex; min-width: 0; flex-direction: column; padding: 26px; border: 1px solid rgba(13,75,73,.18); border-radius: 18px; background: linear-gradient(150deg, #eef5f1, #faf6eb 88%); box-shadow: 0 14px 34px rgba(37,48,44,.075); }
.write-send-panel h3 { margin: 4px 0 8px; color: var(--river-dark); font: 700 1.45rem/1.28 "Songti SC", STSong, serif; }
.write-send-intro { margin: 0 0 20px; color: var(--muted); font-size: .84rem; }
.write-send-options { display: grid; gap: 10px; }
.write-send-option { display: grid; width: 100%; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid rgba(13,75,73,.14); border-radius: 12px; background: rgba(255,253,247,.92); color: var(--river-dark); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: border-color .17s ease, box-shadow .17s ease, transform .17s ease; }
.write-send-option:hover, .write-send-option:focus-visible { border-color: rgba(23,107,104,.42); outline: none; box-shadow: 0 8px 20px rgba(37,48,44,.09); transform: translateY(-1px); }
.write-send-option-primary { border-color: var(--river-dark); background: linear-gradient(135deg, var(--river-dark), var(--river)); color: #fff; }
.write-send-option-primary:hover, .write-send-option-primary:focus-visible { border-color: var(--river-dark); color: #fff; }
.write-send-option.is-copied { border-color: #8b6a31; background: #8b6a31; color: #fff; }
.write-send-option.is-copied small { color: #fff7e2; font-weight: 600; opacity: 1; }
.write-send-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: rgba(23,107,104,.09); font-size: 1.05rem; }
.write-send-option-primary .write-send-icon { background: rgba(255,255,255,.14); }
.write-send-option strong, .write-send-option small { display: block; }
.write-send-option strong { font-size: .87rem; }
.write-send-option small { margin-top: 2px; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.write-send-option-primary small { color: rgba(255,255,255,.7); }
.write-send-arrow { color: currentColor; font-size: 1rem; opacity: .62; }
.write-safety-note { margin: auto 0 0; padding-top: 18px; color: var(--muted); font-size: .74rem; line-height: 1.65; }
.write-copy-status { min-height: 1.4em; margin: 12px 0 0; color: var(--river-dark); font-size: .78rem; font-weight: 650; }
.write-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.write-rule { padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.write-rule h3 { margin: 0 0 5px; color: var(--river-dark); font-size: .98rem; }
.write-rule p { margin: 0; color: var(--muted); font-size: .84rem; }
.later-echoes { margin: 32px 0 18px; padding: 25px; border: 1px solid rgba(13,75,73,.19); border-radius: 18px; background: linear-gradient(145deg, #edf4ef, #fffaf0); box-shadow: var(--shadow); }
.later-echoes-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.later-echoes-heading h2 { margin: 0; color: var(--river-dark); font: 700 1.65rem/1.25 "Songti SC", STSong, serif; }
.later-echoes-heading > p { max-width: 530px; margin: 0; color: var(--muted); font-size: .8rem; text-align: right; }
.later-echo { overflow: hidden; margin-top: 13px; border: 1px solid rgba(13,75,73,.14); border-radius: 13px; background: rgba(255,253,247,.9); }
.later-echo header { display: flex; justify-content: space-between; gap: 16px; padding: 11px 15px; border-bottom: 1px solid rgba(13,75,73,.1); background: rgba(23,107,104,.055); }
.later-echo header span { color: var(--muted); font-size: .76rem; }
.later-echo-body { padding: 15px 17px; }
.later-echo-body > :first-child { margin-top: 0; }
.later-echo-body > :last-child { margin-bottom: 0; }
.post-content .align-right { text-align: right; }
.post-content .align-center { text-align: center; }
.post-content .align-left { text-align: left; }
.legacy-color { color: #665443; }
.legacy-size { font-size: 1.05em; }
.legacy-media, .external-image, .missing-media { display: inline-block; padding: 5px 9px; border-radius: 6px; background: #f3ede0; color: var(--muted); font-size: .85rem; }
.smiley { color: var(--gold); font-size: .84rem; }
.post-content img.legacy-emoticon, img.legacy-emoticon { display: inline-block; width: 50px; max-width: none; height: 50px; margin: 0 .12em; border-radius: 0; vertical-align: middle; cursor: default; }
.post-content img.phpwind-emoticon, img.phpwind-emoticon { display: inline-block; width: auto; max-width: 80px; height: auto; max-height: 80px; margin: 0 .12em; border-radius: 0; vertical-align: middle; cursor: default; }
.attachments { margin: 0 22px 22px; padding: 16px; border: 1px dashed #c9bda9; border-radius: 9px; background: #faf7ef; }
.attachments h4 { margin: 0 0 9px; font-size: .85rem; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.attachment-link { display: inline-flex; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: .8rem; }
.attachment-image { margin: 12px 0; }
.attachment-image img { max-width: min(100%, 820px); max-height: 760px; object-fit: contain; border-radius: 7px; }
.post-content img, .attachment-image img, [data-lightbox-preview] img { cursor: zoom-in; }
.missing-attachment { color: var(--warning); font-size: .82rem; }
.orphan-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.orphan-media-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.orphan-media-card img { display: block; width: 100%; height: 210px; object-fit: contain; background: #f3eee3; border-radius: 7px; }
.orphan-media-card p { margin: 8px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: .78rem; }
.orphan-thread-group { margin: 22px 0 34px; }
.orphan-thread-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; padding-bottom: 8px; border-bottom: 2px solid var(--river); }
.orphan-thread-heading h2, .orphan-thread-heading p { margin: 0; }
.orphan-thread-heading p { color: var(--muted); font-size: .8rem; text-align: right; }
.media-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px; background: rgba(9, 16, 15, .88); cursor: zoom-out; }
.media-lightbox[hidden] { display: none; }
.media-lightbox figure { max-width: min(1160px, 100%); max-height: 100%; margin: 0; text-align: center; }
.media-lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 100px); margin: auto; object-fit: contain; cursor: default; box-shadow: 0 18px 60px rgba(0, 0, 0, .45); }
.media-lightbox figcaption { margin-top: 8px; color: rgba(255, 255, 255, .82); font-size: .82rem; }
.media-lightbox-close { position: fixed; top: 18px; right: 20px; z-index: 1; min-width: 44px; min-height: 44px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.45); background: rgba(13,75,73,.88); font-size: 1.4rem; line-height: 1; }
.lightbox-open { overflow: hidden; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.pagination a, .pagination strong, .pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); text-decoration: none; }
.pagination strong { color: white; background: var(--river); border-color: var(--river); }
.search-panel { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; padding: 13px 14px; border: 1px solid #b8b3a8; border-radius: 8px; font: inherit; }
button { padding: 11px 18px; border: 0; border-radius: 8px; color: white; background: var(--river); font: 650 inherit; cursor: pointer; }
.search-status { color: var(--muted); font-size: .84rem; }
.search-result { padding: 15px 0; border-bottom: 1px solid var(--line); }
.search-result h3, .search-result p { margin: 0; }
.search-result p { color: var(--muted); font-size: .84rem; }
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.report-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.report-card h3 { margin-top: 0; }
.report-card ul { margin-bottom: 0; }
.member-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.compact-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.compact-list li { padding: 10px 13px; border-bottom: 1px solid var(--line); }
.compact-list li:last-child { border: 0; }
.compact-list small { display: block; color: var(--muted); }
@media (max-width: 760px) {
  .header-inner { min-height: 70px; }
  .brand small { display: none; }
  .primary-nav { gap: 10px; font-size: .8rem; }
  .hero { padding: 28px 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .forum-grid, .report-grid, .member-columns, .write-rules, .write-composer { grid-template-columns: 1fr; }
  .forum-card { grid-template-columns: 48px 1fr; }
  .forum-count { display: none; }
  .topic-row { grid-template-columns: 1fr; gap: 2px; }
  .topic-number { text-align: left; }
  .post { grid-template-columns: 1fr; }
  .post-author { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 12px; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-author .member-avatar { grid-row: 1 / span 2; margin: 0; }
  .post-author strong, .post-author .author-uid { margin: 0; }
  .member-profile-card { grid-template-columns: 1fr; gap: 17px; padding: 22px; }
  .member-profile-avatar { width: 158px; min-height: 148px; margin: 0 auto; }
  .member-profile-main { text-align: center; }
  .member-profile-contact { justify-content: center; }
  .member-profile-signature { text-align: left; }
  .member-wall-tools { display: block; }
  .member-wall-tools input { width: 100%; }
  .member-wall-status { margin-top: 7px; }
  .member-wall-stage { padding: 14px; }
  .member-constellation { grid-template-columns: 1fr; gap: 10px; }
  .topic-discovery-hero, .member-wall-hero { padding: 24px 22px; }
  .later-echoes-heading { display: block; }
  .later-echoes-heading > p { margin-top: 7px; text-align: left; }
  .thread-hero { padding: 23px 21px 22px; }
  .thread-hero-meta { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); }
  .thread-hero-meta > span:not(:last-child):not(.thread-hero-badges)::after { display: none; }
  .thread-hero-badges { grid-column: 1 / -1; }
  .topic-filter-row { grid-template-columns: 1fr 1fr; }
  .topic-filter-row input { grid-column: 1 / -1; }
  .topic-random-button { width: 100%; }
  .topic-discovery-note { display: block; }
  .topic-discovery-grid { grid-template-columns: 1fr; }
  .orphan-media-grid { grid-template-columns: 1fr; }
  .orphan-thread-heading { display: block; }
  .orphan-thread-heading p { margin-top: 4px; text-align: left; }
  .media-lightbox { padding: 16px; }
}
