/* 首页专属样式：广告位 / 跑马灯 / FAQ / 进度条
 * （原 templates/default/index.php 模板 $tplHead 内联 <style>；
 *   公告条 / 浮层 / 旧内核导航兼容等共用样式已移入 css/default/site.css） */

/* ===== 广告位 ===== */
.ad-slot { position: relative; }
.ad-slot .ad-tag {
  position: absolute; top: 8px; right: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: #9ca3af; text-transform: uppercase; pointer-events: none;
}
.ad-slot iframe { border-radius: .75rem; }

/* ===== 平台跑马灯 ===== */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { animation: marquee 36s linear infinite; width: max-content; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-mask {
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-chevron { transform: rotate(90deg); }
.faq-chevron { transition: transform .2s ease; }

.progress-bar { transform-origin: left; }

/* 推荐徽标：脉冲缩放 + 光圈扩散 */
@keyframes recommend-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  55% { transform: scale(1.12); box-shadow: 0 0 0 14px rgba(34,197,94,0); }
}
.badge-recommend { animation: recommend-pulse 2.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  /* 仅降级装饰性动画；跑马灯为内容展示，由 JS 兜底保证滚动 */
  .progress-bar { animation: none !important; }
  .badge-recommend { animation: none !important; }
}