:root {
  color-scheme: light;
  --bg:#f5f7f7; --panel:#fff; --ink:#152823; --muted:#53645e; --line:#e2e9e6;
  --green:#075b47; --green-hover:#064936; --tint:#e8f5ef; --dark:#0e2924;
  --shadow:0 2px 12px #173b2e07; --radius:16px;
  font-family: "Inter","PingFang SC","Microsoft Yahei","Noto Sans CJK SC",system-ui,sans-serif;
  font-size:16px; color:var(--ink); background:var(--bg);
}
*,*::before,*::after { box-sizing:border-box }
body { margin:0; line-height:1.55; min-height:100vh; display:flex; flex-direction:column }
a { color:var(--green); text-decoration:none }
a:hover { text-decoration:underline; text-underline-offset:4px }
input,select,textarea,button { font:inherit }
button { cursor:pointer }
:focus-visible { outline:3px solid #1d9778; outline-offset:3px }
h1,h2,h3,p { margin:0 0 .65rem }
h1 { font-size:clamp(1.7rem,3vw,2.55rem); line-height:1.18; letter-spacing:-.04em; overflow-wrap:anywhere }
h2 { font-size:1.125rem; line-height:1.35 }
h3 { font-size:1rem }
p { overflow-wrap:anywhere }
.wrap { width:min(1320px,calc(100% - 80px)); margin-inline:auto }
.main { padding-block:32px 56px; flex:1 }
.bar { background:#fff; border-bottom:1px solid var(--line) }
.bar-inner { display:flex; min-height:72px; align-items:center; gap:36px; justify-content:space-between }
.brand { display:inline-flex; align-items:center; gap:10px; color:var(--ink); font-size:1.28rem; font-weight:850; letter-spacing:-.06em; white-space:nowrap }
.logo { width:38px; height:38px; border-radius:11px; display:inline-grid; place-items:center; background:var(--green); color:#d7fff0; font-size:1.53rem; line-height:1; flex:none }
.top-nav { display:flex; align-self:stretch; gap:23px; margin-right:auto }
.top-nav a { display:flex; align-items:center; border-bottom:2px solid transparent; font-size:.92rem; color:var(--muted); white-space:nowrap }
.top-nav a.current { border-color:var(--green); color:var(--green); font-weight:750 }
.bar-right { display:flex; align-items:center; gap:10px }
.search { display:flex; align-items:center; width:min(23vw,272px); min-width:130px; background:#f4f7f6; padding:0 11px; border:1px solid var(--line); border-radius:10px; height:40px; gap:6px }
.search span { color:#45655b; font-size:1.25rem; line-height:1 }
.search input { width:100%; min-width:0; border:0; background:transparent; font-size:.89rem; color:var(--ink); padding:4px }
kbd { color:var(--muted); background:#fff; border:1px solid #dce7e2; border-radius:4px; padding:0 5px; font-size:.76rem }
.button { display:inline-flex; justify-content:center; align-items:center; gap:.42rem; width:fit-content; padding:.52rem .92rem; border:1px solid transparent; border-radius:9px; background:var(--green); color:#fff; font-size:.91rem; line-height:1.35; font-weight:720; white-space:nowrap; text-decoration:none }
.button:hover { background:var(--green-hover); text-decoration:none }
.button.quiet { color:var(--green); background:transparent; padding:.48rem .55rem }
.button.quiet:hover { background:var(--tint) }
.button.outline { color:var(--green); border-color:#bdd8cd; background:#fff }
.button.outline:hover { background:var(--tint) }
.button.danger { color:#963b4b }
.button.danger:hover { background:#f9e9ed }
.button.translucent { background:#ffffff18; border-color:#ffffff40; color:#fff }
.button.translucent:hover { background:#ffffff35 }
.account-link { display:inline-flex; gap:8px; align-items:center; font-size:.9rem; max-width:170px }
.account-link > span:last-child { text-overflow:ellipsis; overflow:hidden; white-space:nowrap }
.hero { position:relative; isolation:isolate; min-height:295px; border-radius:20px; overflow:hidden; display:flex; align-items:center; margin-bottom:25px; background:#12332d url("landscape.webp") center 52% / cover no-repeat; box-shadow:var(--shadow) }
.hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#082b25f5 0%,#0a2d25e0 26%,#0b2b2188 47%,#10261900 75%) }
.hero-copy { padding:35px 43px; max-width:680px; color:#fff }
.hero-label { display:inline-flex; align-items:center; gap:8px; margin-bottom:12px; color:#d3f8e9; font-size:.88rem; font-weight:650; letter-spacing:.04em }
.hero-label i,.online i { width:7px; height:7px; border-radius:50%; background:#68d5a9; display:inline-block; flex:none }
.hero h1 { font-size:clamp(2.6rem,5.6vw,4.5rem); letter-spacing:-.065em; line-height:1.04; margin-bottom:10px }
.hero p { max-width:500px; color:#e1f1ec; font-size:1rem }
.hero-actions,.button-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:20px }
.hero-actions .button:first-child { background:#b8f4d9; color:#0f352a; border-color:#ddffed }
.hero-actions .button:first-child:hover { background:#ddffed }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); min-width:0 }
.forum-layout { display:grid; grid-template-columns:208px minmax(0,1fr) 245px; gap:20px; align-items:start }
.sidebar,.topic-column,.admin-content { min-width:0 }
.side-panel { padding:17px; margin-bottom:16px }
.side-panel h2 { margin:1px 0 11px }
.forum-link { color:var(--ink); display:flex; align-items:center; min-width:0; gap:10px; border-radius:9px; padding:7px; font-size:.93rem; word-break:break-word }
.forum-link.active,.forum-link:hover { color:var(--green); background:#edf5f1; text-decoration:none; font-weight:720 }
.forum-icon { width:32px; height:32px; display:inline-grid; place-items:center; border-radius:8px; line-height:1; font-size:1.05rem; flex:none }
.mint { color:#075b47; background:#e3f4eb }.blue { color:#245981; background:#e8f3fb }.violet { color:#633c89; background:#f1eafb }.amber { color:#825519; background:#fbf0da }.rose { color:#934558; background:#f9eaf0 }
.topics-head { min-height:62px; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; padding:12px 18px; border-bottom:1px solid var(--line) }
.topics-head h2 { margin:0 }
.segments { display:flex; flex-wrap:wrap; gap:3px; background:#f2f5f4; border-radius:8px; padding:3px }
.segments a { color:var(--muted); font-size:.84rem; border-radius:6px; padding:4px 8px; white-space:nowrap }
.segments a.selected { background:#fff; color:var(--green); box-shadow:0 1px 3px #182d241b; font-weight:720 }
.topic-row { min-height:74px; display:flex; align-items:center; gap:12px; padding:12px 18px }
.topic-row:not(:last-child) { border-bottom:1px solid var(--line) }
.topic-row:hover { background:#fbfdfc }
.topic-row:last-child { border-radius:0 0 var(--radius) var(--radius) }
.topic-avatar { flex:none }
.avatar { width:38px; height:38px; display:inline-grid; place-items:center; border-radius:12px; background:#e5f2ec; color:#165943; font-size:.93rem; font-weight:820; object-fit:cover; flex:none; vertical-align:middle }
.avatar-1 { background:#dbeef8; color:#1d5479 }.avatar-2 { background:#f2e9fb; color:#694990 }.avatar-3 { background:#fcf0d9; color:#7d5428 }.avatar-4 { background:#f9e6ec; color:#893f59 }
.avatar.small { width:30px; height:30px; border-radius:8px; font-size:.82rem }
.avatar.large { width:66px; height:66px; border-radius:18px; font-size:1.5rem }
.topic-content { min-width:0; flex:1 }
.topic-title { font-weight:735; color:var(--ink); display:inline-block; max-width:100%; overflow-wrap:anywhere; line-height:1.35 }
.topic-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; color:var(--muted); margin-top:4px; font-size:.8rem }
.tag { display:inline-block; padding:1px 7px; border-radius:5px; font-size:.77rem; font-weight:650; line-height:1.55 }
.topic-counts { margin-left:auto; display:flex; align-items:center; gap:12px; color:var(--muted); font-size:.84rem; white-space:nowrap }
.topic-counts i { font-style:normal; color:#587a6d }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); text-align:center; margin:7px 0 13px }
.stats strong,.stats span { display:block }
.stats strong { font-size:1.18rem; color:var(--dark); font-variant-numeric:tabular-nums }
.stats span,.online,.muted { color:var(--muted); font-size:.875rem }
.online { border-top:1px solid var(--line); padding-top:12px; display:flex; gap:7px; align-items:center }
.online i { background:#198362 }
.welcome .forum-icon { margin-bottom:9px }.welcome p { color:var(--muted); font-size:.91rem; margin-bottom:13px }.welcome .button { width:100% }
.empty { text-align:center; padding:48px 20px; color:var(--muted) }.empty div { color:#20765e; font-size:2rem }.empty strong { color:var(--ink) }
.page-intro { margin:1px 0 24px }.page-intro p { color:var(--muted) }
.board-intro { display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:16px; margin-bottom:14px }
.board-intro > div { flex:1 }.board-intro h1 { font-size:1.45rem; margin-bottom:3px }.board-intro p { color:var(--muted); margin:0; font-size:.9rem }
.directory { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px }.directory-card { padding:23px; color:var(--ink) }.directory-card:hover { border-color:#76b7a1; text-decoration:none }.directory-card h2 { margin:10px 0 6px }.directory-card p { color:var(--muted) }
.crumbs { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:15px; font-size:.9rem; color:var(--muted) }
.thread-layout { display:grid; grid-template-columns:minmax(0,1fr) 265px; gap:20px; align-items:start }.thread-layout > section { min-width:0 }
.thread-head,.post,.form-card,.profile-head { padding:21px; margin-bottom:15px }.thread-head h1 { margin-top:8px }.thread-head p { margin-bottom:0 }
.post header,.post-author,.post-actions { display:flex; align-items:center; gap:10px }.post header { justify-content:space-between; margin-bottom:16px }.post-author a { font-weight:750 }.post-actions { flex-wrap:wrap; margin-top:13px }
.post-body { overflow-wrap:anywhere; line-height:1.75 }.post-body .md-gap { height:.66em }.post-body pre { white-space:pre-wrap; padding:12px; background:#edf4f1; border-radius:8px }.post-body h2,.post-body h3,.post-body h4 { margin:.65rem 0 .3rem }blockquote { border-left:3px solid #91bbac; background:#f2f7f5; margin:0 0 13px; padding:9px 13px; border-radius:0 6px 6px 0; color:var(--muted); overflow-wrap:anywhere }
.attachments { margin:10px 0; border:1px solid var(--line); border-radius:9px }.attachment { padding:9px 12px; display:flex; flex-wrap:wrap; align-items:center; gap:8px }.attachment + .attachment { border-top:1px solid var(--line) }.attachment a { overflow-wrap:anywhere }
.form-card h2 { margin-bottom:12px }.form-card.wide { max-width:880px }.form-stack { display:grid; gap:12px; margin-top:12px }
.field { display:grid; gap:5px; min-width:0; font-size:.91rem; font-weight:650 }
.field input,.field select,.field textarea,td select { color:var(--ink); border:1px solid #cbdad3; background:#fff; border-radius:8px; width:100%; min-width:0; padding:.57rem .7rem; font-weight:450 }
.field input:disabled { color:var(--muted); background:#f0f3f2 }.field textarea { resize:vertical; line-height:1.6 }.field input[type=file] { min-height:42px; font-size:.86rem }
select { appearance:none; padding-right:1.7rem!important; background-image:linear-gradient(45deg,transparent 50%,#527066 50%),linear-gradient(135deg,#527066 50%,transparent 50%)!important; background-position:calc(100% - 13px) 50%,calc(100% - 8px) 50%!important; background-size:5px 5px!important; background-repeat:no-repeat!important }
.inline { display:inline-flex; margin:0 }.auth-layout { min-height:58vh; display:grid; place-items:center }.auth-card { width:min(100%,460px); padding:30px; margin-inline:auto }.auth-card h1 { margin-top:13px }.auth-card .form-stack { margin-top:19px }.auth-links { display:flex; justify-content:space-between; margin-top:14px; gap:12px }
.flash { padding:10px 13px; border:1px solid #afd5c5; border-radius:9px; background:#eaf8f1; color:#135946; margin-bottom:14px; overflow-wrap:anywhere }.token-value { display:block; font-size:.85rem }.profile-head { display:flex; align-items:center; gap:15px }.profile-head h1 { margin:0 }.profile-head p:last-child { margin-bottom:0 }
.tabs,.pager { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin:12px 0 }.tabs a,.pager a { border:1px solid var(--line); background:#fff; border-radius:7px; padding:5px 9px; font-size:.9rem }.tabs .selected,.pager [aria-current] { border-color:#a8d0bf; background:var(--tint); font-weight:750 }.topics .pager { margin:0; padding:12px 16px }
.admin-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:18px; align-items:start }.admin-nav { padding:9px }.admin-nav nav { display:grid; gap:4px }.admin-nav a { padding:8px 10px; border-radius:8px; color:var(--muted); font-size:.91rem }.admin-nav a.selected { color:var(--green); background:var(--tint); font-weight:750 }.dashboard-stats { grid-template-columns:repeat(5,1fr) }
.scroll-table { overflow:auto; margin:10px 0 }.scroll-table table { border-collapse:collapse; width:100%; text-align:left; font-size:.9rem }.scroll-table td,.scroll-table th { border-bottom:1px solid var(--line); padding:7px 9px; vertical-align:middle }.scroll-table td select { min-width:75px }
.line,.filter { display:flex; flex-wrap:wrap; gap:10px; align-items:center }.line { padding:6px 0; border-bottom:1px solid var(--line) }.filter { align-items:flex-end; margin-bottom:10px }.filter .field { flex:1 0 145px }.grow { flex:1 }.checks { border:1px solid var(--line); border-radius:8px; display:flex; flex-wrap:wrap; gap:7px 14px }.checks label { display:flex; align-items:center; gap:4px }.system-info { display:grid; grid-template-columns:minmax(90px,max-content) minmax(0,1fr); gap:6px 9px }.system-info dd { margin:0; overflow-wrap:anywhere }.extension { border-top:1px solid var(--line); padding:12px 0 }.extension .button-row { margin:4px 0 9px }summary { cursor:pointer; color:var(--green) }
.site-footer { border-top:1px solid var(--line); background:#fff }.footer-inner { display:flex; min-height:77px; gap:15px; align-items:center; color:var(--muted); font-size:.85rem }.footer-brand { font-size:1rem }.footer-brand .logo { width:27px; height:27px; font-size:.95rem; border-radius:7px }.language { margin-left:auto; position:relative }.language nav { display:grid; position:absolute; bottom:calc(100% + 5px); right:0; background:#fff; border:1px solid var(--line); border-radius:8px; min-width:120px; padding:6px }.language nav a { padding:4px 6px }
.sr-only,.skip:not(:focus) { clip-path:inset(50%); overflow:hidden; width:1px; height:1px; white-space:nowrap; position:absolute }.skip:focus { position:absolute; z-index:3; top:10px; left:10px; padding:8px; background:#fff }
@media(max-width:1100px) { .wrap { width:calc(100% - 48px) }.forum-layout { grid-template-columns:175px minmax(0,1fr) 200px; gap:14px }.side-panel { padding:12px }.topic-counts { gap:7px }.bar-inner { gap:20px } }
@media(max-width:900px) { .forum-layout { grid-template-columns:164px minmax(0,1fr) }.right-side { grid-column:2; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }.thread-layout { grid-template-columns:minmax(0,1fr) 215px }.hero { min-height:260px }.hero-copy { padding:26px 32px } }
@media(max-width:640px) {
  .wrap { width:calc(100% - 28px) }.main { padding-top:16px }.bar-inner { min-height:61px; flex-wrap:wrap; gap:5px 10px; padding:8px 0 }.brand { font-size:1.12rem }.brand .logo { width:33px; height:33px }.top-nav { order:3; width:100%; gap:16px; min-height:33px }
  .bar-right { margin-left:auto; gap:4px }.search { width:38px; min-width:0; padding:0; border:0; background:transparent; position:relative }.search:focus-within { position:absolute; left:14px; right:14px; width:auto; background:#fff; z-index:2; padding-inline:8px; border:1px solid var(--line) }.search span { position:absolute; padding-left:9px; pointer-events:none }.search input { padding-left:30px }.search kbd { display:none }.nav-admin { display:none }.nav-signup { padding:.5rem .65rem }.account-link > span:last-child { max-width:66px }
  .hero { min-height:235px; border-radius:15px; margin-bottom:16px; background-position:57% center }.hero-copy { padding:25px 16px }.hero::before { background:linear-gradient(90deg,#082b25ed 0%,#0a2d25bc 50%,#0c231f33 100%) }.hero h1 { font-size:2.5rem }.hero p { max-width:270px }.hero-actions { margin-top:12px }
  .forum-layout,.thread-layout,.admin-layout { display:block }.forum-layout > .sidebar:first-child .side-panel { display:flex; gap:7px; overflow:auto; white-space:nowrap; align-items:center; padding:7px }.forum-layout > .sidebar:first-child h2 { display:none }.forum-link { min-width:max-content; padding:4px 7px }.forum-link .forum-icon { width:25px; height:25px }.right-side { display:grid; margin-top:14px }.topic-row { gap:8px; padding:9px 10px }.topic-row .avatar { width:32px; height:32px; border-radius:8px }.topic-counts span:nth-child(2) { display:none }.topics-head { padding:9px 10px }.topic-meta { gap:4px }.directory { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px }.directory-card,.post,.form-card,.profile-head,.thread-head { padding:14px }.admin-nav { margin-bottom:12px }.admin-nav nav { display:flex; flex-wrap:wrap; gap:3px }.auth-card { padding:20px }
}
.board-tools { padding:12px 18px; border-top:1px solid var(--line); font-size:.9rem }
.attachment-preview { flex-basis:100% }.attachment-preview img { display:block; max-width:100%; max-height:380px; margin-top:8px; border-radius:8px }
.help-link { color:var(--muted) } @media(max-width:420px) { .help-link { display:none }.footer-inner { gap:8px } }

.form-error { background:#fbeef0; border-color:#e9bec7; color:#853444 }
