:root {
  --ink: #18201d;
  --muted: #64706b;
  --paper: #f3f1eb;
  --surface: #fffdf8;
  --line: #d9ddd7;
  --green: #1d6b55;
  --green-soft: #dfece6;
  --orange: #d86c38;
  --orange-soft: #f6e4da;
  --red: #b94a42;
  --yellow: #d6a23a;
  --shadow: 0 18px 50px rgba(26, 39, 33, .08);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, select, input { font: inherit; }
button { cursor: pointer; }
.hero { background: #173f35; color: #f8f6ef; padding: 58px 24px 92px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; right: -90px; top: -300px; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.hero-inner { max-width: 1180px; margin: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; position: relative; z-index: 1; }
.eyebrow, .kicker { letter-spacing: .16em; font-size: 12px; font-weight: 700; color: #d7aa73; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.08; margin: 0; letter-spacing: -.04em; }
.hero-copy { max-width: 700px; color: #c7d5d0; line-height: 1.8; margin: 22px 0 0; font-size: 17px; }
.hero-note { min-width: 245px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.hero-note p { color: #bfd0ca; font-size: 13px; line-height: 1.6; margin: 8px 0 0; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #7dd3ac; margin-right: 8px; box-shadow: 0 0 0 4px rgba(125,211,172,.12); }
.shell { max-width: 1180px; margin: -44px auto 0; padding: 0 24px 60px; position: relative; z-index: 2; }
.filter-bar { background: var(--surface); box-shadow: var(--shadow); padding: 18px 20px; display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.filter-bar label { display: grid; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 700; }
select, input { min-height: 42px; border: 1px solid var(--line); background: white; color: var(--ink); padding: 0 12px; outline: none; }
select:focus, input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,107,85,.12); }
.filter-bar button, .question-row button, .security-test button { min-height: 42px; border: 0; padding: 0 18px; color: white; background: var(--green); font-weight: 700; }
#filter-status { margin: 0 0 10px auto; color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 28px; margin: 34px 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 0 2px 14px; color: var(--muted); white-space: nowrap; font-weight: 700; border-bottom: 3px solid transparent; }
.tab.active { color: var(--green); border-bottom-color: var(--orange); }
.panel { display: none; }
.panel.active { display: block; }
.kpi-grid, .model-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi, .model-stat { background: var(--surface); padding: 22px; border-top: 3px solid var(--green); }
.kpi small, .model-stat small { display: block; color: var(--muted); margin-bottom: 10px; }
.kpi strong, .model-stat strong { font-size: 28px; letter-spacing: -.03em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.surface { background: var(--surface); padding: 24px; margin-bottom: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.section-heading h2, .section-intro h2 { margin: 0; font-size: 24px; }
.section-heading span, .section-intro p { color: var(--muted); font-size: 13px; }
.bar-chart { display: grid; gap: 12px; min-height: 240px; align-content: center; }
.bar-row { display: grid; grid-template-columns: 72px 1fr 55px; align-items: center; gap: 12px; font-size: 13px; }
.bar-track { height: 12px; background: #e6e8e3; overflow: hidden; }
.bar-fill { height: 100%; background: var(--green); transition: width .35s ease; }
.bar-row.highlight .bar-fill { background: var(--orange); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; }
.probability { color: var(--red); font-weight: 700; }
.section-intro { max-width: 700px; margin: 12px 0 28px; }
.section-intro p:last-child { line-height: 1.8; font-size: 15px; }
.segment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.segment-card { background: var(--surface); padding: 24px; border-bottom: 4px solid var(--green); }
.segment-card:nth-child(1) { border-color: var(--orange); }
.segment-card h3 { margin: 0 0 20px; }
.segment-card dl { margin: 0; display: grid; gap: 14px; }
.segment-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.segment-card dt { color: var(--muted); font-size: 13px; }
.segment-card dd { margin: 0; font-weight: 700; }
.assistant-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.assistant-box { background: var(--surface); padding: 28px; box-shadow: var(--shadow); }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.suggestions button { border: 1px solid var(--line); background: transparent; padding: 8px 12px; color: var(--green); }
.assistant-box label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.question-row { display: flex; gap: 10px; }
.question-row input { flex: 1; }
.answer { margin-top: 20px; padding: 20px; background: var(--green-soft); line-height: 1.8; min-height: 100px; }
.answer.blocked { background: var(--orange-soft); color: #833b25; }
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.security-grid article { padding: 22px 0; border-top: 1px solid var(--ink); }
.security-grid span { color: var(--orange); font-weight: 700; }
.security-grid h3 { margin: 30px 0 10px; }
.security-grid p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.security-test { margin-top: 28px; background: var(--surface); padding: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.security-test p { font-weight: 700; }
.security-test code { background: #ece9e1; padding: 10px 12px; color: var(--red); }
#security-result { color: var(--green); }
footer { display: flex; justify-content: space-between; gap: 30px; margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 850px) {
  .hero-inner, .assistant-layout { display: block; }
  .hero-note { margin-top: 30px; max-width: 300px; }
  .two-col { grid-template-columns: 1fr; }
  .kpi-grid, .model-strip, .segment-grid, .security-grid { grid-template-columns: repeat(2, 1fr); }
  #filter-status { width: 100%; margin: 0; }
}
@media (max-width: 520px) {
  .hero { padding-top: 38px; }
  .shell { padding-left: 14px; padding-right: 14px; }
  .kpi-grid, .model-strip, .segment-grid, .security-grid { grid-template-columns: 1fr; }
  .question-row { display: grid; }
  footer { display: block; }
}

