/* ============================================
   星核引导页 - 官网共用样式
   StarCore Guide Page - Official Website Styles
   ============================================ */

/* ---------- CSS 变量（深色模式 - 默认） ---------- */
:root {
  /* 主色调 */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f35;
  --bg-card-hover: #222845;
  --bg-nav: rgba(10, 14, 26, 0.85);
  --bg-code: #0d1117;
  --bg-footer: #070a12;

  /* 文字颜色 */
  --text-primary: #e8ecf4;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* 强调色 */
  --accent-cyan: #00d4aa;
  --accent-purple: #7c5cfc;
  --accent-gradient: linear-gradient(135deg, #00d4aa, #7c5cfc);

  /* 边框 */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 170, 0.3);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 212, 170, 0.15);

  /* 其他 */
  --nav-height: 70px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- 浅色模式变量 ---------- */
[data-theme="light"] {
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fb;
  --bg-nav: rgba(255, 255, 255, 0.88);
  --bg-code: #f6f8fa;
  --bg-footer: #e5e7eb;

  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 212, 170, 0.4);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 212, 170, 0.1);
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-purple);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo i {
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 日夜模式切换按钮 */
.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  transform: rotate(30deg);
}

.github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all var(--transition);
}

.github-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Banner ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transition: opacity var(--transition-slow);
}

[data-theme="light"] .hero-bg img {
  opacity: 0.15;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    rgba(10, 14, 26, 0.6) 50%,
    var(--bg-primary) 100%
  );
}

[data-theme="light"] .hero-bg::after {
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    rgba(240, 242, 245, 0.6) 50%,
    var(--bg-primary) 100%
  );
}

/* 星空粒子画布 */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 50px;
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge i {
  font-size: 0.8rem;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 按钮样式 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 212, 170, 0.4);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.btn-ghost:hover {
  background: rgba(0, 212, 170, 0.1);
  transform: translateY(-2px);
  color: var(--accent-cyan);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* ---------- 卡片组件 ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 170, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.card-icon.purple {
  background: rgba(124, 92, 252, 0.1);
  color: var(--accent-purple);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- 功能亮点网格 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---------- 技术栈展示 ---------- */
.tech-stack {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition);
}

.tech-item:hover {
  transform: translateY(-4px);
}

.tech-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all var(--transition);
}

.tech-item:hover .tech-icon {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.tech-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---------- 代码块 ---------- */
.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.code-dots {
  display: flex;
  gap: 8px;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) {
  background: #ff5f57;
}

.code-dots span:nth-child(2) {
  background: #ffbd2e;
}

.code-dots span:nth-child(3) {
  background: #28c840;
}

.code-lang {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.code-copy {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}

.code-copy:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.code-body {
  padding: 24px;
  overflow-x: auto;
}

.code-body pre {
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-primary);
}

/* 语法高亮 */
.code-body .keyword {
  color: #c678dd;
}

.code-body .string {
  color: #98c379;
}

.code-body .comment {
  color: #5c6370;
  font-style: italic;
}

.code-body .variable {
  color: #e06c75;
}

.code-body .function {
  color: #61afef;
}

.code-body .tag {
  color: #e06c75;
}

.code-body .attr {
  color: #d19a66;
}

.code-body .number {
  color: #d19a66;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* ============================================
   页面2: 功能特性页
   ============================================ */

/* 页面头部（非首页） */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* 功能详细列表 - 交替布局 */
.feature-detail {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.feature-detail:last-child {
  border-bottom: none;
}

.feature-detail.reverse {
  flex-direction: row-reverse;
}

.feature-detail-visual {
  flex: 1;
  min-height: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent-cyan);
  position: relative;
  overflow: hidden;
}

.feature-detail-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.05), rgba(124, 92, 252, 0.05));
}

.feature-detail-visual.purple-icon {
  color: var(--accent-purple);
}

.feature-detail-info {
  flex: 1;
}

.feature-detail-info .feature-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent-cyan);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-detail-info .feature-tag.purple {
  background: rgba(124, 92, 252, 0.1);
  color: var(--accent-purple);
}

.feature-detail-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.feature-detail-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-detail-info ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-detail-info ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-detail-info ul li i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

/* ============================================
   页面3: 部署文档页
   ============================================ */

/* 环境要求卡片 */
.requirements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.requirement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}

.requirement-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.requirement-card i {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.requirement-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.requirement-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 安装步骤 */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: var(--border-hover);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.step-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 目录结构 */
.directory-tree {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  max-width: 600px;
  margin: 0 auto;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.9rem;
  line-height: 2;
}

.directory-tree .dir {
  color: var(--accent-cyan);
  font-weight: 600;
}

.directory-tree .file {
  color: var(--text-secondary);
}

.directory-tree .comment {
  color: var(--text-muted);
  font-style: italic;
}

/* 配置说明表格 */
.config-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.config-table thead {
  background: rgba(0, 212, 170, 0.08);
}

.config-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-color);
}

.config-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.config-table tr:last-child td {
  border-bottom: none;
}

.config-table tr:hover td {
  background: rgba(0, 212, 170, 0.03);
}

.config-table code {
  background: var(--bg-code);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

/* FAQ 手风琴 */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-question i {
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ============================================
   页面4: 下载页
   ============================================ */

/* 版本信息卡片 */
.version-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
  overflow: hidden;
}

.version-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.version-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent-cyan);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.version-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.version-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.version-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.version-meta-item i {
  color: var(--accent-cyan);
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* 更新日志时间线 */
.changelog {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.changelog::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.changelog-item {
  position: relative;
  padding-bottom: 40px;
}

.changelog-item:last-child {
  padding-bottom: 0;
}

.changelog-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.4);
}

.changelog-item.old::before {
  background: var(--text-muted);
  box-shadow: none;
}

.changelog-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.changelog-item h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.changelog-item ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-item ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.changelog-item ul li i {
  color: var(--accent-cyan);
  margin-top: 5px;
  flex-shrink: 0;
}

/* 历史版本列表 */
.old-versions {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.old-version-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all var(--transition);
}

.old-version-item:hover {
  border-color: var(--border-hover);
}

.old-version-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.old-version-info .version-tag {
  padding: 4px 12px;
  background: rgba(124, 92, 252, 0.1);
  color: var(--accent-purple);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.old-version-info .version-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.old-version-item .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* ============================================
   动画
   ============================================ */

/* 滚动渐入动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟类 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Hero 动画 */
.hero-content .hero-badge {
  animation: fadeInDown 0.8s ease forwards;
}

.hero-content .hero-title {
  animation: fadeInDown 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-content .hero-subtitle {
  animation: fadeInDown 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-content .hero-buttons {
  animation: fadeInDown 0.8s ease 0.6s forwards;
  opacity: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 170, 0.4);
  }
}

/* ============================================
   响应式设计
   ============================================ */

/* 平板端 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-detail,
  .feature-detail.reverse {
    flex-direction: column;
    gap: 32px;
  }

  .feature-detail-visual {
    min-height: 200px;
  }

  .requirements {
    grid-template-columns: 1fr;
  }

  .tech-stack {
    gap: 24px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .version-card {
    padding: 32px 24px;
  }

  .version-meta {
    flex-direction: column;
    gap: 12px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* 手机端 */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .card {
    padding: 24px;
  }

  .step-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .config-table {
    font-size: 0.8rem;
  }

  .config-table th,
  .config-table td {
    padding: 10px 12px;
  }

  .old-version-item {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
