:root {
  --ink: #111c23;
  --ink-soft: #33444d;
  --muted: #64747b;
  --paper: #f7faf8;
  --white: #ffffff;
  --mist: #edf3f0;
  --line: #d6e0dc;
  --line-dark: #aebdb7;
  --accent: #087f6f;
  --accent-dark: #075f55;
  --accent-soft: #dff1eb;
  --signal: #d9474f;
  --warm: #c98237;
  --shadow: 0 22px 60px rgba(25, 45, 38, 0.12);
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: 0; }
h1 { font-size: clamp(48px, 5.2vw, 78px); font-weight: 780; }
h2 { font-size: clamp(34px, 3.3vw, 52px); font-weight: 760; }
h3 { font-size: 24px; }

.shell { width: min(var(--shell), calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(247, 250, 248, 0.97); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; line-height: 1.05; }
.brand-kicker { margin-bottom: 7px; color: var(--accent); font-family: Consolas, "Segoe UI", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.15em; }
.brand strong { font-size: 20px; font-weight: 780; }
.main-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; color: var(--ink-soft); font-size: 14px; }
.main-nav a { position: relative; padding: 28px 0 26px; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 19px; left: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-button { display: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 4px; background: transparent; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--line-dark); border-radius: 4px; background: var(--white); font-size: 14px; font-weight: 700; cursor: pointer; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .copy-button:focus-visible, .menu-button:focus-visible { outline: 3px solid rgba(8, 127, 111, 0.25); outline-offset: 3px; }
.button-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button-primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.button-outline { border-color: var(--accent); background: transparent; color: var(--accent-dark); }
.button-quiet { background: var(--white); }
.button-large { min-height: 54px; padding: 0 28px; font-size: 15px; }

.hero { display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--white); }
.hero-grid { min-height: 660px; display: grid; grid-template-columns: minmax(400px, 0.78fr) minmax(640px, 1.22fr); align-items: center; gap: 54px; padding-top: 24px; padding-bottom: 24px; }
.eyebrow { margin-bottom: 22px; color: var(--accent); font-family: Consolas, "Segoe UI", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.13em; }
.hero h1 { max-width: 690px; margin-bottom: 28px; }
.hero-lead { max-width: 620px; margin-bottom: 30px; color: var(--ink-soft); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding-right: 14px; }
.hero-facts dt { color: var(--accent); font-family: Consolas, monospace; font-size: 11px; }
.hero-facts dd { margin: 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { margin-bottom: 4px; font-size: 13px; }
.hero-facts span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.hero-product { min-width: 760px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 6px; background: var(--white); box-shadow: var(--shadow); }
.product-frame-label { min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: Consolas, monospace; font-size: 10px; }
.hero-product img { width: 100%; aspect-ratio: 1.43 / 1; object-fit: cover; object-position: top left; }

.product-index { padding: 68px 0 96px; border-bottom: 1px solid var(--line); }
.section-intro { max-width: 650px; }
.section-intro.compact { margin-bottom: 40px; }
.section-intro h2 { margin-bottom: 18px; }
.section-intro p:not(.section-number) { color: var(--muted); font-size: 17px; }
.section-number { margin-bottom: 16px; color: var(--accent); font-family: Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.product-card { min-height: 285px; display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 22px; padding: 34px 28px; border-right: 1px solid var(--line); background: var(--white); }
.product-card:last-child { border-right: 0; }
.product-card-featured { box-shadow: inset 0 3px 0 var(--accent); }
.product-code { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 6px; color: var(--accent-dark); font-size: 18px; font-weight: 800; }
.product-meta { margin-bottom: 8px; color: var(--muted); font-family: Consolas, monospace; font-size: 11px; letter-spacing: 0.08em; }
.product-card h3 { margin-bottom: 14px; }
.product-card p:not(.product-meta) { min-height: 80px; color: var(--muted); font-size: 14px; }
.text-link { display: inline-block; margin-top: 14px; padding-bottom: 3px; border-bottom: 1px solid var(--accent); color: var(--accent-dark); font-size: 14px; font-weight: 700; }

.workflow-section { padding: 110px 0; background: var(--ink); color: #fff; }
.workflow-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr); gap: 100px; align-items: start; }
.workflow-section .section-intro p:not(.section-number) { color: #afbeb8; }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #405049; }
.workflow-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 22px; padding: 28px 0; border-bottom: 1px solid #405049; }
.workflow-list li > span { color: #57c5b1; font-family: Consolas, monospace; font-size: 12px; }
.workflow-list strong { display: block; margin-bottom: 6px; font-size: 18px; }
.workflow-list p { margin: 0; color: #afbeb8; font-size: 14px; }

.product-detail { padding: 118px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.product-detail-alt { background: var(--mist); }
.detail-grid { display: grid; grid-template-columns: minmax(560px, 1.15fr) minmax(420px, 0.85fr); gap: 82px; align-items: center; }
.detail-grid-reverse .detail-media { order: 2; }
.detail-media { overflow: hidden; border: 1px solid var(--line-dark); border-radius: 6px; background: #eaf0ed; box-shadow: 0 18px 48px rgba(25, 45, 38, 0.11); }
.detail-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.detail-copy h2 { margin-bottom: 24px; }
.detail-copy > p:not(.section-number) { margin-bottom: 26px; color: var(--ink-soft); font-size: 17px; }
.feature-list { margin: 0 0 30px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-note { margin-top: 22px; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 14px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.local-section { padding: 104px 0; background: #e8f2ee; border-bottom: 1px solid var(--line); }
.local-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; }
.local-grid h2 { margin-bottom: 0; }
.local-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.local-points div { padding: 24px 22px 0 0; border-right: 1px solid var(--line-dark); }
.local-points div + div { padding-left: 22px; }
.local-points div:last-child { border-right: 0; }
.local-points strong { font-size: 16px; }
.local-points p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.support-section { padding: 96px 0; background: var(--white); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: end; }
.contact-list { margin: 0; border-top: 1px solid var(--line-dark); }
.contact-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: 13px; }
.contact-list dd { margin: 0; font-size: 18px; font-weight: 720; }
.contact-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }

.site-footer { padding: 38px 0; border-top: 1px solid var(--line); background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 36px; align-items: center; }
.footer-brand .brand-kicker { color: #57c5b1; }
.footer-grid p { margin: 0; color: #aebdb7; font-size: 13px; }
.footer-grid nav { display: flex; gap: 22px; color: #d6e0dc; font-size: 13px; }

.download-hero { padding: 106px 0 86px; border-bottom: 1px solid var(--line); background: var(--white); }
.download-hero-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 100px; align-items: end; }
.download-hero h1 { margin: 0; }
.download-hero-grid > p { max-width: 520px; margin: 0 0 10px; color: var(--ink-soft); font-size: 18px; }
.download-list { padding: 48px 0 96px; }
.download-row { display: grid; grid-template-columns: 80px minmax(260px, 0.72fr) minmax(360px, 1fr) 190px; gap: 28px; align-items: start; padding: 48px 0; border-bottom: 1px solid var(--line-dark); scroll-margin-top: 96px; }
.download-row-featured { margin-top: 28px; padding-inline: 24px; border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--line)); border-left: 3px solid var(--accent); background: var(--white); }
.download-subheading { max-width: 720px; margin: 58px 0 22px; }
.download-subheading h2 { margin: 6px 0 8px; font-size: clamp(24px, 3vw, 36px); }
.download-subheading p:last-child { color: var(--muted); }
.download-id span, .download-id strong { display: block; }
.download-id span { margin-bottom: 10px; color: var(--muted); font-family: Consolas, monospace; font-size: 11px; }
.download-id strong { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 6px; color: var(--accent-dark); font-size: 18px; }
.download-summary h2 { margin-bottom: 12px; font-size: 34px; }
.download-summary > p:not(.product-meta) { color: var(--muted); }
.download-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 22px; color: var(--ink-soft); font-size: 12px; }
.download-tags span { padding-left: 10px; border-left: 2px solid var(--accent); }
.file-meta { margin: 0; border-top: 1px solid var(--line); }
.file-meta div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.file-meta dt { color: var(--muted); font-size: 12px; }
.file-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 12px; }
.file-meta .hash { font-family: Consolas, monospace; font-size: 10px; line-height: 1.5; }
.download-actions { display: grid; gap: 9px; }
.copy-button { min-height: 38px; border: 0; background: transparent; color: var(--accent-dark); font-size: 12px; font-weight: 700; cursor: pointer; }
.dependency-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 180px; gap: 28px; align-items: center; margin: -12px 0 12px 108px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.dependency-row h3 { margin-bottom: 8px; font-size: 18px; }
.dependency-row p:not(.product-meta) { margin: 0; color: var(--muted); font-size: 13px; }
.dependency-meta { display: grid; color: var(--muted); font-size: 11px; text-align: right; }
.install-section { padding: 96px 0; background: var(--ink); color: #fff; }
.install-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 100px; }
.install-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #405049; }
.install-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid #405049; }
.install-steps li > span { color: #57c5b1; font-family: Consolas, monospace; font-size: 12px; }
.install-steps strong { display: block; margin-bottom: 5px; }
.install-steps p { margin: 0; color: #aebdb7; font-size: 13px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: 320px; padding: 12px 16px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 13px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-product { min-width: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-card:last-child { border-bottom: 0; }
  .workflow-grid, .detail-grid, .local-grid, .support-grid, .download-hero-grid, .install-grid { grid-template-columns: 1fr; gap: 48px; }
  .detail-grid-reverse .detail-media { order: 0; }
  .download-row { grid-template-columns: 70px minmax(240px, 0.8fr) minmax(320px, 1fr); }
  .download-actions { grid-column: 2 / -1; grid-template-columns: repeat(3, minmax(0, 180px)); }
}

@media (max-width: 780px) {
  .shell { width: min(100% - 32px, var(--shell)); }
  .header-inner { min-height: 70px; }
  .brand { min-width: 0; margin-right: auto; }
  .brand strong { font-size: 17px; }
  .brand-kicker { margin-bottom: 5px; font-size: 8px; }
  .menu-button { display: inline-flex; align-items: center; }
  .header-cta { display: none; }
  .main-nav { position: absolute; top: 70px; right: 0; left: 0; display: none; margin: 0; padding: 14px 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 12px 0; }
  .main-nav a::after { bottom: 6px; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .hero { min-height: auto; }
  .hero-grid { min-height: 0; gap: 36px; padding-top: 64px; padding-bottom: 42px; }
  .hero-lead { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; gap: 18px; }
  .hero-product img { aspect-ratio: 1.1 / 1; }
  .product-index, .workflow-section, .product-detail, .local-section, .support-section, .install-section { padding: 72px 0; }
  .product-card { grid-template-columns: 56px 1fr; min-height: 0; padding: 28px 18px; }
  .product-code { width: 48px; height: 48px; }
  .product-card p:not(.product-meta) { min-height: 0; }
  .detail-media img { aspect-ratio: 1.1 / 1; }
  .local-points { grid-template-columns: 1fr; }
  .local-points div, .local-points div + div { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .contact-list > div { grid-template-columns: 90px 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .download-hero { padding: 72px 0 54px; }
  .download-row { grid-template-columns: 58px 1fr; gap: 20px; padding: 40px 0; }
  .file-meta, .download-actions { grid-column: 1 / -1; }
  .download-actions { grid-template-columns: 1fr; }
  .dependency-row { grid-template-columns: 1fr; margin: 0 0 12px; }
  .dependency-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
