:root {
  --paper: #fffaf5;
  --paper-deep: #f7eee7;
  --ink: #202127;
  --muted: #6d6870;
  --coral: #ef5b6c;
  --coral-dark: #c93950;
  --teal: #167a78;
  --teal-soft: #dff2ef;
  --yellow: #ffd166;
  --line: #ded3cb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(71, 45, 50, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(32, 33, 39, 0.1);
  background: rgba(255, 250, 245, 0.96);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 800;
}

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

.brand small {
  display: block;
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 42px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #4f4a50;
  font-size: 14px;
  font-weight: 700;
}

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

.site-nav .nav-download {
  margin-left: 8px;
  padding-inline: 18px;
  border: 1px solid var(--ink);
  border-bottom-color: var(--ink);
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
}

.site-nav .nav-download:hover {
  color: var(--white);
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  content: "";
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.menu-toggle span::after {
  position: absolute;
  top: 6px;
}

.container {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 72px, var(--yellow) 72px 106px, var(--teal) 106px 178px);
  content: "";
}

.hero-grid {
  min-height: 650px;
  padding: 78px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 56px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--coral-dark);
}

.hero-copy > p:first-of-type {
  max-width: 650px;
  margin: 24px 0 0;
  color: #514b50;
  font-size: 18px;
}

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

.button {
  min-height: 48px;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(32, 33, 39, 0.12);
}

.button-primary {
  color: var(--white);
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
}

.button[href*="pan.quark.cn"]::before {
  font-size: 20px;
  line-height: 1;
  content: "↓";
}

.hero-note {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-note span::before {
  margin-right: 6px;
  color: var(--teal);
  content: "●";
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual::before {
  position: absolute;
  inset: 56px 4px 38px 30px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 18px 18px 0 var(--teal);
  content: "";
}

.hero-phone {
  position: absolute;
  z-index: 2;
  width: min(43%, 230px);
  max-width: 230px;
  height: auto;
  border: 7px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-phone:first-child {
  top: 12px;
  left: 8%;
  transform: rotate(-3deg);
}

.hero-phone:nth-child(2) {
  right: 4%;
  bottom: 4px;
  transform: rotate(4deg);
}

.hero-caption {
  position: absolute;
  z-index: 3;
  right: 1%;
  top: 18px;
  width: 138px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  transform: rotate(3deg);
}

.fact-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.facts {
  min-height: 118px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

.fact:first-child {
  border-left: 1px solid var(--line);
}

.fact strong {
  display: block;
  color: var(--coral-dark);
  font-size: 23px;
  line-height: 1.2;
}

.fact span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.section-alt {
  border-block: 1px solid var(--line);
  background: var(--white);
}

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

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

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

.section-heading .index {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}

.feature-item {
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-item:nth-child(3n + 1) {
  border-left: 1px solid var(--line);
}

.feature-number {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
}

.feature-item h3 {
  margin: 34px 0 10px;
  font-size: 21px;
}

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

.screens-toolbar {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  font-size: 22px;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.screen-track {
  display: grid;
  grid-auto-columns: minmax(230px, 292px);
  grid-auto-flow: column;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--coral) var(--paper-deep);
  padding: 0 0 22px;
}

.screen-shot {
  scroll-snap-align: start;
}

.screen-shot img {
  width: 100%;
  max-width: 298px;
  height: auto;
  aspect-ratio: 298 / 497;
  object-fit: cover;
  border: 6px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-deep);
}

.screen-shot figcaption {
  padding: 12px 2px 0;
  font-size: 14px;
  font-weight: 700;
}

.screen-shot figcaption span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.route-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  border: 1px solid #3a3c45;
  background: #3a3c45;
}

.route {
  min-height: 310px;
  padding: 34px;
  background: var(--ink);
}

.route:first-child {
  background: var(--teal);
}

.route span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.route h3 {
  margin: 54px 0 14px;
  font-size: 27px;
  line-height: 1.2;
}

.route p {
  color: #dad8dc;
}

.route a {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 2px solid var(--yellow);
  font-weight: 800;
}

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

.quote {
  min-height: 220px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.quote::before {
  display: block;
  margin-bottom: 22px;
  color: var(--coral);
  font-size: 40px;
  font-weight: 900;
  line-height: 0.7;
  content: "“";
}

.quote p {
  margin: 0;
}

.quote cite {
  margin-top: 20px;
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.faq-list details {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.faq-list summary {
  position: relative;
  padding: 21px 54px 21px 0;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  position: absolute;
  right: 4px;
  top: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "+";
}

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

.faq-answer {
  max-width: 900px;
  padding: 0 54px 24px 0;
  color: var(--muted);
}

.cta-band {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--yellow);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.cta-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.cta-inner .cta-description {
  margin: 0;
  color: #4b4335;
}

.site-footer {
  padding: 52px 0 28px;
  color: #d7d4d6;
  background: #191a1f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 48px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand p,
.footer-note {
  color: #aaa7ad;
  font-size: 13px;
}

.footer-links strong {
  margin-bottom: 14px;
  display: block;
  color: var(--white);
}

.footer-links a {
  margin: 6px 0;
  display: block;
  color: #c8c5ca;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid #34353c;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #918e94;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.page-hero .container {
  min-height: 430px;
  padding-block: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 60px;
}

.page-hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
}

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

.page-marker {
  min-height: 240px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--ink);
  color: var(--white);
  background: var(--teal);
  box-shadow: 14px 14px 0 var(--yellow);
}

.page-marker strong {
  font-size: 62px;
  line-height: 1;
}

.page-marker span {
  font-weight: 800;
}

.crumbs {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.crumbs a {
  color: var(--coral-dark);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 64px;
}

.guide-aside {
  position: sticky;
  top: 100px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.guide-aside strong {
  margin-bottom: 12px;
  display: block;
}

.guide-aside a {
  padding: 8px 0;
  display: block;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.content-block {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.content-block:first-child {
  padding-top: 0;
}

.content-block h2 {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 1.2;
}

.content-block h3 {
  margin: 30px 0 10px;
  font-size: 20px;
}

.content-block p {
  margin: 0 0 18px;
  color: #504b50;
}

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

.check-item {
  min-height: 180px;
  padding: 24px;
  background: var(--white);
}

.check-item strong {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
}

.check-item p {
  margin: 0;
  font-size: 14px;
}

.steps {
  counter-reset: guide-step;
}

.step {
  position: relative;
  padding: 0 0 42px 86px;
  counter-increment: guide-step;
}

.step::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--white);
  background: var(--coral-dark);
  font-weight: 900;
  content: counter(guide-step, decimal-leading-zero);
}

.step::after {
  position: absolute;
  left: 26px;
  top: 58px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
  content: "";
}

.step:last-child::after {
  display: none;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.step p {
  margin: 0 0 8px;
}

.notice {
  margin: 24px 0;
  padding: 22px 24px;
  border-left: 5px solid var(--yellow);
  background: #fff4cf;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.simple-table th,
.simple-table td {
  padding: 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.simple-table th {
  color: var(--teal);
  background: var(--teal-soft);
}

.feature-detail {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.feature-detail:first-of-type {
  border-top: 2px solid var(--ink);
}

.feature-detail h3 {
  margin: 0;
  color: var(--coral-dark);
  font-size: 22px;
}

.feature-detail p {
  margin: 0 0 12px;
}

.feature-detail ul {
  margin: 0;
  padding-left: 20px;
}

.faq-search {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 52px 1fr;
  border: 2px solid var(--ink);
  background: var(--white);
}

.faq-search span {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  font-size: 22px;
}

.faq-search input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.faq-search input:focus {
  box-shadow: inset 0 0 0 3px var(--yellow);
}

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

.no-results {
  display: none;
  padding: 24px 0;
  color: var(--muted);
}

.no-results.visible {
  display: block;
}

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

.related-link {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.related-link strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.related-link span {
  color: var(--muted);
  font-size: 14px;
}

.related-link:hover {
  border-color: var(--teal);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 73px 0 auto;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    box-shadow: var(--shadow);
    transition: max-height 220ms ease;
  }

  .site-nav.open {
    max-height: 420px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a,
  .site-nav .nav-download {
    width: min(calc(100% - 36px), var(--max));
    min-height: 52px;
    margin: 0 auto;
    padding-inline: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    background: transparent;
  }

  .site-nav .nav-download:hover {
    color: var(--coral-dark);
    background: transparent;
  }

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

  .hero-visual {
    width: min(100%, 560px);
    min-height: 450px;
    margin: 0 auto;
  }

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

  .fact:nth-child(3) {
    border-left: 1px solid var(--line);
  }

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

  .feature-item:nth-child(3n + 1) {
    border-left: 0;
  }

  .feature-item:nth-child(2n + 1) {
    border-left: 1px solid var(--line);
  }

  .route-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .route {
    min-height: 230px;
  }

  .route h3 {
    margin-top: 28px;
  }

  .page-hero .container {
    grid-template-columns: 1fr;
  }

  .page-marker {
    min-height: 180px;
  }

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

  .guide-aside {
    position: static;
    order: -1;
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .site-nav {
    inset-block-start: 65px;
  }

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

  .hero-grid {
    padding: 58px 0 34px;
  }

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

  .hero-copy > p:first-of-type,
  .page-hero-copy > p {
    font-size: 16px;
  }

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

  .hero-visual {
    min-height: 340px;
  }

  .hero-visual::before {
    inset: 36px 4px 24px 20px;
    box-shadow: 9px 9px 0 var(--teal);
  }

  .hero-phone {
    width: 41%;
    border-width: 4px;
  }

  .hero-caption {
    width: 116px;
    padding: 8px;
    font-size: 10px;
  }

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

  .fact {
    padding: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 28px;
  }

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

  .feature-grid,
  .checklist,
  .related-links {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .feature-item:nth-child(2n + 1) {
    min-height: 0;
    border-left: 1px solid var(--line);
  }

  .screen-track {
    grid-auto-columns: minmax(210px, 76vw);
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner .button {
    width: 100%;
  }

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

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero .container {
    min-height: 0;
    padding-block: 52px;
  }

  .page-marker {
    min-height: 150px;
  }

  .content-block h2 {
    font-size: 28px;
  }

  .step {
    padding-left: 70px;
  }

  .step::before {
    width: 46px;
    height: 46px;
  }

  .step::after {
    left: 22px;
    top: 50px;
  }

  .simple-table {
    display: block;
    overflow-x: auto;
  }

  .feature-detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

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