
/* 全局亮色纯白变量 */
:root {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-color: #2563eb;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --safe: #15803d;
  --safe-bg: #f0fdf4;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 120;
  padding: 8px 12px;
  background: var(--text-main);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

/* Header 导航栏 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

header a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

header small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: normal;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #0c1222;
  color: #e8b423;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover,
nav a.is-current {
  color: var(--accent-color);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switch {
  margin-left: auto;
}

.lang-switch select {
  max-width: 8.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #fff;
  color: var(--text-main);
  padding: 0.4rem 0.45rem;
  font-size: 0.85rem;
}

[dir="rtl"] .lang-switch {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] nav a {
  margin-left: 0;
  margin-right: 1.5rem;
}

[dir="rtl"] .scenarios {
  padding-left: 0;
  padding-right: 0.85rem;
  border-left: 0;
  border-right: 3px solid var(--accent-color);
}

.btn-primary,
.btn-start,
.btn-secondary,
.btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary,
.btn-start,
.btn-next {
  background: var(--accent-color);
  color: #fff !important;
  border: 0;
  font-weight: 500;
}

.btn-primary {
  padding: 0.5rem 1rem;
}

.btn-start,
.btn-next {
  padding: 0.7rem 1.1rem;
}

.btn-secondary {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-main);
  padding: 0.65rem 1.1rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-start:hover,
.btn-next:hover {
  background: #1d4ed8;
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Hero 展区 */
.hero-section {
  max-width: 1080px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.subtitle {
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0.6rem 0;
  color: var(--text-main);
  line-height: 1.2;
}

.hero-content em {
  color: var(--accent-color);
  font-style: normal;
}

.hero-desc,
.section-lead,
.section-desc,
.scenarios,
.scam-desc,
.faq-list p,
.split-note p {
  color: var(--text-muted);
}

.hero-desc {
  margin: 0;
  font-size: 1.1rem;
  max-width: 38rem;
}

.hero-content .btn-primary {
  padding: 0.7rem 1.1rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.15rem;
  margin-top: 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.check-icon {
  color: var(--accent-color);
  font-style: normal;
  font-weight: 700;
  margin-right: 0.2rem;
}

.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

section {
  scroll-margin-top: 88px;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.quiz-section {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto 2rem;
}

.quiz-header,
.checklist-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.quiz-header p,
.section-lead {
  max-width: 40rem;
  margin: 0;
}

.quiz-meta {
  text-align: right;
}

.quiz-meta p,
.check-status,
.badge,
.result-kicker {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.quiz-progress {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.quiz-progress span {
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--border-color);
}

.quiz-progress span.is-on,
.quiz-progress span.is-done {
  background: var(--accent-color);
}

/* 通用纯白卡片排版 */
.quiz-card,
.scams-section,
.checklist-section,
.basics-section,
.faq-section,
.cold-faq,
.legal-page {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
}

.quiz-card {
  width: 100%;
  margin: 1.25rem 0 0;
}

.scams-section,
.checklist-section,
.basics-section,
.faq-section,
.cold-faq,
.legal-page {
  width: min(900px, calc(100% - 2rem));
}

.legal-page h2 {
  margin: 0 0 1rem;
}

.legal-page h3 {
  margin: 1.6rem 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text-main);
}

.legal-page p {
  margin: 0 0 1rem;
  color: var(--text-main);
  line-height: 1.85;
  text-align: justify;
}

.legal-page p:last-child {
  margin-bottom: 0;
}

#legal-back {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-color);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto 1.1rem;
}

.legal-links a {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.2rem 0;
}

.legal-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.scenarios {
  margin: 0 0 1rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent-color);
  font-size: 1.05rem;
}

/* 测试按钮交互 */
.options {
  display: grid;
  gap: 0;
}

.options button {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  width: 100%;
  padding: 1rem;
  margin: 0.8rem 0;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.options button:hover:not(:disabled) {
  border-color: var(--accent-color);
  background: #eff6ff;
}

.options button:disabled {
  cursor: default;
}

.opt-key {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
}

.options button.is-right {
  border-color: var(--safe);
  background: var(--safe-bg);
}

.options button.is-wrong {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.feedback,
.quiz-result {
  margin-top: 0.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #f8fafc;
}

.feedback strong,
.result-score {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.feedback p,
.quiz-result p {
  margin: 0;
}

.feedback.is-right {
  background: var(--safe-bg);
  border-color: #bbf7d0;
}

.feedback.is-wrong {
  background: var(--danger-bg);
  border-color: #fecaca;
}

.feedback[hidden],
.question-step[hidden],
.quiz-result[hidden] {
  display: none !important;
}

.btn-next {
  margin-top: 0.9rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.filter-btn {
  border: 1px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.filter-empty {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.filter-empty[hidden],
.scam-card[hidden] {
  display: none !important;
}

.scam-grid,
.split-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.scam-card,
.split-note article {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.15rem;
  border-top: 3px solid var(--accent-color);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wallet-badge,
.badge {
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
}

.scam-type {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: right;
}

.scam-desc {
  margin: 0;
}

.info-box {
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.92rem;
}

.how-to-prevent {
  background: #eff6ff;
}

.signal-box {
  background: #fff7ed;
}

.conclusion-box {
  background: #fef2f2;
}

.check-status {
  white-space: nowrap;
}

/* 安全清单交互样式 */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.checklist li {
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.checklist label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-main);
}

.checklist input {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.checklist input:checked {
  border-color: var(--accent-color);
  background: var(--accent-color);
}

.checklist input:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checklist input:checked + span {
  color: var(--accent-color);
}

.faq-list {
  margin-top: 0.4rem;
}

details {
  border-bottom: 1px dashed var(--border-color);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent-color);
  font-size: 1.25rem;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: 0 0 1rem;
}

.faq-list a {
  color: var(--accent-color);
  font-weight: 600;
}

/* 底部 Footer */
footer {
  text-align: center;
  padding: 1.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

footer p {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
}

:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  header {
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 0.5rem;
  }

  nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0 0.25rem;
  }

  nav.is-open {
    display: flex;
  }

  nav a {
    margin-left: 0;
  }

  .hero-section,
  .scam-grid,
  .split-note,
  .quiz-header,
  .checklist-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-section {
    margin: 1.5rem auto 2rem;
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .quiz-meta,
  .check-status {
    text-align: left;
  }

  .quiz-progress {
    justify-content: flex-start;
  }

  .quiz-card,
  .scams-section,
  .checklist-section,
  .basics-section,
  .faq-section,
  .cold-faq,
  .legal-page {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary,
  .btn-start,
  .btn-secondary,
  .btn-next,
  .options button {
    transition: none;
  }
}


html { background-color: #f8fafc; }
body { max-width: 430px; margin-left: auto; margin-right: auto; min-height: 100vh; }

  header {
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 0.5rem;
  }

  nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0 0.25rem;
  }

  nav.is-open {
    display: flex;
  }

  nav a {
    margin-left: 0;
  }

  .hero-section,
  .scam-grid,
  .split-note,
  .quiz-header,
  .checklist-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-section {
    margin: 1.5rem auto 2rem;
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .quiz-meta,
  .check-status {
    text-align: left;
  }

  .quiz-progress {
    justify-content: flex-start;
  }

  .quiz-card,
  .scams-section,
  .checklist-section,
  .basics-section,
  .faq-section,
  .cold-faq,
  .legal-page {
    padding: 1.25rem;
  }

