:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #eef3ff;
  --text: #1e293b;
  --muted: #5c6878;
  --line: #d9dee8;
  --primary: #2856c8;
  --primary-dark: #1c3d91;
  --mint: #2f8f74;
  --mint-soft: #e6f5ef;
  --warning: #8a5a10;
  --warning-soft: #fff6dc;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(30, 41, 59, 0.1);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 14px;
  color: #fff;
  background: var(--primary-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid rgba(217, 222, 232, 0.85);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

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

.header-actions,
.hero-actions,
.download-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  min-height: 42px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(40, 86, 200, 0.22);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  color: var(--primary-dark);
  background: #fff;
  border-color: #bfc9e1;
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line);
}

.button-outline {
  color: var(--primary);
  background: transparent;
  border-color: var(--primary);
}

.button-large {
  min-height: 50px;
  padding: 13px 24px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
}

.hero {
  overflow: hidden;
  background: linear-gradient(160deg, #fbfaf6 0%, #f1f4fb 68%, #e9f6f1 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 648px;
  margin: 0 auto;
  padding: 54px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.97fr);
  grid-template-areas: "copy media";
  align-items: center;
  gap: 62px;
}

.hero-copy {
  grid-area: copy;
}

.hero-media {
  grid-area: media;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(47, 143, 116, 0.12);
}

.hero h1 {
  max-width: 620px;
  margin: 16px 0 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

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

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

.preflight-rail li {
  min-width: 0;
  padding: 16px 12px 0 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 8px;
}

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

.preflight-rail span {
  grid-row: span 2;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.preflight-rail strong {
  font-size: 14px;
}

.preflight-rail small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.device-stack {
  position: relative;
  width: 470px;
  height: 470px;
}

.device {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #0f1115;
  border: 7px solid #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-back {
  top: 30px;
  left: 14px;
  width: 188px;
  height: 314px;
  transform: rotate(-5deg);
}

.device-main {
  top: 0;
  left: 144px;
  z-index: 2;
  width: 224px;
  height: 374px;
}

.device-front {
  right: 3px;
  bottom: 4px;
  z-index: 3;
  width: 164px;
  height: 274px;
  transform: rotate(5deg);
}

.hero-status {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 15px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 750;
  border-top: 1px solid var(--line);
}

.hero-status span {
  text-align: center;
}

.hero-status span + span {
  border-left: 1px solid var(--line);
}

.section {
  padding: 84px 0;
}

.section-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

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

.section-heading h2,
.download-band h2,
.deep-card h2,
.page-cta h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

.section-checklist {
  background: var(--surface);
}

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

.check-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 850;
}

.check-card h3 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.check-card p,
.feature-list p,
.deep-card .card-copy,
.download-band .download-copy {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-list article {
  padding: 26px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  background: var(--surface-soft);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
}

.feature-list h3 {
  margin: 0 0 7px;
  font-size: 19px;
}

.section-gallery {
  background: #202a3a;
  color: #fff;
}

.section-gallery .section-note {
  color: #c7cfdd;
}

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

.gallery-grid figure {
  margin: 0;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #2a3547;
  border: 1px solid #3d4b61;
  border-radius: 20px;
}

.gallery-grid img {
  width: auto;
  max-width: 400px;
  height: 340px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
}

.gallery-grid figcaption {
  width: 100%;
  margin-top: 20px;
  display: grid;
  gap: 4px;
}

.gallery-grid figcaption span {
  color: #c7cfdd;
  font-size: 14px;
}

.section-deep-links {
  background: var(--surface);
}

.deep-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.deep-card {
  min-height: 310px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.guide-card {
  background: var(--surface-soft);
}

.faq-card {
  background: var(--mint-soft);
}

.card-kicker {
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.deep-card .card-copy {
  margin-top: 18px;
}

.text-link {
  margin-top: auto;
  padding-top: 30px;
  color: var(--primary);
  font-weight: 800;
}

.faq-preview-list {
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 20px 34px 20px 0;
  position: relative;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  color: var(--primary);
  font-size: 22px;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: -4px 0 20px;
  padding-right: 40px;
  color: var(--muted);
}

.download-band {
  padding: 58px 0;
  color: #fff;
  background: var(--primary-dark);
}

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

.download-band .download-copy {
  max-width: 670px;
  margin-top: 12px;
  color: #dbe4ff;
}

.download-band .card-kicker {
  color: #b9cbff;
}

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

.inner-page {
  background: var(--surface);
}

.page-hero {
  background: linear-gradient(145deg, #f0f4ff, #f7f5ef 62%, #eaf6f1);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 360px;
  margin: 0 auto;
  padding: 66px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 70px;
}

.page-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

.page-hero-aside {
  padding: 24px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.page-hero-aside strong {
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.page-hero-aside span {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.page-hero-aside span:last-child {
  border-bottom: 0;
}

.article-section,
.faq-content {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 72px 0 90px;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
}

.toc {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.toc strong {
  margin-bottom: 8px;
}

.toc a {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.prose section {
  padding: 0 0 46px;
  margin-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.prose h2,
.faq-intro h2,
.faq-groups > section > h2,
.faq-next h2 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.25;
}

.prose p,
.faq-intro p,
.faq-next p {
  color: #3f4b5b;
  font-size: 17px;
}

.prose a,
.faq-next a {
  color: var(--primary);
  font-weight: 750;
}

.notice {
  margin-top: 24px;
  padding: 18px 20px;
  display: grid;
  gap: 5px;
  border-radius: 12px;
}

.notice-warning {
  color: var(--warning);
  background: var(--warning-soft);
  border: 1px solid #efdca7;
}

.step-list {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.step-list li {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.step-list span {
  color: var(--muted);
}

.page-cta {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 88px;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--surface-soft);
  border: 1px solid #cbd5ee;
  border-radius: 22px;
}

.page-cta p {
  max-width: 660px;
  margin: 10px 0 0;
  color: var(--muted);
}

.faq-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.faq-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.faq-groups > section {
  padding: 30px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.faq-groups > section > h2 {
  font-size: 23px;
}

.faq-groups details p {
  padding-right: 0;
}

.faq-next {
  margin-top: 32px;
  padding: 30px;
  background: var(--mint-soft);
  border: 1px solid #bfdfd3;
  border-radius: 18px;
}

.site-footer {
  padding: 42px 0;
  color: #cbd5e1;
  background: #172033;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  text-align: center;
}

.footer-inner nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-inner p {
  margin: 14px auto 0;
}

.footer-inner p:first-of-type {
  max-width: 760px;
}

@media (max-width: 980px) {
  .header-inner {
    gap: 16px;
  }

  .header-actions .button-ghost {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 30px;
  }

  .device-stack {
    transform: scale(0.88);
  }

  .preflight-rail {
    grid-template-columns: 1fr;
  }

  .preflight-rail li + li {
    padding-left: 0;
    border-left: 0;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    order: 4;
    margin: 0;
    padding: 8px 0 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 9px 0;
  }

  .header-actions {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 28px 0 10px;
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "media";
    gap: 8px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-media {
    min-height: 172px;
    order: 2;
  }

  .hero h1 {
    margin: 10px 0 10px;
    font-size: clamp(32px, 10vw, 40px);
  }

  .hero-copy > p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.62;
  }

  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

  .preflight-rail {
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preflight-rail li {
    padding: 10px 8px 0;
    display: block;
  }

  .preflight-rail li + li {
    padding-left: 8px;
    border-left: 1px solid var(--line);
  }

  .preflight-rail span,
  .preflight-rail strong {
    display: block;
  }

  .preflight-rail small {
    display: none;
  }

  .device-stack {
    width: 350px;
    height: 280px;
    margin: -48px 0;
    transform: scale(0.56);
    transform-origin: center;
  }

  .hero-status {
    padding: 9px 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    font-size: 11px;
  }

  .hero-status span {
    padding: 0 4px;
  }

  .section {
    padding: 62px 0;
  }

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

  .checklist-grid,
  .feature-list,
  .gallery-grid,
  .deep-links-grid,
  .faq-groups {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 320px;
  }

  .download-band-inner,
  .page-cta {
    align-items: stretch;
    flex-direction: column;
  }

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

  .article-section,
  .faq-content {
    padding: 52px 0 70px;
  }

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

  .step-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-cta {
    margin-bottom: 60px;
    padding: 28px;
  }

  .faq-groups > section {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .header-inner,
  .hero-inner,
  .hero-status,
  .section-inner,
  .page-hero-inner,
  .article-section,
  .faq-content,
  .page-cta,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max));
  }

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

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

  .device-stack {
    transform: scale(0.52);
  }
}
