/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.highlight {
    color: #FF6B35;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a.active, 
.main-nav a:hover {
    color: #FF6B35;
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #FF6B35;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 30px;
    padding: 5px 15px;
}

.search-bar input {
    background: transparent;
    border: none;
    padding: 8px;
    outline: none;
    width: 200px;
}

.search-bar button {
    color: #999;
    padding: 8px;
}

/* 英雄区域样式 */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 5%;
    background-color: #FFFAF6;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: #FF6B35;
    color: #fff;
}

.primary-btn:hover {
    background-color: #e85a26;
}

.outline-btn {
    border: 1px solid #FF6B35;
    color: #FF6B35;
}

.outline-btn:hover {
    background-color: #FF6B35;
    color: #fff;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* 内容区块通用样式 */
section {
    padding: 60px 5%;
    position: relative;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.section-header p {
    color: #888;
    font-size: 14px;
}

/* 滑块控制按钮 */
.slider-controls {
    position: absolute;
    top: 60px;
    right: 5%;
    display: flex;
    gap: 10px;
}

.slider-prev, .slider-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #666;
    transition: all 0.3s ease;
}

.slider-next {
    background-color: #FF6B35;
    color: #fff;
}

.slider-prev:hover {
    background-color: #e6e6e6;
}

.slider-next:hover {
    background-color: #e85a26;
}

/* 大家都在吃 */
.food-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.food-card {
    min-width: 200px;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.food-card:hover {
    transform: translateY(-5px);
}

.food-image {
    height: 150px;
    background-color: #FFD8A9;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.food-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.card-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    border: 1px solid #ddd;
    color: #666;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background-color: #FF6B35;
    color: #fff;
    border-color: #FF6B35;
}

/* 夏季适合饮食 */
.recipe-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.recipe-card {
    min-width: 300px;
    height: 200px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recipe-image {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

.recipe-card h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 欢你欢系列 */
.view-all-btn {
    position: absolute;
    top: 60px;
    right: 5%;
    padding: 8px 20px;
    background-color: #FF6B35;
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
}

.food-series {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.series-card {
    min-width: 250px;
    background-color: #FFF8E1;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    padding-bottom: 15px;
    text-align: center;
}

.series-image {
    height: 180px;
    background-color: #FFD8A9;
    margin-bottom: 15px;
}

.series-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.price {
    color: #888;
    font-size: 14px;
}

/* 最佳芝士蛋糕 */
.best-cake {
    display: flex;
    flex-direction: column;
}

.view-more-link {
    align-self: flex-end;
    color: #888;
    font-size: 14px;
    margin-top: -20px;
    margin-bottom: 20px;
}

.cake-showcase {
    display: flex;
    gap: 20px;
}

.cake-images {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
}

/* 搜索美食 */
.search-food {
    background-color: #FF6B35;
    padding: 40px 5%;
}

.search-container {
    text-align: center;
}

.search-container h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 30px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    outline: none;
    font-size: 16px;
}

.search-form button {
    background-color: #FFD8A9;
    color: #FF6B35;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background-color: #fff;
    padding: 60px 5% 30px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #666;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #FF6B35;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #FF6B35;
    color: #fff;
}

.footer-download {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.download-btn {
    padding: 12px 25px;
    background-color: #f5f5f5;
    border-radius: 30px;
    color: #666;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #FF6B35;
    color: #fff;
}

.app-stores {
    display: flex;
    gap: 10px;
}

.app-stores a {
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .slider-controls {
        top: 100px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .main-nav ul {
        gap: 15px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .food-cards, .recipe-cards, .food-series {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .search-form {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-form button {
        border-radius: 0;
    }
} 