:root {
  --color-dark: #17203F;
  --color-paper: #FCFCFD;
  --color-text: #151823;
  --color-brand: #1441EB;
  --color-accent: #6EEDBD;
  --color-dark-bg: #17203F;
  --color-paper-bg: #FCFCFD;
  --color-text-body: #151823;
  --color-text-light: #FCFCFD;
  --color-brand-text: #1441EB;
  --color-accent-text: #6EEDBD;
  
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(21, 24, 35, 0.3);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 1280px;
  --header-height: 64px;
  
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--color-text-body);
  background: var(--color-paper-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }

/* 布局容器 */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.grid {
  display: grid;
  gap: var(--gap);
}
.flex { display: flex; gap: var(--gap); align-items: center; }
.flex-col { flex-direction: column; }
@media (min-width: 768px) { .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 面与取色 */
.dark-surface { background: var(--color-dark-bg); color: var(--color-text-light); }
.paper-surface { background: var(--color-paper-bg); color: var(--color-text-body); }
.dark-surface a:not(.btn):hover { color: var(--color-accent-text); }
.paper-surface a:not(.btn):hover { color: var(--color-brand-text); }
.hl { font-weight: 700; }
.dark-surface .hl { color: var(--color-accent-text); }
.paper-surface .hl { color: var(--color-brand-text); }

/* 眉标 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.paper-surface .badge { color: var(--color-brand-text); }
.dark-surface .badge { color: var(--color-accent-text); }

/* 标题 */
h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
p { margin-bottom: 1rem; max-width: 38em; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 48px;
  padding: 0 1.25rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark-bg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(110, 237, 189, 0.4); }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-text-body);
  color: var(--color-text-body);
}
.paper-surface .btn-secondary:hover { background: rgba(20, 65, 235, 0.08); }
.dark-surface .btn-secondary { border-color: var(--color-text-light); color: var(--color-text-light); }
.dark-surface .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 253, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21, 24, 35, 0.1);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.dark-surface .site-header { background: rgba(23, 32, 63, 0.95); border-bottom-color: rgba(255, 255, 255, 0.1); }
.header-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.1rem; }
.logo img { height: 32px; width: auto; }
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a { font-size: 0.95rem; font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-brand-text); }
.dark-surface nav a:hover, .dark-surface nav a[aria-current="page"] { color: var(--color-accent-text); }
@media (max-width: 767px) { nav { display: none; } }

/* 页脚 */
.site-footer {
  background: var(--color-dark-bg);
  color: var(--color-text-light);
  padding: 3rem 0;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--color-accent-text); }
.copyright { width: 100%; margin-top: 2rem; text-align: center; opacity: 0.7; }

/* 卡片与面板 */
.card {
  background: var(--color-paper-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(21, 24, 35, 0.35); }
.dark-surface .card { background: rgba(255, 255, 255, 0.08); }
.panel {
  background: var(--color-dark-bg);
  border-radius: 12px;
  padding: 1.5rem;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.panel svg { width: 100%; height: auto; }

/* 表格 */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid rgba(21, 24, 35, 0.1); }
.dark-surface th, .dark-surface td { border-bottom-color: rgba(255, 255, 255, 0.1); }
th { font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-card);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  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.2rem; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: rgba(255, 255, 255, 0.08); }
.faq p { padding: 0 1.25rem 1rem; margin: 0; font-size: 0.95rem; opacity: 0.9; }

/* 资讯卡片 */
.news-card {
  background: var(--color-paper-bg);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--card-shadow);
}
.dark-surface .news-card { background: rgba(252, 252, 253, 0.05); }
.news-card time { font-size: 0.8rem; opacity: 0.7; }
.news-card h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.news-card p { font-size: 0.9rem; opacity: 0.85; margin: 0; }

/* 流程条 */
.flow-bar {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.flow-step {
  flex: 0 0 auto;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  padding: 1rem;
  position: relative;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  top: 50%;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  opacity: 0.4;
}
.flow-step .step-num {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-dark-bg);
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* 胶囊 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.9rem;
}
.dark-surface .chip { color: var(--color-text-light); }
.paper-surface .chip { background: rgba(20, 65, 235, 0.08); color: var(--color-brand-text); }

/* SVG 动效基础 */
.svg-anim { width: 100%; height: auto; }
.svg-anim path, .svg-anim circle, .svg-rect, .svg-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.dark-surface .svg-anim path, .dark-surface .svg-anim circle, .dark-surface .svg-rect, .dark-surface .svg-line { stroke: var(--color-text-light); }
.paper-surface .svg-anim path, .paper-surface .svg-anim circle, .paper-surface .svg-rect, .paper-surface .svg-line { stroke: var(--color-text-body); }

@keyframes floatLayer {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes slideInRight {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(8px); opacity: 0.85; }
}
@keyframes drawLine {
  0%, 100% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
}
@keyframes breatheDots {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.anim-float { animation: floatLayer 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-slide { animation: slideInRight 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-draw { animation: drawLine 4s ease-in-out infinite; }
.anim-breathe { animation: breatheDots 2s ease-in-out infinite; }
.anim-delay-1 { animation-delay: 0.5s; }
.anim-delay-2 { animation-delay: 1s; }
.anim-delay-3 { animation-delay: 1.5s; }

@media (prefers-reduced-motion: reduce) {
  .anim-float, .anim-slide, .anim-draw, .anim-breathe { animation: none !important; }
}

/* 响应式微调 */
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .flex-col-mobile { flex-direction: column; }
  .panel { aspect-ratio: 16/10; }
}
