/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #FCF1EF;
    color: #2C3E50;
    line-height: 1.6;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #FCF1EF;
    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: #5D8B5D;
}

.nav-links {
    display: flex;
    list-style: none;
    font-weight: bold;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #2C3E50;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #5D8B5D;
}

.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;
}

.hero-text {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #2C3E50;
}

/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-box {
    display: flex;
    width: 60%;
    max-width: 600px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 20px;
    background-color: #5D8B5D;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Recipe Guide Section */
.recipe-guide {
    margin: 50px 0;
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.guide-header h2 {
    font-size: 24px;
    color: #2C3E50;
}

.filter {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-item {
    margin-right: 15px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.filter-item:hover {
    background-color: #f0f0f0;
}

.filter-item.active {
    background-color: #5D8B5D;
    color: white;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.content-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2C3E50;
    text-decoration: none;
    transition: color 0.3s;
}

.card-title:hover {
    color: #5D8B5D;
}

.card-info {
    font-size: 12px;
    color: #666;
}

/* Video Tutorial Section */
.video-tutorial {
    margin: 50px 0;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tutorial-header h2 {
    font-size: 24px;
    color: #2C3E50;
}

/* 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;
    }
    
    .hero h1 {
        font-size: 32px;
    }
}

@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;
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}