﻿/* ========================================
   趣学历史官网 - 设计令牌与全局样式
   深墨 + 赤金 + 玻璃态 + 沉浸式
   ======================================== */

/* 设计令牌 */
:root {
  /* 主色 */
  --gold: #C8972A;
  --gold-light: #E8B84B;
  --gold-pale: #F5D98A;
  --red: #8B1A1A;
  --red-light: #A52A2A;
  --green: #2A7A5A;
  --green-light: #48BB9A;
  --orange: #FF6B35;

  /* 背景 */
  --bg-deep: #0C0A14;
  --bg-surface: #13111C;
  --bg-elevated: #1A1726;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);

  /* 文本 */
  --text-primary: #F0E6C8;
  --text-secondary: rgba(240, 230, 200, 0.65);
  --text-muted: rgba(240, 230, 200, 0.38);
  --text-gold: #E8B84B;

  /* 边框 */
  --border: rgba(200, 151, 42, 0.2);
  --border-hover: rgba(200, 151, 42, 0.4);
  --border-subtle: rgba(240, 230, 200, 0.08);

  /* 渐变 */
  --gradient-gold: linear-gradient(135deg, #C8972A, #E8B84B);
  --gradient-brand: linear-gradient(135deg, #C8972A 0%, #8B1A1A 100%);

  /* 圆角 */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* 阴影 */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(200, 151, 42, 0.15);

  /* 字体 */
  --font-serif: 'Noto Serif SC', serif;
  --font-sans: 'Noto Sans SC', sans-serif;

  /* 间距 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* 基础重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ========================================
   容器
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-lg); }
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(12, 10, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(12, 10, 20, 0.92);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(200, 151, 42, 0.1);
}

.nav-link.active {
  color: var(--gold-light);
}

.nav-cta {
  display: none;
  padding: 8px 24px;
  background: var(--gradient-gold);
  color: #0C0A14;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-cta { display: inline-flex; }
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 151, 42, 0.4);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.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); }

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 96px;
  left: 16px;
  right: 16px;
  z-index: 99;
  background: rgba(12, 10, 20, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all var(--transition-base);
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-link {
  display: block;
  padding: 14px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--text-primary);
  background: rgba(200, 151, 42, 0.1);
}

.mobile-cta {
  display: block;
  margin-top: 8px;
  padding: 14px 20px;
  text-align: center;
  background: var(--gradient-gold);
  color: #0C0A14;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 96px 0 48px;
}

@media (min-width: 768px) {
  .hero {
    padding: 88px 0 56px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow--gold {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: rgba(200, 151, 42, 0.08);
}

.hero-glow--red {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  background: rgba(139, 26, 26, 0.06);
  animation-delay: -4s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.6; transform: translateY(-20px) scale(1); }
  80% { opacity: 0.3; transform: translateY(-80px) scale(0.8); }
  100% { opacity: 0; transform: translateY(-120px) scale(0); }
}

/* Hero 内部布局 */
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-inner {
    gap: var(--space-xl);
  }
}

.hero-content {
  flex: 1;
  min-width: 0;
  max-width: 580px;
}

.hero-phone {
  flex-shrink: 0;
  display: none;
}

@media (min-width: 1024px) {
  .hero-phone { display: block; }
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(200, 151, 42, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.hero-title-line {
  display: block;
  font-size: clamp(36px, 5vw, 56px);
}

.hero-title-accent {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-md);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stat-value {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--gold-light);
}

.hero-stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* 手机 Mockup - 真实截图版 */
.phone-frame {
  width: 280px;
  height: 580px;
  background: var(--bg-surface);
  border-radius: 40px;
  border: 3px solid rgba(200, 151, 42, 0.3);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6),
              0 0 80px rgba(200, 151, 42, 0.1);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: var(--bg-surface);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ========================================
   截图轮播（视口固定 5 张并排居中，横向滑动切换）
   ======================================== */
.screenshots {
  padding: var(--space-lg) 0 var(--space-md);
  position: relative;
  overflow: hidden;
}

.screenshots .section-header {
  margin-bottom: var(--space-lg);
}

.screenshots-viewport {
  width: 100%;
  max-width: 1088px;
  margin-inline: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.screenshots-viewport::-webkit-scrollbar {
  display: none;
}

.screenshots-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: var(--space-sm) 0;
  width: max-content;
}

.screenshot-item {
  flex-shrink: 0;
  box-sizing: border-box;
  scroll-snap-align: center;
  cursor: pointer;
  transition: transform var(--transition-slow), opacity var(--transition-base);
  opacity: 0.55;
}

.screenshot-item.is-active {
  opacity: 1;
}

.screenshot-item:hover {
  transform: translateY(-6px);
  opacity: 1;
}

.screenshot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.screenshot-item.is-active img {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(200, 151, 42, 0.15);
}

.screenshot-item:hover img {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-lg), 0 0 28px rgba(200, 151, 42, 0.12);
}

.screenshot-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.screenshot-item.is-active .screenshot-caption,
.screenshot-item:hover .screenshot-caption {
  color: var(--gold-light);
}

/* 截图导航 */
.screenshots-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: var(--space-sm);
}

.screenshots-nav-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.screenshots-nav-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: scale(1.08);
}

.screenshots-nav-btn:active {
  transform: scale(0.95);
}

.screenshots-dots {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  row-gap: 8px;
  min-height: 12px;
  max-width: min(420px, 85vw);
  padding: 0 8px;
}

.screenshots-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 50%;
  background: rgba(240, 230, 200, 0.22);
  border: 1px solid rgba(200, 151, 42, 0.25);
  transition: background var(--transition-fast), border-color var(--transition-fast), width var(--transition-fast), border-radius var(--transition-fast);
  cursor: pointer;
  padding: 0;
}

.screenshots-dot:hover {
  background: rgba(200, 151, 42, 0.35);
  border-color: rgba(200, 151, 42, 0.45);
}

.screenshots-dot.active {
  width: 22px;
  height: 8px;
  border-radius: 4px;
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.screenshots-dot:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ========================================
   按钮
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-fast);
}

.btn:active::after {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: var(--gradient-gold);
  color: #0C0A14;
  box-shadow: 0 4px 16px rgba(200, 151, 42, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 151, 42, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(200, 151, 42, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ========================================
   区块通用
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(200, 151, 42, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========================================
   核心功能
   ======================================== */
.features {
  padding: var(--space-lg) 0 var(--space-2xl);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-slow);
  cursor: pointer;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 151, 42, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card--accent {
  border-color: rgba(200, 151, 42, 0.3);
  background: linear-gradient(135deg, rgba(200, 151, 42, 0.06), rgba(139, 26, 26, 0.04));
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 151, 42, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 20px;
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: rgba(200, 151, 42, 0.15);
  transform: scale(1.05);
}

.feature-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 10px;
  background: rgba(200, 151, 42, 0.08);
  border: 1px solid rgba(200, 151, 42, 0.15);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--gold-light);
  transition: all var(--transition-fast);
}

.feature-card:hover .tag {
  background: rgba(200, 151, 42, 0.12);
  border-color: rgba(200, 151, 42, 0.25);
}

/* ========================================
   产品亮点
   ======================================== */
.highlights {
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
}

.highlight-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .highlight-row {
    flex-direction: row;
    gap: var(--space-2xl);
  }
}

.highlight-visual {
  position: relative;
  flex-shrink: 0;
}

.highlight-phone {
  width: 280px;
  height: 560px;
  background: var(--bg-surface);
  border-radius: 36px;
  border: 3px solid rgba(200, 151, 42, 0.3);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(200, 151, 42, 0.08);
}

.highlight-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.highlight-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200, 151, 42, 0.08), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

.highlight-content {
  flex: 1;
  min-width: 0;
}

.highlight-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.highlight-item:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.highlight-item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 151, 42, 0.1);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--gold-light);
  transition: all var(--transition-base);
}

.highlight-item:hover .highlight-item-icon {
  background: rgba(200, 151, 42, 0.15);
  transform: scale(1.05);
}

.highlight-item-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.highlight-item-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   朝代闯关时间轴
   ======================================== */
.dynasty-showcase {
  padding: var(--space-2xl) 0;
}

.dynasty-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.dynasty-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 20px 12px;
  cursor: pointer;
  text-align: center;
}

.dynasty-dot {
  width: 16px;
  height: 16px;
  background: var(--gradient-gold);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(200, 151, 42, 0.4);
  margin-bottom: 16px;
  transition: all var(--transition-base);
  z-index: 1;
}

.dynasty-item:hover .dynasty-dot {
  transform: scale(1.5);
  box-shadow: 0 0 24px rgba(200, 151, 42, 0.6);
}

.dynasty-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  transition: all var(--transition-slow);
  width: 100%;
}

.dynasty-item:hover .dynasty-card {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dynasty-card-era {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dynasty-card-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dynasty-card-levels {
  font-size: 12px;
  color: var(--gold-light);
}

/* ========================================
   数据统计
   ======================================== */
.stats {
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
}

.stats-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stats-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(200, 151, 42, 0.04), transparent 70%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 24px;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.stat-value {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 40px;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   CTA
   ======================================== */
.cta {
  padding: var(--space-lg) 0 var(--space-2xl);
}

.cta-card {
  position: relative;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(135deg, rgba(200, 151, 42, 0.08), rgba(139, 26, 26, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200, 151, 42, 0.1), transparent 70%);
  filter: blur(80px);
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto var(--space-sm);
  position: relative;
  box-shadow: 0 8px 32px rgba(200, 151, 42, 0.2);
  transition: transform var(--transition-base);
}

.cta-card:hover .cta-icon {
  transform: scale(1.05);
}

.cta-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: var(--space-sm);
  position: relative;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-actions {
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-platforms {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  position: relative;
}

.cta-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.cta-platform:hover {
  color: var(--text-secondary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(200px, 1fr) minmax(280px, 1fr);
    gap: var(--space-xl);
    align-items: flex-start;
    justify-content: space-between;
  }
  .footer-grid.footer-grid--links3 {
    grid-template-columns: minmax(180px, 1fr) minmax(140px, auto) minmax(260px, 1fr);
    gap: var(--space-lg);
    justify-content: stretch;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(14px, 2.5vw, 28px);
}

.footer-links > .footer-heading {
  flex: 1 0 100%;
  width: 100%;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom .footer-icp {
  margin-top: 10px;
  margin-bottom: 0;
}

.footer-bottom .footer-icp a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom .footer-icp a:hover {
  color: var(--gold-light);
}

/* ========================================
   简单内容页（帮助、联系、协议）
   ======================================== */
.simple-page-hero {
  padding: 120px 0 var(--space-lg);
  text-align: center;
  position: relative;
}

.simple-page-hero .section-desc {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.simple-page-body {
  padding-bottom: var(--space-xl);
}

.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.help-card h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.help-card p,
.help-card li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.help-card ul {
  margin: var(--space-sm) 0 0;
  padding-left: 1.25rem;
}

.contact-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.contact-panel h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

/* 锚点跳转时不被固定导航遮挡 */
#feedback,
#updates {
  scroll-margin-top: 104px;
}

.contact-panel p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.legal-doc {
  max-width: 720px;
  margin: 0 auto;
}

.legal-doc .legal-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-doc h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: var(--space-sm);
}

.legal-doc ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.35rem;
}

.legal-doc li {
  margin-bottom: 6px;
}

.legal-doc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-doc a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-doc a:hover {
  color: var(--gold-pale);
}

/* ========================================
   Features 页面专用
   ======================================== */
.features-page-hero {
  padding: 160px 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.features-page-hero .hero-bg {
  position: absolute;
  inset: 0;
}

.feature-detail {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-detail-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 1024px) {
  .feature-detail-row {
    flex-direction: row;
    gap: var(--space-2xl);
  }
  .feature-detail-row.reverse {
    flex-direction: row-reverse;
  }
}

.feature-detail-content {
  flex: 1;
  max-width: 520px;
}

.feature-detail-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.feature-detail-number {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 64px;
  color: rgba(200, 151, 42, 0.1);
  line-height: 1;
  margin-bottom: 8px;
  transition: color var(--transition-slow);
}

.feature-detail:hover .feature-detail-number {
  color: rgba(200, 151, 42, 0.18);
}

.feature-detail-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: var(--space-sm);
}

.feature-detail-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.feature-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.feature-detail-item:hover {
  background: var(--bg-card);
}

.feature-detail-item i {
  color: var(--gold-light);
  margin-top: 4px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.feature-detail-item:hover i {
  transform: scale(1.15);
}

.feature-detail-item span {
  font-size: 15px;
  color: var(--text-secondary);
}

/* 功能截图展示 */
.feature-screenshot-frame {
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  border: 3px solid rgba(200, 151, 42, 0.25);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(200, 151, 42, 0.06);
  transition: all var(--transition-slow);
}

.feature-screenshot-frame:hover {
  border-color: rgba(200, 151, 42, 0.5);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(200, 151, 42, 0.12);
  transform: translateY(-4px);
}

.feature-screenshot-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

/* ========================================
   Download 页面
   ======================================== */
.download-hero {
  padding: 160px 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-hero .hero-bg {
  position: absolute;
  inset: 0;
}

.download-app-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  margin: 0 auto var(--space-sm);
  box-shadow: 0 12px 40px rgba(200, 151, 42, 0.25);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-base);
}

.download-app-icon:hover {
  transform: scale(1.05);
}

.download-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .download-cards { grid-template-columns: repeat(3, 1fr); }
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-slow);
  cursor: pointer;
}

.download-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.download-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 151, 42, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 28px;
  color: var(--gold-light);
  transition: all var(--transition-base);
}

.download-card:hover .download-card-icon {
  background: rgba(200, 151, 42, 0.15);
  transform: scale(1.08);
}

.download-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 4px;
}

.download-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.download-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-gold);
  color: #0C0A14;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.download-card-btn:hover {
  box-shadow: 0 4px 20px rgba(200, 151, 42, 0.4);
  transform: translateY(-1px);
}

.download-card-btn:active {
  transform: translateY(0);
}

/* QR码占位 */
.qr-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-sm);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.download-card:hover .qr-placeholder {
  transform: scale(1.03);
}

.qr-placeholder i {
  font-size: 48px;
  color: #0C0A14;
}

/* 下载页截图网格 */
.download-screenshots {
  padding: 0 0 var(--space-2xl);
}

.download-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .download-screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.download-screenshot-item {
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: all var(--transition-slow);
  cursor: pointer;
}

.download-screenshot-item:hover {
  border-color: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(200, 151, 42, 0.1);
}

.download-screenshot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.download-screenshot-item:hover img {
  transform: scale(1.03);
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 交错动画延迟 */
.animate-in:nth-child(1) { transition-delay: 0ms; }
.animate-in:nth-child(2) { transition-delay: 80ms; }
.animate-in:nth-child(3) { transition-delay: 160ms; }
.animate-in:nth-child(4) { transition-delay: 240ms; }
.animate-in:nth-child(5) { transition-delay: 320ms; }
.animate-in:nth-child(6) { transition-delay: 400ms; }
.animate-in:nth-child(7) { transition-delay: 480ms; }

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   滚动条
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(200, 151, 42, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 151, 42, 0.4);
}
