:root {
  --bg: #070a17;
  --line: rgba(160,182,255,.14);
  --line-strong: rgba(160,182,255,.28);
  --text: #edf2ff;
  --muted: #a0acce;
  --dim: #67739b;
  --accent: #6fe3e8;
  --blue: #5b86ff;
  --violet: #bb8cff;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; overflow-x: hidden; overflow-y: auto; color: var(--text); font-family: var(--sans); font-size: 14px; background: radial-gradient(circle at 8% -4%, rgba(91,134,255,.18), transparent 28%), radial-gradient(circle at 88% 100%, rgba(111,227,232,.08), transparent 28%), var(--bg); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-shell { min-height: 100dvh; }
.app-topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(6,9,22,.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.app-brand, .topbar-actions, .topbar-center, .query-toolbar, .dataset-item, .history-heading { display: flex; align-items: center; }
.app-brand { gap: 11px; min-width: 220px; }.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); border: 1px solid rgba(111,227,232,.25); border-radius: 10px; background: rgba(111,227,232,.08); box-shadow: 0 0 24px -8px rgba(111,227,232,.8); }.brand-mark svg { width: 22px; height: 22px; }.app-brand strong { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.15; }.app-brand small { display: block; margin-top: 3px; color: var(--dim); font: 10px var(--display); letter-spacing: .06em; }
.topbar-center { gap: 8px; color: var(--dim); font: 11px var(--display); }.status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #7cf2c0; box-shadow: 0 0 11px rgba(124,242,192,.9); }.topbar-actions { gap: 14px; }.icon-button { width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: transparent; transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }.icon-button:hover { color: var(--accent); border-color: rgba(111,227,232,.42); background: rgba(111,227,232,.08); }.icon-button svg { width: 18px; height: 18px; }.topbar-home { color: var(--muted); font-size: 13px; }.topbar-home:hover { color: var(--accent); }
.data-layout { min-height: calc(100dvh - 72px); display: grid; grid-template-columns: 276px minmax(0,1fr); }.data-sidebar { display: flex; flex-direction: column; min-width: 0; padding: 24px 16px 16px; border-right: 1px solid var(--line); background: rgba(8,12,29,.72); }.data-workspace { min-width: 0; overflow-y: auto; background: rgba(11,16,37,.36); }.sidebar-heading, .workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }.eyebrow { margin: 0 0 8px; color: var(--accent); font: 10px var(--display); letter-spacing: .18em; }h1, h2, h3, p { margin-top: 0; }h1, h2, h3 { margin-bottom: 0; font-family: var(--serif); font-weight: 600; }.sidebar-heading h1 { font-size: 20px; }.dataset-count { color: var(--dim); font: 12px var(--display); }
.dataset-list { margin-top: 24px; }.dataset-item { width: 100%; gap: 10px; padding: 11px 10px; cursor: pointer; text-align: left; color: var(--muted); border: 1px solid transparent; border-radius: 8px; background: transparent; }.dataset-item + .dataset-item { margin-top: 4px; }.dataset-item:hover, .dataset-item.is-active { color: var(--text); border-color: rgba(111,227,232,.17); background: linear-gradient(90deg, rgba(91,134,255,.16), rgba(111,227,232,.04)); }.dataset-symbol { width: 27px; height: 27px; display: grid; place-items: center; flex: none; color: var(--accent); border: 1px solid rgba(111,227,232,.28); border-radius: 7px; font: 15px var(--display); }.dataset-item span:nth-child(2) { min-width: 0; }.dataset-item b, .dataset-item small { display: block; }.dataset-item b { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.dataset-item small { margin-top: 3px; color: var(--dim); font-size: 10px; }
.history-heading { justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }.history-heading .eyebrow { margin: 0; }.history-heading button { cursor: pointer; color: var(--dim); background: transparent; font-size: 10px; }.history-heading button:hover { color: #ff9aaf; }.question-history { min-height: 0; overflow-y: auto; margin-top: 8px; }.history-empty { padding: 17px 4px; color: var(--dim); font-size: 11px; line-height: 1.7; }.history-item { width: 100%; padding: 10px 4px; cursor: pointer; text-align: left; color: var(--muted); border-bottom: 1px solid rgba(160,182,255,.08); background: transparent; }.history-item:hover { color: var(--accent); }.history-item b { display: block; overflow: hidden; font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }.history-item small { display: block; margin-top: 4px; color: var(--dim); font: 10px var(--display); }.sidebar-note { display: flex; gap: 8px; margin-top: auto; padding: 15px 2px 0; color: var(--dim); border-top: 1px solid var(--line); font-size: 10px; line-height: 1.7; }.sidebar-note span { color: var(--accent); font-size: 17px; }.sidebar-note p { margin: 0; }
.workspace-heading { align-items: flex-end; min-height: 115px; padding: 25px 34px 21px; border-bottom: 1px solid var(--line); }.workspace-heading h2 { font-size: 27px; }.workspace-heading > div:first-child > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 12px; }.dataset-select { display: grid; gap: 7px; color: var(--dim); font: 10px var(--display); }.dataset-select select { min-width: 165px; height: 37px; padding: 0 10px; outline: 0; color: var(--text); border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.04); }.dataset-select select:focus { border-color: rgba(111,227,232,.58); box-shadow: 0 0 0 3px rgba(111,227,232,.08); }.dataset-select option { color: #10172f; }
.query-wrap { width: min(980px, 100% - 68px); margin: 34px auto 0; }.query-box { padding: 15px 16px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(5,9,25,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 42px -28px rgba(91,134,255,.7); }.query-box textarea { display: block; width: 100%; min-height: 52px; resize: vertical; outline: 0; border: 0; color: var(--text); background: transparent; line-height: 1.7; }.query-box textarea::placeholder { color: var(--dim); }.query-toolbar { justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--dim); font: 10px var(--display); }.ask-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; cursor: pointer; color: #061018; border-radius: 8px; background: linear-gradient(135deg,var(--blue),var(--accent)); font-size: 12px; font-weight: 700; transition: transform .25s var(--ease), opacity .25s var(--ease); }.ask-button:hover { transform: translateY(-1px); }.ask-button:disabled { cursor: wait; opacity: .5; }.ask-button span { font-size: 15px; }.example-questions { display: flex; gap: 8px; overflow-x: auto; padding: 11px 0 2px; scrollbar-width: none; }.example-questions button { flex: none; padding: 7px 10px; cursor: pointer; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.03); font-size: 11px; }.example-questions button:hover { color: var(--accent); border-color: rgba(111,227,232,.35); background: rgba(111,227,232,.07); }
.result-area { width: min(980px, 100% - 68px); margin: 32px auto 50px; }.result-empty { display: grid; place-content: center; min-height: 330px; padding: 36px; text-align: center; border: 1px dashed rgba(160,182,255,.2); border-radius: 12px; background: rgba(255,255,255,.02); }.empty-orbit { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 16px; color: var(--accent); border: 1px solid rgba(111,227,232,.3); border-radius: 50%; background: rgba(111,227,232,.08); font: 20px var(--display); }.result-empty h3 { font-size: 19px; }.result-empty p { margin: 8px 0 0; color: var(--dim); font-size: 12px; }
.result-loading { min-height: 330px; display: grid; place-content: center; gap: 12px; text-align: center; color: var(--dim); border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }.loading-line { width: min(280px, 60vw); height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(111,227,232,.05), rgba(111,227,232,.5), rgba(111,227,232,.05)); background-size: 200% 100%; animation: loading 1.2s linear infinite; }.loading-line:nth-child(2) { width: min(220px, 48vw); animation-delay: .1s; }.loading-line:nth-child(3) { width: min(160px, 35vw); animation-delay: .2s; }.loading-label { margin-top: 6px; font: 11px var(--display); }@keyframes loading { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.result-heading h3 { font-size: 21px; }.result-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }.result-tag { color: var(--accent); font: 10px var(--display); letter-spacing: .12em; }.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 22px; }.metric-card { padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.035); }.metric-card small { color: var(--dim); font-size: 11px; }.metric-card strong { display: block; margin-top: 9px; color: var(--text); font: 28px var(--display); font-weight: 500; }.metric-card span { display: block; margin-top: 4px; color: #7cf2c0; font: 10px var(--display); }
.analysis-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(250px,.85fr); gap: 14px; margin-top: 14px; }.result-panel { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }.result-panel h4 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; }.bar-chart { display: flex; align-items: flex-end; gap: clamp(11px,3vw,25px); height: 205px; margin-top: 24px; padding: 0 5px 24px; border-bottom: 1px solid var(--line); }.bar-column { display: flex; align-items: center; flex: 1; flex-direction: column; justify-content: flex-end; height: 100%; gap: 8px; }.bar-value { color: var(--dim); font: 10px var(--display); }.bar { width: min(42px, 100%); min-height: 8px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(91,134,255,.55)); box-shadow: 0 0 18px -5px rgba(111,227,232,.75); transform-origin: bottom; animation: bar-in .55s var(--ease) both; }.bar-column:nth-child(2) .bar { animation-delay: .06s; }.bar-column:nth-child(3) .bar { animation-delay: .12s; }.bar-column:nth-child(4) .bar { animation-delay: .18s; }.bar-column:nth-child(5) .bar { animation-delay: .24s; }.bar-label { color: var(--dim); font-size: 10px; white-space: nowrap; }@keyframes bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.insight-copy { min-height: 205px; display: flex; flex-direction: column; justify-content: space-between; }.insight-copy p { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }.insight-points { margin: 20px 0 0; padding-top: 15px; border-top: 1px solid var(--line); }.insight-points div { display: flex; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 11px; }.insight-points div:first-child { margin-top: 0; }.insight-points i { width: 6px; height: 6px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(111,227,232,.7); }.result-footnote { margin-top: 13px; color: var(--dim); font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 4; max-width: min(90vw,420px); padding: 10px 14px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(13,19,43,.96); box-shadow: 0 14px 40px -20px rgba(0,0,0,.8); opacity: 0; transform: translate(-50%,10px); transition: opacity .25s var(--ease), transform .25s var(--ease); font-size: 12px; }.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 800px) { body { overflow: auto; }.app-topbar { height: 62px; padding: 0 15px; }.app-brand { min-width: 0; }.app-brand small, .topbar-center, .topbar-home { display: none; }.data-layout { height: calc(100dvh - 62px); display: block; }.data-sidebar { display: none; }.workspace-heading { min-height: 105px; align-items: flex-start; padding: 20px 16px 17px; }.workspace-heading h2 { font-size: 23px; }.dataset-select { display: none; }.query-wrap, .result-area { width: calc(100% - 26px); }.query-wrap { margin-top: 18px; }.result-area { margin-top: 22px; }.metric-grid { grid-template-columns: 1fr; }.analysis-grid { grid-template-columns: 1fr; }.result-panel { padding: 16px; }.result-empty, .result-loading { min-height: 280px; }.bar-chart { height: 180px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* 修复（2026-09-12）：左侧栏高度不受限，提问历史一长就被 body 的 overflow:hidden 裁掉 */
.data-sidebar { overflow-y: auto; scrollbar-width: thin; }
.data-sidebar > * { flex-shrink: 0; }
.question-history { flex: 1 0 auto; }

/* 主站风格介绍区（2026-09-12）：文案与版式对齐 index.html 的实验卡片区 */
.page-intro { max-width: 980px; margin: 0 auto; padding: 38px 34px 4px; }
.page-intro .eyebrow { margin-bottom: 10px; }
.intro-title { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; line-height: 1.25; }
.intro-title .grad { background: linear-gradient(120deg, #5B86FF, #6FE3E8 55%, #BB8CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-tag { margin: 10px 0 0; color: var(--accent, #6FE3E8); font-size: 13px; letter-spacing: .05em; }
.intro-desc { margin: 12px 0 0; max-width: 660px; color: var(--muted, #A9B4D4); font-size: 13px; line-height: 1.9; }
.intro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.intro-chips li { padding: 6px 13px; color: var(--muted, #A9B4D4); border: 1px solid var(--line, rgba(160,182,255,.14)); border-radius: 999px; background: rgba(255,255,255,.035); font-size: 11px; }
