:root {
  /* 色板 */
  --color-dark: #240F29;
  --color-paper: #F6F3F7;
  --color-body: #201523;
  --color-brand: #A711CF;
  --color-accent: #ED6E73;
  --color-dark-text: #F6F3F7;
  --color-paper-text: #201523;
  
  /* 圆角 */
  --radius-card: 0;
  --radius-btn: 0;
  --radius-tag: 0;
  
  /* 卡片边界与阴影 */
  --card-border: 0;
  --card-shadow: none;
  
  /* 节奏与密度 */
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  
  /* 内容最大宽度 */
  --content-max: 1280px;
  
  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.55;
  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%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* 页面容器 */
.container {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

/* 区块通用 */
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-dark-text);
}

.section--paper {
  background-color: var(--color-paper);
  color: var(--color-paper-text);
}

/* 眉标 */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

.section--paper .eyebrow {
  color: var(--color-brand);
}

.section--dark .eyebrow {
  color: var(--color-accent);
}

/* 标题 */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 0.8em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.6em;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.5em;
}

.hl {
  color: var(--color-brand);
}

.section--dark .hl {
  color: var(--color-accent);
}

p {
  margin-bottom: 1em;
  max-width: 38em;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 52px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.btn--primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn--secondary {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}

.btn--secondary:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.section--paper .btn--secondary {
  border-color: var(--color-body);
  color: var(--color-body);
}

.section--dark .btn--secondary {
  border-color: var(--color-dark-text);
  color: var(--color-dark-text);
}

/* 图标在按钮内 */
.btn svg {
  flex-shrink: 0;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-dark);
  border-bottom: 1px solid rgba(246, 243, 247, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-dark-text);
}

.logo img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(246, 243, 247, 0.75);
  transition: color 0.2s ease;
  padding: 4px 0;
  position: relative;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-dark-text);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
}

.nav .btn--primary {
  height: 40px;
  padding: 0 16px;
  font-size: 0.85rem;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-dark-text);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-dark);
  color: rgba(246, 243, 247, 0.6);
  padding: 48px 0;
  border-top: 1px solid rgba(246, 243, 247, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(246, 243, 247, 0.6);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-dark-text);
}

/* 卡片 */
.card {
  background-color: rgba(246, 243, 247, 0.06);
  border: 1px solid rgba(246, 243, 247, 0.08);
  padding: 24px;
  transition: background-color 0.2s ease;
}

.card:hover {
  background-color: rgba(246, 243, 247, 0.1);
}

.section--paper .card {
  background-color: rgba(32, 21, 35, 0.03);
  border: 1px solid rgba(32, 21, 35, 0.08);
}

.section--paper .card:hover {
  background-color: rgba(32, 21, 35, 0.06);
}

/* 表格 */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(246, 243, 247, 0.1);
}

.section--paper .data-table th,
.section--paper .data-table td {
  border-bottom: 1px solid rgba(32, 21, 35, 0.1);
}

.data-table th {
  font-weight: 600;
  color: var(--color-accent);
}

.section--paper .data-table th {
  color: var(--color-brand);
}

.data-table td:first-child {
  font-weight: 600;
  min-width: 120px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(246, 243, 247, 0.1);
}

.section--paper .faq-item {
  border-bottom: 1px solid rgba(32, 21, 35, 0.1);
}

.faq-item summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.section--paper .faq-item summary:hover {
  color: var(--color-brand);
}

.faq-item .faq-answer {
  padding-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: inherit;
}

/* 功能标签导航 */
.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-tab-btn {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  border: 1px solid rgba(246, 243, 247, 0.15);
  color: rgba(246, 243, 247, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.feature-tab-btn:hover,
.feature-tab-btn.active {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

.section--paper .feature-tab-btn {
  border-color: rgba(32, 21, 35, 0.15);
  color: rgba(32, 21, 35, 0.6);
}

.section--paper .feature-tab-btn:hover,
.section--paper .feature-tab-btn.active {
  background-color: var(--color-brand);
  color: var(--color-paper);
  border-color: var(--color-brand);
}

.feature-panel {
  display: none;
}

.feature-panel.active {
  display: block;
}

/* 步骤时间线 */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), rgba(237, 110, 115, 0.2));
}

.timeline-step {
  position: relative;
  padding-bottom: 32px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--color-accent);
  color: var(--color-dark);
  font-size: 0.8rem;
  font-weight: 700;
  position: absolute;
  left: -32px;
  top: 0;
}

.section--paper .timeline::before {
  background: linear-gradient(to bottom, var(--color-brand), rgba(167, 17, 207, 0.2));
}

.section--paper .step-number {
  background-color: var(--color-brand);
  color: var(--color-paper);
}

/* 场景走查 */
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.scenario-card {
  padding: 24px;
}

.scenario-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
  color: var(--color-accent);
}

.section--paper .scenario-card h4 {
  color: var(--color-brand);
}

.scenario-steps {
  counter-reset: step-counter;
}

.scenario-steps li {
  counter-increment: step-counter;
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
}

.scenario-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background-color: var(--color-accent);
  color: var(--color-dark);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--paper .scenario-steps li::before {
  background-color: var(--color-brand);
  color: var(--color-paper);
}

/* 新闻卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.news-card {
  padding: 24px;
}

.news-card time {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5em;
}

.section--paper .news-card time {
  color: var(--color-brand);
}

.news-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.news-card p {
  font-size: 0.9rem;
  color: inherit;
  opacity: 0.85;
  margin-bottom: 0;
}

/* 提示框 */
.callout {
  padding: 16px 20px;
  border-left: 3px solid var(--color-accent);
  margin: 16px 0;
  font-size: 0.95rem;
}

.section--paper .callout {
  border-left-color: var(--color-brand);
}

.callout p {
  margin-bottom: 0;
}

/* 特性胶囊 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: rgba(246, 243, 247, 0.08);
  color: var(--color-dark-text);
  border: 1px solid rgba(246, 243, 247, 0.1);
}

.chip svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.section--paper .chip {
  background-color: rgba(32, 21, 35, 0.04);
  color: var(--color-body);
  border-color: rgba(32, 21, 35, 0.1);
}

.section--paper .chip svg {
  color: var(--color-brand);
}

/* 列表标记 */
.bullet-list {
  padding-left: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5em;
  font-size: 0.95rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
}

.section--paper .bullet-list li::before {
  background-color: var(--color-brand);
}

/* SVG 动效：层叠漂浮 */
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.svg-float-slow {
  animation: float-slow 6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.svg-float-medium {
  animation: float-medium 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.svg-float-fast {
  animation: float-fast 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* SVG 动效：呼吸点 */
@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.svg-breathe {
  animation: breathe 2.5s ease-in-out infinite;
}

/* SVG 动效：描边流动 */
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

.svg-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-line 3s ease-in-out infinite;
}

/* SVG 动效：滑入 */
@keyframes slide-in {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(6px); opacity: 0.7; }
}

.svg-slide {
  animation: slide-in 3.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* SVG 动效：脉冲环 */
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.svg-pulse {
  animation: pulse-ring 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* 响应式 */
@media (max-width: 1024px) {
  .scenario-grid {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-layout {
    flex-direction: column;
  }
  
  .hero-visual {
    order: -1;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .svg-float-slow,
  .svg-float-medium,
  .svg-float-fast,
  .svg-breathe,
  .svg-draw,
  .svg-slide,
  .svg-pulse {
    animation: none !important;
  }
}
