/* ==========================================
   Bottom Banner (悬浮底部 + 居中 + 可关闭)
   ========================================== */

/* 1. 核心修复：固定在底部，并配合 JS 实现关闭隐藏 */
.jw-special-entrance--bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15); /* 向上投射阴影，增加悬浮感 */
  transition: transform 0.3s ease-in-out;
}

/* 配合 banner.js 的隐藏逻辑：点击关闭后，body会被加上这个class */
body.close-special-entrance .jw-special-entrance--bottom {
  display: none !important;
}

/* 2. 背景容器 */
.jw-special-entrance .wrapper {
  position: relative;
  width: 100%;
  background-image: url('/images/banner/bg-bottom.jpg'); 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat;
}

/* 半透明渐变遮罩，保证文字清晰 */
.jw-special-entrance .banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.4) 0%, rgba(15,23,42,0) 100%);
  z-index: 1;
  pointer-events: none; 
}

/* 3. 内容区：完美居中排版 */
.jw-special-entrance .url {
  display: flex;
  align-items: center;
  justify-content: center; /* 核心：让文字和按钮在横幅中居中 */
  gap: 50px; /* 文字和按钮的间距 */
  padding: 20px 60px 20px 20px; /* 右侧留出 60px 空间给关闭按钮，防止重叠 */
  text-decoration: none;
  position: relative;
  z-index: 2; 
  min-height: 90px;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto; /* 在超大屏幕上限制最大宽度并居中 */
}

.jw-special-entrance .banner-text {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left; /* 文字本身保持左对齐比较好看 */
}

.jw-special-entrance .banner-title {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 5px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
}

.jw-special-entrance .banner-desc {
  font-size: 1.05rem;
  margin: 0;
  color: #cbd5e1;
}

/* 按钮样式 */
.jw-special-entrance .banner-btn {
  background-color: #ff4b2b; 
  color: #fff;
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
  transition: transform 0.2s ease, background-color 0.2s;
}

.jw-special-entrance .url:hover .banner-btn {
  background-color: #ff3300;
  transform: scale(1.05); 
}

/* 4. 关闭按钮 (使用纯 CSS 绘制漂亮的 X) */
.jw-special-entrance .close {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-color: rgba(255,255,255,0.1); /* 微微透明的圆形底底 */
  border-radius: 50%;
  cursor: pointer;
  z-index: 10; /* 确保层级最高，能被点到 */
  transition: background-color 0.2s;
}

.jw-special-entrance .close:hover {
  background-color: rgba(255,255,255,0.3);
}

/* 绘制 X 的两条交叉线 */
.jw-special-entrance .close::before,
.jw-special-entrance .close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background-color: #fff;
}
.jw-special-entrance .close::before { transform: translate(-50%, -50%) rotate(45deg); }
.jw-special-entrance .close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* --- 5. 移动端自适应排版 --- */
@media (max-width: 768px) {
  .jw-special-entrance .url {
    flex-direction: column; /* 手机上变为上下排列 */
    text-align: center;
    padding: 15px 40px 15px 15px; /* 右侧留空间给关闭按钮 */
    gap: 12px;
  }
  .jw-special-entrance .banner-text {
    text-align: center; /* 手机上文字居中 */
  }
  .jw-special-entrance .banner-title {
    font-size: 1.2rem;
  }
  .jw-special-entrance .banner-desc {
    font-size: 0.95rem;
  }
  .jw-special-entrance .banner-btn {
    padding: 10px 40px; 
    font-size: 1rem;
  }
  .jw-special-entrance .close {
    top: 20px; /* 手机上把关闭按钮移到右上角，不遮挡文字 */
    transform: none;
    right: 10px;
  }
}