@font-face { font-family: FuguiSerif; src: url('/assets/fonts/source-han-serif/SourceHanSerifCN-400.woff2') format('woff2'); font-display: swap; }
:root { color-scheme: light; color: #283c31; background: #f8f8f3; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #8c794a; outline-offset: 3px; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #dce1d5; padding: 12px max(22px, calc((100vw - 980px) / 2)); background: #f8f8f3; }
.site-header .brand { display: inline-flex; gap: 12px; align-items: center; }
.site-header .brand img { width: 52px; height: 31px; object-fit: contain; }
.site-header .brand span { border-left: 1px solid #ccd4c3; padding-left: 12px; font-size: 12px; letter-spacing: .1em; }
.site-nav { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.site-nav a { color: #54604f; }
.site-nav [data-nav].is-active { color: #283c31; border-bottom: 2px solid #8c794a; padding-bottom: 3px; }
.site-nav .back-product { color: #8c794a; }

main { width: min(100% - 44px, 720px); margin: clamp(32px, 7vh, 72px) auto 56px; }
body[data-wide='false'] main { width: min(100% - 44px, 640px); }
footer { border-top: 1px solid #dce1d5; color: #697365; font-size: 11px; letter-spacing: .12em; text-align: center; padding: 26px 0 40px; }

.page-head .eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .13em; color: #697365; }
.page-head .eyebrow::before { content: ''; width: 22px; height: 1px; background: #8c794a; }
.page-head h1 { font: 400 clamp(26px, 5.4vw, 33px)/1.7 FuguiSerif, "Songti SC", serif; margin: 20px 0 18px; text-wrap: balance; }
.guest-note { border: 1px dashed #c4ceba; border-radius: 6px; padding: 12px 16px; color: #54604f; font-size: 13px; line-height: 1.9; }

.filters { display: flex; gap: 10px; margin: 6px 0 24px; }
.chip { border: 1px solid #c4ceba; border-radius: 999px; padding: 6px 16px; font-size: 13px; color: #54604f; background: #fff; }
.chip.is-active { background: #2b4338; border-color: #2b4338; color: #f8f8f3; }

.topic-list { display: grid; gap: 14px; }
.topic-card { display: block; border: 1px solid #dce1d5; border-radius: 6px; background: #fff; padding: 16px 18px; }
.topic-card .kind { font-size: 11px; letter-spacing: .12em; color: #8c794a; }
.topic-card h2 { font: 400 clamp(17px, 3.6vw, 20px)/1.7 FuguiSerif, "Songti SC", serif; margin: 8px 0; }
.topic-card .excerpt { color: #54604f; font-size: 13px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card .meta { display: flex; flex-wrap: wrap; gap: 12px; color: #8a9184; font-size: 12px; margin-top: 10px; }

.identity-prompt { border: 1px solid #c4ceba; border-radius: 6px; background: #fff; padding: 22px; font-size: 14px; line-height: 2; }
.identity-prompt .actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.actions a, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid #c4ceba; border-radius: 4px; background: #fff; font-size: 13px; }
.actions .primary, .button.primary { background: #2b4338; border-color: #2b4338; color: #f8f8f3; }
.list-actions { display: flex; justify-content: center; margin: 18px 0; }
.empty { color: #697365; text-align: center; padding: 30px 0; font-size: 13px; }
.status-line { color: #697365; font-size: 13px; }

.topic-body { border: 1px solid #dce1d5; border-radius: 6px; background: #fff; padding: 22px; }
.topic-body .kind { font-size: 11px; letter-spacing: .12em; color: #8c794a; }
.topic-body h1 { font: 400 clamp(22px, 5vw, 28px)/1.7 FuguiSerif, "Songti SC", serif; margin: 10px 0 14px; }
.topic-body .meta { display: flex; flex-wrap: wrap; gap: 12px; color: #8a9184; font-size: 12px; margin-bottom: 16px; }
.topic-body .paragraph { font-size: 15px; line-height: 2; margin: 0 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.topic-body .field-label { font-size: 11px; letter-spacing: .12em; color: #8c794a; margin: 18px 0 6px; }
.topic-body details { border-top: 1px dashed #dce1d5; margin-top: 18px; padding-top: 12px; }
.topic-body summary { cursor: pointer; color: #54604f; font-size: 13px; }
.state-badge { display: inline-block; border-radius: 999px; font-size: 11px; padding: 3px 10px; border: 1px solid #c4ceba; color: #54604f; }
.state-badge[data-state='pending_review'] { color: #8c6a1d; border-color: #d8c191; background: #faf5e8; }
.state-badge[data-state='needs_changes'] { color: #8a4a2a; border-color: #ddb49c; background: #faf0e9; }
.state-badge[data-state='published'] { color: #2b4338; border-color: #9db4a0; background: #eef3ec; }
.state-badge[data-state='withdrawn'] { color: #6b6f68; border-color: #c9cdc5; background: #f1f2ee; }

.replies { margin-top: 30px; }
.replies h2 { font: 400 18px/1.7 FuguiSerif, "Songti SC", serif; margin: 0 0 14px; }
.reply { border: 1px solid #dce1d5; border-radius: 6px; background: #fff; padding: 14px 16px; margin-bottom: 12px; }
.reply .meta { display: flex; flex-wrap: wrap; gap: 10px; color: #8a9184; font-size: 12px; margin-bottom: 8px; }
.reply .body { font-size: 14px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply .quote { border-left: 2px solid #c4ceba; color: #697365; font-size: 12px; padding: 2px 0 2px 10px; margin-bottom: 8px; }
.reply .reply-action { color: #8c794a; font-size: 12px; margin-top: 8px; }

.reply-panel, .editor-panel { border: 1px solid #c4ceba; border-radius: 6px; background: #fff; padding: 20px; margin-top: 18px; }
label { display: block; font-size: 13px; margin: 14px 0 6px; }
label .optional { color: #8c794a; font-size: 11px; margin-left: 8px; letter-spacing: .1em; }
input[type='text'], input:not([type]), textarea { width: 100%; border: 1px solid #c4ceba; border-radius: 4px; background: #fbfbf8; padding: 10px 12px; font: inherit; font-size: 14px; color: #283c31; }
textarea { line-height: 1.9; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid #8c794a; outline-offset: 1px; }
.form-msg { font-size: 13px; line-height: 1.9; color: #54604f; min-height: 1em; }
.form-msg[data-level='error'] { color: #8a4a2a; }
.hint { color: #697365; font-size: 12px; line-height: 1.9; }
.quote-line { border-left: 2px solid #8c794a; padding-left: 10px; color: #697365; font-size: 12px; }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 26px 0; }
.choice-card { display: grid; gap: 8px; text-align: left; border: 1px solid #dce1d5; border-radius: 6px; background: #fff; padding: 20px; }
.choice-card:hover { border-color: #8c794a; }
.choice-card .choice-eyebrow { font-size: 11px; letter-spacing: .12em; color: #8c794a; }
.choice-card strong { font: 400 20px/1.6 FuguiSerif, "Songti SC", serif; }
.choice-card span:last-child, .choice-card .choice-desc { color: #54604f; font-size: 13px; line-height: 1.9; }

.mine-list { display: grid; gap: 14px; }
.mine-item { border: 1px solid #dce1d5; border-radius: 6px; background: #fff; padding: 16px 18px; }
.mine-item h2 { font: 400 17px/1.7 FuguiSerif, "Songti SC", serif; margin: 6px 0; }
.mine-item .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #8a9184; font-size: 12px; margin-bottom: 8px; }
.mine-item .decision { color: #697365; font-size: 13px; line-height: 1.9; margin: 8px 0; }
.mine-item .row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.mine-item textarea { margin-top: 8px; }
.authorize-steps { color: #54604f; font-size: 13px; line-height: 2.2; padding-left: 18px; margin: 14px 0 0; }

@media (max-width: 600px) {
  .site-header { padding: 10px 16px; }
  .site-nav { gap: 12px; font-size: 12px; }
  .site-nav .back-product { display: none; }
  main { width: calc(100% - 32px); }
  .topic-body { padding: 16px; }
  .choice-cards { grid-template-columns: 1fr; }
}
