/* 迷妹漫画 — 原创「粉墨追更」移动优先风格 */
:root {
  --ink: #1a1520;
  --ink-2: #3a3344;
  --muted: #6d6475;
  --paper: #e8eaee;
  --paper-2: #f4f5f7;
  --panel: rgba(255, 255, 255, 0.72);
  --magenta: #e2186a;
  --magenta-deep: #b91054;
  --peach: #ff8f6b;
  --line: rgba(26, 21, 32, 0.1);
  --shadow: 0 16px 40px rgba(26, 21, 32, 0.12);
  --radius: 20px;
  --max: 720px;
  --pad: clamp(18px, 4.5vw, 28px);
  --float-h: 70px;
  --font-display: "ZCOOL QingKe HuangYou", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 100% -5%, rgba(226, 24, 106, 0.12), transparent 55%),
    radial-gradient(700px 420px at -10% 30%, rgba(255, 143, 107, 0.14), transparent 50%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 55%, #dde1e8 100%);
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: calc(var(--float-h) + 24px);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 250, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(226, 24, 106, 0.28);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--magenta);
  background: rgba(226, 24, 106, 0.08);
}

/* Hero — brand first, one composition */
.hero {
  position: relative;
  min-height: min(92svh, 780px);
  min-height: min(92vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(26, 21, 32, 0.15) 0%, rgba(26, 21, 32, 0.55) 48%, rgba(26, 21, 32, 0.92) 100%),
    url("../img/hero-art.png") center / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 70% 20%, rgba(226, 24, 106, 0.25), transparent 60%),
    repeating-linear-gradient(
      -12deg,
      transparent 0 18px,
      rgba(255, 255, 255, 0.02) 18px 19px
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 36px 0 44px;
  display: grid;
  gap: 14px;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 210, 225, 0.85);
  font-weight: 600;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 14vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  margin: 0;
  max-width: 18em;
  font-size: 1rem;
  color: rgba(255, 245, 248, 0.86);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  flex: 1 1 140px;
}

.btn:active { transform: scale(0.98); }
.btn:hover { transform: translateY(-1px); }

.btn-android,
.btn-primary {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--peach) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(226, 24, 106, 0.35);
}

.btn-ios,
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.92rem;
  flex: 0 0 auto;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 36px 0 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3rem);
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--ink);
}

.page-hero .lead {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 34em;
}

.crumb {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.crumb a:hover { color: var(--magenta); }

/* Sections */
.section {
  padding: 48px 0 8px;
}

.section-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.15rem);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.section-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36em;
}

.prose { color: var(--ink-2); font-size: 0.96rem; }
.prose p { margin: 0 0 12px; }

.rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.rail-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.rail-item h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: var(--ink);
}

.rail-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  padding: 18px 18px 18px 64px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(26, 21, 32, 0.04);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.panel p, .panel li { color: var(--muted); }
.panel ol, .panel ul { margin: 0; padding-left: 1.15em; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.chip-row a:hover {
  color: var(--magenta);
  border-color: rgba(226, 24, 106, 0.4);
  transform: translateY(-1px);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--magenta); }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.info-table th {
  width: 34%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer {
  margin-top: 52px;
  padding: 28px 0 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.disclaimer {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(226, 24, 106, 0.28);
  background: rgba(226, 24, 106, 0.08);
  color: var(--magenta-deep);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.5;
}

.stats-line {
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.stats-line strong {
  color: var(--magenta);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 12px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links a:hover { color: var(--magenta); }

.footer-meta {
  margin: 0;
  color: #8a8194;
  font-size: 0.78rem;
}

/* Float bar */
.float-dl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(26, 21, 32, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 30px rgba(26, 21, 32, 0.28);
}

.float-dl.is-show { transform: translateY(0); }

.float-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.float-inner .btn { flex: none; min-height: 44px; border-radius: 14px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-10px); }
}

@media (min-width: 768px) {
  .hero { align-items: center; }
  .hero-inner { padding: 72px 0; max-width: 28rem; }
  .cta-row { width: auto; }
  .btn { flex: 0 0 auto; min-width: 148px; }
  .steps { grid-template-columns: 1fr; }
  .float-inner { grid-template-columns: 1fr 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 520px) {
  .nav-links a:nth-child(n+3) { display: none; }
}