:root {
  --ink: #171a1f;
  --muted: #5e6776;
  --paper: #f7f9fc;
  --white: #ffffff;
  --blue: #155eef;
  --blue-dark: #0c3ca6;
  --red: #e33b54;
  --mint: #d8f6e8;
  --yellow: #f4c84a;
  --line: #cbd3df;
  --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;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
[id] { scroll-margin-top: 88px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; white-space: nowrap; }
.brand img { width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 6px; }
.brand span { font-size: 18px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { padding: 8px 12px; font-size: 14px; font-weight: 700; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); border-color: var(--blue); }
.main-nav .nav-download { margin-left: 8px; color: var(--white); background: var(--blue); border: 1px solid var(--ink); border-bottom-width: 1px; border-radius: 5px; box-shadow: 3px 3px 0 var(--ink); padding: 9px 18px; }
.main-nav .nav-download:hover { color: var(--white); border-color: var(--ink); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--ink); background: var(--white); border-radius: 4px; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.hero { overflow: hidden; background: var(--white); border-bottom: 1px solid var(--ink); }
.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 548px;
  margin: 0 auto;
  padding: 28px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: 54px;
}
.hero-copy { min-width: 0; }
.route-label { display: inline-flex; align-items: center; gap: 0; margin-bottom: 15px; border: 1px solid var(--ink); font-size: 12px; }
.route-label span { padding: 5px 9px; color: var(--white); background: var(--ink); font-weight: 800; }
.route-label strong { padding: 5px 10px; background: var(--mint); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 520px; margin-bottom: 15px; font-size: 48px; line-height: 1.12; font-weight: 950; }
.hero-copy > p { max-width: 570px; margin-bottom: 20px; color: #404956; font-size: 16px; line-height: 1.78; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 24px; color: var(--white); background: var(--blue); border: 1px solid var(--ink); border-radius: 5px; box-shadow: 4px 4px 0 var(--ink); font-weight: 900; }
.primary-button:hover { background: var(--blue-dark); transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }
.text-link { color: var(--blue-dark); font-weight: 800; border-bottom: 1px solid var(--blue-dark); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.hero-facts div { padding: 12px 10px 0 0; }
.hero-facts dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.hero-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 800; }

.hero-media { position: relative; min-height: 474px; display: flex; align-items: center; justify-content: center; background: #eef3fb; border: 1px solid var(--ink); overflow: hidden; }
.hero-media::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 36px 36px; opacity: 0.38; }
.episode-track { position: absolute; left: 25px; right: 25px; top: 22px; display: flex; align-items: center; z-index: 2; }
.track-stop { width: 10px; height: 10px; border: 2px solid var(--ink); background: var(--white); border-radius: 50%; }
.track-stop.active { background: var(--red); }
.track-line { flex: 1; border-top: 1px dashed var(--ink); }
.screen-frame { position: absolute; background: var(--white); border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); overflow: hidden; }
.screen-frame img { width: auto; height: 100%; max-width: 400px; margin: 0 auto; object-fit: contain; }
.screen-code { position: absolute; top: 6px; left: 6px; z-index: 3; padding: 2px 5px; color: var(--white); background: var(--ink); font-size: 9px; font-weight: 900; }
.primary-screen { z-index: 3; left: 50%; top: 50%; width: 174px; height: 388px; transform: translate(-50%, -50%); }
.inset-screen { z-index: 2; width: 110px; height: 244px; }
.inset-top { left: 22px; top: 83px; transform: rotate(-3deg); }
.inset-bottom { right: 22px; bottom: 47px; transform: rotate(3deg); }
.media-status { position: absolute; z-index: 5; right: 12px; bottom: 11px; display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: var(--mint); border: 1px solid var(--ink); font-size: 10px; font-weight: 800; }
.media-status span { width: 7px; height: 7px; background: #0a8f55; border-radius: 50%; }

.section-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: auto 1fr minmax(260px, 0.9fr); align-items: end; gap: 18px; margin-bottom: 28px; }
.section-index { color: var(--red); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.section-heading h2 { margin-bottom: 0; font-size: 34px; line-height: 1.15; }
.section-note { color: var(--muted); font-size: 14px; line-height: 1.7; }

.route-section { padding: 48px 0 54px; background: var(--paper); border-bottom: 1px solid var(--ink); }
.route-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0; list-style: none; border: 1px solid var(--ink); }
.route-grid li { position: relative; min-height: 176px; padding: 22px 20px; background: var(--white); border-right: 1px solid var(--ink); }
.route-grid li:last-child { border-right: 0; }
.route-grid li::after { content: ""; position: absolute; top: 34px; right: -8px; z-index: 2; width: 15px; height: 15px; background: var(--yellow); border: 1px solid var(--ink); transform: rotate(45deg); }
.route-grid li:last-child::after { display: none; }
.route-grid li > span { color: var(--blue); font-size: 12px; font-weight: 900; }
.route-grid h3 { margin: 18px 0 8px; font-size: 19px; }
.route-grid li > div { color: var(--muted); font-size: 13px; line-height: 1.65; }

.feature-section { padding: 54px 0 60px; color: var(--white); background: var(--ink); }
.light-heading h2 { color: var(--white); }
.feature-board { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #525b68; }
.feature-board article { min-height: 194px; padding: 23px; border-right: 1px solid #525b68; border-bottom: 1px solid #525b68; }
.feature-board article:nth-child(3n) { border-right: 0; }
.feature-board article:nth-child(n+4) { border-bottom: 0; }
.feature-key { display: inline-block; padding: 2px 7px; color: var(--ink); background: var(--mint); font-size: 10px; font-weight: 900; }
.feature-board h3 { margin: 22px 0 9px; font-size: 19px; }
.feature-board article > div { color: #c9d0da; font-size: 13px; line-height: 1.7; }

.gallery-section { padding: 56px 0 64px; background: var(--white); border-bottom: 1px solid var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery-grid figure { margin: 0; border: 1px solid var(--ink); background: var(--paper); }
.figure-image { height: 470px; padding: 22px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--ink); background: #edf2f8; }
.figure-image img { width: auto; height: 100%; max-width: 400px; object-fit: contain; box-shadow: 7px 7px 0 rgba(23, 26, 31, 0.15); }
.gallery-grid figcaption { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 15px 18px 16px; }
.gallery-grid figcaption span { grid-row: 1 / 3; color: var(--red); font-size: 12px; font-weight: 900; }
.gallery-grid figcaption strong { font-size: 15px; }
.gallery-grid figcaption small { color: var(--muted); font-size: 12px; }

.offline-section { padding: 52px 0; background: var(--yellow); border-bottom: 1px solid var(--ink); }
.offline-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.offline-grid h2 { margin: 10px 0 12px; font-size: 36px; }
.offline-copy { max-width: 430px; color: #45400f; }
.check-list { margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--ink); }
.check-list li { display: flex; align-items: center; gap: 16px; padding: 13px 16px; border-bottom: 1px dashed var(--ink); }
.check-list li:last-child { border-bottom: 0; }
.check-list li > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; color: var(--white); background: var(--blue); border: 1px solid var(--ink); font-size: 12px; font-weight: 900; }
.check-list div { display: grid; gap: 2px; }
.check-list strong { font-size: 14px; }
.check-list small { color: var(--muted); font-size: 12px; }

.deep-links-section { padding: 56px 0; background: var(--paper); }
.deep-links-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.deep-links-grid article { min-height: 220px; padding: 28px; background: var(--white); }
.deep-links-grid article + article { border-left: 1px solid var(--ink); }
.deep-links-grid h2 { margin: 20px 0 10px; font-size: 28px; }
.deep-links-grid article > div { max-width: 460px; margin-bottom: 22px; color: var(--muted); }
.deep-links-grid a, .faq-next a { color: var(--blue-dark); font-weight: 900; border-bottom: 1px solid var(--blue-dark); }
.download-band { padding: 35px 0; color: var(--white); background: var(--blue); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.download-inner .section-index { color: var(--mint); }
.download-inner h2 { margin: 5px 0 0; font-size: 28px; }
.inverse-button { color: var(--ink); background: var(--white); }
.inverse-button:hover { color: var(--white); background: var(--ink); }

.site-footer { padding: 34px 0 28px; color: #d8dee7; background: var(--ink); }
.footer-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 900; }
.footer-brand img { width: 36px; height: 36px; border-radius: 5px; }
.footer-inner nav { display: flex; justify-content: center; gap: 24px; margin: 18px 0 14px; font-size: 13px; }
.footer-inner nav a:hover { color: var(--white); }
.footer-inner p { max-width: 760px; margin: 0 auto 10px; font-size: 12px; text-align: center; }
.copyright { color: #8993a3; font-size: 12px; text-align: center; }

/* Internal pages */
.inner-main { background: var(--white); }
.inner-hero { padding: 48px 0; background: #edf3ff; border-bottom: 1px solid var(--ink); }
.inner-hero-grid { display: grid; grid-template-columns: 1fr 0.9fr; align-items: center; gap: 70px; }
.inner-hero h1 { margin: 10px 0 16px; font-size: 44px; line-height: 1.18; }
.inner-hero p { max-width: 660px; margin-bottom: 24px; color: #465064; }
.guide-map, .diagnostic-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); background: var(--white); }
.guide-map span { min-height: 62px; padding: 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 800; }
.guide-map span:nth-child(2n) { border-right: 0; }
.guide-map span:nth-child(n+7) { border-bottom: 0; }
.guide-map span:nth-child(3n+1) { background: var(--mint); }
.guide-map span:nth-child(3n+2) { background: #fff5d5; }
.guide-map span:nth-child(3n) { background: #fce6ea; }
.article-section { padding: 54px 0 70px; }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 760px); justify-content: center; gap: 58px; align-items: start; }
.article-nav { position: sticky; top: 94px; display: grid; border: 1px solid var(--ink); background: var(--paper); }
.article-nav strong { padding: 13px 15px; color: var(--white); background: var(--ink); font-size: 13px; }
.article-nav a { padding: 10px 15px; border-bottom: 1px solid var(--line); font-size: 13px; }
.article-nav a:last-child { border-bottom: 0; }
.article-nav a:hover { color: var(--blue); background: var(--white); }
.article-content > section { margin-bottom: 52px; }
.article-step { display: inline-block; padding: 2px 7px; color: var(--white); background: var(--red); font-size: 10px; font-weight: 900; }
.article-content h2 { margin: 12px 0 24px; padding-bottom: 11px; border-bottom: 2px solid var(--ink); font-size: 30px; }
.article-content h3 { margin: 26px 0 8px; font-size: 18px; }
.article-content p { color: #444d5a; font-size: 15px; }
.article-content p a { color: var(--blue-dark); font-weight: 800; border-bottom: 1px solid var(--blue-dark); }
.notice { display: grid; grid-template-columns: 100px 1fr; gap: 14px; margin-top: 22px; padding: 16px; background: #fff1d0; border: 1px solid var(--ink); }
.notice strong { color: #8b3d00; }
.verification-list { margin: 0 0 24px; padding: 0; list-style: none; border: 1px solid var(--ink); }
.verification-list li { display: grid; grid-template-columns: 90px 1fr; border-bottom: 1px solid var(--line); }
.verification-list li:last-child { border-bottom: 0; }
.verification-list li span { padding: 10px 14px; color: var(--white); background: var(--blue); font-weight: 800; }
.verification-list li div { padding: 10px 14px; }

.faq-hero { background: #f0f9f4; }
.diagnostic-panel > div { min-height: 112px; display: grid; align-content: center; gap: 5px; padding: 20px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.diagnostic-panel > div:nth-child(2n) { border-right: 0; }
.diagnostic-panel > div:nth-child(n+3) { border-bottom: 0; }
.diagnostic-panel span { color: var(--red); font-size: 11px; font-weight: 900; }
.diagnostic-panel strong { font-size: 16px; }
.faq-section { padding: 54px 0 70px; }
.faq-layout { display: grid; grid-template-columns: 180px minmax(0, 830px); justify-content: center; gap: 48px; align-items: start; }
.faq-filter { position: sticky; top: 94px; display: grid; border: 1px solid var(--ink); background: var(--paper); }
.faq-filter > strong { padding: 13px 14px; color: var(--white); background: var(--ink); font-size: 13px; }
.filter-button { padding: 10px 14px; text-align: left; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.filter-button:last-child { border-bottom: 0; }
.filter-button:hover, .filter-button.active { color: var(--white); background: var(--blue); }
.faq-content .section-heading { grid-template-columns: auto 1fr; }
.faq-content .section-note { grid-column: 1 / -1; }
.faq-list { border: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-item:last-child { border-bottom: 0; }
.faq-item[hidden] { display: none; }
.faq-question { width: 100%; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; text-align: left; color: var(--ink); background: var(--white); border: 0; cursor: pointer; font-weight: 800; }
.faq-question:hover { background: #f4f7fb; }
.faq-question span { display: grid; gap: 2px; }
.faq-question small { color: var(--red); font-size: 10px; font-weight: 900; }
.faq-question b { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; color: var(--white); background: var(--blue); font-size: 18px; }
.faq-item.open .faq-question b { background: var(--red); }
.faq-answer { display: none; padding: 0 54px 18px 16px; background: #f4f7fb; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin: 0; color: #465064; font-size: 14px; }
.faq-next { display: grid; gap: 7px; margin-top: 28px; padding: 22px; background: var(--mint); border: 1px solid var(--ink); }
.faq-next span { color: #42504a; font-size: 13px; }
.faq-next a { justify-self: start; }
.faq-context { margin-top: 24px; color: var(--muted); }
.faq-context a { color: var(--blue-dark); font-weight: 800; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr); gap: 30px; }
  .hero h1 { font-size: 40px; }
  .hero-media { min-height: 430px; }
  .inset-screen { width: 92px; height: 205px; }
  .route-grid { grid-template-columns: 1fr 1fr; }
  .route-grid li:nth-child(2) { border-right: 0; }
  .route-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .route-grid li:nth-child(2)::after { display: none; }
  .route-grid li:nth-child(3)::after { display: block; }
  .feature-board { grid-template-columns: 1fr 1fr; }
  .feature-board article, .feature-board article:nth-child(3n) { border-right: 1px solid #525b68; border-bottom: 1px solid #525b68; }
  .feature-board article:nth-child(2n) { border-right: 0; }
  .feature-board article:nth-child(n+5) { border-bottom: 0; }
  .article-layout, .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-nav, .faq-filter { position: static; display: flex; flex-wrap: wrap; }
  .article-nav strong, .faq-filter > strong { width: 100%; }
  .article-nav a, .filter-button { flex: 1 1 120px; border-right: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .header-inner, .hero-inner, .section-inner, .footer-inner { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 62px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 16px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: 63px; left: 14px; right: 14px; display: none; padding: 10px; background: var(--white); border: 1px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 10px 12px; }
  .main-nav .nav-download { margin: 4px 0 0; text-align: center; }
  .hero-inner { min-height: auto; padding: 22px 0 24px; grid-template-columns: 1fr; gap: 20px; }
  .route-label { margin-bottom: 11px; }
  .hero h1 { max-width: none; margin-bottom: 10px; font-size: 34px; }
  .hero-copy > p { margin-bottom: 15px; font-size: 14px; line-height: 1.65; }
  .hero-actions { margin-bottom: 14px; }
  .primary-button { min-height: 42px; padding: 8px 19px; }
  .hero-facts { display: none; }
  .hero-media { min-height: 224px; }
  .episode-track { top: 13px; }
  .primary-screen { width: 82px; height: 182px; transform: translate(-50%, -50%); box-shadow: 4px 4px 0 var(--ink); }
  .inset-screen { display: none; }
  .media-status { bottom: 7px; }
  .section-heading { grid-template-columns: auto 1fr; align-items: center; margin-bottom: 22px; }
  .section-heading h2 { font-size: 28px; }
  .section-note { grid-column: 1 / -1; }
  .route-section, .feature-section, .gallery-section, .offline-section, .deep-links-section { padding: 38px 0; }
  .route-grid, .feature-board, .gallery-grid, .offline-grid, .deep-links-grid { grid-template-columns: 1fr; }
  .route-grid li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--ink); }
  .route-grid li:last-child { border-bottom: 0; }
  .route-grid li::after { display: none !important; }
  .feature-board article, .feature-board article:nth-child(3n), .feature-board article:nth-child(2n) { min-height: auto; border-right: 0; border-bottom: 1px solid #525b68; }
  .feature-board article:last-child { border-bottom: 0; }
  .gallery-grid { gap: 18px; }
  .figure-image { height: 400px; }
  .offline-grid { gap: 24px; }
  .offline-grid h2 { font-size: 30px; }
  .deep-links-grid article + article { border-left: 0; border-top: 1px solid var(--ink); }
  .download-inner { align-items: flex-start; flex-direction: column; }
  .download-inner h2 { font-size: 24px; }
  .footer-inner nav { flex-wrap: wrap; gap: 10px 20px; }
  .inner-hero { padding: 35px 0; }
  .inner-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .inner-hero h1 { font-size: 34px; }
  .article-section, .faq-section { padding: 38px 0 52px; }
  .article-nav { display: none; }
  .faq-filter { display: flex; }
  .article-content h2 { font-size: 26px; }
  .notice { grid-template-columns: 1fr; }
  .verification-list li { grid-template-columns: 74px 1fr; }
  .faq-question { padding: 12px; }
  .faq-answer { padding: 0 42px 16px 12px; }
}

@media (max-width: 410px) {
  .hero h1 { font-size: 31px; }
  .hero-copy > p { font-size: 13px; }
  .hero-actions { gap: 15px; }
  .text-link { font-size: 13px; }
  .hero-media { min-height: 205px; }
  .primary-screen { width: 74px; height: 165px; }
  .media-status { font-size: 9px; }
  .section-heading { gap: 10px; }
  .section-heading h2 { font-size: 26px; }
  .figure-image { height: 365px; }
}
