/* ============================================================
   AGE漫画 · acemh.cn 单页官网样式
   主题：粉紫渐变动漫风 · 深色玻璃拟态
   ============================================================ */

:root {
  --bg: #0f0a1e;
  --bg-2: #17102b;
  --card: rgba(255, 255, 255, 0.045);
  --card-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f2ff;
  --muted: #a89fc7;
  --primary: #ff5e9c;
  --primary-2: #a855f7;
  --grad: linear-gradient(135deg, #ff5e9c 0%, #a855f7 100%);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(168, 85, 247, 0.18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

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

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 94, 156, .35);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(168, 85, 247, .45); }

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-xl { padding: 18px 44px; font-size: 17px; }
.ico { flex: 0 0 auto; }

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(15, 10, 30, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.nav-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .4);
}
.nav-links { display: flex; gap: 28px; }
.nav-link {
  font-size: 15px;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width .25s var(--ease);
}
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(168, 85, 247, .28), transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(255, 94, 156, .22), transparent 60%),
    var(--bg);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 94, 156, .12);
  border: 1px solid rgba(255, 94, 156, .3);
  color: #ffb3d1;
  font-size: 13px;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(255, 94, 156, .6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 94, 156, .6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 94, 156, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 94, 156, 0); }
}
.hero-title {
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -1px;
}
.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 22px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-tags span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-meta { font-size: 13px; color: var(--muted); opacity: .8; }

/* 手机模型 */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 300px;
  height: 600px;
  background: #000;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(168, 85, 247, .35), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
}
.phone-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.phone-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 10, 30, .1) 0%, rgba(15, 10, 30, .85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
}
.phone-ui { width: 100%; }
.ui-brand { font-weight: 700; font-size: 18px; display: block; margin-bottom: 10px; }
.ui-bar {
  height: 10px;
  width: 70%;
  background: rgba(255, 255, 255, .25);
  border-radius: 6px;
  margin-bottom: 12px;
}
.ui-chips { display: flex; gap: 8px; }
.ui-chips i {
  width: 34px; height: 8px;
  background: rgba(255, 255, 255, .2);
  border-radius: 4px;
}
.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(255, 94, 156, .25), transparent 70%);
  z-index: -1;
  filter: blur(30px);
}

/* ============ 数据统计 ============ */
.stats {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ============ 通用 Section ============ */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-desc { color: var(--muted); font-size: 16px; }

/* ============ 核心功能 ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 94, 156, .4);
  background: var(--card-2);
}
.feature-ico {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(255, 94, 156, .3);
}
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ============ 探索 / 筛选 ============ */
.explore { background: var(--bg-2); }
.filter-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}
.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.filter-row + .filter-row { border-top: 1px dashed var(--line); }
.filter-label {
  flex: 0 0 50px;
  font-size: 14px;
  color: var(--muted);
  padding-top: 6px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  transition: .2s;
}
.chip:hover { color: var(--text); border-color: rgba(168, 85, 247, .5); }
.chip.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.result-bar { margin: 10px 0 18px; }
.result-count { font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.result-count b { color: var(--primary); }

.comic-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.comic-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: .2s;
}
.comic-list li:hover { border-color: rgba(255, 94, 156, .4); transform: translateX(4px); }
.c-name { font-weight: 600; font-size: 15px; }
.c-tag { font-size: 12.5px; color: var(--muted); }

/* ============ 榜单 ============ */
.rank-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.rank-tab {
  padding: 9px 24px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: .25s;
}
.rank-tab.active { background: var(--grad); color: #fff; }

.rank-panel { display: none; animation: fadeIn .4s var(--ease); }
.rank-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.rank-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: .2s;
}
.rank-item:hover { border-color: rgba(168, 85, 247, .4); }
.rank-no {
  flex: 0 0 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  font-weight: 800;
  font-size: 16px;
  color: var(--muted);
}
.rank-no.r1 { background: linear-gradient(135deg, #ffd166, #ff8a5c); color: #fff; }
.rank-no.r2 { background: linear-gradient(135deg, #e0e0e0, #9e9e9e); color: #fff; }
.rank-no.r3 { background: linear-gradient(135deg, #e8a87c, #c38d5f); color: #fff; }
.rank-info { flex: 1; }
.rank-info b { display: block; font-size: 16px; }
.rank-info span { font-size: 13px; color: var(--muted); }
.rank-item em { font-style: normal; font-size: 13px; font-weight: 700; }
.rank-item .up { color: #4ade80; }
.rank-item .down { color: #f87171; }
.rank-item .flat { color: var(--muted); }
.rank-item .new { color: var(--primary); }

/* ============ 界面预览 ============ */
.preview { background: var(--bg-2); }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.preview-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.preview-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.preview-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
}
.preview-card figcaption {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ============ 下载 CTA ============ */
.download-card {
  position: relative;
  text-align: center;
  padding: 70px 30px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(168, 85, 247, .25), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.download-card h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 16px; }
.download-card p { color: var(--muted); margin-bottom: 30px; }
.download-meta { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-2);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.footer-brand .brand-logo { width: 30px; height: 30px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* ============ 回到顶部 ============ */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(255, 94, 156, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .3s;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }

/* ============ 滚动显现 ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 40px 0; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-phone { margin-top: 30px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-card img { height: 420px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(15, 10, 30, .97);
    backdrop-filter: blur(14px);
    padding: 20px 6%;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .3s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: flex; }
  .nav .btn-sm { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .features-grid { grid-template-columns: 1fr; }
  .comic-list { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .filter-row { flex-direction: column; gap: 8px; }
  .filter-label { padding-top: 0; }
  .phone { width: 260px; height: 520px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
