/* ==========================================================================
   动漫共和国 · onedmghg.cn
   视觉主题：极光二次元（Aurora Anime）
   说明：整站共用样式表，覆盖首页与内容页。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #f2f4ff;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef1ff;
  --text: #161a3c;
  --text-muted: #5b6488;
  --border: #e0e4fb;
  --border-strong: #c6ccf3;
  --primary: #5a45f0;
  --primary-hover: #4432cf;
  --primary-soft: rgba(90, 69, 240, .1);
  --accent: #ff5fa2;
  --accent-2: #23c8e6;
  --accent-3: #ffc53d;
  --grad: linear-gradient(120deg, #5a45f0 0%, #8b5cf6 46%, #ff5fa2 100%);
  --grad-soft: linear-gradient(120deg, rgba(90, 69, 240, .14), rgba(255, 95, 162, .14));
  --ring: rgba(90, 69, 240, .38);
  --shadow-card: 0 14px 34px -18px rgba(26, 18, 84, .34);
  --shadow-lg: 0 30px 64px -30px rgba(26, 18, 84, .48);
  --radius: 1.5rem;
  --radius-lg: 2rem;
}

[data-theme=dark] {
  color-scheme: dark;
  --bg: #080c1e;
  --bg-elevated: #10152f;
  --surface: #141a38;
  --surface-2: #1a2144;
  --text: #e8ebff;
  --text-muted: #9ba4d4;
  --border: #252c58;
  --border-strong: #39427c;
  --primary: #8b7bff;
  --primary-hover: #a99cff;
  --primary-soft: rgba(139, 123, 255, .16);
  --grad: linear-gradient(120deg, #7c6cff 0%, #a78bfa 46%, #ff7ab5 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 108, 255, .22), rgba(255, 122, 181, .22));
  --ring: rgba(139, 123, 255, .45);
  --shadow-card: 0 14px 34px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 64px -30px rgba(0, 0, 0, .85);
}

/* --------------------------------------------------------------------------
   2. 基础样式
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: transparent;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  overflow-x: hidden;
}

/* 极光渐变背景层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 4%, rgba(90, 69, 240, .22), transparent 44%),
    radial-gradient(circle at 88% 2%, rgba(255, 95, 162, .18), transparent 42%),
    radial-gradient(circle at 50% 104%, rgba(35, 200, 230, .18), transparent 48%);
}

/* 细网格纹理层 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(circle, rgba(90, 69, 240, .18) 1px, transparent 1px);
  background-size: 28px 28px;
}

[data-theme=dark] body::before {
  background:
    radial-gradient(circle at 12% 4%, rgba(124, 108, 255, .28), transparent 46%),
    radial-gradient(circle at 88% 2%, rgba(255, 122, 181, .18), transparent 44%),
    radial-gradient(circle at 50% 104%, rgba(35, 200, 230, .16), transparent 50%);
}

[data-theme=dark] body::after {
  opacity: .35;
  background-image: radial-gradient(circle, rgba(139, 123, 255, .3) 1px, transparent 1px);
}

#main { flex: 1; }

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease;
}

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

h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   3. 通用工具类
   -------------------------------------------------------------------------- */
.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

[data-theme=light] .icon-moon,
[data-theme=dark] .icon-sun { display: none; }

/* 滚动渐入：仅在脚本可用时启用，避免禁用脚本时内容不可见 */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   4. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1.2), box-shadow .3s ease, border-color .3s ease, color .3s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 28px -14px var(--ring);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 18px 36px -14px var(--ring);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }

.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }

/* --------------------------------------------------------------------------
   5. 区块标题
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header h2 {
  margin: 0 0 .625rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-deco {
  width: 4.5rem;
  height: .3125rem;
  margin: 0 auto 1.25rem;
  background: var(--grad);
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px var(--ring);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   6. 顶部导航
   -------------------------------------------------------------------------- */
.site-nav-bar {
  position: sticky;
  top: 0;
  z-index: 201;
  --nav-bar-height: 4.5rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-bar-height);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  position: relative;
  z-index: 202;
}

.logo-link:hover { color: var(--text); }

.logo-img {
  width: auto;
  height: 2.75rem;
  max-width: 12rem;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 8px 20px -12px var(--ring);
}

.logo-text {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  cursor: pointer;
  z-index: 202;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1.2), opacity .2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: var(--nav-bar-height) 0 auto;
  z-index: 200;
  display: none;
  padding: 1rem 1rem 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.site-nav.is-open { display: block; }

.site-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: .75rem .5rem;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: 12px;
}

.nav-list a:hover { color: var(--primary); background: var(--primary-soft); }

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.nav-actions .btn { width: 100%; }

.theme-toggle { padding: .75rem 1rem; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  display: none;
  background: rgba(6, 8, 26, .5);
}

.nav-backdrop.is-open { display: block; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-backdrop { display: none !important; }

  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .site-nav-inner {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-list {
    flex-direction: row;
    gap: 2rem;
    margin: 0 auto;
  }

  .nav-list a { position: relative; padding: .25rem 0; }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--grad);
    transition: width .3s cubic-bezier(.2, .7, .3, 1.2);
  }

  .nav-list a:hover { background: transparent; }
  .nav-list a:hover::after { width: 100%; }

  .nav-actions { flex-direction: row; align-items: center; }
  .nav-actions .btn { width: auto; }
}

/* --------------------------------------------------------------------------
   7. 首屏
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-block;
  padding: .4rem 1rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

[data-theme=dark] .hero-badge { color: var(--text); }

.hero-title {
  margin: 0 0 1.125rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 2rem;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}

.hero-media {
  --hero-shot-w: min(19rem, 76vw);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: .75rem .75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform .4s cubic-bezier(.2, .7, .3, 1.2);
}

/* 机身背后的极光光晕 */
.hero-media::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  z-index: -1;
  border-radius: 3rem;
  background: var(--grad);
  filter: blur(42px);
  opacity: .38;
  pointer-events: none;
}

.hero-media:hover { transform: translateY(-8px); }

.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-deco-spark {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--grad);
  border-radius: 50%;
  box-shadow: 0 0 18px 2px var(--ring);
  animation: dm-float 4s ease-in-out infinite;
}

.hero-deco-spark-a { top: -.5rem; right: 2rem; }

.hero-deco-spark-b {
  bottom: 3rem;
  left: -1rem;
  width: .875rem;
  height: .875rem;
  animation-delay: 1.4s;
}

.hero-deco-star {
  position: absolute;
  top: 1.75rem;
  left: -1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--grad);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 6px 14px var(--ring));
  animation: dm-spin 8s linear infinite;
}

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

@keyframes dm-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.375rem;
  background: var(--surface-2);
}

.carousel {
  position: relative;
  width: var(--hero-shot-w);
  max-width: 100%;
  overflow: hidden;
  border-radius: 1.375rem;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.carousel-slide {
  display: flex;
  justify-content: center;
  flex: 0 0 100%;
  width: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, color .2s ease;
}

.carousel-arrow:hover { color: var(--primary); transform: translateY(-50%) scale(1.08); }

.carousel-prev { left: .5rem; }
.carousel-next { right: .5rem; }

.carousel-arrow .icon { width: 1.05rem; height: 1.05rem; }

.carousel-arrow .icon-chevron {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .875rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: width .3s ease;
}

.carousel-dot.is-active { width: 26px; background: var(--grad); }

@media (min-width: 1024px) {
  .hero { padding: 5.5rem 0 6.5rem; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

@media (max-width: 767px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .carousel-arrow { width: 34px; height: 34px; }
  .carousel-prev { left: .25rem; }
  .carousel-next { right: .25rem; }
}

/* --------------------------------------------------------------------------
   8. 产品亮点
   -------------------------------------------------------------------------- */
.features {
  position: relative;
  padding: 4.5rem 0;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border-block: 1px solid var(--border);
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  padding: 1.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1.2), box-shadow .35s ease, border-color .35s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 3rem;
  height: 3rem;
  padding: .75rem;
  margin-bottom: 1.125rem;
  color: #fff;
  background: var(--grad);
  border-radius: 1rem;
  box-shadow: 0 10px 24px -10px var(--ring);
}

.feature-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.1875rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   9. 应用截图
   -------------------------------------------------------------------------- */
.shots { padding: 4.5rem 0; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.125rem;
}

.shot {
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1.2), box-shadow .35s ease, border-color .35s ease;
}

.shot:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.shot img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.shot figcaption {
  padding: .875rem 1rem;
  font-weight: 700;
  font-size: .9375rem;
}

@media (min-width: 768px) {
  .shot-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   10. 常见问题
   -------------------------------------------------------------------------- */
.faq { padding: 4.5rem 0; }

.faq-list { max-width: 760px; margin-inline: auto; }

.faq-item {
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color .3s ease;
}

.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: var(--primary); }

.faq-item summary {
  position: relative;
  padding: 1.25rem 3.25rem 1.25rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color .25s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.5rem;
  width: .625rem;
  height: .625rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1.2), border-color .3s ease;
}

.faq-item[open] summary { color: var(--primary); }

.faq-item[open] summary::after {
  border-color: var(--primary);
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.5rem 1.375rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   11. 下载横幅
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  padding: 4.5rem 0;
  color: #fff;
  background: var(--grad);
  border-block: 1px solid var(--border);
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, .28), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, .2), transparent 42%);
}

.cta-deco { position: absolute; inset: 0; pointer-events: none; }

.cta-deco-spark {
  position: absolute;
  width: 1rem;
  height: 1rem;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  animation: dm-float 4s ease-in-out infinite;
}

.cta-deco-spark-a { top: 2rem; right: 10%; }

.cta-deco-spark-b {
  bottom: 2.5rem;
  left: 8%;
  width: .75rem;
  height: .75rem;
  animation-delay: 1.2s;
}

.cta-deco-star {
  position: absolute;
  top: 2.5rem;
  right: 24%;
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(255, 255, 255, .85);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: dm-spin 9s linear infinite;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.cta-text h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 800;
}

.cta-text p { margin: 0; font-size: 1.0625rem; opacity: .95; }

.cta-banner .btn-primary {
  background: #fff;
  color: #4a35e0;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .5);
}

.cta-banner .btn-primary:hover { color: #2f1fa8; }

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   12. 站点页脚
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .625rem 1.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-weight: 700;
  font-size: .9375rem;
}

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

.footer-note {
  max-width: 46rem;
  margin: 0;
  color: var(--text-muted);
  font-size: .8125rem;
  line-height: 1.75;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: .875rem;
}

/* --------------------------------------------------------------------------
   13. 下载弹窗
   -------------------------------------------------------------------------- */
.download-modal {
  padding: 0;
  border: none;
  max-width: none;
  max-height: none;
  background: transparent;
}

.download-modal::backdrop {
  background: rgba(6, 8, 26, .55);
  backdrop-filter: blur(4px);
}

.download-modal-panel {
  position: fixed;
  inset: auto 0 0;
  padding: 2rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom));
  background: var(--bg-elevated);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .5);
}

.download-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.download-modal-close:hover { color: var(--primary); }

.download-modal h2 {
  margin: 0 2.5rem .5rem 0;
  font-size: 1.375rem;
  font-weight: 800;
}

.download-modal-subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: .9375rem;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.btn-store {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  column-gap: .875rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1.2), box-shadow .3s ease, border-color .3s ease;
}

.btn-store:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-store-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
  background: var(--grad);
  border-radius: .875rem;
}

.icon-store { width: 1.375rem; height: 1.375rem; }

.btn-store-text { display: flex; flex-direction: column; min-width: 0; }
.btn-store-label { font-weight: 800; }
.btn-store-hint { font-size: .8125rem; color: var(--text-muted); }
.btn-store-go { color: var(--text-muted); font-size: .8125rem; font-weight: 700; }

@media (min-width: 640px) {
  .download-modal-panel {
    position: relative;
    inset: auto;
    width: min(460px, 92vw);
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }

  .download-modal[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
}

/* --------------------------------------------------------------------------
   14. 内容页
   -------------------------------------------------------------------------- */
.page { padding: 3rem 0 4.5rem; }

.page-inner {
  width: min(760px, 100% - 2rem);
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--text-muted);
}

.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }

.page-header h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
}

.page-meta,
.page-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.page-meta { font-size: .875rem; }

.legal-section {
  margin-bottom: 1.25rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.legal-section h2 { margin: 0 0 .75rem; font-size: 1.25rem; font-weight: 800; }
.legal-section h3 { margin: 1.25rem 0 .5rem; font-size: 1.0625rem; font-weight: 800; }

.legal-section p { margin: 0 0 .75rem; color: var(--text-muted); }
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
  margin: 0 0 .75rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.legal-section li { margin-bottom: .375rem; }

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }

.steps li {
  position: relative;
  padding: .875rem 0 .875rem 3rem;
  border-bottom: 1px dashed var(--border);
  color: var(--text-muted);
}

.steps li:last-child { border-bottom: none; padding-bottom: 0; }

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: .8rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-size: .875rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  border-radius: 50%;
}

.contact-list { display: grid; gap: 1rem; margin: 0; }

.contact-item {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.contact-item dt {
  margin-bottom: .25rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item dd { margin: 0; font-size: 1.0625rem; }

.tip-box {
  display: flex;
  gap: .875rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
}

.tip-box .icon { color: var(--primary); margin-top: .2rem; }
.tip-box p { margin: 0; font-size: .9375rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   15. 图片放大预览
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 6, 20, .84);
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(90vw, 26rem);
  max-height: 84vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.5rem;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   16. 动效降级
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
}
