:root {
  --ink: #171a25;
  --paper: #f7f8fb;
  --white: #ffffff;
  --coral: #ff5a3c;
  --coral-dark: #d93d25;
  --teal: #18a999;
  --yellow: #ffd166;
  --muted: #667085;
  --line: #dfe3ea;
  --shadow: 6px 6px 0 var(--ink);
  --container: 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;
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#e9ecf2 1px, transparent 1px), linear-gradient(90deg, #e9ecf2 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  opacity: .42;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 700;
}

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

.nav-download {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px !important;
  border: 2px solid var(--ink) !important;
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 25px;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background: var(--white);
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 430px;
  height: 430px;
  border: 70px solid var(--yellow);
  border-radius: 50%;
  content: "";
  opacity: .55;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 640px;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding: 72px 0 62px;
}

.kicker,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.kicker::before,
.section-label::before {
  width: 24px;
  height: 8px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 30px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 660px;
  margin-bottom: 26px;
  color: #3f4655;
  font-size: 18px;
}

.hero-actions,
.bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  min-width: 152px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  background: var(--coral);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--white);
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}

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

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

.nav-download,
.button[href*="pan.quark.cn"] {
  background: #08776b;
}

.nav-download:hover,
.button[href*="pan.quark.cn"]:hover {
  background: #056158;
}

.button-icon {
  font-size: 18px;
  line-height: 1;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.app-meta strong {
  color: var(--ink);
}

.hero-visual {
  position: relative;
  display: flex;
  min-height: 500px;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 300px);
  max-width: 400px;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 12px 14px 0 var(--teal), 16px 18px 0 var(--ink);
  transform: rotate(2deg);
}

.stamp {
  position: absolute;
  top: 12%;
  right: 0;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 4px double var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transform: rotate(10deg);
}

.stats-strip {
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 26px 20px;
  border-right: 1px solid #3c4150;
  text-align: center;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--yellow);
  font-size: 28px;
  line-height: 1.2;
}

.stat span {
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

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

.section.teal-band {
  border-block: 3px solid var(--ink);
  background: var(--teal);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--coral-dark);
  font-weight: 900;
}

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

.feature-card,
.path-card,
.quote-card,
.step-card,
.detail-card {
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.feature-card {
  padding: 24px;
}

.feature-card:nth-child(2) {
  background: #fff7dc;
}

.feature-card:nth-child(3) {
  background: #e8fbf8;
}

.feature-card:nth-child(4) {
  background: #fff0ed;
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-size: 22px;
}

.feature-card p,
.path-card p,
.detail-card p,
.step-card p {
  margin-bottom: 0;
  color: #4c5465;
  font-size: 14px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 30px;
}

.screen-figure {
  margin: 0;
  text-align: center;
}

.screen-figure:nth-child(2) {
  padding-top: 42px;
}

.screen-figure img {
  width: min(100%, 360px);
  max-width: 400px;
  height: auto;
  margin: 0 auto 18px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 rgba(23, 26, 37, .2);
}

.screen-figure figcaption {
  font-weight: 900;
}

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.path-card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  overflow: hidden;
}

.path-card:first-child {
  background: #fff7dc;
}

.path-card:last-child {
  background: #eef1ff;
}

.path-number {
  position: absolute;
  right: 18px;
  bottom: -26px;
  color: rgba(23, 26, 37, .08);
  font-size: 130px;
  font-weight: 900;
  line-height: 1;
}

.path-card .text-link {
  margin: 22px 0 0;
}

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

.quote-card {
  padding: 24px;
}

.quote-card blockquote {
  margin: 0 0 18px;
  font-size: 16px;
}

.quote-card cite {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.mini-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}

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

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-question span:last-child {
  flex: 0 0 auto;
  font-size: 22px;
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: #4c5465;
  font-size: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question span:last-child {
  transform: rotate(45deg);
}

.download-band {
  padding: 58px 0;
  border-block: 3px solid var(--ink);
  background: var(--yellow);
}

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

.download-band h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 4vw, 42px);
}

.download-band p {
  margin-bottom: 0;
}

.page-hero {
  padding: 72px 0 58px;
  border-bottom: 3px solid var(--ink);
  background: var(--white);
}

.page-hero .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 14px;
  font-size: clamp(36px, 6vw, 64px);
}

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

.chapter-index {
  padding: 20px 0;
  border-bottom: 2px solid var(--ink);
  background: #fff7dc;
}

.chapter-index .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chapter-index a {
  padding: 7px 11px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 44px;
}

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

.article-content section {
  padding: 0 0 54px;
  scroll-margin-top: 100px;
}

.article-content h2 {
  padding-bottom: 13px;
  border-bottom: 4px solid var(--ink);
  font-size: 30px;
}

.article-content h2::after {
  display: block;
  width: 90px;
  height: 6px;
  margin-bottom: -19px;
  background: var(--coral);
  content: "";
}

.article-content p,
.article-content li {
  color: #3e4656;
}

.step-list,
.detail-grid {
  display: grid;
  gap: 18px;
}

.step-card,
.detail-card {
  padding: 24px;
}

.step-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
}

.step-no {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--coral);
  color: var(--white);
  font-weight: 900;
}

.notice {
  padding: 20px 22px;
  border: 2px solid var(--ink);
  border-left: 10px solid var(--teal);
  background: #e8fbf8;
}

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

.check-list {
  padding-left: 22px;
}

.check-list li {
  margin-bottom: 10px;
}

.sidebar {
  position: sticky;
  top: 102px;
  padding: 22px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.sidebar h3 {
  font-size: 17px;
}

.sidebar a:not(.button) {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #4c5465;
  font-size: 14px;
}

.sidebar .button {
  width: 100%;
  margin-top: 18px;
}

.faq-full .faq-item {
  padding-inline: 20px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

.faq-full {
  display: grid;
  gap: 14px;
}

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

.related-links a {
  padding: 20px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
}

.site-footer {
  padding: 48px 0 26px;
  background: var(--ink);
  color: #d6d9e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 40px;
}

.site-footer .brand {
  margin-bottom: 14px;
  color: var(--white);
}

.site-footer h3 {
  color: var(--white);
  font-size: 15px;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: #d6d9e1;
  font-size: 14px;
}

.disclaimer {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid #3c4150;
  color: #9da4b3;
  font-size: 12px;
}

.copyright {
  margin: 10px 0 0;
  color: #747d8e;
  font-size: 12px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 14px;
    border: 2px solid var(--ink);
    background: var(--white);
    box-shadow: 5px 5px 0 var(--ink);
  }

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

  .nav-links a {
    text-align: center;
  }

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

  .hero-grid {
    gap: 30px;
    padding-top: 54px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy > p,
  .app-meta,
  .hero-actions {
    justify-content: center;
    margin-inline: auto;
  }

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

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand {
    font-size: 17px;
  }

  .hero-grid {
    min-height: auto;
    gap: 18px;
    padding: 30px 0 20px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 30px;
  }

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

  .stats-grid,
  .feature-grid,
  .showcase-grid,
  .path-grid,
  .quote-grid,
  .mini-faq,
  .related-links,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .showcase-grid {
    gap: 36px;
  }

  .screen-figure:nth-child(2) {
    padding-top: 0;
  }

  .section {
    padding: 62px 0;
  }

  .section-head,
  .download-inner {
    display: block;
  }

  .download-inner .button {
    width: 100%;
    margin-top: 22px;
  }

  .page-hero {
    padding: 50px 0 40px;
  }

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

  .step-card {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    width: min(64vw, 240px);
  }

  .hero-visual {
    min-height: 260px;
    height: 260px;
    align-items: flex-start;
    overflow: hidden;
  }

  .stamp {
    top: 6%;
    right: 8%;
    width: 76px;
    height: 76px;
    font-size: 11px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
