:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e7ecf3;
  --line-soft: #eef2f7;
  --text: #1f2329;
  --muted: #8a919f;
  --blue: #4e6ef2;
  --blue-2: #6f8cff;
  --blue-soft: #eef3ff;
  --shadow: 0 10px 30px rgba(31,35,41,0.05);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.hero-wrap, .nav-wrap, .main-wrap, .thread-layout, .breadcrumb, .footer-inner { width: min(1320px, calc(100% - 32px)); margin: 0 auto; }
button, input, textarea, select { font: inherit; }
.search button, .primary-btn, .ghost-btn, .tool-btn, .follow-btn, .filter-chip, .chip-link { border: 0; cursor: pointer; }
.search button, .primary-btn, .follow-btn { height: 42px; padding: 0 22px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; box-shadow: 0 8px 18px rgba(78,110,242,.18); }
.ghost-btn { height: 40px; padding: 0 18px; border-radius: 999px; background: #f5f7fb; color: #4d5664; font-weight: 700; }
.hero-wrap { padding-top: 18px; }
.hero-banner { position: relative; min-height: 360px; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, #d7e3d6 0%, #dce9d6 26%, #d7e6cc 48%, #e9f0e0 72%, #f8fbf6 100%); box-shadow: var(--shadow); }
.hero-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,44,28,.28) 0%, rgba(30,44,28,.16) 28%, rgba(255,255,255,0) 58%), radial-gradient(circle at 82% 18%, rgba(255,255,255,.22), transparent 26%), radial-gradient(circle at 16% 28%, rgba(120,150,104,.18), transparent 22%); }
.hero-banner::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.28) 35%, rgba(255,255,255,.62) 100%); }
.hero-pattern { position: absolute; right: 34px; top: 26px; width: 420px; height: 220px; border-radius: 28px; background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.28); overflow: hidden; }
.hero-pattern::before { content: ''; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(82,108,68,.32), rgba(161,184,132,.16) 38%, rgba(255,255,255,0) 70%); }
.hero-pattern::after { content: ''; position: absolute; left: 18px; right: 18px; top: 18px; bottom: 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(69,91,57,.28), rgba(183,204,152,.12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.hero-inner { position: relative; padding: 28px 30px 118px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; position: relative; z-index: 1; }
.hero-title { color: rgba(255,255,255,.88); font-size: 13px; margin-bottom: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.12); }
.hero-actions { display: flex; gap: 10px; align-items: center; }
.hero-mini-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-mini-tags span { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.18); color: rgba(255,255,255,.92); font-size: 12px; backdrop-filter: blur(4px); }
.bar-panel { position: absolute; left: 24px; right: 24px; bottom: 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.86); border-radius: 26px; box-shadow: 0 18px 40px rgba(31,35,41,.08); padding: 18px 20px; display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; z-index: 2; }
.bar-avatar { width: 110px; height: 110px; border-radius: 30px; background: linear-gradient(135deg, #fffef8, #e3efd8); border: 6px solid rgba(255,255,255,.96); display: grid; place-items: center; color: #5b7d43; font-size: 42px; font-weight: 800; box-shadow: 0 16px 34px rgba(84,104,63,.12); }
.bar-info h1 { margin: 0 0 10px; font-size: 34px; line-height: 1.12; letter-spacing: -.02em; color: #223024; }
.bar-info p { margin: 0 0 14px; color: #5f6d61; line-height: 1.8; font-size: 14px; max-width: 58ch; }
.inline-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.inline-stats strong { display: block; font-size: 22px; font-weight: 700; color: #273127; }
.inline-stats span { font-size: 12px; color: #83907f; }
.follow-btn { background: #6b8f49; box-shadow: 0 8px 18px rgba(91,125,67,.18); }
.hero-actions .ghost-btn { background: rgba(255,255,255,.16); color: #fff; }
.bar-panel .hero-actions .ghost-btn { background: #f4f7ef; color: #566653; }
.bar-panel .hero-actions .primary-btn { background: #6b8f49; box-shadow: 0 8px 18px rgba(91,125,67,.18); }
.nav-wrap { margin-top: 14px; }
.tabbar { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 16px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; min-height: 58px; box-shadow: var(--shadow); }
.tablink { position: relative; padding: 18px 2px 16px; font-weight: 600; color: #5d6677; }
.tablink.active { color: #5d8342; }
.tablink.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 999px; background: #6b8f49; }
.filter-chip.active, .chip-link.active { background: #eef5e6; color: #5d8342; font-weight: 700; }
.tag.blue { background: #eef5e6; color: #5d8342; }
.recommend-follow { background: #eef5e6; color: #5d8342; }
.search button, .primary-btn { background: var(--blue); }
.bar-panel .primary-btn, .follow-btn { background: #6b8f49; }
.search button { background: var(--blue); }
.tabbar + .main-wrap {}
.hero-banner .primary-btn { background: #6b8f49; }
.hero-banner .ghost-btn { color: #fff; }
@media (max-width: 760px) {
  .hero-pattern { display: none; }
}
.hero-banner .bar-panel .ghost-btn { color: #58654f; }
.hero-banner .bar-panel .primary-btn { color: #fff; }
.hero-banner .bar-panel .hero-actions { align-self: center; }
.hero-banner .bar-panel .hero-actions .ghost-btn { border: 0; }
.hero-banner .bar-panel .hero-actions .primary-btn { border: 0; }
.hero-banner .bar-panel .hero-actions .primary-btn,
.hero-banner .bar-panel .hero-actions .ghost-btn { height: 40px; }
.hero-banner .bar-panel .hero-actions .ghost-btn { padding: 0 18px; border-radius: 999px; }
.hero-banner .bar-panel .hero-actions .primary-btn { padding: 0 18px; border-radius: 999px; }
.hero-banner .bar-panel .hero-actions .ghost-btn { background: #f4f7ef; }
.hero-banner .bar-panel .hero-actions .primary-btn { background: #6b8f49; }
.hero-banner .bar-panel .hero-actions .ghost-btn:hover,
.hero-banner .bar-panel .hero-actions .primary-btn:hover { opacity: .96; }
.hero-banner .hero-top .ghost-btn { background: rgba(255,255,255,.16); }
.hero-banner .hero-top .follow-btn { background: #6b8f49; }
.hero-banner .hero-top .follow-btn,
.hero-banner .hero-top .ghost-btn { box-shadow: none; }
.hero-banner .hero-top .ghost-btn { backdrop-filter: blur(4px); }
.hero-banner .hero-top .ghost-btn:hover,
.hero-banner .hero-top .follow-btn:hover { opacity: .96; }
.hero-banner .hero-top .ghost-btn,
.hero-banner .hero-top .follow-btn { height: 40px; }
.hero-banner .hero-top .ghost-btn { color: #fff; }
.hero-banner .hero-top .follow-btn { color: #fff; }
.hero-banner .hero-top .hero-actions { position: relative; z-index: 2; }
.hero-banner .hero-mini-tags span { border: 1px solid rgba(255,255,255,.16); }
.hero-banner .bar-panel { margin-top: 10px; }
.hero-banner .bar-panel .bar-info p { max-width: 62ch; }
.hero-banner .bar-panel .inline-stats { gap: 20px; }
.hero-banner .bar-panel .inline-stats strong { font-size: 21px; }
.hero-banner .bar-panel .inline-stats span { font-size: 12px; }
.hero-banner .hero-top { min-height: 56px; }
.hero-banner .hero-title { font-weight: 600; }
.hero-banner .bar-panel .bar-info h1 { text-shadow: none; }
.hero-banner .bar-panel .bar-info p { text-shadow: none; }
.hero-banner .bar-panel .inline-stats strong,
.hero-banner .bar-panel .inline-stats span { text-shadow: none; }
.hero-banner .hero-mini-tags { max-width: 560px; }
.hero-banner .bar-panel .hero-actions { justify-content: flex-end; }
.hero-banner .bar-panel .hero-actions .primary-btn,
.hero-banner .bar-panel .hero-actions .ghost-btn { font-weight: 700; }
.hero-banner .bar-panel .hero-actions .ghost-btn { color: #566653; }
.hero-banner .bar-panel .hero-actions .primary-btn { color: #fff; }
.hero-banner .hero-top .hero-actions .ghost-btn { background: rgba(255,255,255,.2); }
.hero-banner .hero-top .hero-actions .follow-btn { background: #6b8f49; }
.hero-banner .hero-top .hero-actions .ghost-btn { border: 1px solid rgba(255,255,255,.16); }
.hero-banner .hero-top .hero-actions .follow-btn { border: 1px solid rgba(94,123,66,.15); }
.nav-wrap { margin-top: 14px; }
.tabbar { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 16px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; min-height: 58px; box-shadow: var(--shadow); }
.tablink { position: relative; padding: 18px 2px 16px; font-weight: 600; color: #5d6677; }
.tablink.active { color: var(--blue); }
.tablink.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 999px; background: var(--blue); }
.main-wrap, .thread-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; padding: 18px 0 40px; }
.section-card, .post-item, .sidebar-card, .thread-card, .reply-card, .editor-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-card, .thread-card, .editor-card { padding: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-head h2, .section-head h3 { margin: 0; font-size: 20px; font-weight: 700; }
.section-head p, .meta { margin: 0; color: var(--muted); font-size: 13px; }
.filter-row, .action-row, .tag-row, .post-bottom, .recommend-head, .list-subnav, .thread-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-chip, .chip-link { height: 32px; padding: 0 12px; border-radius: 999px; background: #f4f6fa; color: #5f6776; display: inline-flex; align-items: center; font-size: 12px; }
.filter-chip.active, .chip-link.active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.list-subnav { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.post-list, .sidebar-stack, .reply-list { display: grid; gap: 14px; }
.post-item { padding: 18px; display: grid; grid-template-columns: 56px minmax(0,1fr) 104px; gap: 16px; align-items: start; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.post-item:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(31,35,41,.07); border-color: #dde5f0; }
.avatar { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, #edf2ff, #dce6ff); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.post-main { min-width: 0; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #f6f8fb; color: #687385; font-size: 12px; }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.orange { background: #fff3ea; color: #f07c39; }
.post-main h4, .thread-card h1, .editor-card h1 { margin: 0 0 8px; font-size: 18px; line-height: 1.45; font-weight: 700; }
.post-main p, .thread-body p, .reply-body p { margin: 0; color: #7c8797; font-size: 13px; line-height: 1.75; }
.post-bottom { justify-content: space-between; margin-top: 12px; }
.post-meta-line { color: var(--muted); font-size: 12px; }
.interact-row { display: flex; gap: 14px; color: #687385; font-size: 12px; }
.interact-row span { padding: 4px 0; }
.post-stats { text-align: right; color: var(--muted); font-size: 12px; padding-top: 6px; }
.post-stats strong { display: block; font-size: 22px; color: #222733; line-height: 1; margin-bottom: 4px; font-weight: 700; }
.sidebar-card { padding: 16px; }
.sidebar-card h4 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.simple-list, .rank-list { display: grid; gap: 10px; }
.simple-item, .rank-item { padding: 12px 14px; border-radius: 14px; background: #f7f8fb; border: 1px solid #f0f3f8; }
.simple-item strong, .rank-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.simple-item span, .rank-item span { color: var(--muted); font-size: 12px; line-height: 1.7; }
.recommend-card { padding: 12px; border-radius: 16px; background: #f7f8fb; border: 1px solid #f0f3f8; display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.recommend-thumb { width: 72px; height: 72px; border-radius: 16px; background: linear-gradient(135deg, #dbe7ff, #eef3ff); position: relative; overflow: hidden; }
.recommend-thumb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 25%, rgba(255,255,255,.65), transparent 26%); }
.recommend-head { justify-content: space-between; margin-bottom: 6px; }
.recommend-title { font-size: 13px; line-height: 1.5; color: #2a2f38; }
.recommend-follow { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; }
.breadcrumb { margin-top: 18px; color: var(--muted); font-size: 13px; }
.thread-card h1 { font-size: 28px; }
.author-line { display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: center; margin: 14px 0 18px; }
.author-avatar { width: 68px; height: 68px; border-radius: 22px; background: linear-gradient(135deg, #edf2ff, #dce6ff); color: var(--blue); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.thread-body { color: #323845; font-size: 15px; line-height: 1.95; }
.thread-toolbar { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.tool-btn { height: 38px; padding: 0 16px; border-radius: 999px; background: #f4f6fa; color: #4f5968; }
.reply-card { padding: 16px; display: grid; grid-template-columns: 52px 1fr; gap: 14px; }
.reply-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.reply-head strong { font-size: 15px; }
.editor-card h1 { font-size: 24px; }
.form-grid { display: grid; gap: 14px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; color: #596273; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fafbfc; outline: none; }
.field textarea { min-height: 240px; resize: vertical; line-height: 1.8; }
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { padding: 18px 0 34px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) {
  .main-wrap, .thread-layout { grid-template-columns: 1fr; }
  .bar-panel { position: relative; inset: auto; margin-top: 20px; grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 24px; }
  .hero-pattern { display: none; }
  .topbar-inner { height: auto; padding: 14px 0; flex-wrap: wrap; }
  .search { order: 3; width: 100%; max-width: none; }
}
@media (max-width: 760px) {
  .topbar-inner, .hero-wrap, .nav-wrap, .main-wrap, .thread-layout, .breadcrumb, .footer-inner { width: min(100% - 20px, 1320px); }
  .hero-banner { min-height: auto; }
  .hero-inner { padding: 20px; }
  .hero-top { flex-direction: column; }
  .bar-info h1, .thread-card h1 { font-size: 26px; }
  .post-item { grid-template-columns: 48px minmax(0,1fr); }
  .post-stats { grid-column: 2; text-align: left; }
}
@media (max-width: 520px) {
  .top-actions { width: 100%; justify-content: flex-end; }
  .bar-avatar { width: 88px; height: 88px; border-radius: 24px; font-size: 34px; }
  .tabbar { gap: 16px; }
}