/* 轮播横幅样式 */
.banner {
    position: relative;
    height: 55vh;
    min-height: 320px;
    overflow: hidden;
    margin-top: 60px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 背景视频支持 */
.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.banner-slide.video-slide {
    background: none;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.banner-content {
    position: absolute;
    top: 45%;
    left: 100px;
    transform: translateY(-50%);
    text-align: left;
    color: rgba(255, 255, 255, 0.95);
    z-index: 2;
    max-width: 550px;
    padding: 0 15px;
}

.banner-title {
    font-size: 32px;
    font-weight: 700;
    margin-top: 40px !important;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out 0.5s forwards;
    line-height: 1.2;
    color: #a0a0a0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.banner-title .title-icon {
    background: linear-gradient(135deg, #3498db, #2980b9, #1abc9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.8em;
    text-shadow: 0 3px 12px rgba(52, 152, 219, 0.4);
    filter: drop-shadow(0 3px 6px rgba(52, 152, 219, 0.3)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.banner-title .title-icon:hover {
    transform: scale(1.15) rotate(8deg);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(3deg);
    }
}

.banner-subtitle {
    font-size: 15px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out 0.7s forwards;
    font-weight: 300;
    line-height: 1.4;
    color: #909090;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.banner-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out 0.9s forwards;
}

.banner-buttons .btn {
    margin: 0 6px;
    padding: 10px 22px;
    font-size: 13px;
}

/* 轮播指示器 */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 轮播箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.banner-arrow.prev {
    left: 30px;
}

.banner-arrow.next {
    right: 30px;
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 3;
    opacity: 0.8;
}

.scroll-hint-text {
    font-size: 14px;
    margin-bottom: 10px;
}

.scroll-hint-arrow {
    width: 2px;
    height: 30px;
    background: white;
    margin: 0 auto;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-hint-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* 动画效果 */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 特色卡片区域 - 浮动定位 */
.feature-cards {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    padding: 0;
    margin-top: -50px; /* 向上偏移，浮在轮播区域下方 */
    pointer-events: none; /* 允许点击穿透到下层元素 */
}

.feature-cards::before {
    display: none; /* 移除背景装饰 */
}

.feature-cards .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 1;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.banner-feature-card {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: left;
    box-shadow: 
        0 4px 16px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.banner-feature-card:hover::before {
    left: 100%;
}

.banner-feature-card:hover {
    transform: translateY(-2px) scale(1.01);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 6px 20px rgba(31, 38, 135, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-icon {
    width: 36px;
    height: 36px;
    margin: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        0 2px 8px rgba(31, 38, 135, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.card-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.banner-feature-card:hover .icon-container {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.banner-feature-card:hover .card-icon-img {
    transform: scale(1.1);
}

.card-content {
    display: contents;
}

.card-icon svg {
    transition: all 0.3s ease;
}

.banner-feature-card:hover .card-icon svg {
    transform: scale(1.1);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #909090;
    margin: 0;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    display: inline-block;
    vertical-align: top;
}

.banner-feature-card:hover .card-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

.card-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
    margin: 0;
    padding: 0;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.2px;
    display: inline-block;
    vertical-align: top;
}

.banner-feature-card:hover .card-description {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feature-cards {
        margin-top: -35px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 10px 20px 0 20px;
        justify-content: center;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .banner-feature-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 2px;
        height: 45px;
        width: 170px;
        display: flex;
        gap: 6px;
        background: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(20px);
    }

    .banner-feature-card[data-action] {
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .banner-feature-card[data-action]:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.4);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .card-icon {
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .card-icon-img {
        width: 24px !important;
        height: 24px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .card-content {
        display: contents;
    }

    .card-title {
        font-size: 0.8rem;
        margin: 0;
        padding: 0;
        line-height: 1;
        font-weight: 600;
        text-align: center;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #909090;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .card-description {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
        overflow: hidden !important;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner {
        height: 32vh;
        min-height: 220px;
    }
    
    .banner-content {
        top: 55%;
        left: 20px;
        max-width: calc(100% - 40px);
        padding: 0 10px;
    }
    
    .banner-title {
        font-size: 22px;
        margin-top: 30px !important;
    }
    
    .banner-subtitle {
        font-size: 11px;
    }
    
    .banner-buttons .btn {
        padding: 7px 16px;
        font-size: 10px;
        margin: 3px 6px 6px 0;
        display: inline-block;
    }
    
    .banner-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .banner-arrow.prev {
        left: 15px;
    }
    
    .banner-arrow.next {
        right: 15px;
    }
    
    .banner-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .banner-video {
        width: 100%;
        height: 100%;
        left: 0%;
        top: 0%;
        object-fit: cover;
        object-position: center;
    }
}