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

/* 基础样式设置 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* 自定义变量 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #feca57;
    --accent-color: #1dd1a1;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #34495e;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--secondary-color);
}

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

.menu li {
    margin-left: 30px;
}

.menu a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

/* 移动端菜单样式 */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    list-style: none;
}

.mobile-menu li {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* 首页样式 */
.home {
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('./1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.home-content {
    max-width: 800px;
    text-align: center;
}

.home-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.home-content h1 span {
    color: var(--secondary-color);
}

.home-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.home-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 章节标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.line {
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
    transition: width 0.3s ease;
}

.section-title:hover .line {
    width: 200px;
}

/* 关于我们部分样式 */
.about {
    padding: 100px 0;
    background-color: #fff;
}

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

.about-image {
    flex: 1;
    min-width: 300px;
    margin-right: 50px;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.about-text h3 span {
    color: var(--primary-color);
}

.about-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-info {
    margin-top: 30px;
}

.info-item {
    display: flex;
    margin-bottom: 15px;
}

.info-item span:first-child {
    font-weight: 600;
    color: #333;
    min-width: 100px;
}

.info-item span:last-child {
    color: #666;
}

/* 精选菜谱部分样式 */
.recipes {
    padding: 100px 0;
    background-color: #fff5f5;
}

.recipes-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 40px;
}

.recipe-item {
    display: flex;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.recipe-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.recipe-image {
    width: 40%;
    height: 200px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-item:hover .recipe-image img {
    transform: scale(1.1);
}

.recipe-info {
    width: 60%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recipe-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.recipe-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.recipe-meta span {
    padding: 5px 10px;
    background-color: #f8f9fa;
    color: var(--text-color);
    border-radius: 15px;
    font-size: 13px;
}

.recipe-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.recipe-link {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    width: fit-content;
}

.recipe-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* 小妍点餐通道样式 */
.xiaoyan-order {
    padding: 100px 0;
    background-color: #fff9f9;
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
.xiaoyan-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 0;
}

/* 小妍点餐通道图片样式 */
.section-image {
    text-align: center;
    margin-top: 20px;
}

.cute-image {
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.cute-image:hover {
    transform: scale(1.05);
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.form-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.quick-order-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.xiaoyan-order-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.xiaoyan-order-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
}

.xiaoyan-order-form h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.xiaoyan-order-form .form-group {
    margin-bottom: 25px;
}

.xiaoyan-order-form .form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
}

.xiaoyan-order-form .form-group input,
.xiaoyan-order-form .form-group select,
.xiaoyan-order-form .form-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.xiaoyan-order-form .form-group textarea {
    height: 120px;
    resize: none;
}

.xiaoyan-order-form .dishes-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xiaoyan-order-form .dishes-selection label {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.xiaoyan-order-form .dishes-selection label:hover {
    color: var(--primary-color);
}

.xiaoyan-order-form .dishes-selection input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.xiaoyan-order-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.xiaoyan-order-form button[type="submit"]:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* 小妍专属菜单样式 */
.xiaoyan-menu {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.xiaoyan-menu h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item .item-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-color);
}

.menu-item .item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

/* 快速点餐样式 */
.quick-order {
    margin-top: 30px;
}

.quick-order h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.quick-order-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.quick-order-option {
    padding: 15px;
    background-color: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-order-option:hover {
    background-color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.quick-order-option.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 口味偏好样式 */
.taste-preferences {
    margin-top: 30px;
}

.taste-preferences h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.taste-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.taste-option {
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.taste-option:hover {
    background-color: #fff;
    border-color: var(--primary-color);
}

.taste-option.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 给小妍的留言样式 */
.message-to-xiaoyan {
    margin-top: 30px;
}

.message-to-xiaoyan h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
}

/* 在线点菜部分样式 */
.order {
    padding: 100px 0;
    background-color: #fff;
}

.order-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
}

.order-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.order-form h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.order-form .form-group {
    margin-bottom: 25px;
}

.order-form .form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
}

.order-form .form-group input,
.order-form .form-group select,
.order-form .form-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.order-form .form-group textarea {
    height: 120px;
    resize: none;
}

.order-form .dishes-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-form .dishes-selection label {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.order-form .dishes-selection label:hover {
    color: var(--primary-color);
}

.order-form .dishes-selection input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.order-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-form button[type="submit"]:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.order-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-info h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 25px;
}

.order-info ul {
    list-style: none;
    margin-bottom: 40px;
}

.order-info li {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.promotion {
    background-color: #fff5f5;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
}

.promotion h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.promotion p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 联系我们部分样式 */
.contact {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

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

.contact-item span {
    font-size: 16px;
    color: var(--text-color);
}

.contact-social {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: var(--text-color);
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.form-group textarea {
    height: 150px;
    resize: none;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    font-size: 16px;
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

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

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: #ddd;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .home-content h1 {
        font-size: 40px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .recipes-content {
        grid-template-columns: 1fr;
    }
    
    .order-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .menu {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .home {
        /* 修复移动设备背景图不显示问题 */
        background-attachment: scroll;
        background-position: center center;
    }
    
    .home-content h1 {
        font-size: 32px;
    }
    
    .home-content p {
        font-size: 18px;
    }
    
    .home-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .recipe-item {
        flex-direction: column;
    }
    
    .recipe-image {
        width: 100%;
        height: 250px;
    }
    
    .recipe-info {
        width: 100%;
    }
    
    .order-form {
        padding: 25px;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .home-content h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .about-text h3 {
        font-size: 24px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}