/* Hero轮播样式 - 完全重写，确保正常显示 */

/* CSS加载正常 - 测试样式已移除 */

/* 重置hero区域的所有样式 */
#hero.hero-section {
    all: unset !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 600px !important;
    overflow: hidden !important;
    background: #f0f9ff !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1 !important;
}

/* 确保伪元素不干扰 */
#hero.hero-section::before,
#hero.hero-section::after {
    display: none !important;
    content: none !important;
}

/* 轮播容器 */
.hero-carousel {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    display: block !important;
}

/* 轮播幻灯片 */
.hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.8s ease-in-out !important;
    transform: translateX(100%) !important;
    display: block !important;
}

.hero-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.hero-slide.prev {
    transform: translateX(-100%) !important;
}

/* 背景容器 */
.hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

/* 背景图片 */
.hero-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    z-index: 1 !important;
}

/* 内容容器 */
.hero-content {
    position: absolute !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    text-align: center !important;
    padding: 0 2rem !important;
    color: #ffffff !important;
}

/* Logo区域 - 暂时隐藏以排除问题 */
.hero-logo {
    margin-bottom: 1rem !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.logo-image {
    height: 80px !important;
    width: auto !important;
    max-width: 300px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) !important;
}

/* 标题样式 */
.hero-title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 2rem !important;
    line-height: 1.2 !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important;
    letter-spacing: 0.02em !important;
    max-width: 1000px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* 副标题样式 */
.hero-subtitle {
    font-size: 1.25rem !important;
    color: #ffffff !important;
    line-height: 1.6 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    font-weight: 400 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* 轮播指示器 */
.hero-indicators {
    position: absolute !important;
    bottom: 2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 0.75rem !important;
    z-index: 100 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.indicator {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    outline: none !important;
}

.indicator:hover {
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1) !important;
}

.indicator.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

/* 轮播控制按钮 */
.hero-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    color: #1e293b !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    outline: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-nav:hover {
    background: #ffffff !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.hero-nav--prev {
    left: 2rem !important;
}

.hero-nav--next {
    right: 2rem !important;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
    
    .logo-image {
        height: 70px !important;
    }
    
    .hero-nav {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
    
    .hero-nav--prev {
        left: 1.5rem !important;
    }
    
    .hero-nav--next {
        right: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 1.5rem !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .logo-image {
        height: 60px !important;
    }
    
    .hero-logo {
        margin-bottom: 2rem !important;
    }
    
    .hero-nav {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .hero-nav--prev {
        left: 1rem !important;
    }
    
    .hero-nav--next {
        right: 1rem !important;
    }
    
    .hero-indicators {
        bottom: 1.5rem !important;
    }
    
    .indicator {
        width: 10px !important;
        height: 10px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    .logo-image {
        height: 50px !important;
    }
    
    .hero-content {
        padding: 0 1rem !important;
    }
}

/* 动画效果 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide.active .hero-title {
    animation: fadeIn 0.8s ease-out 0.3s both !important;
}

.hero-slide.active .hero-subtitle {
    animation: fadeIn 0.8s ease-out 0.5s both !important;
}

.hero-slide.active .hero-logo {
    animation: fadeIn 0.8s ease-out 0.1s both !important;
}

/* 确保轮播在所有情况下都可见 */
.hero-section,
.hero-carousel,
.hero-slide,
.hero-content {
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-slide:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 强制显示所有文字和按钮 */
.hero-title,
.hero-subtitle,
.hero-nav,
.hero-indicators,
.indicator {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
}

.hero-title,
.hero-subtitle {
    display: block !important;
}

.hero-nav {
    display: flex !important;
}

.hero-indicators {
    display: flex !important;
}

/* Hero内容样式 */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}