/* ============================================================
   858825 首页组件移植版（注入到 64.90.15.146 主题壳）
   - .site-top-ads      顶部大图（1999.cc 同款位）
   - .notice-bar        铃铛滚动提醒（纯 CSS 步进）
   - .site-banners      4 张横幅（移动限制 / amkj / 银河 / 晒码汇）
   ============================================================ */

/* ---------- 顶部大图 ---------- */
.site-top-ads {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 6px;
  padding: 0 10px;
  box-sizing: border-box;
}
.site-top-ads img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

/* ---------- 铃铛通知栏 ---------- */
.notice-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 5px auto;
  max-width: 800px;
  box-sizing: border-box;
  height: 48px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.notice-icon {
  flex-shrink: 0;
  margin-right: 12px;
  font-size: 18px;
  line-height: 1;
  animation: nb-pulse 2s ease-in-out infinite;
}
.notice-content {
  flex: 1;
  overflow: hidden;
  font-size: 14px;
  color: #333;
  line-height: 24px;
  height: 24px;
  position: relative;
}
.notice-scroll { animation: nb-scrollUpStep 12s ease-in-out infinite; }
.notice-scroll:hover { animation-play-state: paused; }
.notice-item {
  height: 24px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

@keyframes nb-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
@keyframes nb-scrollUpStep {
  0%, 12.5% { transform: translateY(0); }
  25%       { transform: translateY(-24px); }
  37.5%     { transform: translateY(-48px); }
  50%       { transform: translateY(-72px); }
  62.5%     { transform: translateY(-96px); }
  75%       { transform: translateY(-120px); }
  87.5%     { transform: translateY(-144px); }
  100%      { transform: translateY(-168px); }
}

/* ---------- 四张横幅 ---------- */
.site-banners {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}
.site-banners img {
  width: 100%;
  height: auto;
  display: block;
  margin: 6px auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  transition: transform .35s ease, box-shadow .35s ease;
}
.site-banners img:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

@media (max-width: 768px) {
  .notice-bar { padding: 10px 12px; height: 44px; }
  .notice-content, .notice-item { font-size: 13px; }
}
@media (max-width: 480px) {
  .notice-bar { padding: 8px 10px; height: 40px; }
  .notice-icon { font-size: 16px; }
  .notice-content, .notice-item { font-size: 12px; }
}

/* ===== 子站主题覆盖（防止主题 CSS 把广告图压成缩略图）===== */
.site-top-ads, .site-banners {
  display: block !important;
  width: 100% !important;
  max-width: 800px !important;
  height: auto !important;
  margin: 6px auto !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.site-top-ads img, .site-banners img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 40px !important;
  max-height: none !important;
  margin: 6px auto !important;
  border-radius: 12px !important;
  object-fit: contain !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.12) !important;
}
.notice-bar { display: flex !important; height: 48px !important; overflow: hidden !important; }
.notice-content { height: 24px !important; overflow: hidden !important; }

/* ===== 子站自带「公告栏」→ 统一成主站通知栏样式 ===== */
.nc-noticebar{width:100%!important;max-width:800px!important;margin:6px auto!important;padding:0 10px!important;box-sizing:border-box!important}
.nc-noticebar .van-notice-bar{background:#fff!important;color:#333!important;border-radius:8px!important;min-height:44px!important;padding:10px 14px!important;box-shadow:0 2px 10px rgba(0,0,0,.08)!important}
.nc-noticebar .van-notice-bar .notice-icon{display:none!important}
.nc-noticebar .van-notice-bar::before{content:"";flex:0 0 20px;width:20px;height:20px;margin-right:10px;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2307c160'%3E%3Cpath d='M12 2a2 2 0 0 1 2 2v.6A7 7 0 0 1 19 11v4l2 2v1H3v-1l2-2v-4a7 7 0 0 1 5-6.4V4a2 2 0 0 1 2-2zm0 19a3 3 0 0 1-3-3h6a3 3 0 0 1-3 3z'/%3E%3C/svg%3E") center/contain no-repeat;animation:nb-pulse 2s ease-in-out infinite}
.nc-noticebar .notice-label{color:#07c160!important;font-weight:700!important}
.nc-noticebar .van-notice-bar__content{color:#333!important;font-size:14px!important}
