:root {
  color-scheme: light;
  --brand: #ee3c23;
  --brand-start: #fc6753;
  --brand-end: #ff3f36;
  --brand-soft: #ffeae8;
  --text: #333333;
  --muted: #666666;
  --quiet: #999999;
  --page: #f5f4f5;
  --card: #ffffff;
  --control: #f8f8f8;
  --divider: #eeeeee;
  --warning-bg: #fffce8;
  --warning-text: #8b571f;
  --success: #179839;
  --link: #258cf2;
  --font-12: 12px;
  --font-14: 14px;
  --font-16: 16px;
  --font-18: 18px;
  --font-20: 20px;
  --line-12: 18px;
  --line-14: 22px;
  --line-16: 25px;
  --line-18: 28px;
  --line-20: 31px;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-pill: 24px;
  --content: 1180px;
  --font-ui: "PingFang SC", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
}

html[data-text-scale="large"] {
  --font-12: 14px;
  --font-14: 16px;
  --font-16: 18px;
  --font-18: 20px;
  --font-20: 22px;
  --line-12: 21px;
  --line-14: 25px;
  --line-16: 28px;
  --line-18: 31px;
  --line-20: 34px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--font-14);
  line-height: var(--line-14);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ol, ul, figure { margin: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 16px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  background: var(--text);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; z-index: 999; inset: 0 0 auto; height: 2px; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--brand); }

.site-header { background: var(--card); color: var(--text); }
.topbar, .hero, .page-layout { width: min(var(--content), calc(100% - 32px)); margin-inline: auto; }
.topbar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--divider);
}
.brand, .top-actions { display: flex; align-items: center; }
.brand { min-height: 44px; gap: 12px; font-weight: 600; }
.brand img { width: auto; height: 24px; }
.top-actions { gap: 4px; }
.top-actions button {
  min-width: 56px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.top-actions button:hover, .top-actions button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }

.hero {
  display: grid;
  min-height: 340px;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr);
  gap: 36px;
  align-items: center;
  padding-block: 48px;
}
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: var(--font-12); line-height: var(--line-12); font-weight: 600; }
.eyebrow span { width: 20px; height: 2px; background: var(--brand); }
.hero h1 { margin-top: 12px; color: var(--text); font-size: 32px; line-height: 42px; letter-spacing: -.02em; }
.lead { max-width: 650px; margin-top: 12px; font-size: var(--font-16); line-height: var(--line-16); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: var(--font-16);
  font-weight: 600;
}
.primary-button { background: linear-gradient(90deg, var(--brand-start), var(--brand-end)); color: #fff; }
.secondary-button { border: 1px solid var(--brand); background: #fff; color: var(--brand); }

.hero-guide { padding: 24px; border: 1px solid var(--divider); border-top: 3px solid var(--brand); background: var(--card); }
.guide-title { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: var(--font-16); font-weight: 700; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #57ca9c; box-shadow: 0 0 0 5px #e9fff7; }
.mini-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0; margin-top: 20px; list-style: none; }
.mini-flow li { min-width: 0; padding-top: 10px; border-top: 1px solid var(--divider); }
.mini-flow b { display: block; color: var(--brand); font-size: var(--font-12); }
.mini-flow span { display: block; margin-top: 4px; color: var(--text); font-size: var(--font-12); line-height: var(--line-12); }
.hero-guide > p { margin-top: 18px; color: var(--quiet); font-size: var(--font-12); line-height: var(--line-12); }

.page-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 28px 64px; }
.side-nav { position: sticky; top: 16px; overflow: hidden; border: 1px solid var(--divider); border-radius: var(--radius-l); background: var(--card); }
.nav-toggle { display: none; }
.nav-list { display: grid; padding: 10px; }
.nav-list a { display: flex; min-height: 44px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-m); }
.nav-list a span { color: var(--quiet); font-size: var(--font-12); font-weight: 700; }
.nav-list a:hover, .nav-list a.active { background: var(--brand-soft); color: var(--brand); }
.nav-list a.active span { color: var(--brand); }
.side-note { margin: 0 10px 10px; padding: 14px; border-radius: var(--radius-m); background: var(--control); }
.side-note b { color: var(--text); }
.side-note p { margin-top: 6px; font-size: var(--font-12); line-height: var(--line-12); }

main { display: grid; gap: 24px; min-width: 0; }
.section { padding: 32px; border: 1px solid var(--divider); border-radius: var(--radius-l); background: var(--card); scroll-margin-top: 16px; }
.section-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--divider); }
.section-no { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.section-heading p { color: var(--brand); font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: .12em; }
.section-heading h2 { margin-top: 2px; color: var(--text); font-size: var(--font-20); line-height: var(--line-20); }
.section-intro { margin-top: 20px; }

.callout { display: flex; gap: 12px; margin-top: 20px; padding: 16px; border-radius: var(--radius-m); }
.callout-icon { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 50%; font-weight: 800; }
.callout b { color: var(--text); }
.callout p { margin-top: 3px; }
.callout.warning { background: var(--warning-bg); color: var(--warning-text); }
.callout.warning .callout-icon { background: #ffe4a3; color: #8c511c; }
.callout.info { background: #f0f7ff; color: #3d668d; }
.callout.info .callout-icon { background: #d7eaff; color: #286ba7; }
.callout.success { background: #f2fff5; color: #286a38; }
.callout.success .callout-icon { background: #d8f3df; color: #167431; }

.workflow-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 0; margin-top: 20px; list-style: none; }
.workflow-list li { min-width: 0; padding: 16px 12px; border: 1px solid var(--divider); border-radius: var(--radius-m); background: var(--control); }
.workflow-list li > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.workflow-list b { display: block; margin-top: 12px; color: var(--text); }
.workflow-list p { margin-top: 4px; color: var(--quiet); font-size: var(--font-12); line-height: var(--line-12); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.info-card { padding: 20px; border: 1px solid var(--divider); border-radius: var(--radius-m); }
.info-card.tint { background: var(--control); }
.info-card h3 { color: var(--text); font-size: var(--font-16); line-height: var(--line-16); }
.check-list { display: grid; gap: 9px; padding: 0; margin-top: 12px; list-style: none; }
.check-list.roomy { margin-top: 20px; }
.check-list li { position: relative; padding-left: 22px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }

.route-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding: 18px 20px; border-left: 3px solid var(--brand); border-radius: 0 var(--radius-m) var(--radius-m) 0; background: var(--control); }
.route-card i { color: var(--quiet); font-size: 22px; font-style: normal; }
.route-card strong { color: var(--brand); font-size: var(--font-16); }

.shot-grid { display: grid; gap: 16px; margin-top: 20px; }
.shot-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot-card { overflow: hidden; border: 1px solid var(--divider); border-radius: var(--radius-l); background: var(--card); }
.shot-button { display: block; width: 100%; padding: 0; border: 0; background: #eef0f2; }
.screen { position: relative; display: block; width: min(100%, 410px); margin-inline: auto; overflow: hidden; background: #e8eaed; }
.screen > img { width: 100%; height: auto; }
.shot-card figcaption { display: grid; gap: 5px; padding: 16px; border-top: 1px solid var(--divider); text-align: left; }
.shot-card figcaption b { color: var(--text); font-size: var(--font-16); line-height: var(--line-16); }
.shot-card figcaption i {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.ring {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border: clamp(2px, .55vw, 4px) solid #ff2f1a;
  border-radius: 9px;
  background: rgba(255, 47, 26, .08);
  box-shadow: 0 0 0 2px rgba(255,255,255,.82), 0 4px 12px rgba(0,0,0,.2);
  pointer-events: none;
}
.ring i {
  position: absolute;
  top: -15px;
  left: -15px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ff2f1a;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.ring.edge-left i { left: 4px; }
.ring.edge-bottom i { top: auto; bottom: 4px; }

.number-list { display: grid; gap: 12px; margin-top: 14px; padding: 0; list-style: none; }
.number-list li { display: flex; align-items: flex-start; gap: 10px; }
.number-list li > span { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.number-list b { color: var(--text); }
.number-list p { margin-top: 2px; }

.status-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--divider); border-radius: var(--radius-m); background: var(--control); }
.status-legend span { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-dot.red { background: #f23b2a; }
.status-dot.green { background: #35a853; }

.final-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.final-grid article { position: relative; min-height: 124px; padding: 18px 18px 18px 70px; border: 1px solid var(--divider); border-radius: var(--radius-m); background: #fff; }
.final-grid article > span { position: absolute; top: 18px; left: 18px; color: var(--brand); font-weight: 800; }
.final-grid b { color: var(--text); }
.final-grid p { margin-top: 6px; }

.issue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.issue-grid article { padding: 18px; border: 1px solid var(--divider); border-radius: var(--radius-m); background: var(--control); }
.issue-grid b { color: var(--text); }
.issue-grid p { margin-top: 6px; }
.faq-item { margin-top: 10px; border: 1px solid var(--divider); border-radius: var(--radius-m); background: #fff; }
.faq-item summary { min-height: 48px; padding: 14px 44px 14px 16px; color: var(--text); font-weight: 700; cursor: pointer; }
.faq-item p { padding: 0 16px 16px; }
.final-check { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding: 20px; border: 1px solid #bde5c8; border-radius: var(--radius-m); background: #f2fff5; }
.final-check b { color: #156f2e; }
.final-check p { margin-top: 4px; }
.final-check a { flex: 0 0 auto; min-height: 44px; padding: 11px 18px; border-radius: 22px; background: #fff; color: var(--success); font-weight: 700; }

footer { display: flex; width: min(var(--content), calc(100% - 32px)); min-height: 92px; align-items: center; gap: 18px; margin-inline: auto; color: var(--quiet); }
footer img { width: auto; height: 28px; filter: grayscale(1); opacity: .75; }
footer p { flex: 1; }
footer a { min-height: 44px; padding: 12px; color: var(--brand); }

.lightbox-dialog { width: min(94vw, 920px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius-l); background: transparent; }
.lightbox-dialog::backdrop { background: rgba(0,0,0,.78); }
.lightbox { position: relative; display: grid; justify-items: center; gap: 12px; max-height: 94vh; padding: 20px; overflow: auto; border-radius: var(--radius-l); background: #151515; color: #fff; }
.lightbox-close { position: sticky; z-index: 5; top: 0; justify-self: end; width: 44px; height: 44px; margin-bottom: -56px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 28px; line-height: 1; }
.lightbox-image { position: relative; width: min(100%, 600px); }
.lightbox-image > img { width: 100%; height: auto; }
.lightbox-image > span { position: absolute; inset: 0; pointer-events: none; }
.lightbox > p { width: min(100%, 600px); text-align: center; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 36px; }
  .page-layout { grid-template-columns: 1fr; }
  .side-nav { position: sticky; z-index: 20; top: 8px; }
  .nav-toggle { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 16px; border: 0; background: #fff; color: var(--text); font-weight: 700; }
  .nav-list, .side-note { display: none; }
  .side-nav.open .nav-list { display: grid; border-top: 1px solid var(--divider); }
  .side-nav.open .side-note { display: block; }
  .workflow-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .topbar, .hero, .page-layout, footer { width: min(100% - 20px, var(--content)); }
  .topbar { min-height: 48px; }
  .brand span { display: none; }
  .hero { gap: 22px; padding-block: 28px; }
  .hero h1 { font-size: 28px; line-height: 36px; }
  .hero-guide { padding: 18px; }
  .mini-flow { gap: 4px; }
  .mini-flow li { padding-top: 7px; }
  .section { padding: 20px 16px; }
  .section-heading { align-items: flex-start; }
  .workflow-list { grid-template-columns: repeat(2, 1fr); }
  .workflow-list li:last-child { grid-column: 1 / -1; }
  .two-col, .shot-grid.two, .issue-grid, .final-grid { grid-template-columns: 1fr; }
  .screen { width: min(100%, 390px); }
  .final-check { align-items: flex-start; flex-direction: column; }
  footer p { display: none; }
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body { background: #fff; color: #333; }
  .reading-progress, .top-actions, .hero-actions, .side-nav, .lightbox-dialog, .skip-link { display: none !important; }
  .topbar, .hero, .page-layout, footer { width: 100%; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-block: 18px; }
  .hero-guide { display: none; }
  .page-layout { display: block; padding-block: 0; }
  main { display: block; }
  .section { break-before: page; margin: 0; padding: 16px 0; border: 0; }
  .section:first-child { break-before: auto; }
  .shot-card, .info-card, .callout, .issue-grid article, .faq-item { break-inside: avoid; }
  .shot-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen { max-height: 205mm; width: auto; }
  .screen > img { width: auto; max-height: 205mm; margin-inline: auto; }
  .ring { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
