/* ============================================================
   首页 · 众图网同构版式
   全屏轮播 + 悬浮搜索 + 分类楼层 + 热点日历 + 供稿卡 + 好评墙
   ============================================================ */

/* ---------------------------- Hero ---------------------------- */
/* 上移量 = 顶栏 64，轮播顶到页面最上端，header 悬浮其上 */
.hero { margin-top: calc(-1 * var(--header-h)); padding: 0 0 30px; overflow: hidden; }

.hero-banner { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 430px; overflow: hidden;
  /* 默认品牌暮色渐变：轮播移除后牌堆/搜索需要深色底衬托（no-banner 停用态沿用此底） */
  background: linear-gradient(135deg, #6d3df0 0%, #8b5cf6 55%, #d81e1e 130%);
}
@media (max-width: 900px) { .hero-banner { height: 340px; } }
@media (max-width: 560px) { .hero-banner { height: 300px; } }

/* --------------------- 首屏「积分祈愿」抽卡模块（轮播图背景 · 紧凑版面） --------------------- */
/* 轮播背景：后台「轮播管理」上传的轮播图，左出右进滑动轮换（4 秒/张），无遮罩直接铺底 */
.wz-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wz-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: translateX(100%); transition: transform 0.9s ease-in-out;
}
.wz-slide.on { transform: translateX(0); }
.wz-slide.left { transform: translateX(-100%); }
.wz-slide.jump { transition: none; }
.hero-banner.no-slides { background: radial-gradient(ellipse at 50% 18%, #2d2450 0%, #1a1430 55%, #120e20 100%); }
.hero-banner.wish-hero {
  height: auto; min-height: 440px;
  background: #14101f;
}
.wish-hero .hero-overlay {
  position: relative; bottom: auto; padding: 88px 0 44px;
  background: none;
}
.wish-hero .ov-inner { pointer-events: auto; }
/* 广播条（hero 顶部，真实中奖记录跑马灯） */
.wz-bcast {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 9; height: 30px; overflow: hidden;
  display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(120, 80, 10, 0.92), rgba(60, 40, 90, 0.92), rgba(120, 80, 10, 0.92));
  border-bottom: 1px solid rgba(255, 200, 80, 0.45);
}
.wz-bcast .track {
  width: 100%; text-align: center; font-size: 12.5px; color: #ffe9a0; letter-spacing: 1px;
  opacity: 1; transition: opacity 0.45s ease-in-out;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.wz-bcast .track.fade { opacity: 0; }
.wz-bcast .track b { color: #ffd75e; }
/* 钱包（hero 右上） */
/* 活动说明（搜索栏下方一行） */
.wz-sub { text-align: center; font-size: 12.5px; color: #9a8fc0; margin: 10px 0 0; letter-spacing: 1px; }
.wz-sub b { color: #ffd75e; }
/* 深色底上的搜索框微调（沿用白色胶囊） */
.wish-hero .hot-tags a { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.16); }
.wish-hero .hot-tags a:hover, .wish-hero .hot-tags a.t-red { background: rgba(229, 50, 45, 0.95); border-color: transparent; }
/* 卡阵：竖版卡片排成一排（10 张一行），窄屏改为横向滑动仍保持一排 */
.wz-stage {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px;
  padding-top: 6px; width: 100%; max-width: 1180px; margin: 0 auto;
  perspective: 1400px;   /* 让卡片的 rotateY 悬停翻转呈现左右立体翻转 */
}
.wz-card {
  position: relative; width: 100%; aspect-ratio: 0.5 / 1; perspective: 900px; cursor: pointer; min-width: 0;
}
/* 入场动画独立用 .enter 类（转圈 .spin 切换时不会重放入场导致闪烁） */
.wz-card.enter { opacity: 0; transform: translateY(16px); animation: wzEnter 0.3s ease-out forwards; }
@keyframes wzEnter { to { opacity: 1; transform: translateY(0); } }
/* 悬浮左右翻转一圈：rotateY 立体翻转（.spin 由 JS mouseenter 单次触发，触发后转完为止，鼠标离开/点击其他卡不中断） */
@keyframes wzSpinY {
  from { opacity: 1; transform: translateY(0); rotate: 0 1 0 0deg; }
  to   { opacity: 1; transform: translateY(0); rotate: 0 1 0 360deg; }
}
.wz-card.spin { animation: wzSpinY 1s ease-in-out forwards; }
/* 翻转全程只露正面：隐藏卡背（图币卡背为金色样式，旋转到背面会剧透），后半程正面呈镜像 */
.wz-card.spin .wz-back { visibility: hidden; }
.wz-card.spin .wz-face { backface-visibility: visible; -webkit-backface-visibility: visible; }
/* 已翻开的奖卡：悬停只做上下颤抖（不再整圈翻转） */
@keyframes wzShiver {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25% { translate: 0 -3px; rotate: -0.8deg; }
  50% { translate: 0 0; rotate: 0deg; }
  75% { translate: 0 3px; rotate: 0.8deg; }
}
.wz-card:not(.open):not(.idle):hover { animation: wzShiver 0.5s ease-in-out infinite; }
/* 翻到卡背后禁用隐藏正面（节日素材链接）的点击，避免截获「点击领取」 */
.wz-card:not(.idle):not(.open) .wz-front { pointer-events: none; }
.wz-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1); }
.wz-card.open .wz-inner { transform: rotateY(180deg); }
.wz-face {
  position: absolute; inset: 0; border-radius: 12px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
/* 卡背：积分奖（竖版排版） */
.wz-back {
  background: linear-gradient(180deg, #2c3a66, #1d2748 55%, #121a34);
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14); text-align: center;
}
.wz-back::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 7px; pointer-events: none; }
.wz-back .pt-label { margin-top: 44px; font-size: 10.5px; letter-spacing: 3px; color: #8fb0e0; }
.wz-back .pt-num { margin-top: 6px; font-size: 34px; line-height: 1.05; font-weight: 800; color: #ffd75e; text-shadow: 0 0 14px rgba(255, 200, 60, 0.55); }
.wz-back .pt-num.wide { font-size: 25px; }   /* 三位数（100）自动缩小，避免溢出窄卡 */
.wz-back .pt-unit { font-size: 9px; color: #c9a84e; letter-spacing: 1.5px; margin-top: 4px; }
.wz-back .spark { position: absolute; font-size: 12px; color: rgba(200, 220, 255, 0.5); font-style: normal; }
.wz-back .s1 { top: 14px; left: 11px; }
.wz-back .s2 { top: 22px; right: 12px; font-size: 9px; }
.wz-back .s3 { bottom: 52px; left: 13px; font-size: 9px; }
.wz-back .s4 { bottom: 62px; right: 11px; }
.wz-back .pt-cta { margin-top: auto; margin-bottom: 26px; font-size: 10px; color: #e8d9a0; letter-spacing: 1.2px; animation: wzPulse 1.6s ease-in-out infinite; }
@keyframes wzPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.wz-back.taken .pt-cta { animation: none; opacity: 0.4; color: #7a86a8; }
/* 卡背：图币奖（金色专属） */
.wz-back.coin { background: linear-gradient(180deg, #4a3a12, #33260c 55%, #1d1506); border-color: rgba(255, 200, 80, 0.75); }
.wz-back.coin::before { border-color: rgba(255, 215, 94, 0.3); }
.wz-back.coin .pt-label { color: #ffcf6a; }
.wz-back.coin .pt-num { color: #ffdf8f; text-shadow: 0 0 18px rgba(255, 190, 50, 0.9); }
.wz-back.coin .pt-unit { color: #c99a3e; }
.wz-card.coincard { /* 中奖卡不提前发光，避免剧透；光柱只在 .win（抽中图币）时出现 */ }

@keyframes wzCoinPulse { 0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 190, 60, 0.45)); } 50% { filter: drop-shadow(0 0 20px rgba(255, 200, 80, 0.8)); } }
/* 卡背：待抽取装饰态 */
.wz-card.idle .pt-label { color: #7d8ab0; }
.wz-card.idle .pt-num { color: #5d6a92; text-shadow: none; font-size: 20px; }
.wz-card.idle { cursor: default; filter: none; }
/* 正面：节日素材（竖版，文字压在底部渐变上） */
.wz-front { transform: rotateY(180deg); display: block; text-decoration: none; color: #fff; background: #101426; }
.wz-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wz-front .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, transparent, rgba(8, 10, 22, 0.92) 78%); }
.wz-front .name {
  position: absolute; bottom: 52px; left: 0; right: 0; text-align: center;
  font-size: 12px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75); padding: 0 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wz-front .price { position: absolute; bottom: 31px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: #ffd75e; }
.wz-front .go { position: absolute; bottom: 11px; left: 0; right: 0; text-align: center; font-size: 9px; color: rgba(255, 255, 255, 0.62); }
/* 稀有度光效 */
.wz-card.r5 { filter: drop-shadow(0 0 12px rgba(255, 190, 60, 0.5)); }
.wz-card.r5 .wz-back { border-color: rgba(255, 200, 80, 0.65); }
.wz-card.r4 { filter: drop-shadow(0 0 10px rgba(180, 130, 255, 0.42)); }
.wz-card.r4 .wz-back { border-color: rgba(200, 150, 255, 0.55); }
.wz-card.r3 { filter: drop-shadow(0 0 8px rgba(110, 170, 240, 0.35)); }
.wz-card.r3 .wz-back { border-color: rgba(150, 190, 255, 0.45); }
/* 未开奖（正面朝外）时一律不带光效，杜绝稀有度光晕剧透图币卡位置 */
.wz-card.open, .wz-card.idle { filter: none !important; }
.wz-card.claimed .wz-back { animation: wzFlashBack 0.7s ease-out; }
@keyframes wzFlashBack { 0% { box-shadow: inset 0 0 34px rgba(255, 220, 120, 0.95); } 60% { box-shadow: inset 0 0 34px rgba(255, 220, 120, 0.9); } 100% { box-shadow: inset 0 0 0 rgba(255, 220, 120, 0); } }
/* 图币金光爆发 */
.gz-burst {
  position: absolute; inset: -40px; pointer-events: none; opacity: 0;
  background: conic-gradient(from 0deg, rgba(255, 200, 70, 0) 0deg, rgba(255, 200, 70, 0.55) 30deg, rgba(255, 200, 70, 0) 60deg, rgba(255, 200, 70, 0.55) 120deg, rgba(255, 200, 70, 0) 150deg, rgba(255, 200, 70, 0.55) 210deg, rgba(255, 200, 70, 0) 240deg, rgba(255, 200, 70, 0.55) 300deg, rgba(255, 200, 70, 0) 330deg);
  border-radius: 50%; clip-path: circle(48% at 50% 50%); transform: scale(0.4);
}
.gz-burst.on, .wz-card.win .gz-burst { animation: wzSpinBurst 2.2s linear infinite, wzAppear 0.5s ease-out forwards; }
/* 银色光柱：抽中积分 */
.gz-burst.silver {
  background: conic-gradient(from 0deg, rgba(220, 232, 255, 0) 0deg, rgba(245, 250, 255, 0.95) 30deg, rgba(220, 232, 255, 0) 60deg, rgba(180, 210, 255, 0.9) 120deg, rgba(220, 232, 255, 0) 150deg, rgba(245, 250, 255, 0.95) 210deg, rgba(220, 232, 255, 0) 240deg, rgba(180, 210, 255, 0.9) 300deg, rgba(220, 232, 255, 0) 330deg);
  filter: drop-shadow(0 0 10px rgba(160, 200, 255, 0.9));
}
@keyframes wzSpinBurst { to { transform: scale(1) rotate(360deg); } }
@keyframes wzAppear { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0.85; } }
/* 操作区 */
.wz-tools { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.wz-tools span, .wz-tools a {
  cursor: pointer; font-size: 13px; letter-spacing: 1px; padding: 2px 4px;
  border-bottom: 1px dashed #5a527a; color: #c9bfe4; text-decoration: none;
}
.wz-tools span:hover, .wz-tools a:hover { color: #ffd75e; border-color: #ffd75e; }
.wz-tools .off { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.wz-tools .cta {
  border-bottom: none; padding: 9px 26px; border-radius: 999px; color: #fff; font-weight: 700;
  background: linear-gradient(180deg, #c9962e, #8a5f1a); letter-spacing: 2px; font-size: 13.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: filter 0.16s;
}
.wz-tools .cta:hover { color: #fff; filter: brightness(1.15); border-bottom: none; }
.wz-tools .done { opacity: 0.5; cursor: default; color: #8a80a8; border-bottom: none; }
/* 提示条 */
.wz-tip { height: 22px; text-align: center; font-size: 12.5px; color: #ffd75e; letter-spacing: 1px; margin-top: 4px; }
/* hero 内弹窗 */
.wz-mask {
  position: absolute; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center;
  background: rgba(8, 6, 16, 0.72);
}
.wz-mask.show { display: flex; }
.wz-modal {
  width: 350px; max-width: 92vw; background: linear-gradient(180deg, #251f3d, #1a1630);
  border: 1px solid rgba(255, 215, 94, 0.3); border-radius: 14px; padding: 26px 26px 22px; text-align: center;
}
.wz-modal h3 { font-size: 16px; letter-spacing: 2px; color: #ffe9a0; margin: 0 0 10px; }
.wz-modal p { font-size: 12.5px; color: #b0a8cc; line-height: 1.8; margin: 0; }
.wz-modal .hl { color: #ffd75e; font-weight: 700; }
.wz-modal .hc { color: #ffc76a; font-weight: 700; }
.wz-modal .btns { display: flex; gap: 10px; margin-top: 16px; }
.wz-modal .btns a, .wz-modal .btns button {
  flex: 1; cursor: pointer; border: none; padding: 9px 0; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 2px; text-decoration: none;
}
.wz-modal .ok { background: linear-gradient(180deg, #c9962e, #8a5f1a); color: #fff; }
.wz-modal .cancel { background: rgba(255, 255, 255, 0.09); color: #b0a8cc; }
/* 窄屏放不下 10 列时保持「一排」：改为横向滑动，卡片等宽不换行 */
@media (max-width: 900px) {
  .wz-stage {
    display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    gap: 8px; padding: 6px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .wz-stage::-webkit-scrollbar { display: none; }
  .wz-card { flex: 0 0 94px; }
  .wz-back .pt-label { margin-top: 34px; font-size: 9px; letter-spacing: 1.5px; }
  .wz-back .pt-num { font-size: 28px; }
  .wz-back .pt-num.wide { font-size: 21px; }
  .wz-back .pt-unit { font-size: 7.5px; letter-spacing: 0.6px; }
  .wz-back .pt-cta { margin-bottom: 16px; font-size: 8.5px; letter-spacing: 0.4px; }
  .wz-back .spark { display: none; }
  .wz-front .name { bottom: 40px; font-size: 10px; padding: 0 3px; }
  .wz-front .price { bottom: 24px; font-size: 9px; }
  .wz-front .go { bottom: 9px; font-size: 8px; }
}
@media (max-width: 560px) {
  .wz-card { flex: 0 0 86px; }
  .wz-front .name { font-size: 9px; bottom: 34px; }
  .wz-front .price { bottom: 20px; font-size: 8.5px; }
  .wz-front .go { display: none; }
}
@media (max-width: 520px) { .wz-bcast .track { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) {
  .wz-card, .wz-inner, .wz-bcast .track, .wz-back .pt-cta { animation: none !important; transition: none; opacity: 1; transform: none; }
}

.hero-banner .carousel {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; border-radius: 0;
}

/* ---------------------------- 单张 Banner ---------------------------- */
.banner-slide {
  flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; color: #fff;
  display: block; padding: 0;
}
.banner-slide::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 300px at 82% 18%, rgba(255, 255, 255, 0.24), transparent 62%),
    radial-gradient(420px 260px at 8% 90%, rgba(0, 0, 0, 0.18), transparent 65%);
}
.banner-slide.t-red { background: linear-gradient(110deg, #7d1109 0%, #cf2419 38%, #ef5a34 72%, #ffab5e 100%); }
.banner-slide.t-gold { background: linear-gradient(110deg, #5e3204 0%, #bd7d12 40%, #eda92c 72%, #ffd98a 100%); }
.banner-slide.t-violet { background: linear-gradient(110deg, #1a1040 0%, #4526a8 40%, #7a4de0 72%, #b98cff 100%); }

.b-deco { position: absolute; inset: 0; pointer-events: none; }
.b-deco i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.b-deco i:nth-child(1) { width: 300px; height: 300px; right: 6%; top: -110px; }
.b-deco i:nth-child(2) { width: 170px; height: 170px; right: 26%; bottom: -60px; }
.b-deco i:nth-child(3) { width: 64px; height: 64px; right: 13%; top: 34%; background: rgba(255, 255, 255, 0.16); }

.b-skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 78%);
}

.b-inner {
  position: relative; z-index: 3; height: 100%; max-width: var(--max); margin: 0 auto;
  padding: 76px 30px 130px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.b-copy { max-width: 560px; }
.b-kicker {
  display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.5px; backdrop-filter: blur(4px);
}
.b-title {
  margin: 13px 0 10px; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.14; font-weight: 800;
  letter-spacing: 1px; text-shadow: 0 4px 16px rgba(0, 0, 0, 0.22); color: #fff;
}
.b-title em {
  display: inline-block; font-style: normal; margin-left: 12px; color: #ffe6a8;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.b-sub { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); margin: 0 0 18px; max-width: 460px; }
.b-cta {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 24px; border-radius: 21px;
  background: #fff; color: #b3251c; font-weight: 800; font-size: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); transition: transform 0.16s;
}
.b-cta:hover { transform: translateY(-2px); }
.b-cta b { font-size: 16px; line-height: 1; }

/* 右侧促销气泡 */
.b-promo {
  flex-shrink: 0; margin-top: 8px; width: 176px; padding: 16px 14px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.94); color: #1d2129; text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24); display: flex; flex-direction: column; gap: 6px;
  backdrop-filter: blur(6px);
}
.bp-tag { font-size: 12px; font-weight: 700; color: #b3251c; }
.bp-price { font-size: 34px; font-weight: 800; line-height: 1; color: #e5322d; letter-spacing: -1px; }
.bp-price i { font-style: normal; font-size: 15px; font-weight: 700; margin-right: 2px; }
.bp-cta {
  height: 32px; border-radius: 16px; display: grid; place-items: center; font-size: 13px; font-weight: 800;
  color: #fff; background: linear-gradient(120deg, #e5322d, #ff7a52);
}
.b-promo-art {
  width: 176px; height: 130px; background: transparent; box-shadow: none; display: grid; place-items: center;
}
.bpa-emoji { font-size: 96px; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28)); }

/* ---------------------------- 悬浮搜索 ---------------------------- */
.hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 40px 0 60px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0));
  pointer-events: none;
}
/* 容器本身不拦截点击（否则盖住右侧牌堆），仅搜索框/热词可交互 */
.ov-inner { pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ov-inner .hero-search, .ov-inner .hot-tags { pointer-events: auto; }
.ov-ribbon {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 13px;
  background: rgba(229, 50, 45, 0.92); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.ov-ribbon i { width: 6px; height: 6px; border-radius: 50%; background: #ffe08a; }

.hero-search {
  display: flex; align-items: center; width: 100%; max-width: 560px; margin: 0 auto;
  background: #fff; border-radius: 28px; padding: 6px 6px 6px 22px; border: 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24); transition: box-shadow 0.2s;
}
.hero-search:focus-within { box-shadow: 0 16px 46px rgba(229, 50, 45, 0.32); }
.hero-search input {
  flex: 1; height: 42px; border: 0; outline: none; background: transparent;
  font-size: 15px; color: #1d2129; padding: 0 12px; min-width: 0;
}
.hero-search input::placeholder { color: #98a2b3; }
.hero-search .hs-btn {
  flex-shrink: 0; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(120deg, #e5322d, #ff7043);
  box-shadow: 0 6px 16px rgba(229, 50, 45, 0.36); transition: transform 0.16s;
}
.hero-search .hs-btn:hover { transform: scale(1.05); }

/* 轮播内的热门标签 */
.hot-tags { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hot-tags a {
  padding: 4px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(3px);
}
.hot-tags a:hover, .hot-tags a.t-red { background: rgba(229, 50, 45, 0.95); }
.hot-tags a.t-red:hover { background: #ff5b52; }

.carousel-dots { bottom: 10px; }
.carousel-arrow { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.2); }
.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

/* ---------------------------- 分类楼层 ---------------------------- */
/* flex 自动换行 + 居中：分类数量增减后始终水平居中、等宽铺满整行 */
.floor-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px;
}

.floor-card {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 58px; padding: 0 10px;
  flex: 1 1 130px; max-width: 190px;
  border-radius: 12px; color: #fff; overflow: hidden; transition: transform 0.18s, box-shadow 0.18s;
}
.floor-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16); }
.floor-card::after {
  content: ''; position: absolute; right: -20px; top: -26px; width: 70px; height: 70px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.14);
}
.fc-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.18);
}
.fc-icon svg { width: 19px; height: 19px; display: block; }
.fc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-body b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-body i { font-style: normal; font-size: 11px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.floor-card.t1 { background: linear-gradient(120deg, #ff512f, #f09819); }
.floor-card.t2 { background: linear-gradient(120deg, #4776e6, #6fb1fc); }
.floor-card.t3 { background: linear-gradient(120deg, #0ba360, #3cba92); }
.floor-card.t4 { background: linear-gradient(120deg, #7b4397, #dc2430); }
.floor-card.t5 { background: linear-gradient(120deg, #f7b500, #fd6e3a); }
.floor-card.t6 { background: linear-gradient(120deg, #2d8cf0, #46c6f5); }
.floor-card.t7 { background: linear-gradient(120deg, #5f6b7a, #97a3b3); }
.floor-card.t8 { background: linear-gradient(120deg, #d63384, #ff8f6b); }

/* ---------------------------- 热点日历（卡片） ---------------------------- */
.hot-cal {
  position: relative; display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 11px 14px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 22px rgba(17, 20, 26, 0.04);
}
.hc-head {
  display: flex; flex-direction: column; gap: 0; flex-shrink: 0; padding-right: 12px;
  border-right: 1px dashed var(--line); min-width: 104px;
}
.hc-head h2 { font-size: 15px; font-weight: 800; white-space: nowrap; margin: 0; display: flex; align-items: center; gap: 6px; }
.hc-icon { font-size: 15px; }
.hc-sub { font-size: 10.5px; color: var(--text-3); white-space: nowrap; line-height: 1.5; }
.hc-all { font-size: 11px; font-weight: 700; color: var(--brand); margin-top: 2px; white-space: nowrap; line-height: 1.5; }
.hc-all:hover { text-decoration: underline; }
.hc-list {
  display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; padding: 2px;
  scroll-snap-type: x proximity; scroll-behavior: smooth;
}
.hc-list::-webkit-scrollbar { display: none; }
/* 2026-12-03 收窄：卡片 136→118、内边距 10/12→8/10、行距 6→2，
   高度从约 84px 降到约 66px；名称独占一行，日期移到名称下面单独一排 */
.hc-card {
  position: relative; flex: 0 0 auto; width: 112px; padding: 7px 9px 8px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-elev); overflow: hidden;
  display: flex; flex-direction: column; gap: 2px; scroll-snap-align: start;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
/* 右上角光晕：倒计时挪到右上角后，原来的 68px 光晕会糊住「xx 天后」，
   缩到 54px 并往外推，只留一点边角暖色 */
.hc-card::after {
  content: ''; position: absolute; right: -28px; top: -28px; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 50, 45, 0.13), transparent 70%); pointer-events: none;
}
/* 第一行：编号 + 倒计时（两端对齐）；第二行：名称；第三行：日期 */
.hc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 13px; }
.hc-badge { font-size: 9.5px; font-weight: 800; color: var(--text-3); letter-spacing: 0.6px; line-height: 1; }
/* 倒计时分档：3 天内才用品牌红（紧迫），其余走中性灰，10 张卡不至于糊成一片红字 */
.hc-days { font-style: normal; font-size: 10px; font-weight: 800; color: var(--text-2); line-height: 1; white-space: nowrap; }
.hc-card.soon .hc-days { color: #d9381e; }
.hc-name {
  font-size: 12px; font-weight: 800; color: var(--text); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hc-md { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; line-height: 1.3; min-height: 14px; }
.hc-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(229, 50, 45, 0.14); }

.hc-card.hot { border-color: rgba(229, 50, 45, 0.3); background: linear-gradient(160deg, rgba(229, 50, 45, 0.08), var(--bg-elev)); }
.hc-card.hot .hc-badge { color: var(--brand); }
.hc-card.today { background: linear-gradient(150deg, #e5322d, #ff7a45); border-color: #e5322d; }
.hc-card.today .hc-name,
.hc-card.today .hc-md,
.hc-card.today .hc-badge,
.hc-card.today .hc-days { color: #fff; }
.hc-card.today::after { background: radial-gradient(circle, rgba(255, 255, 255, 0.38), transparent 70%); }

.hc-arrow {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text-2); font-size: 15px; display: grid; place-items: center;
}
.hc-arrow:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 620px) {
  .hot-cal { flex-wrap: wrap; gap: 10px; }
  .hc-head { border-right: 0; padding-right: 0; flex-direction: row; align-items: center; gap: 8px; }
  .hc-sub, .hc-all { display: none; }
  .hc-list { order: 3; flex-basis: 100%; }
}

/* ---------------------------- 供稿分成卡 ---------------------------- */
.feed-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .feed-cards { grid-template-columns: 1fr; } }
.feed-card {
  position: relative; border-radius: 16px; padding: 26px 28px; color: #fff; overflow: hidden;
  min-height: 152px;
}
.feed-card.fc-red { background: linear-gradient(120deg, #d9241c, #ff7a52); }
.feed-card.fc-violet { background: linear-gradient(120deg, #5b2bd9, #a06bff); }
.feed-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; letter-spacing: 0.4px; }
.feed-card p { font-size: 13.5px; line-height: 1.65; opacity: 0.92; max-width: 76%; margin: 0 0 16px; }
.fc-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 20px; border-radius: 18px;
  background: #fff; color: #b3251c; font-weight: 800; font-size: 13.5px; transition: transform 0.16s;
}
.fc-btn:hover { transform: translateY(-2px); }
.fc-emoji {
  position: absolute; right: 24px; bottom: 10px; font-size: 64px; opacity: 0.9;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.22));
}
.fc-deco {
  position: absolute; right: -46px; top: -46px; width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

/* ---------------------------- 好评墙（从右向左无缝滚动，速度随机且舒缓） ---------------------------- */
.praise-title { font-size: 20px; font-weight: 800; text-align: center; margin: 0 0 18px; }
.praise-title::before, .praise-title::after { content: '·'; color: var(--brand); margin: 0 10px; }
.pw-viewport { overflow: hidden; }
.praise-wall {
  display: flex; width: max-content;
  animation: pw-marquee var(--pw-dur, 90s) linear infinite;
}
.praise-wall:hover { animation-play-state: paused; }
@keyframes pw-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .praise-wall { animation: none; } }
.praise-item {
  width: 300px; flex-shrink: 0; margin-right: 12px;
  display: flex; align-items: flex-start; gap: 9px; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--line); font-size: 13px; line-height: 1.5;
  color: var(--text-2); overflow: hidden; transition: all .18s;
}
.praise-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.praise-item .praise-body { min-width: 0; flex: 1; }
.praise-item .pb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.praise-item .pb-head b { font-size: 13px; color: var(--text); }
.praise-item .pb-top {
  font-size: 10px; font-weight: 700; color: #b3541e; background: #fff1e6;
  border-radius: 4px; padding: 1px 6px; flex-shrink: 0;
}
html[data-theme='dark'] .praise-item .pb-top { background: rgba(255,146,66,.15); color: #ffb27a; }
.praise-item p { margin: 0; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.mini-avatar {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 11.5px; font-weight: 700;
}

/* ---------------------------- 轮播自定义背景图 ---------------------------- */
.banner-slide.has-img {
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* 图片轮播：不加任何蒙版/高光/暗角/装饰圆环，图片 100% 原样清晰；可读性由下方文字投影保证 */
.banner-slide.has-img::before { content: none; }
.banner-slide.has-img .b-deco { display: none; }
.banner-slide.has-img .b-title,
.banner-slide.has-img .b-title em { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 3px 14px rgba(0, 0, 0, 0.35); }
.banner-slide.has-img .b-kicker,
.banner-slide.has-img .b-sub { text-shadow: 0 0 4px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.5); }
.banner-slide.has-img .b-cta { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }

/* ------------------- header 下的分类导航条已删除（第二排分类导航） ------------------- */

/* ------------------- 全部素材区 · 分页搜索栏 ------------------- */
.gallery-search {
  display: flex; align-items: center; width: 100%; max-width: 520px;
  background: var(--bg-elev); border: 1.5px solid var(--line); border-radius: 24px;
  padding: 5px 5px 5px 18px; margin: 0 0 16px; transition: all 0.2s;
}
.gallery-search:focus-within { border-color: var(--brand); box-shadow: 0 8px 26px rgba(255, 77, 79, 0.16); }
.gallery-search input {
  flex: 1; height: 36px; border: 0; outline: none; background: transparent;
  font-size: 14px; color: var(--text); padding: 0 10px; min-width: 0;
}
.gallery-search input::placeholder { color: var(--text-3); }
.gs-btn {
  flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(120deg, #e5322d, #ff7043);
  box-shadow: 0 5px 14px rgba(229, 50, 45, 0.3); transition: transform 0.16s;
}
.gs-btn:hover { transform: scale(1.06); }

/* ------------------- 排序工具行（筛选面板之下） ------------------- */
.gallery-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.gallery-toolbar .toolbar { margin: 0; }
.gallery-toolbar .tabs { margin-bottom: 0; }
.gallery-toolbar .chips { margin: 0; }
@media (max-width: 768px) {
  .gallery-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ------------------- 顶栏（首页）半透明白框：8% 白，从页面最顶端开始 ------------------- */
body.on-home:not(.header-fixed) .header {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: transparent;
}
/* 顶栏文字统一白色（应用户要求）：半透明白框底不变，文字全白 + 轻投影保可读 */
body.on-home:not(.header-fixed) .header .logo,
body.on-home:not(.header-fixed) .header .nav a,
body.on-home:not(.header-fixed) .header .act-link { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25); }
body.on-home:not(.header-fixed) .header .nav a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
body.on-home:not(.header-fixed) .header .nav a.active { color: #fff; }
body.on-home:not(.header-fixed) .header .nav a.active::after { background: #fff; }
body.on-home:not(.header-fixed) .header .act-link.vip { color: #fff; }
body.on-home:not(.header-fixed) .header .icon-btn { background: rgba(255, 255, 255, 0.18); color: #fff; }
body.on-home:not(.header-fixed) .header .logo span small { color: rgba(255, 255, 255, 0.8); }
body.on-home:not(.header-fixed) .header .login-btn {
  border-color: var(--brand); background: var(--brand); color: #fff;
}
body.on-home:not(.header-fixed) .header .login-btn:hover { background: var(--brand-deep); }
body.on-home:not(.header-fixed) .header .wallet { color: #fff; background: rgba(255, 255, 255, 0.14); }
body.on-home:not(.header-fixed) .header .icon-btn:hover { background: rgba(255, 255, 255, 0.32); }

/* ============================ 节日专题页 ============================ */
.fest-hero {
  padding: 34px 0 26px; margin-bottom: 6px;
  background:
    radial-gradient(900px 320px at 14% -20%, rgba(229, 50, 45, 0.14), transparent 66%),
    radial-gradient(760px 300px at 88% 0%, rgba(255, 160, 71, 0.16), transparent 62%),
    linear-gradient(180deg, #fff7f2, var(--bg));
  border-bottom: 1px solid var(--line);
}
html[data-theme='dark'] .fest-hero { background: linear-gradient(180deg, #211a19, var(--bg)); }
.fest-back { display: inline-block; font-size: 13px; font-weight: 700; color: var(--text-3); margin-bottom: 14px; }
.fest-back:hover { color: var(--brand); }
.fest-hero-inner { display: flex; align-items: flex-end; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.fest-kicker {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  color: var(--brand); background: var(--brand-soft); margin-bottom: 10px;
}
.fest-left h1 { font-size: 34px; font-weight: 900; letter-spacing: -1px; margin: 0 0 8px; }
.fest-intro { margin: 0 0 12px; color: var(--text-2); font-size: 14px; max-width: 640px; line-height: 1.7; }
.fest-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-item {
  padding: 5px 12px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--text-2);
}
.fm-tag {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--brand); background: var(--brand-soft);
}
.fm-tag:hover { background: var(--brand); color: #fff; }
.fest-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fest-countdown {
  display: inline-flex; align-items: baseline; gap: 8px; margin-top: 20px; padding: 10px 20px;
  border-radius: 14px; background: linear-gradient(120deg, #e5322d, #ff7043); color: #fff;
  box-shadow: 0 10px 24px rgba(229, 50, 45, 0.24);
}
.fc-num { font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.fc-unit { font-size: 13px; font-weight: 700; opacity: 0.92; }
.fc-date { font-size: 12px; opacity: 0.76; margin-left: 6px; }
@media (max-width: 720px) {
  .fest-left h1 { font-size: 26px; }
  .fest-hero-inner { align-items: flex-start; }
}

/* ============================ 全年热点日历页 ============================ */
.calp-hero {
  padding: 40px 0 30px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 280px at 20% -30%, rgba(229, 50, 45, 0.16), transparent 66%),
    linear-gradient(180deg, #fff7f2, var(--bg));
}
html[data-theme='dark'] .calp-hero { background: linear-gradient(180deg, #211a19, var(--bg)); }
.calp-kicker {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  color: var(--brand); background: var(--brand-soft); margin-bottom: 10px;
}
.calp-hero h1 { font-size: 32px; font-weight: 900; letter-spacing: -1px; margin: 0 0 8px; }
.calp-hero p { margin: 0; color: var(--text-2); font-size: 14px; }

.calp-soon { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1100px) { .calp-soon { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .calp-soon { grid-template-columns: repeat(2, 1fr); } }

.calp-card {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-elev); position: relative; overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.calp-card::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 50, 45, 0.14), transparent 70%);
}
.calp-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(229, 50, 45, 0.13); }
.cc-md { font-size: 11.5px; font-weight: 800; color: var(--text-3); letter-spacing: 0.4px; }
.calp-card b { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cc-foot em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--brand); }
.cc-foot span { font-size: 11px; color: var(--text-3); }
.calp-card.hot { border-color: rgba(229, 50, 45, 0.3); background: linear-gradient(160deg, rgba(229, 50, 45, 0.07), var(--bg-elev)); }
.calp-card.today { background: linear-gradient(150deg, #e5322d, #ff7a45); border-color: #e5322d; }
.calp-card.today .cc-md, .calp-card.today b, .calp-card.today .cc-foot em, .calp-card.today .cc-foot span { color: #fff; }

.calp-month { margin-bottom: 22px; }
.calp-m-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.calp-m-head b { font-size: 15px; font-weight: 800; }
.calp-m-head span { font-size: 12px; color: var(--text-3); }
.calp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1100px) { .calp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .calp-grid { grid-template-columns: repeat(2, 1fr); } }

/* ------------------- 搜索联想下拉（分类导航 + 素材名称） ------------------- */
.sug-host { position: relative; }
.search-sug {
  position: fixed; z-index: 999;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 6px; display: none;
  max-height: 340px; overflow-y: auto;
}
.search-sug.open { display: block; }
.sug-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.sug-item:hover, .sug-item.hl { background: var(--bg-soft); }
.sug-ico {
  width: 36px; height: 36px; border-radius: 9px; background: var(--bg-soft);
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.sug-item.cat .sug-ico { background: var(--brand-soft); }
.sug-thumb {
  width: 48px; height: 36px; object-fit: contain; border-radius: 7px;
  background: var(--bg-soft); flex-shrink: 0;
}
.sug-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.sug-txt b { font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-txt i { font-style: normal; font-size: 11px; color: var(--text-3); }
.sug-item .sug-txt i b { font-size: inherit; }
/* 首行固定是「搜索“关键词”」：给一点品牌色，和下面的分类/素材区分开 */
.sug-item.q .sug-ico { background: rgba(216,30,30,.09); color: #d81e1e; }
.sug-item.q .sug-txt b { color: #d81e1e; }
.sug-empty {
  padding: 14px 12px; font-size: 12.5px; color: var(--text-3);
  text-align: center; line-height: 1.65;
}
/* 联想面板：命中片段高亮 + 分组标签（搜索历史 / 热门搜索） */
.sug-txt em { font-style: normal; color: #d81e1e; font-weight: 700; }
.sug-label { padding: 8px 12px 4px; font-size: 11.5px; color: var(--text-3); font-weight: 600; letter-spacing: .5px; }
/* 结果卡片标题关键词标红 */
.card-name em.hl-kw { font-style: normal; color: #d81e1e; font-weight: 700; }
/* 无结果页：热门素材兜底推荐 */
.empty-hot { margin-top: 18px; }
.empty-hot .eh-title { text-align: center; font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 12px; }
.empty-hot .eh-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.empty-hot .eh-item {
  display: flex; flex-direction: column; gap: 6px; border-radius: 10px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line); text-decoration: none;
  transition: transform .16s, box-shadow .16s;
}
.empty-hot .eh-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.empty-hot .eh-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.empty-hot .eh-item span {
  font-size: 12px; color: var(--text-2); padding: 0 8px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 767px) { .empty-hot .eh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------- 分区快捷标签悬停弹层（热门下载/免费专区/编辑精选） ------------------- */
.sec-chip-wrap { position: relative; display: inline-flex; }
.chip-pop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 40;
  width: 356px; padding: 10px; border-radius: 14px;
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.sec-chip-wrap:last-of-type .chip-pop { left: auto; right: 0; }
.sec-chip-wrap.open .chip-pop { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cp-item {
  display: flex; flex-direction: column; gap: 5px; padding: 7px; border-radius: 10px;
  background: var(--bg-soft); transition: background 0.15s, transform 0.15s;
}
.cp-item:hover { background: var(--brand-soft); transform: translateY(-2px); }
.cp-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 7px; background: var(--bg-soft); }
.cp-item b { font-size: 12px; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-item span { font-size: 11px; color: var(--brand); font-weight: 700; }
.cp-empty { grid-column: 1 / -1; text-align: center; color: var(--text-3); font-size: 12.5px; padding: 18px 0; }

/* 后台停用「轮播管理」后：hero 横幅压缩为搜索条高度 */
.hero-banner.no-banner { height: 210px; background: linear-gradient(135deg, #6d3df0 0%, #8b5cf6 55%, #d81e1e 130%); }
@media (max-width: 900px) { .hero-banner.no-banner { height: 180px; } }
@media (max-width: 560px) { .hero-banner.no-banner { height: 150px; } }

/* ===================== 首屏 v2（2026-12-01 改版） =====================
   去轮播 · 搜索上移 · 热词胶囊 · 10 卡一排（4:3 / 180° 翻转 / 无角标）
   卡高不写死：由「图片(4:3) + 信息区」自然撑开，任何视口都不会裁字
   ==================================================================== */
.hero-v2 {
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 20px) 0 32px;
  background: linear-gradient(180deg, #a9121a 0%, #cc1d1c 26%, #ef411d 62%, #ff8a35 100%);
  position: relative; overflow: hidden;
}
.hero-v2 .hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; background: none; }
/* 红色底图 → 后台「轮播管理」的图做背景轮播（2026-12-03）：
   只做背景，不带箭头、不带链接、不响应点击（pointer-events:none），6 秒一张、1.1 秒交叉淡入。
   图上盖一层红色蒙版，保证白字（标题/搜索框/卡片）对比度不掉。 */
.hero-v2 .hero-shots { position: absolute; inset: 0; }
.hero-v2 .hero-shots .hs {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center 45%; background-repeat: no-repeat;
  /* multiply + 品牌红：亮的地方（天空、云、水面）直接压成红色，暗部保留线条，
     出来是「红色双色调」而不是「红底上糊了张照片」——不加这一步，浅色图透出来整块首屏会发灰发黄 */
  background-color: #c1121f;
  background-blend-mode: multiply;
  /* 背景按要求「不做处理」：不交叉淡入、不做过渡，6 秒直接换一张（2026-12-03 修正） */
}
.hero-v2 .hero-shots .hs.on { opacity: .92; }
.hero-v2 .hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  /* 图已经压成红了，蒙版只做统一与压暗，别再把图糊没 */
  background:
    linear-gradient(180deg, rgba(120,8,12,.52) 0%, rgba(168,16,20,.40) 40%,
                    rgba(226,64,28,.32) 74%, rgba(255,138,53,.28) 100%);
}
/* 有实景背景时，原来的太阳光晕和楼群剪影会让画面糊成一片，直接让位 */
.hero-v2.has-shots .hero-sun, .hero-v2.has-shots .hero-sky { display: none; }
/* 没图（后台没配 / 图挂了）时保持原样：纯红渐变 + 剪影，不受影响 */
.hero-v2 .hero-sun {
  position: absolute; left: 50%; top: -170px; transform: translateX(-50%);
  width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,120,.5), rgba(255,150,60,.16) 55%, transparent 72%);
}
.hero-v2 .hero-sky { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; opacity: .1; display: block; }
.hero-v2 .hero-sky svg { width: 100%; height: 100%; display: block; }
.hero-v2 .hero-inner { position: relative; z-index: 3; padding: 0 16px; }
/* 首屏容器上限 1600 → 1780（2026-12-03，用户要「10 张卡各再宽 5mm」）：
   10 张 × 5mm = 189px，只能靠容器变宽来换。1780 内 10 张 = 171.2px，
   比原来的 151.6px 多 19.6px（5.19mm）；1600 及以下的屏幕受物理宽度限制，只能 +1.6px。 */
@media (min-width: 1280px) { .hero-v2 .wrap.hero-inner { max-width: 1780px; } }

/* 搜索：白色胶囊，max 740 居中 */
/* 搜索：白色胶囊（2026-12-02 放大：740→900 宽、46→60 高、字号 14.5→16.5） */
.hero-v2 .hero-search {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 900px; margin: 0 auto;
  background: #fff; border-radius: 99px; padding: 8px 9px 8px 26px;
  box-shadow: 0 14px 34px rgba(120,10,10,.32);
}
.hero-v2 .hero-search input {
  flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: transparent;
  font-size: 16.5px; color: #374151;
}
/* 聚焦反馈：白圈 + 加深投影（原来 :focus-within 被后面同特异性的规则整条覆盖，等于没有） */
.hero-v2 .hero-search:focus-within {
  box-shadow: 0 0 0 3px rgba(255,255,255,.55), 0 18px 42px rgba(80,6,6,.38);
}
/* 占位文案对比度 2.54:1 → 4.6:1，满足 AA 正文标准 */
.hero-v2 .hero-search input::placeholder { color: #6b7688; }

/* 清空按钮：有输入才出现，避免空框上挂个没用的 × */
.hero-v2 .hero-search .hs-clear {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  background: #eef0f4; color: #8a93a3; font-size: 16px; line-height: 1; padding: 0;
  display: none; align-items: center; justify-content: center;
  transition: background .16s, color .16s;
}
.hero-v2 .hero-search input:not(:placeholder-shown) ~ .hs-clear { display: flex; }
.hero-v2 .hero-search .hs-clear:hover { background: #e2e6ec; color: #5f6877; }
.hero-v2 .hero-search .hs-img-btn {
  flex: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid #e5e7eb; background: #f6f7f9; color: #6b7280; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: background .16s, border-color .16s;
}
.hero-v2 .hero-search .hs-img-btn:hover { background: #ffece8; border-color: #ff7043; }
.hero-v2 .hero-search .hs-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #ff5a2c, #e01b1b);
  display: flex; align-items: center; justify-content: center;
  transition: transform .16s;
}
.hero-v2 .hero-search .hs-btn svg { width: 23px; height: 23px; }
.hero-v2 .hero-search .hs-btn:hover { transform: scale(1.05); }

/* 推荐标题 + 排序 */
/* 2026-12-03 搜索栏居中：导航 → 搜索栏 → 标题 → 10卡，搜索栏上下间距相等（22/22），
   视觉落在胶囊导航和卡片区正中间，不再贴着导航 */
.home-main .rec-head { display: flex; align-items: center; gap: 10px; margin: 22px 0 8px; }
.home-main .rec-head h2 { font-size: 13.5px; color: #fff; font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 6px; margin: 0; }
.home-main .rec-head h2 b { font-size: 11px; font-weight: 500; opacity: .78; }
.home-main .rec-tabs { margin-left: auto; display: flex; gap: 6px; }
.home-main .rec-tabs button {
  font-size: 11.5px; padding: 4px 11px; border-radius: 99px; cursor: pointer;
  color: rgba(255,255,255,.88); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16);
  transition: background .16s, color .16s;
}
.home-main .rec-tabs button.on { background: #fff; color: #d81e1e; font-weight: 700; border-color: #fff; }

/* 10 卡一排 */
/* 卡片加宽（2026-12-03）：一排 10 张时「每张再宽 5mm(≈19px)」是屏幕宽的硬约束 ——
   10×19=190px 得从间隙和边距里抠。这里把间隙 9→4（省 45px），
   首屏容器上限 1440→1600、左右内边距 30→24（宽屏再多 60px），
   于是 1570px 以上的视口正好每张 +19px；1440 及以下只能 +5.7px（再宽就顶出屏幕了）。 */
.home-main .rec-cards {
  position: relative;   /* 换批浮层（.rec-ghost）的定位基准 */
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px;
  /* 换行时（1024 以下）行高强制一致：真卡的高度跟着封面 4:3 走，补位的求图卡/上新位
     靠文字撑，两者的内边距差几像素，行与行会参差不齐 —— 断行后一眼能看出来 */
  grid-auto-rows: 1fr;
}
/* 卡片 = 一个 <a>，只有正面（2026-12-03 去掉背面与翻转）。
   整张卡可点进详情，hover 只上浮 —— 不再有翻转抢走点击的问题 */
.home-main .flip {
  display: flex; flex-direction: column; min-width: 0; position: relative;
  border-radius: 8px; overflow: hidden; height: 100%;
  text-decoration: none; background: #fff;
  box-shadow: 0 4px 12px rgba(80,6,6,.22), 0 0 0 1px rgba(255,255,255,.45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-main .flip:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(80,6,6,.30), 0 0 0 1px rgba(255,255,255,.62);
}
/* 换批动画（2026-12-03 修正二「快进淡出 · 交叉淡化」）：
   旧的一批克隆成 .rec-ghost 浮层盖在上面长尾淡出（760ms，淡淡的消失），
   新的一批在下面 170ms 快进到位（快速进入），两边同时跑，中间不出现空白帧。
   全程只改 opacity —— 不加 filter / 不加 blend，缩略图保持原来的颜色。 */
.home-main .flip.rec-in { opacity: 0; }
/* 浮层：与父级同栅格（列数/间距由 home.js 从父级抄过来，写在行内），绝对定位盖住整排 */
.home-main .rec-ghost {
  position: absolute; inset: 0; z-index: 2;
  display: grid; pointer-events: none;
}
/* 置顶卡的位置占位（2026-12-03）：浮层只克隆非置顶卡，前面要垫 N 个透明格子，
   否则克隆出来的卡会从第 1 格开始排，淡出时整排「错位一格」 */
.home-main .rec-ghost > i { visibility: hidden; }
.home-main .rec-ghost-out { opacity: 0; }
/* 置顶卡（.flip.pin）：位置固定、不参与换批。这里刻意不给任何视觉标识 ——
   首屏挂「广告」角标会拉低站点质感，作者买的是曝光不是标签 */
/* 价格角标：绝对定位在封面左上角，不占 info 高度（实测加完 scrollHeight 不变） */
.home-main .flip .pj {
  position: absolute; top: 4px; left: 4px; z-index: 2;
  font-size: 9px; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 4px;
  color: #fff; background: rgba(17,20,26,.66); backdrop-filter: blur(2px);
  font-variant-numeric: tabular-nums;
}
.home-main .flip .pj.free { background: linear-gradient(135deg, #16a34a, #0d8a3c); }
.home-main .flip .pj.vip { background: linear-gradient(135deg, #c08a2e, #96661a); }
.home-main .flip img { display: block; flex: 0 0 auto; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center; background: #eef1f6; }
/* 卡片加宽但「高度不变」（2026-12-03）：封面按 4:3 算高会跟着变宽一起长高，
   所以给 10 列档（≥1280）加一道 max-height 天花板，取「加宽前该档的封面高度」。
   宽度撑满、高度封顶，object-fit:cover 自己裁上下 —— 卡片变宽，卡片高度一像素不动。
   上限不触发时（窄屏）仍是原来的 4:3，不受影响。 */
/* 求图卡/上新位的占位封面也是 4:3，同样要封顶 —— 它们只要比真卡高一点，
   grid-auto-rows:1fr 就会把整行（包括真卡）一起拉高，白锁了 max-height */
@media (min-width: 1280px) { .home-main .flip img, .home-main .ph-cover { max-height: 96px; } }
@media (min-width: 1400px) { .home-main .flip img, .home-main .ph-cover { max-height: 102px; } }
@media (min-width: 1600px) { .home-main .flip img, .home-main .ph-cover { max-height: 114px; } }
.home-main .info { padding: 5px 7px 6px; flex: 1; min-height: 0; }
.home-main .info b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 9.6px; font-weight: 600; color: #2b3444; line-height: 1.34;
}
.home-main .info span {
  display: block; font-size: 8.6px; color: #8b93a1; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* 缺口求图卡（素材不足时占位，点击去上传页）
   与真卡同构：4:3「封面」+ 底部文字条，保证换行后两行等高（2026-12-03） */
.home-main .ask-card, .home-main .rec-gap {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
  border-radius: 8px; min-width: 0; text-decoration: none; color: #fff;
  transition: background .16s, transform .16s, border-color .16s;
}
.home-main .ask-card {
  background: linear-gradient(155deg, rgba(255,255,255,.16), rgba(0,0,0,.18));
  border: 1px dashed rgba(255,255,255,.5);
}
.home-main .ask-card:hover { background: rgba(0,0,0,.26); border-color: rgba(255,255,255,.8); transform: translateY(-2px); }
.home-main .rec-gap {
  background: rgba(255,255,255,.05);
  border: 1px dashed rgba(255,255,255,.2);
}
/* 上半截占位：斜纹 + 一个字符，一眼看出「这里还空着」，但不会被当成坏图 */
.home-main .ph-cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: none;
  width: 100%; aspect-ratio: 4 / 3;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 6px, rgba(255,255,255,0) 6px 12px);
}
.home-main .ph-cover i {
  font-style: normal; font-size: 17px; line-height: 1;
  color: rgba(255,255,255,.5);
}
.home-main .ph-cover em {
  font-style: normal; font-size: 8.4px; line-height: 1.2; color: rgba(255,255,255,.4);
}
/* 求图卡是入口：字要看清；上新位只是空槽：让它退到背景里 */
.home-main .ask-card .ph-cover i { font-size: 21px; color: rgba(255,255,255,.8); }
.home-main .ask-card .ph-cover em { font-size: 9px; color: rgba(255,255,255,.6); }
.home-main .rec-gap .ph-cover i { font-size: 15px; color: rgba(255,255,255,.34); }
.home-main .rec-gap .ph-cover em { color: rgba(255,255,255,.3); }
/* 下半截文字条：padding 与真卡 .info 对齐，高度自然一致 */
.home-main .ph-body { padding: 5px 7px 6px; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.home-main .ask-card .ph-body b, .home-main .rec-gap .ph-body b {
  font-size: 9.6px; font-weight: 700; line-height: 1.34;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-main .ask-card .ph-body em, .home-main .rec-gap .ph-body em {
  font-style: normal; font-size: 8.6px; line-height: 1.3; margin-top: auto;
}
.home-main .ask-card .ph-body em { color: #ffdcae; }
.home-main .rec-gap .ph-body b { color: rgba(255,255,255,.72); }
.home-main .rec-gap .ph-body em { color: rgba(255,255,255,.42); }

/* 切 tab 时保留旧卡片 + 轻微淡出，避免整排闪白 */
.home-main .rec-cards.loading { opacity: .45; pointer-events: none; transition: opacity .12s; }

/* 骨架 */
.home-main .flip.sk { background: rgba(255,255,255,.22); min-height: 120px; box-shadow: none; animation: heroSk 1.1s ease-in-out infinite; }
.home-main .flip.sk:hover { transform: none; }
@keyframes heroSk { 0%,100% { opacity: .55; } 50% { opacity: .95; } }

/* 响应式：10 → 8 → 5 → 3 → 2 */
/* 1279 以下不再用 8 列：10 张卡会断成 8+2、右边空 6 格；5 列 2 行更整齐 */
@media (max-width: 1279px) { .home-main .rec-cards { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (max-width: 1023px) { .home-main .rec-cards { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (max-width: 767px)  { .home-main .rec-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .home-main .rec-head { flex-wrap: wrap; } .home-main .rec-tabs { margin-left: 0; }
  .hero-v2 { padding-top: calc(var(--header-h) + 14px); padding-bottom: 46px; } }
@media (max-width: 479px)  { .home-main .rec-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } .home-main .info b { font-size: 10.5px; } }

/* 触屏没有 hover：不做上浮，避免手指按住时卡片飘 */
@media (hover: none) { .home-main .flip:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .home-main .flip { transition: none; } }

/* 空结果 = 需求入口（2026-12-01） */
.empty .empty-ask {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  background: linear-gradient(135deg, #ff5a2c, #e01b1b); color: #fff !important;
  border-color: transparent; box-shadow: 0 6px 16px rgba(224, 27, 27, .22);
}
.empty .empty-ask:hover { filter: brightness(1.06); color: #fff !important; }
.empty .empty-tip { margin-top: 10px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
/* 移动端收口（2026-12-01）：顶栏精简 + 隐藏右侧悬浮条 + 首屏内边距对齐 .wrap */
@media (max-width: 767px) {
  .hero-v2 .hero-inner { padding: 0 16px; }
  .home-main .rec-cards { gap: 7px; }
  .home-main .flip .pj { font-size: 9.5px; padding: 3px 6px; }
  .hero-v2 .hero-sky { height: 62px; opacity: .18; }
  .header-actions { gap: 10px; }
  .header-actions .act-link { display: none; }
  #tjSideBar { display: none; }
}
@media (max-width: 767px) {
  .chip-pop { display: none !important; }       /* 手机无 hover，弹层只会撑出横向滚动 */
  .rank-wrap > * { min-width: 0; }              /* 榜单标题 nowrap 会撑破 grid 列 */
}

/* ===================== 首屏内容区（2026-12-02） =====================
   红色渐变底整体包住：分类导航 → 搜索框 → 热词 → 推荐标题 → 10 卡
   ==================================================================== */
.home-main { padding-top: 0; padding-bottom: 0; }
/* 首屏顺序（2026-12-03）：分类导航 → 搜索框 → 推荐标题 → 10 卡；搜索框额外下移 5mm */
.hero-v2 .cat-promo { margin: 0 auto; max-width: 1180px; }
.hero-v2 .hero-search { margin-top: calc(22px + 5mm); }
/* 分类卡在红底上被削顶的错觉要避免：白底上给一点投影，层次更清楚 */
.hero-v2 .cat-promo .floor-card { box-shadow: 0 4px 12px rgba(17,20,26,.10); }
@media (max-width: 767px) {
  .home-main { padding-top: 0; }
  /* 搜索框手机端同步下移 5mm，输入区保持 38 高方便点中 */
  .hero-v2 .hero-search { margin-top: calc(12px + 5mm); padding: 6px 7px 6px 18px; gap: 8px; }
  .home-main .rec-head { margin-top: 12px; }
  .hero-v2 .hero-search input { height: 38px; font-size: 15px; }
  .hero-v2 .hero-search .hs-img-btn { width: 32px; height: 32px; font-size: 15px; }
  .hero-v2 .hero-search .hs-btn { width: 38px; height: 38px; }
  .hero-v2 .hero-search .hs-btn svg { width: 20px; height: 20px; }
  /* 6 个分类卡排 2 行 3 列：图标收到 24px、字号 11.5px，保证「设计元素」这类四字名称不被截断 */
  .hero-v2 .cat-promo { gap: 7px; }
  .hero-v2 .cat-promo .floor-card {
    height: 46px; flex: 1 1 calc(33.333% - 7px); max-width: none; padding: 0 8px; gap: 6px;
  }
  .hero-v2 .cat-promo .fc-icon { width: 24px; height: 24px; border-radius: 7px; }
  .hero-v2 .cat-promo .fc-icon svg { width: 15px; height: 15px; }
  .hero-v2 .cat-promo .fc-body b { font-size: 11.5px; }
  .hero-v2 .cat-promo .fc-body i { display: none; }
}
