/* ========================================
   首页增强组件样式
   ======================================== */

/* Hero轮播图 */
.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    padding: 0 80px;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

.carousel-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #ffffff;
    text-align: left;
}

.carousel-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #ffffff;
}

.carousel-slogan {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 500;
}

.carousel-desc {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: #ffffff;
    line-height: 1.6;
}

.carousel-buttons {
    display: flex;
    gap: 16px;
}

.btn-secondary-white {
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary-white:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

.carousel-image {
    position: relative;
    z-index: 2;
    margin-left: 60px;
}

.carousel-image img {
    max-width: 450px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 36px;
    border-radius: 6px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* 轮播按钮 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 核心数据展示 */
.stats-showcase {
    padding: 80px 24px;
    background: #3b82f6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    color: white;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.stat-box .stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.stat-box .stat-label {
    font-size: 1rem;
    color: white;
}

/* 应用场景展示 */
.applications {
    padding: 100px 24px;
    background: #f8fafc;
}

.app-grid {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.app-card {
    flex: 0 0 calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.app-image {
    height: 180px;
    overflow: hidden;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.app-card:hover .app-image img {
    transform: scale(1.1);
}

.app-content {
    padding: 24px;
}

.app-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.app-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* 客户评价 */
.testimonials {
    padding: 100px 24px;
    background: white;
}

.testimonial-carousel {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    animation: scroll 30s linear infinite;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex: 0 0 300px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 360px;
}

.testimonial-content .stars {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #fbbf24;
}

.testimonial-content p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.testimonial-author {
    margin-top: auto;
    text-align: center;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.8rem;
    color: #64748b;
}

/* 合作伙伴 */
.partners {
    padding: 80px 24px;
    background: #f8fafc;
    overflow: hidden;
}

.partners-marquee {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    gap: 60px;
    animation: marquee 25s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    flex: 0 0 auto;
    padding: 16px 32px;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    color: #64748b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

/* CTA区域 */
.cta-section {
    padding: 100px 24px;
    background: #3b82f6;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary-large {
    padding: 18px 48px;
    background: white;
    border-radius: 10px;
    color: #0ea5e9;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary-large {
    padding: 18px 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .hero-carousel {
        height: auto;
        min-height: 500px;
    }

    .carousel-slide {
        flex-direction: column;
        padding: 60px 40px;
        text-align: center;
    }

    .carousel-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .carousel-content h1 {
        font-size: 2.5rem;
    }

    .carousel-image {
        margin-left: 0;
    }

    .carousel-image img {
        max-width: 300px;
    }

    .carousel-buttons {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .app-card {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        min-height: 450px;
    }

    .carousel-slide {
        padding: 40px 20px;
    }

    .carousel-content h1 {
        font-size: 1.8rem;
    }

    .carousel-slogan {
        font-size: 1rem;
    }

    .carousel-desc {
        font-size: 0.85rem;
    }

    .carousel-image img {
        max-width: 200px;
    }

    .carousel-prev,
    .carousel-next {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-box .stat-number {
        font-size: 2rem;
    }

    .stats-showcase {
        padding: 40px 16px;
    }

    .app-grid {
        flex-direction: column;
        align-items: center;
    }

    .app-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .testimonial-card {
        flex: 0 0 280px;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        max-width: 300px;
        padding: 14px 32px;
        font-size: 1rem;
    }

    .cta-section {
        padding: 60px 16px;
    }

    .applications {
        padding: 60px 16px;
    }

    .testimonials {
        padding: 60px 16px;
    }

    .partners {
        padding: 40px 16px;
    }

    .about {
        padding: 60px 16px;
    }
}

/* 关于我们 - 左右布局 */
.about {
    padding: 100px 24px;
    background: white;
}

.about .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.about-content-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text-horizontal {
    text-align: left;
}

.about-text-horizontal p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1rem;
}

.about-stats-horizontal {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

.about-stats-horizontal .stat-item {
    text-align: left;
}

.about-stats-horizontal .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #3b82f6;
    display: block;
    line-height: 1;
}

.about-stats-horizontal .stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 8px;
    display: block;
}

.about-image-horizontal {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.about-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .about-content-horizontal {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text-horizontal {
        text-align: center;
    }

    .about-text-horizontal .section-title {
        text-align: center;
    }

    .about-stats-horizontal {
        justify-content: center;
    }

    .about-stats-horizontal .stat-item {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-stats-horizontal {
        flex-direction: column;
        gap: 24px;
    }
}
