/* 全局样式 */
:root {
    --primary-color: #ffc107;
    --secondary-color: #333;
    --text-color: #333;
    --light-color: #f4f4f4;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fffbee;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: var(--primary-color);
    color: #333;
}

.yellow {
    color: var(--primary-color);
}

/* 导航栏样式 */
header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.logo p {
    font-size: 12px;
    color: #777;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* 英雄区域样式 */
.hero {
    padding: 60px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

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

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    padding: 20px;
}

/* 特色产品样式 */
.featured-products {
    padding: 40px 0;
}

.featured-products .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.product-item {
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    height: 100px;
    width: 100px;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--primary-color);
    padding: 10px;
    margin-bottom: 15px;
}

.product-item h3 {
    margin-bottom: 10px;
}

.product-item p {
    font-weight: bold;
    color: #666;
}

/* 最佳口味区域样式 */
.taste-best {
    padding: 80px 0;
}

.taste-best .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.taste-best.reverse .container {
    flex-direction: row-reverse;
}

.taste-image {
    flex: 1;
    text-align: center;
}

.taste-image img {
    max-width: 80%;
    border-radius: 50%;
    background-color: var(--primary-color);
    padding: 20px;
}

.taste-content {
    flex: 1;
    padding: 0 40px;
}

.taste-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.taste-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

/* 热销分类样式 */
.hot-categories {
    padding: 60px 0;
    background-color: #fffbee;
}

.hot-categories h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.category-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.category-item {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
}

.category-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.rating {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* 订阅区域样式 */
.newsletter {
    padding: 60px 0;
    background-color: var(--primary-color);
    text-align: center;
}

.newsletter h2 {
    color: #333;
    font-size: 36px;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 15px 25px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 16px;
}

/* 页脚样式 */
footer {
    background-color: #fff;
    padding: 20px 0;
}

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

.footer-column {
    flex: 1;
    padding-right: 20px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #666;
    font-size: 14px;
}

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

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.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: var(--primary-color);
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.copyright p:first-child {
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container,
    .taste-best .container,
    .taste-best.reverse .container {
        flex-direction: column;
    }
    
    .hero-content,
    .taste-content {
        padding: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .featured-products .container,
    .category-container {
        flex-direction: column;
    }
    
    .product-item,
    .category-item {
        margin-bottom: 30px;
    }
    
    .footer-columns {
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .auth-buttons {
        margin-top: 20px;
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 36px;
    }
    
    .taste-content h2,
    .hot-categories h2,
    .newsletter h2 {
        font-size: 28px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 30px;
    }
    
    .newsletter-form button {
        margin-top: 10px;
    }
} 