/* =========================================================
   栗子漫画 style.css — 暖栗黄 × 焦糖棕 × 奶油白
   ========================================================= */
:root {
  --cream: #FFF9EF;
  --cream-2: #FFF3DC;
  --gold: #F2A93B;
  --gold-deep: #E08E2B;
  --chestnut: #B0703C;
  --caramel: #8C5A2B;
  --ink: #4A3220;
  --ink-soft: #6B513A;
  --line: #EED9B8;
  --white: #FFFFFF;
  --shadow: 0 14px 34px rgba(140, 90, 43, .14);
  --shadow-sm: 0 6px 16px rgba(140, 90, 43, .10);
  --radius: 18px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1200px, 92%); margin: 0 auto; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 239, .96);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .5px; color: var(--caramel); }
.nav-links { display: flex; gap: 26px; margin-left: 20px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--chestnut); }
.nav-cta {
  margin-left: auto;
  background: var(--caramel);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--chestnut); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(242, 169, 59, .35), transparent 42%),
    radial-gradient(circle at 12% 82%, rgba(176, 112, 60, .22), transparent 40%),
    linear-gradient(160deg, #FFE9B8 0%, #FFF3DC 55%, #FFF9EF 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 88px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--chestnut);
  background: rgba(255, 255, 255, .75);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
  color: var(--caramel);
}
.hero-sub {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 34em;
}
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 16px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px rgba(242, 169, 59, .45); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .85); color: var(--caramel); border: 1.5px solid var(--gold); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  list-style: none;
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--caramel);
}
.hero-stats span { font-size: 13px; color: var(--ink-soft); }
.hero-visual { position: relative; }
.hero-img {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.hero-badge {
  position: absolute;
  background: #fff;
  color: var(--caramel);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  animation: floaty 4s ease-in-out infinite;
}
.hero-badge-a { top: 22px; left: -18px; }
.hero-badge-b { bottom: 26px; right: -12px; animation-delay: 2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section-tint { background: var(--cream-2); }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.sec-en {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.sec-head h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--caramel);
}
.sec-desc { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.sec-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--chestnut);
  background: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background .2s;
}
.sec-more:hover { background: var(--gold); color: var(--ink); }

/* ---------- 新作上架 ---------- */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.tag-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-meta { padding: 16px 18px 20px; }
.card-meta h3 { font-size: 18px; font-weight: 800; color: var(--caramel); }
.card-meta p { font-size: 12.5px; color: var(--gold-deep); font-weight: 600; margin-top: 3px; }
.card-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
  min-height: 2.7em;
}
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--caramel);
  border-radius: 999px;
  padding: 7px 18px;
  transition: background .2s;
}
.card-link:hover { background: var(--chestnut); }

/* ---------- 人气榜单 ---------- */
.rank-list { list-style: none; display: grid; gap: 14px; }
.rank-item {
  display: grid;
  grid-template-columns: 52px 52px 1fr 200px 110px;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.rank-item:hover { transform: translateX(6px); }
.rank-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--cream-2);
  color: var(--caramel);
  font-size: 18px;
  font-weight: 900;
}
.rank-item:nth-child(1) .rank-no { background: var(--gold); color: #fff; }
.rank-item:nth-child(2) .rank-no { background: #E8C48F; color: #fff; }
.rank-item:nth-child(3) .rank-no { background: #D9A86B; color: #fff; }
.rank-cover { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.rank-info h3 { font-size: 16px; font-weight: 800; color: var(--caramel); }
.rank-info p { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.rank-heat { position: relative; }
.rank-heat i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.rank-heat span {
  position: absolute;
  top: -20px;
  right: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--chestnut);
}
.rank-btn {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--caramel);
  border-radius: 999px;
  padding: 9px 16px;
  transition: background .2s;
}
.rank-btn:hover { background: var(--chestnut); }

/* ---------- 追更日历 ---------- */
.cal-scroll { overflow-x: auto; padding-bottom: 6px; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  min-width: 900px;
}
.cal-day {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cal-day.is-today {
  border: 2px solid var(--gold);
  background: var(--cream-2);
}
.cal-week {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--chestnut);
  background: var(--cream-2);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.cal-day.is-today .cal-week { background: var(--gold); color: #fff; }
.cal-name { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- 漫画拼盘 ---------- */
.platter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.platter {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, border-color .22s;
}
.platter:hover { transform: translateY(-5px); border-color: var(--gold); }
.platter-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--cream-2);
  color: var(--chestnut);
  margin-bottom: 12px;
}
.platter-ico svg { width: 28px; height: 28px; }
.platter h3 { font-size: 17px; font-weight: 800; color: var(--caramel); }
.platter p { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 栗友留言 ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.note {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.note blockquote { font-size: 15px; color: var(--ink); }
.note figcaption {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--chestnut);
}

/* ---------- 立即下载 ---------- */
.section-cta {
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 169, 59, .5), transparent 45%),
    linear-gradient(140deg, #8C5A2B, #B0703C 60%, #C58A52);
  color: #fff;
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 36px; font-weight: 900; letter-spacing: 1px; }
.cta-inner p { margin-top: 12px; font-size: 16px; color: #F7E8CF; }
.btn-download {
  margin-top: 26px;
  background: var(--gold);
  color: var(--ink);
  font-size: 18px;
  padding: 16px 46px;
  box-shadow: 0 12px 30px rgba(242, 169, 59, .5);
}
.btn-download:hover { background: #FFBE55; transform: translateY(-2px); }
.cta-note {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: #F7E8CF;
}

/* ---------- FAQ ---------- */
.faq-inner { max-width: 780px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 20px;
  box-shadow: var(--shadow-sm);
}
.faq-list summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--caramel);
  padding: 13px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--gold-deep);
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 16px; font-size: 14px; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #EBDCC8; margin-top: 20px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 56px 0 40px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-logo { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 6px; }
.footer-brand strong { font-size: 19px; font-weight: 800; color: var(--gold); }
.footer-brand p { font-size: 13.5px; color: #CBB79B; }
.footer-col h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: #EBDCC8; margin-bottom: 9px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
  padding: 18px 0;
  font-size: 12.5px;
  color: #A99478;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .shelf-grid { grid-template-columns: repeat(2, 1fr); }
  .platter-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-grid { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: 52px 52px 1fr 110px; }
  .rank-heat { display: none; }
}
@media (max-width: 720px) {
  .topbar-inner { height: 60px; gap: 12px; }
  .nav-links { display: none; }
  .nav-cta { padding: 8px 16px; font-size: 13px; }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 32px; }
  .hero-badge-a { left: 8px; }
  .hero-badge-b { right: 8px; }
  .hero-stats { gap: 20px; }
  .section { padding: 56px 0; }
  .sec-head h2 { font-size: 26px; }
  .shelf-grid { grid-template-columns: 1fr; }
  .platter-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rank-item { grid-template-columns: 44px 44px 1fr; }
  .rank-btn { grid-column: 3; }
  .card-link, .rank-btn, .sec-more, .footer-col a, .footer-col p { min-height: 44px; }
  .card-link, .rank-btn, .sec-more { display: inline-flex; align-items: center; justify-content: center; }
  .footer-col a, .footer-col p { display: flex; align-items: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 44px 0 32px; }
}
