/* ============================================================
   AcFan 漫画官网（acfanpro1.cn）- 样式表
   主题：暖白浅色 + AcFan 橙（对齐 App 图标配色，清爽阅读感）
   ============================================================ */

/* ---- 设计变量 ---- */
:root {
  --bg: #fdf6ef;            /* 页面底色：暖奶油白 */
  --bg-soft: #f8ecdf;       /* 区块底色：暖米色 */
  --card: #ffffff;          /* 卡片面 */
  --line: rgba(255, 122, 0, 0.16);  /* 描边 */
  --accent: #ff7a00;        /* AcFan 橙 */
  --accent-deep: #e86600;   /* 深橙 */
  --accent-2: #ffa94d;      /* 浅橙 */
  --pink: #f97f9f;          /* 点缀粉 */
  --text: #3b2f26;          /* 主文字：暖深棕 */
  --text-soft: #6f5f52;     /* 次级文字 */
  --muted: #a8947f;         /* 弱化文字 */
  --grad: linear-gradient(135deg, #ff7a00 0%, #ffab52 100%);
  --radius: 18px;
  --shadow: 0 16px 38px rgba(216, 140, 60, 0.16);
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-display: "ZCOOL KuaiLe", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

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

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ---- 顶部导航 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 239, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 10px 30px rgba(216, 140, 60, 0.14); }

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

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.22);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav { display: flex; gap: 28px; }

.main-nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.main-nav a:hover { color: var(--accent-deep); }
.main-nav a:hover::after { width: 100%; }

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

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-download {
  background: var(--grad);
  color: #fff;
  padding: 10px 22px;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.32);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 122, 0, 0.42);
  filter: brightness(1.04);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--accent-deep);
  background: #fff;
  padding: 12px 26px;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.4);
  background: #fff6ec;
}

.btn-lg { padding: 13px 28px; font-size: 1.02rem; }
.btn-xl { padding: 17px 44px; font-size: 1.15rem; }

.btn-icon svg { width: 20px; height: 20px; }
.btn-xl .btn-icon svg { width: 22px; height: 22px; }

/* ---- 汉堡菜单（移动端） ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
}

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

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

/* ---- 英雄区 ---- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

/* 背景装饰：暖橙光晕 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 420px at 10% 20%, rgba(255, 122, 0, 0.12), transparent 65%),
    radial-gradient(520px 400px at 90% 85%, rgba(249, 127, 159, 0.1), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero-sub {
  margin-top: 18px;
  max-width: 32em;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.hero-badges li {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent-deep);
  border: 1px solid var(--line);
  background: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(216, 140, 60, 0.1);
}

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

/* ---- 英雄区应用信息 ---- */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.meta-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 16px;
}

.meta-item dt {
  font-size: 0.78rem;
  color: var(--muted);
}

.meta-item dd {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

/* ---- 英雄区视觉 ---- */
.hero-visual { display: flex; justify-content: center; }

.visual-wrap { position: relative; }

.visual-deco {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background: var(--grad);
  opacity: 0.18;
  transform: rotate(6deg);
}

.visual-frame {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(216, 140, 60, 0.22);
  white-space: nowrap;
}

.chip-up { top: 20px; left: 14px; }
.chip-down { bottom: 26px; right: 14px; }

/* ---- 通用区块 ---- */
.section { padding: 92px 0; }

.section-head { text-align: center; margin-bottom: 52px; }

.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.3;
}

.section-sub { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }

/* ---- 核心功能 ---- */
.features { background: var(--bg-soft); }

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

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

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff2e4;
  color: var(--accent-deep);
  margin-bottom: 18px;
}

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

.feature-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-soft); font-size: 0.92rem; }

/* ---- 精选漫画 ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comic-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.comic-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: var(--shadow);
}

.comic-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.comic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.35s ease;
}

.comic-card:hover .comic-cover img { transform: scale(1.05); }

.comic-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
}

.comic-meta { padding: 18px 20px 22px; }
.comic-meta h3 { font-size: 1.05rem; margin-bottom: 6px; }
.comic-meta p { color: var(--muted); font-size: 0.9rem; }

/* ---- 精选区：更多漫画下载卡 ---- */
.promo-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 22% 12%, rgba(255, 122, 0, 0.24), transparent 60%),
    radial-gradient(110% 110% at 80% 88%, rgba(249, 127, 159, 0.16), transparent 55%),
    #fff4e6;
}

.promo-icon { color: var(--accent); }

.promo-icon svg { width: 76px; height: 76px; }

.promo-btn {
  margin-top: 14px;
  font-size: 0.88rem;
  padding: 11px 20px;
  min-height: 44px;
}

/* ---- 上手指南 ---- */
.guide { background: var(--bg-soft); }

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: guide;
}

.guide-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px 30px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guide-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.3);
}

.guide-step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.guide-step p { color: var(--text-soft); font-size: 0.88rem; }

/* ---- 近期更新 ---- */
.changelog-container { max-width: 780px; }

.update-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 28px;
}

.update-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.update-item:last-child { border-bottom: none; }

.update-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  margin-top: 9px;
}

.update-item p { color: var(--text-soft); font-size: 0.95rem; }

/* ---- 常见问题 ---- */
.faq-container { max-width: 780px; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open { border-color: rgba(255, 122, 0, 0.4); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 18px 22px;
  transition: background 0.25s ease;
}

.faq-question:hover { background: #fff6ec; }

.faq-arrow {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-arrow svg { width: 20px; height: 20px; }

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  color: var(--text-soft);
  font-size: 0.92rem;
  padding: 0 22px 20px;
}

/* ---- 应用信息 ---- */
.appinfo-container { max-width: 860px; }

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

.info-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  text-align: center;
}

.info-item dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.info-item dd {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ---- 下载 CTA ---- */
.download-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--grad);
}

.download-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 380px at 50% 120%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(520px 320px at 15% 0%, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; }

.cta-inner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 12px rgba(180, 70, 0, 0.24);
}

.cta-inner > p { margin-top: 12px; color: rgba(255, 255, 255, 0.92); }

.btn-cta {
  margin-top: 32px;
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 14px 34px rgba(140, 60, 0, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(140, 60, 0, 0.36);
  filter: brightness(1.02);
}

.cta-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
}

.cta-points li { position: relative; }

.cta-points li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

.cta-points li:first-child::before { display: none; }

/* ---- 页脚（无备案号） ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 40px 0;
}

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

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }

.footer-nav a {
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 10px 8px;
  transition: color 0.25s ease;
}

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

.footer-copy { color: var(--muted); font-size: 0.86rem; }

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .visual-frame { width: min(260px, 100%); }
  .guide-steps { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(253, 246, 239, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 6%;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

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

  .section { padding: 68px 0; }
  .hero { padding: 48px 0 68px; }
}

@media (max-width: 560px) {
  .guide-steps { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .hero-note { width: 100%; }
}

/* ---- 无障碍：尊重系统减弱动效 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
