/* ==========================================================
   女神漫画 · xupen.cn
   专题网格 / 榜单风格
   ========================================================== */

:root {
  --tomato: #e64a2e;
  --tomato-deep: #c93a21;
  --tomato-soft: #ffe9e2;
  --butter: #ffd34d;
  --butter-soft: #fff3c9;
  --cream: #fffaf3;
  --card: #ffffff;
  --ink: #2b2523;
  --ink-soft: #6a5f5a;
  --ink-faint: #9b8e88;
  --line: #efe4d8;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 18px;
  --shadow: 0 20px 44px -30px rgba(43, 37, 35, .45);
}

* { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  background-image: radial-gradient(rgba(230, 74, 46, .09) 1px, transparent 1px);
  background-size: 26px 26px;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.01em; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 99;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 头部 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 243, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.18; }
.brand-txt strong { font-size: 19px; letter-spacing: .02em; }
.brand-txt em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--ink-faint);
  margin-top: 2px;
}

.nav { display: flex; gap: 8px; margin-left: auto; }
.nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--tomato-soft); color: var(--tomato-deep); }

.btn-top {
  flex: 0 0 auto;
  background: var(--tomato);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 20px -12px rgba(230, 74, 46, .9);
  transition: background .2s, transform .2s;
}
.btn-top:hover { background: var(--tomato-deep); transform: translateY(-1px); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 70px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--butter);
  color: #5c4400;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 0 4px rgba(230, 74, 46, .18);
}

.hero h1 {
  font-size: clamp(46px, 6.6vw, 78px);
  line-height: 1.06;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.hero-sub {
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 700;
  color: var(--tomato-deep);
  margin-bottom: 18px;
}

.lede {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 32em;
  line-height: 1.9;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn-main {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: var(--tomato);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 13px 38px;
  border-radius: 16px;
  box-shadow: 0 18px 30px -16px rgba(230, 74, 46, .8);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-main span { font-size: 11px; font-weight: 500; letter-spacing: .06em; opacity: .9; }
.btn-main:hover {
  background: var(--tomato-deep);
  transform: translateY(-2px);
  box-shadow: 0 24px 38px -16px rgba(230, 74, 46, .85);
}

.txt-link {
  font-size: 14.5px;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--butter);
  padding-bottom: 2px;
  font-weight: 600;
  transition: color .2s, border-color .2s;
}
.txt-link:hover { color: var(--tomato-deep); border-color: var(--tomato); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}
.chips li {
  font-size: 12.5px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}

/* 右侧 2x2 封面 */

.grid-cover {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 6px 14px;
}

.gc {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
}
.gc img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.gc span {
  position: absolute;
  left: 9px;
  top: 9px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.gc-1 { transform: rotate(-3deg); }
.gc-2 { transform: rotate(2.5deg) translateY(14px); }
.gc-3 { transform: rotate(2deg) translateY(-8px); }
.gc-4 { transform: rotate(-2.5deg) translateY(6px); }

.sticker {
  position: absolute;
  right: -6px;
  bottom: -10px;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--butter);
  color: #5c4400;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  border-radius: 50%;
  transform: rotate(-12deg);
  box-shadow: 0 14px 24px -14px rgba(140, 100, 0, .7);
}

/* ---------- 跑马灯 ---------- */

.marquee {
  overflow: hidden;
  background: var(--tomato);
  color: #fff;
  padding: 12px 0;
}
.marquee-in {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .1em;
  animation: slide 26s linear infinite;
}
.marquee-in b { font-size: 10px; opacity: .7; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 通用板块 ---------- */

.section { padding: 80px 0; }

.sec-head { margin-bottom: 40px; }
.sec-tag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--tomato);
  margin-bottom: 10px;
}
.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.25;
  margin-bottom: 8px;
}
.sec-note { font-size: 14px; color: var(--ink-faint); }

/* ---------- 本周专题 ---------- */

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

.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.topic::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
}
.t-a::before { background: var(--tomato); }
.t-b::before { background: var(--butter); }
.t-c::before { background: #6f8f6a; }

.tp-no {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.tp-top h3 { font-size: 21px; line-height: 1.35; margin-bottom: 8px; }
.tp-desc { font-size: 13.5px; color: var(--ink-soft); min-height: 46px; }

.tp-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 16px;
}
.tp-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 8px 16px -12px rgba(43, 37, 35, .7);
}

.tp-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.tp-list li {
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}
.tp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--butter);
}

.tp-go {
  margin-top: auto;
  align-self: flex-start;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tomato-deep);
  background: var(--tomato-soft);
  padding: 9px 20px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.tp-go:hover { background: var(--tomato); color: #fff; }

/* ---------- 热门榜 ---------- */

.sec-rank {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 44px;
}

.rank-list { display: flex; flex-direction: column; }

.rank-list li {
  display: grid;
  grid-template-columns: 34px 1fr 92px 32px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.rank-list li:last-child { border-bottom: none; }

.rk-no {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-faint);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.rank-list li:nth-child(1) .rk-no,
.rank-list-2 li:nth-child(1) .rk-no { color: var(--tomato); }
.rank-list li:nth-child(2) .rk-no,
.rank-list-2 li:nth-child(2) .rk-no { color: #d6902a; }
.rank-list li:nth-child(3) .rk-no,
.rank-list-2 li:nth-child(3) .rk-no { color: #a98252; }

.rk-body { min-width: 0; }
.rk-body a {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  transition: color .2s;
}
.rk-body a:hover { color: var(--tomato-deep); }
.rk-body em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rk-bar {
  display: block;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.rk-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--butter), var(--tomato));
  border-radius: 999px;
}

.rank-list b {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rank-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 20px; }

/* ---------- 短评墙 ---------- */

.wall {
  columns: 3;
  column-gap: 18px;
}

.note {
  break-inside: avoid;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 18px;
  box-shadow: 0 12px 26px -24px rgba(43, 37, 35, .6);
}
.note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 10px 0 12px;
}
.note .n-head { display: flex; align-items: center; gap: 8px; }
.n-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--tomato);
  flex: 0 0 auto;
}
.note .n-head strong { font-size: 13.5px; }
.n-star { margin-left: auto; font-size: 11px; color: #d6902a; letter-spacing: .05em; }
.n-src { font-size: 11px; color: var(--ink-faint); }

.n-b .n-av { background: #6f8f6a; }
.n-c .n-av { background: #c98b2e; }
.n-d .n-av { background: #8a6fa8; }
.n-e .n-av { background: #4a7c8f; }
.n-f .n-av { background: #a85c5c; }
.n-g .n-av { background: #5f6f8a; }
.n-h .n-av { background: #7a8f5f; }

.n-d { background: var(--butter-soft); border-color: #f2e0a6; }
.n-f { background: var(--tomato-soft); border-color: #f8d6cb; }

/* ---------- 三步安装 ---------- */

.sec-install {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-top: 1px solid var(--line);
}

.steps {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.st-no {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--tomato-deep);
  background: var(--tomato-soft);
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

.st-arrow {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: var(--tomato);
  opacity: .55;
}

/* ---------- FAQ ---------- */

.faq-wrap { max-width: 980px; }
.faq-wrap .sec-head { text-align: center; margin-bottom: 34px; }

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
  transition: border-color .2s;
}
.faq details[open] { border-color: #f3c9bd; }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 26px 17px 0;
  font-size: 15px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 13px;
  font-size: 20px;
  font-weight: 400;
  color: var(--tomato);
  transition: transform .25s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  padding: 0 10px 18px 0;
  margin-top: -2px;
}

/* ---------- 结尾 ---------- */

.final {
  background: linear-gradient(120deg, var(--tomato) 0%, #f0703f 58%, #f2a03d 100%);
  color: #fff;
  padding: 60px 0;
}
.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.final h2 { font-size: clamp(25px, 3.2vw, 34px); margin-bottom: 8px; }
.final p { font-size: 14.5px; color: rgba(255, 255, 255, .88); max-width: 38em; }
.btn-final {
  background: #fff;
  color: var(--tomato-deep);
  box-shadow: 0 18px 30px -18px rgba(90, 30, 10, .9);
  flex: 0 0 auto;
}
.btn-final span { color: var(--ink-soft); }
.btn-final:hover { background: var(--butter); color: #5c4400; }

/* ---------- 页脚 ---------- */

.site-footer {
  background: #2b2523;
  color: rgba(255, 250, 243, .58);
  padding: 28px 0;
  font-size: 12.5px;
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.f-brand { color: rgba(255, 250, 243, .92); font-weight: 700; }

/* ---------- 响应式 ---------- */

@media (max-width: 1020px) {
  .shell { width: calc(100% - 40px); }

  .hero { padding: 46px 0 54px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-cover { max-width: 470px; margin: 0 auto; width: 100%; }

  .topic-grid { grid-template-columns: 1fr; }
  .topic { max-width: none; }
  .tp-desc { min-height: 0; }
  .tp-covers img { aspect-ratio: 2 / 3; }

  .rank-grid { grid-template-columns: 1fr; gap: 0; }
  .rank-list li { grid-template-columns: 32px 1fr 70px 28px; }

  .wall { columns: 2; }

  .steps { flex-direction: column; }
  .st-arrow { display: none; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 14px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 10px; }

  .burger { display: flex; margin-left: 2px; }
  .btn-top { padding: 10px 17px; font-size: 13px; }
  .brand-txt em { display: none; }

  .hero h1 { font-size: clamp(42px, 13vw, 56px); }
  .cta-row { gap: 14px; }
  .btn-main { width: 100%; }
  .chips { margin-top: 24px; }

  .grid-cover { gap: 12px; padding: 4px 8px; }
  .sticker { width: 76px; height: 76px; font-size: 13px; right: -2px; }

  .section { padding: 54px 0; }
  .sec-head { margin-bottom: 28px; }

  .topic { padding: 20px 18px 18px; }
  .tp-top h3 { font-size: 19px; }

  .rank-list li { grid-template-columns: 30px 1fr 26px; padding: 12px 0; }
  .rk-bar { display: none; }
  .rk-body a { font-size: 15px; }

  .wall { columns: 1; }

  .faq { grid-template-columns: 1fr; }
  .final { padding: 46px 0; }
  .btn-final { width: 100%; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 7px; }
}

@media (max-width: 400px) {
  .btn-top { padding: 9px 13px; font-size: 12.5px; }
  .head-row { gap: 10px; }
  .brand-txt strong { font-size: 17px; }
}

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