:root {
  color-scheme: light;
  --canvas: #fafaf8;
  --surface: #ffffff;
  --surface-blue: #f1f5fc;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e5e2db;
  --line-strong: #d6d3cc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #e8effd;
  --amber: #b45309;
  --teal: #0f766e;
  --green: #15803d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid #8eb0f4; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { letter-spacing: 0; }
code, .release-facts, .demo-badge { font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.content-width { width: min(1120px, calc(100% - 48px)); margin-right: auto; margin-left: auto; }

.site-header {
  height: 62px;
  background: rgba(250, 250, 248, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1120px, calc(100% - 48px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.demo-logo {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
  font-weight: 700;
}
.brand-mark { display: block; width: 32px; height: 32px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: 13px; }
nav > a:not(.header-download):hover { color: var(--ink); }
.header-download { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 650; }
.header-download svg { width: 16px; height: 16px; }

.release { background: var(--canvas); border-bottom: 1px solid var(--line); }
.release-inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 680px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 34px;
  margin: 0 auto;
  padding: 64px 0 46px;
}
.release-copy { max-width: 750px; }
.release-label, .section-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.release-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(21, 128, 61, .1); }
h1 { margin: 0; font-size: 48px; line-height: 1.14; font-weight: 650; }
.release-summary { max-width: 680px; margin: 18px 0 0; color: #4e5563; font-size: 17px; }
.release-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 650;
  transition: background-color .15s ease, border-color .15s ease;
}
.button svg { width: 18px; height: 18px; }
.button-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 600; }
.text-link:hover { color: var(--ink); }
.text-link svg { width: 16px; height: 16px; }
.release-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 15px; color: var(--muted); font-size: 12px; }

.demo-window {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.demo-titlebar { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.demo-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.demo-title strong { font-size: 13px; }
.demo-title > span:last-child { color: var(--muted); font-size: 12px; }
.demo-logo { width: 22px; height: 22px; font-size: 10px; }
.demo-badge { flex: none; padding: 2px 7px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; font-size: 10px; font-weight: 700; }
.demo-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.demo-filters > div { min-width: 0; padding: 12px 15px; border-right: 1px solid var(--line); }
.demo-filters > div:last-child { border-right: 0; }
.demo-filters span, .demo-metric span { display: block; color: var(--muted); font-size: 10px; }
.demo-filters strong { display: block; overflow: hidden; margin-top: 2px; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.demo-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.demo-metric { position: relative; min-width: 0; padding: 16px; border-right: 1px solid var(--line); }
.demo-metric:last-child { border-right: 0; }
.demo-metric::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: var(--line-strong); content: ""; }
.demo-metric.metric-blue::before { background: var(--blue); }
.demo-metric.metric-amber::before { background: var(--amber); }
.demo-metric.metric-teal::before { background: var(--teal); }
.demo-metric strong { display: block; overflow: hidden; margin-top: 6px; font-size: 18px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.demo-metric small { display: block; overflow: hidden; margin-top: 2px; color: #9a9fa9; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.demo-records { font-size: 11px; }
.record-head, .record-row { display: grid; grid-template-columns: 1.4fr 1fr .7fr .5fr; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.record-head { color: var(--muted); background: #fbfbfa; font-size: 10px; }
.record-row strong { font-weight: 600; }
.positive { color: var(--green); font-weight: 650; }
.demo-note { display: flex; align-items: center; gap: 7px; margin: 0; padding: 9px 16px; color: var(--muted); font-size: 10px; }
.demo-note svg { width: 14px; height: 14px; color: var(--green); }

.capability-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.capability-grid article { min-height: 150px; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-content: center; padding: 28px 30px; border-right: 1px solid var(--line); }
.capability-grid article:first-child { padding-left: 0; }
.capability-grid article:last-child { padding-right: 0; border-right: 0; }
.capability-grid svg { width: 24px; height: 24px; color: var(--blue); stroke-width: 1.8; }
.capability-grid article:nth-child(2) svg { color: var(--amber); }
.capability-grid article:nth-child(3) svg { color: var(--teal); }
.capability-grid h2 { margin: 0; font-size: 16px; font-weight: 650; }
.capability-grid p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.quick-start { padding-top: 88px; padding-bottom: 96px; }
.section-heading { max-width: 620px; }
.section-heading h2, .final-download h2 { margin: 0; font-size: 30px; line-height: 1.35; font-weight: 650; }
.steps { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step-number { color: var(--blue); font-family: ui-monospace, "Cascadia Code", monospace; font-size: 21px; font-weight: 650; }
.steps h3 { margin: 0; font-size: 16px; font-weight: 650; }
.steps p { margin: 5px 0 0; color: var(--muted); }
.steps code { padding: 1px 5px; background: #f0efeb; border-radius: 3px; font-size: 12px; }

.faq-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 80px; padding-top: 82px; padding-bottom: 82px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 600; list-style: none; }
summary:focus:not(:focus-visible) { outline: none; }
summary::-webkit-details-marker { display: none; }
summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .15s ease; }
details[open] summary svg { transform: rotate(45deg); }
details p { margin: -4px 36px 20px 0; color: var(--muted); }

.final-download { min-height: 220px; display: flex; align-items: center; justify-content: space-between; gap: 42px; margin-top: 72px; margin-bottom: 72px; padding: 40px 44px; background: var(--surface-blue); border: 1px solid #d8e2f3; border-radius: 8px; }
.final-download p:last-child { margin: 9px 0 0; color: var(--muted); }
.button-large { min-width: 210px; min-height: 52px; }
footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-inner strong { color: var(--ink); font-weight: 650; }

@media (max-width: 768px) {
  .content-width, .header-inner, .release-inner { width: calc(100% - 32px); }
  .site-header { height: 58px; }
  nav > a:not(.header-download) { display: none; }
  .header-download { font-size: 0; }
  .header-download::after { content: "下载"; font-size: 13px; }
  .release-inner { min-height: 0; gap: 20px; padding: 34px 0 24px; }
  h1 { font-size: 34px; }
  .release-summary { font-size: 15px; }
  .release-actions { align-items: stretch; flex-direction: column; gap: 0; margin-top: 20px; }
  .release-actions .button { width: 100%; }
  .text-link { display: none; }
  .release-facts { gap: 3px 12px; font-size: 11px; }
  .demo-title > span:last-child { display: none; }
  .demo-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-filters > div:nth-child(2) { border-right: 0; }
  .demo-filters > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .demo-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-metric:nth-child(2) { border-right: 0; }
  .demo-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .demo-metric { padding-top: 10px; padding-bottom: 10px; }
  .demo-metric small { display: none; }
  .demo-records { display: none; }
  .demo-note { padding-top: 7px; padding-bottom: 7px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article, .capability-grid article:first-child, .capability-grid article:last-child { min-height: 118px; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-grid article:last-child { border-bottom: 0; }
  .quick-start { padding-top: 68px; padding-bottom: 72px; }
  .section-heading h2, .final-download h2 { font-size: 25px; }
  .steps { margin-top: 28px; }
  .steps li { grid-template-columns: 54px minmax(0, 1fr); gap: 13px; padding: 24px 0; }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 62px; padding-bottom: 62px; }
  .final-download { min-height: 0; flex-direction: column; align-items: stretch; margin-top: 48px; margin-bottom: 48px; padding: 30px 26px; }
  .button-large { width: 100%; }
  .footer-inner { min-height: 90px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 3px; padding: 20px 0; }
}

@media (max-width: 420px) {
  .site-brand { font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; }
  h1 { font-size: 30px; }
  .demo-titlebar { padding: 0 12px; }
  .demo-filters > div, .demo-metric { padding-right: 11px; padding-left: 11px; }
  .demo-metric strong { font-size: 15px; }
  .record-head, .record-row { padding-right: 12px; padding-left: 12px; }
}
