/* 全局样式 */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* 导航栏样式 */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 70px;
}

.logo {
    margin-right: 30px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo a {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.navbar .nav-links li {
    margin: 0 16px;
}

.navbar .nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navbar .nav-links a:hover {
    color: var(--primary-color);
}

/* 语言选择下拉菜单样式 */
.language-dropdown {
    position: relative;
    margin-left: auto;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--light-gray);
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-selector:hover {
    background-color: rgba(0,0,0,0.05);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 120px;
    display: none;
    z-index: 1000;
    overflow: hidden;
    margin-top: 5px;
}

/* 移除悬停显示菜单的样式 */
/* .language-dropdown:hover .language-menu {
    display: block;
} */

/* 添加显示菜单的新类 */
.language-menu.show {
    display: block;
}

.language-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.lang-option:hover {
    background-color: var(--light-gray);
}

.lang-option.active {
    background-color: rgba(0,0,0,0.05);
    font-weight: bold;
    color: var(--primary-color);
}

/* Hero区域样式 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

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

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* 菜系分类样式 */
.categories {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.categories h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
}

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

.category-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.category-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.category-card h3 {
    padding: 20px 20px 10px;
    margin: 0;
    color: var(--secondary-color);
    font-size: 18px;
}

.category-card p {
    padding: 0 20px 20px;
    color: #666;
    margin: 0;
    flex-grow: 1;
}

/* 菜谱部分通用样式 */
.recipe-section {
    padding: 80px 0;
}

.recipe-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
}

.latest-recipes {
    background-color: var(--white);
}

.popular-recipes {
    background-color: var(--light-gray);
}

/* 菜谱卡片样式 */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.recipe-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

.recipe-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recipe-content h3 {
    margin-bottom: 12px;
    font-size: 22px;
    color: var(--secondary-color);
    font-weight: 600;
}

.recipe-content p {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 5px 0;
    align-self: flex-start;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.read-more:hover {
    border-color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.social-links a {
    margin-right: 15px;
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* 强调关键词的样式 */
.keyword {
    font-weight: 500;
    color: var(--secondary-color);
}

/* 优化标题样式，使其更加突出 */
h1, h2, h3 {
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 {
    font-size: 38px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
    font-size: 32px;
    color: var(--secondary-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 24px;
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .navbar .container {
        padding: 0 10px;
    }
    
    .navbar .nav-links li {
        margin: 0 8px;
    }
    
    .navbar .nav-links a {
        font-size: 14px;
    }
    
    .logo a {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .navbar .container {
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
        height: auto;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .navbar .nav-links {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navbar .nav-links li {
        margin: 5px 8px;
    }
    
    .language-dropdown {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .popular-recipe {
        flex-direction: column;
    }
    
    .recipe-image, .recipe-details {
        width: 100%;
    }
    
    .recipe-image {
        height: 250px;
    }
}

/* 相关关键词块样式 */
.related-keywords {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.related-keywords h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 18px;
}

.keyword-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.keyword-list li {
    margin-bottom: 10px;
}

.keyword-list a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    background-color: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: inline-block;
}

.keyword-list a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* About page styles */
.about-hero {
    height: 400px;
}

.about-content {
    padding: 60px 0;
    background-color: var(--white);
}

.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    text-align: left;
}

.about-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.feature-list li:before {
    content: "\f00c";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.feedback-section {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    margin-top: 60px;
}

.contact-email {
    font-size: 18px;
    margin: 20px 0;
    display: inline-block;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
}

.contact-email i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-email a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: var(--primary-color);
}

/* Active link in navigation */
.navbar .nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Categories page styles */
.categories-intro {
    padding: 60px 0 40px;
    background-color: var(--white);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.categories-detail {
    padding: 40px 0 80px;
    background-color: var(--light-gray);
}

.cuisine-section {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cuisine-header {
    display: flex;
    align-items: center;
    background-color: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cuisine-image {
    width: 260px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.cuisine-title {
    padding: 20px;
}

.cuisine-title h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.cuisine-origin {
    font-style: italic;
    color: #666;
    margin: 0;
}

.cuisine-content {
    padding: 25px;
}

.cuisine-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.key-features, .famous-dishes {
    margin-bottom: 20px;
}

.key-features h4, .famous-dishes h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.key-features ul, .famous-dishes ul {
    list-style-type: disc;
    padding-left: 20px;
}

.key-features li, .famous-dishes li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.famous-dishes a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.famous-dishes a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cuisine-header {
        flex-direction: column;
    }
    
    .cuisine-image {
        width: 100%;
        height: 200px;
    }
}

/* Popular recipes page styles */
.popular-intro {
    padding: 60px 0 40px;
    background-color: var(--white);
}

.popular-main {
    padding: 0 0 80px;
    background-color: var(--light-gray);
}

.popular-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.popular-recipe {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
}

.recipe-image {
    width: 35%;
    position: relative;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-badge {
    position: absolute;
    top: 15px;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 3px 0 0 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.recipe-details {
    width: 65%;
    padding: 30px;
}

.recipe-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

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

.recipe-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

.recipe-details p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.recipe-highlights {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 25px;
}

.recipe-highlights li {
    margin-bottom: 8px;
    color: #555;
}

.recipe-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.recipe-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Cooking tips page styles */
.tips-intro {
    padding: 60px 0 40px;
    background-color: var(--white);
}

.techniques-section {
    padding: 0 0 60px;
    background-color: var(--light-gray);
}

.technique-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.technique-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.technique-header h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 22px;
}

.difficulty-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.technique-content {
    display: flex;
    padding: 0;
}

.technique-img {
    width: 35%;
}

.technique-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.technique-text {
    width: 65%;
    padding: 25px;
}

.technique-text p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.technique-text h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.technique-text ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.technique-text li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.pro-tip {
    background-color: rgba(231, 76, 60, 0.1);
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.pro-tip h5 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 10px;
}

.pro-tip i {
    margin-right: 8px;
}

.pro-tip p {
    margin-bottom: 0;
    font-size: 15px;
}

/* Equipment section */
.equipment-section {
    padding: 60px 0 80px;
    background-color: var(--white);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.equipment-item {
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-5px);
}

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

.equipment-item h4 {
    padding: 15px 20px 10px;
    margin: 0;
    color: var(--secondary-color);
    font-size: 18px;
}

.equipment-item p {
    padding: 0 20px 20px;
    margin: 0;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 900px) {
    .technique-content {
        flex-direction: column;
    }
    
    .technique-img, .technique-text {
        width: 100%;
    }
    
    .technique-img {
        height: 250px;
    }
}

/* Contact page styles */
.contact-hero {
    height: 350px;
}

.contact-content {
    padding: 60px 0 80px;
    background-color: var(--white);
}

.contact-main {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-info h2, .contact-form h2 {
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
}

.contact-info h2:after, .contact-form h2:after {
    left: 0;
    transform: none;
    width: 60px;
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-methods {
    margin-top: 40px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-method i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 3px;
}

.method-details h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.method-details p {
    margin-bottom: 8px;
}

.method-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.method-details a:hover {
    text-decoration: underline;
}

.social-contact-links {
    display: flex;
    gap: 15px;
}

.social-contact-links a {
    font-size: 22px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.social-contact-links a:hover {
    color: var(--primary-color);
}

/* Form styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.submit-btn:hover {
    background-color: #c0392b;
}

@media (max-width: 900px) {
    .contact-main {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
}

/* Policy pages (Privacy & Terms) styles */
.policy-hero {
    height: 300px;
}

.policy-content {
    padding: 60px 0 80px;
    background-color: var(--white);
}

.policy-date {
    text-align: right;
    color: #777;
    font-style: italic;
    margin-bottom: 40px;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: left;
    padding-bottom: 10px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.policy-section h2:after {
    content: none;
}

.policy-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 30px;
}

.policy-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.policy-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.policy-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-section a:hover {
    text-decoration: underline;
}

/* 在小屏幕上只显示logo图片 */
@media (max-width: 768px) {
    .logo .logo-text {
        display: none;
    }
    
    .logo img {
        height: 36px;
    }
} 