:root {
  --color-dark: #21163C;
  --color-paper: #F4F3F7;
  --color-body: #191523;
  --color-brand: #5214EB;
  --color-accent: #ED926E;
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px var(--color-body);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --text-base: 16px;
  --line-height-base: 1.75;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--line-height-base);
  color: var(--color-body);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section {
  padding: var(--section-y) 0;
}

.bg-dark {
  background-color: var(--color-dark);
  color: var(--color-paper);
}

.bg-paper {
  background-color: var(--color-paper);
  color: var(--color-body);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  max-width: 38em;
  margin-bottom: 1rem;
}

.overline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.bg-paper .overline { color: var(--color-brand); }
.bg-dark .overline { color: var(--color-accent); }

.hl {
  font-weight: 600;
}

.bg-paper .hl { color: var(--color-brand); }
.bg-dark .hl { color: var(--color-accent); }

/* Layout Utilities */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-body);
  color: var(--color-body);
}

.bg-dark .btn-secondary {
  border-color: var(--color-paper);
  color: var(--color-paper);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(0,0,0,0.05);
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Cards */
.card {
  background-color: var(--color-paper);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  transition: transform 0.2s ease;
}

.bg-dark .card {
  background-color: var(--color-paper);
  color: var(--color-body);
}

.card:hover {
  transform: translateY(-4px);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--color-brand);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.timeline-marker {
  position: absolute;
  left: -2.55rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--color-accent);
  border-radius: 50%;
  border: 2px solid var(--color-paper);
}

/* Feature Row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius-card);
  background-color: var(--color-paper);
  box-shadow: var(--card-shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  table-layout: fixed;
}

th, td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

th {
  font-weight: 600;
  background-color: rgba(0,0,0,0.03);
}

td { vertical-align: top; }

a[href] {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bg-dark a[href] { color: var(--color-accent); }

/* FAQ */
details {
  margin-bottom: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  background-color: var(--color-paper);
}

details[open] {
  background-color: rgba(0,0,0,0.02);
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.2s;
}

details[open] summary::after {
  content: "−";
}

details > div {
  padding-top: 0.75rem;
  line-height: 1.7;
}

/* Header & Footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-paper);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0.75rem 0;
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-body);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-link img {
  height: 32px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-brand);
  font-weight: 700;
}

.site-footer {
  background-color: var(--color-dark);
  color: var(--color-paper);
  padding: 2.5rem 0;
  margin-top: var(--section-y);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.footer-col a {
  display: block;
  color: var(--color-paper);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-col a:hover { opacity: 1; text-decoration: underline; }

.copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* SVG Icon Base */
.svg-icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Illustration SVG Base */
.site-illustration {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* SVG Animations */
.anim-float { animation: floatUp 6s ease-in-out infinite alternate; }
.anim-float-delay { animation: floatUp 6s ease-in-out infinite alternate-reverse; animation-delay: 2s; }
.anim-breathe { animation: breathe 3s ease-in-out infinite; }
.anim-slide { animation: slideIn 0.8s ease-out forwards; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawLine 1.5s ease-out forwards; }

@keyframes floatUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(-16px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes drawLine {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .anim-float, .anim-float-delay, .anim-breathe, .anim-slide, .anim-draw {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Responsive Tweaks */
@media (max-width: 640px) {
  .main-nav { gap: 1rem; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-visual { order: 2; }
  .hero-content { order: 1; }
}

/* 兜底：裁掉横向溢出 */
div.card.checklist-item {
  overflow-x: clip;
}
