/* ═══════════════════════════════════════════════
   动画放映厅 · 超级卡通大气版 v2.0
   糖果渐变 + 浮云星星气球 + 果冻卡片 + 彩虹进度
   ═══════════════════════════════════════════════ */
:root {
  --pk: #ff2b80;
  --or: #ff7a1f;
  --pu: #8338ec;
  --gr: #05b38a;
  --bl: #3d8bdb;
  --ink: #3a2350;
  --sub: #9a8fa5;
  --card: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fffafc 0%, #fff3f8 40%, #f6f2ff 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── 英雄区 ── */
.a-hero {
  position: relative;
  background: linear-gradient(135deg, #ff8f1f 0%, #ff2b80 45%, #8338ec 100%);
  padding: 20px 16px 74px;
  overflow: hidden;
  text-align: center;
}
/* 光斑装饰 */
.a-hero::before {
  content: '';
  position: absolute; inset: -40%;
  background:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,.22) 0 90px, transparent 91px),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.16) 0 120px, transparent 121px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,.12) 0 100px, transparent 101px);
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(24px,-16px) scale(1.06); }
}

.a-sky { position: absolute; inset: 0; pointer-events: none; }
.a-cloud { position: absolute; font-size: 34px; opacity: .8; filter: drop-shadow(0 6px 8px rgba(120,0,80,.18)); animation: cloudFloat 7s ease-in-out infinite; }
.a-cloud.c1 { top: 9%;  left: 7%; }
.a-cloud.c2 { top: 18%; right: 9%;  animation-delay: -2.4s; font-size: 26px; }
.a-cloud.c3 { top: 52%; left: 3%;  animation-delay: -4.8s; font-size: 22px; opacity: .6; }
@keyframes cloudFloat { 0%,100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(26px) translateY(-9px); } }

.a-star { position: absolute; font-size: 18px; animation: twinkle 2.6s ease-in-out infinite; }
.a-star.s1 { top: 14%; left: 22%; }
.a-star.s2 { top: 8%;  right: 26%; animation-delay: -.7s; }
.a-star.s3 { top: 40%; right: 6%;  animation-delay: -1.3s; font-size: 14px; }
.a-star.s4 { top: 62%; left: 12%;  animation-delay: -1.9s; }
.a-star.s5 { top: 30%; left: 40%;  animation-delay: -2.3s; font-size: 12px; }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.7) rotate(-12deg); } 50% { opacity: 1; transform: scale(1.25) rotate(12deg); } }

.a-balloon { position: absolute; font-size: 26px; animation: balloonRise 11s ease-in-out infinite; }
.a-balloon.b1 { bottom: -10px; right: 16%; }
.a-balloon.b2 { bottom: -18px; left: 18%; animation-delay: -5.5s; font-size: 20px; }
@keyframes balloonRise { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-46px) rotate(7deg); } }

.a-rainbow { position: absolute; top: 4%; right: 42%; font-size: 30px; opacity: .85; animation: rainbowPop 5s ease-in-out infinite; }
@keyframes rainbowPop { 0%,100% { transform: scale(.85) rotate(-8deg); } 50% { transform: scale(1.1) rotate(6deg); } }

/* 导航胶囊 */
.a-nav { position: relative; z-index: 2; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.a-home {
  color: #fff; font-weight: 900; font-size: 13.5px; text-decoration: none;
  background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.55);
  border-radius: 999px; padding: 8px 20px; transition: .18s cubic-bezier(.3,1.6,.5,1);
  backdrop-filter: blur(4px);
}
.a-home:hover { background: #fff; color: var(--pk); transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 20px -8px rgba(90,0,60,.5); }
.a-home2 { background: rgba(255,255,255,.1); }

.a-hero-in { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

/* 牛牛 */
.a-mascot-wrap { position: relative; display: inline-block; margin-bottom: 6px; }
.a-mascot {
  width: 108px; height: 108px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.9);
  box-shadow: 0 16px 34px -10px rgba(100,0,70,.55), inset 0 2px 0 rgba(255,255,255,.5);
  background: #fff; padding: 4px;
  animation: mascotBob 3.4s ease-in-out infinite;
}
@keyframes mascotBob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2.5deg); } }
.a-mascot-halo {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 3px dashed rgba(255,255,255,.55);
  animation: haloSpin 14s linear infinite;
}
@keyframes haloSpin { to { transform: rotate(360deg); } }
.a-mascot-spark { position: absolute; font-size: 18px; animation: twinkle 2.2s ease-in-out infinite; }
.a-mascot-spark.sp1 { top: -6px; right: -18px; }
.a-mascot-spark.sp2 { bottom: -2px; left: -22px; animation-delay: -1.1s; font-size: 14px; }

/* 大标题 */
.a-title {
  margin: 10px 0 8px; font-size: 42px; font-weight: 900; letter-spacing: 2px; color: #fff;
  text-shadow: 0 3px 0 rgba(160,20,90,.45), 0 12px 28px rgba(90,0,60,.4);
  animation: titlePop 1s cubic-bezier(.3,1.7,.5,1) both;
}
@keyframes titlePop { from { opacity: 0; transform: scale(.7) translateY(16px); } to { opacity: 1; transform: none; } }
.a-title-ico { display: inline-block; animation: wiggle 3s ease-in-out infinite; }
.a-title-flag { display: inline-block; font-size: 30px; margin-left: 8px; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }

.a-greet { margin: 0 auto; max-width: 560px; font-size: 14.5px; font-weight: 700; color: rgba(255,255,255,.95); text-shadow: 0 2px 8px rgba(120,0,70,.35); }

/* 观看进度糖果卡 */
.a-meter-card {
  margin: 18px auto 0; max-width: 430px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.94); border-radius: 22px; padding: 12px 18px;
  box-shadow: 0 16px 34px -14px rgba(90,0,60,.5);
  animation: titlePop 1s .25s cubic-bezier(.3,1.7,.5,1) both;
}
.a-meter-emoji { font-size: 30px; animation: wiggle 3.6s ease-in-out infinite; }
.a-meter-txt { flex: 1; text-align: left; font-size: 13px; color: var(--ink); }
.a-meter-txt b { font-weight: 800; }
.a-meter-txt i { font-style: normal; color: var(--pk); font-weight: 900; }
.a-meter-sep { color: #d3c7de; margin: 0 4px; }
.a-bar {
  position: relative; height: 12px; margin-top: 7px; border-radius: 99px;
  background: #f3e6f5; overflow: hidden;
}
.a-bar > i {
  display: block; height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff8f1f, #ff2b80 55%, #8338ec);
  transition: width .6s cubic-bezier(.3,1.3,.5,1);
}
.a-bar-shine {
  position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: barShine 2.6s ease-in-out infinite;
}
@keyframes barShine { to { left: 110%; } }

/* 波浪分隔 */
.a-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; display: block; }

/* ── 主体 ── */
.a-wrap { max-width: 1060px; margin: -8px auto 0; padding: 22px 16px 30px; position: relative; z-index: 3; }

/* 续看条 */
.a-last {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #fff4e3, #ffe9f2 60%, #f1e9ff);
  border: 2px solid #ffd0e0; border-radius: 18px; padding: 12px 16px; margin-bottom: 18px;
  box-shadow: 0 10px 24px -14px rgba(200,40,120,.4);
  animation: titlePop .7s .1s cubic-bezier(.3,1.7,.5,1) both;
}
.a-last-ico { font-size: 24px; animation: wiggle 3.4s ease-in-out infinite; }
.a-last-text { flex: 1; font-weight: 800; font-size: 13.5px; color: var(--ink); }

/* 按钮 */
.a-btn {
  border: none; cursor: pointer; font-family: inherit;
  font-weight: 900; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, #ff7a1f, #ff2b80 60%, #8338ec);
  border-radius: 999px; padding: 9px 22px;
  box-shadow: 0 8px 18px -6px rgba(255,43,128,.55);
  transition: .18s cubic-bezier(.3,1.6,.5,1);
}
.a-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 26px -8px rgba(255,43,128,.65); }
.a-btn:active { transform: scale(.95); }

/* 分类 chips */
.a-cats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.a-cat {
  position: relative; border: 2.5px solid #ffd6e2; background: #fff; color: #7a5a8e;
  font-family: inherit; font-weight: 900; font-size: 14px;
  border-radius: 999px; padding: 10px 20px; cursor: pointer;
  transition: .18s cubic-bezier(.3,1.6,.5,1);
  box-shadow: 0 6px 14px -8px rgba(160,60,130,.35);
}
.a-cat:hover { transform: translateY(-4px) rotate(-2deg); border-color: var(--pk); color: var(--pk); box-shadow: 0 12px 22px -10px rgba(255,43,128,.5); }
.a-cat.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #ff7a1f, #ff2b80 55%, #8338ec);
  box-shadow: 0 10px 24px -8px rgba(255,43,128,.65);
  animation: chipIn .35s cubic-bezier(.3,1.8,.5,1);
}
@keyframes chipIn { from { transform: scale(.85); } to { transform: scale(1); } }
.a-cat.locked { opacity: .78; background: #f4eff8; color: #b0a0c0; border-style: dashed; }

/* 卡片网格 */
.a-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px;
}
.a-card {
  position: relative; background: var(--card); border-radius: 22px; padding: 16px 14px 14px;
  border: 2.5px solid #ffe3ec; cursor: pointer;
  box-shadow: 0 10px 26px -14px rgba(150,50,120,.35);
  transition: .2s cubic-bezier(.3,1.4,.5,1);
  animation: cardIn .5s cubic-bezier(.3,1.5,.5,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
.a-card:nth-child(2) { animation-delay: .05s; } .a-card:nth-child(3) { animation-delay: .1s; }
.a-card:nth-child(4) { animation-delay: .15s; } .a-card:nth-child(5) { animation-delay: .2s; }
.a-card:nth-child(6) { animation-delay: .25s; }
.a-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  border-color: #ff9ec4;
  box-shadow: 0 22px 40px -16px rgba(255,43,128,.5);
}
.a-card:active { transform: scale(.97); }
/* 卡片顶部彩条：四色循环 */
.a-card::before {
  content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 5px;
  border-radius: 0 0 8px 8px;
}
.a-card:nth-child(4n+1)::before { background: linear-gradient(90deg,#ff8f1f,#ff2b80); }
.a-card:nth-child(4n+2)::before { background: linear-gradient(90deg,#ff2b6e,#8338ec); }
.a-card:nth-child(4n+3)::before { background: linear-gradient(90deg,#3d8bdb,#05b38a); }
.a-card:nth-child(4n+4)::before { background: linear-gradient(90deg,#05b38a,#ffb347); }

.a-zone {
  position: absolute; top: 14px; right: 12px; z-index: 2;
  font-size: 10.5px; font-weight: 900; color: #fff;
  border-radius: 999px; padding: 3px 10px;
}
.a-zone.learn  { background: linear-gradient(135deg, #05b38a, #0aa06e); }
.a-zone.reward { background: linear-gradient(135deg, #ff7a1f, #ff2b80); }

.a-emoji {
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; height: 120px; margin-bottom: 10px;
  border-radius: 16px;
}
.a-card:nth-child(4n+1) .a-emoji { background: linear-gradient(135deg, #fff1e2, #ffe3ec); }
.a-card:nth-child(4n+2) .a-emoji { background: linear-gradient(135deg, #ffe9f2, #f3ecff); }
.a-card:nth-child(4n+3) .a-emoji { background: linear-gradient(135deg, #e8f2ff, #e2fff4); }
.a-card:nth-child(4n+4) .a-emoji { background: linear-gradient(135deg, #f2ffe9, #fff7e2); }
.a-emoji img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

.a-card b { display: block; font-size: 15.5px; font-weight: 900; color: var(--ink); margin-bottom: 6px; line-height: 1.4; }
.a-sum {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px; color: var(--sub); line-height: 1.65; min-height: 41px;
}
.a-grade {
  display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 800;
  color: #7b2fd6; background: #f3ecff; border: 1.5px solid #d9c6ff;
  border-radius: 999px; padding: 2px 10px;
}
.a-play {
  display: inline-block; margin-top: 8px; margin-left: 6px; font-size: 11px; font-weight: 800;
  color: #0a8a60; background: #e2fff4; border: 1.5px solid #9be7c8;
  border-radius: 999px; padding: 2px 10px;
}
/* 锁定态 */
.a-card.locked { pointer-events: auto; }
.a-card.locked::after {
  content: '🔒 完成闯关解锁';
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #fff;
  background: rgba(58,35,80,.62); backdrop-filter: blur(2.5px);
  border-radius: 20px;
  opacity: 0; transition: .2s;
}
.a-card.locked:hover::after { opacity: 1; }

/* 空态 */
.a-empty { text-align: center; padding: 56px 16px 40px; animation: titlePop .6s both; }
.a-empty-cow { display: block; font-size: 64px; margin-bottom: 12px; animation: mascotBob 3.2s ease-in-out infinite; }
.a-empty b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.a-empty small { color: var(--sub); font-size: 13px; }

/* ── AI 牛博士推荐 ── */
.a-ai {
  margin-top: 30px; background: var(--card);
  border: 2.5px solid #e3d5ff; border-radius: 24px; padding: 18px 20px;
  box-shadow: 0 14px 32px -18px rgba(110,50,190,.4);
  position: relative; overflow: hidden;
}
.a-ai::before {
  content: ''; position: absolute; top: -60px; right: -60px; width: 170px; height: 170px;
  border-radius: 50%; background: radial-gradient(circle, rgba(131,56,236,.12), transparent 70%);
}
.a-ai-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.a-ai-ava {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; border-radius: 50%; background: linear-gradient(135deg, #fff4e3, #ffe9f2);
  border: 3px solid #ffd0e0; animation: mascotBob 3.6s ease-in-out infinite;
}
.a-ai-ht b { display: block; font-size: 16px; font-weight: 900; color: var(--ink); }
.a-ai-ht small { color: var(--sub); font-size: 12px; }
.a-ai-badge {
  margin-left: auto; font-size: 11px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #8338ec, #ff2b80);
  border-radius: 999px; padding: 4px 12px;
  animation: twinkle 2.8s ease-in-out infinite;
}
.a-ai-in { display: flex; gap: 10px; }
.a-ai-in input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--ink); background: #fdf9ff;
  border: 2.5px solid #e3d5ff; border-radius: 999px; padding: 12px 20px; outline: none;
  transition: .22s;
}
.a-ai-in input:focus { border-color: #ff6b8a; box-shadow: 0 0 0 4px rgba(255,107,138,.16), 0 14px 30px -14px rgba(255,0,110,.4); background: #fff; }
.a-ai-in input::placeholder { color: #c5b8d6; font-weight: 600; }
.a-ai-out {
  margin-bottom: 14px; padding: 14px 16px;
  background: #fdf9ff; border: 2px dashed #d9c6ff; border-radius: 16px;
  font-size: 13.5px; line-height: 1.9; color: #4a3a65;
}
.a-ai-out button { margin: 0 6px 6px 0; }

/* 页脚 */
.a-foot {
  text-align: center; color: var(--sub); font-size: 12px; font-weight: 700;
  margin: 30px 0 6px;
}
.a-foot i { font-style: normal; margin: 0 8px; color: #d8cbe2; }

/* ── 弹窗 ── */
.a-modal { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 18px; }
.a-modal[hidden] { display: none; }   /* 关键：hidden 属性必须压过 display:flex，否则弹窗默认弹出 */
.a-last[hidden], .a-ai-out[hidden], .a-empty[hidden] { display: none; }   /* 同款坑统一兜底 */
.a-modal-mask { position: absolute; inset: 0; background: rgba(40,12,60,.55); backdrop-filter: blur(3px); }
.a-modal-box {
  position: relative; z-index: 2; width: min(680px, 94vw); max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 26px; padding: 22px 22px 20px;
  box-shadow: 0 30px 70px -20px rgba(60,10,90,.6);
  animation: modalIn .35s cubic-bezier(.3,1.6,.5,1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(.85) translateY(24px); } to { opacity: 1; transform: none; } }
.a-modal-box h3 { margin: 0 0 14px; font-size: 19px; font-weight: 900; color: var(--ink); }
.a-modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 2px solid #ffd6e2; background: #fff5f8; color: var(--pk);
  font-size: 13px; font-weight: 900; transition: .16s;
}
.a-modal-x:hover { background: var(--pk); color: #fff; transform: rotate(90deg); }
.a-modal-body-card {
  background: #fdf9ff; border: 2px dashed #d9c6ff; border-radius: 16px;
  padding: 14px 16px; font-size: 14px; line-height: 1.9; color: #4a3a65;
}

/* ── 移动端 ── */
@media (max-width: 640px) {
  .a-title { font-size: 30px; }
  .a-mascot { width: 84px; height: 84px; }
  .a-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .a-emoji { height: 92px; font-size: 40px; }
  .a-ai-in { flex-direction: column; }
  .a-meter-card { margin: 14px 8px 0; }
  .a-last { flex-wrap: wrap; }
}

/* ── 无障碍：减少动态 ── */
@media (prefers-reduced-motion: reduce) {
  .a-cloud, .a-star, .a-balloon, .a-rainbow, .a-mascot, .a-mascot-halo, .a-mascot-spark,
  .a-title-ico, .a-title-flag, .a-meter-emoji, .a-bar-shine, .a-last-ico, .a-ai-ava,
  .a-ai-badge, .a-empty-cow, .a-card, .a-hero::before { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   v3 超级游戏卡通动画放映厅（ah- 前缀，自包含，不碰旧 a- 样式）
   ═══════════════════════════════════════════════════════════ */
.ah-body, .ah-body * { box-sizing: border-box; }
.ah-body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  color: #20254a;
  font-family: "PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(255,193,92,.38) 0 12%, transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(118,225,255,.42) 0 12%, transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(255,121,183,.30) 0 14%, transparent 42%),
    linear-gradient(180deg,#e9f4ff 0%,#fff8ee 46%,#f4f0ff 100%);
}
.ah-body[hidden], .ah-modal[hidden], .ah-empty[hidden], .ah-feature[hidden],
.ah-ai-out[hidden], .ah-toast[hidden], .ah-lock[hidden] { display: none !important; }

/* 背景装饰 */
.ah-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ah-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .58; animation: ahFloat 9s ease-in-out infinite; }
.ah-blob.b1 { width: 260px; height: 260px; left: -80px; top: 22%; background: radial-gradient(circle at 35% 35%,#ffe98a,#ffb457); }
.ah-blob.b2 { width: 220px; height: 220px; right: -60px; top: 42%; background: radial-gradient(circle at 35% 35%,#c6f3ff,#70c7ff); animation-delay: -3s; }
.ah-blob.b3 { width: 180px; height: 180px; left: 48%; bottom: -70px; background: radial-gradient(circle at 35% 35%,#ffd1e6,#ff8fbf); animation-delay: -6s; }
.ah-twinkle { position: absolute; color: #ffb400; font-size: 22px; animation: ahTwinkle 2.2s ease-in-out infinite; }
.ah-twinkle.t1 { left: 12%; top: 16%; } .ah-twinkle.t2 { right: 18%; top: 28%; animation-delay: -.8s; } .ah-twinkle.t3 { left: 76%; bottom: 18%; animation-delay: -1.5s; }
.ah-cloud { position: absolute; font-size: 42px; opacity: .55; animation: ahFloat 12s ease-in-out infinite; }
.ah-cloud.c1 { left: 18%; top: 8%; } .ah-cloud.c2 { right: 10%; top: 60%; animation-delay: -5s; }
@keyframes ahFloat { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-16px) } }
@keyframes ahTwinkle { 0%,100%{ opacity:.35; transform:scale(.8) rotate(0) } 50%{ opacity:1; transform:scale(1.25) rotate(18deg) } }
@keyframes ahPop { from{ opacity:0; transform:translateY(16px) scale(.96) } to{ opacity:1; transform:none } }
@keyframes ahShine { 0%{ transform:translateX(-120%) } 100%{ transform:translateX(220%) } }
@keyframes ahBob { 0%,100%{ transform:translateY(0) rotate(-2deg) } 50%{ transform:translateY(-8px) rotate(2deg) } }

/* 顶栏 */
.ah-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  max-width: 1180px; margin: 0 auto; padding: 12px 20px;
  border-radius: 0 0 22px 22px;
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); border-top: 0;
  box-shadow: 0 10px 30px -18px rgba(44,36,94,.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.ah-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.ah-brand-ico {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 23px; border-radius: 15px;
  background: linear-gradient(135deg,#ffcf4a,#ff7a2f 55%,#f0336d); color: #fff;
  border: 3px solid #fff; box-shadow: 0 5px 0 #d44a37, 0 10px 18px -8px rgba(240,51,109,.8);
  animation: ahBob 5s ease-in-out infinite;
}
.ah-brand b { display: block; font-size: 19px; font-weight: 900; color: #272b58; line-height: 1.15; }
.ah-brand small { display: block; font-size: 10px; letter-spacing: 1.1px; color: #8b90ad; font-weight: 800; }
.ah-nav { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.ah-nav a {
  padding: 8px 13px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 800;
  color: #5c6186; background: #f5f7ff; border: 1px solid #e6e9fa; transition: .16s;
}
.ah-nav a:hover { color: #fff; background: linear-gradient(100deg,#ff8a1f,#f0336d); border-color: transparent; transform: translateY(-2px); }
.ah-login {
  padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 900; color: #fff;
  background: linear-gradient(100deg,#6d5cff,#b545ff); border: 2px solid #fff;
  box-shadow: 0 4px 0 #5436b8, 0 10px 18px -8px rgba(109,92,255,.9);
}
.ah-login:hover { transform: translateY(-2px); }

/* 主体 */
.ah-main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 24px 20px 56px; }

/* 英雄区 */
.ah-hero {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 24px; align-items: center;
  padding: 34px 36px; border-radius: 32px; overflow: hidden;
  background:
    linear-gradient(135deg,rgba(255,255,255,.94),rgba(255,247,238,.88)),
    repeating-linear-gradient(90deg,rgba(255,255,255,.24) 0 24px,transparent 24px 48px);
  border: 3px solid #fff;
  box-shadow: 0 12px 0 rgba(255,154,77,.36), 0 30px 60px -28px rgba(58,42,120,.55), inset 0 2px 0 #fff;
  animation: ahPop .42s ease both;
}
.ah-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: linear-gradient(90deg,#ff5d5d,#ffb43d,#ffe45e,#62d97b,#54c8ff,#9b6bff,#ff6fb5);
}
.ah-kicker {
  display: inline-block; padding: 6px 13px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .5px;
  color: #fff; background: linear-gradient(100deg,#6d5cff,#b545ff); box-shadow: 0 4px 10px -6px #6d5cff;
}
.ah-h1 { margin: 12px 0 8px; font-size: clamp(34px,5vw,54px); line-height: 1.05; font-weight: 1000; letter-spacing: 1px; color: #2a2c5e; text-shadow: 0 3px 0 #fff, 0 6px 0 rgba(255,180,61,.35); }
.ah-h1 span { display: inline-block; animation: ahBob 3.6s ease-in-out infinite; }
.ah-greet { margin: 0 0 18px; font-size: 15px; font-weight: 700; color: #61668c; line-height: 1.7; }
.ah-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.ah-stat {
  min-width: 106px; padding: 10px 14px; border-radius: 16px; text-align: center; background: #fff;
  border: 2px solid #ffe2c4; box-shadow: 0 5px 0 #ffd1a8;
}
.ah-stat b { display: block; font-size: 24px; line-height: 1; color: #f0642e; font-weight: 1000; }
.ah-stat span { display: block; margin-top: 5px; font-size: 11px; color: #8a8fae; font-weight: 800; }
.ah-energy { margin-top: 18px; max-width: 520px; padding: 13px 15px; border-radius: 16px; background: rgba(255,255,255,.78); border: 1px dashed #c9c2ff; }
.ah-energy-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.ah-energy-top b { color: #4d4696; font-weight: 900; }
.ah-energy-top span { color: #f0336d; font-weight: 900; }
.ah-energy-bar { position: relative; height: 12px; margin-top: 9px; border-radius: 999px; background: #ece9ff; overflow: hidden; box-shadow: inset 0 2px 4px rgba(50,40,100,.14); }
.ah-energy-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg,#54d6ff,#6d5cff,#f0336d); transition: width .4s ease; }
.ah-energy small { display: block; margin-top: 7px; color: #8a8fae; font-size: 11px; }
.ah-hero-art { position: relative; display: grid; place-items: center; min-height: 230px; }
.ah-hero-art img { position: relative; z-index: 2; width: 190px; max-width: 100%; filter: drop-shadow(0 14px 12px rgba(54,35,90,.28)); animation: ahBob 4.4s ease-in-out infinite; }
.ah-ring { position: absolute; border-radius: 50%; border: 3px dashed rgba(255,173,61,.55); animation: ahSpin 18s linear infinite; }
.ah-ring.r1 { width: 210px; height: 210px; } .ah-ring.r2 { width: 160px; height: 160px; border-color: rgba(109,92,255,.4); animation-direction: reverse; animation-duration: 13s; }
@keyframes ahSpin { to { transform: rotate(360deg) } }
.ah-art-chip { position: absolute; z-index: 3; bottom: 10px; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(100deg,#ff8a1f,#f0336d); box-shadow: 0 4px 0 #c22e5e; }
.ah-art-star { position: absolute; z-index: 3; font-size: 22px; animation: ahTwinkle 2.4s ease-in-out infinite; }
.ah-art-star.s1 { top: 12px; left: 12px; } .ah-art-star.s2 { top: 40px; right: 8px; animation-delay: -.7s; } .ah-art-star.s3 { bottom: 46px; left: 2px; animation-delay: -1.4s; }

/* 今日主打 */
.ah-feature {
  position: relative; margin-top: 20px; padding: 22px 24px; border-radius: 26px; overflow: hidden;
  color: #fff; border: 3px solid #fff;
  background: linear-gradient(115deg,#ff7a3d,#f0336d 55%,#8b4dff);
  box-shadow: 0 8px 0 #a72e5f, 0 24px 44px -24px rgba(240,51,109,.9);
  animation: ahPop .42s .08s ease both;
}
.ah-feature::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: rgba(255,255,255,.16); transform: skewX(-22deg); animation: ahShine 5s ease-in-out infinite; }
.ah-feature-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 900; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45); }
.ah-feature-body { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.ah-feature-emoji { width: 74px; height: 74px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 20px; font-size: 34px; background: rgba(255,255,255,.9); box-shadow: 0 6px 0 rgba(80,20,60,.28); }
.ah-feature-copy { min-width: 0; flex: 1; }
.ah-feature-copy h2 { margin: 0 0 5px; font-size: 22px; font-weight: 1000; }
.ah-feature-copy p { margin: 0 0 5px; font-size: 13px; opacity: .92; line-height: 1.5; }
.ah-feature-copy span { font-size: 11px; opacity: .82; }
.ah-btn {
  padding: 10px 18px; border-radius: 999px; border: 2px solid #fff; cursor: pointer;
  font-size: 13px; font-weight: 900; color: #fff; background: linear-gradient(100deg,#6d5cff,#b545ff);
  box-shadow: 0 5px 0 #5436b8; transition: transform .14s, box-shadow .14s;
}
.ah-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #5436b8; }
.ah-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #5436b8; }
.ah-btn-hot { flex: 0 0 auto; background: linear-gradient(100deg,#ffd93d,#ff8a1f); color: #5a2a00; border-color: #fff8d8; box-shadow: 0 5px 0 #c77912; }

/* 工具栏 */
.ah-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.ah-search { flex: 1 1 320px; display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 2px solid #ffe0cf; box-shadow: 0 5px 0 #ffd3bd; }
.ah-search span { font-size: 16px; }
.ah-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 14px; color: #2a2c5e; background: transparent; }
.ah-sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.ah-sorts button, .ah-refresh {
  padding: 8px 13px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 900;
  color: #6a5a9c; background: #fff; border: 2px solid #e8e2ff; box-shadow: 0 4px 0 #ded6fb; transition: .14s;
}
.ah-sorts button.on { color: #fff; background: linear-gradient(100deg,#6d5cff,#b545ff); border-color: transparent; box-shadow: 0 4px 0 #5436b8; }
.ah-refresh { color: #d45a20; border-color: #ffdbc0; box-shadow: 0 4px 0 #ffc8a4; }
.ah-sorts button:hover, .ah-refresh:hover { transform: translateY(-2px); }

/* 分类胶囊 */
.ah-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.ah-cat {
  padding: 9px 16px; border-radius: 16px; cursor: pointer; font-size: 13px; font-weight: 900;
  color: #626794; background: #fff; border: 2px solid #e9e8fa; box-shadow: 0 5px 0 #dedcf3; transition: .14s;
}
.ah-cat:hover { transform: translateY(-2px); border-color: #c9c2ff; }
.ah-cat.on { color: #fff; border-color: transparent; background: linear-gradient(100deg,#ff8a1f,#f0336d); box-shadow: 0 5px 0 #b52b58; }
.ah-cat.locked { opacity: .66; }

/* 片库卡片 */
.ah-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 18px; }
.ah-card {
  --accent: #ff7a45; --accent2: #ffc247;
  position: relative; padding: 12px; border-radius: 22px; cursor: pointer; overflow: hidden;
  background: #fff; border: 3px solid #fff;
  box-shadow: 0 7px 0 var(--accent), 0 18px 30px -18px rgba(45,35,90,.6), inset 0 2px 0 #fff;
  animation: ahPop .36s ease both; transition: transform .18s, box-shadow .18s;
}
.ah-card:nth-child(6n+1) { --accent:#ff7a45; --accent2:#ffd15c; }
.ah-card:nth-child(6n+2) { --accent:#6d5cff; --accent2:#59d2ff; }
.ah-card:nth-child(6n+3) { --accent:#f0336d; --accent2:#ff9cc0; }
.ah-card:nth-child(6n+4) { --accent:#20b486; --accent2:#8ee7b7; }
.ah-card:nth-child(6n+5) { --accent:#e0a020; --accent2:#ffe486; }
.ah-card:nth-child(6n+6) { --accent:#3a8de0; --accent2:#9ed8ff; }
.ah-card:hover { transform: translateY(-7px) rotate(-1deg); box-shadow: 0 12px 0 var(--accent), 0 26px 40px -18px rgba(45,35,90,.7); }
.ah-card-cover {
  position: relative; height: 112px; display: grid; place-items: center; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg,var(--accent2),var(--accent));
}
.ah-card-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%,rgba(255,255,255,.55),transparent 42%); }
.ah-cover-emoji { position: relative; z-index: 1; font-size: 46px; filter: drop-shadow(0 5px 3px rgba(0,0,0,.18)); }
.ah-card-badge { position: absolute; z-index: 2; left: 8px; top: 8px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; color: #fff; background: rgba(30,24,70,.48); backdrop-filter: blur(4px); }
.ah-card-new { position: absolute; z-index: 2; right: 8px; top: 8px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; color: #5a2a00; background: #ffe86b; box-shadow: 0 3px 0 #c99b16; }
.ah-card-title { display: block; margin: 11px 2px 5px; font-size: 15px; font-weight: 1000; color: #252a55; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-card-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; margin: 0 2px 8px; font-size: 11px; line-height: 1.5; color: #777d9f; }
.ah-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 2px 8px; }
.ah-card-meta span { padding: 3px 7px; border-radius: 8px; font-size: 10px; font-weight: 800; color: #676ca0; background: #f3f4fd; }
.ah-card-foot { display: flex; justify-content: space-between; align-items: center; margin: 0 2px; font-size: 10.5px; color: #9a9fbd; font-weight: 800; }
.ah-card.locked { filter: saturate(.55); }
.ah-lock { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: rgba(38,32,72,.58); color: #fff; font-size: 13px; font-weight: 900; backdrop-filter: blur(2px); }
.ah-fav-on { position: absolute; z-index: 3; right: 9px; bottom: 9px; font-size: 14px; }

/* 空态 */
.ah-empty { margin-top: 20px; padding: 42px 24px; text-align: center; border-radius: 26px; background: rgba(255,255,255,.8); border: 2px dashed #d8d2f5; }
.ah-empty span { font-size: 48px; }
.ah-empty b { display: block; margin: 8px 0; font-size: 18px; color: #3a3d70; }
.ah-empty p { margin: 0; color: #7d82a6; font-size: 13px; line-height: 1.7; }
.ah-empty code { padding: 2px 6px; border-radius: 6px; color: #d4407a; background: #fff0f6; font-weight: 800; }

/* AI 选片台 */
.ah-ai { margin-top: 30px; padding: 20px 22px; border-radius: 26px; background: rgba(255,255,255,.86); border: 3px solid #fff; box-shadow: 0 8px 0 rgba(109,92,255,.2), 0 20px 40px -24px rgba(60,40,120,.5); }
.ah-ai-head { display: flex; align-items: center; gap: 12px; }
.ah-ai-ava { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 24px; background: linear-gradient(135deg,#ffd15c,#ff7a45); border: 2px solid #fff; box-shadow: 0 4px 0 #d26a1f; }
.ah-ai-head b { display: block; font-size: 16px; color: #343864; }
.ah-ai-head small { display: block; margin-top: 2px; font-size: 11px; color: #8b90ad; }
.ah-ai-badge { margin-left: auto; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(100deg,#6d5cff,#f0336d); }
.ah-ai-in { display: flex; gap: 10px; margin-top: 14px; }
.ah-ai-in input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 14px; border: 2px solid #e9e6fb; outline: 0; font-size: 13px; background: #fbfaff; }
.ah-ai-in input:focus { border-color: #b545ff; box-shadow: 0 0 0 4px rgba(181,69,255,.12); }
.ah-ai-out { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: #f7f4ff; border: 1px dashed #cfc4ff; font-size: 13px; line-height: 1.8; color: #4b4674; white-space: pre-wrap; }
.ah-ai-out button { margin: 8px 6px 0 0; padding: 6px 11px; border-radius: 999px; border: 1px solid #ffc9a8; background: #fff; color: #d45a20; font-size: 11px; font-weight: 800; cursor: pointer; }
.ah-ai-out button:hover { background: #fff0e6; }

.ah-foot { margin-top: 26px; text-align: center; font-size: 11px; color: #9a9fbd; }
.ah-foot i { margin: 0 7px; font-style: normal; }

/* 播放器 */
.ah-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ah-modal-mask { position: absolute; inset: 0; background: rgba(18,12,42,.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ah-modal-box {
  position: relative; width: min(900px,100%); max-height: 92vh; overflow: auto; padding: 18px;
  border-radius: 26px; border: 3px solid #fff; color: #fff;
  background: linear-gradient(160deg,#2a2454,#141030);
  box-shadow: 0 28px 80px -24px rgba(0,0,0,.9), inset 0 2px 0 rgba(255,255,255,.16);
  animation: ahPop .26s ease both;
}
.ah-modal-x { position: absolute; z-index: 4; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid #ffd1e2; background: #fff; color: #f0336d; font-size: 13px; font-weight: 900; }
.ah-modal-x:hover { transform: rotate(90deg); }
.ah-player-head { display: flex; align-items: center; gap: 10px; padding-right: 46px; margin-bottom: 12px; }
.ah-player-tag { padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: 1px; color: #2a2454; background: #ffe86b; }
.ah-player-head b { font-size: 17px; font-weight: 1000; }
.ah-player-stage { position: relative; aspect-ratio: 16/9; width: 100%; overflow: hidden; border-radius: 18px; background: #000; box-shadow: inset 0 0 0 2px rgba(255,255,255,.16); }
.ah-player-stage video, .ah-player-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.ah-player-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ah-player-bar button { flex: 1 1 auto; padding: 9px 12px; border-radius: 12px; cursor: pointer; font-size: 12px; font-weight: 900; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.ah-player-bar button:hover { background: linear-gradient(100deg,#6d5cff,#f0336d); border-color: transparent; }
.ah-player-bar button.on { background: linear-gradient(100deg,#ffd93d,#ff8a1f); color: #4a2600; border-color: transparent; }
.ah-player-tip { margin: 12px 0 0; font-size: 11px; color: #b9b5d8; line-height: 1.6; }
.ah-toast { position: fixed; z-index: 300; left: 50%; bottom: 32px; transform: translateX(-50%); max-width: min(92vw,520px); padding: 12px 20px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 800; text-align: center; background: linear-gradient(100deg,#2a2454,#5b3aa8); border: 2px solid #fff; box-shadow: 0 14px 34px -14px rgba(0,0,0,.8); animation: ahPop .2s ease both; }

/* 响应式 */
@media (max-width: 900px) {
  .ah-top { flex-wrap: wrap; }
  .ah-nav { order: 3; width: 100%; margin-left: 0; }
  .ah-hero { grid-template-columns: 1fr; padding: 28px 24px; }
  .ah-hero-art { min-height: 180px; }
  .ah-hero-art img { width: 150px; }
}
@media (max-width: 640px) {
  .ah-main { padding: 16px 12px 44px; }
  .ah-hero { padding: 24px 18px; border-radius: 24px; }
  .ah-stats { gap: 7px; }
  .ah-stat { min-width: 90px; padding: 8px 10px; }
  .ah-feature-body { flex-wrap: wrap; }
  .ah-feature-emoji { width: 58px; height: 58px; font-size: 28px; }
  .ah-feature-copy { flex: 1 1 200px; }
  .ah-btn-hot { width: 100%; }
  .ah-toolbar { gap: 9px; }
  .ah-search { flex-basis: 100%; }
  .ah-grid { grid-template-columns: repeat(auto-fill,minmax(155px,1fr)); gap: 12px; }
  .ah-card-cover { height: 92px; }
  .ah-cover-emoji { font-size: 38px; }
  .ah-ai-in { flex-direction: column; }
  .ah-modal { padding: 10px; }
  .ah-modal-box { padding: 14px; border-radius: 20px; }
  .ah-player-bar button { flex: 1 1 42%; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-blob, .ah-twinkle, .ah-cloud, .ah-brand-ico, .ah-h1 span, .ah-ring, .ah-art-star, .ah-feature::after, .ah-card { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   v4：首屏骨架屏 + 视频帧封面 / 同名封面
   ═══════════════════════════════════════════════════════════ */
.ah-loading[hidden] { display: none !important; }
.ah-loading {
  margin: 20px 0 22px; padding: 18px 20px 22px; border-radius: 24px;
  background: rgba(255,255,255,.74); border: 2px dashed #dcd4ff;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.8);
  animation: ahPop .32s ease both;
}
.ah-loading-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ah-loading-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; background: linear-gradient(135deg,#ffd15c,#ff7a45); border: 2px solid #fff; box-shadow: 0 4px 0 #d56a25; }
.ah-loading-head b { display: block; font-size: 15px; color: #3a3470; font-weight: 1000; }
.ah-loading-head small { display: block; margin-top: 3px; font-size: 11px; color: #8b90ad; }
.ah-loading-dots { display: flex; gap: 5px; margin-left: auto; }
.ah-loading-dots i { width: 7px; height: 7px; border-radius: 50%; background: #6d5cff; animation: ahLoadDot 1s ease-in-out infinite; }
.ah-loading-dots i:nth-child(2) { animation-delay: .15s; background: #f0336d; }
.ah-loading-dots i:nth-child(3) { animation-delay: .3s; background: #ff8a1f; }
@keyframes ahLoadDot { 0%,100%{ transform:translateY(0); opacity:.45 } 50%{ transform:translateY(-5px); opacity:1 } }
.ah-skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 14px; }
.ah-skeleton {
  position: relative; overflow: hidden; padding: 12px; border-radius: 20px;
  background: #f7f5ff; border: 2px solid #fff; box-shadow: 0 6px 0 #e7e1fb;
}
.ah-skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.78),transparent);
  animation: ahSkeleton 1.35s ease-in-out infinite;
}
@keyframes ahSkeleton { to { transform: translateX(120%) } }
.ah-skeleton i { display: block; border-radius: 10px; background: #e5dff8; }
.ah-skeleton .sk-cover { height: 92px; margin-bottom: 11px; border-radius: 14px; }
.ah-skeleton .sk-title { height: 13px; width: 72%; margin-bottom: 9px; }
.ah-skeleton .sk-line { height: 9px; width: 100%; margin-bottom: 7px; }
.ah-skeleton .sk-line.short { width: 55%; }

.ah-card-cover { position: relative; }
.ah-card-cover::after { z-index: 2; pointer-events: none; }
.ah-cover-emoji { position: relative; z-index: 1; }
.ah-cover-img {
  position: absolute; inset: 0; z-index: 1; display: block;
  width: 100%; height: 100%; object-fit: cover; border-radius: 16px;
}
.ah-card-badge, .ah-card-new { z-index: 3 !important; }
.ah-cover-scan {
  position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 7px;
  padding: 3px 7px; border-radius: 999px; text-align: center;
  font-size: 9px; font-weight: 900; color: #fff; background: rgba(36,28,80,.56);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  letter-spacing: .3px; pointer-events: none;
}
.ah-feature-emoji { overflow: hidden; padding: 0; }
.ah-feature-emoji img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
  .ah-loading { padding: 15px 13px 18px; }
  .ah-skeleton-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .ah-skeleton { padding: 9px; border-radius: 16px; }
  .ah-skeleton .sk-cover { height: 74px; }
  .ah-loading-head small { line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-loading, .ah-loading-dots i, .ah-skeleton::after { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   v5：程序化彩色封面（零请求、首屏即有画面，视频帧随后覆盖）
   ═══════════════════════════════════════════════════════════ */
.ah-cover-art {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg,#ffd15c,#ff7a45);
}
.ah-cover-art[data-tone="0"] { background: linear-gradient(135deg,#ffd15c,#ff7a45); }
.ah-cover-art[data-tone="1"] { background: linear-gradient(135deg,#a78bfa,#6d5cff); }
.ah-cover-art[data-tone="2"] { background: linear-gradient(135deg,#ff9cc0,#f0336d); }
.ah-cover-art[data-tone="3"] { background: linear-gradient(135deg,#8ee7b7,#20b486); }
.ah-cover-art[data-tone="4"] { background: linear-gradient(135deg,#ffe486,#e0a020); }
.ah-cover-art[data-tone="5"] { background: linear-gradient(135deg,#9ed8ff,#3a8de0); }
.ah-cover-art::before {
  content: ""; position: absolute; z-index: 0; left: -12%; right: -12%; top: -35%; height: 85%;
  background: repeating-linear-gradient(115deg,rgba(255,255,255,.17) 0 10px,transparent 10px 22px);
  transform: rotate(-8deg); pointer-events: none;
}
.ah-cover-art::after {
  content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 22% 16%,rgba(255,255,255,.5),transparent 44%),
              linear-gradient(0deg,rgba(28,20,60,.2),transparent 58%);
}
.ah-cover-art-emoji {
  position: relative; z-index: 1; font-size: 44px; line-height: 1;
  filter: drop-shadow(0 6px 4px rgba(40,24,70,.28)); transform: translateY(-2px);
}
.ah-cover-art-play {
  position: absolute; z-index: 2; right: 9px; bottom: 8px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; font-size: 10px; color: #fff;
  background: rgba(30,24,70,.52); border: 2px solid rgba(255,255,255,.86);
  box-shadow: 0 3px 0 rgba(30,24,70,.24);
}
.ah-cover-art-star { position: absolute; z-index: 1; color: #fff; opacity: .86; font-size: 14px; }
.ah-cover-art-star.s1 { left: 13%; top: 15%; }
.ah-cover-art-star.s2 { right: 20%; top: 26%; font-size: 10px; }
.ah-cover-art-tag {
  position: absolute; z-index: 2; left: 8px; bottom: 8px; max-width: 66%;
  padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 900;
  color: #fff; background: rgba(30,24,70,.46);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ah-card-cover > .ah-cover-art { z-index: 0; }
.ah-card-cover > .ah-cover-img { z-index: 1; }
.ah-feature-emoji { position: relative; }
.ah-feature-emoji .ah-cover-art { border-radius: 18px; }
.ah-feature-emoji .ah-cover-art-emoji { font-size: 30px; }
.ah-feature-emoji .ah-cover-art-play, .ah-feature-emoji .ah-cover-art-tag { display: none; }
@media (max-width: 640px) {
  .ah-cover-art-emoji { font-size: 36px; }
  .ah-cover-art-tag { left: 6px; bottom: 6px; font-size: 8px; }
  .ah-cover-art-play { right: 7px; bottom: 6px; width: 22px; height: 22px; font-size: 9px; }
}
