:root {
  --ink: #202527;
  --muted: #657074;
  --paper: #ffffff;
  --mist: #f2f5f4;
  --line: #d8dfdc;
  --accent: #e64c3d;
  --accent-dark: #bd3329;
  --teal: #187f78;
  --black: #15191a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  line-height: 1.75;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; height: 72px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; }
.brand img { width: 42px; height: 42px; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 650; }
.site-nav a { position: relative; white-space: nowrap; }
.site-nav a:not(.download-link)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--accent); transition: right .2s ease; }
.site-nav a.active::after, .site-nav a:hover::after { right: 0; }
.site-nav .download-link { padding: 9px 18px; color: #fff; background: var(--black); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { background: var(--mist); border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 664px; padding-block: 46px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr); align-items: center; gap: 58px; }
.eyebrow { display: inline-block; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.hero h1 { max-width: 620px; margin: 13px 0 18px; font-size: clamp(42px, 4.1vw, 66px); line-height: 1.11; letter-spacing: 0; }
.hero-copy > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 48px; padding: 11px 22px; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; border: 1px solid transparent; }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { background: transparent; border-color: var(--ink); }
.button-light { color: var(--black); background: #fff; }
.hero-facts { margin: 28px 0 0; padding-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ccd4d1; }
.hero-facts div { padding-right: 14px; }
.hero-facts dt { color: var(--muted); font-size: 12px; }
.hero-facts dd { margin: 1px 0 0; font-size: 14px; font-weight: 750; }

.hero-console { border: 1px solid var(--ink); background: #fff; box-shadow: 18px 18px 0 #cfd9d5; }
.console-bar { height: 46px; padding: 0 16px; display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; color: #fff; background: var(--black); font-size: 12px; }
.console-bar strong { color: #9ce2d9; font-size: 18px; }
.console-dot { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.console-body { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 18px; align-items: stretch; }
.console-body img { width: auto; max-width: min(100%, 400px); height: 380px; object-fit: contain; justify-self: center; align-self: center; border: 1px solid var(--line); }
.episode-rail { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.episode-rail li { min-height: 82px; padding: 12px 0 12px 14px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.episode-rail li:last-child { border-bottom: 0; }
.episode-rail b { color: var(--accent); font-size: 12px; }
.episode-rail span { font-size: 13px; font-weight: 700; }

.section-band { padding: 82px 0; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 34px; }
.section-heading h2, .workflow-title h2 { margin: 0; font-size: 34px; line-height: 1.2; }
.ledger-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ledger-grid article { min-height: 236px; padding: 24px; border-right: 1px solid var(--line); }
.ledger-grid article:last-child { border-right: 0; }
.ledger-grid article > span { color: var(--accent); font-size: 13px; font-weight: 800; }
.ledger-grid h3 { margin: 42px 0 8px; font-size: 20px; }
.ledger-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.preview-section { background: #fafbfa; }
.contact-sheet { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; align-items: start; }
.preview { margin: 0; border-top: 4px solid var(--ink); }
.preview:nth-child(2) { border-color: var(--accent); }
.preview:nth-child(3) { border-color: var(--teal); }
.preview img { width: 100%; max-width: 300px; aspect-ratio: 9/16; object-fit: contain; margin-inline: auto; background: #fff; border-inline: 1px solid var(--line); }
.preview figcaption { min-height: 110px; padding: 18px 2px 0; display: flex; flex-direction: column; gap: 5px; }
.preview figcaption b { font-size: 17px; }
.preview figcaption span { color: var(--muted); font-size: 14px; }

.workflow-grid { display: grid; grid-template-columns: 260px 1fr; gap: 60px; }
.workflow-title { grid-row: span 2; }
.workflow-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.workflow-list li { padding: 22px 0; display: grid; grid-template-columns: 55px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.workflow-list > li > span { color: var(--accent); font-weight: 800; }
.workflow-list h3 { margin: 0 0 4px; font-size: 18px; }
.workflow-list p { margin: 0; color: var(--muted); font-size: 14px; }
.text-link { color: var(--teal); font-weight: 750; }
.text-link span { padding-left: 6px; }
.faq-links { border-top: 1px solid var(--ink); }
.faq-links a { min-height: 72px; padding: 16px 2px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); font-weight: 700; }
.faq-links a:hover { color: var(--accent); }

.download-band { padding: 42px 0; color: #fff; background: var(--accent); }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.download-inner .eyebrow { color: #fff; opacity: .8; }
.download-inner h2 { margin: 3px 0 0; font-size: 30px; line-height: 1.25; }
.site-footer { padding: 30px 0; color: #cdd2d1; background: var(--black); text-align: center; }
.footer-inner p { margin: 3px auto; max-width: 900px; font-size: 13px; text-align: center; }

.inner-hero { padding: 74px 0 64px; background: var(--mist); border-bottom: 1px solid var(--line); }
.inner-hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: end; }
.inner-hero h1 { max-width: 760px; margin: 12px 0 14px; font-size: clamp(38px, 4vw, 52px); line-height: 1.14; }
.inner-hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 17px; }
.guide-index { display: grid; border-top: 1px solid var(--ink); }
.guide-index a { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.guide-index a:hover { color: var(--accent); }
.article-section { padding: 72px 0 90px; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 90px; justify-content: center; }
.article-aside { position: sticky; top: 104px; align-self: start; display: grid; gap: 12px; border-top: 3px solid var(--accent); padding-top: 16px; }
.article-aside span { color: var(--teal); font-size: 12px; font-weight: 800; }
.article-aside strong { font-size: 19px; }
.article-aside .button { margin-top: 12px; }
.article-content > section { padding: 0 0 54px; margin: 0 0 54px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.article-content > section:last-child { margin-bottom: 0; }
.step-number { color: var(--accent); font-size: 13px; font-weight: 800; }
.article-content h2 { margin: 6px 0 20px; font-size: 29px; line-height: 1.3; }
.article-content p { margin: 0 0 18px; color: #40494c; }
.article-figure { margin: 28px 0; padding: 18px; background: var(--mist); border-left: 3px solid var(--teal); }
.article-figure img { width: min(100%, 400px); max-width: 400px; margin-inline: auto; }
.article-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.article-actions, .faq-actions { display: flex; flex-wrap: wrap; gap: 28px; }

.faq-hero .inner-hero-grid { align-items: center; }
.issue-meter { width: 190px; justify-self: end; padding: 18px; border: 1px solid var(--ink); background: #fff; box-shadow: 10px 10px 0 #cfdbd6; }
.issue-meter span, .issue-meter small { display: block; color: var(--muted); font-size: 12px; }
.issue-meter b { display: block; margin: -4px 0; color: var(--accent); font-size: 62px; line-height: 1.15; }
.faq-section { padding: 72px 0 90px; }
.faq-layout { display: grid; grid-template-columns: 190px minmax(0, 820px); gap: 70px; justify-content: center; }
.faq-filter { position: sticky; top: 104px; align-self: start; display: grid; border-top: 1px solid var(--ink); }
.faq-filter a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.faq-group { margin-bottom: 54px; scroll-margin-top: 96px; }
.faq-group h2 { margin: 0 0 18px; font-size: 28px; }
.faq-group details { border-top: 1px solid var(--line); }
.faq-group details:last-child { border-bottom: 1px solid var(--line); }
.faq-group summary { position: relative; padding: 19px 42px 19px 0; cursor: pointer; font-weight: 750; list-style: none; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: "+"; position: absolute; right: 4px; top: 15px; color: var(--accent); font-size: 24px; }
.faq-group details[open] summary::after { content: "−"; }
.faq-group details p { margin: 0; padding: 0 42px 22px 0; color: var(--muted); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 470px; gap: 30px; }
  .hero h1 { font-size: 46px; }
  .console-body { grid-template-columns: 1fr 92px; gap: 12px; padding: 14px; }
  .episode-rail li { padding-left: 10px; }
  .ledger-grid { grid-template-columns: repeat(2, 1fr); }
  .ledger-grid article:nth-child(2) { border-right: 0; }
  .ledger-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-sheet { grid-template-columns: repeat(3, 1fr); }
  .inner-hero-grid { grid-template-columns: 1fr 300px; gap: 45px; }
  .article-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 50px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 620px); }
  .site-header, .header-inner { height: 64px; }
  .brand img { width: 38px; height: 38px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 16px; gap: 0; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(20,30,28,.09); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 12px 8px; }
  .site-nav a:not(.download-link)::after { display: none; }
  .site-nav .download-link { margin-top: 7px; text-align: center; }
  .hero-grid { min-height: 0; padding-block: 27px 30px; grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { margin: 7px 0 10px; font-size: 35px; line-height: 1.13; }
  .hero-copy > p { font-size: 14px; line-height: 1.62; }
  .hero-actions { margin-top: 17px; }
  .button { min-height: 44px; padding: 9px 16px; }
  .hero-facts { margin-top: 18px; padding-top: 12px; }
  .hero-facts dt { font-size: 11px; }
  .hero-facts dd { font-size: 12px; }
  .hero-console { width: min(100%, 430px); margin-inline: auto; box-shadow: 9px 9px 0 #cfd9d5; }
  .console-bar { height: 38px; }
  .console-body { padding: 10px; grid-template-columns: minmax(0, 1fr) 82px; gap: 10px; }
  .console-body img { height: 196px; max-height: 196px; object-fit: contain; }
  .episode-rail li { min-height: 61px; padding: 5px 0 5px 9px; }
  .episode-rail span { font-size: 11px; }
  .section-band { padding: 56px 0; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2, .workflow-title h2 { font-size: 28px; }
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-grid article, .ledger-grid article:nth-child(2) { min-height: 0; padding: 21px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ledger-grid article:last-child { border-bottom: 0; }
  .ledger-grid h3 { margin: 12px 0 5px; }
  .contact-sheet { grid-template-columns: 1fr; gap: 34px; }
  .preview { width: min(100%, 320px); margin-inline: auto; }
  .preview figcaption { min-height: 0; }
  .workflow-grid { grid-template-columns: 1fr; gap: 28px; }
  .workflow-title { grid-row: auto; }
  .download-inner { align-items: flex-start; flex-direction: column; }
  .download-inner h2 { font-size: 25px; }
  .inner-hero { padding: 48px 0 42px; }
  .inner-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .inner-hero h1 { font-size: 36px; }
  .guide-index { width: 100%; }
  .article-section, .faq-section { padding: 54px 0 70px; }
  .article-layout, .faq-layout { grid-template-columns: 1fr; gap: 38px; }
  .article-aside, .faq-filter { position: static; }
  .article-aside .button { width: fit-content; }
  .article-content h2, .faq-group h2 { font-size: 25px; }
  .issue-meter { justify-self: start; }
  .faq-filter { grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--line); }
  .faq-filter a { padding-left: 10px; border-right: 1px solid var(--line); }
}

@media (max-width: 390px) {
  .shell { width: calc(100% - 28px); }
  .hero h1 { font-size: 32px; }
  .hero-actions .button { flex: 1 1 auto; }
  .console-body { grid-template-columns: minmax(0, 1fr) 74px; }
  .episode-rail span { font-size: 10px; }
  .inner-hero h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
