/* ========== 轮播图 ========== */
.banner {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: var(--gray-light);
}

.banner-slides {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.6s ease;
}

.banner-slide {
    width: 25%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.35);
}

.banner-content h2 {
    font-size: 2.6rem;
    margin-bottom: 14px;
    font-weight: 500;
}

.banner-content p {
    font-size: 1.15rem;
    opacity: 0.95;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.banner-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.banner-btn.prev { left: 25px; }
.banner-btn.next { right: 25px; }

.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ========== 特色区域 ========== */
.features-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 35px 5%;
    background: var(--white);
    border-bottom: 1px solid var(--gray);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.feature-item svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

/* ========== 推荐卡片 ========== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1150px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 22px;
}

.card-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
}

.card-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ========== 分类展示 ========== */
.category-section {
    background: var(--gray-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1150px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    background: var(--white);
}

.category-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(61, 50, 41, 0.75));
    padding: 25px 18px;
    color: var(--white);
    transition: all 0.35s ease;
}

.category-card:hover .category-overlay {
    background: rgba(196, 149, 106, 0.88);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.category-desc {
    font-size: 0.88rem;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.category-card:hover .category-desc {
    opacity: 1;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-bar {
        gap: 30px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 320px;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 0.95rem;
    }
    
    .cards-container,
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .features-bar {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}
