/* BLV Banner Slider Styles */

/* 中英双语互斥（data-blv-lang 由 blv-i18n 设在 <html> 上，默认英文） */
.blv-banner-zh { display: none; }
html[data-blv-lang="zh"] .blv-banner-en { display: none !important; }
html[data-blv-lang="zh"] .blv-banner-zh { display: inline !important; }

.blv-banner-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 420px;
    overflow: hidden;
    margin: 0 0 0 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.blv-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.blv-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.blv-banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.blv-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blv-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blv-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 20, 40, 0.7) 0%, rgba(0, 20, 40, 0.3) 50%, rgba(0, 20, 40, 0.1) 100%);
    z-index: 1;
}

.blv-banner-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 560px;
    padding: 0 60px;
    color: #ffffff;
}

.blv-banner-align-left {
    left: 0;
    text-align: left;
}

.blv-banner-align-right {
    right: 0;
    text-align: right;
}

.blv-banner-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.blv-banner-subtitle {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 10px 0;
    color: #4fc3f7;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.blv-banner-desc {
    font-size: 15px;
    margin: 0 0 24px 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.blv-banner-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #1976d2 0%, #00bcd4 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.blv-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.5);
    color: #ffffff;
}

/* 左右箭头 */
.blv-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.blv-banner-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.blv-banner-arrow svg {
    width: 24px;
    height: 24px;
}

.blv-banner-prev {
    left: 20px;
}

.blv-banner-next {
    right: 20px;
}

/* 指示点 */
.blv-banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.blv-banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.blv-banner-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.blv-banner-dot.active {
    background: #4fc3f7;
    width: 32px;
    border-radius: 6px;
}

/* 响应式 */
@media (max-width: 768px) {
    .blv-banner-slider {
        height: 300px;
    }

    .blv-banner-content {
        padding: 0 30px;
        max-width: 100%;
    }

    .blv-banner-title {
        font-size: 24px;
    }

    .blv-banner-subtitle {
        font-size: 16px;
    }

    .blv-banner-desc {
        font-size: 13px;
        display: none;
    }

    .blv-banner-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .blv-banner-arrow {
        width: 36px;
        height: 36px;
    }

    .blv-banner-arrow svg {
        width: 18px;
        height: 18px;
    }

    .blv-banner-prev {
        left: 10px;
    }

    .blv-banner-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .blv-banner-slider {
        height: 220px;
    }

    .blv-banner-title {
        font-size: 18px;
    }

    .blv-banner-subtitle {
        font-size: 14px;
    }

    .blv-banner-content {
        padding: 0 20px;
    }
}

/* 隐藏首页页面标题 "Home" */
.home .hero-section {
    display: none !important;
}

/* 减少banner与内容之间的空白 */
.home .ct-container-full[data-vertical-spacing="top:bottom"] {
    padding-top: 0 !important;
}

.home .entry-content > section:first-of-type {
    padding-top: 40px !important;
}
