/* 首页特色样式 */
.hero {
    background: linear-gradient(rgba(230, 202, 182, 0.6), rgba(5, 5, 5, 0.4)), url('/assets/images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: #f5f2e9;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.feature-section {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    color: #8b4513;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: #d2b48c;
    margin: 0.5rem auto;
}

/* 特色卡片 */
.feature-card {
    background: #fff;
    border: 1px solid #d2b48c;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 180, 140, 0.2), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #8b4513;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* 统计数据 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #d2b48c;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #8b4513;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

/* 热门内容 */
.hot-content {
    background: #f9f5f0;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.hot-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 5px;
    border-left: 4px solid #8b4513;
}

.hot-rank {
    background: #8b4513;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
}

.hot-content {
    flex: 1;
}

.hot-title {
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 0.25rem;
}

.hot-desc {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .hot-item {
        flex-direction: column;
        text-align: center;
    }

    .hot-rank {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* 热门推荐样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #a0522d;
    text-decoration: underline;
}

.hot-recommendations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.recommendation-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e8dfd3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recommendation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

.recommendation-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommendation-card:hover .recommendation-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommendation-card:hover .image-overlay {
    opacity: 1;
}

.food-tag, .culture-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.culture-tag {
    background: linear-gradient(135deg, #2e8b57, #3cb371);
}

.recommendation-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recommendation-title {
    color: #8b4513;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
    line-height: 1.3;
}

.recommendation-desc {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0e6d6;
}

.rating, .price, .heritage {
    color: #8b4513;
    font-weight: bold;
    font-size: 0.9rem;
}

.reviews, .category, .popularity {
    color: #888;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a0522d, #8b4513);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hot-recommendations {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hot-recommendations {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .recommendation-image {
        height: 180px;
    }

    .recommendation-content {
        padding: 1.25rem;
    }

    .recommendation-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hot-recommendations {
        gap: 1rem;
    }

    .recommendation-image {
        height: 160px;
    }

    .recommendation-content {
        padding: 1rem;
    }

    .recommendation-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recommendation-card {
    animation: fadeInUp 0.6s ease forwards;
}

.recommendation-card:nth-child(1) { animation-delay: 0.1s; }
.recommendation-card:nth-child(2) { animation-delay: 0.2s; }
.recommendation-card:nth-child(3) { animation-delay: 0.3s; }

/* 加载状态 */
.recommendation-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}