:root {
  color: #18201d;
  background: #f4f3ef;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-synthesis: none;
  --ink: #18201d;
  --muted: #69716d;
  --line: #d7d9d5;
  --paper: #fff;
  --green: #176b50;
  --green-soft: #e7f0eb;
  --amber: #a85d12;
  --amber-soft: #f7ead9;
  --red: #a33b32;
  --red-soft: #f5e4e1;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: #f4f3ef; color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100% - 1120px) / 2)); border-bottom: 1px solid #dedfdb; background: rgba(255,255,255,.88); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: white; font: 700 12px/1 Arial; }
.brand strong, .brand small { display: block; letter-spacing: 0; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.product-nav { display: flex; align-items: center; gap: 22px; }
.product-nav a { color: #46515b; font-size: 14px; text-decoration: none; }
.product-nav a[aria-current="page"] { color: #111820; font-weight: 700; }
.research-badge { padding: 5px 8px; border: 1px solid #b9bdb9; color: #5d6561; font-size: 12px; }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.search-band { min-height: 230px; display: grid; grid-template-columns: 1fr minmax(340px, 450px); align-items: center; gap: 56px; border-bottom: 1px solid var(--line); }
.eyebrow, .section-heading p { margin: 0 0 8px; color: var(--green); font-size: 13px; font-weight: 700; }
h1 { margin: 0; font-size: 42px; line-height: 1.2; letter-spacing: 0; }
.search-form label { display: block; margin-bottom: 9px; color: #505854; font-size: 13px; }
.search-row { display: grid; grid-template-columns: 1fr 96px; height: 50px; }
.search-row input { width: 100%; min-width: 0; padding: 0 15px; border: 1px solid #aeb3af; border-right: 0; outline: 0; background: white; font-size: 17px; }
.search-row input:focus { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.search-row button { display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: var(--green); color: white; font-weight: 700; }
.search-row svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.input-error { min-height: 18px; margin: 7px 0 0; color: var(--red); font-size: 12px; }
.loading-state { min-height: 330px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.loader { width: 22px; height: 22px; border: 2px solid #c8ccc8; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { margin: 64px 0; padding: 32px; border-left: 4px solid var(--red); background: white; }
.error-state h2 { margin: 0 0 8px; font-size: 22px; }
.error-state p { color: var(--muted); }
.error-state button { padding: 10px 14px; border: 1px solid var(--ink); background: transparent; }
.identity-row { display: flex; justify-content: space-between; align-items: end; padding: 28px 0 18px; }
.stock-symbol { margin: 0 0 4px; color: var(--muted); font: 13px/1.2 Consolas, monospace; }
.identity-row h2 { margin: 0; font-size: 27px; }
.as-of { text-align: right; color: var(--muted); font-size: 12px; }
.as-of span, .as-of time { display: block; }
.as-of time { margin-top: 5px; color: var(--ink); }
.decision-chain { margin-bottom: 20px; border: 1px solid var(--line); background: white; }
.decision-chain-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.decision-chain-heading span, .chain-step p, .chain-conclusion span { color: var(--muted); font-size: 11px; }
.decision-chain-heading h2 { margin: 5px 0 0; font-size: 20px; }
.decision-chain-heading > p { max-width: 480px; margin: 0; color: #33413b; font-size: 14px; font-weight: 700; line-height: 1.6; text-align: right; }
.decision-chain-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.chain-step { position: relative; min-width: 0; min-height: 150px; padding: 22px 20px 20px; }
.chain-step + .chain-step { border-left: 1px solid var(--line); }
.chain-step::after { content: ""; position: absolute; top: 50%; right: -5px; z-index: 1; width: 9px; height: 9px; border-top: 1px solid #9ba39e; border-right: 1px solid #9ba39e; background: white; transform: rotate(45deg); }
.chain-step:last-child::after { display: none; }
.chain-index { color: #9aa09c; font: 10px/1 Consolas, monospace; }
.chain-step p { margin: 13px 0 7px; }
.chain-step strong { display: block; min-height: 44px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.chain-step small { display: block; margin-top: 8px; color: #69716d; font-size: 11px; line-height: 1.6; }
.market-step { border-top: 3px solid #647079; }
.weekly-step { border-top: 3px solid #8b6d3f; }
.daily-step { border-top: 3px solid var(--green); }
.lower-step { border-top: 3px solid #55758a; }
.chain-conclusion { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--line); background: #f4f6f3; }
.chain-conclusion strong { font-size: 14px; line-height: 1.7; }
.verdict { padding: 30px 34px 26px; border-top: 4px solid var(--amber); background: white; }
.verdict[data-tone="positive"] { border-color: var(--green); }
.verdict[data-tone="danger"] { border-color: var(--red); }
.verdict-heading { display: flex; align-items: baseline; gap: 18px; }
.verdict-heading span { color: var(--muted); font-size: 13px; }
.verdict-heading strong { color: var(--amber); font-size: 30px; }
.verdict[data-tone="positive"] .verdict-heading strong { color: var(--green); }
.verdict[data-tone="danger"] .verdict-heading strong { color: var(--red); }
.verdict > p { max-width: 780px; margin: 15px 0 26px; font-size: 17px; line-height: 1.8; }
.decision-summary { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 28px; border: 1px solid var(--line); }
.decision-summary > div { min-width: 0; padding: 18px 20px; }
.decision-summary > div:nth-child(even) { border-left: 1px solid var(--line); }
.decision-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.decision-summary > .boundary-summary { grid-column: 1 / -1; display: grid; grid-template-columns: 150px minmax(190px, .7fr) 1fr; align-items: center; gap: 18px; background: #f6f1e9; }
.decision-summary span { color: var(--muted); font-size: 11px; }
.decision-summary strong { display: block; margin-top: 7px; font-size: 15px; line-height: 1.65; }
.decision-summary .boundary-summary strong { margin: 0; color: var(--amber); font: 700 19px/1.4 Consolas, "Microsoft YaHei", sans-serif; }
.decision-summary .boundary-summary p { margin: 0; color: #565d59; font-size: 12px; line-height: 1.6; }
.decision-summary > div > p { margin: 7px 0 0; color: #5d6561; font-size: 12px; line-height: 1.6; }
.decision-summary .strategy-cell strong { color: var(--ink); font-size: 18px; }
.state-scale { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.state-scale span { position: relative; padding-top: 13px; color: #929793; font-size: 11px; text-align: center; }
.state-scale span::before { content: ""; position: absolute; top: -4px; left: calc(50% - 4px); width: 8px; height: 8px; background: #c8cbc8; }
.state-scale span.active { color: var(--ink); font-weight: 700; }
.state-scale span.active::before { background: currentColor; transform: scale(1.45); }
.section-block { padding: 52px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.section-index { padding-top: 2px; color: #9aa09c; font: 12px/1 Consolas, monospace; }
.section-heading p { margin-bottom: 4px; }
.section-heading h2 { margin: 0; font-size: 24px; }
.location-grid { display: grid; grid-template-columns: 1.1fr 1.5fr 1.1fr; background: white; border: 1px solid var(--line); }
.location-grid > * { min-width: 0; padding: 24px; }
.location-grid > * + * { border-left: 1px solid var(--line); }
.location-primary span, .locator span, .action-panel span, .evidence-grid span { color: var(--muted); font-size: 12px; }
.location-primary strong { display: block; margin: 9px 0 6px; font-size: 23px; }
.location-primary p, .locator p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.metrics div { text-align: center; }
.metrics dt { color: var(--muted); font-size: 11px; }
.metrics dd { margin: 12px 0 0; font: 700 18px/1 Consolas, monospace; }
.locator strong { display: block; margin: 9px 0 6px; font-size: 17px; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.path { min-height: 260px; padding: 22px; border-top: 3px solid #818984; background: white; }
.path.improve { border-color: var(--green); }
.path.risk { border-color: var(--red); }
.path span { color: var(--muted); font-size: 12px; }
.path h3 { margin: 14px 0 8px; font-size: 18px; }
.path p { margin: 0; color: #525a56; font-size: 13px; line-height: 1.7; }
.path dl { margin: 17px 0 0; }
.path dl div { padding: 9px 0; border-top: 1px solid #eceeeb; }
.path dt { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.path dd { margin: 0; color: #414945; font-size: 12px; line-height: 1.55; }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.action-panel { min-height: 180px; padding: 27px; background: white; border: 1px solid var(--line); }
.action-panel.holder { border-left: 4px solid var(--amber); }
.action-panel.flat { border-left: 4px solid #687b8b; }
.action-panel h3 { margin: 15px 0 10px; font-size: 25px; }
.action-panel p { max-width: 440px; margin: 0; color: #525a56; line-height: 1.8; }
.management-contract { margin-top: 14px; border: 1px solid var(--line); background: white; }
.management-heading { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 24px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.management-heading span, .condition span { color: var(--muted); font-size: 11px; }
.management-heading strong { display: block; margin-top: 7px; color: var(--green); font-size: 20px; }
.management-heading p { margin: 0; color: #48524d; font-size: 13px; line-height: 1.7; }
.management-conditions { display: grid; grid-template-columns: repeat(4, 1fr); }
.condition { min-width: 0; min-height: 130px; padding: 20px; border-top: 3px solid #78817c; }
.condition + .condition { border-left: 1px solid var(--line); }
.condition.keep { border-top-color: var(--green); }
.condition.warning { border-top-color: var(--amber); }
.condition.reassess { border-top-color: var(--red); }
.condition.recovery { border-top-color: #55758a; }
.condition p { margin: 10px 0 0; color: #3f4843; font-size: 12px; line-height: 1.7; }
.lower-progress-role { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); background: #f5f7f5; color: #58615d; font-size: 12px; line-height: 1.7; }
.chart-wrap { position: relative; height: 360px; padding: 16px; background: white; border: 1px solid var(--line); }
#structure-chart { display: block; width: 100%; height: 100%; }
#chart-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); }
.chart-legend { display: flex; gap: 20px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { display: inline-block; width: 20px; height: 2px; background: var(--ink); }
.chart-legend .line-pivot { background: var(--amber); }
.chart-legend .dot-current { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: white; }
.evidence-grid > div { min-width: 0; padding: 23px; }
.evidence-grid > div + div { border-left: 1px solid var(--line); }
.evidence-grid strong { display: block; margin: 11px 0 7px; font-size: 16px; overflow-wrap: anywhere; }
.evidence-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.reasoning-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-bottom: 14px; }
.reasoning-panel { padding: 25px 27px; border: 1px solid var(--line); background: white; }
.reasoning-panel h3 { margin: 0 0 18px; font-size: 18px; }
.fact-list, .limit-list { margin: 0; padding-left: 22px; }
.fact-list li, .limit-list li { padding: 6px 0; color: #3f4743; font-size: 13px; line-height: 1.7; }
.fact-list li::marker { color: var(--green); font-weight: 700; }
.method-statement { margin: 0 0 15px; padding-left: 14px; border-left: 3px solid var(--green); color: #27312d; font-size: 14px; font-weight: 700; line-height: 1.75; }
.limits-panel { background: #f8f8f5; }
details { margin-top: 12px; border: 1px solid var(--line); background: white; }
summary { padding: 16px 20px; cursor: pointer; font-size: 13px; font-weight: 700; }
.research-details { margin: 0; padding: 0 20px 20px; }
.research-details div { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid #eceeeb; font-size: 12px; }
.research-details dt { color: var(--muted); }
.research-details dd { margin: 0; overflow-wrap: anywhere; }
footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 40px; color: var(--muted); font-size: 11px; line-height: 1.8; }

@media (max-width: 760px) {
  .topbar { padding: 0 18px; }
  main, footer { width: min(100% - 28px, 1120px); }
  .search-band { min-height: 260px; grid-template-columns: 1fr; gap: 24px; align-content: center; }
  h1 { font-size: 32px; }
  .search-row { grid-template-columns: 1fr 82px; }
  .identity-row { align-items: center; }
  .identity-row h2 { font-size: 23px; }
  .decision-chain-heading { display: block; padding: 18px; }
  .decision-chain-heading > p { margin-top: 10px; text-align: left; }
  .decision-chain-grid { grid-template-columns: 1fr; }
  .chain-step { min-height: 0; padding: 17px 18px; }
  .chain-step + .chain-step { border-left: 0; border-top-width: 1px; border-top-color: var(--line); }
  .chain-step::after { top: auto; right: 50%; bottom: -5px; transform: rotate(135deg); }
  .chain-step strong { min-height: 0; }
  .chain-conclusion { grid-template-columns: 1fr; gap: 6px; }
  .verdict { padding: 24px 20px; }
  .verdict-heading { display: block; }
  .verdict-heading strong { display: block; margin-top: 8px; font-size: 27px; }
  .verdict > p { font-size: 15px; }
  .decision-summary { grid-template-columns: 1fr; }
  .decision-summary > div:nth-child(even) { border-left: 0; }
  .decision-summary > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .decision-summary > .boundary-summary { grid-column: auto; grid-template-columns: 1fr; gap: 4px; }
  .decision-summary .boundary-summary strong { margin: 6px 0; }
  .state-scale span { font-size: 9px; }
  .section-block { padding: 40px 0; }
  .location-grid, .paths, .actions-grid, .evidence-grid, .reasoning-grid { grid-template-columns: 1fr; }
  .location-grid > * + *, .evidence-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .metrics { min-height: 92px; align-items: center; }
  .paths { gap: 10px; }
  .path { min-height: 0; }
  .action-panel { min-height: 0; }
  .management-heading, .management-conditions { grid-template-columns: 1fr; }
  .management-heading { gap: 10px; }
  .condition { min-height: 0; }
  .condition + .condition { border-left: 0; border-top-width: 1px; border-top-color: var(--line); }
  .chart-wrap { height: 280px; padding: 10px; }
  .chart-legend { flex-wrap: wrap; }
  .research-details div { grid-template-columns: 1fr; gap: 5px; }
}
