/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: rgba(253, 243, 242, 1);
    color: #2C3E50;
    line-height: 1.6;
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(253, 243, 242, 1);
    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: rgba(182, 204, 163, 1);
}

.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: rgba(182, 204, 163, 1);
}

.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;
}

.hero h1 {
    color: rgba(182, 204, 163, 1);
    font-size: 36px;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #0F2337;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Recipe Detail Section */
.recipe-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 50px 0;
}

.recipe-header {
    text-align: center;
    margin-bottom: 30px;
}

.recipe-header h2 {
    font-size: 28px;
    color: #2C3E50;
    margin-bottom: 10px;
}

.recipe-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.recipe-content {
    margin-bottom: 40px;
}

.recipe-content h3 {
    font-size: 22px;
    color: #2C3E50;
    margin: 20px 0 10px;
}

.recipe-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.recipe-image {
    width: 50%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
}

.recipe-steps {
    margin: 40px 0;
}

.step {
    display: flex;
    margin-bottom: 30px;
}

.step-number {
    flex: 0 0 60px;
    height: 60px;
    background-color: #5D8B5D;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 18px;
    color: #2C3E50;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 16px;
    line-height: 1.6;
}

.ingredients {
    background-color: rgba(93, 139, 93, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 40px 0;
}

.ingredients h3 {
    font-size: 22px;
    color: #2C3E50;
    margin-bottom: 15px;
}

.ingredients ul {
    list-style-type: disc;
    padding-left: 20px;
}

.ingredients li {
    font-size: 16px;
    margin-bottom: 10px;
}

/* 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;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    header {
        padding: 15px 20px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
}

@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;
    }
    
    .recipe-image {
        width: 100%;
        max-width: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .recipe-header h2 {
        font-size: 24px;
    }
    
    .recipe-content h3 {
        font-size: 20px;
    }
    
    .ingredients h3 {
        font-size: 20px;
    }
}