:root {
  --paper: #f7f8f3;
  --surface: #ffffff;
  --ink: #14211f;
  --muted: #5e6c68;
  --line: #cbd4cf;
  --teal: #148577;
  --teal-dark: #0d6057;
  --red: #d94841;
  --yellow: #edb949;
  --shadow: 0 18px 44px rgba(20, 33, 31, 0.12);
  --rail: min(1180px, calc(100% - 40px));
}

* {
  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.75;
}

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;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 243, 0.97);
}

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

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}

.desktop-nav a[aria-current="page"],
.desktop-nav a:not(.button):hover {
  color: var(--teal-dark);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--yellow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--yellow);
}

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

.button-secondary:hover {
  box-shadow: 4px 4px 0 var(--line);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

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

.hero-inner {
  width: var(--rail);
  min-height: 596px;
  margin: 0 auto;
  padding: 58px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.eyebrow,
.section-index {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before,
.section-index::before {
  width: 28px;
  height: 3px;
  content: "";
  background: var(--red);
}

.hero h1 {
  max-width: 600px;
  margin: 18px 0 22px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.task-strip {
  margin-top: 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.task-strip li {
  padding: 13px 10px 13px 0;
  color: var(--muted);
  font-size: 13px;
}

.task-strip li + li {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.task-strip strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.switchboard {
  position: relative;
  min-height: 455px;
  display: grid;
  grid-template-columns: 104px 1fr;
  border: 1px solid var(--ink);
  background: #eef2ee;
  box-shadow: var(--shadow);
}

.switchboard-rail {
  padding: 20px 12px;
  border-right: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.switchboard-rail span {
  display: block;
  margin-bottom: 17px;
  color: #b9c9c4;
  font-size: 11px;
}

.switchboard-rail strong {
  display: block;
  margin-bottom: 58px;
  font-size: 16px;
  line-height: 1.25;
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.rail-status::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.switchboard-stage {
  min-width: 0;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 15px;
}

.board-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.board-tabs span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.board-tabs .active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.board-image {
  min-height: 0;
  display: grid;
  place-items: center;
}

.board-image img {
  width: min(100%, 330px);
  height: auto;
  max-width: 400px;
  border: 1px solid var(--line);
  background: #fff;
}

.board-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.section {
  padding: 82px 0;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

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

.mode-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border: 1px solid var(--ink);
  background: var(--surface);
}

.mode-panel {
  min-height: 260px;
  padding: 32px;
}

.mode-panel + .mode-panel {
  border-left: 1px solid var(--ink);
}

.mode-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
}

.mode-label strong {
  font-size: 24px;
}

.status-chip {
  padding: 4px 8px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
}

.mode-panel p,
.feature-row p,
.route-copy p {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  border-top: 1px solid var(--ink);
}

.feature-row {
  display: grid;
  grid-template-columns: 90px minmax(190px, 0.75fr) 1.25fr;
  gap: 30px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.feature-row .number {
  color: var(--red);
  font-weight: 850;
}

.feature-row h3 {
  margin: 0;
  font-size: 20px;
}

.gallery-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.shot-cell {
  min-width: 0;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  background: var(--surface);
}

.shot-cell header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.shot-frame {
  min-height: 350px;
  display: grid;
  place-items: center;
  background: #eef2ee;
}

.shot-frame img {
  width: auto;
  height: auto;
  max-width: min(100%, 400px);
  max-height: 430px;
}

.shot-cell h3 {
  margin: 0;
  font-size: 18px;
}

.route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.route-link {
  min-height: 230px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease;
}

.route-link:hover {
  transform: translateY(-4px);
}

.route-link:nth-child(2) {
  border-top: 8px solid var(--red);
}

.route-link:first-child {
  border-top: 8px solid var(--teal);
}

.route-link small {
  color: var(--muted);
  font-weight: 750;
}

.route-link h3 {
  margin: 24px 0 10px;
  font-size: 28px;
}

.route-arrow {
  align-self: end;
  color: var(--red);
  font-size: 28px;
}

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

.faq-mini {
  padding: 24px;
  border-left: 3px solid var(--teal);
  background: var(--surface);
}

.faq-mini h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

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

.download-band {
  padding: 54px 0;
  background: var(--ink);
  color: #fff;
}

.download-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.download-band h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

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

.download-band .button {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

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

.footer-links {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 700;
}

.disclaimer,
.copyright {
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

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

.page-hero-inner {
  width: var(--rail);
  margin: 0 auto;
  padding: 64px 0 58px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.page-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: 0;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.article-shell {
  width: var(--rail);
  margin: 0 auto;
  padding: 68px 0 88px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
}

.article-nav {
  position: sticky;
  top: 98px;
  align-self: start;
  border-top: 4px solid var(--red);
}

.article-nav a {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.article-nav a:hover {
  color: var(--teal-dark);
}

.article-content {
  min-width: 0;
}

.article-section {
  scroll-margin-top: 100px;
  padding-bottom: 52px;
}

.article-section + .article-section {
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.article-section h2 {
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 1.25;
}

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

.article-section p,
.article-section li {
  color: #394743;
}

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

.checklist {
  margin: 24px 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.checklist strong {
  color: var(--red);
}

.notice {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  background: #fff;
  color: #394743;
}

.faq-tools {
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.faq-filter {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.faq-filter.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  padding: 20px 44px 20px 0;
  position: relative;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 8px;
  color: var(--red);
  font-size: 24px;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  padding: 0 52px 20px 0;
  color: #394743;
}

.faq-answer[hidden],
.faq-item[hidden] {
  display: none;
}

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

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    inset: 70px 0 auto;
    z-index: 45;
    padding: 16px max(14px, calc((100% - 720px) / 2));
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
  }

  .mobile-nav.open {
    display: grid;
    gap: 6px;
  }

  .mobile-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-weight: 750;
  }

  .mobile-nav .button {
    margin-top: 8px;
  }

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

  .hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 10vw, 52px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .switchboard {
    width: min(100%, 560px);
    min-height: 360px;
    margin: 0 auto;
    grid-template-columns: 82px 1fr;
  }

  .switchboard-rail {
    padding: 15px 10px;
  }

  .switchboard-rail strong {
    margin-bottom: 30px;
    font-size: 13px;
  }

  .switchboard-stage {
    padding: 13px;
    gap: 10px;
  }

  .board-image img {
    width: auto;
    height: 280px;
    max-width: 100%;
    object-fit: contain;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .mode-grid,
  .route-grid,
  .faq-preview {
    grid-template-columns: 1fr;
  }

  .mode-panel + .mode-panel {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

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

  .shot-frame {
    min-height: 320px;
  }

  .page-hero-inner,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .page-hero-inner {
    padding: 44px 0;
    gap: 22px;
  }

  .article-shell {
    padding: 48px 0 68px;
    gap: 38px;
  }

  .article-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  :root {
    --rail: calc(100% - 28px);
  }

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

  .mobile-nav {
    inset: 64px 0 auto;
  }

  .hero-inner {
    padding: 28px 0 24px;
    gap: 20px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .hero h1 {
    margin: 10px 0 14px;
    font-size: 32px;
    line-height: 1.1;
  }

  .hero-copy > p {
    font-size: 14px;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .button {
    min-height: 44px;
    padding: 10px 16px;
  }

  .task-strip {
    display: none;
  }

  .switchboard {
    min-height: 252px;
    grid-template-columns: 66px 1fr;
  }

  .switchboard-rail span {
    margin-bottom: 9px;
    font-size: 9px;
  }

  .switchboard-rail strong {
    margin-bottom: 17px;
    font-size: 11px;
  }

  .rail-status,
  .board-meta {
    font-size: 9px;
  }

  .board-tabs span {
    padding: 3px 5px;
    font-size: 9px;
  }

  .board-image img {
    width: auto;
    height: 180px;
    max-width: 100%;
  }

  .section {
    padding: 52px 0;
  }

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

  .feature-row {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .feature-row p {
    grid-column: 2;
  }

  .mode-panel,
  .shot-cell,
  .route-link {
    padding: 20px;
  }

  .download-band .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-band h2 {
    font-size: 26px;
  }

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

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

  .checklist li {
    grid-template-columns: 40px 1fr;
  }

  .faq-answer {
    padding-right: 10px;
  }
}

