/* =========================================================
   漫引力 manyinli.com.cn · 全站样式
   主题：落日玫瑰 × 奶油杏（暖色系，配 Q 版图标与漫画封面）
   ========================================================= */

:root {
  --bg:        #FFF8F4;
  --bg-soft:   #FFEDE3;
  --card:      #FFFFFF;
  --ink:       #3A2428;
  --ink-soft:  #8C6B6E;
  --brand:     #E0556B;
  --brand-deep:#C43E54;
  --brand-dark:#8E2A3D;
  --brand-soft:#FFD9E0;
  --line:      #F3D9CC;
  --accent:    #F2A65A;
  --accent-soft:#FFE8D1;
  --shadow:    0 16px 40px rgba(224, 85, 107, 0.14);
  --radius:    18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-deep); }
::selection { background: var(--brand-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  text-decoration: none; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-lg { padding: 16px 44px; font-size: 17px; }
.btn-sm { padding: 10px 24px; font-size: 14px; min-height: 44px; }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 12px 26px rgba(224, 85, 107, 0.32);
}
.btn-primary:hover {
  background: var(--brand-deep); transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(224, 85, 107, 0.36);
}
.btn-primary:active { transform: translateY(0); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 4px 12px rgba(224, 85, 107, 0.20);
}
.brand-name {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 24px; color: var(--ink); line-height: 1;
}
.brand-domain {
  font-size: 12px; color: var(--ink-soft);
  border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.4;
}
.nav-menu { display: flex; gap: 26px; }
.nav-menu a {
  color: var(--ink-soft); font-size: 15px; font-weight: 500; text-decoration: none;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-menu a:hover { color: var(--brand-deep); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 96px; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(242, 166, 90, 0.22), transparent 62%),
    radial-gradient(700px 380px at -8% 112%, rgba(224, 85, 107, 0.10), transparent 62%),
    var(--bg);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 14px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--brand-deep); text-transform: uppercase;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-title {
  margin: 18px 0 0;
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400; font-size: clamp(38px, 5.6vw, 60px); line-height: 1.18; color: var(--ink);
}
.hero-title em {
  display: block; font-style: normal; color: var(--brand-deep);
  font-size: 0.78em; margin-top: 6px;
}
.hero-desc {
  margin: 22px 0 0; max-width: 520px;
  font-size: 17px; line-height: 1.9; color: var(--ink-soft);
}
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--ink-soft); }
.hero-stats {
  margin: 44px 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--line); display: flex; list-style: none;
}
.hero-stat { flex: 1; padding: 0 24px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat + .hero-stat { border-left: 1px solid var(--line); }
.hero-stat dt {
  margin: 0;
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 30px; line-height: 1.1; color: var(--ink);
}
.hero-stat dd { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }

.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px;
}
.mascot-card {
  width: min(280px, 78%); background: var(--card);
  border-radius: 32px; padding: 28px; box-shadow: var(--shadow); transform: rotate(-2deg);
}
.mascot-card img { width: 100%; height: auto; border-radius: 20px; }
.mascot-badge {
  position: absolute; top: 4%; left: 4%;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(242, 166, 90, 0.42); white-space: nowrap;
}

/* ---------- 区块通用 ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-eyebrow {
  margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--brand-deep); text-transform: uppercase;
}
.section-head h2 { margin: 12px 0 0; font-size: 34px; font-weight: 700; color: var(--ink); }
.section-desc { margin: 14px 0 0; font-size: 15px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- 作品展示 ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.art-card {
  background: var(--card); border-radius: 24px; padding: 14px;
  box-shadow: var(--shadow); transform: rotate(0.6deg);
}
.art-card img { width: 100%; height: auto; border-radius: 16px; }
.showcase-meta {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 20px; flex-wrap: wrap;
}
.showcase-num {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 20px; color: var(--accent);
}
.showcase-meta h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.showcase-tag { font-size: 14px; color: var(--ink-soft); }

/* ---------- 内容分类 ---------- */
.genres-panel {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 32px; padding: 52px 48px;
}
.genre-block + .genre-block { margin-top: 30px; }
.genre-label { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--brand-deep); }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-size: 14px; padding: 8px 18px; border-radius: 999px; line-height: 1.4;
}
.chip-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 热门排行 ---------- */
.rank-tabs { display: flex; justify-content: center; gap: 10px; margin: -22px 0 38px; }
.rank-tab {
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 14px; padding: 8px 22px; border-radius: 999px; line-height: 1.4;
}
.rank-tab-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rank-card {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px;
  box-shadow: 0 10px 26px rgba(224, 85, 107, 0.08);
}
.rank-num {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 46px; line-height: 1; color: var(--accent);
}
.rank-body h3 { margin: 8px 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.rank-tags { margin: 0; font-size: 14px; letter-spacing: 0.04em; color: var(--ink-soft); }
.rank-stat { margin: 0; font-size: 14px; color: var(--ink-soft); }
.rank-stat strong { color: var(--brand-deep); font-size: 16px; font-weight: 600; }

/* ---------- 阅读特色 ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.detail-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 24px;
}
.detail-label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--brand-deep); }
.detail-card h3 { margin: 12px 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.detail-card p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 26px;
}
.faq-item h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.faq-item p { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.faq-item a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }

/* ---------- 用户评价 ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px;
}
.review-text { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-soft); flex: 1; }
.review-meta {
  margin-top: 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.review-author { font-size: 14px; font-weight: 600; color: var(--ink); }
.review-meta time { font-size: 12px; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta-panel {
  position: relative; overflow: hidden;
  background: var(--brand-dark); border-radius: 32px;
  padding: 72px 40px; text-align: center;
}
.cta-panel::before, .cta-panel::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.cta-panel::before {
  width: 320px; height: 320px; right: -90px; top: -110px;
  background: rgba(242, 166, 90, 0.30);
}
.cta-panel::after {
  width: 260px; height: 260px; left: -80px; bottom: -120px;
  background: rgba(255, 217, 224, 0.18);
}
.cta-eyebrow {
  position: relative; margin: 0; font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em; color: rgba(255,255,255,0.72); text-transform: uppercase;
}
.cta-panel h2 {
  position: relative; margin: 14px 0 0;
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400; font-size: 40px; color: #fff;
}
.cta-desc {
  position: relative; margin: 16px 0 0; font-size: 15px; color: rgba(255,255,255,0.86);
}
.cta-panel .btn { position: relative; margin-top: 34px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--brand-dark); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 44px 24px;
}
.footer-brand .brand-name { color: #fff; }
.footer-domain { margin: 8px 0 0; font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a {
  color: rgba(255,255,255,0.75); font-size: 14px; text-decoration: none;
  padding: 11px 0; transition: color .18s ease;
}
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px; font-size: 12px; color: rgba(255,255,255,0.55);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 0 72px; }
  .hero-visual { min-height: 0; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}
@media (max-width: 960px) {
  .showcase-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .rank-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .genres-panel { padding: 40px 28px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 14px;
    box-shadow: 0 20px 30px rgba(224, 85, 107, 0.08);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-menu a + a { border-top: 1px solid var(--line); }
  .nav-menu a:hover { border-color: transparent; color: var(--brand-deep); }
  .header-inner { height: 64px; }
  .brand-domain { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 28px; }
  .hero-title { font-size: 34px; }
  .hero-desc { font-size: 15px; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .hero-stat { padding: 0 18px; }
  .review-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 56px 24px; }
  .cta-panel h2 { font-size: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
