:root {
  --ink: #10264a;
  --muted: #5d6f8f;
  --blue: #096fd8;
  --cyan: #10c8c2;
  --mint: #d9fff6;
  --ice: #eefaff;
  --line: rgba(18, 92, 160, .16);
  --panel: rgba(255, 255, 255, .86);
  --shadow: 0 24px 70px rgba(16, 76, 139, .16);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(58, 216, 211, .28), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(30, 143, 229, .20), transparent 25%),
    linear-gradient(180deg, #f7fdff 0%, #eafaff 46%, #f8fcff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(8, 111, 216, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 111, 216, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 76%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(247, 253, 255, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 20px; color: var(--blue); }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 10px 26px rgba(9,111,216,.18); }
.site-nav { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #23466f; }
.site-nav a { padding: 10px 14px; border-radius: 999px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.site-nav a:hover { background: rgba(16, 200, 194, .12); color: var(--blue); transform: translateY(-1px); }
.nav-cta { color: white !important; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 12px 28px rgba(9, 111, 216, .20); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: white; border-radius: 14px; box-shadow: 0 10px 24px rgba(16, 76, 139, .12); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--blue); border-radius: 2px; }

.section-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 42px; padding: 44px 0 56px; }
.eyebrow { margin: 0 0 12px; color: #0b8fad; font-weight: 900; letter-spacing: .04em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(58px, 9vw, 118px); line-height: .96; color: transparent; background: linear-gradient(120deg, #0bbdb7 0%, #0b57bd 72%); -webkit-background-clip: text; background-clip: text; font-weight: 900; }
h2 { font-size: clamp(32px, 5vw, 58px); line-height: 1.06; margin-bottom: 16px; font-weight: 900; color: #0d3974; }
h3 { font-size: 22px; margin-bottom: 10px; }
.hero-text, .section-heading p, .screen-copy p, .contact-card p, .legal-hero p, .legal-card p, .legal-card li { color: var(--muted); font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 18px 36px rgba(9, 111, 216, .24); }
.btn.ghost { color: var(--blue); background: white; border: 1px solid var(--line); }
.trust-row { display: grid; gap: 8px; color: #476385; font-size: 14px; }
.hero-visual { position: relative; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.76); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 50%, rgba(255,255,255,.34)); pointer-events: none; }

.section-heading { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.features, .quiz-demo, .screens, .compliance, .contact { padding: 76px 0; }
.feature-grid, .compliance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card, .compliance-card, .legal-card, .contact-card, .metric {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.feature-card { padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover, .compliance-card:hover { transform: translateY(-5px); box-shadow: 0 30px 76px rgba(16, 76, 139, .20); }
.feature-card p, .compliance-card p { color: var(--muted); line-height: 1.75; margin-bottom: 0; }
.icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 16px; color: white; font-weight: 900; background: linear-gradient(145deg, var(--cyan), var(--blue)); box-shadow: 0 12px 24px rgba(9,111,216,.2); }

.quiz-panel {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(220, 255, 249, .82));
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.quiz-sidebar, .quiz-main {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 13px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #086fb8;
  background: rgba(16, 200, 194, .13);
  font-weight: 900;
}
.category-list { display: grid; gap: 10px; margin: 18px 0; }
.category-list button, .answer-list button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  color: #163b68;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.category-list button { padding: 0 16px; }
.category-list button.active, .category-list button:hover {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  transform: translateX(3px);
}
.score-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(145deg, #0b65c9, #12c8bf);
  box-shadow: 0 18px 34px rgba(9,111,216,.20);
}
.score-card span { display: block; opacity: .86; font-weight: 800; }
.score-card strong { display: block; margin-top: 8px; font-size: 44px; line-height: 1; }
.user-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
}
.user-card span { display: block; color: var(--muted); font-weight: 800; }
.user-card strong { display: block; margin-top: 8px; color: var(--blue); }
.user-card p { margin: 8px 0 12px; color: var(--muted); line-height: 1.55; }
.user-card button { width: 100%; margin-top: 8px; border: 0; border-radius: 14px; padding: 10px 12px; color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-weight: 900; }
.user-card button.hidden { display: none; }
.quiz-topline { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: #087aa2; font-weight: 900; }
.quiz-main h3 { min-height: 68px; font-size: clamp(22px, 4vw, 32px); line-height: 1.45; color: #12386a; }
.answer-list { display: grid; gap: 12px; margin: 22px 0; }
.answer-list button { position: relative; padding: 14px 18px 14px 58px; }
.answer-list button::before {
  content: attr(data-letter);
  position: absolute;
  left: 16px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.answer-list button:hover { transform: translateY(-2px); border-color: rgba(16, 200, 194, .55); }
.answer-list button.correct { border-color: rgba(18, 184, 124, .7); background: #eafff6; color: #087044; }
.answer-list button.wrong { border-color: rgba(236, 98, 78, .55); background: #fff1ee; color: #9e3323; }
.answer-list button:disabled { cursor: default; transform: none; }
.quiz-feedback {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #496a8d;
  background: rgba(238, 250, 255, .88);
  border: 1px solid var(--line);
  line-height: 1.55;
}
.quiz-feedback.good { color: #087044; background: #eafff6; border-color: rgba(18, 184, 124, .35); }
.quiz-feedback.bad { color: #9e3323; background: #fff1ee; border-color: rgba(236, 98, 78, .35); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.screens { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 44px; }
.screen-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.screen-tabs button { border: 1px solid var(--line); color: #28527d; background: white; border-radius: 999px; padding: 10px 16px; font-weight: 900; cursor: pointer; transition: all .2s ease; }
.screen-tabs button.active, .screen-tabs button:hover { color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 12px 24px rgba(9,111,216,.18); }
.phone-stage { display: grid; place-items: center; min-height: 560px; }
.phone-stage img { width: min(420px, 82vw); max-height: 720px; object-fit: contain; filter: drop-shadow(0 28px 42px rgba(7, 55, 106, .24)); transition: transform .25s ease, opacity .25s ease; }
.phone-stage img.switching { opacity: .2; transform: translateY(10px) scale(.98); }

.experience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 34px 0; }
.metric { padding: 24px; text-align: center; }
.metric strong { display: block; font-size: 38px; line-height: 1; color: var(--blue); }
.metric span { display: block; margin-top: 10px; color: var(--muted); font-weight: 700; }

.compliance-card { padding: 25px; min-height: 182px; transition: transform .2s ease, box-shadow .2s ease; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(26px, 5vw, 46px); background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(219,255,246,.82)); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 34px clamp(18px, 4vw, 54px); color: #456487; border-top: 1px solid var(--line); background: rgba(255,255,255,.72); }
.site-footer p { margin: 6px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 700; }
.site-footer a:hover { color: var(--blue); }
.back-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border: 0; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 18px 32px rgba(9,111,216,.22); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .2s ease; }
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.auth-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(11, 33, 58, .42); backdrop-filter: blur(8px); }
.auth-modal.hidden { display: none; }
.auth-dialog { position: relative; width: min(460px, 100%); padding: 28px; border-radius: 26px; background: white; box-shadow: 0 30px 80px rgba(16,76,139,.28); }
.auth-dialog h2 { font-size: 34px; }
.auth-dialog p { color: var(--muted); line-height: 1.7; }
.auth-dialog label { display: grid; gap: 8px; margin: 14px 0; color: #294666; font-weight: 900; }
.auth-dialog input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; outline: none; }
.auth-close { position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eefaff; color: var(--blue); font-size: 24px; cursor: pointer; }
.auth-actions { display: flex; gap: 12px; margin-top: 18px; }
.auth-message { margin-top: 12px; color: #c0392b; font-weight: 800; }

.legal-page { background: linear-gradient(180deg, #f6fdff, #eefbff 42%, #fff); }
.legal-hero { padding: 72px 0 28px; text-align: center; }
.legal-hero .brand img { margin: 0 auto 18px; width: 72px; height: 72px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; padding: 28px 0 80px; }
.legal-side { position: sticky; top: 92px; display: grid; gap: 10px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.86); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(16,76,139,.1); }
.legal-side a { padding: 11px 12px; border-radius: 12px; color: #31587e; font-weight: 800; }
.legal-side a:hover { color: var(--blue); background: rgba(16,200,194,.12); }
.legal-content { display: grid; gap: 18px; }
.legal-card { padding: clamp(22px, 4vw, 34px); }
.legal-card ul { margin: 0; padding-left: 20px; }
.legal-card li + li { margin-top: 8px; }
.legal-meta { color: var(--muted); font-weight: 700; }

.reveal { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
.js-ready .reveal { opacity: 0; transform: translateY(18px); }
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 980px) {
  .hero, .screens, .legal-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .feature-grid, .compliance-grid, .experience { grid-template-columns: repeat(2, 1fr); }
  .quiz-panel { grid-template-columns: 1fr; }
  .legal-side { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { padding: 12px 18px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; padding: 14px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { text-align: center; }
  .section-shell { width: min(100% - 28px, 1180px); }
  h1 { font-size: clamp(52px, 18vw, 78px); }
  h2 { font-size: clamp(30px, 10vw, 44px); }
  .hero { padding-top: 30px; gap: 28px; }
  .hero-actions, .contact-card, .site-footer { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .features, .quiz-demo, .screens, .compliance, .contact { padding: 52px 0; }
  .quiz-panel { padding: 12px; border-radius: 22px; }
  .quiz-sidebar, .quiz-main { padding: 18px; border-radius: 18px; }
  .quiz-topline { flex-direction: column; }
  .quiz-main h3 { min-height: auto; }
  .feature-grid, .compliance-grid, .experience, .legal-side { grid-template-columns: 1fr; }
  .phone-stage { min-height: auto; }
  .site-footer { text-align: center; }
  .site-footer nav { justify-content: center; }
}
