
:root {
  --background: #f4f6f6;
  --foreground: #1d282c;
  --card: #ffffff;
  --card-foreground: #1d282c;
  --popover: #ffffff;
  --popover-foreground: #1d282c;
  --primary: #a83847;
  --primary-foreground: #ffffff;
  --secondary: #eaf0ef;
  --secondary-foreground: #1d282c;
  --muted: #edf0f0;
  --muted-foreground: #5c6b70;
  --accent: #f4ebe0;
  --accent-foreground: #1d282c;
  --destructive: #b22837;
  --border: #d7dfe0;
  --input: #bac9cb;
  --ring: #a83847;
  --radius: 0.375rem;
}


* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; min-width: 320px; background: var(--background); color: var(--foreground); font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.demo-shell { flex: 1 0 auto; }
.site-footer { flex: 0 0 auto; padding: 19px 24px; border-top: 1px solid var(--border); background: #fff; color: var(--muted-foreground); font-size: 13px; text-align: center; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header-inner { display: flex; align-items: center; gap: 12px; max-width: 1020px; min-height: 66px; margin: auto; padding: 0 24px; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 20px; font-weight: 800; }
.brand-name { font-size: 17px; font-weight: 700; }
.brand-name span { font-weight: 500; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.site-privacy-link { margin-left: auto; color: #8d2937; font-size: 14px; font-weight: 650; text-decoration: none; }
.site-privacy-link:hover, .privacy-main a:hover { text-decoration: underline; text-underline-offset: 3px; }
.privacy-main { width: min(100%, 860px); margin: 42px auto 72px; padding: 0 24px; }
.privacy-main h1 { margin-bottom: 16px; }
.privacy-charter-notice { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid #8d2937; background: #fff6f6; color: #34434a; font-size: 14px; line-height: 1.8; }
.privacy-charter-notice strong { color: #8d2937; }
.privacy-lead { margin: 0 0 30px; padding: 16px 18px; border-left: 3px solid var(--primary); background: #fff; line-height: 1.8; }
.privacy-section { padding: 22px 0; border-top: 1px solid var(--border); }
.privacy-section h2 { margin: 0 0 12px; font-size: 18px; }
.privacy-section p, .privacy-section li { line-height: 1.85; color: #34434a; }
.privacy-section p { margin: 0 0 12px; }
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-section ul { margin: 0; padding-left: 1.5em; }
.privacy-section li + li { margin-top: 10px; }
.privacy-main a { color: #8d2937; }
.demo-badge { margin-left: auto; padding: 5px 9px; border: 1px solid #e1c8a7; border-radius: 4px; color: #8c591f; background: #fff9ed; font-size: 13px; }
.workspace { max-width: 900px; margin: 44px auto; padding: 0 24px 40px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 4px; color: var(--muted-foreground); font-size: 13px; }
h1 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 700; }
.refresh-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: #34434a; }
.refresh-button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.target-form { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 12px; align-items: end; margin-bottom: 22px; }
.target-form label { display: grid; gap: 7px; color: #4d5a5e; font-size: 14px; font-weight: 600; }
.target-form input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--input); border-radius: 5px; background: #fff; color: var(--foreground); font-size: 16px; }
.target-form input:focus { outline: 2px solid #d9a3a9; outline-offset: 1px; }
.open-button { height: 42px; padding: 0 18px; border: 1px solid var(--primary); border-radius: 5px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 650; white-space: nowrap; }
.open-button:hover { background: #8d2937; }
.floor-card { overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.floor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #edf1f1; }
.post-kind { color: var(--muted-foreground); font-size: 13px; }
h2 { margin: 5px 0 0; font-size: 19px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.floor-number { color: #77868a; font-size: 15px; font-weight: 700; white-space: nowrap; }
.total-card .floor-head { align-items: center; }
.total-card h2 { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 18px; }
.question-total { color: var(--primary); font-size: 46px; line-height: 1.1; font-weight: 750; font-variant-numeric: tabular-nums; }
.total-card .post-body { min-height: 0; padding-top: 20px; padding-bottom: 20px; color: #4d5a5e; }
.service-status { color: #637277; font-size: 14px; }
.post-body { min-height: 150px; padding: 27px 24px; font-size: 16px; line-height: 1.7; }
.post-body p { margin: 0; }
.floor-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 11px 24px; border-top: 1px solid #edf1f1; background: #fafbfb; }
.record-key { color: #637277; font-size: 14px; font-family: ui-monospace, Consolas, monospace; }
.question-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 86px; min-height: 38px; padding: 6px 12px; border: 1px solid #d6b2b6; border-radius: 5px; background: #fff; color: #a83847; font-size: 16px; font-weight: 700; }
.question-button:hover:not(:disabled) { background: #fff5f6; border-color: #a83847; }
.question-button.is-active { background: #a83847; color: #fff; border-color: #a83847; }
.question-button.is-active:hover:not(:disabled) { background: #8d2937; }
.error-line { margin-top: 14px; color: #a01e2f; font-size: 14px; }
.error-line a { color: #8b2633; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.privacy-note { margin: 18px 0 0; color: #637277; font-size: 13px; line-height: 1.6; }
@media (max-width: 600px) {
  .site-header-inner { min-height: 58px; padding: 0 16px; }
  .brand-name { font-size: 15px; }
  .brand-link { gap: 8px; }
  .site-privacy-link { font-size: 13px; }
  .privacy-main { margin: 28px auto 52px; padding: 0 16px; }
  .demo-badge { font-size: 12px; }
  .workspace { margin: 28px auto; padding: 0 16px 36px; }
  .target-form { grid-template-columns: minmax(0, 1fr) 96px; }
  .open-button { grid-column: 1 / -1; }
  .floor-head, .post-body, .floor-actions { padding-left: 16px; padding-right: 16px; }
  .question-total { font-size: 36px; }
}
