:root {
  /* Primitive tokens */
  --p-ink: oklch(0.25 0.015 275);
  --p-muted: oklch(0.43 0.018 275);
  --p-ground: oklch(0.982 0.004 250);
  --p-paper: oklch(0.995 0.002 250);
  --p-line: oklch(0.89 0.012 275);
  --p-violet: oklch(0.61 0.105 305);
  --p-violet-soft: oklch(0.94 0.035 305);
  --p-sage-soft: oklch(0.94 0.025 150);
  --p-amber-soft: oklch(0.945 0.035 85);
  --p-slate-soft: oklch(0.925 0.02 260);
  /* Semantic tokens */
  --text: var(--p-ink);
  --text-secondary: var(--p-muted);
  --page: var(--p-ground);
  --surface: var(--p-paper);
  --border: var(--p-line);
  --accent: var(--p-violet);
  /* Component tokens */
  --cell-radius: 16px;
  --control-radius: 999px;
  --shadow-focus: 0 0 0 4px oklch(0.61 0.105 305 / 0.14);
  --shadow-search: 0 14px 40px oklch(0.25 0.015 275 / 0.08), 0 2px 8px oklch(0.25 0.015 275 / 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--page);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.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; }

.site-header {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; border-radius: 8px; }
.brand-mark { width: 31px; height: 31px; stroke: none; }
.brand-mark rect:nth-child(1) { fill: var(--p-sage-soft); }
.brand-mark rect:nth-child(2) { fill: var(--p-violet); }
.brand-mark rect:nth-child(3) { fill: var(--p-muted); }
.brand-mark rect:nth-child(4) { fill: var(--p-amber-soft); }
.brand-type { display: grid; line-height: 1; gap: 6px; }
.brand-type strong { font-size: 20px; letter-spacing: 0.12em; }
.brand-type small { color: var(--text-secondary); font-family: Georgia, serif; font-size: 9px; letter-spacing: 0.24em; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.demo-badge { padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-secondary); font-size: 12px; }
.guide-button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font-size: 14px; transition: opacity 160ms ease-out; }
.guide-button:hover { opacity: 0.65; }
.guide-button svg { width: 17px; height: 17px; }

.home-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 32px 20px 40px; }
.hero { width: 100%; max-width: 42rem; display: flex; flex-direction: column; align-items: center; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }

.quadrant-wrap { position: relative; width: min(80vw, 28rem); margin: 24px 0 0; }
.quadrant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 108px; gap: 8px; width: 100%; }
.quadrant {
  --cell-active-bg: oklch(0.94 0 0);
  position: relative;
  min-width: 0;
  min-height: 44px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  column-gap: 14px;
  align-content: center;
  text-align: left;
  color: var(--text-secondary);
  background: oklch(0.94 0 0);
  border: 1px solid transparent;
  overflow: hidden;
  transition: border-color 180ms ease-out, background 180ms ease-out, color 180ms ease-out;
}
.quadrant.is-active { color: var(--text); background: var(--cell-active-bg); border-color: var(--text-secondary); }
.quadrant-ii { --cell-active-bg: var(--p-sage-soft); border-radius: var(--cell-radius) 5px 5px 5px; }
.quadrant-i { --cell-active-bg: var(--p-violet-soft); border-radius: 5px var(--cell-radius) 5px 5px; }
.quadrant-iv { --cell-active-bg: var(--p-slate-soft); border-radius: 5px 5px 5px var(--cell-radius); }
.quadrant-iii { --cell-active-bg: var(--p-amber-soft); border-radius: 5px 5px var(--cell-radius) 5px; }
.roman { grid-row: 1 / 3; align-self: center; font-family: Georgia, "Times New Roman", serif; font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -0.05em; }
.quadrant-name { align-self: end; font-size: 15px; font-weight: 650; line-height: 1.4; }
.quadrant-state { align-self: start; margin-top: 2px; color: currentColor; font-size: 11px; line-height: 1.5; white-space: nowrap; opacity: 0.82; }
.sample-marker { position: absolute; top: 10px; right: 12px; display: none; align-items: center; gap: 5px; color: currentColor; font-size: 10px; }
.is-active .sample-marker { display: inline-flex; }
.axis {
  position: absolute;
  padding: 3px 5px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: help;
  transition: color 160ms ease-out, background 160ms ease-out;
}
.axis:hover, .axis[aria-expanded="true"] { color: var(--text); background: var(--p-slate-soft); }
.axis-top { top: -25px; left: 0; }
.axis-bottom { bottom: -27px; left: 0; }
.axis-left { left: -32px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; }
.axis-right { right: -32px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; }

.quadrant.is-active { cursor: help; }
.axis-explainer {
  position: fixed;
  z-index: 6;
  width: min(21rem, calc(100vw - 24px));
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 50px oklch(0.25 0.015 275 / 0.16), 0 2px 8px oklch(0.25 0.015 275 / 0.06);
  text-align: left;
}
.axis-explainer .rationale-heading h2 { font-size: 16px; }
.axis-explainer p { margin-top: 8px; color: var(--text-secondary); font-size: 12px; line-height: 1.75; }
.axis-explainer .rationale-current { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .axis-explainer {
    top: auto;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: 30rem;
    margin-inline: auto;
  }
}
.quadrant-rationale {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 5;
  width: min(25rem, calc(100vw - 32px));
  max-height: 28rem;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 20px 60px oklch(0.25 0.015 275 / 0.16), 0 2px 8px oklch(0.25 0.015 275 / 0.06);
  text-align: left;
}
.rationale-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rationale-heading small { color: var(--text-secondary); font-family: Georgia, serif; font-size: 9px; letter-spacing: 0.16em; }
.rationale-heading h2 { margin-top: 4px; font-size: 18px; line-height: 1.4; }
.rationale-close { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; transition: background 160ms ease-out; }
.rationale-close:hover { background: var(--page); }
.rationale-close svg { width: 18px; height: 18px; }
.rationale-conclusion { margin: 12px 0 16px; color: var(--text); font-size: 15px; font-weight: 650; line-height: 1.6; }
.rationale-rule { padding: 12px 0; border-top: 1px solid var(--border); }
.rationale-rule h3 { margin-bottom: 5px; font-size: 14px; line-height: 1.5; }
.rationale-rule p, .rationale-dates, .rationale-half { color: var(--text-secondary); font-size: 12px; line-height: 1.75; }
.rationale-observation { margin-top: 5px; }
.rationale-dates { margin-top: 4px; padding: 10px 12px; border-radius: 8px; background: var(--page); }
.rationale-half { margin-top: 10px; }
.rationale-manual { display: block; margin-top: 14px; color: var(--text-secondary); font-size: 10px; line-height: 1.7; }

.quadrant-rules {
  margin-top: 14px;
  padding: 13px 15px;
  display: grid;
  gap: 8px;
  border-left: 3px solid var(--accent);
  border-radius: 4px 12px 12px 4px;
  background: var(--page);
}
.quadrant-rules p { color: var(--text-secondary); font-size: 12px; line-height: 1.7; }
.rules-title { color: var(--text); font-size: 12px; font-weight: 650; }
.rules-grid { display: grid; gap: 2px; }
.rules-row { display: grid; grid-template-columns: 4.9em repeat(4, 1fr); align-items: baseline; gap: 4px; padding: 3px 6px; border-radius: 6px; color: var(--text-secondary); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rules-row b { font-weight: 600; white-space: nowrap; }
.rules-row span { white-space: nowrap; text-align: right; }
.rules-row.is-head { padding-bottom: 1px; color: var(--text-secondary); font-size: 10.5px; opacity: 0.75; }
.rules-row.is-head b { font-weight: 400; }
.rules-row.is-default { background: var(--surface); color: var(--text); }
.rules-row.is-default b { font-weight: 650; }
.rules-row.is-default b::after { content: " 在用"; font-weight: 400; font-size: 10px; opacity: 0.7; }
.rules-note { font-size: 11.5px; }
.rules-style { color: var(--text) !important; font-size: 12.5px; }
.rules-avoid { font-size: 12.5px; }
.rules-common { padding-top: 8px; border-top: 1px solid var(--border); font-size: 11px; line-height: 1.65; }
.rationale-meaning { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--page); color: var(--text-secondary); font-size: 12.5px; line-height: 1.75; }
.rationale-compliance { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 10.5px; line-height: 1.7; }

.market-meta { text-align: center; font-size: 12px; line-height: 1.6; }
#quadrant-status { display: block; font-weight: 600; }
#quadrant-source { display: block; margin-top: 3px; color: var(--text-secondary); font-size: 11px; font-weight: 400; }
.market-meta.is-warning #quadrant-status,
.market-meta.is-error #quadrant-status { color: var(--text-secondary); }

.ask-form {
  width: 100%;
  min-height: 60px;
  margin-top: 28px;
  padding: 7px 8px 7px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--control-radius);
  box-shadow: var(--shadow-search);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.ask-form:focus-within { border-color: var(--accent); box-shadow: var(--shadow-search), var(--shadow-focus); }
.search-icon { width: 21px; height: 21px; flex: 0 0 auto; color: var(--text-secondary); }
.ask-form input { min-width: 0; flex: 1; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.ask-form input::placeholder { color: var(--text-secondary); opacity: 1; }
.submit-button { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--text); color: var(--surface); transition: transform 160ms ease-out, opacity 160ms ease-out; }
.submit-button:hover { transform: scale(1.05); }
.submit-button:active { transform: scale(0.96); }
.submit-button svg { width: 20px; height: 20px; }
.search-caption { width: 100%; padding: 8px 18px 0; display: flex; justify-content: space-between; gap: 16px; color: var(--text-secondary); font-size: 11px; }
.ask-feedback { width: 100%; margin-top: 16px; padding: 16px 16px 16px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-align: left; }
.ask-feedback strong { font-size: 13px; }
.ask-feedback p { margin-top: 5px; overflow-wrap: anywhere; font-size: 13px; }
.ask-feedback small { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 11px; }
.ask-feedback button { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; transition: background 160ms ease-out; }
.ask-feedback button:hover { background: var(--page); }
.ask-feedback svg { width: 18px; height: 18px; }

/* 阿衡对话窗口 */
.chat-panel { width: 100%; margin-top: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); text-align: left; overflow: hidden; }
.chat-thread { max-height: min(56vh, 460px); overflow-y: auto; padding: 6px 18px; display: grid; gap: 14px; scroll-behavior: smooth; }
.chat-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.75; }
.chat-msg.is-user { display: flex; justify-content: flex-end; }
.chat-msg.is-user p { max-width: 82%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--page); }
.chat-msg.is-bot p { max-width: 92%; }
.chat-msg.is-bot p.is-pending { color: var(--text-secondary); }
.chat-msg.is-bot p.is-pending::after { content: "…"; display: inline-block; animation: chat-blink 1.1s ease-in-out infinite; }
.chat-msg.is-bot p.is-error { color: var(--text-secondary); }
@keyframes chat-blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.chat-status { padding: 8px 18px 0; color: var(--text-secondary); font-size: 11px; }
.chat-suggest { padding: 12px 18px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chat-suggest button { padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-secondary); font-size: 12px; transition: border-color 160ms ease-out, color 160ms ease-out; }
.chat-suggest button:hover { border-color: var(--text-secondary); color: var(--text); }
.chat-form { margin-top: 14px; padding: 10px 12px 12px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); }
.chat-form input { min-width: 0; flex: 1; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--page); color: var(--text); font-size: 13.5px; outline: 0; }
.chat-form input:focus { border-color: var(--accent); }
.chat-send { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--text); color: var(--surface); transition: opacity 160ms ease-out; }
.chat-send:hover { opacity: 0.86; }
.chat-send svg { width: 17px; height: 17px; }

/* 设置里的阿衡接口 */
.settings-input select { flex: 1; min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--page); color: var(--text); font-size: 13px; }
.ai-actions { margin-top: 11px; display: flex; gap: 8px; }
.ai-button { min-height: 36px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--text); color: var(--surface); font-size: 12.5px; transition: opacity 160ms ease-out; }
.ai-button:hover { opacity: 0.86; }
.ai-button:disabled { opacity: 0.5; cursor: not-allowed; }
.ai-button.is-ghost { border: 1px solid var(--border); background: transparent; color: var(--text-secondary); }
#ai-status.is-warn { color: var(--text-secondary); }

.site-footer { width: 100%; max-width: 90rem; margin: 0 auto; padding: 20px 32px 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 11px; }
.footer-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-beian { display: flex; align-items: center; gap: 14px; }
.footer-beian a { color: var(--text-secondary); text-decoration: none; border-bottom: 1px solid var(--border); }
.footer-beian a:hover { color: var(--text); }

.guide-dialog { width: min(calc(100% - 32px), 30rem); max-height: calc(100dvh - 32px); margin: auto; padding: 26px; overflow-y: auto; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px oklch(0.25 0.015 275 / 0.18); }
.guide-dialog::backdrop { background: oklch(0.25 0.015 275 / 0.32); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-heading small { color: var(--text-secondary); font-family: Georgia, serif; font-size: 10px; letter-spacing: 0.16em; }
.dialog-heading h2 { margin-top: 5px; font-size: 21px; line-height: 1.35; }
.dialog-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; }
.dialog-close:hover { background: var(--page); }
.dialog-close svg { width: 19px; height: 19px; }
.guide-list { margin: 24px 0; display: grid; gap: 20px; list-style: none; }
.guide-list li { display: flex; align-items: flex-start; gap: 12px; }
.guide-list li > span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text-secondary); font-family: Georgia, serif; font-size: 12px; }
.guide-list strong { font-size: 14px; }
.guide-list p { margin-top: 3px; color: var(--text-secondary); font-size: 13px; }
.primary-button { width: 100%; min-height: 44px; border: 0; border-radius: 999px; background: var(--text); color: var(--surface); font-size: 14px; transition: opacity 160ms ease-out; }
.primary-button:hover { opacity: 0.84; }

@media (max-width: 600px) {
  .site-header { padding: 16px; }
  .header-actions { gap: 8px; }
  .demo-badge { display: none; }
  .brand-type strong { font-size: 18px; }
  .home-main { padding: 32px 20px 28px; }
  .quadrant-wrap { margin-top: 20px; }
  .quadrant-grid { grid-auto-rows: 88px; }
  .quadrant { padding: 14px; grid-template-rows: 1fr; column-gap: 10px; }
  .roman { grid-row: auto; font-size: 32px; }
  .quadrant-name { align-self: center; font-size: 14px; }
  .quadrant-state { display: none; }
  .cell-arrow { top: 9px; right: 10px; }
  .sample-marker { top: 7px; right: 10px; font-size: 9px; }
  .ask-form { margin-top: 36px; min-height: 58px; padding-left: 16px; }
  .ask-form input { font-size: 14px; }
  .search-caption { padding-inline: 12px; }
  .site-footer { padding: 16px 20px 22px; }
}

@media (max-width: 600px) {
  .quadrant-rationale {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100dvh - 32px);
    transform: none;
  }
  .axis-explainer {
    top: auto;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
  .axis-left { left: 0; right: auto; top: auto; bottom: -54px; transform: none; writing-mode: horizontal-tb; }
  .axis-right { right: 0; left: auto; top: auto; bottom: -54px; transform: none; writing-mode: horizontal-tb; }
}

@media (max-width: 380px) {
  .quadrant { padding: 10px; column-gap: 7px; }
  .roman { font-size: 28px; }
  .quadrant-name { font-size: 13px; }
  .sample-marker { display: none !important; }
  .is-active .cell-arrow { display: block; }
  .search-caption span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .quadrant:hover, .submit-button:hover { transform: none; }
}

/* 设置面板 */
.site-header { position: relative; }
.settings-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  transition: border-color 160ms ease-out, opacity 160ms ease-out;
}
.settings-button:hover { border-color: var(--text-secondary); }
.settings-button svg { width: 16px; height: 16px; }
.settings-button[aria-expanded="true"] { color: var(--surface); background: var(--text); border-color: var(--text); }

.settings-panel {
  position: absolute;
  top: calc(100% - 6px);
  right: 32px;
  z-index: 8;
  width: min(27rem, calc(100vw - 64px));
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 22px 60px oklch(0.25 0.015 275 / 0.18), 0 2px 8px oklch(0.25 0.015 275 / 0.06);
  text-align: left;
}
.settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.settings-heading small { color: var(--text-secondary); font-family: Georgia, serif; font-size: 9px; letter-spacing: 0.16em; }
.settings-heading h2 { margin-top: 4px; font-size: 17px; line-height: 1.4; }
.settings-close { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; }
.settings-close:hover { background: var(--page); }
.settings-close svg { width: 17px; height: 17px; }
.settings-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.settings-block h3 { font-size: 12.5px; font-weight: 650; line-height: 1.5; }
.tier-switch { margin-top: 10px; display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--page); }
.tier-switch button { min-height: 34px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); font-size: 13px; transition: background 160ms ease-out, color 160ms ease-out; }
.tier-switch button:hover { color: var(--text); }
.tier-switch button.is-on { background: var(--text); color: var(--surface); }
.settings-hint { margin-top: 9px; color: var(--text-secondary); font-size: 11.5px; line-height: 1.7; }
.settings-input { margin-top: 10px; display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 12px; }
.settings-input input { flex: 1; min-width: 0; min-height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--page); color: var(--text); font-size: 13px; }
.style-list { margin-top: 12px; display: grid; gap: 8px; }
.style-card { padding: 11px 13px; border-radius: 12px; background: var(--page); }
.style-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.style-card-head b { font-size: 13.5px; }
.style-card-head span { color: var(--text-secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.style-can, .style-cannot { margin-top: 5px; font-size: 12px; line-height: 1.65; }
.style-can { color: var(--text); }
.style-cannot { color: var(--text-secondary); }
.settings-compliance { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 10.5px; line-height: 1.7; }

@media (max-width: 600px) {
  .settings-button { padding: 0 12px; }
  .settings-button svg { width: 15px; height: 15px; }
  .settings-panel { left: 16px; right: 16px; width: auto; max-height: calc(100dvh - 96px); }
  .tier-switch { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 12px; }
  .tier-switch button { padding: 0 8px; }
}

/* 风格测试问卷 */
.settings-tag { margin-left: 6px; color: var(--text-secondary); font-weight: 400; font-size: 11px; }
.settings-lead { margin-top: 4px; color: var(--text-secondary); font-size: 11.5px; }
.quiz { margin-top: 12px; display: grid; gap: 16px; }
.quiz-group { display: grid; gap: 13px; }
.quiz-group-title { margin: 0; font-size: 11.5px; font-weight: 650; color: var(--text-secondary); letter-spacing: 0.04em; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.quiz-item { margin: 0; padding: 0; border: 0; }
.quiz-item legend { display: flex; align-items: center; gap: 7px; padding: 0; font-size: 12.5px; font-weight: 650; line-height: 1.5; }
.quiz-index { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--page); color: var(--text-secondary); font-size: 10px; font-weight: 600; }
.quiz-options { margin-top: 7px; display: grid; gap: 4px; }
.quiz-options label { display: block; cursor: pointer; }
.quiz-options input { position: absolute; width: 0; height: 0; opacity: 0; }
.quiz-options span { display: block; padding: 7px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-secondary); font-size: 12px; line-height: 1.5; transition: border-color 160ms ease-out, color 160ms ease-out, background 160ms ease-out; }
.quiz-options label:hover span { border-color: var(--text-secondary); color: var(--text); }
.quiz-options input:checked + span { border-color: var(--text); background: var(--text); color: var(--surface); }
.quiz-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-progress { margin-top: 10px; color: var(--text-secondary); font-size: 11px; }
.quiz-progress.is-done { color: var(--text); }
.quiz-submit { width: 100%; min-height: 42px; margin-top: 12px; border: 0; border-radius: 999px; background: var(--text); color: var(--surface); font-size: 13.5px; transition: opacity 160ms ease-out; }
.quiz-submit:hover { opacity: 0.86; }
.quiz-submit:disabled { background: var(--border); color: var(--text-secondary); cursor: not-allowed; opacity: 1; }
.quiz-result { margin-top: 12px; padding: 13px 15px; border-radius: 12px; background: var(--page); }
.quiz-result-head { font-size: 13.5px; }
.quiz-result-head b { margin-left: 2px; font-size: 16px; }
.quiz-result-desc { margin-top: 6px; color: var(--text); font-size: 12px; line-height: 1.65; }
.quiz-result-score { margin-top: 6px; color: var(--text-secondary); font-size: 11.5px; }
.quiz-result-breakdown { margin-top: 5px; color: var(--text-secondary); font-size: 11px; line-height: 1.6; }
.quiz-result-cap { margin-top: 6px; color: var(--text); font-size: 11px; line-height: 1.6; }
.quiz-result-note { margin-top: 6px; color: var(--text-secondary); font-size: 11px; line-height: 1.6; }
