/* 🖼️ 首页广告位招租 + 📢 首页弹窗公告（独立样式文件） */
.home-ad-slot {
  max-width: 1200px; margin: 22px auto; padding: 0 20px; position: relative;
}
.home-ad-slot a { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(15, 23, 42, .16); transition: transform .25s ease, box-shadow .25s ease; }
.home-ad-slot a:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15, 23, 42, .22); }
.home-ad-slot img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: cover; background: #1e293b; }
.home-ad-slot .ad-tag {
  position: absolute; top: 10px; right: 30px; z-index: 2; pointer-events: none;
  background: rgba(15, 23, 42, .62); color: #e2e8f0; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; letter-spacing: .12em;
}

/* 📢 首页弹窗公告（后台 HTML 内容） */
.announce-popup-backdrop {
  position: fixed; inset: 0; z-index: 1200; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px);
}
.announce-popup-backdrop.open { display: flex; }
.announce-popup-card {
  position: relative; width: 100%; max-width: 520px; border-radius: 20px;
  background: #ffffff; color: #1e293b; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  padding: 30px 28px 24px;
  animation: announcePopupIn .35s ease;
}
@keyframes announcePopupIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.announce-popup-close {
  position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(15, 23, 42, .08); color: #475569; font-size: 18px; cursor: pointer; line-height: 1;
}
.announce-popup-close:hover { background: rgba(15, 23, 42, .16); color: #0f172a; }
.announce-popup-body {
  font-size: 14.5px; line-height: 1.85; text-align: left; word-break: break-word;
  max-height: min(62vh, 560px); overflow-y: auto; margin-bottom: 18px;
}
.announce-popup-body h1, .announce-popup-body h2, .announce-popup-body h3, .announce-popup-body h4 {
  margin: 0 0 10px; line-height: 1.4; font-weight: 900; color: #0f172a;
}
.announce-popup-body h1 { font-size: 23px; }
.announce-popup-body h2 { font-size: 20px; }
.announce-popup-body h3 { font-size: 17.5px; }
.announce-popup-body p { margin: 0 0 10px; }
.announce-popup-body img { max-width: 100%; height: auto; border-radius: 10px; }
.announce-popup-body a { color: #2563eb; font-weight: 700; }
.announce-popup-body ul, .announce-popup-body ol { padding-left: 20px; margin: 0 0 10px; }
.announce-popup-ok {
  display: block; width: 100%; height: 46px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; font-size: 15.5px; font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .32);
}

@media (max-width: 768px) {
  .home-ad-slot { margin: 14px auto; padding: 0 12px; }
  .home-ad-slot .ad-tag { right: 22px; top: 8px; }
  .home-ad-slot img { max-height: 180px; }
  .announce-popup-card { padding: 24px 18px 18px; }
  .announce-popup-body { font-size: 14px; }
}
