/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #FDF3F2;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #FDF3F2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.logo span {
    font-weight: bold;
    color: #B6CC9E;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #2C3E50;
    font-size: 14px;
    transition: color 0.3s;
    font-weight: bold;
}

.nav-links a:hover, .nav-links a.active {
    color: #B6CC9E;
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-actions button {
    background-color: #0F2337;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #E8F0E8;
}

.hero h1 {
    color: #5D8B5D;
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero p {
    color: #5D8B5D;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Weekly Plan Section */
.weekly-plan {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.day-card {
    background-color: #E8F0E8;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.day-card h3 {
    color: #5D8B5D;
    font-size: 18px;
    margin-bottom: 15px;
}

.day-card ul {
    list-style-type: disc;
    padding-left: 20px;
}

.day-card li {
    margin-bottom: 5px;
    font-size: 14px;
}

.more-button {
    text-align: center;
    margin: 30px 0;
}

.more-link {
    display: inline-block;
    background-color: #5D8B5D;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.more-link:hover {
    background-color: #4a774a;
}

/* Recommendation Section */
.recommendation {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.recommendation h2 {
    color: #5D8B5D;
    font-size: 24px;
    margin-bottom: 40px;
}

.recipe-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.recipe-card {
    display: flex;
    background-color: #E8F0E8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.recipe-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.recipe-content {
    padding: 20px;
    flex: 1;
}

.recipe-content h3 {
    color: #5D8B5D;
    font-size: 18px;
    margin-bottom: 15px;
}

.recipe-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.recipe-content li {
    margin-bottom: 5px;
    font-size: 14px;
}

.read-more {
    display: inline-block;
    color: #5D8B5D;
    text-decoration: none;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Recipe Management Section */
.recipe-management {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: #E8F0E8;
    border-radius: 10px;
    text-align: center;
}

.recipe-management h2 {
    color: #5D8B5D;
    font-size: 28px;
    margin-bottom: 15px;
}

.recipe-management p {
    color: #2C3E50;
    font-size: 16px;
    margin-bottom: 40px;
}

.management-options {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.option {
    flex: 1;
    text-align: center;
}

.option h3 {
    color: #5D8B5D;
    font-size: 18px;
    margin-bottom: 10px;
}

.option p {
    color: #2C3E50;
    font-size: 14px;
    margin-bottom: 15px;
}

.option input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #E8F0E8;
}

.submit-management {
    text-align: center;
}

.submit-link {
    display: inline-block;
    background-color: #5D8B5D;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.submit-link:hover {
    background-color: #4a774a;
}

/* Footer Styles */
footer {
    background-color: #0F2337;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-links {
        margin: 15px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .weekly-plan {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recipe-cards {
        grid-template-columns: 1fr;
    }
    
    .management-options {
        flex-direction: column;
    }
    
    .option {
        margin-bottom: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .weekly-plan {
        grid-template-columns: 1fr;
    }
    
    .recipe-card {
        flex-direction: column;
    }
    
    .recipe-card img {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 12px;
    }
}
