/* Home Kitchen: Chinese Home-Style Dishes Website */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-brown);
    background-color: var(--cream-white);
}

/* Color Variables - Warm & Cozy Theme */
:root {
    --warm-brown: #8B4513;          /* 主色调：温暖的棕色 */
    --golden-yellow: #DEB887;       /* 辅助色：金黄色 */
    --cream-white: #FFF8DC;         /* 背景色：奶白色 */
    --dark-brown: #5D4037;          /* 文字色：深棕色 */
    --light-beige: #F5F5DC;         /* 浅米色 */
    --accent-amber: #D2691E;        /* 强调色：琥珀色 */
}

/* Typography */
h1, h2, h3 {
    font-family: 'Georgia', serif;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

h2 {
    font-size: 2rem;
    color: var(--warm-brown);
}

h3 {
    font-size: 1.5rem;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--warm-brown), var(--accent-amber));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo::before {
    content: "🥢";
    margin-right: 0.5rem;
    font-size: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
    color: var(--golden-yellow);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(210, 105, 30, 0.8));
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.video-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.2);
}

.video-container {
    width: 100%;
    padding: 1rem;
    background: var(--light-beige);
}

/* Recipe Section Styles */
.recipe-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
    margin: 3rem 0;
    overflow: hidden;
}

.recipe-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: var(--light-beige);
}

.recipe-main-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.recipe-info h3 {
    color: var(--warm-brown);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.recipe-steps {
    padding: 2rem;
}

.step {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-beige);
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.step-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.step-content h4 {
    color: var(--warm-brown);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--dark-brown);
    line-height: 1.6;
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.2);
}

.card-image {
    width: 100%;
    height: 200px;
    background: var(--light-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-brown);
    font-size: 1.1rem;
    border-bottom: 3px solid var(--golden-yellow);
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    color: var(--warm-brown);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: var(--warm-brown);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--accent-amber);
}

.btn-secondary {
    background: var(--golden-yellow);
    color: var(--dark-brown);
}

.btn-secondary:hover {
    background: var(--accent-amber);
    color: white;
}

/* Featured Dishes Section */
.featured-dishes {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: var(--golden-yellow);
    margin: 1rem auto;
}

/* Recipe Page Styles */
.recipe-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.recipe-image {
    width: 100%;
    height: 300px;
    background: var(--light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7F8C8D;
    font-size: 1.2rem;
}

.recipe-info h1 {
    color: var(--jade-green);
    margin-bottom: 1rem;
}

.recipe-meta {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.meta-item {
    text-align: center;
}

.meta-item strong {
    display: block;
    color: var(--jade-green);
    font-size: 1.2rem;
}

.recipe-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.ingredients {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.ingredients h3 {
    color: var(--jade-green);
    margin-bottom: 1rem;
}

.ingredients ul {
    list-style: none;
}

.ingredients li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.ingredients li:last-child {
    border-bottom: none;
}

.steps {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.steps h3 {
    color: var(--jade-green);
    margin-bottom: 1rem;
}

.step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--off-white);
    border-left: 4px solid var(--warm-yellow);
    border-radius: 5px;
}

.step-number {
    font-weight: bold;
    color: var(--jade-green);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--warm-brown);
    color: var(--cream-white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .recipe-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .recipe-header {
        grid-template-columns: 1fr;
    }
    
    .recipe-content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .recipe-meta {
        flex-direction: column;
        gap: 1rem;
    }
}
