
/* =========================================
   焦点轮播 (Focus Swiper) - 高端视觉升级
   ========================================= */
.focus-section {
    padding: 40px 0;
    background-color: #fff; /* 纯净背景 */
}

/* 容器：添加阴影和圆角 */
.focus-ratio-box {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); /* 高端漫射阴影 */
    /* 边框效果 */
    border: 1px solid rgba(0,0,0,0.05);
    transform: translateZ(0); /* 开启硬件加速 */
}

.focus-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.focus-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.focus-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 视差滚动基础状态 */
    transform: scale(1.1);
    transition: transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* 悬停微动 */
.focus-ratio-box:hover .focus-link img {
    transform: scale(1.15); /* 悬停时稍微放大 */
}

/* 磨砂玻璃标题栏 */
.focus-title {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    padding: 20px 30px;
    
    /* 磨砂玻璃效果 (Backdrop Filter) */
    background: rgba(255, 255, 255, 0.2); /* 半透明白 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border-top: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    
    /* 标题入场动画 */
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    
    /* 适配暗色模式/深色背景图，这里强制亮色风格 */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Swiper Slide 激活时标题上浮 */
.swiper-slide-active .focus-title {
    transform: translateY(0);
}

/* 装饰性箭头 */
.focus-title::after {
    content: '→';
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: 24px;
    color: #fff;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease 0.2s;
    margin-left: 10px;
}

.swiper-slide-active .focus-title::after {
    opacity: 1;
    transform: translateX(0);
}

/* Swiper 导航按钮自定义 - 极简风格 */
.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    
    /* 修复箭头图标显示问题 */
    /* Swiper 3 默认使用蓝色 SVG 背景图，这里我们显式定义深色 SVG 箭头 */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23333333'%2F%3E%3C%2Fsvg%3E");
    background-size: 18px auto; /* 调整箭头大小 */
    background-position: center;
    background-repeat: no-repeat;
    
    opacity: 0; /* 默认隐藏 */
    transition: all 0.3s ease;
    transform: scale(0.9);
    z-index: 10;
}

.swiper-button-next {
    /* 右箭头：旋转180度或使用右箭头 SVG */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23333333'%2F%3E%3C%2Fsvg%3E");
}

/* 悬停容器显示按钮 */
.focus-ratio-box:hover .swiper-button-prev,
.focus-ratio-box:hover .swiper-button-next {
    opacity: 1;
    transform: scale(1);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #004a99;
    box-shadow: 0 6px 16px rgba(0, 74, 153, 0.3);
    /* 悬停时箭头变白：替换为白色 SVG */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
}

.swiper-button-next:hover {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
}

/* Swiper 分页器自定义 - 几何线条 */
.swiper-pagination {
    bottom: 20px !important;
    text-align: right !important;
    padding-right: 30px;
    width: auto !important;
    left: auto !important;
    right: 0 !important;
    z-index: 20; /* 确保在标题栏之上 */
}

.swiper-pagination-bullet {
    width: 24px; /* 长条 */
    height: 4px;
    border-radius: 2px;
    background: #000;
    opacity: 0.2;
    transition: all 0.3s ease;
    margin: 0 4px !important;
    vertical-align: middle;
}

.swiper-pagination-bullet-active {
    width: 36px; /* 激活变长 */
    background: #fff;
    opacity: 1;
}

@media (max-width: 768px) {
    .focus-title {
        font-size: 15px;
        padding: 0px 15px 4px;
        background: rgba(255, 255, 255, 0.2); /* 移动端不透明度高点 */
    }
    
    .swiper-pagination {
        display: none; /* 移动端隐藏分页器，避免遮挡 */
    }
    
    .focus-ratio-box:hover .swiper-button-prev,
    .focus-ratio-box:hover .swiper-button-next {
        opacity: 0; /* 移动端不显示按钮，靠滑动 */
    }
}
