/* ============================================
   首页专属样式 - index.css
   ============================================ */

/* Hero区域 */
.hero-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border-radius: 20px;
    margin-bottom: 50px;
    border: 1px solid #dbeafe;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.hero-section h2 {
    font-size: 42px;
    color: #1e40af;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-section p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 35px;
    line-height: 1.8;
}

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

.hero-button {
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.hero-button-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hero-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hero-button-secondary {
    background: #ffffff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.hero-button-secondary:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}

/* 统计数据 */
.stats-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 40px;
    color: #3b82f6;
    margin-bottom: 8px;
    font-weight: 800;
}

.stat-item p {
    font-size: 15px;
    color: #64748b;
}

/* 功能卡片网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

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

.feature-card ul {
    color: #64748b;
    line-height: 2;
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    font-size: 14px;
}

.feature-card ul li:before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
}

/* 视频区域 */
.video-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 2px solid #e2e8f0;
}

.video-container video {
    width: 100%;
    display: block;
}

/* FAQ区域 */
.faq-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.faq-item:hover {
    border-color: #3b82f6;
    background: #ffffff;
}

.faq-item.active {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.faq-question {
    font-size: 17px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.faq-question::after {
    content: '+';
    margin-left: auto;
    font-size: 20px;
    color: #3b82f6;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    color: #64748b;
    line-height: 1.7;
    font-size: 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-top 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h2 {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item h3 {
        font-size: 32px;
    }
    
    .hero-button {
        width: 100%;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.stats-section,
.feature-card,
.video-section,
.faq-section {
    animation: fadeInUp 0.6s ease-out;
}

/* 数字滚动动画 */
.stat-item h3 {
    transition: color 0.3s;
}

.stat-item:hover h3 {
    color: #2563eb;
}

/* 功能卡片悬停效果 */
.feature-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}