/* 样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局变量 */
:root {
    --primary-color: #CD2626;    /* 主色调-赤红色 */
    --secondary-color: #F5F5DC;  /* 辅助色-米白色 */
    --accent-color: #FFD700;     /* 点缀色-金色 */
    --text-color: #333333;       /* 文字颜色 */
    --font-family: "Microsoft YaHei", sans-serif;
}

/* 基础样式 */
body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.nav {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Banner样式 */
.banner {
    position: relative;
    height: 600px;
    margin-top: 60px;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-text {
    font-size: 24px;
}

/* 页面标题样式 */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0 40px;
    margin-top: 60px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-description {
    font-size: 18px;
    opacity: 0.9;
}

/* 筛选区域样式 */
.filter-section {
    background-color: white;
    padding: 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: bold;
    color: var(--text-color);
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 美食列表样式 */
.food-list-section {
    padding: 40px 0;
}

.food-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.food-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.food-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.food-info {
    padding: 20px;
}

.food-info h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.food-tags {
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 14px;
    margin-right: 8px;
}

.food-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* 美食推荐区样式 */
.featured-foods {
    padding: 60px 0;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.food-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.food-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.food-card h3 {
    padding: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.food-card p {
    padding: 0 15px 15px;
    color: #666;
}

/* 特色内容区样式 */
.features {
    padding: 60px 0;
    background-color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 24px;
}

.feature-item p {
    color: #666;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #B22222;
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin: 30px 0;
    color: var(--primary-color);
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
    line-height: 2;
}

/* 美食详情页样式 */
.food-detail-section {
    padding: 40px 0;
    margin-top: 60px;
}

/* 基本信息样式 */
.food-basic-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.food-image-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.food-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.food-info-content {
    padding: 20px;
}

.food-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.food-meta {
    margin-bottom: 20px;
}

.rating {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 14px;
    margin-left: 8px;
}

.food-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* 食材和工艺样式 */
.food-making-info {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.ingredients-section {
    margin-bottom: 40px;
}

.ingredients-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ingredient-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.ingredient-name {
    font-weight: bold;
}

.ingredient-amount {
    color: #666;
}

/* 制作步骤样式 */
.steps-section {
    margin-bottom: 40px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.step-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* 烹饪技巧样式 */
.tips-section {
    margin-bottom: 40px;
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tip-item {
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.tip-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.tip-item p {
    color: #666;
    line-height: 1.6;
}

/* 评论区样式 */
.comments-section {
    margin-bottom: 40px;
}

.comment-form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.rating-input {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    margin-left: 10px;
}

.star {
    color: #ddd;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star:hover,
.star.active {
    color: var(--accent-color);
}

.comment-textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    resize: none;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}

.comment-user {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-info h4 {
    margin-bottom: 5px;
}

.comment-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-time {
    color: #999;
    font-size: 14px;
}

/* 相关推荐样式 */
.related-foods {
    margin-bottom: 40px;
}

.related-foods .food-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* 登录页面样式 */
.login-section {
    min-height: calc(100vh - 60px);
    padding: 40px 0;
    margin-top: 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fff 100%);
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.login-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    font-size: 16px;
}

.login-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: bold;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.captcha-wrapper {
    display: flex;
    gap: 10px;
}

.captcha-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.captcha-image {
    height: 44px;
    border-radius: 5px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    margin-top: 20px;
}

.other-login {
    margin-top: 30px;
    text-align: center;
}

.divider {
    position: relative;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 70px);
    height: 1px;
    background-color: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background-color: white;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 24px;
    height: 24px;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 5px;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 注册页面样式 */
.register-section {
    min-height: calc(100vh - 60px);
    padding: 40px 0;
    margin-top: 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fff 100%);
    display: flex;
    align-items: center;
}

.register-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.register-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.register-subtitle {
    color: #666;
    font-size: 16px;
}

.register-form {
    margin-top: 30px;
}

.input-tip {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.code-wrapper {
    display: flex;
    gap: 10px;
}

.code-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.code-btn {
    padding: 0 20px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.code-btn:hover {
    background: var(--primary-color);
    color: white;
}

.password-strength {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.strength-bar {
    width: 150px;
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    margin-left: 10px;
    overflow: hidden;
}

.strength-level {
    display: block;
    height: 100%;
    width: 0;
    background-color: #ff4d4d;
    transition: all 0.3s ease;
}

.strength-level.weak {
    width: 33.33%;
    background-color: #ff4d4d;
}

.strength-level.medium {
    width: 66.66%;
    background-color: #ffad4d;
}

.strength-level.strong {
    width: 100%;
    background-color: #52c41a;
}

.register-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    margin-top: 20px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 5px;
}

.login-link a:hover {
    text-decoration: underline;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* 关于我们页面样式 */
.mission-section {
    padding: 60px 0;
    background-color: white;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mission-item {
    text-align: center;
    padding: 30px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.mission-item:hover {
    transform: translateY(-5px);
}

.mission-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.mission-item h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.mission-item p {
    color: #666;
    line-height: 1.6;
}

/* 团队介绍样式 */
.team-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-avatar {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.member-title {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.member-desc {
    color: #666;
    line-height: 1.6;
}

/* 发展历程样式 */
.history-section {
    padding: 60px 0;
    background-color: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: calc(50% - 30px);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: calc(50% + 30px);
}

.timeline-date {
    position: absolute;
    top: 0;
    width: 120px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 20px;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -160px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -160px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* 联系我们页面样式 */
.contact-section {
    padding: 60px 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* 联系信息卡片样式 */
.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* 联系表单样式 */
.contact-form-container {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form {
    margin-top: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    margin-top: 20px;
}

/* 地图区域样式 */
.map-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} 