/* ============================================================
   AGE动漫官网 - 样式表
   主题：暗红黑曜 · 追番利器
   ============================================================ */

:root {
  --bg: #150a0d;
  --bg-soft: #1d0f13;
  --surface: #241218;
  --surface-2: #301720;
  --border: rgba(244, 63, 94, 0.18);
  --border-strong: rgba(244, 63, 94, 0.38);

  --text: #fff1f0;
  --text-muted: #c9a3a6;
  --text-dim: #93676e;

  --primary: #f43f5e;
  --primary-light: #fb7185;
  --accent: #a855f7;

  --grad-primary: linear-gradient(135deg, #f43f5e 0%, #a855f7 100%);
  --grad-text: linear-gradient(120deg, #fb7185 0%, #f43f5e 55%, #a855f7);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 60px rgba(244, 63, 94, 0.3);

  --font-display: "ZCOOL KuaiLe", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景氛围光 */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

body::before {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -160px;
  background: rgba(244, 63, 94, 0.18);
}

body::after {
  width: 480px;
  height: 480px;
  top: 40%;
  right: -200px;
  background: rgba(168, 85, 247, 0.14);
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

.container-narrow {
  width: min(820px, 100% - 48px);
}

/* ============================================================
   按钮
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(244, 63, 94, 0.42);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

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

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 34px;
  font-size: 17px;
}

.btn-xl {
  padding: 16px 46px;
  font-size: 18px;
}

/* ============================================================
   顶部导航
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(21, 10, 13, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.42);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

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

.nav-link:hover {
  color: var(--text);
  background: rgba(244, 63, 94, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
}

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

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 168px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 84px);
  line-height: 1.15;
  letter-spacing: 4px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-slogan {
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.hero-points {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15.5px;
}

.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-primary);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.55);
}

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

.hero-stats {
  margin-top: 52px;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}

.stat {
  flex: 1;
  padding-right: 28px;
  position: relative;
}

.stat + .stat {
  padding-left: 28px;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--border);
}

.stat dt {
  font-family: var(--font-display);
  font-size: 30px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

/* Hero 视觉区 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 320px;
  height: 320px;
  top: 4%;
  left: 2%;
  background: rgba(244, 63, 94, 0.36);
}

.hero-glow-2 {
  width: 240px;
  height: 240px;
  bottom: 2%;
  right: 4%;
  background: rgba(168, 85, 247, 0.3);
}

/* 手机壳 */
.phone-frame {
  position: relative;
  width: min(292px, 62vw);
  aspect-ratio: 9 / 17.4;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #3a1420 0%, #241218 45%, #1d0f13 100%);
  border: 1px solid rgba(244, 63, 94, 0.32);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  object-position: top center;
  background: #150a0d;
}

.phone-notch {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 20px;
  border-radius: 999px;
  background: rgba(21, 10, 13, 0.9);
  z-index: 2;
}

.hero-icon-badge {
  position: absolute;
  right: 2%;
  bottom: 6%;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(244, 63, 94, 0.26);
  z-index: 3;
}

/* ============================================================
   通用章节
   ============================================================ */

.section {
  padding: 96px 0;
}

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

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: 2px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ============================================================
   功能介绍
   ============================================================ */

.features {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.05) 0%, transparent 60%);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(244, 63, 94, 0.14);
  color: var(--primary-light);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

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

.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   应用截图（轮播）
   ============================================================ */

.screens-slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.screens-track {
  display: flex;
  overflow: hidden;
}

.screen-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.screen-slide figcaption {
  text-align: center;
}

.slide-index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 6px;
}

.screen-slide figcaption strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.screen-slide figcaption p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.slider-btn {
  position: absolute;
  top: 34%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.slider-btn:hover {
  background: rgba(244, 63, 94, 0.32);
  border-color: var(--primary-light);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.slider-btn svg {
  width: 22px;
  height: 22px;
}

.slider-prev {
  left: -8px;
}

.slider-next {
  right: -8px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(244, 63, 94, 0.3);
  transition: width 0.25s ease, background 0.25s ease;
  padding: 0;
}

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

/* ============================================================
   下载安装
   ============================================================ */

.download {
  position: relative;
}

.download-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, rgba(244, 63, 94, 0.14) 0%, var(--surface) 55%);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 56px 40px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 50% -40px, rgba(168, 85, 247, 0.22), transparent 70%);
  pointer-events: none;
}

.download-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 22px;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.28), 0 14px 34px rgba(0, 0, 0, 0.45);
}

.download-card h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 2px;
}

.download-sub {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.download-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 32px;
}

.download-tags li {
  font-size: 13px;
  color: var(--primary-light);
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.28);
  padding: 5px 16px;
  border-radius: 999px;
}

.download-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ============================================================
   常见问题
   ============================================================ */

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--primary-light);
  border-bottom: 2px solid var(--primary-light);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-item summary:hover {
  color: var(--primary-light);
}

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

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: rgba(21, 10, 13, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 0;
}

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

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

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-brand span {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
}

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

.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.footer-bottom p {
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
}

.footer-bottom p + p {
  margin-top: 4px;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 960px) {
  .hero {
    padding: 140px 0 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: 2;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-points {
    max-width: 460px;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    max-width: 480px;
    margin-inline: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .header-download {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 22px;
    background: rgba(21, 10, 13, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 13px 16px;
    font-size: 16px;
  }

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

  .feature-card {
    padding: 26px 22px;
  }

  .slider-prev {
    left: -2px;
  }

  .slider-next {
    right: -2px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .download-card {
    padding: 44px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1140px, 100% - 36px);
  }

  .hero {
    padding-top: 120px;
  }

  .hero-stats {
    gap: 8px;
  }

  .stat {
    padding-right: 12px;
  }

  .stat + .stat {
    padding-left: 12px;
  }

  .stat dt {
    font-size: 24px;
  }

  .phone-frame {
    width: min(250px, 60vw);
  }

  .hero-icon-badge {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }

  .btn-lg {
    padding: 13px 28px;
    font-size: 15.5px;
  }

  .btn-xl {
    padding: 15px 34px;
    font-size: 16px;
    width: 100%;
  }
}

/* ============================================================
   无障碍：减少动效
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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