/* ============================================================
   漫引力 · manyinli.com.cn
   主题：紫罗兰引力场 · 暖金点缀 · 静态展示
   字体：ZCOOL QingKe HuangYou（标题） + Noto Sans SC（正文）
   ============================================================ */
:root {
  --brand: #6C5CE7;
  --brand-2: #9B8CFF;
  --brand-deep: #4A3FD1;
  --brand-dark: #241B5C;
  --bg: #F7F5FF;
  --bg-soft: #F0ECFF;
  --card: #FFFFFF;
  --gold: #FFC94D;
  --gold-soft: #FFF3D6;
  --pink: #FF9EC6;
  --ink: #221D3E;
  --ink-2: #4E4778;
  --ink-3: #8B84B8;
  --line: #E2DCFF;
  --shadow: 0 10px 30px rgba(108, 92, 231, .14);
  --radius: 14px;
  --radius-lg: 22px;
  --font-title: "ZCOOL QingKe HuangYou", "ZCOOL KuaiLe", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --maxw: 1200px;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-deep); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 2000;
}
.skip-link:focus { left: 0; }

.section-block { padding: 88px 0; }

.section-head { max-width: var(--maxw); margin: 0 auto 46px; padding: 0 24px; }
.section-head.split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 14px; letter-spacing: .3em; color: var(--brand-deep);
  text-transform: uppercase; margin-bottom: 10px; font-weight: 700;
}
.section-title {
  font-family: var(--font-title);
  font-size: 34px; line-height: 1.25; color: var(--ink); font-weight: 400;
}
.section-note { color: var(--ink-3); font-size: 14px; }

/* ---------------- 顶栏 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 255, .94);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(108, 92, 231, .12); }

.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; flex-shrink: 0; }
.brand-text strong {
  font-family: var(--font-title); font-size: 24px; font-weight: 400; color: var(--brand-dark);
}
.brand-text small { font-size: 9px; letter-spacing: .2em; color: var(--ink-3); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--ink-2);
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-link:hover { color: var(--brand-deep); background: var(--bg-soft); }
.nav-link.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 500;
}
.nav-link.nav-cta:hover { background: var(--brand-deep); color: #fff; }

.menu-toggle { display: none; width: 44px; height: 44px; border: none; background: var(--bg-soft); border-radius: 10px; }
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: var(--brand-dark);
  margin: 4px auto; border-radius: 2px; transition: transform .25s, opacity .25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1D1547 0%, #33216B 55%, #4A3FD1 100%);
  color: #fff;
}
.hero-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background:
    radial-gradient(2px 2px at 18% 22%, rgba(255, 201, 77, .9), transparent),
    radial-gradient(2px 2px at 72% 14%, rgba(255, 158, 198, .9), transparent),
    radial-gradient(1.5px 1.5px at 42% 34%, rgba(255, 255, 255, .9), transparent),
    radial-gradient(2px 2px at 84% 58%, rgba(155, 140, 255, .9), transparent),
    radial-gradient(1.5px 1.5px at 62% 82%, rgba(255, 201, 77, .8), transparent),
    radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 255, 255, .8), transparent),
    radial-gradient(2px 2px at 8% 60%, rgba(255, 158, 198, .8), transparent);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 92px 24px 130px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 201, 77, .16); border: 1px solid rgba(255, 201, 77, .5);
  color: #FFE3A3; font-size: 14px; margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-title); font-weight: 400;
  font-size: 66px; line-height: 1.05; margin-bottom: 20px;
}
.hero-title .hl { color: var(--gold); }
.hero-sub {
  font-size: 16px; color: #D6CDFF; max-width: 30em; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #3A2A05; box-shadow: 0 8px 22px rgba(255, 201, 77, .4); }
.btn-primary:hover { background: #FFD66E; }
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, .45); color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

.hero-stats {
  display: flex; gap: 34px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-stats div { text-align: left; }
.hero-stats dt { font-size: 13px; color: #C3B8FF; }
.hero-stats dd {
  font-family: var(--font-title); font-weight: 400;
  font-size: 28px; color: #fff; line-height: 1.3;
}

.hero-art { position: relative; }
.orbit { position: relative; }
.hero-art-main {
  width: 100%; border-radius: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}
.orbit-card {
  position: absolute; width: 116px; border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, .85);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}
.orbit-card img { border-radius: 10px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.orbit-card.o1 { top: -28px; left: -34px; transform: rotate(-9deg); }
.orbit-card.o2 { bottom: -34px; left: -18px; transform: rotate(7deg); }
.orbit-card.o3 { top: 40%; right: -40px; width: 100px; transform: rotate(-4deg); }

.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 74px; z-index: 1;
  background: var(--bg); clip-path: ellipse(75% 100% at 50% 100%);
}

/* ---------------- 引力推荐 ---------------- */
.featured { background: var(--bg); }
.pick-rail {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px 14px;
  display: flex; gap: 20px; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: var(--brand) transparent;
}
.pick-rail::-webkit-scrollbar { height: 8px; }
.pick-rail::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 99px; }
.pick-card {
  flex: 0 0 260px; position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.pick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pick-card img { width: 100%; height: 200px; object-fit: cover; }
.pick-info { padding: 14px 16px 18px; }
.pick-info h3 { font-family: var(--font-title); font-size: 20px; font-weight: 400; margin-bottom: 4px; }
.pick-info p { font-size: 14px; color: var(--ink-2); }
.pick-tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(36, 27, 92, .82); color: var(--gold);
  font-size: 13px; padding: 4px 12px; border-radius: 999px;
}

/* ---------------- 热门连载 ---------------- */
.serial { background: var(--bg-soft); }
.serial-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.serial-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; transition: transform .25s, box-shadow .25s;
}
.serial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.serial-card img { width: 120px; height: 160px; object-fit: cover; border-radius: 12px; }
.serial-body { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.serial-body h3 { font-size: 18px; }
.serial-author { font-size: 14px; color: var(--ink-3); }
.serial-ch { font-size: 14px; color: var(--brand-deep); font-weight: 700; }
.serial-rate { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.score { font-weight: 700; color: var(--ink-2); }
.serial-heat { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.serial-heat span {
  flex: 1; display: block; height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.serial-heat small { font-size: 13px; color: var(--ink-3); }

/* ---------------- 漫画分类 ---------------- */
.genre { background: var(--card); }
.genre-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.genre-card {
  border: none; border-radius: var(--radius-lg);
  padding: 26px 20px; text-align: left; color: #fff;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .25s, box-shadow .25s;
}
.genre-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.genre-ic { width: 46px; height: 46px; margin-bottom: 6px; }
.genre-ic svg { width: 100%; height: 100%; }
.genre-card h3 { font-family: var(--font-title); font-size: 24px; font-weight: 400; }
.genre-card p { font-size: 14px; opacity: .9; }
.g1 { background: linear-gradient(135deg, #E14E3C, #FF8A5C); }
.g2 { background: linear-gradient(135deg, #E0559A, #FF8FC4); }
.g3 { background: linear-gradient(135deg, #4A3FD1, #7A6FFF); }
.g4 { background: linear-gradient(135deg, #8B5CF6, #C4B5FD); }
.g5 { background: linear-gradient(135deg, #3E8FE0, #7BC7FF); }
.g6 { background: linear-gradient(135deg, #4E5A9E, #8B9CFF); }
.g7 { background: linear-gradient(135deg, #F2A33C, #FFD166); }
.g8 { background: linear-gradient(135deg, #5BA88F, #8FD9BC); }

/* ---------------- 创作者工坊 ---------------- */
.studio { background: var(--bg); }
.studio-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.studio-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.studio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.studio-cover img { width: 100%; height: 170px; object-fit: cover; }
.studio-info { padding: 16px 18px 20px; }
.studio-info h3 { font-size: 17px; margin-bottom: 4px; }
.studio-info p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.studio-author {
  display: inline-block; font-size: 13px; color: var(--brand-deep);
  background: var(--bg-soft); padding: 4px 12px; border-radius: 999px;
}

/* ---------------- 立即下载 ---------------- */
.download { background: var(--bg-soft); }
.download-card {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 30px;
  overflow: hidden; box-shadow: var(--shadow);
}
.download-art {
  position: relative; min-height: 100%;
  background: linear-gradient(150deg, #4A3FD1, #6C5CE7 55%, #9B8CFF);
  display: grid; place-items: center;
}
.collage {
  position: absolute; width: 30%; border-radius: 16px;
  box-shadow: 0 16px 40px rgba(29, 21, 71, .4); border: 4px solid #fff;
  aspect-ratio: 3 / 4; object-fit: cover;
}
.collage.c1 { left: 8%; top: 20%; transform: rotate(-7deg); z-index: 1; }
.collage.c2 { left: 34%; top: 34%; transform: rotate(3deg); z-index: 2; }
.collage.c3 { left: 62%; top: 8%; transform: rotate(-2deg); z-index: 1; }
.download-info { padding: 54px 50px; }
.download-desc { color: var(--ink-2); margin: 14px 0 24px; max-width: 32em; }
.platform-list {
  list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px;
}
.platform-list li {
  padding: 6px 16px; border-radius: 999px; background: var(--bg-soft);
  color: var(--brand-deep); font-size: 14px; border: 1px solid var(--line);
}
.download-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.download-actions .btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(108, 92, 231, .32); }
.download-actions .btn-primary:hover { background: var(--brand-deep); }
.download-hint { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* ---------------- 常见问题 ---------------- */
.faq { background: var(--card); }
.faq-list { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.faq-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 14px; overflow: hidden; transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; border: none; background: none;
  padding: 18px 46px 18px 22px; font-weight: 700; font-size: 15.5px;
  color: var(--ink); position: relative; font-family: inherit;
}
.faq-q::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: var(--brand-deep); font-weight: 400;
  transition: transform .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { display: none; }
.faq-item.open .faq-a { display: block; }
.faq-a p { padding: 0 22px 18px; color: var(--ink-2); font-size: 14px; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--brand-dark); color: #CEC5FF; }
.footer-main {
  max-width: var(--maxw); margin: 0 auto; padding: 60px 24px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
}
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 22em; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; font-size: 14px; padding: 12px 0; color: #B7ACF5; line-height: 1.5; }
.footer-col a:hover { color: var(--gold); }
.footer-col p span { color: #9B8CFF; }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: #9C92D8;
}

/* ---------------- 回到顶部 ---------------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(108, 92, 231, .35); opacity: 0; pointer-events: none;
  transform: translateY(14px); transition: opacity .3s, transform .3s, background .2s;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--brand-deep); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 300;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  background: var(--brand-dark); color: #fff; font-size: 14px;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(29, 21, 71, .3);
  transition: opacity .3s, transform .3s; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 1fr; padding: 72px 24px 120px; }
  .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
  .serial-grid { grid-template-columns: 1fr; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px 16px 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 13px 14px; border-radius: 10px; }
  .nav-link.nav-cta { text-align: center; }
  .hero-title { font-size: 50px; }
  .orbit-card.o1 { left: -10px; }
  .orbit-card.o3 { right: -10px; }
  .download-card { grid-template-columns: 1fr; }
  .download-art { min-height: 260px; }
  .download-info { padding: 40px 28px; }
  .section-block { padding: 64px 0; }
}
@media (max-width: 560px) {
  .brand-text small { display: none; }
  .hero-title { font-size: 38px; }
  .hero-inner { padding: 60px 18px 104px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 22px; }
  .hero-stats dd { font-size: 24px; }
  .serial-card { grid-template-columns: 92px 1fr; gap: 14px; padding: 14px; }
  .serial-card img { width: 92px; height: 124px; }
  .genre-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .genre-card { padding: 18px 16px; }
  .studio-grid { grid-template-columns: 1fr; }
  .pick-rail { padding: 0 18px 14px; }
  .section-title { font-size: 27px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .back-top { right: 16px; bottom: 16px; }
}
