﻿/* 鼠标悬浮效果 */
a:hover {
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8); /* 黄色 → 白色光晕 */
}

a:hover div {
    transform: translateY(0) !important;
}
/* 1. 页面主体容器：居中显示，定义固定宽度（根据你的页面调整，如1400px） */
.main-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* 2. 广告栏基础样式：固定定位，基于主体容器对齐 */
.ad-sidebar {
  position: fixed;
  top: 50%;
  z-index: 50;
  transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  display: none;
}

/* 3. 左侧广告栏 */
.ad-left {
  left: calc(50% - 700px - 185px - 50px);
}

/* 4. 右侧广告栏 */
.ad-right {
  right: calc(50% - 700px - 235px);
}

/* 5. 广告栏内部样式（核心：黄色边框 → 白色边框） */
.ad-container-inner {
  background: rgba(255, 255, 255, 0.15); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.6); /* 🔥 黄色边框 → 白色半透明边框 */
  border-radius: 0 10px 10px 0;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); /* 🔥 黄色阴影 → 白色柔和阴影 */
  padding: 10px;
}
/* 右侧广告栏圆角调整 */
.ad-right .ad-container-inner {
  border-radius: 10px 0 0 10px;
}

/* 标题样式 */
.ad-title-text {
  text-align: center;
  color: #00fff5;
  font-weight: bold;
  font-size: 19px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 15px;
}

/* 广告项样式 */
.float-ad-item {
  display: block;
  width: 200px;
  height: 130px;
  margin-bottom: 15px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2); /* 🔥 黄色边框 → 白色细边框 */
}
.float-ad-item:last-child {
  margin-bottom: 0;
}

/* 广告图片样式 */
.ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 悬浮文字样式 */
.ad-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 8px;
  font-size: 12px;
  transform: translateY(100%);
  -ms-transform: translateY(100%);
  -webkit-transform: translateY(100%);
  transition: transform 0.3s ease;
  -webkit-transition: -webkit-transform 0.3s ease;
}
.ad-title {
  font-weight: bold;
  color: #ff0800;
  margin-bottom: 3px;
  font-size: 13px;
}

/* 响应式适配 */
@media (min-width: 1815px) {
  .ad-sidebar {
    display: block !important;
  }
}
@media (max-width: 1814px) {
  .ad-sidebar {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .ad-sidebar {
    display: none !important;
  }
}