/* ===== 打工人赎身计划 · 传播页样式（方案一 + 方案二共用） ===== */

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --card-2: #f1f5f9;
  --line: rgba(0, 0, 0, 0.08);
  --text: #1e293b;
  --muted: #64748b;
  --green: #00d9a5;
  --cyan: #00b4d8;
  --gold: #f59e0b;
  --grad: linear-gradient(90deg, #00d9a5, #00b4d8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 17px; font-weight: 800; letter-spacing: 0.5px; flex-shrink: 0; }
.brand-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* 链接区始终单行：窄屏横向滚动，绝不换行 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

/* 五个工具合并为一条分段切换器，视觉上像同一页面的 tab */
.nav-tools {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(31, 36, 48, 0.05);
}
.nav-tools a {
  padding: 6px 14px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
  border-radius: 999px;
  transition: 0.25s;
}
.nav-tools a:hover { color: var(--text); background: rgba(255, 255, 255, 0.8); }
.nav-tools a.active {
  color: #fff;
  font-weight: 600;
  background: var(--grad);
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.25);
}
.nav-learn {
  flex-shrink: 0;
  margin-left: 4px;
  padding: 6px 14px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
  border-radius: 999px;
  transition: 0.25s;
}
.nav-learn:hover { color: var(--text); background: rgba(0, 0, 0, 0.06); }
/* 知识库在工具组之外，选中态沿用工具 tab 的渐变样式 */
.nav-learn.active {
  color: #fff;
  font-weight: 600;
  background: var(--grad);
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.25);
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 8px;
  margin-left: auto;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle:active { background: rgba(0, 0, 0, 0.06); }
.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--text, #1f2430);
  transition: transform 0.25s, opacity 0.25s;
}
/* 展开态：三横 → X */
.nav.open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 手机：汉堡 + 下拉菜单 */
@media (max-width: 767px) {
  .nav { flex-wrap: wrap; padding: 10px 14px; gap: 8px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-tools { flex: 1 0 100%; flex-wrap: wrap; padding: 4px; }
  .nav-tools a { flex: 1 1 auto; padding: 8px 10px; font-size: 13px; text-align: center; }
  .nav-learn { margin-left: 0; padding: 8px 12px; font-size: 13px; }
}
/* 平板：单行收紧，保留横滑 */
@media (max-width: 1023px) and (min-width: 768px) {
  .nav { padding: 12px 14px; }
  .nav-tools a { padding: 5px 9px; font-size: 13px; }
  .nav-learn { padding: 5px 9px; font-size: 13px; }
}

/* ===== 首页 · 第一屏 ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 80px;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(0, 217, 165, 0.14), transparent 70%),
    radial-gradient(500px 320px at 85% 80%, rgba(0, 180, 216, 0.14), transparent 70%);
}
/* 缓慢增长的背景进度条 */
.hero-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(0, 0, 0, 0.06);
}
.hero-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  animation: crawl 9s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(0, 217, 165, 0.7);
}
@keyframes crawl {
  0% { width: 0; }
  70% { width: 100%; }
  86% { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

.hero-title { font-size: clamp(38px, 9vw, 64px); font-weight: 900; letter-spacing: 2px; }
.hero-sub { margin-top: 14px; font-size: clamp(15px, 4vw, 19px); color: var(--muted); letter-spacing: 4px; }
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 20px;
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ===== 金句屏 ===== */
.quote {
  max-width: 640px;
  margin: 0 auto;
  padding: 110px 24px;
  text-align: center;
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.8;
  letter-spacing: 1px;
}
.quote-note { margin-top: 22px; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 2px; }
.big { font-size: 1.35em; }
.gold-text { color: var(--gold); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== 功能展示 ===== */
.features { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.sec-title { text-align: center; font-size: clamp(24px, 5.4vw, 30px); font-weight: 800; margin-bottom: 36px; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 165, 0.4);
  box-shadow: 0 12px 28px rgba(0, 217, 165, 0.12);
}
.feature-icon { font-size: 34px; }
.feature-card h3 { margin: 12px 0 6px; font-size: 18px; }
.feature-card p { font-size: 14px; color: var(--muted); }
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 转化屏 ===== */
.cta-final {
  text-align: center;
  padding: 80px 24px 110px;
  background: radial-gradient(500px 300px at 50% 100%, rgba(0, 217, 165, 0.12), transparent 70%);
}
.cta-question { font-size: clamp(24px, 6vw, 32px); font-weight: 800; margin-bottom: 26px; }

.cta {
  display: inline-block;
  background: var(--grad);
  color: #07131a;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  padding: 13px 34px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 200, 160, 0.35);
  transition: 0.25s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0, 200, 160, 0.45); }
.cta:active { transform: scale(0.97); }
.cta-lg { font-size: 18px; padding: 16px 46px; }
.hero .cta-lg { margin-top: 40px; }

/* ===== 小程序码 ===== */
.qr-box { margin-top: 52px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-img {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
}
.qr-box.qr-missing .qr-tip { color: var(--muted); }
.qr-box.qr-missing::before {
  content: '小程序码待配置';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  border-radius: 16px;
  border: 2px dashed rgba(0, 0, 0, 0.15);
  color: var(--muted);
  font-size: 14px;
}
.qr-tip { font-size: 14px; color: var(--muted); }

/* ===== 计算器页 ===== */
.calc-main { max-width: 560px; margin: 0 auto; padding: 44px 20px 100px; }
.calc-title { text-align: center; font-size: clamp(30px, 7.4vw, 42px); font-weight: 900; letter-spacing: 1px; }
.calc-sub { text-align: center; margin: 10px 0 32px; color: var(--muted); font-size: 15px; letter-spacing: 2px; }

.form-card, .result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.form-card { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  transition: 0.25s;
}
.input-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 217, 165, 0.15); }
.unit { color: var(--muted); font-size: 18px; }
.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  padding: 14px 0;
  width: 100%;
}
.input-wrap input::placeholder { color: #94a3b8; font-weight: 400; }
/* 隐藏 number 输入的上下箭头 */
.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ===== 结果卡 ===== */
.result-card { margin-top: 18px; text-align: center; }
.result-label { font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.result-target {
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 900;
  margin: 6px 0 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.progress-wrap { display: flex; align-items: center; gap: 12px; }
.progress-track {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: #e2e8f0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.progress-pct { min-width: 62px; text-align: right; font-weight: 800; font-size: 16px; }
.result-rows { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 16px; }
.result-row { display: flex; justify-content: space-between; padding: 7px 2px; font-size: 15px; }
.result-row .k { color: var(--muted); }
.result-row .v { font-weight: 700; }
.muted-row .v { color: var(--muted); font-weight: 400; }
.result-warn { margin-top: 14px; font-size: 14px; color: #d97706; text-align: left; }
.btn-row { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.btn-copy {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.25s;
}
.btn-copy:hover { border-color: var(--green); color: var(--green); }
.calc-empty { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }
.calc-faq { margin-top: 44px; font-size: 14px; color: var(--muted); line-height: 1.9; }
.calc-faq h2 { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.calc-faq h3 { font-size: 15px; color: var(--text); margin: 20px 0 10px; font-weight: 700; }
.calc-faq strong { color: var(--text); font-weight: 700; }
.calc-faq a { color: var(--green); font-weight: 600; }
.calc-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.calc-faq summary { font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.calc-faq summary::-webkit-details-marker { display: none; }
.calc-faq summary::after { content: '+'; color: var(--green); font-size: 18px; }
.calc-faq details[open] summary::after { content: '−'; }
.calc-faq details p { margin-top: 10px; }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid var(--line); padding: 40px 24px 48px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 18px; font-size: 13px; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }
.footer-slogan { font-size: 15px; color: var(--text); letter-spacing: 2px; }
.footer-copy { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ===== 错误页（404 / 500） ===== */
.error-main { max-width: 560px; margin: 0 auto; padding: 90px 24px 120px; text-align: center; }
.error-code { font-size: clamp(64px, 18vw, 108px); font-weight: 900; line-height: 1; letter-spacing: 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-title { margin-top: 18px; font-size: clamp(22px, 5.6vw, 30px); font-weight: 800; }
.error-desc { margin-top: 14px; font-size: 15px; color: var(--muted); line-height: 1.9; }
.error-main .learn-cta-row { margin-top: 34px; }

/* ===== 滚动入场动画 ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 12vh;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 217, 165, 0.5);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 99;
}

/* ===== 排行榜页 ===== */
.rank-main { max-width: 640px; margin: 0 auto; padding: 44px 20px 100px; }
.rank-title { text-align: center; font-size: clamp(30px, 7.4vw, 42px); font-weight: 900; letter-spacing: 1px; }
.rank-sub { text-align: center; margin: 10px 0 30px; color: var(--muted); font-size: 15px; letter-spacing: 2px; }

.rank-stats { display: flex; justify-content: center; gap: 48px; margin-bottom: 24px; }
.rank-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: clamp(28px, 6vw, 38px); font-weight: 900; }
.stat-label { font-size: 13px; color: var(--muted); letter-spacing: 1px; }

.rank-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 14px;
  transition: background 0.2s;
}
.rank-item:hover { background: var(--card-2); }
.rank-top { background: linear-gradient(90deg, rgba(0, 217, 165, 0.08), transparent 70%); }
.rank-no { min-width: 34px; text-align: center; font-weight: 800; font-size: 16px; color: var(--muted); }
.rank-top .rank-no { font-size: 20px; }
.rank-name { flex: 1; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { flex: 1.4; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.rank-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
.rank-pct { min-width: 56px; text-align: right; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.rank-loading { text-align: center; padding: 40px 0; color: var(--muted); font-size: 14px; }
.rank-empty { text-align: center; padding: 44px 12px; }
.rank-empty-icon { font-size: 44px; }
.rank-empty-title { margin-top: 14px; font-size: 18px; font-weight: 800; }
.rank-empty-desc { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.8; }

.rank-cta { margin-top: 44px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px 24px; box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05); }
.rank-cta-title { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.rank-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 320px; margin: 0 auto 6px; counter-reset: step; }
.rank-steps li { position: relative; padding-left: 34px; font-size: 14px; color: var(--text); line-height: 1.7; counter-increment: step; }
.rank-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: #07131a;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-cta .qr-box { margin-top: 26px; }

.rank-privacy { margin-top: 40px; font-size: 14px; color: var(--muted); }
.rank-privacy h2 { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.rank-privacy strong { color: var(--text); }

/* ===== 知识库 ===== */
.learn-main { max-width: 760px; margin: 0 auto; padding: 44px 20px 100px; }
.learn-title { text-align: center; font-size: clamp(30px, 7.4vw, 42px); font-weight: 900; letter-spacing: 1px; }
.learn-sub { text-align: center; margin: 10px 0 36px; color: var(--muted); font-size: 15px; letter-spacing: 2px; }

.article-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.article-empty { color: var(--muted, #6b7280); padding: 32px 0; text-align: center; }
@media (min-width: 640px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: 0.3s;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 165, 0.4);
  box-shadow: 0 12px 28px rgba(0, 217, 165, 0.12);
}
.article-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: rgba(0, 217, 165, 0.12);
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 1px;
}
.article-title { margin: 14px 0 8px; font-size: 18px; font-weight: 800; line-height: 1.5; }
.article-excerpt { font-size: 14px; color: var(--muted); line-height: 1.8; flex: 1; }
.article-meta { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.article-more { color: var(--green); font-weight: 600; }

/* 栏目筛选（服务端渲染的链接，非前端请求） */
.learn-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.learn-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  color: var(--muted);
  transition: 0.25s;
}
.learn-filter-item:hover { color: var(--green); border-color: rgba(0, 217, 165, 0.4); }
.learn-filter-item.active { color: #fff; background: var(--grad); border-color: transparent; font-weight: 700; }
.learn-filter-count { font-size: 11px; opacity: 0.7; }

/* 文章列表：一行一条 */
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: 0.3s;
}
.article-row:hover {
  transform: translateX(4px);
  border-color: rgba(0, 217, 165, 0.4);
  box-shadow: 0 10px 24px rgba(0, 217, 165, 0.12);
}
.article-row .article-tag { align-self: center; white-space: nowrap; }
.article-row-main { min-width: 0; }
.article-row .article-title { margin: 0 0 4px; font-size: 17px; }
.article-row .article-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.article-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) {
  .article-row { grid-template-columns: auto 1fr; align-items: start; }
  .article-row-meta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* 分页 */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.pager-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  color: var(--muted);
  transition: 0.25s;
}
a.pager-btn:hover { color: var(--green); border-color: rgba(0, 217, 165, 0.4); }
.pager-btn.active { color: #fff; background: var(--grad); border-color: transparent; font-weight: 700; }
.pager-btn.disabled { opacity: 0.45; cursor: not-allowed; }
.pager-gap { color: var(--muted); padding: 0 2px; }

.learn-cta { margin-top: 44px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px 24px; box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05); }
.learn-cta-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.learn-cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-link { font-size: 14px; color: var(--muted); transition: 0.25s; }
.cta-link:hover { color: var(--green); }

/* ===== 文章详情 ===== */
.article-main { max-width: 680px; margin: 0 auto; padding: 44px 20px 100px; }
.article-body { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px 26px; box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-head { border-bottom: 1px dashed var(--line); padding-bottom: 22px; margin-bottom: 26px; }
.article-h1 { margin-top: 14px; font-size: clamp(24px, 5.6vw, 30px); font-weight: 900; line-height: 1.45; }
.article-meta { margin-top: 12px; font-size: 13px; color: var(--muted); letter-spacing: 1px; }

/* ===== SEO 语义区 & FAQ（首页） ===== */
.seo-section { max-width: 760px; margin: 70px auto 0; padding: 0 20px; }
.seo-section h2 { font-size: clamp(20px, 4.5vw, 24px); font-weight: 800; margin-bottom: 18px; text-align: center; }
.seo-section p { font-size: 15px; line-height: 2; color: var(--text); margin-bottom: 14px; }
.seo-section strong { color: var(--text); font-weight: 700; }

.seo-faq { max-width: 760px; margin: 56px auto 0; padding: 0 20px; }
.seo-faq h2 { font-size: clamp(20px, 4.5vw, 24px); font-weight: 800; margin-bottom: 20px; text-align: center; }
.seo-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; transition: 0.25s; }
.seo-faq details[open] { box-shadow: 0 4px 16px rgba(0, 217, 165, 0.08); border-color: rgba(0, 217, 165, 0.3); }
.seo-faq summary { font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: '+'; color: var(--green); font-size: 20px; font-weight: 700; transition: 0.25s; }
.seo-faq details[open] summary::after { content: '−'; }
.seo-faq details p { font-size: 14px; line-height: 1.9; color: var(--muted); margin-top: 12px; }

.article-content { font-size: 15.5px; line-height: 2; color: var(--text); overflow-wrap: break-word; }
.article-content h2 { font-size: 19px; font-weight: 800; margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--green); line-height: 1.5; }
.article-content h3 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; }
.article-content p { margin: 12px 0; }
.article-content ul, .article-content ol { margin: 12px 0; padding-left: 22px; }
.article-content li { margin: 8px 0; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content a { color: var(--green); font-weight: 600; border-bottom: 1px dashed rgba(0, 217, 165, 0.5); }
.article-content a:hover { border-bottom-style: solid; }
.article-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.article-content th { background: var(--card-2); font-weight: 700; }
.article-content table tr:nth-child(2n) { background: var(--card-2); }

/* Markdown 其余语法，对齐后台 md-editor 预览效果 */
.article-content h1 { font-size: 23px; font-weight: 800; margin: 30px 0 14px; line-height: 1.5; }
.article-content h4 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
.article-content h5, .article-content h6 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.article-content h6 { color: var(--muted); }
.article-content ul ul, .article-content ul ol, .article-content ol ul, .article-content ol ol { margin: 6px 0; }
.article-content blockquote {
  margin: 20px 0;
  padding: 6px 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: var(--card-2);
  color: var(--muted);
  line-height: 1.9;
}
.article-content blockquote p { margin: 8px 0; }
.article-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
  font-size: 0.88em;
  color: #3594f7;
  background: rgba(59, 170, 250, 0.1);
  border-radius: 4px;
  padding: 2px 5px;
}
.article-content pre {
  margin: 20px 0;
  padding: 16px 18px;
  background: #282c34;
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-content pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: #a9b7c6;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre;
  overflow-wrap: normal;
}
.article-content img { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 10px; }
.article-content figure { margin: 18px 0; text-align: center; }
.article-content figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.article-content hr { margin: 26px 0; border: none; border-top: 1px solid var(--line); }
.article-content del { color: var(--muted); }
.article-content li > input[type="checkbox"] { margin-right: 6px; vertical-align: middle; }
.article-content li:has(> input[type="checkbox"]) { list-style: none; margin-left: -18px; }

.article-cta { margin-top: 34px; padding-top: 24px; border-top: 1px dashed var(--line); text-align: center; }
.article-cta p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.article-related { margin-top: 34px; }
.article-related h2 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.related-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: 0.25s;
}
.related-item:hover { border-color: rgba(0, 217, 165, 0.4); transform: translateX(4px); }
.related-title { font-size: 14px; font-weight: 600; }
.article-related .article-tag { flex-shrink: 0; align-self: center; }

/* ===== 该不该买宣传页 ===== */
.buy-main { max-width: 640px; margin: 0 auto; padding: 44px 20px 100px; }
.buy-title { text-align: center; font-size: clamp(30px, 7.4vw, 42px); font-weight: 900; letter-spacing: 1px; }
.buy-sub { text-align: center; margin: 10px 0 32px; color: var(--muted); font-size: 15px; letter-spacing: 1px; }

.buy-demo { display: flex; justify-content: center; margin-bottom: 48px; }
.demo-phone {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 14px 40px rgba(30, 41, 59, 0.08);
}
.demo-ask { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.demo-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card-2);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.demo-ask-text { display: flex; flex-direction: column; }
.demo-ask-text strong { font-size: 14px; }
.demo-ask-text span { font-size: 12px; color: var(--muted); }
.demo-goods {
  background: #f8fafc; border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 16px;
}
.demo-goods-name { font-size: 16px; font-weight: 800; }
.demo-goods-price { font-size: 30px; font-weight: 900; color: #00a87e; margin: 6px 0; }
.demo-goods-note { font-size: 12px; color: var(--muted); }
.demo-btns { display: flex; gap: 10px; margin-bottom: 18px; }
.demo-btn {
  flex: 1; text-align: center; font-size: 14px; font-weight: 700;
  border-radius: 12px; padding: 10px 0;
}
.demo-btn-buy { background: var(--grad); color: #fff; }
.demo-btn-no { background: var(--card-2); color: #4a5162; }
.demo-result { border-top: 1px dashed var(--line); padding-top: 14px; }
/* PK 对抗条：左买 / 右别买（与小程序参谋详情一致） */
.demo-pk-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.demo-pk-cell { display: flex; flex-direction: column; gap: 2px; }
.demo-pk-cell.demo-pk-r { align-items: flex-end; }
.demo-pk-tag { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.demo-pk-tag-buy { color: #00805f; background: rgba(0, 168, 126, 0.12); }
.demo-pk-tag-no { color: #d24a4f; background: rgba(229, 72, 77, 0.1); }
.demo-pk-num { font-size: 17px; font-weight: 800; color: var(--text, #1f2430); }
.demo-pk-pct { font-size: 12px; color: var(--muted); }
.demo-pk-vs {
  font-size: 11px; font-weight: 800; color: #c3c8d4; letter-spacing: 1px;
  background: #f0f2f7; border-radius: 999px; padding: 3px 8px; margin-top: 3px;
}
.demo-pk-track { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #f0f2f7; }
.demo-pk-buy { display: block; height: 100%; background: linear-gradient(90deg, #00d9a5, #00b4d8); }
.demo-pk-no { display: block; height: 100%; background: linear-gradient(270deg, #ffb199, #ff7b72); }
.demo-verdict { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* 拦截战报示例 */
.buy-report { margin-bottom: 48px; }
.buy-report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.buy-report-cell {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 8px;
  text-align: center;
}
.buy-report-num { display: block; font-size: clamp(18px, 4.4vw, 24px); font-weight: 900; color: var(--green); }
.buy-report-label { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.buy-report-list {
  list-style: none;
  margin: 16px 0 10px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.buy-report-list li { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 14px; }
.buy-report-list li + li { border-top: 1px solid var(--line); }
.buy-report-list em { font-style: normal; font-weight: 800; color: #d24a4f; }
.buy-report-tip { text-align: center; font-size: 13px; color: var(--muted); }

.buy-report h2, .buy-how h2, .buy-why h2 { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 22px; }
.buy-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.buy-steps li {
  counter-increment: step;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px 18px 60px; position: relative;
}
.buy-steps li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.buy-steps strong { font-size: 16px; }
.buy-steps p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.7; }

.buy-why { margin-bottom: 48px; }
.buy-why p { font-size: 15px; line-height: 1.9; color: var(--muted); margin-bottom: 14px; }
.buy-why strong { color: var(--text); }
.buy-why a { color: var(--green); font-weight: 600; }

.buy-faq { margin-top: 0; margin-bottom: 48px; }

.buy-cta { text-align: center; }
.buy-cta-title { font-size: clamp(22px, 5.4vw, 28px); font-weight: 800; }
.buy-cta-sub { margin-top: 8px; font-size: 14px; color: var(--muted); }
.buy-cta .qr-box { margin-top: 28px; }

/* 冲动消费冷静期页 /cooling */
.cool-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 168, 126, 0.1);
  color: #00805f;
  font-size: 12px;
  font-weight: 700;
}
.cool-timer-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00a87e;
  box-shadow: 0 0 0 4px rgba(0, 168, 126, 0.16);
}
.cool-btn-locked {
  background: #eef1f6;
  color: #98a1b3;
  font-weight: 600;
}
.cool-report-line {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.cool-report-line strong { color: var(--green); }
.cta-final .cta-link + .cta-link { margin-top: 8px; }

/* ===== 每月目标页 /goal ===== */

/* 达标自测计算器 */
.goal-calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px;
  margin-bottom: 48px;
}
.goal-calc h2 { font-size: 17px; font-weight: 800; margin-bottom: 18px; }
.goal-fields { display: grid; gap: 12px; }
.goal-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.goal-field > span { font-size: 14px; color: var(--muted); flex-shrink: 0; }
.goal-input {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  max-width: 220px;
  background: var(--card-2);
  border-radius: 12px;
  padding: 10px 14px;
}
.goal-input i { font-style: normal; font-size: 15px; color: var(--muted); }
.goal-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.goal-result { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.goal-verdict { font-size: 20px; font-weight: 900; letter-spacing: 0.5px; color: var(--muted); }
.goal-verdict.ok { color: var(--green); }
.goal-verdict.no { color: #ef4444; }
.goal-bar { height: 10px; border-radius: 999px; background: var(--card-2); overflow: hidden; margin: 12px 0 10px; }
.goal-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width 0.4s ease; }
.goal-bar span.no { background: linear-gradient(90deg, #fca5a5, #ef4444); }
.goal-detail { font-size: 14px; color: var(--muted); line-height: 1.8; }
.goal-detail strong { color: var(--text); }
.goal-hint { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* 每月目标比例参考表 */
.goal-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.goal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.goal-table th, .goal-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.goal-table th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--card-2); }
.goal-table th:last-child, .goal-table td:last-child { text-align: right; }
.goal-table tr:last-child td { border-bottom: 0; }
.goal-table strong { color: var(--green); }

/* ===== 摸鱼小游戏：老板来了 ===== */
.game-main { max-width: 720px; }
.game-stage {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 28px auto 0;
  border-radius: 24px;
  overflow: hidden;
  background: #e7edf6;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.game-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 26px;
  text-align: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.76);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.game-overlay[hidden] { display: none; }

.game-chip {
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.game-start-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.game-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}
.game-rules b { color: #6ee7c6; font-weight: 700; }

.game-end-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: #6ee7c6;
  font-variant-numeric: tabular-nums;
}
.game-end-score small { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.game-end-title { font-size: 22px; font-weight: 800; }
.game-end-line { font-size: 13px; color: rgba(255, 255, 255, 0.78); }

/* 历史最佳：开始页弱化展示，结算页命中新纪录时高亮 */
.game-start-best { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.game-start-best[hidden] { display: none; }
.game-end-best {
  padding: 4px 14px;
  font-size: 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  font-variant-numeric: tabular-nums;
}
.game-end-best.is-new {
  color: #063d31;
  font-weight: 800;
  background: linear-gradient(90deg, #6ee7c6, #53c8f0);
}

.game-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 260px; margin-top: 6px; }
.game-btn {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}
.game-btn:active { transform: scale(0.97); }
.game-btn:disabled { opacity: 0.6; cursor: default; }
.game-btn-primary { color: #063d31; background: linear-gradient(90deg, #6ee7c6, #53c8f0); }
.game-btn-ghost { color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); }

.game-poster { max-width: 400px; margin: 26px auto 0; text-align: center; }
.game-poster[hidden] { display: none; }
.game-poster-title { font-size: 16px; font-weight: 700; color: var(--text); }
.game-poster-img {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}
.game-poster-hint { margin-top: 10px; font-size: 12px; color: var(--muted); }

.game-tips { max-width: 620px; margin: 40px auto 0; }
.game-tips h2 { margin-top: 24px; font-size: 18px; font-weight: 700; color: var(--text); }
.game-tips h2:first-child { margin-top: 0; }
.game-tips p { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--muted); }
/* 矮屏（桌面横屏/小窗口）兜底：内容可滚动，避免开始按钮被裁掉 */
.game-overlay { overflow-y: auto; }
@media (max-height: 620px) {
  .game-overlay { gap: 10px; padding: 18px 22px; }
  .game-start-title { font-size: 19px; }
  .game-rules { font-size: 12px; gap: 6px; }
  .game-end-score { font-size: 44px; }
}

/* ===== 摸鱼小游戏：独立全屏页（/play/boss） ===== */
/* 不套站点导航与页脚：整屏只有游戏画布，结算与战绩图都是弹层 */
.gp-body {
  height: 100dvh;
  overflow: hidden;
  color: #e9fff8;
  background: radial-gradient(120% 80% at 50% 0%, #123a2f 0%, #08170f 55%, #050d09 100%);
  overscroll-behavior: none;
}
@supports not (height: 100dvh) {
  .gp-body { height: 100vh; }
}
.gp-main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: calc(env(safe-area-inset-top) + 8px) 8px calc(env(safe-area-inset-bottom) + 8px);
}
/* 按视口高度反推画布宽度，保证 375:480 比例不被拉伸，也不超出屏幕 */
.game-stage-full {
  width: min(100%, calc((100dvh - 16px) * 375 / 480));
  max-width: 560px;
  margin: 0;
  border-radius: 18px;
  background: #0b1c17;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  aspect-ratio: 375 / 480;
}
@supports not (height: 100dvh) {
  .game-stage-full { width: min(100%, calc((100vh - 16px) * 375 / 480)); }
}
/* 手机上让游戏区铺满整个视口：左右贴边 + 上下撑满，观感更接近原生小游戏 */
@media (max-width: 560px) {
  .gp-main { padding: 0; }
  .game-stage-full {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }
  /* 画布随 stage 拉伸到整屏；逻辑高由 JS 按比例反推，不会变形 */
  .game-stage-full canvas { width: 100%; height: 100%; }
}
@supports not (height: 100dvh) {
  @media (max-width: 560px) {
    .game-stage-full { height: 100vh; }
  }
}

/* 战绩图：固定弹层，不再把页面往下撑高 */
.game-poster-fixed {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  /* 覆盖 .game-poster 的居中限宽，否则弹层只铺满 400px 一条 */
  max-width: none;
  margin: 0;
  padding: calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 14px);
  background: rgba(3, 10, 8, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.game-poster-fixed[hidden] { display: none; }
.game-poster-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 330px;
  margin: auto;
  text-align: center;
}
.game-poster-fixed .game-poster-img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 170px);
  margin: 0;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.game-poster-fixed .game-poster-hint { margin: 0; font-size: 12px; color: rgba(233, 255, 248, 0.66); }
.game-poster-close { width: auto; min-width: 120px; height: 40px; }

/* ===== 赎身模拟器（/play/retire） ===== */
.rt-body { background: radial-gradient(120% 80% at 50% 0%, #1e293b 0%, #0f172a 55%, #0b1020 100%); }

/* 顶部 HUD */
.rt-hud { position: absolute; top: 10px; left: 14px; right: 14px; z-index: 3; }
.rt-hud[hidden] { display: none; }
.rt-hud-row { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 13px; }
.rt-day b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.rt-money { font-weight: 800; font-size: 15px; color: #fcd34d; font-variant-numeric: tabular-nums; }
.rt-bars { display: flex; gap: 10px; margin-top: 16px; }
.rt-bar { position: relative; flex: 1; height: 8px; background: rgba(255, 255, 255, 0.15); border-radius: 999px; overflow: hidden; }
.rt-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; transition: width 0.35s ease; }
.rt-health { background: linear-gradient(90deg, #f87171, #fb923c); }
.rt-mood { background: linear-gradient(90deg, #fbbf24, #fde68a); }
.rt-bar span { position: absolute; right: 0; top: -16px; font-size: 12px; line-height: 1; }

/* 事件卡 */
.rt-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86%; max-width: 320px; background: rgba(255, 255, 255, 0.97); border-radius: 20px; padding: 22px 18px 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); text-align: center; color: #0f172a; z-index: 3; }
.rt-card[hidden] { display: none; }
.rt-card-icon { font-size: 40px; line-height: 1; }
.rt-card-day { font-size: 12px; color: #64748b; margin-top: 6px; letter-spacing: 1px; }
.rt-card-title { font-size: 19px; font-weight: 800; margin-top: 8px; line-height: 1.4; }
.rt-card-desc { font-size: 13px; color: #475569; line-height: 1.65; margin-top: 8px; min-height: 42px; }
.rt-timer { height: 4px; background: #e2e8f0; border-radius: 999px; margin-top: 14px; overflow: hidden; }
.rt-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #4f46e5, #06b6d4); border-radius: 999px; }
.rt-choices { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.rt-choice { width: 100%; border: 1px solid #e2e8f0; background: #fff; border-radius: 14px; padding: 12px 14px; text-align: left; cursor: pointer; transition: transform 0.12s, border-color 0.2s, background 0.2s; display: flex; flex-direction: column; gap: 2px; }
.rt-choice:active { transform: scale(0.98); }
.rt-choice:hover { border-color: #a5b4fc; background: #f5f3ff; }
.rt-choice-label { font-size: 15px; font-weight: 700; color: #0f172a; }
.rt-choice-sub { font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.rt-toast { position: absolute; left: 50%; top: -36px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; z-index: 4; }
.rt-toast[hidden] { display: none; }
.rt-toast.is-ok { background: #dcfce7; color: #166534; }
.rt-toast.is-bad { background: #fee2e2; color: #991b1b; }

/* 开始页 */
.rt-sub { font-size: 13px; line-height: 1.75; color: rgba(255, 255, 255, 0.78); margin: 0; }
.rt-diffs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rt-diff { padding: 8px 14px; font-size: 13px; font-weight: 600; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: all 0.2s; }
.rt-diff.is-active { background: linear-gradient(90deg, #a5b4fc, #67e8f9); color: #1e1b4b; border-color: transparent; }
.rt-tip { font-size: 11px; color: rgba(255, 255, 255, 0.5); margin: 0; }

/* 结算页 */
.rt-end-age { display: flex; align-items: baseline; gap: 6px; font-size: 64px; font-weight: 800; line-height: 1; color: #a5b4fc; font-variant-numeric: tabular-nums; }
.rt-end-age small { font-size: 18px; color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.rt-stats { width: 100%; max-width: 280px; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.rt-stat-row { display: flex; justify-content: space-between; padding: 7px 14px; background: rgba(255, 255, 255, 0.08); border-radius: 10px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.rt-stat-row b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.rt-zing { font-size: 13px; color: #c7d2fe; margin: 0; line-height: 1.6; }
.rt-cta { font-size: 13px; color: #a5b4fc; text-decoration: none; margin-top: 2px; }
.rt-cta:active { opacity: 0.8; }

/* ===== 摸鱼游戏列表（/play） ===== */
/* auto-fit：游戏少时单卡撑满，以后多了自动并排 */
.play-grid {
  max-width: 560px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.play-card { overflow: hidden; }
.play-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 152px;
  margin: -24px -22px 18px;
  color: #e9fff8;
  background: radial-gradient(120% 120% at 28% 8%, #1d6f57 0%, #0d2a22 62%, #081713 100%);
}
.play-cover-chip {
  font-size: 12px;
  letter-spacing: 1px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.play-cover-title { font-size: 24px; font-weight: 900; letter-spacing: 2px; }
.play-cover-sub { font-size: 13px; letter-spacing: 3px; color: rgba(233, 255, 248, 0.72); }
.play-more { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); letter-spacing: 1px; }



/* 右侧悬浮小程序码 */
.qr-float {
  position: fixed;
  top: 50%;
  right: 20px;
  z-index: 60;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-50%);
}
@media (min-width: 720px) {
  .qr-float { display: flex; }
}
.qr-float-img {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 10px;
}
.qr-float-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
