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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;  /* 防止横向滚动 */
    width: 100%;
    max-width: 100vw;  /* 确保不超过视口宽度 */
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;  /* 防止横向滚动 */
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;  /* 确保不超过视口宽度 */
    position: relative;  /* 为绝对定位的子元素提供参照 */
}

/* 每个全屏section - 移除scroll-snap，实现自由滚动 */
.fullpage-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 100vw;  /* 确保不超过视口宽度 */
    overflow-x: hidden;  /* 防止横向溢出 */
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;  /* 确保padding计入总宽度 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 导航栏 - 默认透明悬浮状态 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

/* 导航栏滚动后的白色状态 */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* 滚动后的深色文字 */
.header.scrolled .logo h1 {
    color: #667eea;
    transition: all 0.4s ease;
}

.header.scrolled .nav-menu a {
    color: #333;
    opacity: 1;
}

.header.scrolled .nav-menu a:hover,
.header.scrolled .nav-menu a.active {
    color: #667eea;
    opacity: 1;
}

.header.scrolled .nav-toggle span {
    background: #333;
}

.navbar {
    padding: 15px 0;
    margin: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* 固定导航栏高度 */
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 10;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo h1 {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    transition: all 0.4s ease;
    margin: 0;
    line-height: 1;
}

/* Logo 图片样式 */
.logo-image {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    vertical-align: middle;
    filter: brightness(1) contrast(1);
}

.logo-image:hover {
    opacity: 0.85;
}

/* 滚动前Logo图片样式 - 让Logo变成白色 */
.header .logo-image {
    position: relative;
    z-index: 10;
    transition: all 0.4s ease;
    filter: brightness(0) invert(1);
}

/* 滚动后Logo图片样式 - 显示正常颜色 */
.header.scrolled .logo-image {
    filter: none;
    opacity: 1;
    transition: all 0.4s ease;
}


.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    height: 100%;
}

.nav-menu a {
    color: #fff;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
    opacity: 0.8;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease, background 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* 滚动后下划线变为紫色 */
.header.scrolled .nav-menu a::after {
    background: #667eea;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: background 0.3s ease;
}

/* 轮播图 Hero Section */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    top: 0;
}

.slider-container {
    position: relative;
    height: 100%;
}

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

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.slide-content {
    position: absolute;
    top: 42%; /* 向上移动，从50%调整为42% */
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 0 20px;
}

/* 轮播图右上角按钮样式 */
.slide-btn-top-right {
    position: absolute;
    top: 120px; /* 导航栏下方 */
    right: 40px;
    z-index: 10;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInFromRight 0.8s ease 0.4s;
    animation-fill-mode: both;
}

.slide-btn-top-right:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

/* 按钮滑入动画 */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.slide-subtitle {
    font-size: 26px;
    margin-bottom: 35px;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    font-weight: 300;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 36px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-controls button:hover {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    width: 32px;
    border-radius: 5px;
}

.dot:hover {
    background: rgba(255,255,255,0.8);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

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

/* 核心服务 - 动态宽度缩放效果 */
.core-services {
    background: linear-gradient(180deg, #f0f4ff 0%, #e8f0fe 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
    /* 直接显示最终状态，无动画 */
    transform: scale(1);
    opacity: 1;
}

/* 默认卡片样式（未激活 - 较窄） */
.service-card {
    background: #ffffff;
    padding: 50px 25px; /* 恢复原padding，按钮不占空间 */
    text-align: center;
    position: relative; /* 确保绝对定位的按钮相对于卡片定位 */
    overflow: hidden; /* 恢复hidden，保持整洁 */
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 420px; /* 恢复固定高度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 280px; /* 从200px改为280px，与案例卡片宽度一致 */
    opacity: 0.92;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.6);
}

/* 激活状态的卡片 - 宽度放大，高度不变 */
.service-card.active {
    background: linear-gradient(135deg, #4a90e2 0%, #5f9ee8 50%, #74a9ed 100%);
    box-shadow: 0 15px 50px rgba(74, 144, 226, 0.35);
    opacity: 1;
    z-index: 10;
    flex: 0 0 600px; /* 从500px改为600px，保持与默认卡片的比例 */
    border-right: 1px solid rgba(255, 255, 255, 0.8);
}

/* 装饰性背景波纹 - 仅激活卡片显示 */
.service-card.active::before {
    content: '';
    position: absolute;
    top: -80%;
    right: -80%;
    width: 250%;
    height: 250%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    animation: ripple 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ripple {
    0%, 100% {
        opacity: 0.3;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-10%, -10%) scale(1.1);
    }
}

/* 图标样式 */
.service-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    opacity: 0.75;
    filter: grayscale(0%);
    /* 固定容器尺寸，确保所有图标占据相同空间 */
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
}

/* 图标中的图片样式 - 未激活状态 */
.service-icon img {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: grayscale(20%) opacity(0.75);
    /* 确保图片在容器内完整显示 */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.service-card.active .service-icon {
    font-size: 120px;
    margin-bottom: 30px;
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 10px 30px rgba(255, 255, 255, 0.4));
    animation: iconBounce 3s ease-in-out infinite;
    /* 激活状态下容器更大 - 固定尺寸 */
    width: 280px;
    height: 280px;
    max-width: 280px;
    max-height: 280px;
}

/* 激活状态的图标图片 - 变为白色 */
.service-card.active .service-icon img {
    filter: brightness(0) invert(1) drop-shadow(0 10px 30px rgba(255, 255, 255, 0.4));
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* 内容容器 - 调整文字与Logo距离 */
.service-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: -15px; /* 减小负值，拉开与Logo距离 */
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 标题样式 - 淡化颜色 */
.service-card h3 {
    font-size: 18px;
    color: #666; /* 淡化颜色：从#333改为#666 */
    margin-bottom: 0;
    font-weight: 600;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.4;
}

.service-card.active h3 {
    color: #fff;
    font-size: 30px;
    margin-bottom: 25px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

/* 描述文字 - 淡化颜色 */
.service-description {
    font-size: 14px;
    color: #888; /* 淡化颜色：从#666改为#888 */
    line-height: 1.8;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 0;
    padding: 0 20px;
}

.service-card.active .service-description {
    color: rgba(255, 255, 255, 0.98);
    opacity: 1;
    max-height: 250px;
    margin-top: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.9;
}

/* 悬停效果 - 非激活卡片 */
.service-card:not(.active):hover {
    background: #ffffff;
    opacity: 1;
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.2);
    border-right-color: rgba(74, 144, 226, 0.4);
}

.service-card:not(.active):hover .service-icon {
    opacity: 1;
    transform: scale(1.15);
    filter: grayscale(0%) brightness(1.1);
}

/* 悬停状态的图标图片 - 去除灰度，增加亮度 */
.service-card:not(.active):hover .service-icon img {
    filter: grayscale(0%) opacity(1) brightness(1.1);
}

.service-card:not(.active):hover h3 {
    color: #4a90e2;
}

/* 底部装饰线 - 仅激活卡片 */
.service-card.active::after {
    content: '';
    position: absolute;
    bottom: 15px; /* 调低位置，避免遮挡按钮 */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    z-index: 1; /* 确保装饰线在按钮下方 */
}

/* 服务图标链接样式 */
.service-icon-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.service-icon-link:hover {
    transform: scale(1.05);
}

/* 服务跳转按钮样式 - 定位到右上角（缩小版） */
.service-link-btn {
    display: inline-block;
    padding: 6px 14px; /* 缩小尺寸 */
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 15px; /* 缩小圆角 */
    font-size: 11px; /* 缩小字体 */
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    opacity: 0;
    /* 绝对定位到右上角 */
    position: absolute;
    top: 15px; /* 稍微靠近顶部 */
    right: 15px; /* 稍微靠近右侧 */
    z-index: 10; /* 确保在最上层 */
    transform: translateX(15px) scale(0.95); /* 从右侧滑入+缩小 */
    white-space: nowrap; /* 防止文字换行 */
}

/* 激活卡片中的跳转按钮 - 滑入动画 */
.service-card.active .service-link-btn {
    opacity: 1;
    transform: translateX(0) scale(1); /* 从右侧滑入，恢复正常大小 */
}

.service-link-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-2px) scale(1.08); /* 轻微向左移动并放大 */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* 非激活卡片隐藏跳转按钮 */
.service-card:not(.active) .service-link-btn {
    display: none;
}

/* 社会责任板块 */
.social-responsibility {
    background: #f5f5f5;
    padding: 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.responsibility-wrapper {
    display: flex;
    align-items: stretch;
    min-height: 100vh;  /* 改为100vh，与屏幕高度一致 */
    width: 100%;
    margin: 0;
}

/* 左侧图片区域 - 占70% */
.responsibility-image {
    flex: 7;
    position: relative;
    overflow: hidden;
}

.responsibility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧内容区域 - 占30% */
.responsibility-content {
    flex: 3;
    background: linear-gradient(135deg, #4a90e2 0%, #5f9ee8 50%, #74a9ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
}

.responsibility-text {
    max-width: 600px;
    color: #fff;
}

/* 英文副标题 - 顶部小字（参考官网 our Vision）*/
.responsibility-subtitle-en {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: lowercase;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 400;
    color: #fff;
    font-style: italic;
}

/* 中文副标题 - 中等大小（参考官网 我们的愿景）*/
.responsibility-subtitle-zh {
    font-size: 32px;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-weight: 700;
    color: #fff;
    opacity: 1;
    line-height: 1.2;
}

/* 主标题 - 大而粗（参考官网 打造百年桐昆 实现永续经营）*/
.responsibility-title {
    font-size: 56px;
    line-height: 1.5;
    margin-bottom: 60px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    word-break: keep-all;
}

/* 底部查看更多容器 */
.responsibility-more {
    margin-top: 35px;
}

/* 查看更多按钮 - 与关于我们按钮样式一致 */
.responsibility-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 按钮悬停效果 */
.responsibility-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.5s ease;
    z-index: 0;
}

.responsibility-more-btn:hover::before {
    left: 100%;
}

.responsibility-more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 按钮文字 */
.responsibility-more-btn .btn-text {
    position: relative;
    z-index: 1;
}

/* 按钮箭头图标 */
.responsibility-more-btn .btn-icon {
    font-size: 16px;
    transition: transform 0.35s ease;
    position: relative;
    z-index: 1;
}

.responsibility-more-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .responsibility-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .responsibility-image {
        height: 400px;
    }
    
    .responsibility-content {
        padding: 60px 40px;
    }
    
    .responsibility-subtitle-en {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .responsibility-subtitle-zh {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .responsibility-title {
        font-size: 42px;
        margin-bottom: 45px;
        letter-spacing: 2px;
    }
    
    .responsibility-more {
        margin-top: 28px;
    }
    
    .responsibility-more-btn {
        padding: 9px 20px;
        font-size: 13px;
        gap: 7px;
    }
    
    .responsibility-more-btn .btn-icon {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .responsibility-image {
        height: 300px;
    }
    
    .responsibility-content {
        padding: 50px 30px;
    }
    
    .responsibility-subtitle-en {
        font-size: 12px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }
    
    .responsibility-subtitle-zh {
        font-size: 22px;
        margin-bottom: 25px;
        letter-spacing: 1px;
    }
    
    .responsibility-title {
        font-size: 32px;
        margin-bottom: 35px;
        letter-spacing: 2px;
        line-height: 1.4;
    }
    
    .responsibility-more {
        margin-top: 22px;
    }
    
    .responsibility-more-btn {
        padding: 8px 18px;
        font-size: 13px;
        gap: 6px;
    }
    
    .responsibility-more-btn .btn-icon {
        font-size: 14px;
    }
}

/* 社会责任模态框 */
.responsibility-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.responsibility-modal-content {
    background: linear-gradient(135deg, #4a90e2 0%, #5f9ee8 50%, #74a9ed 100%);
    border-radius: 20px;
    padding: 60px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
    color: #fff;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.responsibility-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.responsibility-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.responsibility-modal-body {
    text-align: center;
}

.responsibility-modal-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.responsibility-modal-text {
    font-size: 20px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    max-width: 550px;
    margin: 0 auto;
}

.responsibility-modal-text p {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
}

.responsibility-modal-text p:last-child {
    margin-bottom: 0;
}

/* 社会责任图片网格 */
.responsibility-images-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 每行固定5个 */
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    max-width: 650px; /* 限制整体宽度 */
    margin-left: auto;
    margin-right: auto;
}

.responsibility-image-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 宽高比 */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.responsibility-image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.responsibility-image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .responsibility-modal-content {
        padding: 40px 30px;
        border-radius: 15px;
    }
    
    .responsibility-images-grid {
        grid-template-columns: repeat(3, 1fr); /* 移动端每行3个 */
        gap: 10px;
        padding: 15px;
        margin-top: 30px;
        max-width: 100%; /* 移动端占满宽度 */
    }
    
    .responsibility-image-item {
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
    
    .responsibility-image-item img {
        padding: 8px;
    }
    
    .responsibility-modal-title {
        font-size: 32px;
        margin-bottom: 30px;
        letter-spacing: 2px;
    }
    
    .responsibility-modal-text {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .responsibility-modal-text p {
        margin-bottom: 20px;
        padding-left: 15px;
    }
    
    .responsibility-modal-close {
        top: 15px;
        right: 15px;
        font-size: 32px;
        width: 35px;
        height: 35px;
    }
}

/* 关于我们板块 */
.about-us {
    background: #f5f5f5;
    padding: 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-wrapper {
    display: flex;
    align-items: stretch;
    min-height: 100vh;  /* 改为100vh，与屏幕高度一致 */
    width: 100%;
    margin: 0;
}

/* 左侧内容区域 - 蓝色背景 */
.about-content {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #4a90e2 0%, #5f9ee8 50%, #74a9ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
}

/* 当有背景图片时添加遮罩层确保文字清晰 */
.about-content[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0.85);
    z-index: 0;
}

/* 确保文字在遮罩层之上 */
.about-content .about-text {
    position: relative;
    z-index: 1;
}

.about-text {
    max-width: 600px;
    color: #fff;
}

/* 英文副标题 */
.about-subtitle-en {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 600;
    color: #fff;
}

/* 中文标题 */
.about-title {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

/* 描述文字 */
.about-description {
    font-size: 16px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

/* 查看更多按钮容器 */
.about-more-btn-wrapper {
    margin-top: 35px;
}

/* 查看更多按钮 - 优化版：更精致、更轻量 */
.about-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 按钮悬停效果 */
.about-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.5s ease;
    z-index: 0;
}

.about-more-btn:hover::before {
    left: 100%;
}

.about-more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 按钮文字 */
.about-more-btn .btn-text {
    position: relative;
    z-index: 1;
}

/* 按钮箭头图标 */
.about-more-btn .btn-icon {
    font-size: 16px;
    transition: transform 0.35s ease;
    position: relative;
    z-index: 1;
}

.about-more-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* 右侧卡片区域 */
.about-cards {
    flex: 0 0 60%;
    background: #e8eaed;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 35px;
}

/* 单个卡片 */
.about-card {
    position: relative;
    padding-left: 85px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.about-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 卡片编号 */
.about-card-number {
    position: absolute;
    left: 0;
    top: 5px;
    width: 65px;
    height: 65px;
    background: #1a365d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 10px rgba(26, 54, 93, 0.2);
}

/* 卡片标题 */
.about-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* 卡片描述 */
.about-card-description {
    font-size: 14px;
    line-height: 1.9;
    color: #4a5568;
    letter-spacing: 0.2px;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .about-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .about-content {
        padding: 60px 40px;
    }
    
    .about-cards {
        padding: 50px 40px;
        gap: 30px;
    }
    
    .about-title {
        font-size: 32px;
    }
    
    .about-description {
        font-size: 15px;
    }
    
    .about-more-btn-wrapper {
        margin-top: 28px;
    }
    
    .about-more-btn {
        padding: 9px 20px;
        font-size: 13px;
        gap: 7px;
    }
    
    .about-more-btn .btn-icon {
        font-size: 15px;
    }
    
    .about-card {
        padding-left: 75px;
        padding-bottom: 18px;
    }
    
    .about-card-number {
        width: 58px;
        height: 58px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .about-content {
        padding: 50px 30px;
    }
    
    .about-cards {
        padding: 40px 25px;
        gap: 25px;
    }
    
    .about-subtitle-en {
        font-size: 12px;
        letter-spacing: 2px;
    }
    
    .about-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .about-description {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .about-more-btn-wrapper {
        margin-top: 22px;
    }
    
    .about-more-btn {
        padding: 8px 18px;
        font-size: 13px;
        gap: 6px;
    }
    
    .about-more-btn .btn-icon {
        font-size: 14px;
    }
    
    .about-card {
        padding-left: 65px;
        padding-bottom: 15px;
    }
    
    .about-card-number {
        width: 50px;
        height: 50px;
        font-size: 18px;
        top: 0;
    }
    
    .about-card-title {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .about-card-description {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* 案例展示 */
.cases {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    position: relative;
}

/* 案例section容器优化 */
.cases .container {
    max-width: 100%;
    padding: 0 40px;
}

/* 案例滚动容器 - 外层包装 */
.cases-scroll-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

/* 案例网格 - 自动循环滚动 */
.cases-grid {
    display: flex;
    gap: 25px;
    width: fit-content;
}

/* 滚动轨道 - 添加动画 */
.cases-scroll-track {
    animation: casesScrollLeft 40s linear infinite;
}

/* 从左往右滚动的关键帧动画 */
@keyframes casesScrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);  /* 移动50%，因为内容复制了一份 */
    }
}

/* 鼠标悬停时暂停动画 */
.cases-scroll-container:hover .cases-scroll-track {
    animation-play-state: paused;
}

/* 桌面端：隐藏箭头和指示器（仅移动端显示） */
.cases-arrow,
.cases-indicators {
    display: none;
}

/* 案例卡片 - 优化尺寸和内容 */
.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    flex: 0 0 380px;  /* 固定宽度，不拉伸 */
    max-width: 380px;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.case-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.case-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.case-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.case-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
    flex: 1;
}

/* 案例描述预览 - 限制2行 */
.case-description-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: 3.2em; /* 2行的高度 */
}

/* 查看详情提示 */
.read-more-hint {
    display: inline-block;
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    margin-top: auto;
    transition: all 0.3s ease;
}

.case-card:hover .read-more-hint {
    color: #764ba2;
    transform: translateX(5px);
}

/* 案例卡片响应式 */
@media (max-width: 1024px) {
    .case-card {
        flex: 0 0 340px;
        max-width: 340px;
    }
    
    .case-image {
        height: 220px;
    }
    
    /* 中等屏幕加快滚动速度 */
    .cases-scroll-track {
        animation-duration: 35s;
    }
}

@media (max-width: 768px) {
    .cases {
        padding: 60px 0;
        overflow: hidden; /* 防止横向滚动 */
    }
    
    /* 移动端：重置container */
    .cases .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    /* 移动端：section-header保持padding */
    .cases .section-header {
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    /* 移动端：轮播容器 - 使用原生横向滚动 + Scroll Snap */
    .cases-scroll-container {
        position: relative;
        width: 100vw; /* 占满视口 */
        margin: 0;
        padding: 0;
        overflow-x: auto; /* 横向滚动 */
        overflow-y: hidden;
        scroll-snap-type: x mandatory; /* 启用滚动吸附 */
        -webkit-overflow-scrolling: touch; /* iOS 惯性滚动 */
        scrollbar-width: none; /* 隐藏滚动条 - Firefox */
    }
    .cases-scroll-container::-webkit-scrollbar { display: none; } /* 隐藏滚动条 - WebKit */
    
    /* 移动端：卡片网格容器 */
    .cases-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        animation: none !important;
        padding: 20px 0;
    }
    
    /* 移动端：单个卡片 - 完全重写样式 */
    .cases-grid .case-card {
        /* 重置所有可能的宽度限制 */
        min-width: 100vw !important;
        max-width: 100vw !important;
        width: 100vw !important;
        flex: 0 0 100vw !important;
        scroll-snap-align: center; /* 居中吸附 */
        
        /* 布局设置 */
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 0 20px; /* 左右留白 */
        
        /* 重置可能影响的样式 */
        margin: 0;
        border: none;
        overflow: hidden;
    }
    
    /* 移动端：卡片内部容器 */
    .cases-grid .case-card > div {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 移动端：图片样式 */
    .cases-grid .case-image {
        height: 200px;
        width: 100%;
        background-size: cover;
        background-position: center;
        border-radius: 12px 12px 0 0;
        flex-shrink: 0;
    }
    
    /* 移动端：内容区域 */
    .cases-grid .case-content {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
        background: #fff;
        border-radius: 0 0 12px 12px;
        flex: 1;
    }
    
    /* 移动端：标题 */
    .cases-grid .case-content h3 {
        font-size: 18px;
        margin: 0 0 12px 0;
        color: #333;
        font-weight: 600;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* 移动端：描述文本 */
    .cases-grid .case-content p {
        font-size: 14px;
        margin: 0 0 15px 0;
        color: #666;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* 移动端：查看详情提示 */
    .cases-grid .read-more-hint {
        display: inline-block;
        font-size: 14px;
        color: #667eea;
        margin: 0;
        font-weight: 500;
    }
    
    /* 左右切换箭头 */
    .cases-arrow {
        display: flex; /* 移动端显示箭头 */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.95);
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        color: #667eea;
    }
    
    .cases-arrow:hover {
        background: #667eea;
        color: #fff;
        transform: translateY(-50%) scale(1.1);
    }
    
    .cases-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .cases-arrow-left {
        left: 10px;
    }
    
    .cases-arrow-right {
        right: 10px;
    }
    
    /* 指示器 */
    .cases-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .cases-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .cases-indicator.active {
        background: #667eea;
        width: 24px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    /* 小屏手机：卡片占满宽度 */
    .case-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .case-image {
        height: 180px;
    }
    
    /* 箭头稍小 */
    .cases-arrow {
        width: 40px;
        height: 40px;
    }
    
    .cases-arrow-left {
        left: 5px;
    }
    
    .cases-arrow-right {
        right: 5px;
    }
}

.case-link {
    color: #667eea;
    font-weight: 500;
}

/* 案例详情模态框样式 */
.case-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.case-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.case-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.case-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.case-modal-body {
    display: flex;
    flex-direction: column;
}

.case-modal-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 16px 16px 0 0;
}

.case-modal-text {
    padding: 40px;
}

.case-modal-text h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.case-modal-description {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 25px;
    white-space: pre-wrap; /* 保留换行 */
}

.case-modal-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.case-modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .case-modal-content {
        max-width: 100%;
        margin: 20px;
    }
    
    .case-modal-image {
        height: 250px;
    }
    
    .case-modal-text {
        padding: 25px;
    }
    
    .case-modal-text h2 {
        font-size: 22px;
    }
    
    .case-modal-description {
        font-size: 14px;
    }
}

.case-link:hover {
    color: #764ba2;
}

/* 行业应用 - 旧样式（保留备用） */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.industry-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.industry-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.industry-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.industry-card h3 {
    font-size: 18px;
    color: #333;
}

/* 服务的品牌 - 滚动样式 */
.brands {
    padding: 80px 0;
    background: #f8f9fa;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brands-scroll-container {
    width: 100%;
    overflow: hidden;
    margin-top: 50px;
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

/* 添加左右渐变遮罩效果 */
.brands-scroll-container::before,
.brands-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.brands-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.brands-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

.brands-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.brands-scroll-wrapper:last-child {
    margin-bottom: 0;
}

.brands-scroll-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: fit-content;
}

/* 第一排：从右往左 */
.brands-scroll-left {
    animation: scroll-brands-left 60s linear infinite;
}

/* 第二排：从左往右 */
.brands-scroll-right {
    animation: scroll-brands-right 60s linear infinite;
}

/* 鼠标悬停时暂停滚动 */
.brands-scroll-track:hover {
    animation-play-state: paused;
}

/* 从右往左的动画 */
@keyframes scroll-brands-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 从左往右的动画 */
@keyframes scroll-brands-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 150px;
    height: 80px;
}

.brand-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.brand-item .brand-logo {
    max-width: 120px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

.brand-item:hover .brand-logo {
    filter: brightness(1.1);
    opacity: 1;
}

.brand-item .brand-name {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    white-space: nowrap;
}

/* 联系我们 */
.contact {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

/* 联系信息容器 - 强制一排显示 */
.contact-info {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 联系卡片 - 优化样式 */
.contact-item {
    flex: 1;  /* 平均分配空间 */
    min-width: 250px;  /* 最小宽度 */
    max-width: 320px;  /* 最大宽度 */
    text-align: center;
    padding: 35px 25px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 悬停效果 */
.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 35px rgba(102, 126, 234, 0.2);
}

/* 背景装饰 */
.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-icon {
    font-size: 60px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-item h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    word-break: break-word;
}

/* 联系我们响应式 */
@media (max-width: 1024px) {
    .contact-info {
        gap: 30px;
        max-width: 960px;
    }
    
    .contact-item {
        min-width: 260px;
        padding: 35px 25px;
    }
    
    .contact-icon {
        font-size: 55px;
    }
    
    .contact-item h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-info {
        flex-direction: column;  /* 平板及以下改为垂直布局 */
        gap: 25px;
        padding: 0 20px;
    }
    
    .contact-item {
        max-width: 100%;
        min-width: auto;
        padding: 30px 25px;
    }
    
    .contact-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .contact-item h3 {
        font-size: 18px;
    }
    
    .contact-item p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 25px 20px;
    }
    
    .contact-icon {
        font-size: 45px;
    }
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #fff;
}

/* 页脚品牌区与Logo */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 在深色背景上更清晰 */
}

.footer-company-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: #bbb;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    color: #bbb;
}

.footer-section ul li a {
    color: #bbb;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
}

/* Footer social icons */
.social-links {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: #0d47a1; /* 深蓝色胶囊背景 */
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    margin-top: 12px;
}

.social-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .social-links {
        margin-top: 10px;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) and (min-width: 769px) {
    .slide-title {
        font-size: 48px;
    }
    
    .slide-subtitle {
        font-size: 22px;
    }
    
    /* 平板端轮播图按钮调整 */
    .slide-btn-top-right {
        top: 100px;
        right: 30px;
        padding: 12px 26px;
        font-size: 15px;
        border-radius: 25px;
    }
    
    .slider-controls button {
        width: 50px;
        height: 50px;
    }
    
    /* 平板端服务卡片优化 */
    .services-grid {
        gap: 0;
        padding: 0;
        max-width: 100%;
    }
    
    .service-card {
        flex: 0 0 220px; /* 从160px改为220px，与桌面版280px成比例 */
        height: 400px;
        padding: 40px 20px;
    }
    
    .service-card.active {
        flex: 0 0 480px; /* 从420px改为480px，保持比例 */
    }
    
    .service-icon {
        font-size: 55px;
    }
    
    .service-card.active .service-icon {
        font-size: 80px;
    }
    
    .service-card h3 {
        font-size: 16px;
    }
    
    .service-card.active h3 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    /* Logo 移动端样式 */
    .logo {
        flex: 0 0 auto;
        max-width: 45%; /* 限制logo最大宽度为45%，为右侧元素留空间 */
    }
    
    .logo-image {
        height: 35px;
        max-width: 100%; /* 改为100%以适应父容器限制 */
    }
    
    .logo h1 {
        font-size: 18px; /* 稍微减小字体 */
        white-space: nowrap; /* 不换行 */
        overflow: hidden; /* 超出隐藏 */
        text-overflow: ellipsis; /* 显示省略号 */
    }
    
    .nav-wrapper {
        height: 60px; /* 移动端导航栏高度增加以容纳语言切换器 */
        position: relative; /* 为绝对定位的子元素提供参照 */
        display: flex; /* 使用flex布局 */
        justify-content: space-between; /* 两端对齐 */
        align-items: center; /* 垂直居中 */
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(30, 30, 45, 0.98); /* 深色半透明背景 */
        backdrop-filter: blur(10px); /* 背景模糊效果 */
        -webkit-backdrop-filter: blur(10px); /* Safari支持 */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        z-index: 999;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 白色半透明分割线 */
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 30px;
        color: #ffffff !important; /* 白色文字，!important确保覆盖滚动样式 */
        font-size: 16px;
        font-weight: 500; /* 稍微加粗，提升可读性 */
        text-align: left;
        transition: all 0.3s ease;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* 文字阴影，增强对比度 */
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: #fff !important;
        transform: translateX(5px); /* 悬停时轻微右移 */
    }
    
    /* 移动端菜单：覆盖桌面端的scrolled样式 */
    .header.scrolled .nav-menu a {
        color: #ffffff !important; /* 移动端始终保持白色文字 */
    }
    
    .header.scrolled .nav-menu a:hover,
    .header.scrolled .nav-menu a.active {
        color: #fff !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1000;
        flex-shrink: 0; /* 防止汉堡按钮被压缩 */
        order: 2; /* 排在语言切换器之后 */
    }
    
    /* 菜单打开时的汉堡图标动画 */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* 移动端菜单遮罩层 */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5); /* 半透明黑色遮罩 */
        z-index: 998; /* 在菜单下方，在页面内容上方 */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px); /* 背景模糊效果 */
        -webkit-backdrop-filter: blur(5px); /* Safari支持 */
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 移动端：创建右侧按钮组容器 */
    .nav-wrapper > :not(.logo):not(.nav-menu) {
        display: flex;
        align-items: center;
        gap: 8px; /* 语言切换器和汉堡按钮之间的间距 */
        margin-left: auto; /* 推到最右侧 */
    }
    
    /* 移动端语言切换器 */
    .lang-switcher {
        display: flex;
        align-items: center;
        gap: 3px; /* 按钮之间的间距 */
        order: 1; /* 排在汉堡按钮之前 */
    }
    
    .lang-switcher button {
        padding: 4px 6px; /* 稍微增加一点，提升可点击性 */
        font-size: 11px; /* 稍微增大，提升可读性 */
        background: rgba(255, 255, 255, 0.25);
        border-radius: 4px;
        height: 24px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        min-width: 32px; /* 确保最小宽度 */
        transition: all 0.2s ease;
    }
    
    .lang-switcher button:hover {
        background: rgba(255, 255, 255, 0.35);
        transform: scale(1.05);
    }
    
    .lang-switcher button.active {
        background: rgba(255, 255, 255, 0.5);
        font-weight: 600;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .hero-slider {
        height: 80vh;
        min-height: 500px;
    }
    
    .slide-title {
        font-size: 32px;
        letter-spacing: 0;
    }
    
    .slide-subtitle {
        font-size: 18px;
    }
    
    /* 移动端轮播图按钮调整 */
    .slide-btn-top-right {
        top: 80px; /* 移动端导航栏下方 */
        right: 15px;
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .slider-controls button {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
    
    .slider-dots {
        bottom: 25px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
    
    .dot.active {
        width: 24px;
    }
    
    .section-header {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .section-header h2 {
        font-size: 28px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 16px;
        line-height: 1.6;
        color: #666;
    }
    
    .services-grid,
    .features-grid,
    .cases-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端服务卡片优化 - 改为垂直堆叠 */
    .services-grid {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }
    
    .service-card {
        padding: 40px 25px;
        height: 280px;
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        opacity: 0.92;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    }
    
    .service-card:first-child {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.6);
    }
    
    .service-card.active {
        opacity: 1;
        height: 400px;
        flex: 1 1 auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    }
    
    .service-icon {
        font-size: 55px;
        width: 100px;
        height: 100px;
        max-width: 100px;
        max-height: 100px;
    }
    
    .service-card.active .service-icon {
        font-size: 90px;
        width: 180px;
        height: 180px;
        max-width: 180px;
        max-height: 180px;
    }
    
    /* 移动端按钮样式调整 - 更小巧 */
    .service-link-btn {
        top: 12px;
        right: 12px;
        padding: 5px 12px;
        font-size: 10px;
        border-radius: 12px;
        border-width: 1px;
    }
    
    .service-card h3 {
        font-size: 17px;
    }
    
    .service-card.active h3 {
        font-size: 24px;
    }
    
    .service-description {
        font-size: 13px;
        padding: 0 10px;
    }
    
    /* 品牌滚动移动端优化 */
    .brands-scroll-wrapper {
        margin-bottom: 15px;
    }
    
    .brands-scroll-left {
        animation: scroll-brands-left 40s linear infinite;
    }
    
    .brands-scroll-right {
        animation: scroll-brands-right 40s linear infinite;
    }
    
    .brands-scroll-track {
        gap: 40px;
    }
    
    .brand-item {
        min-width: 120px;
        height: 60px;
        padding: 10px 15px;
    }
    
    .brand-item .brand-logo {
        max-width: 90px;
        max-height: 40px;
    }
    
    .brands-scroll-container::before,
    .brands-scroll-container::after {
        width: 50px;
    }
}

/* 回到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* 移动端全局修复 */
@media (max-width: 768px) {
    /* 确保所有元素不超过视口宽度 */
    * {
        max-width: 100vw;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    /* 确保所有section不溢出 */
    section, .fullpage-section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        min-height: auto; /* 移动端取消100vh限制，使用自适应高度 */
        padding: 40px 0; /* 添加适当的上下padding */
    }
    
    /* 轮播图section保持全屏 */
    .hero-slider.fullpage-section {
        min-height: 100vh;
        padding: 0;
    }
    
    /* 核心服务section */
    .core-services.fullpage-section {
        padding: 50px 0;
    }
    
    /* 社会责任section */
    .social-responsibility.fullpage-section {
        padding: 50px 0;
    }
    
    /* 案例展示section */
    .cases.fullpage-section {
        padding: 50px 0;
    }
    
    /* 关于我们section */
    .about-us.fullpage-section {
        padding: 50px 0;
    }
    
    /* 服务的品牌section */
    .brands.fullpage-section {
        padding: 50px 0;
    }
    
    /* 联系我们section */
    .contact.fullpage-section {
        padding: 50px 0;
    }
    
    /* 防止图片溢出 */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* 小屏手机优化 (480px以下) */
@media (max-width: 480px) {
    /* 进一步缩小section间距 */
    section, .fullpage-section {
        padding: 30px 0; /* 进一步减小上下padding */
    }
    
    /* 核心服务section */
    .core-services.fullpage-section {
        padding: 40px 0;
    }
    
    /* 社会责任section */
    .social-responsibility.fullpage-section {
        padding: 40px 0;
    }
    
    /* 案例展示section */
    .cases.fullpage-section {
        padding: 40px 0;
    }
    
    /* 关于我们section */
    .about-us.fullpage-section {
        padding: 40px 0;
    }
    
    /* 服务的品牌section */
    .brands.fullpage-section {
        padding: 40px 0;
    }
    
    /* 联系我们section */
    .contact.fullpage-section {
        padding: 40px 0;
    }
    
    /* 标题区域优化 */
    .section-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 24px;
        margin-bottom: 10px;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .section-header p {
        font-size: 14px;
        line-height: 1.5;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    /* 品牌区域优化 */
    .brands {
        padding: 60px 0;
    }
    
    .brands-scroll-container {
        margin-top: 30px;
    }
    
    .brands-scroll-track {
        gap: 30px;
    }
    
    .brand-item {
        min-width: 100px;
        height: 50px;
        padding: 8px 12px;
    }
    
    .brand-item .brand-logo {
        max-width: 80px;
        max-height: 35px;
    }
    
    .brand-name {
        font-size: 12px;
    }
    
    .brands-scroll-container::before,
    .brands-scroll-container::after {
        width: 30px;
    }
    
    /* 加快移动端动画速度 */
    .brands-scroll-left {
        animation: scroll-brands-left 30s linear infinite;
    }
    
    .brands-scroll-right {
        animation: scroll-brands-right 30s linear infinite;
    }
}
