* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #cbf1b5;
}

.header {
    background-color: #f7d257;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-title span {
    color: #ff6b6b;
}

/* Make sure the site title link has no underline and is accessible */
.brand-heading a {
    text-decoration: none;
    color: inherit;
}
.brand-heading a:hover,
.brand-heading a:focus {
    text-decoration: none;
    color: inherit;
}
.brand-heading a:focus-visible {
    outline: 3px solid rgba(255,107,107,0.25);
    outline-offset: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff6b6b;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff6b6b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#hero {
    background-image: url('public/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    padding: 100px 50px;
    margin-bottom: 40px;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

#hero h1 {
    font-size: 56px;
    font-family: 'Arial', sans-serif;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#hero p {
    padding-top: 10px;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 1px;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-read-more {
    display: inline-block;
    background-color: #ff6b6b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-read-more:hover {
    background-color: #e55353;
}

p {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
    font-family: 'Georgia', serif;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.fruit-link {
    text-decoration: none;
}

.fruit {
    border: 1px solid #fcfafa;
    padding: 20px;
    text-align: center;
    background: #f0b829;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(138, 231, 245, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fruit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(138, 231, 245, 1);
}

.fruit img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.fruit h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.fruit p {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    text-align: center;
}

#footer {
    background-color: #2c7da0;
    color: #fff;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#footer h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

#footer p {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto;
}

/* 内页样式 */
.inner-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.inner-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f0b829;
    border-radius: 10px;
}

.inner-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #333;
}

.inner-hero p {
    font-size: 20px;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.content-text h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #333;
}

.content-text h3 {
    font-size: 24px;
    margin: 25px 0 15px;
    color: #555;
}

.nutrition-list {
    margin: 15px 0 25px;
    padding-left: 20px;
}

.nutrition-list li {
    margin-bottom: 10px;
    font-size: 18px;
}

.nutrition-chart {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.chart-placeholder {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-bar {
    padding: 10px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
}

.protein { background-color: #4CAF50; width: 70%; }
.carbs { background-color: #2196F3; width: 45%; }
.fats { background-color: #FF9800; width: 20%; }
.calories { background-color: #f44336; width: 60%; }

.related-section {
    margin: 50px 0;
}

.related-section h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    text-decoration: none;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h4 {
    padding: 15px;
    color: #333;
    font-size: 18px;
    text-align: center;
}

/* 食谱页样式 */
.recipe-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recipe-step {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.recipe-step img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.recipe-details h2 {
    margin-bottom: 15px;
}

.recipe-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.recipe-details ul {
    padding-left: 20px;
    margin: 15px 0;
}

.recipe-details li {
    margin-bottom: 8px;
    font-size: 18px;
}

/* 场景页样式 */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.moment-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.moment-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.moment-content {
    padding: 20px;
}

.moment-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.moment-content ul {
    padding-left: 20px;
    margin: 15px 0;
}

.moment-content li {
    margin-bottom: 8px;
}

.moment-link {
    display: inline-block;
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.moment-link:hover {
    color: #e55353;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        margin: 0 10px;
    }

    #hero {
        padding: 60px 20px;
    }

    #hero h1 {
        font-size: 36px;
    }

    .content-section {
        grid-template-columns: 1fr;
    }

    .inner-hero h1 {
        font-size: 32px;
    }
}

/* 完整文章页专属样式 */
.full-article {
    max-width: 900px;
    margin: 0 auto;
}

.article-header-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content {
    line-height: 1.8;
    color: #333;
}

.article-intro {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 30px;
    color: #555;
}

.full-article h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #2c7da0;
}

.full-article ol, .full-article ul {
    padding-left: 25px;
    margin: 15px 0 25px;
}

.full-article li {
    margin-bottom: 12px;
    font-size: 18px;
}

.article-quote {
    font-size: 22px;
    font-style: italic;
    color: #666;
    border-left: 4px solid #ff6b6b;
    padding: 20px 30px;
    margin: 30px 0;
    background-color: rgba(255,255,255,0.7);
}