/* ═══════════════════════════════════════════════════════════
   DreamAI Auto — Official Website
   Dark minimal style inspired by HappyHorse AI
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #08080d;
  --bg-card: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.07);
  --text: #e8e8ec;
  --text-dim: #8b8b97;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-glow: rgba(124,58,237,0.25);
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Inter', 'Noto Sans SC', -apple-system, 'Segoe UI', sans-serif;
  --max-w: 1140px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: scroll;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ═══ Navbar ═══ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8,8,13,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  z-index: 2;
  cursor: pointer;
}
.nav-logo img { width: 30px; height: 30px; border-radius: 8px; }

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-center a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color var(--transition);
  cursor: pointer;
}
.nav-center a:hover { color: var(--text); }
.nav-center a.active { color: var(--accent-light); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: background var(--transition);
  cursor: pointer;
}
.nav-cta:hover { background: #6d28d9; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 28px 20px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.nav-mobile a:last-child { border: none; }
.nav-mobile.open { display: flex; }

@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; }
  .nav-center { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .hero-content { padding: 108px 20px 64px; }
  .hero-scroll { bottom: 8px; }
  .hero-badge {
    max-width: min(100%, 320px);
    padding: 10px 16px;
    border-radius: 22px;
    font-size: 12px;
  }
  .hero-badge-text {
    text-align: center;
    letter-spacing: 0.01em;
  }
  .hero-line {
    font-size: clamp(44px, 16vw, 72px);
    line-height: 0.98;
  }
  .hero-line--sub {
    font-size: clamp(20px, 5.8vw, 28px);
    margin-top: 12px;
  }
  .hero-desc {
    font-size: 15px;
    line-height: 1.8;
  }
}

@media (max-width: 480px) {
  .nav-inner { height: 60px; }
  .nav-logo img {
    width: 28px;
    height: 28px;
  }
  .hero-badge {
    max-width: min(100%, 300px);
    gap: 6px;
  }
  .hero-badge-text { font-size: 11.5px; }
}

/* ═══ Hero ═══ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, var(--bg) 0%, transparent 25%, transparent 55%, var(--bg) 95%),
    radial-gradient(ellipse at 50% 40%, rgba(124,58,237,0.1) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 960px;
  padding: 120px 28px 80px;
}

/* ─── Hero Badge ─── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.04);
  max-width: min(100%, 560px);
  justify-content: center;
}
.hero-badge-text {
  display: block;
  line-height: 1.5;
  text-wrap: balance;
  word-break: keep-all;
}
.hero-badge--accent {
  margin-top: 12px;
  border-color: rgba(255, 200, 87, 0.45);
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.18), rgba(124, 58, 237, 0.18));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 24px rgba(255, 200, 87, 0.18);
}
.hero-badge--accent .hero-badge-text {
  background: linear-gradient(135deg, #ffd47a 0%, #ffffff 60%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-badge-icon {
  font-size: 14px;
  line-height: 1;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-line {
  display: block;
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-line--sub {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 400;
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
  background: none;
  margin-top: 14px;
  letter-spacing: 0.02em;
}

.hero-desc {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition);
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-primary:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-dim);
  border-radius: 12px;
  font-size: 15px;
  transition: all var(--transition);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* ─── Hero Preview Video Card ─── */
.hero-preview {
  margin-top: 32px;
  display: none;
  justify-content: center;
}
.hero-preview-card {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(124,58,237,0.3);
  background: #0d0d14;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.15),
    0 8px 40px rgba(0,0,0,0.5),
    0 0 80px rgba(124,58,237,0.08);
  cursor: pointer;
  transition: all var(--transition);
}
.hero-preview-card:hover {
  border-color: rgba(124,58,237,0.5);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.25),
    0 12px 50px rgba(0,0,0,0.6),
    0 0 100px rgba(124,58,237,0.12);
}
.hero-preview-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-preview-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background var(--transition);
}
.hero-preview-card:hover .hero-preview-play {
  background: rgba(0,0,0,0.2);
}
.hero-preview-play svg {
  width: 56px;
  height: 56px;
  color: #fff;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
  transition: transform var(--transition);
}
.hero-preview-card:hover .hero-preview-play svg {
  transform: scale(1.1);
}
.hero-preview-label {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}
.hero-preview-card.playing .hero-preview-play {
  opacity: 0;
  pointer-events: none;
}
.hero-preview-card.playing .hero-preview-label {
  opacity: 0;
}

@media (max-width: 640px) {
  .hero-preview-card { max-width: 100%; }
  .hero-preview-play svg { width: 40px; height: 40px; }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.scroll-line span {
  display: block;
  width: 100%;
  height: 16px;
  background: var(--accent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-16px); }
  100% { transform: translateY(48px); }
}

/* ═══ Stats ═══ */
#stats {
  padding: 48px 28px;
  border-bottom: 1px solid var(--border);
}
.stats-row {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { position: relative; }
.stat-num {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-suffix {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-light);
}
.stat p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ Sections Common ═══ */
.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 28px;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent-light);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-head p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-dim);
}

/* ═══ Features ═══ */
#features {
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.feat-card:hover {
  border-color: rgba(124,58,237,0.3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(124,58,237,0.12), 0 4px 12px rgba(0,0,0,0.3);
}
.feat-card:hover .feat-icon {
  transform: translateY(-4px) scale(1.1);
}

.feat-card--accent {
  border-color: rgba(124,58,237,0.2);
  background: rgba(124,58,237,0.04);
}
.feat-card--accent:hover {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.08);
  box-shadow: 0 12px 40px rgba(124,58,237,0.2), 0 4px 12px rgba(0,0,0,0.3);
}

.feat-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(124,58,237,0.2);
  color: var(--accent-light);
}

.feat-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--accent-light);
}
.feat-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feat-icon svg { width: 100%; height: 100%; }

.feat-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feat-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feat-tags span {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.feat-extras {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.feat-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.feat-extra svg { width: 18px; height: 18px; color: var(--accent-light); flex-shrink: 0; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ═══ Video Gallery ═══ */
#gallery {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(124,58,237,0.02) 50%, var(--bg) 100%);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.gallery-grid.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}
.gallery-grid.expanded {
  max-height: none;
}
.gallery-expand-btn {
  display: none;
  margin: 24px auto 0;
  padding: 10px 32px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.gallery-expand-btn:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: #111;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.gallery-item:hover {
  border-color: rgba(255,255,255,0.15);
  transform: scale(1.02);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.gallery-item video,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.gallery-item:hover video,
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .play-overlay { opacity: 1; }

.play-overlay svg {
  width: 56px;
  height: 56px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.gallery-item .gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.gallery-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.gallery-info p {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.gallery-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
  font-size: 15px;
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ═══ Platforms ═══ */
#platforms {
  border-top: 1px solid var(--border);
}

.platforms-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .platforms-row { grid-template-columns: repeat(2, 1fr); }
}

.plat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.plat-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(124,58,237,0.08);
}
.plat-card:hover .plat-icon {
  transform: translateY(-4px) scale(1.15);
}

.plat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  color: var(--c, var(--accent-light));
}
.plat-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.plat-icon svg { width: 100%; height: 100%; }

.plat-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }

.plat-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 11px;
  background: rgba(34,197,94,0.12);
  color: #4ade80;
  margin-bottom: 12px;
}
.plat-badge--new {
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
  font-weight: 600;
}

.plat-card p { font-size: 13px; color: var(--text-dim); }

@media (max-width: 700px) {
  .platforms-row { grid-template-columns: 1fr; }
}

/* ═══ How to Start ═══ */
#howto {
  border-top: 1px solid var(--border);
}

.howto-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.howto-step {
  flex: 0 0 200px;
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.howto-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-glow);
}

.howto-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent-light);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.howto-icon svg { width: 100%; height: 100%; }
.howto-step:hover .howto-icon {
  transform: translateY(-6px) scale(1.15);
}

.howto-step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.howto-step p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

.howto-line {
  flex: 0 0 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(124,58,237,0.2));
  margin-top: 52px;
  border-radius: 1px;
}

.howto-tip {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--accent-light);
  opacity: 0.8;
}

.howto-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding: 14px 24px;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dim);
}
.howto-note svg {
  flex-shrink: 0;
  color: var(--accent-light);
}

@media (max-width: 700px) {
  .howto-steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .howto-line {
    width: 2px;
    height: 32px;
    flex: 0 0 32px;
    background: linear-gradient(180deg, var(--accent), rgba(124,58,237,0.2));
    margin-top: 0;
  }
  .howto-step { flex: none; }
}

/* ═══ Download CTA ═══ */
#download {
  border-top: 1px solid var(--border);
}

.download-wrap {
  position: relative;
  text-align: center;
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 18px;
}

.download-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}
.download-content > p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  font-weight: 700;
  font-size: 17px;
  transition: all var(--transition);
  box-shadow: 0 0 40px var(--accent-glow);
}
.btn-download:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 0 60px var(--accent-glow);
}

.download-meta {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0.7;
}

.btn-primary-wrap {
  position: relative;
  display: inline-block;
}

.version-badge {
  display: none;
  position: absolute;
  top: -10px;
  right: -14px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #e0d4ff;
  background: rgba(124, 58, 237, 0.65);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  pointer-events: none;
}

.download-hint {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ═══ Footer ═══ */
#footer {
  border-top: 1px solid var(--border);
  padding: 24px 28px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.footer-center {
  justify-self: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  justify-self: start;
}
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }

.footer-copy-text {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-self: end;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color var(--transition);
  cursor: pointer;
}
.footer-links a:hover { color: var(--text); }

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.4;
  margin-top: 2px;
}

@media (max-width: 700px) {
  .footer-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .footer-brand,
  .footer-center,
  .footer-links {
    justify-self: center;
  }
}

/* ═══ Lightbox ═══ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  outline: none;
}

.lightbox-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  cursor: pointer;
  border-radius: 12px;
  z-index: 5;
}
.lightbox-play-btn svg {
  width: 72px;
  height: 72px;
  color: #fff;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
}

/* ═══ Announcement Notification Bar ═══ */
.announcement-bar {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: linear-gradient(90deg, rgba(124,58,237,0.15), rgba(124,58,237,0.08));
  border-bottom: 1px solid rgba(124,58,237,0.2);
  backdrop-filter: blur(12px);
  animation: slideDown 0.4s ease-out;
  cursor: pointer;
}
.announcement-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.announcement-bar-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.announcement-bar-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.announcement-bar-text .ann-title { font-weight: 500; }
.announcement-bar-text .ann-time {
  margin-left: 10px;
  color: var(--text-dim);
  font-size: 0.78rem;
}
.announcement-bar-link {
  flex-shrink: 0;
  color: var(--accent-light);
  font-size: 0.78rem;
  white-space: nowrap;
}
.announcement-bar-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color var(--transition);
}
.announcement-bar-close:hover { color: var(--text); }

/* 公告类型边框颜色 */
.announcement-bar.type-info { border-left: 3px solid #7c3aed; }
.announcement-bar.type-warning { border-left: 3px solid #f59e0b; }
.announcement-bar.type-success { border-left: 3px solid #10b981; }
.announcement-bar.type-error { border-left: 3px solid #ef4444; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-100%); }
}

@media (max-width: 768px) {
  .announcement-bar-inner { padding: 8px 16px; font-size: 0.8rem; }
  .announcement-bar-text .ann-time { display: none; }
  .announcement-bar-link { display: none; }
}
@media (max-width: 480px) {
  .announcement-bar { top: 60px; }
}

/* ═══ Animations ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

/* ═══ Selection ═══ */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ═══ Scrollbar ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
