:root {
  /* 色板 */
  --color-dark: #240F29;
  --color-paper: #F6F3F7;
  --color-text: #201523;
  --color-brand: #A711CF;
  --color-accent: #ED6E73;
  
  /* 结构变量 */
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 0;
  --card-shadow: none;
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 960px;
  
  /* 排版变量 */
  --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --text-body: 17px;
  --line-body: 1.55;
}

/* 基础重置与全局 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--line-body);
  color: var(--color-text);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* 容器与布局 */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}
section {
  padding-block: var(--section-y);
  position: relative;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* 主题覆盖：深色面 */
.bg-dark {
  background-color: var(--color-dark);
  color: var(--color-paper);
  --text-primary: var(--color-paper);
  --text-secondary: rgba(246, 243, 247, 0.85);
  --link-color: var(--color-accent);
  --hl-color: var(--color-accent);
}
.bg-dark a:not(.btn) { color: var(--link-color); }
.bg-dark .hl { color: var(--hl-color); }

/* 主题覆盖：浅色纸面 */
.bg-paper {
  background-color: var(--color-paper);
  color: var(--color-text);
  --text-primary: var(--color-text);
  --text-secondary: rgba(32, 21, 35, 0.75);
  --link-color: var(--color-brand);
  --hl-color: var(--color-brand);
}
.bg-paper a:not(.btn) { color: var(--link-color); }
.bg-paper .hl { color: var(--hl-color); }

/* 卡片（深色面内的浅色卡片） */
.card-light {
  background-color: var(--color-paper);
  color: var(--color-text);
  padding: var(--gap);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
}
.card-light .hl { color: var(--color-brand); }
.card-light a:not(.btn) { color: var(--color-brand); }

/* 标题系统 */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: calc(var(--gap) * 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bg-dark .section-label { color: var(--color-accent); }
.bg-paper .section-label { color: var(--color-brand); }
.section-label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: currentColor;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--gap);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--gap);
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  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: 10px;
  height: 52px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}
.btn-primary:hover { background-color: #d95b60; }
.btn-secondary {
  background: transparent;
  border-color: currentColor;
  color: currentColor;
}
.bg-paper .btn-secondary { color: var(--color-text); border-color: var(--color-text); }
.bg-dark .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: var(--gap); }

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-dark);
  border-bottom: 1px solid rgba(246, 243, 247, 0.1);
  padding-block: 16px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.2rem; color: var(--color-paper); }
.logo img { width: 32px; height: 32px; object-fit: contain; }
nav { display: flex; gap: 24px; align-items: center; }
nav a { font-size: 0.95rem; font-weight: 500; color: var(--color-paper); opacity: 0.85; transition: opacity 0.2s; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; }
@media (max-width: 640px) { nav { gap: 16px; } nav .hide-mobile { display: none; } }

/* 页脚 */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-paper);
  padding-block: var(--section-y);
  border-top: 1px solid rgba(246, 243, 247, 0.1);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; color: var(--color-accent); }
.footer-col a { display: block; font-size: 0.9rem; margin-bottom: 8px; opacity: 0.8; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(246, 243, 247, 0.1); font-size: 0.85rem; opacity: 0.7; text-align: center; }

/* 步骤条 */
.steps { display: flex; gap: var(--gap); counter-reset: step; }
.step-item { flex: 1; position: relative; padding: 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(246,243,247,0.1); }
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--color-accent); color: var(--color-dark);
  font-weight: 800; font-size: 0.9rem; margin-bottom: 12px;
}
.step-item p { font-size: 0.95rem; opacity: 0.9; margin: 0; }
@media (max-width: 768px) { .steps { flex-direction: column; } }

/* 功能卡片组 */
.feature-group { margin-bottom: var(--gap); }
.feature-group-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--color-brand); }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.feature-card { padding: 20px; background: #fff; border: 1px solid rgba(32,21,35,0.08); }
.feature-card h3 { color: var(--color-text); margin-bottom: 8px; }
.feature-card ul { padding-left: 18px; list-style: disc; font-size: 0.95rem; line-height: 1.6; color: rgba(32,21,35,0.8); }
.feature-card li { margin-bottom: 6px; }

/* 进阶技巧 */
.tips-list { display: flex; flex-direction: column; gap: 16px; }
.tip-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: rgba(255,255,255,0.04); border-left: 3px solid var(--color-accent); }
.tip-num { font-weight: 800; color: var(--color-accent); font-size: 1.1rem; min-width: 24px; }
.tip-content { font-size: 0.95rem; line-height: 1.6; }

/* 场景走查 */
.scenario { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(246,243,247,0.1); }
.scenario-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 8px; width: fit-content; margin-bottom: 4px; }
.tag-problem { background: rgba(237,110,115,0.2); color: var(--color-accent); }
.tag-action { background: rgba(167,17,207,0.2); color: var(--color-brand); }
.tag-result { background: rgba(32,21,35,0.1); color: var(--color-paper); }
.scenario p { margin: 0; font-size: 0.95rem; }

/* 表格 */
.platform-table { width: 100%; border-collapse: collapse; margin-top: 16px; overflow-x: auto; }
.platform-table th, .platform-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(246,243,247,0.15); font-size: 0.95rem; min-width: 0; word-break: break-word; white-space: normal; }
.platform-table th { font-weight: 700; color: var(--color-text); }
.platform-table a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }

/* 资讯卡片 */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.news-card { padding: 24px; background: #fff; border: 1px solid rgba(32,21,35,0.08); }
.news-card time { font-size: 0.8rem; font-weight: 600; color: rgba(32,21,35,0.5); display: block; margin-bottom: 8px; }
.news-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.news-card p { font-size: 0.95rem; color: rgba(32,21,35,0.8); margin: 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item summary {
  padding: 16px; background: rgba(255,255,255,0.05); cursor: pointer; font-weight: 600; font-size: 1rem;
  border: 1px solid rgba(246,243,247,0.1); list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: rgba(255,255,255,0.08); }
.faq-item .answer { padding: 16px; font-size: 0.95rem; line-height: 1.65; opacity: 0.9; }

/* SVG 响应式 */
.svg-responsive { width: 100%; height: auto; max-width: 100%; display: block; }

/* SVG 动效关键帧 */
@keyframes dash-flow {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes slide-in-right {
  0% { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.flow-line {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: dash-flow 4s linear infinite;
}
.float-element {
  animation: float-up 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.breath-dot {
  animation: breathe 2.5s ease-in-out infinite;
}
.slide-panel {
  animation: slide-in-right 6s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
