:root {
  /* 色板 */
  --color-dark: #121531;
  --color-paper: #E8E9EA;
  --color-text: #151723;
  --color-brand: #142CEB;
  --color-accent: #ED7D6E;
  
  /* 设计 Token */
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 2px solid var(--color-text);
  --card-shadow: 4px 4px 0 var(--color-text);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 1120px;
  
  /* 字体 */
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--color-paper);
  color: var(--color-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 页头与页脚 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(232, 233, 234, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21, 23, 35, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-list { display: flex; gap: 24px; }
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.nav-link:hover, .nav-link[aria-current="page"] {
  background-color: rgba(21, 23, 35, 0.06);
  color: var(--color-brand);
}
@media (max-width: 768px) {
  .nav-list { display: none; }
}

.site-footer {
  background-color: var(--color-dark);
  color: var(--color-paper);
  padding: 48px 0;
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--color-accent);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { opacity: 0.8; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--color-accent); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 233, 234, 0.15);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* 按钮组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
  border: none;
}
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 125, 110, 0.4);
}
.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text);
}
.btn-secondary:hover {
  background-color: var(--color-text);
  color: var(--color-paper);
}
.btn:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
}
.btn svg { width: 20px; height: 20px; stroke-width: 2; }

/* 区块通用 */
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section-dark {
  background-color: var(--color-dark);
  color: var(--color-paper);
}
.section-header {
  margin-bottom: 48px;
  max-width: 800px;
}
.masthead {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--color-brand);
}
.section-dark .masthead { color: var(--color-accent); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.1rem;
  line-height: 1.75;
  opacity: 0.85;
  max-width: 38em;
}
.hl { color: var(--color-brand); }
.section-dark .hl { color: var(--color-accent); }

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
}
.card {
  background-color: var(--color-paper);
  border: var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 32px;
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-4px); }
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background-color: var(--color-brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--color-paper); stroke-width: 2; }
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.card-text { font-size: 0.95rem; line-height: 1.7; opacity: 0.85; }

/* 列表与表格 */
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-brand);
  border-radius: 4px;
  background-color: rgba(20, 44, 235, 0.1);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 24px;
}
.data-table th, .data-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(21, 23, 35, 0.1);
}
.data-table th { font-weight: 700; width: 40%; }
.section-dark .data-table th,
.section-dark .data-table td { border-bottom-color: rgba(232, 233, 234, 0.15); }

/* FAQ */
.faq-item {
  border: var(--card-border);
  border-radius: var(--radius-card);
  margin-bottom: 16px;
  background-color: var(--color-paper);
  overflow: hidden;
}
.faq-summary {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] .faq-summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
}

/* SVG 动效 Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes slide-in {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* 动效类应用 */
.anim-float { animation: float 6s ease-in-out infinite; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 4s ease-in-out infinite alternate; }
.anim-pulse { animation: pulse-dot 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-spin { animation: spin-slow 20s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-spin-rev { animation: spin-reverse 25s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-slide { animation: slide-in 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
