/* ============================================================
   哔咔哔咔漫画 · bikabikamanhua.net.cn
   粉色主题单页样式
   ============================================================ */

:root {
  --bg: #fff7fa;
  --surface: #ffffff;
  --ink: #3b1628;
  --muted: #8a5b6f;
  --pink: #ff5c8f;
  --pink-deep: #f23b7e;
  --pink-dark: #d61f66;
  --pink-soft: #ffe9f1;
  --pink-softer: #fff3f7;
  --pink-line: #ffd3e4;
  --gold: #ffb23e;
  --footer-bg: #2a0f1e;
  --grad: linear-gradient(135deg, #ff7eb3, #ff4f8b);
  --shadow: 0 12px 32px rgba(214, 31, 102, 0.12);
  --shadow-lg: 0 24px 60px rgba(214, 31, 102, 0.18);
  --radius: 18px;
  --header-h: 72px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--pink-dark);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

section {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(244, 59, 126, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(244, 59, 126, 0.45);
}

.btn-ghost {
  background: var(--surface);
  color: var(--pink-dark);
  border: 1.5px solid var(--pink-line);
}

.btn-ghost:hover {
  border-color: var(--pink);
  background: var(--pink-softer);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
  padding: 13px 20px;
  font-size: 16px;
}

.btn-download-lg {
  background: #fff;
  color: var(--pink-dark);
  padding: 18px 44px;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(59, 22, 40, 0.22);
}

.btn-download-lg:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(59, 22, 40, 0.3);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pink-line);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(214, 31, 102, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(214, 31, 102, 0.25);
}

.brand-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.brand-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-en {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 2px;
  border: 1px solid var(--pink-line);
  border-radius: 999px;
  padding: 2px 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--pink-dark);
  background: var(--pink-softer);
}

.nav-link.active {
  color: var(--pink-dark);
  font-weight: 700;
  background: var(--pink-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--pink-soft);
  border: 0;
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--pink-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 110px;
  background:
    radial-gradient(560px 380px at 88% 12%, rgba(255, 179, 205, 0.55), transparent 70%),
    radial-gradient(480px 360px at 6% 88%, rgba(255, 227, 240, 0.9), transparent 70%),
    linear-gradient(180deg, #ffeef5 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--pink-deep);
  background: var(--pink-soft);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.hero-hl {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
  max-width: 30em;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.stat dt {
  font-size: 32px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat dd {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: 26px;
  overflow: visible;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 26px;
  border: 6px solid #fff;
}

.float-card {
  position: absolute;
  width: 118px;
  border-radius: 18px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 14px 30px rgba(59, 22, 40, 0.28);
  background: #fff;
}

.float-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.float-1 {
  top: -26px;
  right: -16px;
  transform: rotate(4deg);
  animation: floatY 5s ease-in-out infinite;
}

.float-2 {
  bottom: -30px;
  left: -22px;
  transform: rotate(-5deg);
  animation: floatY 6s ease-in-out 0.8s infinite;
}

@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ---------- 章节标题 ---------- */
.sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.sec-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--pink-deep);
  background: var(--pink-soft);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
}

.sec-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.3;
}

.sec-sub {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- APP 展示 ---------- */
.showcase {
  padding: 92px 0;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.phone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.phone {
  position: relative;
  width: min(100%, 240px);
  aspect-ratio: 9 / 17.5;
  border-radius: 32px;
  background: #fff;
  border: 9px solid #fff;
  box-shadow: 0 16px 38px rgba(214, 31, 102, 0.16);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phone:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 22px 46px rgba(214, 31, 102, 0.24);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 16px;
  border-radius: 999px;
  background: #2a0f1e;
  z-index: 2;
  opacity: 0.92;
}

.phone-cap h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.phone-cap p {
  font-size: 14px;
  color: var(--muted);
  max-width: 26em;
  margin-inline: auto;
}

/* ---------- 漫画索引 ---------- */
.catalog {
  padding: 92px 0 100px;
  background: var(--pink-softer);
  border-top: 1px solid var(--pink-line);
  border-bottom: 1px solid var(--pink-line);
}

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--pink-line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

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

.chip {
  border: 1.5px solid var(--pink-line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.16s ease;
}

.chip:hover {
  border-color: var(--pink);
  color: var(--pink-dark);
}

.chip.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(244, 59, 126, 0.3);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 22px 0 30px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  color: var(--pink);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--pink-line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-box input::placeholder {
  color: #c9a7b6;
}

.search-box input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 92, 143, 0.14);
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.comic-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(214, 31, 102, 0.08);
  border: 1px solid var(--pink-line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.comic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.comic-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
}

.comic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.comic-card:hover .comic-cover img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(59, 22, 40, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  backdrop-filter: blur(4px);
}

.badge-solid {
  background: var(--grad);
  box-shadow: 0 6px 14px rgba(244, 59, 126, 0.4);
  font-size: 13px;
  padding: 6px 14px;
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(59, 22, 40, 0.16);
  transition: transform 0.18s ease, background 0.18s ease;
}

.fav-btn svg {
  width: 19px;
  height: 19px;
}

.fav-btn:hover {
  transform: scale(1.12);
}

.fav-btn.active {
  background: var(--grad);
  color: #fff;
}

.comic-body {
  padding: 14px 16px 16px;
}

.comic-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comic-author {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.comic-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed var(--pink-line);
}

.comic-meta .hot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pink-dark);
  font-weight: 700;
}

.comic-meta .hot svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.comic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.comic-tags span {
  font-size: 11.5px;
  color: var(--pink-dark);
  background: var(--pink-softer);
  border: 1px solid var(--pink-line);
  border-radius: 999px;
  padding: 2px 9px;
}

.grid-empty {
  text-align: center;
  padding: 60px 0 30px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 特色功能 ---------- */
.features {
  padding: 92px 0;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--pink-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 8px 22px rgba(214, 31, 102, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 18px rgba(244, 59, 126, 0.32);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 作品详情 ---------- */
.detail {
  padding: 92px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--pink-softer) 100%);
}

.detail-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  background: var(--surface);
  border: 1px solid var(--pink-line);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  align-items: start;
}

.detail-cover {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(214, 31, 102, 0.22);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info .sec-tag {
  margin-bottom: 10px;
}

.detail-info h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 22px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  background: var(--pink-softer);
  border: 1px solid var(--pink-line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.detail-meta dt {
  font-size: 12px;
  color: var(--muted);
}

.detail-meta dd {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 22px;
}

.tag-list li {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-dark);
  background: var(--pink-soft);
  border-radius: 999px;
  padding: 5px 14px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.intro {
  margin-bottom: 24px;
}

.intro h3 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}

.intro p {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 60em;
}

.chapter-list {
  list-style: none;
  border: 1px solid var(--pink-line);
  border-radius: 14px;
  overflow: hidden;
}

.chapter-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  font-size: 14px;
  border-bottom: 1px dashed var(--pink-line);
}

.chapter-list li:last-child {
  border-bottom: 0;
}

.chapter-list li:hover {
  background: var(--pink-softer);
  cursor: pointer;
}

.chapter-list time {
  color: var(--muted);
  font-size: 12.5px;
  flex-shrink: 0;
}

/* ---------- 热门排行 ---------- */
.rank {
  padding: 92px 0;
  background: var(--pink-softer);
  border-top: 1px solid var(--pink-line);
}

.rank-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.rank-tab {
  border: 1.5px solid var(--pink-line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 28px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.rank-tab:hover {
  border-color: var(--pink);
  color: var(--pink-dark);
}

.rank-tab.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(244, 59, 126, 0.32);
}

.rank-list {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin-inline: auto;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 72px 1fr 200px;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--pink-line);
  border-radius: 20px;
  padding: 16px 22px;
  box-shadow: 0 8px 20px rgba(214, 31, 102, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
}

.rank-num {
  font-size: 34px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  line-height: 1;
}

.rank-item:nth-child(1) .rank-num {
  font-size: 42px;
}

.rank-cover {
  width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(214, 31, 102, 0.18);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
}

.rank-body p {
  font-size: 13.5px;
  color: var(--muted);
}

.rank-hot {
  text-align: right;
}

.rank-hot strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--pink-dark);
}

.rank-hot span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.progress {
  height: 7px;
  border-radius: 999px;
  background: var(--pink-soft);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  width: 0;
  transition: width 0.6s ease;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 92px 0;
}

.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--pink-line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.16s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--pink-dark);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink-soft);
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: var(--pink-dark);
  border-radius: 2px;
}

.faq-icon::before {
  width: 13px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 13px;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--grad);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: #fff;
}

.faq-item p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 用户评价 ---------- */
.reviews {
  padding: 92px 0;
  background: var(--pink-softer);
  border-top: 1px solid var(--pink-line);
}

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

.review-card {
  background: var(--surface);
  border: 1px solid var(--pink-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 20px rgba(214, 31, 102, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

.review-head h3 {
  font-size: 15px;
  font-weight: 700;
}

.review-head time {
  font-size: 12px;
  color: var(--muted);
}

.review-card p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 下载 CTA ---------- */
.download {
  padding: 96px 0;
  background:
    radial-gradient(520px 340px at 15% 20%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(460px 320px at 88% 80%, rgba(255, 126, 179, 0.35), transparent 70%),
    var(--grad);
  position: relative;
  overflow: hidden;
}

.download-inner {
  text-align: center;
  color: #fff;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.download-inner h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 14px;
}

.download-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 34px;
}

.download-hint {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #f4dde7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 40px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-name em {
  background: linear-gradient(135deg, #ffb3cd, #ff7eb3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: #b98da3;
  max-width: 30em;
}

.site-footer h3 {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a,
.footer-contact a {
  font-size: 14px;
  color: #b98da3;
  transition: color 0.16s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #ff8fb5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 179, 205, 0.16);
  padding: 22px 0;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: #8f6a80;
}

/* ---------- 回到顶部 / Toast ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(244, 59, 126, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  transform: translateY(-4px);
}

.back-top svg {
  width: 22px;
  height: 22px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 1800;
  translate: -50% 0;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 12px 26px;
  box-shadow: 0 14px 34px rgba(59, 22, 40, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  max-width: min(90vw, 480px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .comic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .phone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  .detail-card {
    grid-template-columns: 300px 1fr;
    padding: 30px;
    gap: 32px;
  }

  .detail-meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 20px;
    border-bottom: 1px solid var(--pink-line);
    box-shadow: 0 18px 40px rgba(214, 31, 102, 0.14);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    margin: 0;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .comic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-card {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 300px;
  }

  .rank-item {
    grid-template-columns: 44px 60px 1fr;
  }

  .rank-hot {
    grid-column: 2 / -1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .rank-hot .progress {
    flex: 1;
  }

  .rank-hot span {
    margin-bottom: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1180px, 100% - 32px);
  }

  .comic-grid,
  .feature-grid,
  .review-grid,
  .phone-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    width: min(100%, 210px);
  }

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

  .hero-stats {
    gap: 26px;
  }

  .stat dt {
    font-size: 26px;
  }

  .float-card {
    width: 96px;
  }

  .detail-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: none;
  }

  .sort-box {
    justify-content: center;
  }

  .toolbar .btn {
    align-self: center;
  }
}

/* ---------- 移动端：触控与可读性优化 ---------- */
@media (max-width: 640px) {
  .chip,
  .rank-tab,
  .sort-chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
  }

  .btn {
    min-height: 44px;
  }

  .btn-sm {
    min-height: 44px;
    padding: 10px 22px;
  }

  .fav-btn {
    width: 44px;
    height: 44px;
  }

  .eyebrow,
  .sec-tag {
    font-size: 13px;
  }

  .brand-en {
    font-size: 12px;
  }

  .badge {
    font-size: 12.5px;
    padding: 5px 13px;
  }

  .comic-author {
    font-size: 14px;
  }

  .comic-meta {
    font-size: 13px;
  }

  .comic-tags span {
    font-size: 12.5px;
    padding: 3px 10px;
  }

  .review-head time {
    font-size: 12.5px;
  }

  .search-box input,
  .field input {
    font-size: 16px;
  }

  .stat dd {
    font-size: 14.5px;
  }

  .brand {
    min-height: 44px;
  }

  .footer-nav a,
  .footer-contact a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-brand .brand {
    min-height: 44px;
  }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
