:root {
  --red: #b7322c;
  --red-dark: #85231f;
  --gold: #e9b949;
  --jade: #28766b;
  --ink: #1d2422;
  --muted: #5b6662;
  --paper: #f5f6f3;
  --white: #ffffff;
  --line: #dce1dc;
  --shadow: 0 14px 40px rgba(29, 36, 34, .12);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.72; }
body, button, a { letter-spacing: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; height: 72px; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(29,36,34,.1); backdrop-filter: blur(12px); }
.header-inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 225px; }
.brand-seal { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--red); border: 2px solid #d16a62; outline: 1px solid var(--red); outline-offset: 2px; font: 800 21px/1 "STKaiti", "KaiTi", serif; }
.brand b { display: block; font-size: 17px; line-height: 1.2; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.site-nav { display: flex; align-items: stretch; align-self: stretch; gap: 4px; margin-left: auto; }
.site-nav a { position: relative; display: flex; align-items: center; padding: 0 17px; color: #343c39; font-size: 14px; font-weight: 700; }
.site-nav a::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 0; height: 3px; background: transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.site-nav a[aria-current="page"]::after { background: var(--red); }
.header-download { display: grid; place-items: center; min-width: 106px; height: 40px; padding: 0 18px; background: var(--red); color: #fff; font-size: 14px; font-weight: 800; }
.menu-button { display: none; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; }
.menu-button > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.home-hero { position: relative; min-height: 650px; display: grid; align-items: center; overflow: hidden; background: #1d2422; color: #fff; }
.hero-media, .hero-gallery, .hero-shade { position: absolute; inset: 0; }
.hero-gallery { display: grid; grid-template-columns: 1.3fr .85fr .85fr; }
.hero-gallery img { width: 100%; height: 100%; object-fit: cover; }
.hero-gallery img:nth-child(2), .hero-gallery img:nth-child(3) { filter: saturate(.86) contrast(1.03); }
.hero-shade { background: linear-gradient(90deg, rgba(17,22,20,.92) 0%, rgba(17,22,20,.77) 38%, rgba(17,22,20,.22) 72%, rgba(17,22,20,.08) 100%); }
.hero-content { position: relative; z-index: 2; padding: 82px 0 74px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.eyebrow.red { color: var(--red); }
.eyebrow.jade { color: var(--jade); }
.eyebrow.gold { color: var(--gold); }
.home-hero h1 { max-width: 760px; margin: 0; font: 900 64px/1.13 "STKaiti", "KaiTi", "Microsoft YaHei", serif; text-wrap: balance; }
.hero-lead { max-width: 670px; margin: 22px 0 0; color: rgba(255,255,255,.88); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; font-size: 15px; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--red); color: #fff; border-color: var(--red); }
.button.secondary { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(29,36,34,.26); }
.button.dark { background: var(--ink); color: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 40px 0 0; }
.hero-facts div { min-width: 180px; padding: 0 24px; border-left: 1px solid rgba(255,255,255,.32); }
.hero-facts div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dt { color: rgba(255,255,255,.64); font-size: 12px; }
.hero-facts dd { margin: 3px 0 0; font-weight: 800; }

.source-bar { background: var(--jade); color: #fff; }
.source-bar .wrap { min-height: 62px; display: flex; align-items: center; gap: 26px; }
.source-bar span { padding-right: 26px; border-right: 1px solid rgba(255,255,255,.35); font-size: 12px; }
.source-bar b { font-size: 13px; }
.section { padding: 82px 0; }
.section.pale { background: #eaeeea; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.section-heading h2, .field-copy h2, .checklist-layout h2 { margin: 0; font: 900 36px/1.22 "STKaiti", "KaiTi", "Microsoft YaHei", serif; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; }
.section-heading.light h2 { color: #fff; }
.section-heading.light > p { color: rgba(255,255,255,.68); }

.route-section { background: #fff; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.route-card { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--red); background: var(--paper); }
.route-card.ios { border-top-color: var(--ink); }
.route-card.verify { border-top-color: var(--gold); }
.route-card span { color: var(--muted); font-size: 11px; font-weight: 900; }
.route-card h3 { margin: 20px 0 10px; font-size: 23px; }
.route-card p { margin: 0; color: var(--muted); font-size: 14px; }
.route-card b { display: inline-block; margin-top: 23px; color: var(--red); font-size: 14px; }
.route-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); }

.field-section { background: var(--paper); }
.field-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 72px; }
.field-grid.reverse { grid-template-columns: 1.15fr .85fr; }
.field-copy h2 { margin-bottom: 20px; }
.field-copy p:not(.eyebrow) { margin: 0 0 26px; color: var(--muted); }
.field-images { display: grid; grid-template-columns: 1.05fr .95fr; gap: 12px; }
.field-images img { width: 100%; height: 330px; object-fit: cover; border: 8px solid #fff; box-shadow: var(--shadow); }
.field-images img:nth-child(2) { margin-top: 42px; }

.articles-preview { background: #fff; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { min-width: 0; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.article-card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e4e8e4; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .article-card-image img { transform: scale(1.025); }
.article-card-body { padding: 18px 20px 21px; }
.article-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.article-meta span { color: var(--red); font-weight: 800; }
.article-card h3 { margin: 9px 0 8px; font-size: 18px; line-height: 1.45; }
.article-card h3 a:hover { color: var(--red); }
.article-card p { min-height: 70px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.text-link { color: var(--red); font-size: 13px; font-weight: 800; }
.article-card .text-link { display: inline-block; margin-top: 13px; }
.article-directory { margin-top: 22px; border: 1px solid var(--line); background: var(--paper); }
.article-directory summary { display: flex; justify-content: space-between; padding: 18px 20px; cursor: pointer; font-weight: 800; }
.article-directory summary span { color: var(--muted); font-size: 13px; }
.directory-grid { display: grid; grid-template-columns: repeat(2, 1fr); padding: 0 20px 20px; gap: 1px 24px; }
.directory-grid a { padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.directory-grid a span { margin-right: 10px; color: var(--red); font-size: 11px; font-weight: 800; }

.review-section { background: var(--ink); color: #fff; overflow: hidden; }
.review-source { display: inline-block; margin: -12px 0 22px; color: rgba(255,255,255,.62); font-size: 12px; }
.reviews-viewport { overflow-x: auto; scrollbar-width: thin; padding-bottom: 10px; }
.reviews-track { display: flex; width: max-content; gap: 14px; }
.review-card { width: 310px; min-height: 230px; padding: 22px; color: var(--ink); background: #fff; border-top: 4px solid var(--gold); }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar { display: grid; place-items: center; width: 38px; height: 38px; background: var(--jade); color: #fff; font-weight: 900; }
.review-head h3 { margin: 0; font-size: 14px; }
.stars { color: var(--gold); font-size: 12px; }
.stars i { color: #d7dbd7; font-style: normal; }
.review-card > p { min-height: 84px; margin: 18px 0; font-size: 13px; line-height: 1.8; }
.review-card footer { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.review-status { display: flex; justify-content: space-between; margin-top: 18px; color: rgba(255,255,255,.58); font-size: 12px; }
.review-empty { padding: 30px; background: rgba(255,255,255,.08); }
.final-cta { padding: 45px 0; background: var(--gold); }
.final-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.final-cta .eyebrow { color: var(--red-dark); }
.final-cta h2 { margin: 0; font-size: 28px; }

.page-banner { position: relative; min-height: 390px; display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--ink); }
.page-banner-image, .banner-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-shade { background: linear-gradient(90deg, rgba(29,36,34,.92), rgba(29,36,34,.24)); }
.banner-copy { position: relative; z-index: 2; padding: 70px 0; }
.banner-copy h1 { max-width: 800px; margin: 0; font: 900 50px/1.15 "STKaiti", "KaiTi", serif; }
.banner-copy > p:last-child { max-width: 680px; margin: 16px 0 0; color: rgba(255,255,255,.82); font-size: 17px; }
.download-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.download-choice article { padding: 34px; border: 1px solid var(--line); background: #fff; }
.download-choice article > span { color: var(--red); font-size: 11px; font-weight: 900; }
.download-choice h2 { margin: 12px 0; font-size: 27px; }
.download-choice p { color: var(--muted); }
.download-choice dl { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.download-choice dl div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 4px 0; font-size: 13px; }
.download-choice dt { color: var(--muted); }
.download-choice dd { margin: 0; font-weight: 700; }
.notice { display: flex; gap: 24px; margin-top: 18px; padding: 22px 24px; border-left: 4px solid var(--gold); background: #fff7df; }
.notice p { margin: 0; color: var(--muted); font-size: 13px; }
.checklist-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.checklist-layout ol { margin: 0; padding: 0; list-style: none; counter-reset: install; }
.checklist-layout li { counter-increment: install; display: grid; grid-template-columns: 42px 120px 1fr; gap: 14px; align-items: start; padding: 17px 0; border-top: 1px solid #cfd5cf; }
.checklist-layout li::before { content: "0" counter(install); color: var(--red); font-weight: 900; }
.checklist-layout li span { color: var(--muted); font-size: 13px; }

.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mode-grid article { min-height: 290px; padding: 28px; background: #fff; }
.mode-grid article > span { color: var(--gold); font-size: 28px; font-weight: 900; }
.mode-grid h2 { margin: 30px 0 10px; font-size: 23px; }
.mode-grid p { color: var(--muted); font-size: 13px; }
.mode-grid a { color: var(--red); font-size: 13px; font-weight: 800; }
.source-panel { padding: 55px 0; background: var(--jade); color: #fff; }
.source-panel .wrap { display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 40px; }
.source-panel h2, .source-panel p { margin: 0; }
.source-panel p { color: rgba(255,255,255,.76); font-size: 14px; }
.source-panel a { font-weight: 800; }

.library-head { padding: 78px 0 52px; background: #fff; border-bottom: 1px solid var(--line); }
.library-head h1 { margin: 0; font: 900 48px/1.2 "STKaiti", "KaiTi", serif; }
.library-head > .wrap > p:not(.eyebrow) { max-width: 700px; color: var(--muted); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filter-chips span { padding: 6px 12px; border: 1px solid var(--line); color: var(--muted); background: var(--paper); font-size: 12px; }
.archive-grid { row-gap: 24px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 28px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--red); }
.article-head { padding: 54px 0 42px; }
.article-head .wrap { max-width: 980px; }
.article-head h1 { max-width: 900px; margin: 0; font: 900 46px/1.25 "STKaiti", "KaiTi", "Microsoft YaHei", serif; }
.article-head > .wrap > p:not(.eyebrow) { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.article-byline { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article-shell { display: grid; grid-template-columns: 210px minmax(0, 780px); justify-content: center; gap: 54px; padding-bottom: 90px; }
.article-toc { position: sticky; top: 98px; align-self: start; padding: 18px; border-left: 3px solid var(--red); background: #fff; }
.article-toc b { display: block; margin-bottom: 10px; }
.article-toc a { display: block; padding: 6px 0; color: var(--muted); font-size: 12px; }
.article-toc a:hover { color: var(--red); }
.prose { min-width: 0; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; }
.prose figure { margin: 0 0 10px; background: #fff; }
.prose figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.prose figcaption { padding: 9px 12px; color: var(--muted); font: 12px/1.6 "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.image-source { margin: 0 0 28px; color: var(--muted); font: 12px/1.7 "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.image-source a { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; }
.prose .lead { padding: 22px 24px; border-left: 4px solid var(--gold); background: #fff; font-size: 17px; font-weight: 700; }
.prose section { scroll-margin-top: 95px; }
.prose h2 { margin: 42px 0 15px; font: 900 27px/1.35 "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.prose p { margin: 0 0 18px; color: #303835; font-size: 17px; line-height: 2; text-align: justify; }
.article-checklist { padding: 4px 28px 24px; margin-top: 42px; background: #eaf1ee; border-top: 4px solid var(--jade); }
.article-checklist ul { margin: 0; padding-left: 20px; }
.article-checklist li { margin: 9px 0; }
.permalink-box { padding: 4px 24px 18px; margin-top: 24px; border: 1px solid var(--line); background: #fff; }
.permalink-box h2 { font-size: 21px; }
.permalink-box p { margin-bottom: 8px; font: 13px/1.7 "Noto Sans SC", "Microsoft YaHei", sans-serif; text-align: left; overflow-wrap: anywhere; }
.permalink-box a { color: var(--red); text-decoration: underline; }
.article-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.article-neighbors a { min-height: 95px; padding: 18px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; }
.article-neighbors a:last-child { text-align: right; }
.article-neighbors span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }

.site-footer { padding: 58px 0 22px; background: #141918; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .8fr; gap: 60px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-grid p { max-width: 480px; color: rgba(255,255,255,.58); font-size: 13px; }
.footer-grid h2 { margin: 0 0 12px; font-size: 14px; }
.footer-grid a { display: block; padding: 4px 0; color: rgba(255,255,255,.64); font-size: 12px; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.42); font-size: 11px; }
.mobile-download { display: none; }
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: center; padding: 40px; background: var(--paper); }
.not-found h1 { margin: 0; font-size: 46px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

@media (max-width: 920px) {
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; height: auto; padding: 10px 20px 18px; background: #fff; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: grid; }
  .site-nav a { min-height: 44px; padding: 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .menu-button { display: block; margin-left: auto; }
  .header-download { display: none; }
  .home-hero { min-height: 620px; }
  .home-hero h1 { font-size: 50px; }
  .hero-gallery { grid-template-columns: 1.25fr .75fr; }
  .hero-gallery img:nth-child(3) { display: none; }
  .route-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .route-card:last-child { grid-column: 1 / -1; }
  .field-grid, .field-grid.reverse { grid-template-columns: 1fr; gap: 36px; }
  .field-copy { max-width: 700px; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .source-panel .wrap { grid-template-columns: 1fr; gap: 14px; }
  .article-shell { grid-template-columns: 1fr; }
  .article-toc { position: static; display: none; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1180px); }
  body { padding-bottom: 56px; }
  .site-header, .header-inner { height: 62px; }
  .brand { min-width: 0; }
  .brand-seal { width: 34px; height: 34px; }
  .brand small { display: none; }
  .site-nav { top: 62px; }
  .home-hero { min-height: 645px; align-items: end; }
  .hero-gallery { grid-template-columns: 1fr; }
  .hero-gallery img { object-position: 43% center; }
  .hero-gallery img:nth-child(2), .hero-gallery img:nth-child(3) { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(17,22,20,.96) 0%, rgba(17,22,20,.73) 58%, rgba(17,22,20,.18) 100%); }
  .hero-content { padding: 180px 0 32px; }
  .home-hero h1 { font-size: 38px; line-height: 1.18; }
  .hero-lead { font-size: 15px; }
  .hero-actions .button { flex: 1 1 150px; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 0; margin-top: 28px; }
  .hero-facts div { min-width: 0; padding: 0 12px; }
  .hero-facts div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .source-bar .wrap { min-height: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px 0; }
  .source-bar span { grid-column: 1 / -1; padding: 0; border: 0; }
  .source-bar b { font-size: 11px; }
  .source-bar b:last-child { grid-column: 1 / -1; }
  .section { padding: 58px 0; }
  .section-heading { display: block; }
  .section-heading h2, .field-copy h2, .checklist-layout h2 { font-size: 29px; }
  .section-heading > p { margin-top: 10px; }
  .section-heading > .text-link { display: inline-block; margin-top: 12px; }
  .route-grid, .article-grid, .download-choice, .mode-grid { grid-template-columns: 1fr; }
  .route-card:last-child { grid-column: auto; }
  .route-card { min-height: 0; }
  .field-images img { height: 210px; border-width: 5px; }
  .field-images img:nth-child(2) { margin-top: 28px; }
  .article-card p { min-height: 0; }
  .directory-grid { grid-template-columns: 1fr; }
  .review-status, .final-cta .wrap, .notice { display: block; }
  .review-status span { display: block; }
  .final-cta .button { margin-top: 18px; }
  .page-banner { min-height: 330px; }
  .banner-copy { padding: 48px 0; }
  .banner-copy h1 { font-size: 38px; }
  .download-choice article { padding: 24px; }
  .notice p { margin-top: 8px; }
  .checklist-layout { grid-template-columns: 1fr; gap: 28px; }
  .checklist-layout li { grid-template-columns: 34px 1fr; }
  .checklist-layout li span { grid-column: 2; }
  .mode-grid article { min-height: 0; }
  .library-head { padding: 54px 0 38px; }
  .library-head h1 { font-size: 38px; }
  .article-head { padding: 38px 0 30px; }
  .article-head h1 { font-size: 34px; }
  .article-head > .wrap > p:not(.eyebrow) { font-size: 15px; }
  .article-shell { gap: 0; padding-bottom: 60px; }
  .prose .lead { padding: 18px; font-size: 15px; }
  .prose h2 { font-size: 23px; }
  .prose p { font-size: 16px; line-height: 1.9; }
  .article-checklist { padding-left: 20px; padding-right: 20px; }
  .article-neighbors { grid-template-columns: 1fr; }
  .article-neighbors a:last-child { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: block; }
  .mobile-download { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: var(--red); color: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
  .mobile-download span { font-size: 11px; opacity: .78; }
  .mobile-download b { font-size: 15px; }
}
