:root {
  --ink: #142438;
  --muted: #5b6877;
  --paper: #ffffff;
  --soft: #f2f5f6;
  --warm: #f7f3ea;
  --line: #cbd5dc;
  --red: #df493a;
  --green: #2b8a67;
  --sky: #4b9fc6;
  --yellow: #f1be3e;
  --shadow: 0 18px 42px rgba(20, 36, 56, 0.12);
  --rail: min(1160px, calc(100% - 48px));
}

* {
  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;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: var(--rail);
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 6px 13px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--red);
  border-color: var(--red);
}

.nav-download,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-download:hover,
.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  overflow: hidden;
  background: linear-gradient(90deg, var(--warm) 0 54%, #e7f2f5 54% 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: var(--rail);
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 56px;
  padding: 48px 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--green);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.18;
}

h1 {
  margin-bottom: 22px;
  font-size: 54px;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 44px;
}

.hero-copy > p {
  max-width: 600px;
  margin: 0 0 26px;
  color: #435061;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-points span {
  padding: 5px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
}

.diagnostic-board {
  position: relative;
  min-width: 0;
  padding: 28px 24px 25px;
  background: var(--ink);
  border: 1px solid #081421;
  box-shadow: var(--shadow);
}

.board-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: #d7e2e9;
  font-size: 11px;
  font-weight: 800;
}

.screen-frame {
  padding: 9px;
  background: #fff;
  border: 3px solid var(--sky);
}

.screen-frame img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}

.decision-flow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
}

.decision-node {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 8px;
  color: #fff;
  border: 1px solid #718092;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.decision-node.alert {
  background: var(--red);
  border-color: var(--red);
}

.decision-node.ok {
  background: var(--green);
  border-color: var(--green);
}

.flow-line {
  height: 2px;
  background: var(--yellow);
}

.board-corner {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 44px;
  height: 44px;
  border-top: 10px solid var(--red);
  border-right: 10px solid var(--red);
}

.section {
  padding: 74px 0;
}

.section.alt {
  background: var(--soft);
}

.section.dark {
  color: #fff;
  background: var(--ink);
}

.container {
  width: var(--rail);
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 36px;
}

.section-note {
  max-width: 630px;
  color: var(--muted);
  font-size: 15px;
}

.dark .section-note {
  color: #cbd7df;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-item {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-index {
  display: block;
  margin-bottom: 30px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.feature-item h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 0.72fr;
  gap: 18px;
  align-items: stretch;
}

.gallery-card {
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.gallery-media {
  min-height: 280px;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #e8edef;
}

.gallery-media img {
  width: auto;
  max-width: min(100%, 400px);
  max-height: 440px;
  height: auto;
  object-fit: contain;
}

.gallery-card figcaption {
  padding: 16px 18px;
  border-top: 4px solid var(--green);
  font-size: 13px;
}

.gallery-card strong {
  display: block;
  margin-bottom: 4px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.route-step {
  position: relative;
  min-height: 190px;
  padding: 24px;
  background: #fff;
  border-left: 6px solid var(--sky);
  border-radius: 4px;
}

.route-step:nth-child(2) {
  border-left-color: var(--yellow);
}

.route-step:nth-child(3) {
  border-left-color: var(--green);
}

.route-step b {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 12px;
}

.route-step h3 {
  margin-bottom: 10px;
}

.route-step p {
  margin: 0;
  color: var(--muted);
}

.deep-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.deep-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 120px;
  padding: 22px;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
}

.deep-link:hover {
  border-color: var(--red);
}

.deep-link .mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.deep-link h3 {
  margin-bottom: 5px;
}

.deep-link p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.deep-link .arrow {
  color: var(--red);
  font-size: 24px;
}

.faq-preview {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 36px;
}

.faq-preview .lead {
  margin: 0;
  color: #cbd7df;
}

.faq-list {
  border-top: 1px solid #617082;
}

.faq-list details {
  border-bottom: 1px solid #617082;
}

.faq-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--yellow);
  font-size: 24px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0 0 20px;
  color: #cbd7df;
}

.download-band {
  background: var(--yellow);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.download-band .container {
  min-height: 176px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.download-band h2 {
  margin-bottom: 8px;
}

.download-band p {
  margin: 0;
  color: #384354;
}

.page-hero {
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.6fr);
  align-items: center;
  gap: 60px;
  padding: 52px 0;
}

.page-hero h1 {
  max-width: 760px;
  font-size: 48px;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-log {
  padding: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-log div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #536275;
  font-size: 13px;
}

.hero-log div:last-child {
  border-bottom: 0;
}

.hero-log span:last-child {
  color: #8fe0bd;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
}

.side-index {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.side-index strong {
  display: block;
  margin-bottom: 12px;
}

.side-index a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 14px;
}

.side-index a:hover {
  color: var(--red);
}

.article h2 {
  margin: 58px 0 20px;
  padding-top: 10px;
  font-size: 30px;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.article p,
.article li {
  color: #435061;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.callout {
  margin: 24px 0;
  padding: 20px 22px;
  background: #e8f4ef;
  border-left: 5px solid var(--green);
}

.callout.alert {
  background: #fff0ee;
  border-color: var(--red);
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}

.check-item {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.check-item strong {
  display: block;
  margin-bottom: 5px;
}

.faq-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.faq-tools label {
  font-weight: 800;
}

.faq-tools input {
  width: min(420px, 100%);
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.question-list {
  border-top: 1px solid var(--line);
}

.question-list details {
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}

.question-list summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 800;
}

.question-list summary::-webkit-details-marker {
  display: none;
}

.question-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--red);
  font-size: 24px;
}

.question-list details[open] summary::after {
  content: "−";
}

.question-list details p {
  margin: 0 0 22px;
  color: var(--muted);
}

.question-list details[hidden] {
  display: none;
}

.site-footer {
  padding: 34px 0;
  color: #cad5dd;
  background: #0c1826;
  text-align: center;
}

.site-footer .container {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
}

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

.site-footer p {
  max-width: 840px;
  margin: 0;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
    gap: 28px;
  }

  h1 {
    font-size: 44px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-card:last-child {
    grid-column: 1 / -1;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .side-index {
    position: static;
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --rail: min(100% - 28px, 680px);
  }

  .header-inner {
    min-height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;
    inset: 60px 0 auto 0;
    display: none;
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-list.open {
    display: grid;
  }

  .nav-list a {
    justify-content: center;
    min-height: 44px;
  }

  .nav-download {
    display: none;
  }

  .hero {
    background: linear-gradient(180deg, var(--warm) 0 61%, #e7f2f5 61% 100%);
  }

  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 0 30px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 38px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy > p {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .hero-actions .button {
    flex: 1 1 140px;
  }

  .hero-points {
    margin-top: 18px;
  }

  .diagnostic-board {
    padding: 17px;
  }

  .screen-frame img {
    max-height: 165px;
    object-fit: contain;
  }

  .decision-flow {
    margin-top: 12px;
  }

  .decision-node {
    min-height: 42px;
    padding: 5px;
    font-size: 10px;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .section-note {
    margin-top: 10px;
  }

  .feature-grid,
  .gallery-grid,
  .route-grid,
  .deep-links,
  .faq-preview,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card:last-child {
    grid-column: auto;
  }

  .gallery-media {
    min-height: 220px;
  }

  .download-band .container {
    min-height: 0;
    display: grid;
    padding: 34px 0;
  }

  .download-band .button {
    width: 100%;
  }

  .page-hero .container {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 0;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .article h2 {
    font-size: 27px;
  }

  .faq-tools {
    display: grid;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 34px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .brand span {
    font-size: 15px;
  }

  .decision-flow {
    grid-template-columns: 1fr 20px 1fr 20px 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
