:root {
  color-scheme: light;
  --paper: #f8faf2;
  --surface: #fffef8;
  --ink: #172c1e;
  --muted: #485b4d;
  --green: #21593c;
  --deep: #17412b;
  --soft: #e7efe0;
  --line: #ced9cb;
  --yellow: #f3db86;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: var(--green); }
button { font: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #866008; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: -.5rem; left: .5rem; padding: .7rem 1rem; transform: translateY(-120%); background: #fff; }
.skip:focus { transform: translateY(10%); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .66rem; color: var(--ink); font-size: 1.19rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 12px; }
nav { display: flex; gap: clamp(.75rem, 3vw, 2rem); }
nav a { color: var(--muted); font-size: .95rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(1.8rem, 5vw, 5rem); padding: 54px 0 61px; }
.kicker { color: var(--green); font-weight: 700; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(4.2rem, 8vw, 7rem); letter-spacing: -.07em; line-height: 1; margin: .6rem 0 1.3rem; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); letter-spacing: -.035em; line-height: 1.25; }
h3 { font-size: 1.13rem; }
.hero-line { font-size: clamp(1.22rem, 2.5vw, 1.8rem); font-weight: 760; margin-bottom: .85rem; }
.hero-detail { max-width: 31rem; color: var(--muted); font-size: 1.07rem; }
.hero-actions, .panel-actions { display: flex; flex-wrap: wrap; gap: .72rem; }
.hero-actions { margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .64rem 1rem; border: 1px solid transparent; border-radius: .65rem; text-decoration: none; font-weight: 700; line-height: 1.45; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: var(--deep); }
.secondary { border-color: #afc5b1; color: var(--deep); background: var(--surface); }
.secondary:hover { background: var(--soft); }
.hero-visual { position: relative; min-width: 0; }
.hero-visual img { width: 100%; height: clamp(340px, 41vw, 490px); object-fit: cover; object-position: center 65%; border-radius: 1.35rem 1.35rem 4rem 1.35rem; }
.photo-label { position: absolute; left: 1rem; bottom: .9rem; color: #fff; background: #153525; padding: .2rem .5rem; border-radius: .3rem; font-size: .8rem; }
.demo-section { padding: 58px 0 65px; background: #eaf1e5; }
.section-intro { margin-bottom: 1.65rem; }
.section-intro p, .about p, .files-layout p { color: var(--muted); margin-top: .65rem; }
.demo-layout { display: grid; grid-template-columns: minmax(225px, .65fr) minmax(0, 1.8fr); gap: 1.2rem; align-items: start; }
.scenario-controls { display: grid; gap: .7rem; }
.scenario { display: grid; gap: .2rem; border: 1px solid #bdcdbd; border-radius: .85rem; background: var(--surface); text-align: left; color: var(--ink); padding: .85rem 1rem; }
.scenario strong { font-size: 1.08rem; }
.scenario span { font-size: .94rem; color: var(--muted); }
.scenario[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.scenario[aria-pressed="true"] span { color: #e6efe7; }
.scenario:hover:not([aria-pressed="true"]) { border-color: var(--green); }
.demo-panel { background: var(--surface); border: 1px solid #cbd9c9; border-radius: 1.1rem; overflow: clip; min-height: 306px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel-head span { color: var(--muted); font-size: .88rem; }
.transcript { display: grid; gap: 1rem; padding: 1.2rem 1.25rem; }
.message { display: grid; gap: .2rem; }
.message-label { color: var(--muted); font-size: .88rem; font-weight: 750; }
.question { justify-self: end; max-width: 90%; }
.question .message-label { text-align: right; }
.question p { padding: .46rem .85rem; border-radius: .75rem .75rem .2rem .75rem; background: #e6eedf; }
.answer p { white-space: pre-line; }
.source { margin-top: .4rem; border: 1px solid #c1d1bf; border-radius: .65rem; background: #f0f5ed; }
.source summary { color: var(--deep); cursor: pointer; padding: .55rem .65rem; font-weight: 700; overflow-wrap: anywhere; }
.source-body { display: grid; gap: .5rem; padding: 0 .65rem .7rem; }
.source-meta { color: var(--muted); font-size: .88rem; }
.source-body blockquote { margin: 0; white-space: pre-line; }
.source-body img { width: min(260px, 100%); height: auto; }
.source-body a { justify-self: start; }
.panel-actions { padding: 0 1.25rem 1.25rem; }
.panel-actions .button { font-size: .92rem; }
.small { margin: 0 1.2rem 1.2rem; }
.about { display: grid; gap: 2rem; padding: 64px 0; }
.about-overview { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(1.5rem, 6vw, 6rem); align-items: center; }
.about-numbers { display: grid; gap: 1.1rem; margin: 0; }
.about-numbers div { display: grid; grid-template-columns: 7rem 1fr; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: .58rem; }
.about-numbers dt { grid-column: 2; grid-row: 1; color: var(--muted); }
.about-numbers dd { grid-column: 1; grid-row: 1; color: var(--green); font-weight: 800; font-size: 2rem; margin: 0; }
.mechanism-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 3rem); }
.mechanism, .answer-chain { border-top: 1px solid var(--line); padding-top: 1rem; }
.mechanism h3, .answer-chain h3 { font-size: 1.3rem; }
.mechanism .technical-detail { color: var(--green); font-size: .95rem; }
.answer-chain ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 1rem 0 0; padding-left: 1.4rem; }
.answer-chain li { padding-left: .2rem; }
.answer-chain li::marker { color: var(--green); font-weight: 750; }
.answer-chain li strong, .answer-chain li span { display: block; }
.answer-chain li span { margin-top: .25rem; color: var(--muted); }
.answer-chain .mode-note { margin-top: 1.25rem; color: var(--green); font-weight: 650; }
.files-section { padding: 59px 0 65px; background: #f4f0d9; }
.files-layout { display: grid; grid-template-columns: 1fr .94fr; gap: 3rem; align-items: center; }
.files-list { list-style: none; padding: 0; margin: 1.35rem 0 0; }
.files-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .63rem .1rem; border-bottom: 1px solid #d4ceaa; text-decoration: none; font-weight: 720; }
.files-list a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.files-list a span:last-child { font-size: .875rem; color: #525746; whitespace: nowrap; }
.poster img { width: 100%; height: auto; border-radius: .75rem; }
.poster figcaption { margin-top: .55rem; color: var(--muted); font-size: .88rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer strong { color: var(--ink); }
@media (max-width: 780px) {
  .wrap { width: min(1160px, calc(100% - 40px)); }
  .hero { grid-template-columns: 1fr; padding: 38px 0 46px; gap: 1.75rem; }
  .hero-visual img { height: clamp(230px, 59vw, 370px); }
  .demo-layout, .about-overview, .mechanism-grid, .answer-chain ol, .files-layout { grid-template-columns: 1fr; }
  .about, .files-layout { gap: 1.5rem; }
  .demo-section, .about, .files-section { padding-block: 45px; }
  .scenario-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .scenario { padding: .65rem .55rem; }
  .scenario strong { font-size: .95rem; }
  .scenario span { display: none; }
}
@media (max-width: 420px) {
  .header-inner { min-height: 66px; gap: .5rem; }
  .brand img { width: 29px; height: 29px; border-radius: 9px; }
  .brand { font-size: 1rem; gap: .4rem; }
  nav { gap: .6rem; }
  nav a { font-size: .82rem; }
  .panel-head, .transcript { padding-inline: .85rem; }
  .panel-actions { padding-inline: .85rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
