:root {
  /* 品牌色板 */
  --color-deep: #19102D;
  --color-paper: #FCFCFD;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #D66EED;
  
  /* 结构性设计 Token */
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 0;
  --card-shadow: none;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.65;
  background-color: var(--color-paper);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }

/* 容器 */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(252, 252, 253, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(25, 21, 35, 0.1);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text);
}

.brand img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

.nav-link[aria-current="page"] {
  color: var(--color-brand);
}

.nav-link:hover {
  color: var(--color-brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
}

.btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-deep);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn-outline:hover {
  background-color: rgba(25, 21, 35, 0.05);
}

/* 眉标 */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 16px;
  display: block;
}

/* 标题 */
h1, h2, h3, h4 {
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 24px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 32px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

p {
  margin-bottom: 16px;
  max-width: 38em;
}

.hl {
  color: var(--color-brand);
}

/* Hero 区域 */
.hero-section {
  background-color: var(--color-deep);
  padding: var(--section-y) 0;
  color: var(--color-paper);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content .section-label {
  color: var(--color-accent);
}

.hero-content h1 .hl {
  color: var(--color-accent);
}

.hero-content p {
  color: var(--color-paper);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-facts {
  display: flex;
  gap: 24px;
  font-size: 0.875rem;
  color: rgba(252, 252, 253, 0.7);
}

.hero-svg-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-svg {
  width: 100%;
  height: 100%;
  max-width: 600px;
}

/* 通用区块 */
.section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid rgba(25, 21, 35, 0.1);
}

.section:last-child {
  border-bottom: none;
}

.section-dark {
  background-color: var(--color-deep);
  color: var(--color-paper);
  border-bottom: none;
}

.section-dark .section-label {
  color: var(--color-accent);
}

.section-dark h2, .section-dark h3 {
  color: var(--color-paper);
}

.section-dark p {
  color: var(--color-paper);
}

.section-dark .hl {
  color: var(--color-accent);
}

/* 快速开始：横向步骤条 */
.steps-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
}

.step-item {
  flex: 0 0 280px;
  background-color: rgba(25, 21, 35, 0.03);
  border: 1px solid rgba(25, 21, 35, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--color-accent);
  color: var(--color-deep);
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.step-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 核心功能：两栏列表 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  border: 1px solid rgba(25, 21, 35, 0.1);
  padding: 24px;
  background-color: var(--color-paper);
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--color-brand);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--color-brand);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.feature-card ul {
  padding-left: 16px;
}

.feature-card li {
  position: relative;
  padding-left: 12px;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: rgba(25, 21, 35, 0.8);
}

.feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  background-color: var(--color-brand);
}

/* 进阶技巧：编号小贴士 */
.tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tip-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tip-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-brand);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
}

.tip-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
}

.tip-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: rgba(25, 21, 35, 0.8);
}

/* 深度专题 */
.deep-dive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.deep-dive-item h3 {
  font-size: 1.125rem;
  color: var(--color-brand);
  margin-bottom: 12px;
}

.deep-dive-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 使用场景 */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.scenario-card {
  border: 1px solid rgba(25, 21, 35, 0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scenario-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 8px;
}

.scenario-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenario-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(25, 21, 35, 0.5);
}

.scenario-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 版本与平台表格 */
.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.platform-table th,
.platform-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(25, 21, 35, 0.1);
}

.platform-table th {
  font-weight: 700;
  color: var(--color-text);
  background-color: rgba(25, 21, 35, 0.03);
}

.platform-table td {
  color: rgba(25, 21, 35, 0.8);
}

.platform-table tr:last-child td {
  border-bottom: none;
}

/* 资讯卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  border: 1px solid rgba(25, 21, 35, 0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--color-paper);
  transition: border-color 0.2s ease;
}

.news-card:hover {
  border-color: var(--color-brand);
}

.news-date {
  font-size: 0.8rem;
  color: rgba(25, 21, 35, 0.5);
  font-weight: 500;
}

.news-card h3 {
  font-size: 1.1rem;
  line-height: 1.4;
}

.news-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: rgba(25, 21, 35, 0.8);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

details {
  border: 1px solid rgba(25, 21, 35, 0.1);
  padding: 16px 24px;
  background-color: var(--color-paper);
  transition: border-color 0.2s ease;
}

details[open] {
  border-color: var(--color-brand);
}

summary {
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-brand);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(25, 21, 35, 0.8);
}

/* 页脚 */
.site-footer {
  background-color: var(--color-deep);
  color: var(--color-paper);
  padding: 48px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-paper);
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(252, 252, 253, 0.7);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--color-paper);
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(252, 252, 253, 0.5);
}

/* SVG 动效类 */
@keyframes float-bubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes breathe-ring {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes dash-flow {
  to { stroke-dashoffset: -10; }
}

.bubble-anim {
  animation: float-bubble 4s ease-in-out infinite;
}

.ring-anim {
  animation: breathe-ring 6s ease-in-out infinite;
}

.dash-flow {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: dash-flow 3s linear infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-svg-container {
    order: -1;
    aspect-ratio: 16 / 9;
  }
  
  .steps-strip {
    flex-direction: column;
  }
  
  .step-item {
    flex: 1 1 auto;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .header-actions {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .bubble-anim,
  .ring-anim,
  .dash-flow {
    animation: none !important;
  }
}
