/* 首页样式 */

/* 轮播图 */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    max-height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-top: 0;
    background: #0a192f;
}

.carousel-container {
    position: relative;
    width: 88%;
    max-width: 1400px;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: block;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a192f 0%, #1a365d 50%, #112240 100%);
    background-size: 200% 200%;
    animation: heroGradientMove 14s ease-in-out infinite;
    z-index: 0;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 650px;
    display: block;
}

.carousel-caption {
    position: absolute;
    z-index: 2;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 720px;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.carousel-caption h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
    font-weight: 700;
}

.carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-btn.prev {
    left: 24px;
}

.carousel-btn.next {
    right: 24px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

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

.carousel-dots .dot.active {
    background: #00d4ff;
    transform: scale(1.2);
}

/* 公司简介 */
.intro-section {
    padding: 80px 0;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* 核心业务 */
.services-section {
    padding: 80px 0;
    background: rgba(17, 34, 64, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.25);
}

@keyframes heroGradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

/* CTA */
.cta-section {
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 992px) {
    .hero-carousel {
        height: 48vh;
        min-height: 350px;
        max-height: 550px;
        padding: 15px 0;
    }

    .carousel-container {
        width: 92%;
        border-radius: 12px;
    }

    .carousel-slide img {
        max-height: 550px;
    }
}

@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        height: 42vh;
        min-height: 300px;
        max-height: 480px;
        padding: 10px 0;
    }

    .carousel-container {
        width: 95%;
        border-radius: 10px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    }

    .carousel-slide img {
        max-height: 480px;
    }

    .carousel-caption {
        bottom: 18%;
        left: 5%;
        right: 5%;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-btn.prev {
        left: 12px;
    }

    .carousel-btn.next {
        right: 12px;
    }
}
