:root {
  --paper: #f4f5f2;
  --white: #ffffff;
  --ink: #16181d;
  --muted: #656a73;
  --line: #c9cdd2;
  --red: #e3483d;
  --cyan: #00a9b7;
  --yellow: #f5c842;
  --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.72;
}

body.menu-open { overflow: hidden; }

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

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

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

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.18rem; letter-spacing: 0; }
.brand img { width: 44px; height: 44px; }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 0.93rem; font-weight: 700; }
.site-nav > a:not(.button) { position: relative; padding: 22px 0 20px; }
.site-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 15px; height: 3px; background: var(--red); transition: right 180ms ease; }
.site-nav > a:hover::after, .site-nav > a.active::after { right: 0; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button-small { min-height: 40px; padding: 7px 18px; box-shadow: 3px 3px 0 var(--ink); }
.button-light { color: var(--ink); background: var(--white); }
.text-link, .more-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 850; border-bottom: 2px solid currentColor; }
.text-link span, .more-link span { color: var(--red); font-size: 1.2em; }

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

.hero { border-bottom: 1px solid var(--ink); overflow: hidden; }
.hero-inner { min-height: 690px; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr); align-items: center; gap: 64px; padding-block: 44px; }
.hero-copy { max-width: 590px; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.eyebrow span { border: 1px solid var(--ink); padding: 3px 9px; background: var(--white); font-size: 0.7rem; font-weight: 900; }
.eyebrow span:first-child { color: var(--white); background: var(--cyan); }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(2.75rem, 4.2vw, 4.25rem); line-height: 1.12; letter-spacing: 0; }
.hero-copy > p { margin-bottom: 24px; color: #484d55; font-size: 1.03rem; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; }
.hero-ledger { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.hero-ledger div { padding: 12px 12px 12px 0; }
.hero-ledger div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.hero-ledger dt { color: var(--red); font-size: 0.73rem; font-weight: 900; }
.hero-ledger dd { margin: 1px 0 0; font-size: 0.82rem; font-weight: 800; }

.hero-media { position: relative; height: 500px; display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(0, 0.74fr); align-items: center; gap: 12px; }
.version-spine { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-block: 14px; color: var(--white); background: var(--ink); }
.version-spine b { writing-mode: vertical-rl; font-size: 0.72rem; letter-spacing: 0; }
.version-spine span { font-size: 0.68rem; font-weight: 900; }
.screen-door { position: relative; margin: 0; height: 448px; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--ink); background: var(--white); box-shadow: 7px 7px 0 var(--yellow); overflow: hidden; }
.screen-door-secondary { height: 392px; box-shadow: 7px 7px 0 var(--cyan); }
.screen-label { height: 48px; flex: 0 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--ink); font-size: 0.7rem; }
.screen-label span { color: var(--red); font-weight: 900; }
.screen-label b { white-space: nowrap; }
.screen-door img { width: 100%; height: calc(100% - 48px); max-width: 400px; margin-inline: auto; object-fit: contain; object-position: center top; }

.section-band { padding: 78px 0; border-bottom: 1px solid var(--ink); }
.section-index { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 0.68rem; font-weight: 900; }
.section-index span:first-child { color: var(--red); }
.section-index.light { border-color: #54565b; }
.section-index.light span:first-child { color: var(--yellow); }
.section-band h2, .download-band h2, .support-band h2 { margin: 18px 0 34px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.2; letter-spacing: 0; }

.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); background: var(--white); }
.route-grid article { position: relative; min-height: 210px; padding: 28px; }
.route-grid article + article { border-left: 1px solid var(--ink); }
.route-no { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--ink); background: var(--yellow); font-weight: 900; }
.route-grid h3 { margin-bottom: 9px; font-size: 1.08rem; }
.route-grid p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.section-dark { color: var(--white); background: var(--ink); }
.function-table { border-top: 1px solid #54565b; }
.function-table article { display: grid; grid-template-columns: 52px minmax(190px, 0.7fr) minmax(0, 1.3fr); gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid #54565b; }
.function-table article > span { color: var(--cyan); font-weight: 900; }
.function-table h3, .function-table p { margin: 0; }
.function-table p { color: #c5c8ce; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-grid figure { margin: 0; border: 1px solid var(--ink); background: var(--white); }
.gallery-frame { height: 440px; display: flex; align-items: center; justify-content: center; padding: 18px; border-bottom: 1px solid var(--ink); background-color: #e6e8e5; background-image: linear-gradient(#c7cbc8 1px, transparent 1px), linear-gradient(90deg, #c7cbc8 1px, transparent 1px); background-size: 28px 28px; }
.gallery-frame img { width: auto; height: 100%; max-width: 400px; object-fit: contain; border: 1px solid #9da2a8; box-shadow: 6px 6px 0 var(--ink); }
.gallery-grid figcaption { padding: 18px; }
.gallery-grid figcaption span { display: block; margin-bottom: 4px; color: var(--red); font-size: 0.68rem; font-weight: 900; }
.gallery-grid figcaption strong { display: block; font-size: 1.08rem; }
.gallery-grid figcaption p { margin: 6px 0 0; color: var(--muted); font-size: 0.85rem; }

.deep-links { background: var(--white); }
.deep-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border: 1px solid var(--ink); }
.deep-intro, .deep-link { min-height: 260px; padding: 26px; }
.deep-intro h2 { margin-bottom: 16px; }
.deep-points { display: flex; flex-wrap: wrap; gap: 8px; }
.deep-points span { padding: 5px 9px; border: 1px solid var(--ink); color: var(--muted); background: var(--paper); font-size: 0.74rem; font-weight: 800; }
.deep-link { position: relative; border-left: 1px solid var(--ink); background: var(--yellow); }
.deep-link.accent { color: var(--white); background: var(--cyan); }
.deep-link > span { font-size: 0.68rem; font-weight: 900; }
.deep-link h3 { margin: 48px 0 12px; font-size: 1.28rem; }
.deep-link p { margin: 0; font-size: 0.9rem; }
.deep-link > b { position: absolute; right: 24px; bottom: 18px; font-size: 2rem; }

.accordion-list { border-top: 1px solid var(--ink); }
.accordion-list details { border-bottom: 1px solid var(--ink); }
.accordion-list summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-weight: 850; }
.accordion-list summary::-webkit-details-marker { display: none; }
.accordion-list summary span { width: 32px; text-align: center; color: var(--red); font-size: 1.25rem; }
.accordion-list details p { max-width: 820px; margin: 0 0 22px; color: var(--muted); }
.more-link { margin-top: 28px; }

.download-band { padding: 48px 0; color: var(--white); background: var(--red); border-bottom: 1px solid var(--ink); }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.download-inner span { font-size: 0.7rem; font-weight: 900; }
.download-band h2 { max-width: 780px; margin: 6px 0 0; font-size: clamp(1.65rem, 3vw, 2.5rem); }

.site-footer { padding: 34px 0; background: var(--paper); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 36px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 0.78rem; text-align: center; }
.footer-inner small { color: var(--muted); white-space: nowrap; }

.inner-hero { min-height: 475px; display: flex; align-items: center; border-bottom: 1px solid var(--ink); }
.inner-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr); align-items: center; gap: 78px; padding-block: 52px; }
.inner-hero h1 { max-width: 760px; font-size: clamp(2.5rem, 4vw, 4rem); }
.inner-hero p { max-width: 720px; color: #4f545c; font-size: 1.02rem; }
.guide-hero { background: var(--yellow); }
.hero-checklist { margin: 0; padding: 0; list-style: none; border: 1px solid var(--ink); background: var(--white); box-shadow: 8px 8px 0 var(--ink); }
.hero-checklist li { display: grid; grid-template-columns: 58px 1fr; align-items: center; min-height: 58px; }
.hero-checklist li + li { border-top: 1px solid var(--ink); }
.hero-checklist span { align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--ink); color: var(--red); font-size: 0.72rem; font-weight: 900; }
.hero-checklist b { padding: 0 18px; font-size: 0.9rem; }

.article-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: space-between; gap: 80px; }
.article-nav { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.article-nav > span { padding: 10px 0; color: var(--red); font-size: 0.68rem; font-weight: 900; }
.article-nav a { padding: 10px 0; border-top: 1px solid var(--line); font-weight: 750; font-size: 0.86rem; }
.article-nav a:hover { color: var(--red); }
.prose section { scroll-margin-top: 94px; padding-bottom: 58px; }
.prose section + section { padding-top: 54px; border-top: 1px solid var(--line); }
.step-kicker { color: var(--cyan); font-size: 0.68rem; font-weight: 900; }
.prose h2 { margin: 8px 0 22px; font-size: clamp(1.55rem, 2.8vw, 2.45rem); }
.prose p { color: #464b54; line-height: 2; }
.prose a { color: #b32920; font-weight: 800; border-bottom: 1px solid currentColor; }
.note-block { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin-top: 24px; border: 1px solid var(--ink); background: var(--white); }
.note-block b { padding: 18px; color: var(--white); background: var(--cyan); }
.note-block p { margin: 0; padding: 18px; }

.faq-hero { color: var(--white); background: var(--ink); }
.faq-hero p { color: #d0d2d6; }
.faq-search-wrap { padding: 28px; border: 1px solid #73767c; background: #202329; }
.faq-search-wrap label { display: block; margin-bottom: 10px; color: var(--yellow); font-size: 0.72rem; font-weight: 900; }
.faq-search { position: relative; }
.faq-search input { width: 100%; height: 52px; padding: 0 48px 0 14px; border: 1px solid var(--white); border-radius: 0; color: var(--ink); background: var(--white); }
.faq-search span { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.5rem; }
.faq-search-wrap p { margin: 10px 0 0; font-size: 0.78rem; }
.faq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 70px; }
.faq-side { align-self: start; padding: 22px; border: 1px solid var(--ink); background: var(--yellow); }
.faq-side > span { font-size: 0.68rem; font-weight: 900; }
.faq-side ol { padding-left: 22px; margin: 18px 0 28px; }
.faq-side li { margin-bottom: 12px; font-size: 0.86rem; font-weight: 700; }
.faq-side a { font-weight: 900; border-bottom: 2px solid currentColor; }
.faq-list details { border-top: 1px solid var(--ink); }
.faq-list details:last-of-type { border-bottom: 1px solid var(--ink); }
.faq-list details[hidden] { display: none; }
.faq-list summary { min-height: 72px; display: grid; grid-template-columns: 46px minmax(0, 1fr) 34px; align-items: center; gap: 16px; list-style: none; cursor: pointer; font-weight: 850; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--red); font-size: 0.72rem; font-weight: 900; }
.faq-list summary b { text-align: center; color: var(--cyan); font-size: 1.3rem; }
.faq-list details > div { padding: 0 50px 24px 62px; }
.faq-list details p { margin: 0; color: var(--muted); }
.faq-empty { padding: 30px; border: 1px solid var(--ink); background: var(--white); text-align: center; }
.support-band { padding: 62px 0; background: var(--white); border-bottom: 1px solid var(--ink); }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
.support-grid > div:first-child > span { color: var(--red); font-size: 0.72rem; font-weight: 900; }
.support-band h2 { margin: 8px 0 12px; }
.support-band p { margin: 0; color: var(--muted); }
.support-grid > div:last-child { display: flex; align-items: center; gap: 28px; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr); gap: 34px; }
  .hero-media { height: 465px; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 0.7fr); gap: 8px; }
  .screen-door { height: 420px; }
  .screen-door-secondary { height: 350px; }
  .gallery-frame { height: 380px; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
  .footer-brand { justify-content: center; }
  .article-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 44px; }
}

@media (max-width: 760px) {
  .container, .header-inner, .hero-inner { width: min(calc(100% - 32px), var(--max)); }
  .site-header, .header-inner { min-height: 64px; }
  .brand img { width: 40px; height: 40px; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 64px 0 auto 0; max-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; background: var(--paper); border-bottom: 0 solid var(--ink); transition: max-height 220ms ease, border-width 220ms ease; }
  .site-nav.is-open { max-height: calc(100vh - 64px); border-bottom-width: 1px; }
  .site-nav > a:not(.button) { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .site-nav > a:not(.button)::after { display: none; }
  .site-nav .button { margin: 16px 24px 22px; }

  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 24px; padding-block: 28px 22px; }
  .hero-copy { max-width: none; }
  h1 { max-width: 100%; margin-bottom: 13px; font-size: 2.28rem; line-height: 1.16; }
  .h1-cn { display: block; }
  .eyebrow { margin-bottom: 12px; }
  .hero-copy > p { margin-bottom: 17px; font-size: 0.9rem; line-height: 1.72; }
  .hero-actions { margin-bottom: 18px; }
  .hero-ledger { display: none; }
  .hero-media { height: 310px; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 0.7fr); gap: 7px; }
  .version-spine { padding-block: 8px; }
  .version-spine b { font-size: 0.61rem; }
  .screen-door { height: 296px; box-shadow: 4px 4px 0 var(--yellow); }
  .screen-door-secondary { height: 252px; box-shadow: 4px 4px 0 var(--cyan); }
  .screen-label { height: 34px; flex-basis: 34px; padding: 0 7px; }
  .screen-label b { display: none; }
  .screen-door img { height: calc(100% - 34px); }

  .section-band { padding: 54px 0; }
  .update-route { padding-top: 18px; }
  .section-band h2 { margin: 14px 0 26px; font-size: 2rem; }
  .route-grid { grid-template-columns: 1fr; }
  .route-grid article { min-height: 0; padding: 22px; }
  .route-grid article + article { border-left: 0; border-top: 1px solid var(--ink); }
  .route-no { margin-bottom: 14px; }
  .function-table article { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .function-table article p { grid-column: 2; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-frame { height: 390px; }
  .deep-grid { grid-template-columns: 1fr; }
  .deep-intro, .deep-link { min-height: 210px; }
  .deep-link { border-left: 0; border-top: 1px solid var(--ink); }
  .download-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { gap: 12px; }

  .inner-hero { min-height: 0; }
  .inner-hero-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 42px; }
  .inner-hero h1 { font-size: 2.35rem; }
  .article-layout, .faq-layout { grid-template-columns: 1fr; gap: 38px; }
  .article-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .article-nav > span { grid-column: 1 / -1; }
  .article-nav a { padding-right: 10px; }
  .note-block { grid-template-columns: 1fr; }
  .faq-side { order: 2; }
  .faq-list { order: 1; }
  .faq-list summary { grid-template-columns: 34px minmax(0, 1fr) 26px; gap: 8px; min-height: 68px; font-size: 0.92rem; }
  .faq-list details > div { padding: 0 26px 22px 42px; }
  .support-grid { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .support-grid > div:last-child { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-media { height: 284px; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 0.62fr); }
  .screen-door { height: 270px; }
  .screen-door-secondary { height: 220px; }
  .gallery-frame { height: 360px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav > span { grid-column: auto; }
  .support-grid > div:last-child { align-items: flex-start; flex-direction: column; }
}

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