/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

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

.nav-links li a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
}

/* 标题区域样式 */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
    border-radius: 0 0 20px 20px;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 食谱卡片样式 */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }
}

.recipe-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

.recipe-card h2 {
    padding: 1rem;
    color: #333;
}

.recipe-card p {
    flex-grow: 1;
    padding: 0 1rem;
    color: #666;
}

.recipe-info {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    color: #666;
}

.recipe-rating {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid #eee;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffd700;  /* 金黄色星星 */
    font-size: 1.2rem;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

/* 移除原有的收藏按钮样式 */
.favorite-btn {
    display: none;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    padding: 2rem;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.copyright {
    text-align: center;
    color: #999;
}

/* 关于页面样式 */
.about-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.about-container h1 {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.quality-list,
.benefits-list,
.goals-list {
    list-style: none;
    padding-left: 1.5rem;
}

.quality-list li,
.benefits-list li,
.goals-list li {
    color: #666;
    margin-bottom: 0.5rem;
    position: relative;
}

.quality-list li:before,
.benefits-list li:before,
.goals-list li:before {
    content: "✓";
    color: #4CAF50;
    position: absolute;
    left: -1.5rem;
}

/* 联系页面样式 */
.contact-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.contact-container h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form h2 {
    color: #333;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: auto;
}

.contact-info {
    background: #8BC34A;
    color: white;
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* 隐私政策页面样式 */
.privacy-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.privacy-container h1 {
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.privacy-update {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-section ul {
    list-style: disc;
    margin-left: 1.5rem;
    color: #666;
}

.privacy-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .privacy-container {
        padding: 0 1rem;
    }
}

/* 免责声明页面样式 */
.disclaimer-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.disclaimer-container h1 {
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.disclaimer-update {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.disclaimer-section {
    margin-bottom: 2.5rem;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.disclaimer-section h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.disclaimer-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.disclaimer-section ul {
    list-style: disc;
    margin-left: 1.5rem;
    color: #666;
}

.disclaimer-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .disclaimer-container {
        padding: 0 1rem;
    }
} 