﻿/* 首页特有样式 */

/* 英雄区域 */
.hero {
    /* 背景图放在元素后面，使用半透明叠加提高文字可读性 */
    background-color: #0f172a; /* 备选背景色 */
    /* 使用在线图片测试 */
    background-image: url('https://minimax-algeng-chat-tts.oss-cn-wulanchabu.aliyuncs.com/ccv2%2F2026-04-03%2FMiniMax-M2.7%2F1687257157088627%2Fd49c1bfe5fe3613fe87f8163a8f5031dfc8a19e1eb5bb1e54135728e43c80366..webp?Expires=1775308740&OSSAccessKeyId=LTAI5tGLnRTkBjLuYPjNcKQ8&Signature=%2FM%2BSyC9sBKVBfL9tYPE38F90VeY%3D');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: white;
    padding: 60px 0 50px;
    text-align: center;
    margin: 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
    top: -80px;
    padding-top: 120px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 0.8s ease-out forwards;
    padding: 60px 40px;
    max-width: 900px;
}

.hero h1 {
    font-size: 3rem !important;
    margin-bottom: 30px !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    /* 加强阴影提高对比 */
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.9) !important;
    letter-spacing: -1px !important;
    margin-top: 0 !important;
}

.hero p {
    font-size: 1.25rem !important;
    margin-bottom: 40px !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #f0f9ff !important;
    line-height: 1.7 !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8) !important;
    font-weight: 500 !important;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 服务区域 */
.services {
    padding: 100px 0;
    background-color: #f8fafc;
}

.services h2 {
    text-align: center !important;
    margin-bottom: 50px !important;
    position: relative !important;
    color: #1e293b !important;
    margin-top: 0 !important;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3182ce 0%, #2c5282 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 35px;
    border-radius: 16px;
    background-color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3182ce 0%, #2c5282 100%);
    transition: left 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #3182ce;
}

.service-card:hover::before {
    left: 0;
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.5);
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon::after {
    width: 120px;
    height: 120px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* 特性区域 */
.features {
    padding: 100px 0;
    background-color: white;
}

.features h2 {
    text-align: center !important;
    margin-bottom: 50px !important;
    position: relative !important;
    color: #1e293b !important;
    margin-top: 0 !important;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3182ce 0%, #2c5282 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    background-color: white;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.5);
}

.feature-content h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 客户评价 */
.testimonials {
    padding: 100px 0;
    background-color: #f8fafc;
}

.testimonials h2 {
    text-align: center !important;
    margin-bottom: 50px !important;
    position: relative !important;
    color: #1e293b !important;
    margin-top: 0 !important;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3182ce 0%, #2c5282 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 40px;
    border-radius: 16px;
    background-color: white;
    position: relative;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 5rem;
    color: #3182ce;
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #3182ce;
}

.testimonial-text {
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.6;
    color: #475569;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.5);
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.author-info p {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* 行动召唤区域 */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #3182ce 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(49, 130, 206, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(49, 130, 206, 0.15) 0%, transparent 30%);
    z-index: 1;
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    color: white !important;
    margin-bottom: 25px !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    margin-top: 0 !important;
}

.cta p {
    font-size: 1.25rem !important;
    margin-bottom: 40px !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #dfefff !important;
    line-height: 1.6 !important;
}

.cta .btn {
    padding: 18px 36px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    transition: left 0.5s ease;
}

.cta .btn:hover::before {
    left: 100%;
}

.cta .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .services,
    .features,
    .testimonials,
    .cta {
        padding: 60px 0;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */

.service-card,
.feature-item,
.testimonial-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}