/* ==========================================================================
   漫蛙漫画 manwamhapp — 单页官网样式表
   Theme: 青蛙绿 · 清新 · 现代化
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --green-950: #052e16;
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-300: #86efac;
  --green-200: #bbf7d0;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;

  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;

  --ink: #10231a;
  --ink-soft: #33473d;
  --muted: #5f746a;
  --line: #e2efe7;
  --bg: #f7fbf8;
  --card: #ffffff;
  --shadow-sm: 0 2px 10px rgba(16, 84, 45, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 84, 45, 0.10);
  --shadow-lg: 0 20px 50px rgba(16, 84, 45, 0.16);
  --grad-main: linear-gradient(135deg, #16a34a 0%, #0d9488 100%);
  --grad-soft: linear-gradient(135deg, #dcfce7 0%, #ccfbf1 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.45);
}

.btn-ghost {
  background: #fff;
  color: var(--green-700);
  border: 1.5px solid var(--green-300);
}

.btn-ghost:hover {
  border-color: var(--green-500);
  background: var(--green-50);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 34px;
  font-size: 16.5px;
}

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

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(247, 251, 248, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

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

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

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad-main);
  transition: width 0.28s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-700);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s 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: 150px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(700px 420px at 12% -10%, rgba(74, 222, 128, 0.22), transparent 60%),
    radial-gradient(620px 420px at 92% 8%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(520px 380px at 55% 110%, rgba(134, 239, 172, 0.20), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  border: 1px solid var(--green-200);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.hero-title-grad {
  display: block;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 2px 0;
}

.hero-desc {
  margin-top: 18px;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 520px;
}

.hot-tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hot-tags-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-600);
  background: var(--teal-100);
  border-radius: 6px;
  padding: 3px 9px;
}

.hot-tags a {
  font-size: 13.5px;
  color: var(--green-800);
  background: #fff;
  border: 1px solid var(--green-200);
  border-radius: 999px;
  padding: 5px 14px;
  transition: all 0.25s ease;
}

.hot-tags a:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  color: #fff;
  transform: translateY(-2px);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.hero-meta i {
  font-style: normal;
  margin: 0 8px;
  color: var(--green-300);
}

/* ---------- 手机模拟框 ---------- */
.hero-phone {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone {
  width: 300px;
  background: #0b2e1d;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 30px 70px rgba(16, 84, 45, 0.28),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #0b2e1d;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.phone-screen {
  background: #f3faf6;
  border-radius: 34px;
  overflow: hidden;
  height: 590px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ps-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: #f3faf6;
}

.ps-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ps-icons i {
  width: 14px;
  height: 8px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  position: relative;
}

.ps-icons i:nth-child(2) {
  width: 12px;
}

.ps-icons i:nth-child(3) {
  width: 10px;
}

.ps-icons i::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  opacity: 0.9;
}

.ps-appbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 10px;
}

.ps-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.ps-appbar b {
  font-size: 15px;
  color: var(--ink);
  flex: 1;
}

.ps-ver {
  font-size: 10px;
  color: var(--muted);
  background: var(--green-100);
  padding: 2px 7px;
  border-radius: 999px;
}

.ps-search {
  margin: 0 18px 12px;
  background: #eaf6ef;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  color: #8aa396;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-search::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #8aa396;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.ps-search::after {
  content: "";
  width: 6px;
  height: 2px;
  background: #8aa396;
  transform: rotate(45deg) translate(3px, -2px);
  border-radius: 1px;
}

/* 轮播 */
.ps-carousel {
  position: relative;
  margin: 0 18px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 5 / 6.4;
  background: #e2efe7;
}

.ps-slides {
  height: 100%;
}

.ps-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.ps-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.ps-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: linear-gradient(transparent, rgba(5, 46, 22, 0.78));
  color: #fff;
  font-size: 12px;
  padding: 26px 12px 10px;
  border-radius: 0 0 14px 14px;
}

.ps-dots {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.ps-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: all 0.3s ease;
}

.ps-dots i.active {
  width: 16px;
  background: #fff;
}

.ps-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 18px 8px;
}

.ps-comic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 18px;
}

.ps-comic-grid figure {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

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

.ps-comic-grid figcaption {
  font-size: 10px;
  color: var(--ink);
  padding: 6px 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.ps-comic-grid figcaption small {
  color: #f59e0b;
  font-weight: 700;
}

.ps-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding: 12px 18px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.ps-tabbar .on {
  color: var(--green-600);
  font-weight: 700;
}

/* 手机悬浮提醒卡片 */
.phone-float-card {
  position: absolute;
  right: -26px;
  bottom: 44px;
  background: #fff;
  border: 1px solid var(--green-200);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: floatY 4s ease-in-out infinite;
}

.phone-float-card b {
  font-size: 13.5px;
  color: var(--green-800);
}

.phone-float-card span {
  font-size: 12px;
  color: var(--muted);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   数据统计
   ========================================================================== */
.stats {
  padding: 26px 0 60px;
}

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

.stat-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-item span {
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   通用区块
   ========================================================================== */
.section {
  padding: 84px 0;
}

.section-alt {
  background: linear-gradient(180deg, #f0faf3 0%, #eefaf5 100%);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--teal-600);
  background: var(--teal-100);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- 功能卡片 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

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

.icon-green { background: #dcfce7; color: #16a34a; }
.icon-emerald { background: #d1fae5; color: #059669; }
.icon-lime { background: #ecfccb; color: #65a30d; }
.icon-teal { background: #ccfbf1; color: #0d9488; }
.icon-green2 { background: #bbf7d0; color: #15803d; }
.icon-mint { background: #e0f2fe; color: #0284c7; }

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

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

/* ---------- 热门漫画 ---------- */
.comics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.comic-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding-bottom: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.comic-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green-900);
  background: rgba(220, 252, 231, 0.92);
  border-radius: 999px;
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}

.comic-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
}

.comic-status.hot { background: rgba(245, 158, 11, 0.92); }
.comic-status.end { background: rgba(100, 116, 139, 0.92); }

.comic-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  padding: 16px 18px 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comic-author {
  font-size: 13px;
  color: var(--muted);
  padding: 0 18px;
}

.comic-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 0;
  font-size: 13px;
  color: var(--muted);
}

.comic-star {
  color: #f59e0b;
  font-weight: 700;
}

/* ---------- 搜索实验室 ---------- */
.lab {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.lab-filters {
  padding: 26px 30px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.filter-label {
  flex-shrink: 0;
  width: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 7px;
}

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

.chip {
  font-size: 13.5px;
  color: var(--ink-soft);
  background: #f1f8f4;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 15px;
  transition: all 0.22s ease;
}

.chip:hover {
  border-color: var(--green-300);
  color: var(--green-700);
}

.chip.active {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.lab-results {
  border-top: 1px solid var(--line);
  padding: 20px 30px 28px;
}

.lab-count {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.lab-count b {
  color: var(--green-600);
  font-size: 16px;
}

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

.result-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.25s ease;
  cursor: default;
}

.result-item:hover {
  border-color: var(--green-300);
  background: var(--green-50);
  transform: translateX(3px);
}

.result-thumb {
  width: 40px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: var(--grad-main);
}

.result-thumb.t2 { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.result-thumb.t3 { background: linear-gradient(135deg, #15803d, #65a30d); }
.result-thumb.t4 { background: linear-gradient(135deg, #0369a1, #0ea5e9); }
.result-thumb.t5 { background: linear-gradient(135deg, #b45309, #f59e0b); }

.result-info {
  flex: 1;
  min-width: 0;
}

.result-info b {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-info span {
  font-size: 12px;
  color: var(--muted);
}

.result-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 999px;
  padding: 3px 9px;
}

.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 30px 0;
}

/* ---------- 榜单 ---------- */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rank-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.rank-head h3 {
  font-size: 19px;
  font-weight: 800;
}

.rank-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-600);
  background: var(--teal-100);
  border-radius: 999px;
  padding: 4px 12px;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px dashed var(--line);
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-list i {
  font-style: normal;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f1f8f4;
  color: var(--green-700);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-list li:nth-child(1) i { background: var(--grad-main); color: #fff; }
.rank-list li:nth-child(2) i { background: var(--grad-soft); color: var(--green-800); }
.rank-list li:nth-child(3) i { background: var(--grad-soft); color: var(--green-800); }

.rank-list b {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-val {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.rank-val em {
  font-style: normal;
  color: #16a34a;
  font-weight: 700;
  margin-left: 5px;
}

.rank-val.new { color: var(--green-700); font-weight: 700; }

/* ---------- 更新日历 ---------- */
.cal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--line);
}

.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 6px 14px;
  position: relative;
  transition: background 0.25s ease;
}

.cal-day:hover {
  background: var(--green-50);
}

.cal-day .cd-week {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.cal-day .cd-date {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cal-day.active {
  background: var(--grad-main);
}

.cal-day.active .cd-week,
.cal-day.active .cd-date {
  color: #fff;
}

.cd-today {
  position: absolute;
  top: 8px;
  right: 10px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #f59e0b;
  border-radius: 999px;
  padding: 1px 7px;
}

.cal-panel {
  padding: 26px 30px 30px;
}

.cal-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cal-panel-head b {
  font-size: 17px;
}

.cal-remind-count {
  font-size: 13px;
  color: var(--muted);
}

.cal-remind-count b {
  color: var(--green-600);
  font-size: 15px;
}

.cal-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: border-color 0.25s ease;
}

.cal-list li:hover {
  border-color: var(--green-300);
}

.cal-list .cal-cover {
  width: 34px;
  height: 44px;
  border-radius: 7px;
  background: var(--grad-main);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.cal-list .cal-cover.c2 { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.cal-list .cal-cover.c3 { background: linear-gradient(135deg, #15803d, #65a30d); }
.cal-list .cal-cover.c4 { background: linear-gradient(135deg, #0369a1, #0ea5e9); }

.cal-list .cal-info {
  flex: 1;
  min-width: 0;
}

.cal-list .cal-info b {
  display: block;
  font-size: 14.5px;
}

.cal-list .cal-info span {
  font-size: 12.5px;
  color: var(--muted);
}

.remind-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.remind-btn.on {
  color: #fff;
  background: var(--grad-main);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* ---------- 图集 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(5, 46, 22, 0.82));
  color: #fff;
  padding: 34px 18px 14px;
}

.gallery-item figcaption b {
  display: block;
  font-size: 16px;
}

.gallery-item figcaption span {
  font-size: 12.5px;
  opacity: 0.85;
}

.gallery-lg {
  grid-row: span 2;
}

.gallery-item:nth-child(2) { grid-column: span 2; }

/* ---------- 下载区 ---------- */
.download-panel {
  background:
    radial-gradient(520px 320px at 88% -10%, rgba(134, 239, 172, 0.35), transparent 60%),
    linear-gradient(135deg, #0a3320 0%, #115e37 55%, #0d9488 130%);
  border-radius: 28px;
  padding: 60px 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.download-left {
  position: relative;
  z-index: 1;
}

.download-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  object-fit: cover;
}

.download-panel h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 12px;
}

.download-panel p {
  font-size: 15.5px;
  opacity: 0.88;
  max-width: 480px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 18px;
}

.download-meta {
  font-size: 13px;
  opacity: 0.7;
}

.download-right {
  position: relative;
  height: 340px;
}

.download-right img {
  position: absolute;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  border: 3px solid rgba(255, 255, 255, 0.18);
}

.download-right img:nth-child(1) {
  width: 200px;
  height: 270px;
  object-fit: cover;
  top: 14px;
  right: 130px;
  transform: rotate(-6deg);
  z-index: 1;
}

.download-right img:nth-child(2) {
  width: 180px;
  height: 250px;
  object-fit: cover;
  top: 58px;
  right: 4px;
  transform: rotate(7deg);
  z-index: 2;
}

.download-right img:nth-child(3) {
  width: 150px;
  height: 210px;
  object-fit: cover;
  bottom: 6px;
  left: 10px;
  transform: rotate(4deg);
  z-index: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.faq-item[open] {
  border-color: var(--green-300);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 600;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-arrow {
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--green-600);
  border-bottom: 2.5px solid var(--green-600);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-arrow {
  transform: rotate(-135deg);
}

.faq-item p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  margin: 0 22px;
  padding-top: 16px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background: #072517;
  color: #b9d4c6;
  padding: 44px 0 34px;
  margin-top: 30px;
}

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

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

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.footer-brand b {
  display: block;
  font-size: 17px;
  color: #fff;
}

.footer-brand span {
  font-size: 12.5px;
  color: #8fb3a1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.footer-nav a {
  font-size: 14px;
  color: #b9d4c6;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--green-300);
}

.footer-copy {
  font-size: 12.5px;
  color: #7fa391;
  line-height: 1.8;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.3s ease;
}

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

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

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone-float-card { animation: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
    text-align: center;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }
  .hot-tags { justify-content: center; }
  .hero-actions { justify-content: center; }

  .phone-float-card { right: 4%; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .comics-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  .download-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-left { display: flex; flex-direction: column; align-items: center; }
  .download-actions { justify-content: center; }
  .download-right { display: none; }

  .gallery-grid { grid-auto-rows: 200px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(247, 251, 248, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 6% 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 13px 4px;
    border-bottom: 1px dashed var(--line);
    font-size: 15.5px;
  }

  .main-nav a::after { display: none; }

  .hero { padding: 120px 0 70px; }
  .hero-title { font-size: 30px; }
  .hero-actions .btn { width: 100%; max-width: 320px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-num { font-size: 28px; }

  .section { padding: 60px 0; }

  .features-grid { grid-template-columns: 1fr; }
  .comics-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .lab-filters { padding: 20px 18px 10px; }
  .lab-results { padding: 16px 18px 22px; }
  .result-list { grid-template-columns: 1fr; }

  .cal-days { grid-template-columns: repeat(4, 1fr); }
  .cal-day { padding: 14px 4px 12px; }
  .cal-panel { padding: 20px 16px 22px; }
  .cal-panel-head { flex-direction: column; gap: 6px; align-items: flex-start; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .gallery-lg { grid-row: span 1; }
  .gallery-item:nth-child(2) { grid-column: span 1; }

  .download-panel { padding: 44px 24px; }
  .phone { width: 264px; }
  .phone-screen { height: 530px; }
  .phone-float-card { display: none; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 17px; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 13px; }
  .comics-grid { grid-template-columns: 1fr; }
}
