/* ============================================
   首页专属样式 - 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);
}
/* ============================================
   推荐入口区域 - 一行2卡片（75%+25%）统一高度
   ============================================ */

.recommend-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.recommend-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.recommend-header h3 {
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
    margin: 0;
}

.recommend-badge {
    background: linear-gradient(135deg, #ff6a00, #e55f00);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* 主容器 - 一行2列 */
.recommend-main {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

/* 左边75% */
.recommend-left {
    flex: 0 0 75%;
    max-width: 75%;
}

/* 右边25% */
.recommend-right {
    flex: 0 0 25%;
    max-width: 25%;
}

/* 行标题 */
.recommend-row-title {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommend-row-title.hot-title {
    color: #ff6a00;
    font-weight: 600;
}

/* 左边3列网格 */
.recommend-left-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* 右边单列 - 和左边完全一样的横向布局 */
.recommend-right .recommend-card {
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 10px 14px !important;
    min-height: 60px !important;
    height: auto !important;
}

.recommend-right .recommend-icon {
    font-size: 22px !important;
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
}

.recommend-right .recommend-info strong {
    font-size: 13px !important;
}

.recommend-right .recommend-info span {
    font-size: 11px !important;
}

/* 通用卡片 - 全部统一 */
.recommend-card {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    gap: 10px;
    position: relative;
    min-height: 60px;
}

.recommend-card:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.recommend-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.recommend-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.recommend-info strong {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-info span {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 重点推荐 - 九游会J9 */
.recommend-card.hot {
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
    border: 2px solid #ff6a00;
}

.recommend-card.hot:hover {
    background: linear-gradient(135deg, #fff0e0 0%, #fff8f0 100%);
    border-color: #e55f00;
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.2);
}

.recommend-card.hot .recommend-info strong {
    color: #ff6a00;
}

.hot-tag {
    position: absolute;
    top: -6px;
    right: 10px;
    background: #ff6a00;
    color: #fff;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

/* 响应式 */
@media (max-width: 768px) {
    .recommend-section {
        padding: 15px 12px;
        margin-bottom: 20px;
    }

    .recommend-main {
        flex-direction: column;
        gap: 12px;
    }

    .recommend-left,
    .recommend-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .recommend-left-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .recommend-right .recommend-card {
        padding: 10px 14px !important;
        min-height: 60px !important;
    }

    .recommend-right .recommend-icon {
        font-size: 22px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .recommend-card {
        padding: 8px 12px;
        gap: 8px;
        min-height: 55px;
    }

    .recommend-icon {
        font-size: 18px;
        width: 32px;
        height: 32px;
    }

    .recommend-info strong {
        font-size: 12px;
    }

    .recommend-info span {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .recommend-left-grid {
        grid-template-columns: 1fr;
    }
}