/* =========================================================
   皮皮喵漫画 · 单页官网样式
   主题：奶油暖粉 · 猫爪治愈
   移动优先（375px 起步，桌面在 min-width 断点扩展）
   ========================================================= */

:root {
  --bg: #fff8f2;
  --bg-soft: #fff0e7;
  --card: #ffffff;
  --ink: #3b2e3a;
  --text-soft: #6e5f6e;
  --muted: #9a8b99;
  --accent: #ff6b81;
  --accent-2: #ff9a62;
  --accent-soft: rgba(255, 107, 129, 0.12);
  --line: #f3e2dd;
  --grad: linear-gradient(120deg, #ff6b81 0%, #ff9a62 100%);
  --shadow: 0 18px 44px rgba(150, 90, 90, 0.14);
  --shadow-sm: 0 8px 22px rgba(150, 90, 90, 0.1);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

/* ---------- Reset / 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 90% -5%, rgba(255, 154, 98, 0.14), transparent 55%),
    radial-gradient(760px 380px at -8% 22%, rgba(255, 107, 129, 0.1), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-sm {
  font-size: 13px;
  padding: 8px 18px;
}

.btn-lg {
  font-size: 16px;
  padding: 13px 30px;
}

.btn-xl {
  font-size: 17px;
  padding: 16px 46px;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 129, 0.38);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 107, 129, 0.5);
}

.btn-ghost {
  background: var(--card);
  color: var(--text-soft);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 107, 129, 0.25);
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: none;
}

.nav-link {
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 600;
  padding: 6px 2px;
  position: relative;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 移动端导航（下拉面板） */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(255, 250, 246, 0.99);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px 20px;
  gap: 4px;
}

.main-nav.open .nav-link {
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.nav-toggle-bar {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow,
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  font-size: 44px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-top: 14px;
  color: var(--ink);
}

.hero-slogan {
  font-size: 22px;
  font-weight: 800;
  margin-top: 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

/* Hero 视觉区 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 500px;
}

.hero-card {
  position: relative;
  width: 240px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--card);
  border: 5px solid #fff;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}

.hero-card-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(59, 46, 58, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-bubble {
  position: absolute;
  right: 4px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transform: rotate(-3deg);
}

.hero-bubble-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* 爪印装饰 */
.hero-paws {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paw {
  position: absolute;
  color: rgba(255, 107, 129, 0.12);
}

.paw-1 {
  top: 12%;
  left: 4%;
  transform: rotate(-18deg);
}

.paw-2 {
  bottom: 16%;
  left: 8%;
  transform: rotate(14deg);
}

.paw-3 {
  top: 24%;
  right: 6%;
  transform: rotate(24deg);
}

/* ---------- 数据统计 ---------- */
.stats {
  padding: 10px 0 8px;
}

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

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 64px 0 8px;
}

.section-head {
  margin-bottom: 30px;
}

.section-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-top: 8px;
}

.section-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 今日精选 ---------- */
.picks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.pick-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pick-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 129, 0.45);
  box-shadow: var(--shadow);
}

.pick-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}

.pick-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
}

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

.pick-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(59, 46, 58, 0.3));
}

.pick-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.pick-chapter {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: rgba(59, 46, 58, 0.55);
  padding: 3px 10px;
  border-radius: 999px;
}

.pick-info {
  padding: 14px 16px 18px;
}

.pick-name {
  font-size: 17px;
  font-weight: 800;
}

.pick-meta {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.pick-info .btn {
  width: 100%;
}

/* ---------- 六种阅读气质 ---------- */
.genre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.genre-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.genre-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 86px;
  height: 86px;
  background: radial-gradient(circle at top right, rgba(255, 107, 129, 0.14), transparent 70%);
  border-radius: 0 0 0 100%;
  pointer-events: none;
}

.genre-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 129, 0.45);
  box-shadow: var(--shadow);
}

.genre-index {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 12px;
}

.genre-card h3 {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 800;
}

.genre-card p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13px;
}

/* ---------- 读者留言 ---------- */
.quote {
  padding: 60px 0 8px;
}

.quote-text {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  max-width: 26em;
  margin: 0 auto;
  color: var(--ink);
}

.quote-text::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad);
  margin: 0 auto 18px;
}

.quote-author {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 129, 0.45);
}

.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
}

.about-card h3 {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 800;
}

.about-card p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 14px;
}

/* ---------- 常见问题 ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item.open {
  border-color: rgba(255, 107, 129, 0.45);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.faq-arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 18px 16px;
  color: var(--text-soft);
  font-size: 14px;
}

/* ---------- 下载引导 ---------- */
.download {
  padding-bottom: 72px;
}

.download-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(480px 220px at 50% 0%, rgba(255, 107, 129, 0.18), transparent 70%),
    linear-gradient(160deg, #fff0e7, #ffe4dc);
  border: 1px solid rgba(255, 107, 129, 0.3);
  border-radius: 26px;
  padding: 56px 24px;
}

.download-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 154, 98, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.download-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.download-desc {
  margin: 14px auto 28px;
  color: var(--text-soft);
  font-size: 15px;
}

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

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

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

.footer-brand .brand-logo {
  width: 28px;
  height: 28px;
}

.footer-brand .brand-name {
  font-size: 17px;
}

.footer-slogan {
  color: var(--text-soft);
  font-size: 14px;
}

.footer-copy {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(255, 107, 129, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   断点扩展：平板 ≥640px
   ========================================================= */
@media (min-width: 640px) {
  .picks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero-title {
    font-size: 52px;
  }

  .hero-card {
    width: 250px;
  }
}

/* =========================================================
   断点扩展：桌面 ≥992px
   ========================================================= */
@media (min-width: 992px) {
  .main-nav {
    display: flex;
    gap: 30px;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    padding: 84px 0 96px;
  }

  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 30px;
  }

  .hero-title {
    font-size: 60px;
  }

  .hero-slogan {
    font-size: 26px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-card {
    width: 268px;
  }

  .hero-bubble {
    right: 12px;
    top: 40px;
  }

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

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

  .about-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 80px 0 12px;
  }

  .section-title {
    font-size: 34px;
  }

  .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
  }

  .section-note {
    margin-top: 0;
    text-align: right;
  }

  .stats-grid {
    gap: 20px;
  }

  .stat-num {
    font-size: 28px;
  }

  .quote {
    padding: 70px 0 12px;
  }

  .quote-text {
    font-size: 24px;
  }

  .download-card {
    padding: 72px 40px;
  }

  .download-title {
    font-size: 38px;
  }
}

/* ---------- 无障碍：尊重减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
