/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.logo {
    display: flex;
    align-items: center;
}

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

.logo span {
    font-size: 22px;
    font-weight: bold;
    color: #1e88e5;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: #1e88e5;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1e88e5;
    transition: width 0.3s;
}

nav ul li a:hover:after {
    width: 100%;
}

/* 主横幅区域样式 */
.hero {
    height: 100vh;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* 添加透明渲染层 */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 黑色半透明遮罩 */
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    color: white;
    position: relative;
    z-index: 2; /* 确保内容在遮罩层之上 */
}

.hero-content h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subtitle {
    border-top: 3px solid #1e88e5;
    padding-top: 15px;
    margin-top: 15px;
}

.subtitle p {
    font-size: 18px;
}

/* 核心服务区域样式 */
.core-services {
    padding: 80px 0;
}

.section-header {
    text-align: left;
    margin-bottom: 50px;
}

.section-header .line {
    width: 80px;
    height: 3px;
    background-color: #1e88e5;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 5px;
}

.section-header p {
    color: #999;
    font-size: 18px;
}

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

.service-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
    font-size: 40px;
    color: #1e88e5;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

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

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1e88e5;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: #1e88e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* 响应式设计 - 关于我们部分 */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        display: none; /* 默认隐藏，使用JavaScript控制显示 */
        position: absolute;
        background-color: white;
        width: 100%;
        top: 60px;
        left: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        color: #333;
    }

    .hero-content {
        padding: 20px;
        text-align: center;
    }

    .about-content, .cooperation-content {
        flex-direction: column;
    }

    .about-image, .cooperation-text {
        margin-bottom: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* 自定义美食图标 */
.icon-food {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('food-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.placeholder-image {
    height: 300px;
    background-color: #1e88e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 轮播图样式 */
.slideshow-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mySlides {
    display: none;
    width: 100%;
}

.mySlides img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

/* 前后按钮 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 指示点样式 */
.dots-container {
    text-align: center;
    margin-top: 15px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #1e88e5;
}

/* 淡入淡出动画 */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* 欢迎合作部分样式 */
.cooperation-section {
    padding: 80px 0;
    background-color: #f4f4f9;
}

.cooperation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.cooperation-text {
    max-width: 800px;
}

.cooperation-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1e88e5;
}

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

.cooperation-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.coop-feature {
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 150px;
}

.coop-feature i {
    font-size: 30px;
    color: #1e88e5;
    margin-bottom: 10px;
    display: block;
}

.coop-feature span {
    font-weight: bold;
    color: #333;
}

.contact-form-container {
    margin-top: 20px;
}

.submit-btn {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

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

.menu-toggle {
    display: none; /* 默认隐藏 */
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

/* 在移动设备上显示 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px; /* 调整位置 */
        top: 15px; /* 调整位置 */
    }
    
    nav ul {
        display: none; /* 默认隐藏，使用JavaScript控制显示 */
    }
}

html {
    scroll-behavior: smooth;
}