/**
 * 首页专用样式
 * 粉雀茶典 - 中国茶叶百科平台
 */

/* ========== 首屏核心区域 ========== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(45, 90, 45, 0.2);
}

.hero-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-section .subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ========== 统计数据栏 ========== */
.stats-highlight {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

/* ========== 茶叶分类导航 - 卡片式布局 ========== */
.tea-categories {
    margin: 40px 0;
}

.tea-categories h2 {
    color: var(--primary-green);
    margin-bottom: 25px;
    font-size: 22px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.category-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0 20px 20px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 6px 20px rgba(45, 90, 45, 0.15);
    transform: translateY(-3px);
}

.category-card h3 {
    color: var(--primary-green);
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--pale-green);
    padding-bottom: 10px;
}

.category-icon {
    font-size: 24px;
}

.category-count {
    font-size: 13px;
    color: var(--text-light);
    background: var(--cream);
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto;
}

.category-teas {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-teas li {
    margin: 0;
}

.category-teas a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    display: block;
    transition: all 0.2s ease;
    line-height: 1.3;
    text-align: center;
}

.category-teas a:hover {
    background: var(--cream);
    color: var(--primary-green);
}

.category-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: linear-gradient(135deg, var(--pale-green), var(--cream));
    border-radius: 8px;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: linear-gradient(135deg, var(--accent-green), var(--pale-green));
    color: white;
}

/* ========== 茶叶推荐区 ========== */
.tea-recommendation {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(45, 90, 45, 0.03), rgba(74, 124, 74, 0.02));
    border-radius: 15px;
    border: 1px solid var(--border);
}

.tea-recommendation h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 22px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.recommendation-item {
    background: white;
    padding: 15px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.recommendation-item:hover {
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.recommendation-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

.recommendation-item a:hover {
    color: var(--primary-green);
}

.recommendation-tag {
    display: inline-block;
    font-size: 12px;
    background: var(--accent-green);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}

/* ========== 品牌推荐区 ========== */
.brand-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(45, 90, 45, 0.03), rgba(74, 124, 74, 0.02));
    border-radius: 15px;
    border: 1px solid var(--border);
}

.brand-section h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 22px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.brand-item {
    background: white;
    padding: 15px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.brand-item:hover {
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.brand-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

.brand-item a:hover {
    color: var(--primary-green);
}

.brand-tag {
    display: inline-block;
    font-size: 12px;
    background: linear-gradient(135deg, #d4a574, #c4915d);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 24px;
    }

    .hero-section .subtitle {
        font-size: 16px;
    }

    .stats-highlight {
        gap: 10px;
    }

    .stat-box {
        padding: 15px 20px;
        min-width: 90px;
    }

    .stat-number {
        font-size: 28px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .recommendation-grid,
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
