
/* ============================================================
   首页重新设计 - 专业企业官网风格
   ============================================================ */

/* 核心优势区域 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid #E5E6EB;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #165DFF 0%, #0FC6C2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: #165DFF;
    box-shadow: 0 12px 32px rgba(22, 93, 255, 0.12);
    transform: translateY(-6px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #E8F3FF 0%, #E6FFFB 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: #4E5969;
    line-height: 1.7;
}

/* 统计数据区域 */
.stats-section {
    background: linear-gradient(135deg, #0D1B3D 0%, #165DFF 100%);
    padding: 80px 0;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(15, 198, 194, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-card {
    color: white;
}

.stat-card .num {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
    font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
    background: linear-gradient(135deg, #FFFFFF 0%, #E8F3FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .label {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 500;
}

/* 内容区块 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 800;
    color: #1D2129;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title p {
    font-size: 18px;
    color: #4E5969;
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片网格 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link .card {
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E5E6EB;
    transition: all 0.3s ease;
}

.card-link .card:hover {
    border-color: #165DFF;
    box-shadow: 0 16px 40px rgba(22, 93, 255, 0.12);
    transform: translateY(-6px);
}

.card .thumb {
    aspect-ratio: 16 / 10;
    background: #F7F8FA;
    overflow: hidden;
}

.card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-link .card:hover .thumb img {
    transform: scale(1.05);
}

.card .body {
    padding: 28px;
}

.card .cat {
    display: inline-block;
    padding: 4px 12px;
    background: #E8F3FF;
    color: #165DFF;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card p {
    font-size: 15px;
    color: #4E5969;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card .more {
    color: #165DFF;
    font-weight: 600;
    font-size: 15px;
}

/* CTA 区域 */
.cta-section {
    background: linear-gradient(135deg, #165DFF 0%, #0FC6C2 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-section .btn {
    background: white !important;
    color: #165DFF !important;
    padding: 16px 48px !important;
    font-size: 17px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
}

/* 响应式 */
@media (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .stat-card .num {
        font-size: 48px;
    }
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 56px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .stat-card .num {
        font-size: 40px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
}

/* 语言切换下拉框修复 */
.lang-switch {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.lang-switch select {
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 100;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #E5E6EB;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #1D2129;
}

.lang-switch select:hover {
    border-color: #165DFF;
}

.lang-switch select:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

/* 语言切换下拉菜单 */
.lang-switch-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: white;
    border: 1px solid #E5E6EB;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: #165DFF;
    color: #165DFF;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
    margin-top: 8px;
}

.lang-menu.show {
    display: block;
}

.lang-item {
    display: block;
    padding: 10px 20px;
    color: #1D2129;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.lang-item:hover {
    background: #E8F3FF;
    color: #165DFF;
}
