/* ==================== 轮播图样式 ==================== */
/* 用于博客首页顶部轮播图区域，包含视频/图片轮播、指示器和导航按钮 */
.hero-banner {
    height: 320px;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.hero-banner:hover .hero-nav {
    opacity: 1;
}
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-slide .cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slide .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0) 100%);
}
.hero-slide .title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    animation: fadeInUp 0.7s ease-out;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-slide .slogan {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.hero-slide .slogan .line {
    margin-bottom: 6px;
    animation: fadeInUp 0.7s ease-out 0.15s both;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.hero-slide .slogan .line:last-child {
    margin-bottom: 0;
}
.hero-slide .link {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.7s ease-out 0.3s both;
    backdrop-filter: blur(4px);
}
.hero-slide .link:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
    color: #fff;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    padding: 0;
}
.hero-indicator.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
}
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    opacity: 0;
}
.hero-nav.prev {
    left: 20px;
}
.hero-nav.next {
    right: 20px;
}
.hero-nav:hover {
    background: rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-50%) scale(1.05);
}
.hero-nav::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
}
.hero-nav.prev::after {
    transform: rotate(-135deg);
    margin-right: 3px;
}
.hero-nav.next::after {
    transform: rotate(45deg);
    margin-left: 3px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-banner {
        height: 220px;
        margin-bottom: 8px;
    }
    .hero-slide .content {
        padding: 24px 20px;
    }
    .hero-slide .title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .hero-slide .slogan {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .hero-slide .link {
        padding: 8px 20px;
        font-size: 13px;
    }
    .hero-nav {
        width: 36px;
        height: 36px;
    }
    .hero-indicators {
        bottom: 12px;
        gap: 8px;
    }
}
