/* ============================================================
 *  牛工智能 · 视觉体系
 *  日常更新只需改 js/data.js，本文件基本不用动。
 * ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg-0: #0A0E1A;
  --bg-1: #0D1225;
  --bg-2: #111834;

  --blue:   #3B82F6;
  --purple: #8B5CF6;
  --teal:   #06D6A0;
  --gold:   #F59E0B;

  --text:      #E9EEF9;
  --text-dim:  #A3B0C9;
  --text-mute: #6E7D96;

  --glass:        rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --line:         rgba(255, 255, 255, 0.09);
  --line-soft:    rgba(255, 255, 255, 0.055);

  --radius: 15px;
  --radius-sm: 11px;
  --radius-lg: 22px;

  --nav-h: 66px;
  --wrap: 1200px;

  /* 全部系统字体，不依赖任何 CDN；等宽若本机装了 JetBrains Mono 则优先命中 */
  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC",
             "Noto Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", "Menlo", Consolas,
               "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(170deg, var(--bg-0) 0%, var(--bg-1) 55%, #0A0E1A 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
 *  背景层
 * ============================================================ */
.bg-grid,
.bg-circuit,
.bg-glow,
#stardust {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 22%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 22%, #000 0%, transparent 78%);
  opacity: 0.9;
}

#stardust { z-index: 1; }

/* 角落电路纹样（极淡，不干扰阅读） */
.bg-circuit {
  z-index: 1;
  opacity: 0.16;
  background-repeat: no-repeat;
  background-position: -40px -40px, calc(100% + 40px) calc(100% + 40px);
  background-size: 340px, 300px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340'%3E%3Cg fill='none' stroke='%233B82F6' stroke-width='1'%3E%3Cpath d='M20 60h90l30 30h120'/%3E%3Cpath d='M20 120h50l40 40h60l30-30h100'/%3E%3Cpath d='M20 180h140l25 25h80'/%3E%3Cpath d='M20 240h60l35 35h150'/%3E%3Cpath d='M150 20v50l40 40v90'/%3E%3Cpath d='M250 90v70l-30 30v60'/%3E%3C/g%3E%3Cg fill='%238B5CF6'%3E%3Ccircle cx='140' cy='90' r='3'/%3E%3Ccircle cx='110' cy='160' r='3'/%3E%3Ccircle cx='185' cy='205' r='3'/%3E%3Ccircle cx='245' cy='190' r='3'/%3E%3Ccircle cx='115' cy='275' r='3'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='none' stroke='%2306D6A0' stroke-width='1'%3E%3Cpath d='M280 30H180l-35 35H60'/%3E%3Cpath d='M280 100h-60l-40 40H90'/%3E%3Cpath d='M280 170H150l-30 30H30'/%3E%3Cpath d='M280 240h-90l-30-30H80'/%3E%3Cpath d='M120 280v-60l30-30V110'/%3E%3C/g%3E%3Cg fill='%2306D6A0'%3E%3Ccircle cx='145' cy='65' r='2.6'/%3E%3Ccircle cx='180' cy='140' r='2.6'/%3E%3Ccircle cx='120' cy='200' r='2.6'/%3E%3Ccircle cx='160' cy='265' r='2.6'/%3E%3C/g%3E%3C/svg%3E");
}

/* 缓慢流动的星尘光晕 */
.bg-glow {
  z-index: 0;
  background:
    radial-gradient(closest-side, rgba(59, 130, 246, 0.16), transparent) 12% 18% / 46vw 46vw no-repeat,
    radial-gradient(closest-side, rgba(139, 92, 246, 0.15), transparent) 88% 38% / 40vw 40vw no-repeat,
    radial-gradient(closest-side, rgba(6, 214, 160, 0.10), transparent) 30% 88% / 44vw 44vw no-repeat;
  animation: glowDrift 34s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.02); }
}

main, .footer { position: relative; z-index: 2; }

/* ============================================================
 *  导航
 * ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background 0.28s var(--ease), backdrop-filter 0.28s var(--ease), border-color 0.28s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  flex-shrink: 0;
}

.brand-mark { width: 30px; height: 30px; }

.brand-text {
  font-family: var(--font-cn);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--text);
  background: linear-gradient(100deg, #fff 10%, var(--blue) 55%, var(--purple) 95%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* 渐变文字兜底：不支持 background-clip 时仍可见 */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-text { color: var(--text); background: none; }
}

.brand-text,
.gradient-text {
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-text, .gradient-text { -webkit-text-fill-color: currentColor; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 10px;
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
}

.nav-links a:hover { color: var(--text); background: var(--glass-strong); }

.nav-links a.active { color: var(--text); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

.nav-progress {
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--purple) 55%, var(--teal));
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.65);
  transition: width 0.1s linear;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
 *  通用：卡片 / 按钮 / 标签
 * ============================================================ */
.card {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease),
              box-shadow 0.24s var(--ease), background 0.24s var(--ease);
}

/* 悬停渐变描边（遮罩实现，不影响背景） */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--blue), var(--purple) 50%, var(--teal));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.24s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--glass-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 26px rgba(59, 130, 246, 0.14);
}
.card:hover::before { opacity: 0.85; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), box-shadow 0.24s var(--ease),
              background 0.24s var(--ease), border-color 0.24s var(--ease);
}

.btn-primary {
  color: #22160A;
  background: linear-gradient(135deg, #FBBF24, var(--gold));
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(59, 130, 246, 0.16);
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 11px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-blue   { color: #93C5FD; background: rgba(59, 130, 246, 0.13);  border-color: rgba(59, 130, 246, 0.32); }
.tag-purple { color: #C4B5FD; background: rgba(139, 92, 246, 0.14);  border-color: rgba(139, 92, 246, 0.34); }
.tag-teal   { color: #6EE7B7; background: rgba(6, 214, 160, 0.13);   border-color: rgba(6, 214, 160, 0.32); }
.tag-gold   { color: #FCD34D; background: rgba(245, 158, 11, 0.15);  border-color: rgba(245, 158, 11, 0.4); }

/* ============================================================
 *  第一屏 Hero
 * ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 96px;
}

.hero-inner {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 巨幅日期 */
.hero-date { margin-bottom: 26px; }

.hero-daynum {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(4.6rem, 16.5vw, 12rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  background: linear-gradient(150deg, #FFFFFF 0%, #BFDBFE 28%, var(--blue) 52%, var(--purple) 78%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 34px rgba(59, 130, 246, 0.42)) drop-shadow(0 0 80px rgba(139, 92, 246, 0.22));
  animation: numFloat 8s ease-in-out infinite;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-daynum { color: #BFDBFE; -webkit-text-fill-color: currentColor; filter: none; }
}

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

.hero-daymeta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 2.4vw, 1.05rem);
  letter-spacing: 0.34em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.hero-weekday { color: var(--teal); font-weight: 700; }
.hero-dot { opacity: 0.4; }

.hero-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--text-mute);
  text-indent: 0.4em;
}

/* 今日总结 */
.hero-summary {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
}

.hero-summary-text {
  margin: 0;
  font-family: var(--font-cn);
  font-weight: 900;
  font-size: clamp(1.35rem, 4.1vw, 2.7rem);
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  background: linear-gradient(115deg, #FFFFFF 0%, #DBEAFE 30%, var(--blue) 58%, var(--purple) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(139, 92, 246, 0.3));
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-summary-text { color: #fff; -webkit-text-fill-color: currentColor; filter: none; }
}

.copy-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.copy-btn svg { width: 19px; height: 19px; }
.copy-btn:hover {
  color: var(--teal);
  border-color: rgba(6, 214, 160, 0.5);
  background: rgba(6, 214, 160, 0.08);
  transform: translateY(-2px);
}
.copy-btn.done { color: var(--teal); border-color: var(--teal); }

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

.hero-update {
  margin: 22px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7);
  animation: pulse 2.1s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(6, 214, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0); }
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  opacity: 0.55;
  transition: opacity 0.25s;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll span {
  width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--teal);
  animation: scrollHint 1.9s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(13px); opacity: 0.15; }
}

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

.sec-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 42px;
}

.sec-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(139, 92, 246, 0.55);
  flex-shrink: 0;
}

.sec-title {
  margin: 0;
  font-size: clamp(1.5rem, 4.4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sec-sub {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

/* ============================================================
 *  01 免费专区
 * ============================================================ */
.must-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 34px;
  margin-bottom: 26px;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(245, 158, 11, 0.16), transparent 55%),
    var(--glass-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.42);
  box-shadow: 0 0 44px rgba(245, 158, 11, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.must-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45), 0 0 40px rgba(245, 158, 11, 0.22);
}

.must-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.must-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #22160A;
  background: linear-gradient(135deg, #FBBF24, var(--gold));
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.must-title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
  font-weight: 900;
  line-height: 1.35;
}

.must-value {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 78ch;
}

.must-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
}
.countdown-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FCD34D;
  text-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
}
.countdown.ended .countdown-num { color: var(--text-mute); text-shadow: none; }

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

.free-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.free-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.free-name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.free-value {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
  flex: 1;
}

.free-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
  border-top: 1px dashed var(--line-soft);
  margin-top: 2px;
}

.free-meta-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
}
.free-meta-row b {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--text-dim);
}
.free-meta-row .ddl { color: #FCD34D; font-family: var(--font-mono); }
.free-meta-row .forever { color: var(--teal); }

.free-tip {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.75;
}
.free-tip b { color: #FCD34D; }

/* ============================================================
 *  02 圈内大事
 * ============================================================ */
.headline-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 38px;
  background:
    radial-gradient(110% 140% at 100% 0%, rgba(139, 92, 246, 0.2), transparent 55%),
    radial-gradient(100% 130% at 0% 100%, rgba(59, 130, 246, 0.14), transparent 60%),
    var(--glass-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.38);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.14);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.headline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 44px rgba(139, 92, 246, 0.22);
}

.headline-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.headline-tag {
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #EF4444);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.42);
}

.headline-title {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 3.6vw, 2.05rem);
  font-weight: 900;
  line-height: 1.4;
}

.headline-desc {
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.85;
  max-width: 82ch;
}

.heat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #FCA5A5;
}

/* 时间线 */
.timeline { position: relative; padding-left: 34px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--blue) 8%, var(--purple) 55%, var(--teal) 92%, transparent);
  opacity: 0.55;
}

.tl-item { position: relative; margin-bottom: 18px; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -31px; top: 26px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--blue);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.85);
}

.tl-item:nth-child(3n+2)::before { border-color: var(--purple); box-shadow: 0 0 12px rgba(139, 92, 246, 0.85); }
.tl-item:nth-child(3n+3)::before { border-color: var(--teal);  box-shadow: 0 0 12px rgba(6, 214, 160, 0.85); }

.tl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tl-time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

.newbie {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #6EE7B7;
  background: rgba(6, 214, 160, 0.12);
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.tl-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.tl-desc {
  margin: 0;
  font-size: 14.8px;
  color: var(--text-dim);
  line-height: 1.82;
}

/* ============================================================
 *  03 排行大榜
 * ============================================================ */
.rank-cols {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.rank-col {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.rank-col:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36), 0 0 30px rgba(139, 92, 246, 0.08);
}

/* 金银铜三甲并排 */
.rank-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rank-col-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 4px;
  text-align: center;
}

.rank-icon { font-size: 19px; line-height: 1; }

.rank-label {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rank-source {
  padding: 0 4px;
  margin: -6px 0 2px;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.6;
  text-align: center;
}

.rank-top {
  position: relative;
  border-radius: var(--radius);
  padding: 20px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.rank-top:hover { transform: translateY(-4px); }

/* 金银铜渐变描边 */
.rank-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.rank-top.gold::before   { background: linear-gradient(135deg, #FDE68A, #F59E0B 45%, #B45309); }
.rank-top.silver::before { background: linear-gradient(135deg, #E5E7EB, #9CA3AF 50%, #6B7280); }
.rank-top.bronze::before { background: linear-gradient(135deg, #FDBA74, #C2703F 50%, #7C4A21); }

.rank-top.gold   { box-shadow: 0 0 34px rgba(245, 158, 11, 0.16); }
.rank-top.gold:hover   { box-shadow: 0 14px 36px rgba(0,0,0,.45), 0 0 34px rgba(245, 158, 11, 0.26); }
.rank-top.silver:hover { box-shadow: 0 14px 36px rgba(0,0,0,.4), 0 0 26px rgba(156, 163, 175, 0.2); }
.rank-top.bronze:hover { box-shadow: 0 14px 36px rgba(0,0,0,.4), 0 0 26px rgba(194, 112, 63, 0.2); }

.rank-top-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.rank-top.gold   .rank-medal { color: #22160A; background: linear-gradient(135deg, #FDE68A, var(--gold)); }
.rank-top.silver .rank-medal { color: #1F2937; background: linear-gradient(135deg, #F3F4F6, #9CA3AF); }
.rank-top.bronze .rank-medal { color: #2A1608; background: linear-gradient(135deg, #FDBA74, #C2703F); }

.rank-crown { font-size: 17px; line-height: 1; }

.rank-name {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 900;
  line-height: 1.3;
}

.rank-org {
  font-size: 12.5px;
  color: var(--text-mute);
  font-weight: 500;
}

.rank-score-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 6px;
}
.rank-score {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.rank-top.gold   .rank-score { color: #FCD34D; text-shadow: 0 0 20px rgba(245, 158, 11, 0.42); }
.rank-top.silver .rank-score { color: #E5E7EB; }
.rank-top.bronze .rank-score { color: #FDBA74; }
.rank-unit { font-size: 12.5px; color: var(--text-mute); }

/* 4–10 名极简列表 */
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-row {
  display: grid;
  grid-template-columns: 26px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.rank-row:hover {
  background: var(--glass);
  border-color: var(--line-soft);
  transform: translateX(3px);
}

.rank-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mute);
  text-align: center;
}

.rank-row-name {
  font-size: 14.6px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-row-org {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 400;
}

.rank-row-score {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 62px;
  text-align: right;
}

.rank-change {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  min-width: 52px;
  text-align: right;
}
.up   { color: #F87171; }   /* 涨：红 */
.down { color: #4ADE80; }   /* 跌：绿 */
.flat { color: var(--text-mute); }

.rank-note {
  margin-top: 4px;
  padding: 0 4px;
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.65;
  text-align: center;
}

.rank-global-note {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.022);
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.75;
}

/* ============================================================
 *  04 牛扯八道
 * ============================================================ */
.jokes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.joke-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.joke-quote {
  position: relative;
  margin: 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid rgba(139, 92, 246, 0.6);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
}

.joke-roast {
  position: relative;
  margin-top: 6px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.28);
  font-size: 14.8px;
  line-height: 1.85;
  color: #DDD3FB;
}

.joke-roast::before {
  content: "";
  position: absolute;
  top: -7px; left: 26px;
  width: 12px; height: 12px;
  transform: rotate(45deg);
  background: rgba(139, 92, 246, 0.2);
  border-left: 1px solid rgba(139, 92, 246, 0.28);
  border-top: 1px solid rgba(139, 92, 246, 0.28);
}

.joke-roast-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #C4B5FD;
}

/* ============================================================
 *  05 往期回顾
 * ============================================================ */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.arch-card { padding: 26px 26px 22px; }

.arch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.arch-date {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(120deg, #FFFFFF, var(--blue) 58%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .arch-date { color: #DBEAFE; -webkit-text-fill-color: currentColor; }
}

.arch-weekday {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

.arch-ago {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  white-space: nowrap;
}

.arch-summary {
  margin: 0 0 18px;
  padding: 2px 0 2px 16px;
  border-left: 2px solid rgba(139, 92, 246, 0.6);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 800;
  line-height: 1.65;
  color: #FFFFFF;
}

.arch-block { margin-bottom: 16px; }

.arch-block-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.arch-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-mute);
}

.arch-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.arch-desc {
  margin: 0;
  font-size: 14.2px;
  color: var(--text-dim);
  line-height: 1.8;
}

.arch-champs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-soft);
}

.arch-champ {
  flex: 1 1 200px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line-soft);
}

.arch-champ-label {
  font-size: 11.5px;
  color: var(--text-mute);
  flex-shrink: 0;
}

.arch-champ-name {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arch-champ-score {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.arch-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-mute);
  font-size: 14.5px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ============================================================
 *  往期日期详情视图
 * ============================================================ */
#homeView[hidden],
#detailView[hidden] { display: none !important; }

/* 往期卡片可点击态 */
.arch-card { cursor: pointer; }
.arch-card:hover { border-color: var(--blue); }
.arch-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* 顶部返回按钮 */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 92px auto 6px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
  max-width: fit-content;
}
.detail-back:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: rgba(59, 130, 246, .08);
  box-shadow: 0 0 18px rgba(59, 130, 246, .18);
}
.detail-back span { font-size: 17px; line-height: 1; }

/* 详情页里的 Hero 不再占满整屏 */
.hero-detail {
  min-height: auto;
  padding-top: 26px;
  padding-bottom: 22px;
}

/* ============================================================
 *  Footer
 * ============================================================ */
.footer {
  margin-top: 90px;
  padding: 54px 0 46px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  background: rgba(10, 14, 26, 0.4);
}

.footer-slogan {
  margin: 0 0 22px;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, #FFFFFF, var(--blue) 55%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .footer-slogan { color: #fff; -webkit-text-fill-color: currentColor; }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-bottom: 22px;
}
.footer-links a,
.footer-links button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--teal); }

.footer-note {
  margin: 0 0 12px;
  font-size: 12.8px;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}

/* ============================================================
 *  回到顶部 / Toast
 * ============================================================ */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 70;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(13, 18, 37, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
              visibility 0.28s, border-color 0.2s, color 0.2s;
}
.to-top svg { width: 21px; height: 21px; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--teal); border-color: rgba(6, 214, 160, 0.55); }

.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  transform: translate(-50%, 16px);
  z-index: 80;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: #052e26;
  background: linear-gradient(135deg, #6EE7B7, var(--teal));
  box-shadow: 0 12px 34px rgba(6, 214, 160, 0.34);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s;
  pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================================================
 *  弹窗（关于 / 更新说明 / RSS / 反馈）
 * ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal[hidden] { display: none; }

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  animation: maskIn 0.2s ease-out;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 84vh;
  overflow-y: auto;
  padding: 34px 34px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(59, 130, 246, 0.14), transparent 52%),
    radial-gradient(110% 120% at 100% 100%, rgba(139, 92, 246, 0.16), transparent 55%),
    #0D1225;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(59, 130, 246, 0.1);
  animation: cardIn 0.24s var(--ease);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-close:hover { color: var(--text); background: var(--glass-strong); border-color: var(--line); }

.modal-title {
  margin: 0 0 10px;
  padding-right: 40px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #FFFFFF, var(--blue) 60%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .modal-title { color: #fff; -webkit-text-fill-color: currentColor; }
}

.modal-lead {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 1.8;
}

.modal-block { margin-bottom: 18px; }
.modal-block h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.modal-block p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.8;
}

.modal-quote {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-left: 2px solid rgba(139, 92, 246, 0.6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(139, 92, 246, 0.08);
  font-size: 14.5px;
  color: #DDD3FB;
  line-height: 1.8;
}

.modal-rows { margin: 0 0 20px; }
.modal-row {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.modal-row:last-child { border-bottom: 0; }
.modal-row dt {
  flex: 0 0 78px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--teal);
}
.modal-row dd {
  margin: 0;
  flex: 1;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}

.modal-note {
  margin: 0;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.022);
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.75;
}

.modal-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  margin-bottom: 14px;
}
.modal-field code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--teal);
  word-break: break-all;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}
.chip {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: var(--glass);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.18s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(59, 130, 246, 0.5); transform: translateY(-2px); }
.chip.on {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.7);
  background: rgba(59, 130, 246, 0.18);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.2);
}

.fb-input {
  width: 100%;
  min-height: 118px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.75;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fb-input::placeholder { color: var(--text-mute); }
.fb-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

body.modal-open { overflow: hidden; }

/* ============================================================
 *  进场动效
 * ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  transition-delay: calc(var(--i, 0) * 50ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
 *  响应式
 * ============================================================ */
@media (max-width: 1000px) {
  .free-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 榜单竖向堆叠，窄屏时三甲改为单列 */
@media (max-width: 640px) {
  .rank-podium { grid-template-columns: 1fr; }
}

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

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(10, 14, 26, 0.94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { min-height: 46px; justify-content: center; font-size: 15.5px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--glass-strong); color: var(--teal); }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .section { padding: 74px 0 30px; }
  .sec-head { gap: 14px; margin-bottom: 30px; }
  .sec-num { font-size: 2.4rem; -webkit-text-stroke-width: 1.2px; }

  .free-grid { grid-template-columns: 1fr; }
  .jokes-grid { grid-template-columns: 1fr; }
  .rank-col { padding: 20px 16px 16px; }
  .arch-card { padding: 20px 16px 18px; }
  .arch-champ { flex: 1 1 100%; }

  .must-card { padding: 24px 20px; }
  .headline-card { padding: 24px 20px; }
  .must-foot { flex-direction: column; align-items: flex-start; }

  .hero { padding-left: 18px; padding-right: 18px; }
  .hero-summary { flex-direction: column; align-items: center; gap: 12px; }
  .copy-btn { margin-top: 0; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .timeline { padding-left: 26px; }
  .tl-item::before { left: -23px; width: 9px; height: 9px; }
  .timeline::before { left: 5px; }

  .modal { padding: 14px; align-items: flex-end; }
  .modal-card { padding: 26px 20px 22px; max-height: 88vh; }
  .modal-title { font-size: 1.3rem; }
  .modal-row { flex-direction: column; gap: 3px; }
  .modal-row dt { flex: none; }
  .modal-actions .btn { flex: 1 1 auto; }

  .to-top { right: 16px; bottom: 16px; }
}

/* ---------- 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
