/* ==========================================================================
   口袋以撒图鉴 (Pocket Isaac Guide) - 官方网站样式表
   Responsive, Modern, Accessible & SEO-Optimized CSS
   ========================================================================== */

:root {
  /* 基础色系 (暗黑深渊与复古羊皮纸质感融合) */
  --bg-main: #0c0e14;
  --bg-surface: #141722;
  --bg-card: #1b2030;
  --bg-card-hover: #22293d;
  --bg-card-subtle: rgba(255, 255, 255, 0.03);
  
  /* 品牌与强调色 */
  --primary: #e63946;
  --primary-glow: rgba(230, 57, 70, 0.35);
  --primary-dark: #b71c1c;
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.3);
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  
  /* 文字与边框 */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(230, 57, 70, 0.6);
  
  /* 品质颜色 */
  --q0-color: #64748b;
  --q1-color: #38bdf8;
  --q2-color: #10b981;
  --q3-color: #a855f7;
  --q4-color: #f59e0b;

  /* 间距与圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --container-max: 1200px;
  
  /* 阴影效果 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px var(--primary-glow);
  
  /* 动效 */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -10%, #201322 0%, var(--bg-main) 60%),
              radial-gradient(circle at 10% 40%, rgba(230, 57, 70, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 70%, rgba(245, 158, 11, 0.04) 0%, transparent 45%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button, input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(12, 14, 20, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-name-cn {
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-name-en {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #c5222f 100%);
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

/* 移动端汉堡按钮 */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 8px;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.35);
  color: #ff7582;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.hero-tag-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #ff7582 0%, var(--primary) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.02rem;
  font-weight: 600;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero 右侧手机/视窗展示卡片 */
.hero-visual-card {
  position: relative;
  background: linear-gradient(145deg, rgba(27, 32, 48, 0.8) 0%, rgba(18, 21, 31, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.status-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
}

.mockup-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* 模拟搜索框 */
.mockup-search-preview {
  position: relative;
  margin-bottom: 1.25rem;
}

.mockup-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  font-size: 0.95rem;
  color: var(--text-main);
  pointer-events: none;
}

.mockup-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

/* 模拟道具卡片展示 */
.mockup-item-showcase {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-item-main {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mockup-item-icon {
  width: 58px;
  height: 58px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 0 15px var(--accent-gold-glow);
  image-rendering: pixelated;
}

.mockup-item-info {
  flex: 1;
}

.mockup-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mockup-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.mockup-quality-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.mockup-item-en {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mockup-item-desc {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-gold);
}

.mockup-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mockup-pill {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Features Section (6大核心功能)
   ========================================================================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 57, 70, 0.4);
  box-shadow: var(--shadow-md), 0 0 25px rgba(230, 57, 70, 0.1);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(230, 57, 70, 0.12);
  color: var(--primary);
  border: 1px solid rgba(230, 57, 70, 0.25);
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.feature-highlight-list {
  margin-top: auto;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-highlight-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-highlight-item::before {
  content: "✓";
  color: #34d399;
  font-weight: 700;
}

/* ==========================================================================
   Interactive Demo Section (在线快速试用查道具)
   ========================================================================== */
.interactive-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.demo-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.demo-search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.demo-search-input {
  flex: 1;
  padding: 0.4rem 0.75rem;
  font-size: 1.05rem;
  color: var(--text-main);
}

.demo-search-input::placeholder {
  color: var(--text-muted);
}

.filter-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.quality-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.quality-pill:hover,
.quality-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.quality-pill.active[data-q="all"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}
.quality-pill.active[data-q="4"] {
  background: var(--q4-color);
  border-color: var(--q4-color);
  color: #000;
  font-weight: 700;
}
.quality-pill.active[data-q="3"] {
  background: var(--q3-color);
  border-color: var(--q3-color);
  color: #fff;
}
.quality-pill.active[data-q="2"] {
  background: var(--q2-color);
  border-color: var(--q2-color);
  color: #000;
}
.quality-pill.active[data-q="1"] {
  background: var(--q1-color);
  border-color: var(--q1-color);
  color: #000;
}
.quality-pill.active[data-q="0"] {
  background: var(--q0-color);
  border-color: var(--q0-color);
  color: #fff;
}

/* 道具网格展示 */
.demo-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.item-demo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.item-demo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-sm);
}

.item-demo-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 0.75rem;
}

.item-demo-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 4px;
  image-rendering: pixelated;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-demo-title-group {
  flex: 1;
  min-width: 0;
}

.item-demo-name {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-demo-en {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-demo-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  flex: 1;
}

.item-demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
}

.item-id-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   App Experience / Advantage Section
   ========================================================================== */
.advantage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.advantage-content h3 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.advantage-p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.advantage-checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.advantage-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}

.check-text strong {
  color: var(--text-main);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.check-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.advantage-visual-box {
  background: radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.1) 0%, rgba(20, 23, 34, 0.6) 80%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}

.role-badge-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.role-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border: 1px solid var(--border-subtle);
  image-rendering: pixelated;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  background: none;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* ==========================================================================
   Download / CTA Section
   ========================================================================== */
.download-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-banner {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(20, 23, 34, 0.9) 100%);
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: var(--radius-lg);
  padding: 4.5rem 2rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.download-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.download-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.download-btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.apple-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.apple-store-badge:hover {
  transform: translateY(-2px);
  border-color: #fff;
}

.apple-logo-icon {
  font-size: 1.6rem;
}

.badge-text-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  display: block;
  line-height: 1;
}

.badge-text-main {
  font-size: 1.1rem;
  line-height: 1.2;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #090a0f;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 320px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-list a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.disclaimer-box {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.5;
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Privacy Page Styles (隐私协议专用样式)
   ========================================================================== */
.privacy-page-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.05) 0%, transparent 100%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  opacity: 0.5;
}

.privacy-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.privacy-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.privacy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  padding: 3rem 0 6rem;
  align-items: start;
}

.privacy-sidebar {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.1);
}

.privacy-content {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.8;
}

.privacy-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.privacy-section h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.privacy-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 1.25rem 0 0.5rem;
}

.privacy-section p {
  margin-bottom: 1rem;
}

.privacy-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.privacy-section li {
  margin-bottom: 0.5rem;
}

.privacy-callout {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid #10b981;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: #e2e8f0;
}

.privacy-callout strong {
  color: #34d399;
}

/* ==========================================================================
   Back to top button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-visual-card {
    max-width: 580px;
    margin: 0 auto;
  }
  
  .advantage-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .mobile-toggle {
    display: block;
  }

  .nav-actions .btn-header-cta {
    display: none;
  }

  .hero-stats {
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }

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