﻿        /* 广告基础样式 */
        .ad-container {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            width: 234px; /* 广告宽度 */
            background-image: url('/ff14m/ad/bg.jpg');
            border: 2px solid #fee499; /* 边框样式 */
            box-shadow: 0 0 15px rgba(0,0,0,0.3); /* 阴影效果 */
            z-index: 1000;
            transition: all 0.3s ease;
        }
        
        /* 左侧广告特定样式 */
        .ad-left {
            left: 0;
            border-radius: 0 10px 10px 0; /* 左侧圆角 */
        }
        
        /* 右侧广告特定样式 */
        .ad-right {
            right: 0;
            border-radius: 10px 0 0 10px; /* 右侧圆角 */
        }
        
        .ad-content {
            padding: 15px;
            text-align: center;
        }
        
        .ad-image-container {
            width: 100%;
            height: 281px; /* 图片容器高度 */
            overflow: hidden;
            margin-bottom: 10px;
            position: relative;
        }
        
        .ad-image {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 图片填充方式 */
            transition: transform 0.3s ease;
        }
        
        .ad-image:hover {
            transform: scale(1.05); /* 鼠标悬停放大效果 */
        }
        
        .ad-title {
            font-weight: bold;
            margin-bottom: 8px;
            color: #fee499; /* 标题颜色 */
            font-size: 20px;
        }
        
        .ad-desc {
            font-size: 14px;
            color: #fee499;
            margin-bottom: 12px;
        }
        
        .ad-btn {
            padding: 6px 15px;
            background: linear-gradient(to right, #fee499, #fee499); /* 按钮渐变背景 */
            color: #0b1d35;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        
        .ad-btn:hover {
            background: linear-gradient(to right, #fee499, #fee499); /* 悬停效果 */
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .close-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            width: 22px;
            height: 22px;
            background-color: #0b1d35;
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 22px;
            cursor: pointer;
            font-size: 18px;
            z-index: 10;
            transition: all 0.3s ease;
        }
        
        .close-btn:hover {
            background-color: #0b1d35;
            transform: rotate(90deg);
        }
        
        /* 折叠状态 */
        .ad-container.collapsed {
            opacity: 0.7;
        }
        
        .ad-left.collapsed {
            left: -231px;
        }
        
        .ad-right.collapsed {
            right: -230px;
        }
        
        .toggle-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 25px;
            height: 70px;
            background: linear-gradient(to right, #0b1d35, #0b1d35);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-weight: bold;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        
        .ad-left .toggle-btn {
            right: -25px;
            border-radius: 0 8px 8px 0;
        }
        
        .ad-right .toggle-btn {
            left: -25px;
            border-radius: 8px 0 0 8px;
        }
        
        .toggle-btn:hover {
            width: 30px;
            background: linear-gradient(to right, #ffe198, #ffe198);
        }