/* ============================================================
   YY漫画APP 官网落地页样式
   配色：治愈天蓝 + 暖橙强调 + 米白底色
   ============================================================ */

:root {
  --c-primary: #3b82c4;        /* 主色 天空蓝 */
  --c-primary-dark: #2563a0;
  --c-primary-light: #e6f1fb;
  --c-accent: #ff8a3d;          /* 强调色 暖橙（下载按钮） */
  --c-accent-dark: #f2701f;
  --c-bg: #fbf8f3;              /* 米白背景 */
  --c-surface: #ffffff;
  --c-text: #1f3a5f;
  --c-text-sub: #5a7392;
  --c-text-mute: #8aa0b8;
  --c-line: #e6edf5;
  --c-pink: #ffb4c8;
  --c-yellow: #ffd66b;
  --shadow-sm: 0 2px 8px rgba(31, 58, 95, .08);
  --shadow-md: 0 8px 24px rgba(31, 58, 95, .12);
  --shadow-lg: 0 16px 40px rgba(31, 58, 95, .16);
  --radius: 14px;
  --radius-lg: 22px;
  --max-w: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 248, 243, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--c-text);
}
.brand-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.brand-name em {
  color: var(--c-accent);
  font-style: normal;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 15px;
  color: var(--c-text-sub);
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--c-primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}
.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--c-accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 138, 61, .35);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-download:hover {
  background: var(--c-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 138, 61, .45);
}
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-text);
  position: relative;
  transition: transform .25s, opacity .25s;
}
.hamburger span::before { content: ""; position: absolute; top: -7px; }
.hamburger span::after  { content: ""; position: absolute; top:  7px; }
.hamburger.open span { background: transparent; }
.hamburger.open span::before { transform: translateY(7px) rotate(45deg); }
.hamburger.open span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/cover-5.png") center/cover no-repeat;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    rgba(20, 45, 85, .88) 0%,
    rgba(35, 80, 140, .65) 50%,
    rgba(60, 130, 190, .35) 100%);
  z-index: -1;
}
.hero-inner { max-width: 760px; }
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.hero h1 .accent { color: var(--c-yellow); }
.hero-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
  color: rgba(255, 255, 255, .92);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 138, 61, .45);
}
.btn-primary:hover {
  background: var(--c-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 138, 61, .55);
}
.btn-ghost {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .25); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--c-yellow);
  line-height: 1.2;
}
.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  margin-top: 4px;
}

/* ============ 通用 Section ============ */
.section { padding: 90px 0; }
.section-head {
  text-align: center;
  margin-bottom: 50px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 12px;
}
.section-desc {
  color: var(--c-text-sub);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

/* ============ 功能亮点 ============ */
.features {
  background: var(--c-surface);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--c-primary-light);
}
.feature-icon svg { width: 28px; height: 28px; stroke: var(--c-primary); fill: none; stroke-width: 1.8; }
.feature-card:nth-child(2) .feature-icon { background: #fff1e6; }
.feature-card:nth-child(2) .feature-icon svg { stroke: var(--c-accent); }
.feature-card:nth-child(3) .feature-icon { background: #ffeef3; }
.feature-card:nth-child(3) .feature-icon svg { stroke: #e26a8a; }
.feature-card:nth-child(4) .feature-icon { background: #fff7dd; }
.feature-card:nth-child(4) .feature-icon svg { stroke: #d9a600; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--c-text-sub); line-height: 1.7; }

/* ============ 精选作品 ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.work-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.work-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-primary-light);
}
.work-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.work-card:hover .work-cover img { transform: scale(1.06); }
.work-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px;
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 1px;
}
.work-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.work-cat {
  font-size: 12px;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.work-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.work-desc {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-cta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.work-card.dl-card {
  background: linear-gradient(150deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  border: none;
}
.work-card.dl-card .work-cover { background: transparent; }
.work-card.dl-card .work-body { padding: 0; align-items: center; text-align: center; padding: 22px 18px; }
.work-card.dl-card .dl-logo {
  width: 80px; height: 80px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  margin-bottom: 14px;
}
.work-card.dl-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.work-card.dl-card p { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.6; margin-bottom: 14px; }
.work-card.dl-card .dl-btn {
  display: inline-block;
  padding: 9px 22px;
  background: #fff;
  color: var(--c-primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* ============ 分类入口 ============ */
.categories {
  background: linear-gradient(180deg, var(--c-bg) 0%, #eef5fc 100%);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cat-item {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  border: 1px solid var(--c-line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.cat-item:hover {
  transform: translateY(-4px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
}
.cat-emoji {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-light);
}
.cat-emoji svg { width: 26px; height: 26px; stroke: var(--c-primary); fill: none; stroke-width: 1.8; }
.cat-item:nth-child(2) .cat-emoji { background: #ffeef3; }
.cat-item:nth-child(2) .cat-emoji svg { stroke: #e26a8a; }
.cat-item:nth-child(3) .cat-emoji { background: #fff1e6; }
.cat-item:nth-child(3) .cat-emoji svg { stroke: var(--c-accent); }
.cat-item:nth-child(4) .cat-emoji { background: #e9f7ee; }
.cat-item:nth-child(4) .cat-emoji svg { stroke: #3ba55d; }
.cat-item:nth-child(5) .cat-emoji { background: #fff7dd; }
.cat-item:nth-child(5) .cat-emoji svg { stroke: #d9a600; }
.cat-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cat-item p { font-size: 12px; color: var(--c-text-mute); }

/* ============ 最新资讯 ============ */
.news-list {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 12px 28px;
  box-shadow: var(--shadow-sm);
}
.news-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--c-line);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  flex-shrink: 0;
  width: 80px;
  font-size: 13px;
  color: var(--c-text-mute);
  font-variant-numeric: tabular-nums;
}
.news-title {
  flex: 1;
  font-size: 15px;
  color: var(--c-text);
  transition: color .2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item:hover .news-title { color: var(--c-primary); }
.news-arrow {
  color: var(--c-text-mute);
  transition: transform .2s, color .2s;
}
.news-item:hover .news-arrow { color: var(--c-accent); transform: translateX(4px); }

/* ============ FAQ ============ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q .faq-arrow {
  transition: transform .3s;
  color: var(--c-primary);
  font-size: 20px;
  font-weight: 400;
}
.faq-item.open .faq-q .faq-arrow { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a-inner {
  padding: 0 24px 20px;
  color: var(--c-text-sub);
  font-size: 14px;
  line-height: 1.8;
}

/* ============ 底部 CTA ============ */
.cta-final {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  top: -120px; right: -100px;
}
.cta-final::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 214, 107, .12);
  bottom: -100px; left: -60px;
}
.cta-final h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
}
.cta-final p {
  font-size: 16px;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 32px;
  position: relative;
}
.cta-final .btn-primary {
  position: relative;
  font-size: 17px;
  padding: 16px 44px;
}

/* ============ Footer ============ */
.site-footer {
  background: #16283f;
  color: rgba(255, 255, 255, .7);
  padding: 40px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-copy { line-height: 1.8; }

/* ============ 滚动揭示 ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .nav-download { display: none; }
  .hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 18px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
  }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 24px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .news-item { flex-wrap: wrap; gap: 6px; }
  .news-title { white-space: normal; }
}
@media (max-width: 420px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
}
