/* ============================================================
   AGE动漫 · 官网单页样式
   主题：暗夜放映厅（炭黑 × 放映红 × 霓虹紫）
   依赖：index.html 同目录下的 assets/ 素材
   ============================================================ */

:root {
  --bg: #120C0E;
  --bg-soft: #1A1215;
  --card: #21151A;
  --card-hover: #2A1A21;
  --line: rgba(232, 64, 60, 0.14);
  --line-strong: rgba(232, 64, 60, 0.45);
  --red: #E8403C;
  --red-deep: #C22B28;
  --violet: #A06BFF;
  --text: #F5EFE9;
  --text-dim: #A79BA2;
  --text-faint: #776B73;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

::selection { background: rgba(232, 64, 60, 0.35); color: var(--text); }

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

/* ========== 顶部导航 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(18, 12, 14, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(160, 107, 255, 0.4);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-dim);
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-cta {
  margin-left: 10px;
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #FFF6F3;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(232, 64, 60, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 8px 24px rgba(232, 64, 60, 0.45); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 90px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-bg::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -140px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 64, 60, 0.22), rgba(232, 64, 60, 0) 66%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -240px;
  left: -160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 107, 255, 0.16), rgba(160, 107, 255, 0) 70%);
}

.float-tag {
  position: absolute;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 6px 16px;
  border-radius: 999px;
}

.tag-a {
  top: 21%;
  left: 5%;
  color: rgba(232, 64, 60, 0.8);
  border: 1px solid rgba(232, 64, 60, 0.4);
  background: rgba(232, 64, 60, 0.08);
  transform: rotate(-6deg);
}

.tag-b {
  top: 15%;
  right: 7%;
  color: rgba(160, 107, 255, 0.8);
  border: 1px solid rgba(160, 107, 255, 0.4);
  background: rgba(160, 107, 255, 0.08);
  transform: rotate(5deg);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 64, 60, 0.6), transparent);
  animation: scan 7s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); opacity: 0.4; }
  50% { opacity: 1; }
  100% { transform: translateY(94vh); opacity: 0; }
}

.glow-spot {
  position: absolute;
  border-radius: 50%;
  background: rgba(232, 64, 60, 0.12);
}

.spot-a { top: 36%; right: 24%; width: 14px; height: 14px; }
.spot-b { bottom: 24%; left: 24%; width: 9px; height: 9px; background: rgba(160, 107, 255, 0.16); }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  background: rgba(232, 64, 60, 0.1);
  border: 1px solid rgba(232, 64, 60, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.06;
  background: linear-gradient(120deg, #FFF3ED 0%, #F5C9B8 42%, var(--red) 78%, var(--violet) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-desc {
  max-width: 46ch;
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 26px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-bottom: 34px;
}

.hstat dt {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--red);
  text-shadow: 0 0 22px rgba(232, 64, 60, 0.35);
}

.hstat dd {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 34px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #FFF6F3;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 10px 28px rgba(232, 64, 60, 0.35);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(232, 64, 60, 0.48); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(160, 107, 255, 0.45);
}

.btn-ghost:hover { transform: translateY(-3px); background: rgba(160, 107, 255, 0.1); border-color: var(--violet); }

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.sigil-box { position: relative; width: 300px; height: 300px; display: grid; place-items: center; }

.sigil-core {
  position: relative;
  z-index: 2;
  width: 186px;
  height: 186px;
  border-radius: 40px;
  box-shadow: 0 24px 60px rgba(232, 64, 60, 0.35), 0 0 60px rgba(160, 107, 255, 0.2);
  animation: float-core 6s ease-in-out infinite;
}

.sigil-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232, 64, 60, 0.35);
}

.ring-1 { width: 262px; height: 262px; animation: spin 26s linear infinite; }
.ring-2 { width: 204px; height: 204px; border-color: rgba(160, 107, 255, 0.4); animation: spin-rev 32s linear infinite; }

.sigil-cross { position: absolute; background: rgba(232, 64, 60, 0.25); }

.c-h { left: 4%; right: 4%; height: 1px; }
.c-v { top: 4%; bottom: 4%; width: 1px; }

.hero-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 3px;
}

@keyframes float-core {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-2deg); }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

/* ========== 区块通用 ========== */
section { scroll-margin-top: 76px; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-sub { font-size: 15.5px; color: var(--text-dim); }

/* ========== 真实界面区 ========== */
.screens {
  padding: 96px 24px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 250px;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 64, 60, 0.4) rgba(255, 255, 255, 0.05);
}

.gallery-scroller::-webkit-scrollbar { height: 8px; }
.gallery-scroller::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 999px; }
.gallery-scroller::-webkit-scrollbar-thumb { background: rgba(232, 64, 60, 0.45); border-radius: 999px; }

.gallery-item { scroll-snap-align: center; }

.phone-frame {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover .phone-frame { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }

.phone-frame img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
}

.gallery-item figcaption { padding: 16px 6px 0; }

.gallery-item figcaption strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-item figcaption span { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

.gallery-hint { text-align: center; font-size: 13px; color: var(--text-faint); margin-top: 10px; }

/* ========== 追番指南区 ========== */
.features { padding: 96px 24px; }

.feature-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--card-hover);
}

.feature-num {
  display: block;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(120deg, var(--red), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }

.feature-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }

.feature-points li {
  position: relative;
  font-size: 13.5px;
  color: var(--text);
  padding: 7px 0 7px 26px;
  border-top: 1px solid var(--line);
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--red), var(--violet));
}

/* ========== 下载区 ========== */
.download { padding: 96px 24px; }

.download-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 64, 60, 0.14), rgba(232, 64, 60, 0) 55%),
    var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: 56px 40px;
  box-shadow: var(--shadow-card);
}

.download-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 14px; }

.download-desc { font-size: 15px; color: var(--text-dim); max-width: 52ch; margin: 0 auto 32px; }

.domain-mark { color: var(--red); font-weight: 700; word-break: break-all; }

.btn-download {
  font-size: 20px;
  padding: 18px 56px;
  color: #FFF6F3;
  background: linear-gradient(120deg, var(--red), var(--red-deep) 60%, #9A1F1D);
  box-shadow: 0 14px 34px rgba(232, 64, 60, 0.36);
}

.btn-download:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 44px rgba(232, 64, 60, 0.5); }

.download-note { font-size: 13px; color: var(--text-faint); margin-top: 22px; }

/* ========== 用户评价区 ========== */
.voices {
  padding: 96px 24px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.voices-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.voice-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.voice-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }

.voice-text { font-size: 14.5px; color: var(--text-dim); line-height: 1.75; flex: 1; }

.voice-meta { display: flex; align-items: center; gap: 10px; }

.voice-name {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 14px;
  font-weight: 700;
  color: #FFF6F3;
  background: linear-gradient(135deg, var(--red), var(--violet));
  border-radius: 10px;
}

.voice-user { font-size: 14px; font-weight: 600; }

.voice-date { margin-left: auto; font-size: 12px; color: var(--text-faint); }

/* ========== 大家都在搜 ========== */
.trending { padding: 88px 24px; }

.trending-chips {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.chip {
  font-size: 14.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.chip:hover {
  color: var(--red);
  border-color: var(--line-strong);
  background: rgba(232, 64, 60, 0.07);
  transform: translateY(-3px);
}

/* ========== 常见问题区 ========== */
.faq { padding: 96px 24px 100px; }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 24px;
  transition: border-color 0.25s ease;
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 18px 34px 18px 0;
  position: relative;
  user-select: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item p {
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 0 0 20px;
  line-height: 1.8;
}

/* ========== 页脚 ========== */
.site-footer {
  background: #0D0809;
  border-top: 1px solid var(--line);
  padding: 46px 24px 34px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  align-items: center;
  gap: 28px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-logo { width: 44px; height: 44px; border-radius: 12px; }

.footer-name { font-size: 17px; font-weight: 800; }

.footer-slogan { font-size: 13px; color: var(--text-faint); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 6px; }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

.footer-site { text-align: right; }

.footer-domain { font-size: 14px; font-weight: 600; color: var(--red); word-break: break-all; }

.footer-copy { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }

/* ========== 回到顶部 ========== */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #FFF6F3;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(232, 64, 60, 0.4);
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.back-top:hover { transform: translateY(-4px); }

.back-top[hidden] { opacity: 0; visibility: hidden; pointer-events: none; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .sigil-box { width: 240px; height: 240px; }
  .sigil-core { width: 150px; height: 150px; border-radius: 32px; }
  .ring-1 { width: 210px; height: 210px; }
  .ring-2 { width: 160px; height: 160px; }
  .voices-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 22px; }
  .footer-site { text-align: center; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(26, 18, 21, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { padding: 13px 16px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; text-align: center; padding: 13px 16px; }
  .hero { padding: 118px 18px 70px; }
  .hero-title { letter-spacing: 2px; }
  .screens, .features, .voices, .faq, .download, .trending { padding: 64px 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-scroller { grid-auto-columns: 210px; }
  .phone-frame img { height: 360px; }
  .gallery-item figcaption span { font-size: 14px; }
  .feature-points li { font-size: 14px; }
  .download-panel { padding: 42px 22px; }
  .btn-download { width: 100%; }
  .back-top { right: 16px; bottom: 20px; }
}

/* ========== 动效偏好 ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
