/* ========= 首页独立样式 ========= */

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(90deg, #3B22E9, #9900FF, #33CC00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    font-size: 3.2rem;
}

/* Hero区域 */
.hero {
    padding: 60px 0 80px;
    background: linear-gradient(125deg, #FBF9FF 0%, #F2EFFF 100%);
}
.hero-grid {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1;
}
.hero-badge {
    background: rgba(59, 34, 233, 0.12);
    color: #3B22E9;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 24px;
}
.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #201C5C;
}
.hero-content p {
    font-size: 1.2rem;
    color: #4A42A2;
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 30px -12px rgba(59, 34, 233, 0.2);
}
.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    flex: 0 0 100%;
}
.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #3B22E9;
    font-size: 1.2rem;
    transition: all 0.2s;
    z-index: 10;
}
.carousel-btn:hover {
    background: #3B22E9;
    color: white;
}
.prev { left: 12px; }
.next { right: 12px; }
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
}
.carousel-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}
.carousel-dots .dot.active {
    background: #3B22E9;
    transform: scale(1.2);
}

/* 通用区块样式 */
.section {
    padding: 88px 0;
}
.section:nth-child(odd) {
    background-color: var(--bg-light);
}
.section:nth-child(even) {
    background-color: var(--bg-alt);
}
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #201C5C;
}
.section-header p {
    color: #5C54B3;
    font-size: 1.1rem;
}

/* 功能卡片网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.feature-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 32px 24px;
    transition: all 0.35s ease;
    border: 1px solid #E8E2FF;
    box-shadow: 0 6px 14px rgba(0,0,0,0.02);
    text-align: center;
    will-change: transform;
}
.feature-card:hover {
    transform: translateY(-8px) !important;
    border-color: #CBC0FF !important;
    box-shadow: 0 20px 30px -12px rgba(59, 34, 233, 0.15) !important;
}
.feature-icon {
    font-size: 2.6rem;
    color: #3B22E9;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: #2B257A;
}
.feature-card p {
    color: #5E58A5;
    line-height: 1.5;
    font-size: 0.92rem;
}

/* 支撑平台卡片 */
.platform-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.platform-card {
    background: white;
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    border: 1px solid #E8E2FF;
    transition: all 0.25s;
}
.platform-card:hover {
    border-color: #B5A8FF;
    transform: translateY(-5px);
}
.platform-icon {
    width: 70px;
    height: 70px;
    background: #F0ECFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
    color: #3B22E9;
    transition: all 0.2s;
}
.platform-card:hover .platform-icon {
    background: #3B22E9;
    color: white;
    transform: scale(1.05);
}
.platform-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}
.platform-card p {
    color: #5E58A5;
    line-height: 1.5;
    font-size: 0.92rem;
}

/* 典型案例区域 */
.cases-section {
    background-color: #ffffff;
    padding: 88px 0;
}
.cases-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.cases-header {
    text-align: center;
    margin-bottom: 64px;
}
.cases-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #201C5C;
    margin-bottom: 18px;
}
.cases-header p {
    color: #5C54B3;
    font-size: 1.1rem;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.case-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.35s;
    border: 1px solid #E8E2FF;
    box-shadow: 0 6px 14px rgba(0,0,0,0.02);
    cursor: default;
}
.case-card:hover {
    transform: translateY(-6px);
    border-color: #CBC0FF;
    box-shadow: 0 20px 30px -12px rgba(59, 34, 233, 0.15);
}
.case-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: #F0ECFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s;
}
.case-card:hover .case-logo {
    background: #3B22E9;
    transform: scale(1.02);
}
.case-card:hover .case-logo img {
    filter: none;
}
.case-logo img {
    width: 60%;
    height: auto;
    object-fit: contain;
    transition: all 0.2s;
}
.case-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

/* 响应式 */
@media (max-width: 1200px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-grid {
        flex-direction: column;
    }
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cases-section {
        padding: 60px 0;
    }
    .cases-header h3 {
        font-size: 2.5rem;
    }
    .cases-header p {
        font-size: 1rem;
    }
    .case-name {
        font-weight: 700;
    }
    .gradient-text {
        font-size: 2.2rem;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .carousel-dots .dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}