/* =========================================================
   蛋圈漫画 · 单页官网样式 v2
   主题：蛋壳实验室 · 奶油黄×青柠清新
   移动优先（375px 起步，桌面在 min-width 断点扩展）
   ========================================================= */

:root {
  --bg: #fdfbf3;
  --bg-soft: #fff6e3;
  --card: #ffffff;
  --ink: #3d3525;
  --text-soft: #6e624c;
  --muted: #a3967c;
  --accent: #ffb300;
  --accent-2: #ff8a3d;
  --grad: linear-gradient(120deg, #ffb300 0%, #ff8a3d 100%);
  --mint: #a9d964;
  --peach: #ffe3d0;
  --lilac: #e6dffb;
  --sky: #dceff7;
  --cream: #f7f0de;
  --line: #f0e8d8;
  --shadow: 0 18px 44px rgba(150, 110, 40, 0.12);
  --shadow-sm: 0 8px 22px rgba(150, 110, 40, 0.08);
  --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, 179, 0, 0.12), transparent 55%),
    radial-gradient(760px 380px at -8% 20%, rgba(169, 217, 100, 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: #4a2c00;
  box-shadow: 0 10px 24px rgba(255, 165, 0, 0.35);
}

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

.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-2);
  transform: translateY(-2px);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 243, 0.9);
  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 4px 12px rgba(255, 165, 0, 0.4);
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.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-2);
}

.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, 253, 247, 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 40px;
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

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

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

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

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

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

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

/* Hero 底部海报卡 */
.hero-poster-wrap {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

.hero-poster {
  position: relative;
  width: 300px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--card);
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

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

.hero-poster-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--grad);
  color: #4a2c00;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255, 165, 0, 0.4);
}

/* 圆形装饰 */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.22), rgba(255, 179, 0, 0.04) 70%);
  top: -60px;
  right: -60px;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(169, 217, 100, 0.2), rgba(169, 217, 100, 0.04) 70%);
  bottom: 60px;
  left: -70px;
}

/* ---------- 数据统计（圆形卡） ---------- */
.stats {
  padding: 14px 0 8px;
}

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

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  background: var(--grad);
  color: #4a2c00;
  box-shadow: 0 12px 28px rgba(255, 165, 0, 0.28);
  padding: 14px;
}

.stat:nth-child(2) {
  background: linear-gradient(120deg, #ffb300, #ffd54d);
}

.stat:nth-child(3) {
  background: linear-gradient(120deg, #ff8a3d, #ffb300);
}

.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}

/* ---------- 功能横幅 ---------- */
.features {
  padding: 26px 0 8px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 0, 0.45);
}

.feature-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.dot-yellow {
  background: #ffb300;
}

.dot-mint {
  background: #a9d964;
}

.dot-peach {
  background: #ff8a3d;
}

.dot-lilac {
  background: #b9a6f0;
}

.feature-item h3 {
  font-size: 16px;
  font-weight: 800;
}

.feature-item p {
  font-size: 13px;
  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 {
  position: relative;
  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, 179, 0, 0.5);
  box-shadow: var(--shadow);
}

.pick-no {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-size: 15px;
  font-weight: 900;
  font-style: italic;
  color: #4a2c00;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 3px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pick-cover {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--bg-soft);
}

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

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

.pick-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 74%, rgba(61, 53, 37, 0.28));
}

.pick-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: var(--grad);
  color: #4a2c00;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  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 {
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genre-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tint-yellow {
  background: linear-gradient(160deg, #fff6d6, #fffdf5);
}

.tint-mint {
  background: linear-gradient(160deg, #eff7dd, #fdfef9);
}

.tint-peach {
  background: linear-gradient(160deg, #ffe9d9, #fffaf5);
}

.tint-lilac {
  background: linear-gradient(160deg, #f1ecfd, #fbfaff);
}

.tint-sky {
  background: linear-gradient(160deg, #e9f6fb, #fbfefe);
}

.tint-cream {
  background: linear-gradient(160deg, #faf3e0, #fffdf6);
}

.genre-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--card);
  color: var(--accent-2);
  font-size: 17px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.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-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-row:hover {
  transform: translateX(6px);
  border-color: rgba(255, 179, 0, 0.45);
}

.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--grad);
  color: #4a2c00;
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3);
}

.about-text h3 {
  font-size: 17px;
  font-weight: 800;
}

.about-text p {
  margin-top: 4px;
  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, 179, 0, 0.5);
}

.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-2);
}

.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, 179, 0, 0.24), transparent 70%),
    linear-gradient(160deg, #fff6d6, #ffe9c8);
  border: 1px solid rgba(255, 179, 0, 0.35);
  border-radius: 26px;
  padding: 56px 24px;
}

.download-card::before {
  content: "";
  position: absolute;
  left: -34px;
  top: -34px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(169, 217, 100, 0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.download-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 138, 61, 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: 30px;
  height: 30px;
}

.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: #4a2c00;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(255, 165, 0, 0.42);
  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) {
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

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

  .nav-toggle {
    display: none;
  }

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

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

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

  .hero-poster {
    width: 340px;
  }

  .stats-grid {
    gap: 26px;
  }

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

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

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

  .genre-grid {
    grid-template-columns: repeat(3, 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;
  }

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

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

  .about-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .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;
  }
}
