/* ===== 灵境 官网 Design System ===== */
:root {
  --accent: #b8864e;
  --accent-light: #d4a574;
  --accent-dark: #9a7040;
  --accent-surface: rgba(184, 134, 78, 0.1);
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #f5f5f5;
  --text-secondary: #999999;
  --text-muted: #666666;
  --border-color: #2a2a2a;
  --font-body: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-display: "Georgia", "PingFang SC", serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: all 0.3s var(--ease-smooth); }
.nav.scrolled { background: rgba(10,10,10,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--text-primary); }
.nav-logo-icon { font-size: 28px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { color: var(--text-secondary); font-size: 15px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s var(--ease-smooth); }
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: all 0.2s; }
.nav-cta:hover { background: var(--accent-light); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: all 0.3s var(--ease-smooth); border-radius: 1px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 120px 24px 80px; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-glow { position: absolute; top: 50%; left: 50%; width: 600px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(184,134,78,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-particle { position: absolute; border-radius: 50%; background: var(--accent); opacity: 0.3; animation: float 6s ease-in-out infinite; }
.hero-content { position: relative; text-align: center; max-width: 800px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-surface); border: 1px solid rgba(184,134,78,0.2); color: var(--accent); padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.hero-title { font-family: var(--font-display); font-size: clamp(40px, 8vw, 72px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero-title-accent { background: linear-gradient(135deg, var(--accent), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(18px, 3vw, 24px); color: var(--text-secondary); margin-bottom: 16px; }
.hero-subtitle-em { color: var(--accent); font-weight: 600; }
.hero-desc { font-size: 16px; color: var(--text-muted); max-width: 600px; margin: 0 auto 36px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 10px; font-size: 16px; font-weight: 600; transition: all 0.2s var(--ease-smooth); cursor: pointer; border: none; }
.btn-icon { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,134,78,0.3); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 18px; }

/* ===== Sections ===== */
.section { padding: 100px 24px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 16px; }
.section-desc { color: var(--text-secondary); font-size: 17px; max-width: 600px; margin: 0 auto; }
.accent { color: var(--accent); }

/* ===== Features ===== */
.features { background: var(--bg-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; max-width: var(--max-width); margin: 0 auto; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 36px; transition: all 0.3s var(--ease-smooth); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity 0.3s; }
.feature-card:hover { background: var(--bg-card-hover); border-color: var(--accent); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 40px; margin-bottom: 20px; }
.feature-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-desc { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ===== How it Works ===== */
.steps { max-width: 800px; margin: 0 auto; }
.step { display: flex; gap: 24px; margin-bottom: 48px; position: relative; }
.step:not(:last-child)::before { content: ''; position: absolute; left: 23px; top: 56px; bottom: -24px; width: 2px; background: var(--border-color); }
.step-number { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-surface); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: var(--accent); }
.step-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step-content p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ===== Download ===== */
.download { background: var(--bg-primary); }
.download-card { max-width: 500px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 48px; text-align: center; }
.download-version { margin-bottom: 20px; }
.version-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-surface); border: 1px solid rgba(184,134,78,0.2); padding: 8px 20px; border-radius: 100px; }
.version-label { color: var(--text-secondary); font-size: 14px; }
.version-number { color: var(--accent); font-size: 16px; font-weight: 700; }
.download-meta { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; }
.meta-item { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 14px; }
.download-changelog { text-align: left; background: var(--bg-secondary); border-radius: 12px; padding: 20px 24px; margin-bottom: 28px; }
.download-changelog li { color: var(--text-secondary); font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border-color); list-style: none; }
.download-changelog li::before { content: '✓ '; color: var(--accent); }
.download-changelog li:last-child { border-bottom: none; }
.btn-download { width: 100%; justify-content: center; padding: 18px 24px; }
.btn-sub { display: block; font-size: 12px; font-weight: 400; opacity: 0.8; margin-top: 2px; }
.download-note { color: var(--text-muted); font-size: 13px; margin-top: 12px; }
.download-tips { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.tip-item { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 14px; }
.tip-icon { font-size: 16px; }

/* ===== CTA ===== */
.cta { text-align: center; padding: 100px 24px; background: var(--bg-secondary); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; top: 50%; left: 50%; width: 400px; height: 400px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(184,134,78,0.06) 0%, transparent 70%); pointer-events: none; }
.cta-content { position: relative; }
.cta-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: 16px; }
.cta-desc { color: var(--text-secondary); font-size: 17px; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
.footer { padding: 48px 24px; border-top: 1px solid var(--border-color); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { font-size: 18px; font-weight: 700; }
.footer-tagline { color: var(--text-muted); font-size: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-link { color: var(--text-secondary); font-size: 14px; }
.footer-link:hover { color: var(--accent); }
.footer-copy { width: 100%; text-align: center; color: var(--text-muted); font-size: 13px; padding-top: 24px; border-top: 1px solid var(--border-color); margin-top: 16px; }

/* ===== Animations ===== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s var(--ease-smooth); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,10,10,0.98); flex-direction: column; justify-content: center; gap: 24px; }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 20px; }
  .nav-toggle { display: flex; z-index: 1001; }
  .features-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 12px; }
  .step:not(:last-child)::before { left: 23px; top: 50px; bottom: -12px; }
  .download-card { padding: 32px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .mobile-break { display: block; }
}
@media (min-width: 769px) { .mobile-break { display: none; } }
