:root {
  --color-dark: #121531;
  --color-paper: #E8E9EA;
  --color-text: #151723;
  --color-brand: #142CEB;
  --color-accent: #ED7D6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 0;
  --card-shadow: none;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 960px;
  --font-main: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  --lh-body: 1.65;
  --lh-heading: 1.25;
  --ls-heading: 0.02em;
  --ls-eyebrow: 0.14em;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-brand); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }
a:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 2px; }

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* 主题变量覆盖机制 */
.sec-paper { --bg: var(--color-paper); --fg: var(--color-text); --link: var(--color-brand); --accent: var(--color-brand); }
.sec-dark { --bg: var(--color-dark); --fg: var(--color-paper); --link: var(--color-accent); --accent: var(--color-accent); }
.card-light { --bg: var(--color-paper); --fg: var(--color-text); --link: var(--color-brand); --accent: var(--color-brand); }

/* 区块容器 */
.section {
  padding-block: var(--section-y);
  background: var(--bg);
}
.section-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* 排版工具 */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  color: var(--link);
  text-transform: uppercase;
  margin-bottom: 0.5em;
  display: inline-block;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: 1em;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--fg);
  margin-bottom: 0.6em;
}
h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--fg);
  margin-bottom: 0.4em;
}
p { color: var(--fg); max-width: 38em; margin-bottom: 1em; }
.text-muted { opacity: 0.8; }

/* 按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding-inline: 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.btn-secondary:hover { background: rgba(128,128,128,0.1); transform: translateY(-1px); }

/* 网格与布局 */
.grid-auto {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
@media (max-width: 768px) {
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-layout .hero-text { order: 1; }
  .hero-layout .hero-visual { order: 2; margin-top: 24px; }
}

/* 卡片与面板 */
.card {
  background: var(--bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: calc(var(--gap) * 1.2);
  position: relative;
  overflow: hidden;
}
.card-subtle { background: rgba(128,128,128,0.06); }
.dark-section .card-subtle { background: rgba(255,255,255,0.06); }

/* 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(128,128,128,0.2);
}
th { font-weight: 600; color: var(--fg); }
td { color: var(--fg); }
tr:last-child td { border-bottom: none; }

/* FAQ */
details {
  border-bottom: 1px solid rgba(128,128,128,0.2);
  padding: 16px 0;
}
summary {
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2em; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; margin-bottom: 0; }

/* 步骤条 */
.steps-row {
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
}
.step-item {
  flex: 1 1 200px;
  min-width: 0;
  counter-increment: step;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--color-dark);
  font-weight: 700;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* 新闻卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.news-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-date { font-size: 0.8rem; opacity: 0.7; }
.news-card h3 { font-size: 1rem; margin-bottom: 0; }
.news-card p { font-size: 0.9rem; margin-bottom: 0; }

/* 页头页脚 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232,233,234,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(128,128,128,0.15);
}
.sec-dark .site-header { background: rgba(18,21,49,0.9); }
.header-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.footer {
  background: var(--bg);
  padding-block: 48px;
  border-top: 1px solid rgba(128,128,128,0.15);
}
.footer-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-col h4 { font-weight: 700; margin-bottom: 12px; color: var(--fg); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--link); font-size: 0.9rem; }
.copyright { text-align: center; margin-top: 32px; font-size: 0.8rem; opacity: 0.7; color: var(--fg); }

/* SVG 动效 */
.hero-svg { width: 100%; height: auto; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.anim-float { transform-box: fill-box; transform-origin: center; }
.anim-slide { opacity: 0; transform-box: fill-box; transform-origin: center; }
.anim-rotate { transform-box: fill-box; transform-origin: center; }
.anim-breath { opacity: 0.6; }

@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  50%, 100% { stroke-dashoffset: 0; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes slideRight {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideUp {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes rotateSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.anim-draw { animation: drawLine 5s ease-in-out infinite alternate; }
.anim-float { animation: floatY 6s ease-in-out infinite; }
.anim-slide-r { animation: slideRight 5s ease-out forwards; }
.anim-slide-u { animation: slideUp 5s ease-out forwards; }
.anim-rotate { animation: rotateSlow 14s linear infinite; }
.anim-breath { animation: breathe 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .anim-draw, .anim-float, .anim-slide-r, .anim-slide-u, .anim-rotate, .anim-breath {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
