/* ========== 首页专用样式 ========== */
/* Hero区域和首页特有组件 */

/* ========== HERO CAROUSEL ========== */
.hero-carousel {
    position: relative;
    height: 60vh;
    min-height: 320px;
    overflow: hidden;
}

.hero-inner {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 24px;
    z-index: 2;
    color: white;
    /* 磨砂玻璃背景效果 */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-slide h1,
.hero-slide h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-bold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-slide p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: #ffffff;
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Hero内容特殊样式优化 */
.hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Hero按钮样式 */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 55, 55, 0.4);
}

.hero-actions .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* ========== 首页响应式设计 ========== */
@media (max-width: 768px) {
    .hero-carousel {
        min-height: 400px;
    }

    .hero-slide h1,
    .hero-slide h2 {
        font-size: 2rem;
    }

    .hero-slide p {
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 250px;
        margin: 0.3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        min-height: 350px;
    }

    .hero-slide h1,
    .hero-slide h2 {
        font-size: 1.6rem;
    }

    .hero-slide p {
        font-size: 0.9rem;
    }
}

/* ========== Hero控制按钮样式 ========== */
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

/* Hero轮播导航点 */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.hero-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* 响应式控制按钮 */
@media (max-width: 768px) {
    .hero-prev, .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .hero-prev {
        left: 15px;
    }

    .hero-next {
        right: 15px;
    }

    .hero-dots {
        bottom: 20px;
        gap: 8px;
    }

    .hero-dots .dot {
        width: 10px;
        height: 10px;
    }
}
