:root {
  --ink: #102522;
  --ink-soft: #38514d;
  --paper: #f5f7f5;
  --white: #ffffff;
  --line: #cbd5d2;
  --teal: #0f766e;
  --teal-dark: #075c56;
  --yellow: #f5c451;
  --coral: #df6a55;
  --container: 1180px;
  --header-height: 72px;
}

* { 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;
  letter-spacing: 0;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; letter-spacing: 0; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(245, 247, 245, 0.98);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; line-height: 1; }
.brand img { width: 34px; height: 34px; border-radius: 5px; }
.desktop-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.desktop-nav a { position: relative; color: var(--ink-soft); font-size: 15px; font-weight: 650; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--ink); }
.desktop-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 3px; background: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-weight: 760;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--teal-dark); border-color: var(--teal-dark); }
.button-small { min-height: 38px; padding: 8px 18px; font-size: 14px; }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { color: var(--white); }
.button-light { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.button-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); background: var(--white); border-radius: 4px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--header-height) 0 0; padding: 28px 24px; background: var(--paper); border-top: 1px solid var(--line); }
.mobile-nav:not([hidden]) { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav > a:not(.button) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.mobile-nav .button { margin-top: 20px; }

.hero { padding: 38px 0 44px; overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr); align-items: center; gap: clamp(48px, 7vw, 96px); }
.hero-copy { max-width: 630px; }
.eyebrow { display: inline-block; color: var(--teal-dark); font-size: 12px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.hero h1 { max-width: 620px; margin: 12px 0 18px; font-size: clamp(42px, 4.3vw, 62px); line-height: 1.08; letter-spacing: 0; }
.hero-copy > p { max-width: 600px; margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-dark); font-weight: 760; border-bottom: 1px solid currentColor; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-facts div { min-width: 0; padding-right: 14px; }
.hero-facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-facts dt { color: var(--teal-dark); font-size: 12px; font-weight: 850; }
.hero-facts dd { margin: 3px 0 0; color: var(--ink-soft); font-size: 13px; }
.hero-media { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; padding: 20px 54px 28px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.hero-media::before, .hero-media::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.hero-media::before { top: 20px; }
.hero-media::after { bottom: 28px; }
.phone-frame { position: relative; z-index: 2; margin: 0; padding: 12px 12px 42px; background: var(--white); border: 1px solid var(--ink); box-shadow: 14px 14px 0 var(--yellow); }
.phone-frame img { width: 280px; max-width: 100%; max-height: 498px; object-fit: contain; }
.phone-frame figcaption { position: absolute; left: 14px; bottom: 10px; font-size: 12px; font-weight: 800; }
.chapter-tabs { position: absolute; left: -1px; top: 50%; z-index: 3; margin: 0; padding: 0; transform: translate(-50%, -50%); list-style: none; }
.chapter-tabs li { width: 46px; height: 46px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--ink); font-size: 12px; font-weight: 850; }
.chapter-tabs li + li { border-top: 0; }
.chapter-tabs .is-active { background: var(--teal); color: var(--white); }
.media-index { position: absolute; right: 8px; bottom: 2px; color: var(--ink-soft); font-size: 10px; font-weight: 800; writing-mode: vertical-rl; }

.reading-path { background: var(--ink); color: var(--white); }
.path-grid { min-height: 186px; display: grid; grid-template-columns: 260px 1fr; align-items: stretch; }
.section-heading { display: flex; align-items: flex-start; gap: 18px; padding: 38px 28px 38px 0; border-right: 1px solid rgba(255,255,255,.22); }
.section-heading h2 { margin: 0; font-size: 26px; line-height: 1.25; }
.section-number { color: var(--yellow); font-size: 12px; font-weight: 850; }
.path-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.path-list li { padding: 36px 26px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.path-list li + li { border-left: 1px solid rgba(255,255,255,.22); }
.path-list span { color: var(--yellow); font-size: 12px; }
.path-list strong { font-size: 16px; line-height: 1.55; }

.section { padding: 88px 0; }
.section-heading-wide { padding: 0 0 25px; margin-bottom: 34px; border-right: 0; border-bottom: 1px solid var(--line); }
.section-heading-wide h2 { font-size: 34px; }
.function-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.function-item { min-height: 230px; padding: 30px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); }
.function-item:nth-child(2), .function-item:nth-child(3) { background: transparent; }
.function-code { color: var(--coral); font-size: 11px; font-weight: 900; }
.function-item h3 { margin: 34px 0 8px; font-size: 23px; }
.function-item p { margin: 0; color: var(--ink-soft); }

.showcase { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr .86fr; align-items: stretch; border: 1px solid var(--ink); }
.screen-item { margin: 0; padding: 26px; border-right: 1px solid var(--ink); }
.screen-canvas { height: 480px; display: flex; align-items: center; justify-content: center; background: #dce8e5; overflow: hidden; }
.screen-canvas-dark { background: var(--ink); }
.screen-canvas img { width: auto; max-width: 100%; max-height: 440px; object-fit: contain; }
.screen-item figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; }
.screen-item figcaption span { color: var(--teal-dark); font-size: 11px; font-weight: 850; }
.screen-item figcaption strong { font-size: 16px; }
.showcase-note { padding: 34px 28px; display: flex; flex-direction: column; justify-content: center; background: var(--yellow); }
.note-label { font-size: 11px; font-weight: 900; }
.showcase-note h3 { margin: 48px 0 14px; font-size: 28px; line-height: 1.25; }
.showcase-note p { margin: 0 0 30px; }
.showcase-note .text-link { color: var(--ink); align-self: flex-start; }

.guide-preview { background: #dfe9e6; }
.guide-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.guide-intro h2 { margin: 8px 0 30px; font-size: 42px; line-height: 1.2; }
.guide-copy { padding-left: 42px; border-left: 4px solid var(--teal); }
.guide-copy p { margin: 0 0 26px; color: var(--ink-soft); }
.guide-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.guide-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--ink); }
.guide-steps > li > span { color: var(--coral); font-weight: 900; }
.guide-steps strong { font-size: 18px; }
.guide-steps p { margin: 5px 0 0; color: var(--ink-soft); }

.faq-grid { display: grid; grid-template-columns: 260px 1fr; }
.faq-grid > .section-heading { color: var(--ink); border-right-color: var(--line); }
.faq-list { padding-left: 40px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 19px 34px 19px 0; cursor: pointer; font-weight: 760; }
.faq-list details p { margin: 0 0 20px; color: var(--ink-soft); }
.faq-more { margin-top: 28px; }

.final-action { padding: 58px 0; background: var(--teal-dark); color: var(--white); }
.final-action-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.final-action .eyebrow { color: var(--yellow); }
.final-action h2 { max-width: 750px; margin: 8px 0 0; font-size: 32px; line-height: 1.35; }

.site-footer { padding: 42px 0 28px; background: var(--ink); color: var(--white); }
.footer-inner { text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 4px; }
.footer-inner nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; margin: 18px 0; color: #cbd5d2; font-size: 14px; }
.disclaimer { max-width: 700px; margin: 0 auto; color: #aebdb9; font-size: 12px; text-align: center; }
.copyright { margin: 12px 0 0; color: #80938e; font-size: 12px; text-align: center; }

.subhero { padding: 68px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.subhero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 70px; }
.subhero h1 { max-width: 680px; margin: 10px 0 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.12; }
.subhero p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.subhero-faq { background: var(--yellow); }
.subhero-faq .eyebrow { color: var(--ink); }
.article-shell { padding: 70px 0 96px; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 780px); justify-content: space-between; gap: 60px; }
.article-index { position: sticky; top: calc(var(--header-height) + 28px); align-self: start; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.article-index span { padding: 16px 0; color: var(--teal-dark); font-size: 11px; font-weight: 900; }
.article-index a { padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.article-index a:hover { color: var(--teal-dark); }
.article-content > section { scroll-margin-top: calc(var(--header-height) + 28px); padding-bottom: 70px; }
.article-heading { display: grid; grid-template-columns: 50px 1fr; gap: 18px; align-items: start; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.article-heading span { color: var(--coral); font-size: 13px; font-weight: 900; }
.article-heading h2 { margin: 0; font-size: 30px; line-height: 1.3; }
.article-content p { color: var(--ink-soft); font-size: 16px; line-height: 2; }
.checklist { margin: 30px 0; padding: 24px 28px; border-left: 4px solid var(--teal); background: var(--white); }
.checklist ul { margin: 12px 0 0; padding-left: 20px; }
.checklist li + li { margin-top: 8px; }
.article-figure { margin: 34px 0; padding: 28px; display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 34px; background: var(--ink); color: var(--white); }
.article-figure img { width: 200px; max-height: 356px; margin: auto; object-fit: contain; }
.article-figure figcaption { color: #cbd5d2; }
.next-panel { display: grid; grid-template-columns: 70px 1fr auto; gap: 22px; align-items: center; padding: 26px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.next-panel > span { color: var(--coral); font-size: 12px; font-weight: 900; }
.next-panel h3 { margin: 0 0 4px; }
.next-panel p { margin: 0; font-size: 14px; }

.faq-library { padding: 66px 0 96px; }
.faq-tools { display: grid; grid-template-columns: 140px minmax(260px, 1fr) 110px; align-items: center; gap: 24px; padding-bottom: 26px; border-bottom: 2px solid var(--ink); }
.faq-tools label { font-weight: 850; }
.faq-tools > p { margin: 0; text-align: right; color: var(--ink-soft); font-size: 13px; }
.search-field { position: relative; }
.search-field input { width: 100%; height: 48px; padding: 0 48px 0 16px; border: 1px solid var(--ink); border-radius: 3px; background: var(--white); color: var(--ink); outline: none; }
.search-field input:focus { box-shadow: 0 0 0 3px rgba(15,118,110,.18); }
.search-field span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 24px; }
.faq-categories { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0; }
.faq-categories span { padding: 5px 11px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-soft); font-size: 12px; }
.faq-questions { border-top: 1px solid var(--ink); }
.faq-questions details { border-bottom: 1px solid var(--ink); }
.faq-questions summary { display: grid; grid-template-columns: 62px 1fr; gap: 20px; padding: 24px 42px 24px 0; cursor: pointer; font-size: 18px; font-weight: 760; list-style: none; }
.faq-questions summary::-webkit-details-marker { display: none; }
.faq-questions summary span { color: var(--teal-dark); font-size: 12px; }
.faq-questions details > div { padding: 0 42px 24px 82px; }
.faq-questions details p { margin: 0; color: var(--ink-soft); line-height: 1.9; }
.faq-empty { padding: 36px 0; color: var(--ink-soft); text-align: center; border-bottom: 1px solid var(--line); }
.support-route { margin-top: 60px; padding: 34px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; background: #dfe9e6; border-left: 5px solid var(--teal); }
.support-route span { color: var(--teal-dark); font-size: 11px; font-weight: 900; }
.support-route h2 { margin: 6px 0; font-size: 25px; }
.support-route p { margin: 0; color: var(--ink-soft); }

@media (max-width: 920px) {
  .container { width: min(100% - 36px, var(--container)); }
  .desktop-nav, .header-actions > .button { display: none; }
  .menu-toggle { display: flex; }
  .hero-layout { grid-template-columns: 1fr; gap: 26px; }
  .hero-copy { max-width: none; }
  .hero-media { min-height: 390px; border: 1px solid var(--line); padding: 20px 38px 26px; }
  .phone-frame img { width: 200px; max-height: 356px; }
  .chapter-tabs { left: 0; transform: translate(-30%, -50%); }
  .path-grid, .faq-grid { grid-template-columns: 1fr; }
  .reading-path .section-heading { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .faq-grid > .section-heading { border-right: 0; border-bottom: 1px solid var(--line); }
  .faq-list { padding-left: 0; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .screen-item:nth-child(2) { border-right: 0; }
  .showcase-note { grid-column: 1 / -1; min-height: 280px; border-top: 1px solid var(--ink); }
  .guide-grid, .subhero-grid { grid-template-columns: 1fr; gap: 34px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-index { position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
  .article-index span { grid-column: 1 / -1; }
  .article-index a { padding-right: 10px; }
  .support-route { grid-template-columns: 1fr 1fr; }
  .support-route > div { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --header-height: 64px; }
  .container { width: calc(100% - 28px); }
  .site-header { height: var(--header-height); }
  .brand { font-size: 18px; }
  .brand img { width: 32px; height: 32px; }
  .hero { padding: 24px 0 28px; }
  .hero h1 { margin-top: 8px; font-size: 38px; }
  .hero-copy > p { font-size: 15px; line-height: 1.75; }
  .hero-actions { margin-top: 20px; gap: 18px; }
  .hero-facts { display: none; }
  .hero-media { min-height: 340px; }
  .phone-frame { padding: 8px 8px 34px; box-shadow: 9px 9px 0 var(--yellow); }
  .phone-frame img { width: 168px; max-height: 299px; }
  .phone-frame figcaption { left: 10px; bottom: 7px; font-size: 10px; }
  .chapter-tabs li { width: 38px; height: 38px; }
  .path-grid { min-height: 0; }
  .section-heading { padding: 24px 0; }
  .path-list { grid-template-columns: 1fr; }
  .path-list li { padding: 18px 0; }
  .path-list li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
  .section { padding: 62px 0; }
  .section-heading-wide h2 { font-size: 29px; }
  .function-grid { grid-template-columns: 1fr; }
  .function-item { min-height: 190px; padding: 24px; }
  .function-item h3 { margin-top: 24px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .screen-item, .screen-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--ink); }
  .screen-canvas { height: 390px; }
  .screen-canvas img { max-height: 350px; }
  .showcase-note { grid-column: auto; border-top: 0; min-height: 260px; }
  .guide-intro h2 { font-size: 34px; }
  .guide-copy { padding-left: 22px; }
  .final-action-inner { align-items: flex-start; flex-direction: column; }
  .final-action h2 { font-size: 25px; }
  .subhero { padding: 46px 0; }
  .subhero h1 { font-size: 38px; }
  .article-shell, .faq-library { padding: 48px 0 70px; }
  .article-index { grid-template-columns: repeat(2, 1fr); }
  .article-heading { grid-template-columns: 38px 1fr; }
  .article-heading h2 { font-size: 25px; }
  .article-figure { grid-template-columns: 1fr; padding: 22px; }
  .next-panel { grid-template-columns: 1fr; }
  .faq-tools { grid-template-columns: 1fr; gap: 10px; }
  .faq-tools > p { text-align: left; }
  .faq-questions summary { grid-template-columns: 38px 1fr; gap: 10px; padding-right: 12px; font-size: 16px; }
  .faq-questions details > div { padding-left: 48px; padding-right: 12px; }
  .support-route { grid-template-columns: 1fr; padding: 24px; }
  .support-route > div { grid-column: auto; }
}

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

.platform-downloads {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.platform-downloads > a {
  white-space: nowrap;
}

.platform-downloads.article-downloads {
  margin-bottom: 24px;
}

.hero-actions { flex-wrap: wrap; }
