/* 轮播容器样式 */
.hero-carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 5;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(0);
}

.hero-carousel-container.hidden {
    pointer-events: none;
    opacity: 0;
    transform: translateY(-20px);
}

.hero-placeholder {
    height: 60vh;
    width: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,1) 100%
    );
    position: relative;
    z-index: 1;
}

.business-showcase-section {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.business-showcase-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 轮播部分样式 */
.carousel-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 1), 
                visibility 0.8s ease;
    z-index: 1005;
}

.carousel-section.active {
    opacity: 1;
    visibility: visible;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.8s ease;
}

.carousel-slide {
    position: relative;
    width: 25%;
    height: 100%;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.carousel-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    text-align: left;
    max-width: 500px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.carousel-slide.active .carousel-content {
    opacity: 1;
    transform: translateY(0);
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-description {
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-controls {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.carousel-prev, .carousel-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    position: relative;
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    overflow: hidden;
}

.indicator.active {
    background: white;
}

.load-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    transition: width 0.3s ease;
}

/* Logo展示部分 */
.logo-section {
    padding: 240px 0 240px;
    height: 100vh;
    background-color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                visibility 0.8s ease;
}

.logo-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    position: relative;
}

.logo-display img {
    max-width: 400px;
    height: auto;
    filter: brightness(1.05);
    transition: transform 1s ease;
    opacity: 0;
    animation: logoReveal 2s ease-in-out forwards;
}

.logo-text {
    margin-top: 20px;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    opacity: 0;
    animation: textFadeIn 1s ease-in-out 2s forwards;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-display::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 5px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(19, 62, 126, 0.4), rgba(0, 0, 0, 0.8));
    animation: drawLine 2s ease-in-out forwards;
    z-index: 0;
}

.business-showcase-section,
.hero-section,
.content-section,
.news-section {
    position: relative;
    z-index: 1;
}

@keyframes drawLine {
    0% {
        width: 0;
        opacity: 0.8;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    80% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-display img:hover {
    transform: scale(1.03);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
    
    .carousel-content {
        bottom: 15%;
        left: 5%;
        max-width: 90%;
    }
    
    .logo-display img {
        max-width: 300px;
    }
    
    .logo-text {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-description {
        font-size: 0.9rem;
    }
    
    .logo-display img {
        max-width: 250px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .carousel-controls {
        bottom: 30px;
    }
}