﻿:root {
  --blue-900: #112e5f;
  --blue-800: #17417f;
  --blue-700: #1f5fba;
  --blue-600: #2f72dc;
  --blue-100: #eaf2ff;
  --teal-600: #1fb6aa;
  --coral-500: #f36f6f;
  --ink-900: #111827;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: #dbe4ef;
  --surface: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(17, 46, 95, 0.14);
  --radius: 8px;
  --font-body: "Noto Sans SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue-800);
  border-radius: 6px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 228, 239, 0.85);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  min-height: 74px;
  gap: 26px;
}

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

.brand img {
  border-radius: 6px;
}

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

.site-nav a {
  padding: 10px 12px;
  color: var(--ink-700);
  font-size: 15px;
  text-decoration: none;
  border-radius: 6px;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-800);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn:focus-visible,
.site-nav a:focus-visible,
.qr-card:focus-visible,
.text-link:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid rgba(31, 182, 170, 0.42);
  outline-offset: 3px;
}

.btn-primary {
  color: var(--white);
  background: var(--blue-700);
  box-shadow: 0 10px 28px rgba(31, 95, 186, 0.22);
}

.btn-primary:hover {
  background: var(--blue-800);
}

.btn-secondary {
  color: var(--blue-800);
  background: var(--blue-100);
  border-color: rgba(47, 114, 220, 0.18);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.btn-large {
  min-height: 52px;
  padding-inline: 24px;
}

.hero {
  position: relative;
  min-height: clamp(590px, 72vh, 700px);
  overflow: hidden;
  color: var(--ink-900);
  background:
    linear-gradient(135deg, rgba(234, 242, 255, 0.96), rgba(245, 251, 250, 0.98) 48%, rgba(255, 250, 248, 0.96)),
    repeating-linear-gradient(90deg, rgba(31, 95, 186, 0.08) 0 1px, transparent 1px 42px);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 16%, rgba(31, 182, 170, 0.23), transparent 30%),
    radial-gradient(circle at 8% 78%, rgba(47, 114, 220, 0.18), transparent 32%);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(420px, 1fr);
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
  padding: clamp(58px, 7vw, 86px) 0 clamp(46px, 6vw, 70px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.surface-blue .eyebrow {
  color: #8ff0e8;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(54px, 8vw, 108px);
  font-weight: 900;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(58px, 6.2vw, 84px);
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(31px, 4vw, 52px);
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink-700);
  font-size: clamp(17px, 1.7vw, 20px);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 34px 0 0;
}

.hero-stats div {
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 95, 186, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(17, 46, 95, 0.08);
}

.hero-stats dt {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: var(--blue-900);
  font-size: 16px;
  font-weight: 900;
}

.hero-product {
  position: relative;
  min-height: 430px;
}

.product-window {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 95, 186, 0.18);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(17, 46, 95, 0.22);
}

.product-window img {
  display: block;
  width: 100%;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  color: var(--ink-500);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(234,242,255,.88));
  border-bottom: 1px solid rgba(31, 95, 186, 0.12);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral-500);
}

.window-bar span:nth-child(2) {
  background: #f5b84b;
}

.window-bar span:nth-child(3) {
  background: var(--teal-600);
}

.window-bar strong {
  margin-left: auto;
  font-size: 13px;
}

.rule-stack,
.rename-preview {
  position: absolute;
  z-index: 2;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 95, 186, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(17, 46, 95, 0.16);
}

.rule-stack {
  left: -26px;
  top: 34px;
  display: grid;
  gap: 8px;
  width: min(260px, 48%);
}

.rule-stack span {
  display: block;
  padding: 9px 11px;
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 900;
  background: var(--blue-100);
  border-radius: 6px;
}

.rename-preview {
  right: -18px;
  bottom: 34px;
  width: min(340px, 58%);
}

.rename-preview span,
.rename-preview strong {
  display: block;
}

.rename-preview span {
  color: var(--ink-500);
  font-size: 14px;
  text-decoration: line-through;
}

.rename-preview strong {
  margin-top: 6px;
  color: var(--teal-600);
  font-size: 18px;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 38px;
}

.section-heading p:last-child {
  margin: 18px 0 0;
  color: var(--ink-500);
  font-size: 18px;
}

.intro-strip {
  padding: 58px 0;
  background: var(--surface);
}

.strip-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
}

.strip-grid p:last-child {
  margin: 0;
  color: var(--ink-700);
  font-size: 18px;
}

.scenario-grid,
.testimonial-grid,
.recipe-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.scenario-card,
.testimonial-card,
.download-card,
.recipe-grid article,
.feature-list article,
.metadata-grid article,
.faq-list article,
.license-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17, 46, 95, 0.06);
}

.scenario-card,
.recipe-grid article {
  padding: 26px;
}

.card-icon,
.line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--white);
  font-weight: 900;
  background: var(--blue-700);
  border-radius: 6px;
}

.scenario-card:nth-child(2) .card-icon,
.scenario-card:nth-child(4) .card-icon {
  background: var(--teal-600);
}

.scenario-card:nth-child(3) .card-icon {
  background: var(--coral-500);
}

.scenario-card p,
.recipe-grid p,
.feature-list p,
.metadata-grid span,
.download-card p,
.download-card li,
.faq-list p,
.license-grid p {
  color: var(--ink-500);
}

.surface-blue {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.surface-light {
  background: var(--surface);
}

.feature-band,
.split-layout,
.safety-layout,
.qr-download-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: center;
}

.band-copy p {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.text-link {
  color: var(--blue-700);
  font-weight: 900;
  text-underline-offset: 5px;
}

.surface-blue .text-link {
  color: #8ff0e8;
}

.testimonial-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
  margin: 0;
  padding: 26px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  color: var(--white);
  font-weight: 900;
  background: var(--blue-700);
  border-radius: 50%;
}

.testimonial-card:nth-child(2) .avatar {
  background: var(--teal-600);
}

.testimonial-card:nth-child(3) .avatar {
  background: var(--coral-500);
}

blockquote {
  margin: 0;
  color: var(--ink-900);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.72;
}

figcaption {
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 14px;
}

.testimonials .testimonial-grid {
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 22px;
}

.cta-section {
  background:
    linear-gradient(90deg, rgba(234, 242, 255, 0.95), rgba(245, 248, 252, 0.95)),
    repeating-linear-gradient(45deg, rgba(31, 95, 186, .12) 0 1px, transparent 1px 14px);
}

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

.page-hero {
  padding: 96px 0 74px;
  background:
    linear-gradient(135deg, #f8fbff 0%, #eaf2ff 48%, #f5fbfa 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(43px, 6vw, 78px);
}

.page-hero p {
  max-width: 680px;
  color: var(--ink-700);
  font-size: 19px;
}

.product-shot {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.feature-list article {
  padding: 30px;
}

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

.metadata-grid article {
  padding: 22px;
}

.metadata-grid strong,
.metadata-grid span {
  display: block;
}

.metadata-grid strong {
  margin-bottom: 8px;
  color: var(--blue-800);
  font-size: 18px;
}

.methods-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.methods-table > div {
  display: grid;
  grid-template-columns: .9fr 1.2fr 1fr;
}

.methods-table > div:first-child {
  color: var(--white);
  background: var(--blue-800);
}

.methods-table span,
.methods-table strong {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.methods-table > div:last-child span {
  border-bottom: 0;
}

.methods-table > div:not(:first-child):nth-child(odd) {
  background: var(--surface);
}

.process-panel {
  display: grid;
  gap: 14px;
}

.process-panel span {
  position: relative;
  display: block;
  padding: 22px 24px 22px 70px;
  color: var(--blue-900);
  font-size: 22px;
  font-weight: 900;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(17, 46, 95, 0.08);
}

.process-panel span::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 22px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--teal-600);
  border-radius: 50%;
  transform: translateY(-50%);
}

.process-panel {
  counter-reset: step;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: 120px minmax(0, .7fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--teal-600);
  font-weight: 900;
}

.timeline h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.timeline p {
  margin: 0;
  color: var(--ink-600, #475569);
}

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

.recipe-grid code {
  display: block;
  margin-top: 18px;
  padding: 12px 14px;
  color: var(--blue-900);
  background: var(--blue-100);
  border-radius: 6px;
  white-space: normal;
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 18px 18px 18px 50px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 23px;
  width: 12px;
  height: 12px;
  background: var(--teal-600);
  border-radius: 50%;
}

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

.download-card {
  padding: 30px;
}

.primary-download {
  border-color: rgba(47, 114, 220, 0.34);
  box-shadow: var(--shadow);
}

.platform {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  color: var(--blue-800);
  font-weight: 900;
  background: var(--blue-100);
  border-radius: 6px;
}

.download-card h2,
.faq-list h2,
.license-grid h3 {
  margin-top: 0;
}

.download-card ul {
  margin: 20px 0 24px;
  padding-left: 20px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.version-panel {
  padding: 44px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.version-panel span {
  color: #8ff0e8;
  font-weight: 900;
}

.version-panel strong {
  display: block;
  margin: 10px 0;
  font-size: clamp(58px, 8vw, 98px);
  line-height: 1;
}

.version-panel p {
  color: rgba(255, 255, 255, .82);
}

.license-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.license-grid article {
  padding: 24px;
}

.qr-download-section .qr-grid {
  justify-content: end;
}

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

.faq-list article {
  padding: 28px;
}

.site-footer {
  padding: 54px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr 1fr;
  gap: 40px;
}

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

.site-footer nav {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--white);
  text-underline-offset: 4px;
}

.footer-source p {
  margin-top: 0;
}

.download-modal[hidden] {
  display: none;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.66);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 34px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.28);
}

.modal-panel h2 {
  font-size: clamp(30px, 5vw, 48px);
}

.modal-copy {
  color: var(--ink-700);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  color: var(--ink-700);
  font-size: 26px;
  line-height: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

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

.qr-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--ink-900);
  text-align: center;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qr-card img {
  width: 180px;
  height: 180px;
  background: var(--white);
  border: 10px solid var(--white);
}

.qr-card strong {
  color: var(--blue-800);
  font-size: 18px;
}

.qr-card span {
  color: var(--ink-500);
  font-size: 13px;
}

.modal-note {
  margin-bottom: 0;
  color: var(--ink-500);
  font-size: 14px;
}

.static-qr {
  align-items: start;
}

body.modal-open {
  overflow: hidden;
}

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

@media (max-width: 960px) {
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 14px;
  }

  .strip-grid,
  .hero-shell,
  .feature-band,
  .split-layout,
  .safety-layout,
  .page-hero-grid,
  .qr-download-section {
    grid-template-columns: 1fr;
  }

  .hero-product {
    min-height: auto;
  }

  .testimonials .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .scenario-grid,
  .testimonial-grid,
  .feature-list,
  .download-grid,
  .faq-list,
  .license-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .qr-download-section .qr-grid {
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1120px);
  }

  .brand span {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .hero-shell {
    padding-top: 58px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-product {
    display: grid;
    gap: 12px;
  }

  .rule-stack,
  .rename-preview {
    position: relative;
    inset: auto;
    width: auto;
  }

  .product-window {
    order: 2;
  }

  .rule-stack {
    order: 1;
  }

  .rename-preview {
    order: 3;
  }

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

  .section {
    padding: 68px 0;
  }

  .hero-stats,
  .scenario-grid,
  .testimonial-grid,
  .feature-list,
  .metadata-grid,
  .recipe-grid,
  .download-grid,
  .faq-list,
  .license-grid,
  .footer-grid,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    display: grid;
    align-items: start;
  }

  .methods-table {
    overflow-x: auto;
  }

  .methods-table > div {
    min-width: 720px;
  }

  .modal-panel {
    padding: 28px 18px 22px;
  }
}
