/* ══════════════════════════════════════════════════════════════
   撸爆吧 · 极简版（2026-10-29）
   与 site.css 并存：本文件只在新前台外壳（body.app-v2）下生效，
   后台 body.app-admin 完全不受影响；变量在 body 作用域覆盖，
   不改 :root，避免污染旧样式。
   ══════════════════════════════════════════════════════════════ */

body.app-v2 {
  --ink: #0d0f1c;
  --ink-2: #3c4056;
  --muted: #8b8fa4;
  --line: rgba(16, 18, 40, 0.09);
  --line-strong: rgba(16, 18, 40, 0.16);
  --bg: #fbfbfd;
  --bg-soft: #f5f5f9;
  --bg-elev: #ffffff;
  --card: rgba(255, 255, 255, 0.74);
  --glass: rgba(255, 255, 255, 0.7);
  --accent: #ff2f56;
  --accent-2: #ff8a3d;
  --accent-3: #7b5cf6;
  --glow: rgba(255, 47, 86, 0.16);
  --shadow-sm: 0 1px 2px rgba(16, 18, 40, 0.05);
  --shadow: 0 18px 48px -18px rgba(16, 18, 40, 0.24);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.68 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

html[data-theme="dark"] body.app-v2 {
  --ink: #f3f3f8;
  --ink-2: #c5c7d6;
  --muted: #8d90a8;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --bg: #08080c;
  --bg-soft: #0d0d14;
  --bg-elev: #101018;
  --card: rgba(255, 255, 255, 0.038);
  --glass: rgba(20, 20, 30, 0.72);
  --glow: rgba(255, 80, 120, 0.22);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.72);
}

body.app-v2 p { color: var(--muted); }
body.app-v2 a:hover { color: var(--ink); }
body.app-v2 ::selection { background: var(--accent); color: #fff; }

/* ── 背景光斑 ───────────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 46vw; height: 46vw; left: -8vw; top: -12vw;
  background: radial-gradient(circle, #ffbdcb, transparent 66%);
  animation: drift-a 26s ease-in-out infinite;
}
.aurora span:nth-child(2) {
  width: 40vw; height: 40vw; right: -6vw; top: 6vw;
  background: radial-gradient(circle, #cfd8ff, transparent 66%);
  animation: drift-b 32s ease-in-out infinite;
}
.aurora span:nth-child(3) {
  width: 34vw; height: 34vw; left: 32vw; bottom: -16vw;
  background: radial-gradient(circle, #ffe0c2, transparent 68%);
  animation: drift-c 38s ease-in-out infinite;
}
html[data-theme="dark"] .aurora span { opacity: 0.3; }
html[data-theme="dark"] .aurora span:nth-child(1) { background: radial-gradient(circle, #7a1030, transparent 68%); }
html[data-theme="dark"] .aurora span:nth-child(2) { background: radial-gradient(circle, #2a2a78, transparent 68%); }
html[data-theme="dark"] .aurora span:nth-child(3) { background: radial-gradient(circle, #5c2c08, transparent 68%); }

@keyframes drift-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(6vw, 5vw, 0) scale(1.12); } }
@keyframes drift-b { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-7vw, 6vw, 0) scale(1.08); } }
@keyframes drift-c { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(4vw, -6vw, 0) scale(1.14); } }

/* ── 滚动进度 ───────────────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90;
  background: transparent; pointer-events: none;
}
.progress-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  transition: width 0.1s linear;
}

/* ── 顶栏 ───────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 34px;
  background: rgba(251, 251, 253, 0.62);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.topbar.stuck {
  background: rgba(251, 251, 253, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(22px) saturate(180%);
}
html[data-theme="dark"] .topbar { background: rgba(8, 8, 12, 0.55); }
html[data-theme="dark"] .topbar.stuck { background: rgba(8, 8, 12, 0.82); }

.brand { display: block; flex: 0 0 auto; }
.brand img {
  display: block; height: 42px; width: auto;
  transition: transform 0.3s var(--ease), filter 0.3s;
}
html[data-theme="dark"] .brand img,
html[data-theme="dark"] .foot-brand img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5)) drop-shadow(0 4px 16px rgba(255, 176, 80, 0.35)) brightness(1.08) saturate(1.05);
}
.brand:hover img { transform: scale(1.04) rotate(-1deg); }

.topnav { display: flex; gap: 4px; margin: 0; font-weight: 600; font-size: 13.5px; }
.topnav a {
  position: relative; padding: 8px 13px; border-radius: 10px;
  color: var(--ink-2); transition: color 0.2s, background 0.2s;
}
.topnav a:hover { color: var(--ink); background: var(--card); }
.topnav a.on { color: var(--ink); }
.topnav a.on::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px; border-radius: 11px;
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--card); border-color: var(--line); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn kbd {
  font: 500 10px/1 -apple-system, sans-serif; color: var(--muted);
  border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px;
}
.theme-btn .i-moon { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: none; }
html[data-theme="dark"] .theme-btn .i-moon { display: block; }

.ghost-btn, .solid-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 15px; border-radius: 11px;
  font-size: 13px; font-weight: 620; border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.ghost-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.ghost-btn.lg { height: 44px; padding: 0 26px; border-radius: 14px; font-size: 14px; }
.solid-btn {
  border: 0; color: #fff !important;
  background: linear-gradient(105deg, var(--accent), #ff5a3c 60%, var(--accent-2));
  background-size: 160% 100%;
  box-shadow: 0 8px 22px -8px var(--glow);
}
.solid-btn:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px var(--glow);
}
.me { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }

/* ── 容器 ───────────────────────────────────────────────── */
body.app-v2 .container {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  padding: 0 34px 96px;
}

/* ── 首屏 ───────────────────────────────────────────────── */
.hero-mini { padding: 52px 0 30px; max-width: 800px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted);
  padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
}
.eyebrow b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #16c07a;
  box-shadow: 0 0 0 0 rgba(22, 192, 122, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 192, 122, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(22, 192, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 192, 122, 0); }
}

.hero-mini h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero-mini h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 8%, var(--accent-2) 48%, var(--accent-3) 92%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shift 9s ease-in-out infinite;
}
@keyframes shift { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.hero-sub { margin: 0 0 24px; font-size: 15px; max-width: 46em; }

.omni {
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 8px 0 18px; max-width: 620px;
  border-radius: 999px; background: var(--bg-elev);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.omni:focus-within {
  border-color: rgba(255, 47, 86, 0.4);
  box-shadow: 0 0 0 4px var(--glow), 0 18px 40px -18px rgba(255, 47, 86, 0.4);
  transform: translateY(-1px);
}
.omni svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; flex: 0 0 auto; }
.omni input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: 0;
  color: var(--ink); font-size: 15px;
}
.omni input::placeholder { color: var(--muted); }
.omni .solid-btn { height: 44px; border-radius: 999px; padding: 0 22px; }

.hero-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 18px; }
.hero-keys > span { font-size: 12px; color: var(--muted); margin-right: 3px; }
.hero-keys button {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  transition: all 0.2s;
}
.hero-keys button:hover { border-color: var(--line-strong); background: var(--card); color: var(--ink); }

/* ── 区块标题 ───────────────────────────────────────────── */
.block { margin-top: 34px; }
.block-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 16px;
}
.block-head h2 { margin: 0; font-size: 19px; font-weight: 720; letter-spacing: -0.02em; }
.block-head small { font-size: 12.5px; color: var(--muted); }
.block-head a { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.block-head a:hover { color: var(--accent); }

/* ── 返利入口条 ─────────────────────────────────────────── */
.strip {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(202px, 1fr));
}
.strip-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
}
.strip-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(255, 47, 86, 0.1), rgba(255, 138, 61, 0.06) 50%, rgba(123, 92, 246, 0.08));
  opacity: 0; transition: opacity 0.3s;
}
.strip-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 47, 86, 0.28);
  box-shadow: 0 16px 34px -16px rgba(255, 47, 86, 0.35);
  color: var(--ink);
}
.strip-item:hover::before { opacity: 1; }
.strip-ico {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; font-size: 17px;
  background: linear-gradient(140deg, rgba(255, 180, 100, 0.22), rgba(255, 100, 130, 0.16));
  transition: transform 0.35s var(--ease);
}
.strip-item:hover .strip-ico { transform: scale(1.1) rotate(-4deg); }
.strip-txt { display: flex; flex-direction: column; min-width: 0; }
.strip-txt b { font-size: 13.5px; font-weight: 640; line-height: 1.3; }
.strip-txt small { font-size: 11.5px; color: var(--muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-go { margin-left: auto; color: var(--muted); font-size: 16px; transition: transform 0.25s var(--ease), color 0.25s; }
.strip-item:hover .strip-go { transform: translateX(3px); color: var(--accent); }

.strip-item[data-tone="blue"] .strip-ico { background: linear-gradient(140deg, rgba(96, 165, 250, 0.24), rgba(59, 130, 246, 0.14)); }
.strip-item[data-tone="green"] .strip-ico { background: linear-gradient(140deg, rgba(52, 211, 153, 0.24), rgba(16, 185, 129, 0.14)); }
.strip-item[data-tone="pink"] .strip-ico { background: linear-gradient(140deg, rgba(244, 114, 182, 0.24), rgba(219, 39, 119, 0.12)); }
.strip-item[data-tone="purple"] .strip-ico { background: linear-gradient(140deg, rgba(167, 139, 250, 0.24), rgba(124, 58, 237, 0.14)); }

/* ── 标签筛选 ───────────────────────────────────────────── */
.chips {
  display: flex; gap: 8px; padding: 2px 0 18px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); font-size: 13px; font-weight: 560;
  white-space: nowrap;
  transition: all 0.22s var(--ease);
}
.chip em {
  font-style: normal; font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.chip.on {
  background: var(--ink); border-color: var(--ink); color: var(--bg);
  box-shadow: 0 8px 20px -10px rgba(13, 15, 28, 0.6);
}
.chip.on em { color: var(--bg); opacity: 0.6; }

/* ── 文章流 ─────────────────────────────────────────────── */
.feed {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  align-items: start;
}
.post {
  position: relative; display: flex; gap: 14px;
  padding: 17px 18px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line);
  cursor: pointer; outline: 0; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  opacity: 1;
}
.post::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 47, 86, 0.09), transparent 72%);
  opacity: 0; transition: opacity 0.35s;
}
.post:hover, .post:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 47, 86, 0.24);
  box-shadow: 0 20px 42px -20px rgba(16, 18, 40, 0.3);
}
html[data-theme="dark"] .post:hover,
html[data-theme="dark"] .post:focus-visible { box-shadow: 0 20px 42px -20px rgba(0, 0, 0, 0.9); }
.post:hover::before, .post:focus-visible::before { opacity: 1; }
.post-ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 16px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.post-main { min-width: 0; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.post-cat { font-size: 11.5px; font-weight: 620; color: var(--muted); letter-spacing: 0.01em; }
.post-badge {
  font-size: 10px; font-weight: 700; line-height: 1;
  padding: 3px 6px; border-radius: 5px; letter-spacing: 0.03em;
}
.b-shen { color: #fff; background: linear-gradient(100deg, #ff2f56, #ff7a3d); }
.b-good { color: #8a4b00; background: linear-gradient(100deg, #ffd27a, #ffb03a); }
html[data-theme="dark"] .b-good { color: #2a1400; }
.b-out { color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); }
.post-when { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-title {
  margin: 6px 0 0; font-size: 15px; font-weight: 620;
  line-height: 1.5; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-sub {
  margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.post-right {
  flex: 0 0 auto; display: flex; flex-direction: column;
  align-items: flex-end; justify-content: flex-start; gap: 2px;
  padding-left: 4px;
}
.post-price {
  font-size: 19px; font-weight: 780; letter-spacing: -0.03em;
  color: var(--accent); font-variant-numeric: tabular-nums;
  line-height: 1.2; white-space: nowrap;
}
.post-price i { font-style: normal; font-size: 12px; font-weight: 600; margin-right: 1px; opacity: 0.8; }
.post-price.is-text { font-size: 12.5px; color: var(--muted); font-weight: 600; padding-top: 4px; }
.post-was { font-size: 11px; color: var(--muted); }
.post-src { font-size: 10.5px; color: var(--muted); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post.is-out { opacity: 0.52; }
.post.is-out .post-price { color: var(--muted); }

.feed-empty { padding: 60px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.feed-empty b { display: block; font-size: 16px; margin-bottom: 6px; }
.feed-empty p { margin: 0; }

.feed-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 26px; }
.feed-more .muted { font-size: 12px; }

/* ── 入场动画 ───────────────────────────────────────────── */
html.js .post, html.js .strip-item, html.js .channel-tile, html.js .subcat-card {
  opacity: 0; transform: translateY(14px);
}
html.js .post.in, html.js .strip-item.in, html.js .channel-tile.in, html.js .subcat-card.in {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 26ms);
}
html.js .hero-mini h1, html.js .hero-mini .eyebrow, html.js .hero-mini .hero-sub,
html.js .hero-mini .omni, html.js .hero-mini .hero-keys {
  animation: rise 0.75s var(--ease) both;
}
html.js .hero-mini h1 { animation-delay: 0.06s; }
html.js .hero-mini .hero-sub { animation-delay: 0.13s; }
html.js .hero-mini .omni { animation-delay: 0.2s; }
html.js .hero-mini .hero-keys { animation-delay: 0.27s; }
@keyframes rise {
  from { transform: translateY(16px); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html.js .post, html.js .strip-item, html.js .channel-tile, html.js .subcat-card { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   文章弹窗
   ══════════════════════════════════════════════════════════ */
.sheet { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.sheet[hidden] { display: none; }
.sheet-veil {
  position: absolute; inset: 0;
  background: rgba(8, 8, 16, 0.46);
  backdrop-filter: blur(14px) saturate(120%);
  animation: veil-in 0.3s ease both;
}
html[data-theme="dark"] .sheet-veil { background: rgba(0, 0, 0, 0.62); }
@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }

.sheet-card {
  position: relative;
  width: min(700px, 100%);
  max-height: min(88vh, 880px);
  overflow: auto; overscroll-behavior: contain;
  border-radius: 26px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: 0 60px 140px -34px rgba(0, 0, 0, 0.55);
  animation: sheet-in 0.44s var(--ease) both;
  scrollbar-width: thin;
}
.sheet-card::-webkit-scrollbar { width: 8px; }
.sheet-card::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(26px) scale(0.965); }
  to { opacity: 1; transform: none; }
}
.sheet.closing .sheet-veil { animation: veil-in 0.22s ease reverse both; }
.sheet.closing .sheet-card { animation: sheet-in 0.22s var(--ease) reverse both; }

.sheet-glow {
  position: absolute; top: -30%; left: -10%; right: -10%; height: 62%;
  background: radial-gradient(52% 58% at 50% 50%, rgba(255, 47, 86, 0.16), transparent 72%);
  pointer-events: none;
}
html[data-theme="dark"] .sheet-glow { background: radial-gradient(52% 58% at 50% 50%, rgba(255, 70, 100, 0.22), transparent 72%); }

.sheet-close {
  position: sticky; top: 12px; float: right;
  margin: 12px 14px 0 0; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-elev);
  color: var(--muted); font-size: 19px; line-height: 1;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.sheet-close:hover { color: var(--ink); border-color: var(--line-strong); transform: rotate(90deg); }

.sheet-body { position: relative; padding: 8px 34px 34px; }

.sheet-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sheet-kicker > span:first-child { font-size: 12px; font-weight: 640; color: var(--muted); letter-spacing: 0.02em; }
.sheet-kicker .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: 0.5; }

.sheet-title {
  margin: 0 0 8px; font-size: 25px; line-height: 1.32;
  font-weight: 760; letter-spacing: -0.02em;
}
.sheet-sub { margin: 0 0 18px; font-size: 14px; color: var(--muted); line-height: 1.6; }

.sheet-price-row {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 22px;
  border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.sheet-price {
  font-size: 36px; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sheet-price i { font-style: normal; font-size: 17px; margin-right: 2px; }
.sheet-was { font-size: 14px; color: var(--muted); }
.sheet-off {
  font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 7px;
  color: #fff; background: linear-gradient(100deg, #ff2f56, #ff7a3d);
}
.sheet-note { font-size: 12px; color: var(--muted); margin-left: auto; }

.sheet-copy { font-size: 14.5px; line-height: 1.86; color: var(--ink-2); white-space: pre-wrap; }
.sheet-copy:empty { display: none; }

.sheet-h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 26px 0 12px; font-size: 13px; font-weight: 720;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.sheet-h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.sheet-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 9px; }
.sheet-steps li {
  position: relative; counter-increment: step;
  padding: 11px 14px 11px 42px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
  white-space: pre-wrap;
}
.sheet-steps li::before {
  content: counter(step);
  position: absolute; left: 12px; top: 11px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 11px/1 -apple-system, sans-serif; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.sheet-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 26px; height: 54px; border-radius: 16px;
  font-size: 15.5px; font-weight: 720; color: #fff !important;
  background: linear-gradient(105deg, var(--accent), #ff5a3c 55%, var(--accent-2));
  background-size: 180% 100%;
  box-shadow: 0 16px 34px -14px rgba(255, 47, 86, 0.6);
  transition: background-position 0.4s, transform 0.25s var(--ease), box-shadow 0.3s;
}
.sheet-cta:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 22px 44px -14px rgba(255, 47, 86, 0.72); }
.sheet-cta.is-off {
  height: auto; padding: 11px 15px; border-radius: 12px;
  justify-content: flex-start;
  background: transparent; color: var(--muted) !important;
  box-shadow: none; border: 1px dashed var(--line);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
}
.sheet-cta.is-off:hover { transform: none; }

.sheet-src {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.7; color: var(--muted);
}
.sheet-src a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.sheet-src a:hover { color: var(--accent); }

.sheet-rel { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-rel button {
  max-width: 100%; text-align: left;
  padding: 9px 13px; border-radius: 11px;
  border: 1px solid var(--line); background: transparent;
  font-size: 12.5px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: all 0.2s;
}
.sheet-rel button:hover { border-color: var(--line-strong); background: var(--bg-soft); color: var(--ink); }

.sheet-skeleton { display: grid; gap: 12px; padding: 10px 0; }
.sheet-skeleton i {
  display: block; height: 14px; border-radius: 8px;
  background: linear-gradient(90deg, var(--bg-soft) 25%, rgba(140, 145, 170, 0.16) 37%, var(--bg-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.sheet-skeleton i:nth-child(1) { width: 40%; height: 26px; }
.sheet-skeleton i:nth-child(2) { width: 88%; }
.sheet-skeleton i:nth-child(3) { width: 72%; }
.sheet-skeleton i:nth-child(4) { width: 34%; height: 46px; margin-top: 8px; border-radius: 14px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ══════════════════════════════════════════════════════════
   搜索面板
   ══════════════════════════════════════════════════════════ */
.cmdk { position: fixed; inset: 0; z-index: 140; display: grid; align-items: start; justify-items: center; padding: 13vh 20px 20px; }
.cmdk[hidden] { display: none; }
.cmdk-veil { position: absolute; inset: 0; background: rgba(8, 8, 16, 0.4); backdrop-filter: blur(10px); animation: veil-in 0.24s ease both; }
.cmdk-panel {
  position: relative; width: min(580px, 100%);
  border-radius: 20px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.55);
  animation: cmdk-in 0.32s var(--ease) both;
}
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-16px) scale(0.97); } to { opacity: 1; transform: none; } }
.cmdk-input {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  margin: 0;
}
.cmdk-input svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; flex: 0 0 auto; }
.cmdk-input input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 15.5px; color: var(--ink); }
.cmdk-input input::placeholder { color: var(--muted); }
.cmdk-input kbd {
  font: 500 10px/1 -apple-system, sans-serif; color: var(--muted);
  border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px;
}
.cmdk-list { max-height: 52vh; overflow: auto; padding: 8px; }
.cmdk-tip { margin: 0; padding: 22px 14px; font-size: 13px; color: var(--muted); text-align: center; }
.cmdk-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border-radius: 11px; border: 0; background: transparent;
  text-align: left; font-size: 13.5px; color: var(--ink-2);
  transition: background 0.16s, color 0.16s;
}
.cmdk-item:hover, .cmdk-item.sel { background: var(--bg-soft); color: var(--ink); }
.cmdk-item .ci-ico { flex: 0 0 auto; font-size: 14px; }
.cmdk-item .ci-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item .ci-p { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.cmdk-empty { padding: 24px; text-align: center; font-size: 13px; color: var(--muted); }

/* ══════════════════════════════════════════════════════════
   页脚
   ══════════════════════════════════════════════════════════ */
.foot {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto; padding: 40px 34px 60px;
  border-top: 1px solid var(--line);
}
.foot-main { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; }
.foot-brand { max-width: 320px; }
.foot-brand img { height: 40px; width: auto; display: block; margin-bottom: 12px; opacity: 0.9; }
.foot-brand p { margin: 0; font-size: 12.5px; line-height: 1.7; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols > div { display: flex; flex-direction: column; gap: 9px; }
.foot-cols b { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.foot-cols a { font-size: 13px; color: var(--ink-2); }
.foot-cols a:hover { color: var(--accent); }
.foot-note { margin: 34px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.8; }

/* ══════════════════════════════════════════════════════════
   旧组件在新壳里的适配
   ══════════════════════════════════════════════════════════ */
body.app-v2 .panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: none;
  backdrop-filter: blur(10px);
}
body.app-v2 .page-heading { padding: 46px 0 10px; }
body.app-v2 .page-heading h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin-bottom: 8px; }
body.app-v2 .section-title h2 { font-size: 18px; letter-spacing: -0.02em; }
body.app-v2 .filter-tabs {
  display: flex; gap: 8px; flex-wrap: nowrap; margin: 6px 0 18px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
body.app-v2 .filter-tabs::-webkit-scrollbar { display: none; }
body.app-v2 .filter-tabs a { flex: 0 0 auto; }
body.app-v2 .filter-tabs a {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
}
body.app-v2 .filter-tabs a.selected { background: var(--ink); color: var(--bg); border-color: var(--ink); }
body.app-v2 .php-dialog {
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg-elev); color: var(--ink);
  max-width: min(560px, 92vw); padding: 22px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5);
}
body.app-v2 .php-dialog::backdrop { background: rgba(8, 8, 16, 0.5); backdrop-filter: blur(8px); }
body.app-v2 .php-dialog .body-copy { white-space: pre-wrap; }
body.app-v2 .detail h1 { letter-spacing: -0.025em; }
body.app-v2 .entry {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink);
}
body.app-v2 .entry-icon { background: var(--bg-soft); }
body.app-v2 .notice {
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  border-radius: var(--r-md); padding: 14px 18px;
}
body.app-v2 .muted { color: var(--muted); }
body.app-v2 .btn {
  border-radius: 14px;
  background: linear-gradient(105deg, var(--accent), #ff5a3c 60%, var(--accent-2));
  box-shadow: 0 12px 28px -12px rgba(255, 47, 86, 0.6);
}
body.app-v2 .secondary {
  background: var(--card); border-color: var(--line); color: var(--ink-2); border-radius: 12px;
}
body.app-v2 input, body.app-v2 textarea, body.app-v2 select {
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink);
  border-radius: 11px;
}
body.app-v2 input::placeholder, body.app-v2 textarea::placeholder { color: var(--muted); }
body.app-v2 .form-grid label { color: var(--ink-2); font-size: 12.5px; }
body.app-v2 .deal-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
}
body.app-v2 .deal-card h3 { color: var(--ink); }
body.app-v2 .rank-row b { color: var(--accent); }
body.app-v2 .pager a { background: var(--card); border-color: var(--line); color: var(--ink-2); border-radius: 12px; box-shadow: none; }
body.app-v2 .crumb a, body.app-v2 .crumb { color: var(--muted); }
body.app-v2 .crumb b { color: var(--ink); }
body.app-v2 .channel-tabs a { background: var(--card); border-color: var(--line); color: var(--ink-2); box-shadow: none; }
body.app-v2 .subcat-card, body.app-v2 .channel-tile, body.app-v2 .all-cats a {
  background: var(--card); border-color: var(--line); color: var(--ink);
}
body.app-v2 .subcat-card p, body.app-v2 .channel-latest a, body.app-v2 .channel-chips a { color: var(--ink-2); }
body.app-v2 .filter-bar { background: var(--card); border-color: var(--line); }
body.app-v2 .filter-row a { background: var(--bg-elev); border-color: var(--line); color: var(--ink-2); }

/* ══════════════════════════════════════════════════════════
   响应式
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  body.app-v2 .container, .foot { padding-left: 22px; padding-right: 22px; }
  .topbar { padding: 12px 22px; gap: 12px; }
  .topnav { gap: 0; }
  .topnav a { padding: 8px 10px; }
}

@media (max-width: 760px) {
  .hero-mini { padding: 44px 0 30px; }
  .hero-mini h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero-sub { font-size: 14px; }
  .omni { height: 52px; padding-left: 14px; }
  .omni .solid-btn { height: 40px; padding: 0 16px; font-size: 13px; }
  .strip { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
  .strip-ico { width: 32px; height: 32px; font-size: 15px; }
  .feed { grid-template-columns: 1fr; }
  .sheet { padding: 0; place-items: end stretch; }
  .sheet-card {
    width: 100%; max-height: 92vh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
  .sheet-body { padding: 6px 20px 30px; }
  .sheet-title { font-size: 20px; }
  .sheet-price { font-size: 30px; }
  .cmdk { padding-top: 8vh; }
  .icon-btn kbd { display: none; }
  .topnav { overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .me { display: none; }
  .foot { flex-direction: column; }
  .foot-cols { gap: 32px; }
}

@media (max-width: 520px) {
  .topbar { padding: 10px 16px; }
  .brand img { height: 32px; }
  .topnav a { font-size: 12.5px; padding: 7px 8px; }
  .ghost-btn, .solid-btn { height: 33px; padding: 0 12px; font-size: 12.5px; }
  body.app-v2 .container { padding-left: 16px; padding-right: 16px; padding-bottom: 60px; }
  .post { padding: 14px; gap: 11px; }
  .post-ico { width: 30px; height: 30px; font-size: 14px; }
  .post-title { font-size: 14.5px; }
  .post-price { font-size: 17px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .hero-keys { display: none; }
}

/* ── 首屏两列 + 实时卡组 ────────────────────────────────── */
.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 52px;
  align-items: center;
}
.hero-wrap .hero-mini { padding: 52px 0 26px; max-width: none; }
.hero-side { padding-top: 42px; perspective: 900px; }

.deck {
  position: relative;
  padding: 16px 18px 14px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px -30px rgba(16, 18, 40, 0.34);
  backdrop-filter: blur(16px) saturate(140%);
  transform: rotate(-1.6deg);
  transition: transform 0.55s var(--ease), box-shadow 0.55s;
  animation: bob 7s ease-in-out infinite;
}
.deck::before {
  content: "";
  position: absolute; inset: 10px -9px -9px 9px;
  border-radius: 20px; z-index: -1;
  background: var(--card); border: 1px solid var(--line);
  opacity: 0.55;
}
.deck:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 34px 70px -30px rgba(16, 18, 40, 0.4); animation-play-state: paused; }
@keyframes bob {
  0%, 100% { transform: rotate(-1.6deg) translateY(0); }
  50% { transform: rotate(-1.6deg) translateY(-7px); }
}
.deck-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 11px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.deck-head b { font-weight: 680; }
.deck-head em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 11.5px; }
.deck-list { list-style: none; margin: 0; padding: 0; }
.deck-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.deck-list li:last-child { border-bottom: 0; }
.deck-price {
  flex: 0 0 auto; min-width: 52px;
  font-size: 14px; font-weight: 780; letter-spacing: -0.03em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.deck-title {
  flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.deck-foot { margin-top: 8px; font-size: 11px; color: var(--muted); }

/* 同排卡片等高 */
.feed { align-items: stretch; }
.post { height: 100%; }

@media (max-width: 1020px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-side { display: none; }
}

/* 弹窗同类推荐两列，长标题不独占一行 */
.sheet-rel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-rel button { width: 100%; }
@media (max-width: 620px) { .sheet-rel { grid-template-columns: 1fr; } }

/* ── 移动端顶栏与搜索框修正 ─────────────────────────────── */
.omni input { width: 0; }
.ghost-btn, .solid-btn, .icon-btn, .me { white-space: nowrap; flex: 0 0 auto; }
.top-actions { flex-wrap: nowrap; }

@media (max-width: 820px) {
  /* 极简优先：手机上收起顶部栏目，保留 logo + 搜索 + 主题 + 账号 */
  .topnav { display: none; }
  .topbar { justify-content: space-between; }
  .top-actions { margin-left: auto; gap: 6px; }
  .icon-btn { width: 34px; padding: 0; justify-content: center; }
}

@media (max-width: 420px) {
  .omni { padding-left: 12px; padding-right: 6px; gap: 7px; }
  .omni .solid-btn { padding: 0 13px; font-size: 12.5px; }
  .ghost-btn, .solid-btn { padding: 0 11px; }
  .brand img { height: 30px; }
}

/* ══════════════════════════════════════════════════════════
   2026-10-30 · 带图卡片 + 极简弹窗（图 / 标题 / 价格+小链接 / 一句话）
   ══════════════════════════════════════════════════════════ */

/* ── 列表卡缩略图 ── */
.post-thumb {
  flex: 0 0 auto; width: 74px; height: 74px;
  border-radius: 13px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
  position: relative;
}
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--ease);
}
.post:hover .post-thumb img, .post:focus-visible .post-thumb img { transform: scale(1.06); }
.post.is-out .post-thumb img { filter: grayscale(0.6); opacity: 0.8; }

/* ── 弹窗主图 ── */
.sheet-hero {
  margin: -8px -34px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  overflow: hidden;
}
.sheet-hero {
  position: relative; overflow: hidden;
  height: 320px;
  display: grid; place-items: center;
}
.sheet-hero-bg {
  position: absolute; inset: -24px;
  background-size: cover; background-position: center;
  filter: blur(24px) saturate(1.15);
  opacity: 0.5;
}
html[data-theme="dark"] .sheet-hero { background: #12121a; }
html[data-theme="dark"] .sheet-hero-bg { opacity: 0.26; filter: blur(26px) saturate(0.9) brightness(0.5); }
.sheet-hero img {
  position: relative; display: block;
  width: auto; height: auto;
  max-width: 100%; max-height: 320px;
  object-fit: contain;
}

/* ── 价格行：价格 + 一个跳转小链接，同排 ── */
.sheet-buy-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 4px;
}
.sheet-buy-row .sheet-price { font-size: 30px; }
.sheet-buy-row .sheet-off { font-size: 12px; }
.sheet-buy {
  margin-left: auto; align-self: center;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 660; letter-spacing: 0.01em;
  color: var(--accent);
  border: 1px solid rgba(255, 47, 86, 0.34);
  background: rgba(255, 47, 86, 0.07);
  text-decoration: none; white-space: nowrap;
  transition: all 0.22s var(--ease);
}
.sheet-buy:hover { color: #fff; background: linear-gradient(100deg, var(--accent), var(--accent-2)); border-color: transparent; }
html[data-theme="dark"] .sheet-buy { color: #ff8095; border-color: rgba(255, 90, 120, 0.4); }

/* ── 一句话说明（默认截 4 行） ── */
.sheet-copy.is-clamp {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.sheet-more {
  margin: 2px 0 12px; padding: 0; background: none; border: 0;
  font-size: 12.5px; font-weight: 620; color: var(--accent); cursor: pointer;
}
.sheet-more:hover { text-decoration: underline; }

/* ── 怎么买：一行小字 ── */
.sheet-how {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 12px 0 0; padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-soft); border: 1px dashed var(--line-strong);
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
}
.sheet-how span {
  flex: 0 0 auto; font-size: 11px; font-weight: 700;
  color: var(--muted); letter-spacing: 0.04em; padding-top: 2px;
}

/* ── 弹窗时间戳 ── */
.sheet-when { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .post-thumb { width: 60px; height: 60px; border-radius: 11px; }
  .sheet-hero { margin: -8px -22px 14px; }
  .sheet-buy { margin-left: 0; }
}
