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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 顶部标题 */
.top-title {
    text-align: center;
    padding: 15px 20px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 蓝色横幅和Logo */
.header-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 0;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    overflow: visible;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.header-logo {
    width: 100vw;
    height: auto;
    min-height: 100%;
    object-fit: contain;
    object-position: center;
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* 轮播图区域 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

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

.dot.active {
    background-color: #333;
}

/* 服务分类区域 */
.service-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 20px;
    background-color: #fff;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    padding: 15px 5px;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.category-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    padding: 5px;
}

.category-text {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* 配餐服务标题 */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 20px;
    background-color: #fff;
}

.line {
    width: 60px;
    height: 1px;
    background-color: #ddd;
}

.title-text {
    margin: 0 20px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* 配餐服务展示区域 */
.catering-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px 30px;
    background-color: #fff;
}

.service-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

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

.service-caption {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 直接服务区域 */
.direct-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    background-color: #fff;
}

.direct-service-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.direct-service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.direct-service-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* 增值服务标题 */
.value-added-title {
    text-align: center;
    padding: 30px 20px 20px;
    background-color: #fff;
    font-size: 18px;
    color: #ff8c00;
    font-weight: 600;
}

/* 增值服务区域 */
.value-added-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px 30px;
    background-color: #fff;
}

.value-service-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.value-service-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* 联系信息页脚 */
.contact-footer {
    background-color: #f8f9fa;
    color: #333;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.company-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.phone-number span {
    color: #333 !important;
}

.phone-icon {
    font-size: 18px;
}

.company-address {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.navigate-btn {
    display: inline-block;
    background-color: #1e3c72;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.navigate-btn:hover {
    background-color: #2a5298;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: #ff8c00;
}

.nav-item:not(.active) {
    color: #999;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-text {
    font-size: 12px;
    font-weight: 500;
}

/* 电脑端样式 */
@media (min-width: 1024px) {
    .header-banner {
        min-height: 250px;
    }
    
    .header-logo {
        height: auto;
        min-height: 100%;
        object-fit: contain;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .service-showcase .service-item img {
        height: 800px;
        width: 100vw;
        object-fit: cover;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .service-showcase-title {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .service-showcase-title .title-text {
        font-size: 24px;
    }
    
    .service-features {
        max-width: 1200px;
        margin: 0 auto 20px auto;
        padding: 40px 20px;
    }
    
    .service-features h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .service-features li {
        font-size: 18px;
        padding: 15px 0;
    }
}

/* 平板端样式 */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-banner {
        min-height: 220px;
    }
    
    .service-showcase .service-item img {
        height: 500px;
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .header-banner {
        min-height: 180px;
    }
    
    .header-logo {
        height: 100%;
    }
    
    .service-categories {
        gap: 15px;
        padding: 20px 15px;
    }
    
    .category-image {
        width: 50px;
        height: 50px;
    }
    
    .category-text {
        font-size: 12px;
    }
    
    .catering-services,
    .value-added-services {
        gap: 12px;
        padding: 0 15px 20px;
    }
    
    .service-item img,
    .value-service-item img {
        height: 100px;
    }
    
    .direct-services {
        gap: 12px;
        padding: 15px;
    }
    
    .direct-service-item img {
        height: 120px;
    }
    
    .service-showcase .service-item img {
        height: 300px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
}

/* 确保内容不被底部导航遮挡 */
body {
    padding-bottom: 70px;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 图片优化 */
img {
    opacity: 1 !important;
    transition: none !important;
}

.service-item,
.value-service-item,
.direct-service-item {
    opacity: 1;
    transform: none;
}

/* 触摸反馈 */
.nav-item:active,
.navigate-btn:active {
    transform: scale(0.95);
}

/* 确保图片加载时的占位 */
img {
    background-color: #f0f0f0;
}

/* 优化文字渲染 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 页面头部样式 */
.page-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    font-size: 24px;
    color: #333;
    text-decoration: none;
    margin-right: 15px;
    padding: 5px;
}

.page-header h1 {
    font-size: 18px;
    color: #333;
    margin: 0;
    flex: 1;
    text-align: center;
    position: relative;
    left: -24px; /* 补偿返回按钮的宽度 */
}

/* 服务展示区域 */
.service-showcase {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    background-color: #fff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.service-showcase .service-item {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 服务展示区域标题 */
.service-showcase-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-showcase-title .red-bar {
    width: 4px;
    height: 20px;
    background-color: #ff4444;
    margin-right: 10px;
}

.service-showcase-title .title-text {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* 成功案例展示区域 */
.success-cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    background-color: #fff;
}

.case-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.case-caption {
    padding: 15px;
}

.case-caption h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.case-caption p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 480px) {
    .success-cases {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }
    
    .case-item img {
        height: 120px;
    }
    
    .case-caption {
        padding: 12px;
    }
    
    .case-caption h3 {
        font-size: 15px;
    }
    
    .case-caption p {
        font-size: 13px;
    }
}

/* 联系我们页面样式 */
.company-intro {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.intro-content h2 {
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.intro-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.highlight-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffd700;
    margin: 0;
}

.contact-info {
    padding: 30px 20px;
    background-color: #fff;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-icon {
    font-size: 32px;
    margin-right: 20px;
    width: 60px;
    text-align: center;
}

.contact-details h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.contact-details p {
    font-size: 16px;
    color: #666;
    margin: 4px 0;
}

.phone-number {
    font-size: 18px !important;
    color: #000000 !important;
    font-weight: 600 !important;
}

.phone-number span {
    color: #000000 !important;
}

.service-showcase {
    padding: 30px 20px;
    background-color: #f8f9fa;
}

.service-showcase h2 {
    text-align: center;
    font-size: 22px;
    color: #333;
    margin: 0 0 25px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-tag {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.value-services {
    padding: 30px 20px;
    background-color: #fff;
}

.value-services h2 {
    text-align: center;
    font-size: 22px;
    color: #333;
    margin: 0 0 25px 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.value-item {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.value-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.value-item h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.miniprogram-section {
    padding: 30px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.miniprogram-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.miniprogram-section p {
    font-size: 16px;
    color: #333;
    margin: 15px 0 0 0;
    font-weight: 600;
}

@media (max-width: 480px) {
    .company-intro {
        padding: 20px 15px;
    }
    
    .intro-content h2 {
        font-size: 20px;
    }
    
    .intro-text {
        font-size: 14px;
    }
    
    .highlight-text {
        font-size: 16px;
    }
    
    .contact-info {
        padding: 20px 15px;
    }
    
    .contact-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .contact-icon {
        font-size: 24px;
        margin-right: 15px;
        width: 40px;
    }
    
    .contact-details h3 {
        font-size: 16px;
    }
    
    .contact-details p {
        font-size: 14px;
    }
    
    .phone-number {
        font-size: 16px !important;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .service-tag {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .value-item img {
        height: 100px;
    }
    
    .miniprogram-section {
        padding: 20px 15px;
    }
    
    .miniprogram-image {
        max-width: 250px;
        height: 250px;
    }
    
    .miniprogram-section p {
        font-size: 14px;
        margin: 12px 0 0 0;
    }
}

.service-showcase .service-item {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    margin: 0;
}

.service-showcase .service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.service-showcase .service-item img {
    width: 100vw;
    height: 600px;
    object-fit: cover;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.service-showcase .service-caption {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 服务特色 */
.service-features {
    padding: 30px 20px;
    background-color: #fff;
    margin-bottom: 20px;
}

.service-features h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 16px;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li:before {
    content: "✓";
    color: #ff8c00;
    font-weight: bold;
    margin-right: 10px;
}
