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

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式优化 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

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

/* 主横幅区域修复 */
.hero {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    height: 700px;
}

/* 轮播图容器样式 */
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-wrapper {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    position: relative;
    width: 33.333%;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f5f5f5;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    left: 0;
    top: 0;
    transform: none;
}

/* 轮播图文字内容样式 */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

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

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

/* 轮播控制按钮样式 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 16px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 轮播指示器样式 */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* 服务区域样式修复 */
.services {
    padding: 4rem 2rem;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    object-fit: cover;
}

/* 页脚样式修复 */
.footer {
    background-color: #f8f8f8;
    padding: 2rem 0 1rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-info {
    margin-bottom: 1.5rem;
    color: #666;
}

.footer-info p {
    margin: 0.5rem 0;
}

.footer-divider {
    height: 1px;
    background-color: #ddd;
    margin: 1rem auto;
    width: 80%;
}

.icp-info {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

.icp-info a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.icp-info a:hover {
    color: #666;
}

/* 确保页脚始终在底部 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* 在移动端先隐藏导航链接 */
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
} 

/* 供应商登录按钮样式 */
.vendor-login .login-btn {
    background-color: #ff6b6b;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.vendor-login .login-btn:hover {
    background-color: #ff5252;
}

/* 确保在移动端也能显示登录按钮 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .vendor-login {
        display: block !important; /* 强制显示登录按钮 */
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
    }
} 

/* Logo 文字样式 */
.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
    text-decoration: none;
    font-family: "Microsoft YaHei", sans-serif;
    padding: 5px 10px;
    background-color: #fff;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: #ff5252;
}

/* 调整 logo 容器的样式 */
.logo {
    display: flex;
    align-items: center;
} 

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 调整各部分的上边距，避免被固定导航栏遮挡 */
#hero, #services, #about, #contact {
    scroll-margin-top: 70px; /* 与导航栏高度相同 */
}

/* 关于我们部分样式 */
.about {
    padding: 4rem 2rem;
    background-color: #f8f8f8;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.about-intro h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.about-intro p {
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 特色服务样式 */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
}

/* 数据统计样式 */
.about-numbers {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.number-item {
    text-align: center;
    padding: 1rem;
}

.number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b6b;
    display: block;
    margin-bottom: 0.5rem;
}

.number-item p {
    color: #666;
}

/* 服务承诺样式 */
.about-commitment {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 3rem;
}

.about-commitment h3 {
    color: #333;
    margin-bottom: 1.5rem;
}

.commitment-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.commitment-list li {
    color: #666;
    padding: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }

    .about-numbers {
        padding: 1rem;
    }

    .number-item {
        width: 50%;
        margin-bottom: 1rem;
    }

    .commitment-list {
        grid-template-columns: 1fr;
    }
}

/* 联系我们部分样式 */
.contact {
    padding: 4rem 2rem;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* 标题统一样式 */
section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #hero, #services, #about, #contact {
        scroll-margin-top: 60px;
    }
    
    .about, .contact {
        padding: 3rem 1rem;
    }
} 

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .hero {
        height: 400px; /* 降低移动端高度 */
        margin-top: 60px; /* 调整顶部间距 */
    }
    
    .slide {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 24px; /* 调整标题字体大小 */
    }
    
    .hero-content p {
        font-size: 16px; /* 调整描述文字大小 */
    }
    
    .slider-btn {
        padding: 8px; /* 减小按钮大小 */
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .prev {
        left: 10px; /* 调整按钮位置 */
    }
    
    .next {
        right: 10px;
    }
}

/* 更小屏幕的适配 */
@media screen and (max-width: 480px) {
    .hero {
        height: 300px; /* 更小屏幕进一步降低高度 */
    }
    
    .slide {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 20px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
} 