/* ==================== 设计变量与基础重置 ==================== */
:root {
  --color-dark: #142E2C;
  --color-paper: #E8EAEA;
  --color-text: #152322;
  --color-brand: #116B64;
  --color-accent: #ED6ED9;
  --color-dark-text: #E8EAEA;
  --color-dark-muted: rgba(232, 234, 234, 0.75);

  --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", "Microsoft YaHei", sans-serif;
  --line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-paper);
  -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 {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section--dark { background-color: var(--color-dark); color: var(--color-dark-text); }
.section--paper { background-color: var(--color-paper); color: var(--color-text); }

.section__header {
  margin-bottom: calc(var(--gap) * 1.5);
  max-width: 720px;
}
.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section--paper .section__eyebrow { color: var(--color-brand); }
.section--dark .section__eyebrow { color: var(--color-accent); }

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.section--paper .section__title { color: var(--color-text); }
.section--dark .section__title { color: var(--color-dark-text); }
.section__title .hl {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section--paper .section__title .hl { color: var(--color-brand); }
.section--dark .section__title .hl { color: var(--color-accent); }

.section__lead {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 65ch;
}
.section--paper .section__lead { color: var(--color-text); }
.section--dark .section__lead { color: var(--color-dark-muted); }

/* ==================== 按钮组件 ==================== */
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border: none;
}
.btn--primary:hover { background-color: #d95cc6; }

.btn--secondary {
  background-color: transparent;
  border: 1.5px solid currentColor;
}
.section--paper .btn--secondary { color: var(--color-text); border-color: var(--color-text); }
.section--dark .btn--secondary { color: var(--color-dark-text); border-color: var(--color-dark-text); }
.section--paper .btn--secondary:hover { background-color: rgba(21, 35, 34, 0.06); }
.section--dark .btn--secondary:hover { background-color: rgba(232, 234, 234, 0.08); }

.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ==================== 卡片与面板 ==================== */
.card {
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-card);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: calc(var(--gap) * 1.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.section--paper .card { background-color: #fff; }
.section--dark .card { background-color: rgba(255, 255, 255, 0.06); }
.card:hover { transform: translateY(-2px); }

.card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

/* ==================== 时间轴 ==================== */
.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid currentColor;
  opacity: 0.6;
}
.section--paper .timeline { color: var(--color-brand); }
.section--dark .timeline { color: var(--color-accent); }
.timeline__item {
  position: relative;
  margin-bottom: calc(var(--gap) * 2);
  padding-left: 16px;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__marker {
  position: absolute;
  left: -30px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: currentColor;
}
.timeline__time {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.timeline__content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.timeline__content p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* ==================== 功能区块（分段导航） ==================== */
.feature-grid {
  display: grid;
  gap: var(--gap);
}
.feature-block {
  background-color: rgba(255,255,255,0.03);
  border-radius: var(--radius-card);
  padding: calc(var(--gap) * 1.2);
  border: 1px solid rgba(255,255,255,0.08);
}
.section--paper .feature-block {
  background-color: #fff;
  border: 1px solid rgba(21,35,34,0.08);
}
.feature-block__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
}
.feature-block__icon {
  width: 24px;
  height: 24px;
  color: var(--color-brand);
}
.section--dark .feature-block__icon { color: var(--color-accent); }
.feature-block__title { font-size: 1.1rem; font-weight: 700; }
.feature-block__text { font-size: 0.95rem; line-height: 1.7; opacity: 0.9; }
.feature-block__note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  opacity: 0.7;
  border-top: 1px dashed currentColor;
  padding-top: 0.5rem;
}

/* ==================== 表格 ==================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.section--paper .data-table th, .data-table td { border-bottom-color: rgba(21,35,34,0.1); }
.data-table th { font-weight: 700; opacity: 0.8; }
.data-table td strong { font-weight: 600; }

/* ==================== FAQ ==================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details {
  background-color: rgba(255,255,255,0.04);
  border-radius: var(--radius-card);
  border: var(--card-border);
  overflow: hidden;
}
.section--paper details { background-color: #fff; }
summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details__content {
  padding: 0 20px 16px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* ==================== 页头与页脚 ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(232, 234, 234, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21,35,34,0.08);
}
.section--dark .site-header { background-color: rgba(20, 46, 44, 0.9); border-bottom-color: rgba(255,255,255,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo img { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-size: 0.95rem; font-weight: 500; opacity: 0.8; transition: opacity 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
@media (max-width: 640px) {
  .nav { gap: 16px; }
  .header-inner { padding: 0; }
}

.site-footer {
  padding: 48px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
  border-top: 1px solid currentColor;
  margin-top: var(--section-y);
}
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-links a { opacity: 0.7; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }

/* ==================== SVG 与动效 ==================== */
.svg-panel {
  width: 100%;
  height: auto;
  max-width: 560px;
  margin: 0 auto;
}
.anim-rotate { animation: geo-spin 10s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-snap { animation: geo-align 8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.anim-float { animation: soft-rise 6s ease-in-out infinite; }
.anim-breathe { animation: pulse-opacity 4s ease-in-out infinite; }
.anim-slide-in { animation: enter-frame 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 3s linear infinite; }

@keyframes geo-spin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.04); }
}
@keyframes geo-align {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(12px) rotate(-15deg); }
}
@keyframes soft-rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-opacity {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes enter-frame {
  from { transform: translateX(16px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes draw-line {
  to { stroke-dashoffset: -24; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
