:root {
  --paper: #f7f4ec;
  --white: #ffffff;
  --ink: #17201f;
  --muted: #626b68;
  --line: #c9ceca;
  --green: #133b36;
  --green-soft: #d9e8df;
  --orange: #ff6b35;
  --blue: #1769ff;
  --yellow: #ffd447;
  --max: 1180px;
}

* { 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.7;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.container,
.header-inner,
.hero-grid {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 236, 0.96);
  border-bottom: 1px solid var(--ink);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
}

.brand img,
.footer-brand img {
  width: 36px;
  height: 36px;
}

.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.site-nav > a:not(.download-link) { border-bottom: 2px solid transparent; }
.site-nav > a:not(.download-link):hover,
.site-nav > a.active { border-color: var(--orange); }
.download-link { padding: 10px 18px; color: var(--white); background: var(--green); border: 1px solid var(--green); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--ink);
  background: transparent;
}
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { padding-top: 34px; background: var(--paper); border-bottom: 1px solid var(--ink); }
.hero-grid {
  min-height: 548px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 72px;
}

.kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.kicker span,
.section-code,
.panel-code {
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.kicker span { padding: 8px 10px; border: 1px solid var(--ink); }
.kicker span:first-child { color: var(--white); background: var(--green); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: 0; }

.hero h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: 52px;
  font-weight: 900;
}

.hero-lead { max-width: 640px; margin-bottom: 26px; color: #3f4947; font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 22px; font-weight: 800; border: 1px solid var(--ink); }
.button-primary { color: var(--white); background: var(--orange); }
.button-light { color: var(--ink); background: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; border-bottom: 1px solid currentColor; }
.text-link span { color: var(--orange); }

.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 620px; margin: 0; border-top: 1px solid var(--ink); }
.hero-facts div { padding: 14px 14px 0 0; }
.hero-facts dt { color: var(--muted); font-size: 11px; font-weight: 800; }
.hero-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 800; }

.hero-media {
  position: relative;
  min-height: 492px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  background: var(--green-soft);
}
.hero-media::before,
.hero-media::after { content: ""; position: absolute; width: 18px; height: 18px; border: solid var(--orange); }
.hero-media::before { top: 18px; left: 18px; border-width: 2px 0 0 2px; }
.hero-media::after { right: 18px; bottom: 18px; border-width: 0 2px 2px 0; }
.hero-media img { width: auto; max-width: 400px; height: 456px; object-fit: contain; box-shadow: 14px 14px 0 rgba(23, 32, 31, 0.14); }
.folder-tab { position: absolute; z-index: 2; padding: 8px 12px; border: 1px solid var(--ink); font-size: 10px; font-weight: 900; }
.folder-tab-top { top: -1px; right: 28px; background: var(--yellow); }
.fold-note { position: absolute; right: -1px; bottom: 36px; display: grid; border: 1px solid var(--ink); background: var(--paper); }
.fold-note span { min-width: 66px; padding: 6px 9px; font-size: 10px; font-weight: 800; border-bottom: 1px solid var(--line); }
.fold-note span:last-child { border-bottom: 0; }

.hero-index { height: 42px; display: grid; grid-template-columns: 72px 1fr 1fr; align-items: center; margin-top: 18px; border-top: 1px solid var(--ink); background: var(--green); color: var(--white); font-size: 10px; font-weight: 800; }
.hero-index span { height: 100%; display: flex; align-items: center; padding: 0 18px; border-right: 1px solid rgba(255,255,255,.25); }
.hero-index span:first-child { justify-content: center; color: var(--ink); background: var(--orange); font-size: 16px; }

.route-band { background: var(--white); border-bottom: 1px solid var(--ink); }
.route-grid { min-height: 150px; display: grid; grid-template-columns: 0.7fr 2fr; align-items: stretch; }
.route-title { display: flex; align-items: center; font-size: 27px; font-weight: 900; border-right: 1px solid var(--ink); }
.route-grid ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.route-grid li { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 24px; border-right: 1px solid var(--line); }
.route-grid li:last-child { border-right: 0; }
.route-grid strong { color: var(--orange); font-size: 13px; }
.route-grid span { font-size: 14px; font-weight: 800; }

.section { padding: 92px 0; }
.section-heading { display: grid; grid-template-columns: 160px 0.8fr 1.2fr; align-items: end; gap: 28px; margin-bottom: 48px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: 0; font-size: 40px; font-weight: 900; }
.section-note { max-width: 520px; color: var(--muted); font-size: 14px; }
.section-code { color: var(--orange); }

.section-gallery { background: var(--paper); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.screen-figure { margin: 0; }
.screen-figure.offset { margin-top: 56px; }
.screen-figure.compact { margin-top: 14px; }
.screen-frame { height: 520px; display: flex; align-items: center; justify-content: center; padding: 18px; border: 1px solid var(--ink); background: var(--white); overflow: hidden; }
.screen-frame img { max-width: 400px; width: auto; height: 100%; object-fit: contain; }
.screen-figure figcaption { display: grid; grid-template-columns: 34px 1fr; padding-top: 15px; border-top: 7px solid var(--green); }
.screen-figure.offset figcaption { border-color: var(--orange); }
.screen-figure.compact figcaption { border-color: var(--blue); }
.screen-figure figcaption > span { grid-row: span 2; color: var(--muted); font-size: 11px; font-weight: 800; }
.screen-figure figcaption strong { font-size: 18px; }
.screen-figure figcaption small { color: var(--muted); font-size: 12px; }

.section-functions { color: var(--white); background: var(--green); }
.section-heading.inverse { border-color: rgba(255,255,255,.45); }
.section-heading.inverse .section-note { color: #c9d9d5; }
.function-list { border-top: 1px solid rgba(255,255,255,.4); }
.function-item { display: grid; grid-template-columns: 70px 1fr 110px; gap: 28px; align-items: center; min-height: 154px; border-bottom: 1px solid rgba(255,255,255,.28); }
.function-no { color: var(--orange); font-size: 32px; font-weight: 900; }
.function-item h3 { margin-bottom: 9px; font-size: 24px; }
.function-item p { max-width: 760px; margin-bottom: 0; color: #d5e3df; font-size: 14px; }
.function-tag { justify-self: end; padding: 6px 9px; color: var(--ink); background: var(--yellow); font-size: 10px; font-weight: 900; }

.section-guide-links { background: var(--white); }
.guide-split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.guide-panel { min-height: 310px; display: flex; flex-direction: column; padding: 38px; }
.guide-panel:first-child { border-right: 1px solid var(--ink); }
.guide-panel.green { background: var(--green-soft); }
.guide-panel.orange { background: #ffe1d5; }
.guide-panel h3 { max-width: 420px; margin: 58px 0 12px; font-size: 30px; }
.guide-panel p { max-width: 500px; color: #424c49; }
.panel-action { margin-top: auto; font-size: 13px; font-weight: 900; }

.section-faq-preview { background: var(--paper); }
.compact-heading { grid-template-columns: 160px 1fr; }
.faq-preview-list { border-top: 1px solid var(--ink); }
.faq-preview-list details { border-bottom: 1px solid var(--ink); }
.faq-preview-list summary { padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 800; list-style: none; }
.faq-preview-list summary::after { content: "+"; float: right; color: var(--orange); font-size: 24px; }
.faq-preview-list details[open] summary::after { content: "−"; }
.faq-preview-list p { max-width: 840px; padding: 0 0 22px; color: var(--muted); }
.faq-more { margin-top: 28px; }

.final-action { color: var(--white); background: var(--blue); }
.final-action-inner { min-height: 220px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.final-action .section-code { color: var(--yellow); }
.final-action h2 { max-width: 760px; margin: 10px 0 0; font-size: 36px; }

.site-footer { padding: 42px 0 26px; color: var(--white); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 22px 40px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; justify-self: start; font-weight: 900; }
.site-footer nav { display: flex; gap: 24px; justify-self: end; font-size: 13px; }
.disclaimer { grid-column: 1 / -1; margin: 0; color: #bbc3c1; font-size: 12px; text-align: center; }
.copyright { grid-column: 1 / -1; margin: 0; color: #828c89; font-size: 11px; text-align: center; }

.inner-hero { padding: 66px 0; border-bottom: 1px solid var(--ink); }
.inner-hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 70px; }
.inner-hero h1 { margin-bottom: 20px; font-size: 52px; }
.inner-hero p { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 17px; }
.guide-hero { background: var(--green-soft); }
.faq-hero { background: #ffe1d5; }
.guide-map { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); background: var(--paper); }
.guide-map span { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.guide-map span:nth-child(2n) { border-right: 0; }
.guide-map span:nth-last-child(-n+2) { border-bottom: 0; }
.faq-index-mark { min-height: 240px; display: flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid var(--ink); background: var(--orange); }
.faq-index-mark strong { font-size: 126px; line-height: 1; }
.faq-index-mark span { font-size: 13px; font-weight: 900; line-height: 1.8; }

.article-layout { background: var(--white); }
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 70px; align-items: start; }
.article-nav { position: sticky; top: 100px; display: flex; flex-direction: column; border-top: 5px solid var(--orange); }
.article-nav .section-code { padding: 16px 0; border-bottom: 1px solid var(--ink); }
.article-nav a { padding: 11px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.article-nav a:hover { color: var(--blue); }
.article-content > section { position: relative; padding: 0 0 60px 70px; scroll-margin-top: 96px; }
.article-content > section:not(:last-of-type) { margin-bottom: 54px; border-bottom: 1px solid var(--line); }
.article-content h2 { margin-bottom: 22px; font-size: 34px; }
.article-content p { max-width: 780px; color: #48514f; }
.step-number { position: absolute; top: 0; left: 0; width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); background: var(--green); font-size: 12px; font-weight: 900; }
.check-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0; border: 1px solid var(--ink); }
.check-strip span { padding: 14px; border-right: 1px solid var(--ink); font-size: 12px; font-weight: 800; }
.check-strip span:last-child { border-right: 0; }
.notice { display: grid; grid-template-columns: 110px 1fr; margin-top: 24px; border: 1px solid var(--ink); }
.notice strong { padding: 16px; color: var(--white); background: var(--orange); }
.notice span { padding: 16px; }
.article-next { display: flex; justify-content: space-between; padding: 24px; color: var(--white); background: var(--green); }
.article-next a { font-weight: 800; }

.faq-section { background: var(--white); }
.faq-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter-button { min-height: 42px; padding: 8px 17px; color: var(--ink); border: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 800; }
.filter-button:hover,
.filter-button.active { color: var(--white); background: var(--green); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--ink); }
.faq-list details[hidden] { display: none; }
.faq-list summary { display: grid; grid-template-columns: 54px 1fr; align-items: center; padding: 23px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 800; }
.faq-list summary span { color: var(--orange); font-size: 12px; }
.faq-list summary::after { content: "+"; grid-column: 3; padding-left: 20px; color: var(--blue); font-size: 24px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 880px; margin: 0 0 24px 54px; color: var(--muted); }
.no-results { padding: 30px; border: 1px solid var(--line); text-align: center; }
.faq-support { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 70px; padding-top: 28px; border-top: 7px solid var(--orange); }
.faq-support h2 { margin: 9px 0; font-size: 30px; }
.faq-support p { max-width: 650px; margin-bottom: 0; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 32px; }
  .hero h1 { font-size: 43px; }
  .hero-media img { height: 410px; }
  .section-heading { grid-template-columns: 120px 1fr; }
  .section-heading .section-note { grid-column: 2; }
  .article-grid { grid-template-columns: 190px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 720px) {
  .container,
  .header-inner,
  .hero-grid { width: calc(100% - 28px); }
  .header-inner { height: 64px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 14px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 10px; }
  .site-nav > a:not(.download-link) { border-bottom: 1px solid var(--line); }
  .download-link { margin-top: 12px; text-align: center; }

  .hero { padding-top: 26px; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { max-width: 350px; margin-bottom: 14px; font-size: 34px; }
  .hero-lead { margin-bottom: 17px; font-size: 14px; line-height: 1.65; }
  .kicker { margin-bottom: 14px; }
  .hero-actions { margin-bottom: 18px; }
  .hero-facts { display: none; }
  .hero-media { min-height: 250px; border-top: 1px solid var(--ink); }
  .hero-media img { height: 226px; box-shadow: 9px 9px 0 rgba(23,32,31,.14); }
  .fold-note { right: 7px; bottom: 18px; }
  .fold-note span { min-width: 54px; padding: 4px 7px; font-size: 9px; }
  .folder-tab-top { right: 14px; }
  .hero-index { height: 38px; margin-top: 16px; grid-template-columns: 54px 1fr; }
  .hero-index span { padding: 0 12px; }
  .hero-index span:last-child { display: none; }

  .route-grid { grid-template-columns: 1fr; }
  .route-title { padding: 20px 0 14px; border-right: 0; border-bottom: 1px solid var(--ink); font-size: 22px; }
  .route-grid ol { grid-template-columns: 1fr; }
  .route-grid li { min-height: 64px; padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .route-grid li:last-child { border-bottom: 0; }

  .section { padding: 64px 0; }
  .section-heading,
  .compact-heading { grid-template-columns: 1fr; gap: 10px; margin-bottom: 32px; }
  .section-heading .section-note { grid-column: auto; }
  .section-heading h2 { font-size: 32px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 42px; }
  .screen-figure.offset,
  .screen-figure.compact { margin-top: 0; }
  .screen-frame { height: 440px; }
  .function-item { grid-template-columns: 44px 1fr; gap: 14px; padding: 24px 0; }
  .function-tag { grid-column: 2; justify-self: start; }
  .guide-split { grid-template-columns: 1fr; }
  .guide-panel { min-height: 270px; padding: 26px; }
  .guide-panel:first-child { border-right: 0; border-bottom: 1px solid var(--ink); }
  .guide-panel h3 { margin-top: 42px; font-size: 26px; }
  .final-action-inner { min-height: 250px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .final-action h2 { font-size: 29px; }

  .footer-grid { grid-template-columns: 1fr; justify-items: center; }
  .footer-brand,
  .site-footer nav { justify-self: center; }

  .inner-hero { padding: 44px 0; }
  .inner-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .inner-hero h1 { font-size: 39px; }
  .inner-hero p { font-size: 15px; }
  .guide-map { max-width: 440px; }
  .faq-index-mark { min-height: 180px; }
  .faq-index-mark strong { font-size: 96px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .article-nav .section-code { grid-column: 1 / -1; }
  .article-nav a { padding-right: 8px; }
  .article-content > section { padding-left: 0; padding-top: 60px; }
  .step-number { top: 0; }
  .check-strip { grid-template-columns: 1fr; }
  .check-strip span { border-right: 0; border-bottom: 1px solid var(--ink); }
  .check-strip span:last-child { border-bottom: 0; }
  .notice { grid-template-columns: 1fr; }
  .faq-list summary { grid-template-columns: 40px 1fr; font-size: 16px; }
  .faq-list p { margin-left: 40px; }
  .faq-support { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 32px; }
  .hero-actions { align-items: flex-start; gap: 15px; }
  .button { padding-inline: 17px; }
  .screen-frame { height: 400px; }
  .site-footer nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
