/* === 设计变量 === */
:root {
  --color-bg-deep: #0b0914;
  --color-bg-surface: #141020;
  --color-bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-hover: rgba(255, 255, 255, 0.22);
  --color-purple: #7b2cbf;
  --color-pink: #ff006e;
  --color-accent: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  --color-text-primary: #f2f0f5;
  --color-text-secondary: #a8a5b0;
  --color-text-muted: #6e6b76;
  --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --radius-md: 16px;
  --radius-lg: 24px;
  --space-section: clamp(4rem, 8vw, 8rem);
  --container-width: 1180px;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.35);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 基础重置与排版 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-deep);
  color: var(--color-text-primary);
  line-height: 1.75;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 600; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; margin-bottom: 0.75rem; }
p { color: var(--color-text-secondary); margin-bottom: 1rem; }
.container { width: 92%; max-width: var(--container-width); margin: 0 auto; }
.section { padding: var(--space-section) 0; position: relative; }
.section-alt { background-color: var(--color-bg-surface); }
.grid-auto { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* === 页头与导航 === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 9, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-list { display: flex; gap: 1.5rem; }
.nav-link {
  padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.95rem;
  transition: background var(--transition-base), color var(--transition-base);
}
.nav-link:hover, .nav-link[aria-current="page"] { background: rgba(255,255,255,0.08); color: #fff; }
.nav-link[aria-current="page"] { color: var(--color-pink); font-weight: 500; }
.mobile-menu-btn { display: none; background: none; border: none; color: inherit; cursor: pointer; }

/* === 组件：按钮 === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: 12px; font-weight: 500; font-size: 1rem;
  cursor: pointer; transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  border: none; outline: none;
}
.btn:focus-visible { outline: 2px solid var(--color-pink); outline-offset: 3px; }
.btn-primary {
  background: var(--color-accent); color: #fff; box-shadow: 0 4px 16px rgba(123, 44, 191, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 0, 110, 0.3); }
.btn-outline {
  background: transparent; border: 1.5px solid var(--border-glass); color: var(--color-text-primary);
}
.btn-outline:hover { border-color: var(--color-purple); background: rgba(123,44,191,0.15); }
.btn-download { width: 100%; padding: 1rem; font-size: 1.1rem; }

/* === 组件：卡片与玻璃拟态 === */
.card {
  background: var(--color-bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { border-color: var(--border-glass-hover); transform: translateY(-4px); box-shadow: var(--shadow-glass); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--color-pink); stroke-width: 1.8; fill: none; }
.feature-card p { font-size: 0.95rem; margin-top: 0.5rem; line-height: 1.7; }

/* === 组件：表格 === */
.data-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border-glass); text-align: left; }
.data-table th { color: var(--color-text-primary); font-weight: 500; background: rgba(255,255,255,0.03); }
.data-table td { color: var(--color-text-secondary); }
.data-table tr:last-child td { border-bottom: none; }

/* === 组件：FAQ (Details/Summary) === */
.faq-item { margin-bottom: 1rem; border: 1px solid var(--border-glass); border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg-glass); }
.faq-summary {
  padding: 1.1rem 1.4rem; cursor: pointer; font-weight: 500; color: var(--color-text-primary);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  transition: background var(--transition-base);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: ""; width: 12px; height: 12px; border-right: 2px solid var(--color-pink); border-bottom: 2px solid var(--color-pink);
  transform: rotate(45deg); transition: transform var(--transition-base); flex-shrink: 0; margin-left: 1rem;
}
.faq-item[open] .faq-summary::after { transform: rotate(-135deg); margin-top: 0.2rem; }
.faq-summary:hover { background: rgba(255,255,255,0.04); }
.faq-content { padding: 0 1.4rem 1.2rem; color: var(--color-text-secondary); line-height: 1.7; }

/* === 组件：新闻卡片 === */
.news-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.news-card { display: flex; flex-direction: column; justify-content: space-between; }
.news-date { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.news-excerpt { font-size: 0.95rem; line-height: 1.6; flex-grow: 1; margin-bottom: 1rem; }
.link-btn { align-self: flex-start; font-size: 0.9rem; color: var(--color-purple); font-weight: 500; position: relative; }
.link-btn::after { content: "→"; margin-left: 0.4rem; transition: transform var(--transition-base); }
.link-btn:hover::after { transform: translateX(4px); }

/* === 组件：相关链接 === */
.related-list { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.related-item {
  padding: 0.6rem 1rem; background: var(--color-bg-glass); border: 1px solid var(--border-glass);
  border-radius: 10px; font-size: 0.9rem; transition: background var(--transition-base);
}
.related-item:hover { background: rgba(123,44,191,0.12); border-color: var(--color-purple); }

/* === SVG 动效系统 === */
.svg-anim-group { transform-box: fill-box; transform-origin: center; }
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.animate-draw { animation: draw-line 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-draw-delay { animation: draw-line 3.5s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards; }
.animate-draw-delay-2 { animation: draw-line 3.5s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards; }
.animate-breathe { animation: breathe 5s ease-in-out infinite; }
@keyframes draw-line { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes breathe { 0%, 100% { opacity: 0.88; transform: scale(1); } 50% { opacity: 1; transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) {
  .animate-draw, .animate-draw-delay, .animate-draw-delay-2, .animate-breathe { animation: none !important; }
}

/* === 页脚 === */
.site-footer {
  padding: 3rem 0 2rem; border-top: 1px solid var(--border-glass); background: var(--color-bg-surface);
  font-size: 0.9rem; color: var(--color-text-muted);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-copyright { margin-top: 1rem; font-size: 0.85rem; }

/* === 响应式 === */
@media (max-width: 768px) {
  .nav-list { display: none; }
  .mobile-menu-btn { display: block; }
  .grid-auto { grid-template-columns: 1fr; }
  .hero-layout { flex-direction: column; text-align: center; }
  .hero-visual { margin-top: 2rem; }
  .table-wrapper { overflow-x: auto; }
  h1 { font-size: 2rem; }
}
.hero-layout { display: flex; align-items: center; gap: 2.5rem; }
.hero-content { flex: 1; }
.hero-visual { flex: 1; min-width: 280px; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.accent-bar { height: 4px; width: 60px; background: var(--color-accent); border-radius: 2px; margin-bottom: 1rem; }
