/* 这是一个CSS注释，设置页面背景和文字颜色 */
/* ============================== */
/* 导航栏样式 - 完全替换原有样式 */
/* ============================== */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --light: #f8f9fa;
    --dark: #333333;
    --gray: #6c757d;
    --border-color: #eaeaea;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

/* ========== 导航栏样式 ========== */
/* 透明导航栏效果 - 基于你的现有样式修改 */
/* 导航栏样式 - 带毛玻璃效果 */
.navbar {
    background: rgba(255, 255, 255, 0.1); /* 半透明白色 */
    backdrop-filter: blur(10px); /* 毛玻璃模糊效果 */
    -webkit-backdrop-filter: blur(10px); /* Safari支持 */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 优雅边框 */
}

/* 滚动时效果增强 */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95); /* 更不透明 */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 导航链接颜色 - 确保在毛玻璃上清晰 */
.navbar a {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar.scrolled a {
    color: #303030 !important;
    text-shadow: none;
}

/* Logo颜色 */
.navbar .logo {
    color: white !important;
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .logo {
    color: var(--primary) !important;
    text-shadow: none;
}

/* 可选：给链接添加背景增强 */
.navbar a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

/* Logo颜色控制 */
.navbar .logo {
    color: rgb(255, 255, 255) !important;
    font-weight: 700;
}

.navbar.scrolled .logo {
    color: var(--primary) !important; /* 滚动后使用主题色 */
}

/* Hero区域调整 - 给固定导航栏留出空间 */
.hero {
    position: relative;
    padding-top: 10px; /* 给导航栏留出空间 */
    padding-bottom: 100px;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 0 !important; /* 强制去掉任何上边距 */
}

/* 视频容器 - 关键修改：从最顶部开始 */
/* 强制视频全屏覆盖，顶距为0 */
.video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.video-background video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

/* 如果还有间距，重置body和html */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* 遮罩层也需要覆盖全屏 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* 根据你的视频亮度调整 */
    z-index: 1;
}

/* 替换原有的 .nav-container 或 .container.nav-container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    height: 100%;
}

/* 替换原有的 .logo 样式 */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

/* 替换原有的 logo img 样式 */
.logo-img {
    height: 60px; /* Logo与导航栏等高 */
    width: auto;  /* 自动宽度保持比例 */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* 完全替换原有的 .nav-menu 样式 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

/* 移除原有的 .nav-menu li 样式 */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 替换原有的 .nav-link 样式 */
.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* ========== 下拉菜单毛玻璃效果 ========== */

/* 导航项容器 */
.nav-item.dropdown {
    position: relative;
}

/* 下拉菜单基础样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.15); /* 透明背景 */
    backdrop-filter: blur(20px) saturate(180%); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(20px) saturate(180%); /* Safari支持 */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2); /* 玻璃边框 */
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    list-style: none;
    margin-top: 10px; /* 与主菜单间距 */
}

/* 下拉菜单显示效果 */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单项样式 */
.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: white !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

/* 下拉菜单项悬停效果 */
.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-left: 3px solid var(--primary);
    padding-left: 28px;
    color: white !important;
}

/* 下拉箭头动画 */
.dropdown-arrow {
    margin-left: 6px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.15);
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
        border-radius: 8px;
    }
    
    .nav-item.dropdown:hover .dropdown-menu {
        max-height: 400px;
    }
    
    .dropdown-menu a {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ============================== */
/* 导航栏操作区域（语言切换等） */
/* ============================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 10px;
}

/* ====================== */
/* 语言切换按钮优化（保持一致性） */
/* ====================== */

/* 语言切换器容器 */
.language-switcher {
    display: flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 24px;
    padding: 4px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    min-width: 120px; /* 固定最小宽度 */
    justify-content: center;
}

/* 语言按钮基础样式 */
.language-btn {
    background: transparent;
    border: none;
    padding: 8px 20px; /* 固定内边距 */
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    flex: 1; /* 等分宽度 */
    text-align: center;
    min-width: 60px; /* 固定最小宽度 */
    white-space: nowrap; /* 防止文字换行 */
}

/* 激活状态 */
.language-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

/* 分隔线 */
.language-divider {
    color: rgba(102, 126, 234, 0.3);
    font-size: 12px;
    padding: 0 2px;
    user-select: none;
}

/* 悬停效果 */
.language-btn:hover:not(.active) {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* 英文版按钮优化 */
body.lang-en .language-btn[data-lang="en"] {
    /* 确保英文按钮宽度合适 */
    min-width: 65px;
}

body.lang-en .language-btn[data-lang="zh"] {
    /* 确保中文按钮宽度一致 */
    min-width: 65px;
}

/* 点击效果（避免变形） */
.language-btn:active {
    transform: scale(0.98); /* 轻微缩放，不改变布局 */
    transition: transform 0.1s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-switcher {
        min-width: 110px;
        padding: 3px;
    }
    
    .language-btn {
        padding: 7px 16px;
        font-size: 13px;
        min-width: 55px;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        min-width: 100px;
    }
    
    .language-btn {
        padding: 6px 14px;
        font-size: 12px;
        min-width: 50px;
    }
}

/* 搜索按钮样式（可选） */
.search-btn {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(102, 126, 234, 0.05);
    color: var(--primary);
}

/* 汉堡菜单按钮（移动端） */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(102, 126, 234, 0.05);
    color: var(--primary);
}

/* ============================== */
/* 响应式设计 */
/* ============================== */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .dropdown-menu {
        min-width: 140px;
    }
    
    .language-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .nav-actions {
        gap: 10px;
    }
}

/* 横屏模式适配 */
@media (orientation: landscape) and (max-height: 500px) {
    .navbar {
        height: 50px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav-menu {
        gap: 3px;
    }
    
    .nav-link {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .dropdown-menu {
        min-width: 120px;
    }
    
    .dropdown-menu a {
        padding: 8px 12px;
        font-size: 10px;
    }
    
    .language-switcher {
        min-width: 100px;
        padding: 2px;
    }
    
    .language-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* ============================== */
/* 核心优势部分样式 */
/* ============================== */
.core-advantages {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.core-advantages .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.advantage-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #667eea;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    background-color: #667eea;
    color: white;
    transform: scale(1.1);
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}

.advantage-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #718096;
    margin: 0;
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    
    .logo-img {
        height: 40px; /* 移动端稍微调小 */
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    /* 桌面端菜单在移动端隐藏 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        gap: 0;
        height: auto;
        z-index: 999;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0 0 12px 12px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        height: auto;
        margin: 5px 0;
    }
    
    .nav-link {
        padding: 12px 15px;
        width: 100%;
        justify-content: space-between;
        color: white !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 10px 0;
        margin-top: 5px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        max-height: 300px;
        overflow-y: auto;
    }
    
    .dropdown-menu a {
        color: white !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        padding: 8px 20px !important;
        font-size: 14px !important;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-left: 3px solid var(--primary) !important;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-actions {
        margin-left: auto;
    }
    
    .language-switcher {
        padding: 3px;
    }
    
    .hamburger-menu {
        display: block;
        margin-left: 15px;
        color: white;
    }
    
    .navbar.scrolled .hamburger-menu {
        color: var(--dark);
    }
}

/* 移动端下拉菜单箭头旋转 */
@media (max-width: 768px) {
    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
}

body {
    background-color: #f0f0f0;
    color: #333;
    font-family: sans-serif;
    text-align: center;
    padding: 2rem;
}

h1 {
    color: #0056b3;
}

button {
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}
/* 方案B：图文卡片样式 */
.intro-with-image {
    padding: 80px 20px;
    background-color: white;
}
.intro-with-image .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}
.intro-with-image .intro-content {
    flex: 1;
}
.intro-with-image .intro-image {
    flex: 1;
}
.intro-with-image .intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
/* 响应式：小屏幕时竖着排列 */
@media (max-width: 768px) {
    .intro-with-image .container {
        flex-direction: column;
    }
}

/* ============================== */
/* 服务区域样式 */
/* ============================== */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
}

.section-title p {
    color: #666;
    font-size: 1.1em;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* ============================== */
/* 服务网格布局 */
/* ============================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ============================== */
/* 服务卡片统一样式 */
/* ============================== */
.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 420px; /* 增加一点高度给按钮空间 */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 卡片内容区域 */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
    align-items: center; /* 添加这行：水平居中 */
    text-align: center; 
}

.card-content h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.3em;
    font-weight: 600;
    transition: color 0.3s ease;
    text-align: center; /* 确保标题也居中 */
    width: 100%; /* 让标题占满宽度 */
}

.card-content > p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
    text-align: center; /* 描述文字也居中 */
    width: 100%; /* 让描述占满宽度 */
}

/* ============================== */
/* 服务区域样式（替换原有样式） */
/* ============================== */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
}

.section-title p {
    color: #666;
    font-size: 1.1em;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* ============================== */
/* 服务网格布局 */
/* ============================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ============================== */
/* 服务卡片统一样式（替换原有所有卡片样式） */
/* ============================== */
.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 图片容器 */
.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

/* 默认显示的图片 */
.card-image .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

/* 悬停文字层 */
.card-image .hover-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* 不同卡片的悬停背景色 */
.service-card:nth-child(1) .hover-text-overlay {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
}

.service-card:nth-child(2) .hover-text-overlay {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.95) 0%, rgba(56, 161, 105, 0.95) 100%);
}

.service-card:nth-child(3) .hover-text-overlay {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.95) 0%, rgba(240, 147, 251, 0.95) 100%);
}

/* 悬停文字样式 */
.hover-text-overlay h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hover-text-overlay p {
    font-size: 0.95em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 280px;
}

/* ============================== */
/* 卡片内容区域 */
/* ============================== */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.card-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3em;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-content > p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* ============================== */
/* 了解更多按钮样式 */
/* ============================== */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
    align-self: center; /* 添加这行 */
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.learn-more-btn i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

/* 按钮悬停效果 */
.learn-more-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.learn-more-btn:hover i {
    transform: translateX(4px);
}

.learn-more-btn:hover::before {
    left: 100%;
}

/* 不同卡片按钮颜色变化 */
.service-card:nth-child(1) .learn-more-btn {
    color: #667eea;
    border-color: #667eea;
}

.service-card:nth-child(1) .learn-more-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.service-card:nth-child(2) .learn-more-btn {
    color: #48bb78;
    border-color: #48bb78;
}

.service-card:nth-child(2) .learn-more-btn:hover {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
}

.service-card:nth-child(3) .learn-more-btn {
    color: #f5576c;
    border-color: #f5576c;
}

.service-card:nth-child(3) .learn-more-btn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.3);
}

/* ============================== */
/* 悬停效果 */
/* ============================== */
.service-card:hover .main-image {
    opacity: 0;
    transform: scale(1.1) rotate(2deg);
}

.service-card:hover .hover-text-overlay {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover .card-content h3 {
    color: inherit;
}

/* ============================== */
/* 响应式设计 */
/* ============================== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2em;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .service-card {
        height: 400px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .learn-more-btn {
        padding: 9px 20px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .service-card {
        height: 380px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .hover-text-overlay {
        padding: 20px;
    }
    
    .hover-text-overlay h3 {
        font-size: 1.4em;
    }
    
    .learn-more-btn {
        padding: 8px 18px;
        font-size: 0.85em;
    }
}

/* ====================== */
/* 英文版按钮布局优化 */
/* ====================== */

/* 英文版整体调整 */
body.lang-en .card-content {
    padding-top: 15px !important; /* 减少上边距 */
    padding-bottom: 15px !important;
}

/* 英文版卡片描述文本调整 */
body.lang-en .card-content > p {
    font-size: 0.85em !important; /* 稍微缩小字体 */
    line-height: 1.4 !important; /* 减少行高 */
    margin-bottom: 8px !important; /* 减少下边距 */
    min-height: 50px !important; /* 减少最小高度 */
}

/* 英文版"了解更多"按钮优化 */
body.lang-en .learn-more-btn {
    margin-top: 5px !important; /* 减少上边距，向上移动 */
    margin-bottom: 0 !important;
    padding: 8px 20px !important; /* 调整内边距 */
    font-size: 0.85em !important; /* 稍微缩小字体 */
    min-width: 120px !important; /* 确保最小宽度 */
    height: 36px !important; /* 固定高度 */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important; /* 防止文本换行 */
}

/* 悬停文字层中的描述文字也调整 */
body.lang-en .hover-text-overlay p {
    font-size: 0.8em !important;
    line-height: 1.4 !important;
    padding: 10px 20px !important;
    margin-bottom: 5px !important;
}

/* 卡片整体高度调整 */
body.lang-en .service-card {
    min-height: 420px !important; /* 稍微降低高度 */
    max-height: 430px !important;
}

/* 确保卡片内容区域有足够的弹性空间 */
body.lang-en .card-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

/* 描述文字区域自动填充剩余空间 */
body.lang-en .card-content > p {
    flex: 1 !important;
    min-height: 0 !important; /* 允许缩小 */
    overflow: hidden !important;
}

/* 精致版胶囊按钮 */
.mission-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.05em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.3px;
}

.mission-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mission-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    gap: 15px;
}

.mission-btn:hover::after {
    opacity: 1;
}

.mission-btn i {
    font-size: 0.9em;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mission-btn:hover i {
    transform: translateX(5px);
}

/* ====================== */
/* 合作品牌区域样式 */
/* ====================== */

.cooperate-brands {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    position: relative;
    overflow: hidden;
}

.cooperate-brands .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.cooperate-brands .section-title h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.cooperate-brands .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
}

.cooperate-brands .section-title p {
    color: #666;
    font-size: 1.1em;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* 品牌行容器 */
.brands-row-wrapper {
    position: relative;
    margin: 30px 0;
    overflow: hidden;
    width: 100%;
}

/* 品牌行 */
.brands-row {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 20px 0;
}

/* 向左滚动的行 */
.brands-row-left {
    animation: slideLeft 40s linear infinite;
}

/* 向右滚动的行 */
.brands-row-right {
    animation: slideRight 40s linear infinite;
}

/* 悬停时暂停动画 */
.brands-row-wrapper:hover .brands-row {
    animation-play-state: paused;
}

/* 品牌logo */
.brand-logo {
    width: 180px;
    height: 100px;
    object-fit: contain;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* 动画关键帧 */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* 品牌区域底部 */
.brands-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.brands-footer p {
    color: #666;
    font-size: 1em;
    margin-bottom: 25px;
}

.brands-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.05em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.brands-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    gap: 15px;
}

.brands-cta i {
    transition: transform 0.3s ease;
}

.brands-cta:hover i {
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .brand-logo {
        width: 160px;
        height: 90px;
        padding: 15px;
    }
}

@media (max-width: 992px) {
    .cooperate-brands {
        padding: 60px 0;
    }
    
    .brand-logo {
        width: 140px;
        height: 80px;
        padding: 12px;
    }
    
    .brands-row {
        gap: 20px;
    }
    
    .brands-row-left,
    .brands-row-right {
        animation-duration: 30s;
    }
}

@media (max-width: 768px) {
    .cooperate-brands .section-title h2 {
        font-size: 2em;
    }
    
    .brand-logo {
        width: 120px;
        height: 70px;
        padding: 10px;
    }
    
    .brands-row {
        gap: 15px;
    }
    
    .brands-cta {
        padding: 12px 28px;
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .cooperate-brands {
        padding: 40px 0;
    }
    
    .brand-logo {
        width: 100px;
        height: 60px;
        padding: 8px;
    }
    
    .brands-row {
        gap: 12px;
    }
    
    .brands-row-left,
    .brands-row-right {
        animation-duration: 25s;
    }
    
    .brands-cta {
        padding: 10px 24px;
        font-size: 0.95em;
    }
}
/* ====================== */
/* 合作品牌区域样式（优化版） */
/* ====================== */

.cooperate-brands {
    padding: 60px 0; /* 减少上下边距 */
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    position: relative;
    overflow: hidden;
}

.cooperate-brands .section-title {
    text-align: center;
    margin-bottom: 40px; /* 减少标题下边距 */
}

.cooperate-brands .section-title h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.cooperate-brands .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
}

.cooperate-brands .section-title p {
    color: #666;
    font-size: 1.1em;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* 品牌行容器 */
.brands-row-wrapper {
    position: relative;
    margin: 10px 0; /* 两排间距减少到原来的1/3（原来是30px） */
    overflow: hidden;
    width: 100%;
}

/* 品牌行 */
.brands-row {
    display: flex;
    width: max-content;
    padding: 15px 0; /* 减少内边距 */
}

/* 关键修复：品牌logo之间的间距 */
.brand-logo {
    width: 180px;
    height: 100px;
    object-fit: contain;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 15px; /* 改用margin控制间距，保持一致性 */
}

/* 移除最后一个logo的右边距 */
.brand-logo:last-child {
    margin-right: 0;
}

.brand-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* 向左滚动的行 */
.brands-row-left {
    animation: slideLeft 40s linear infinite;
}

/* 向右滚动的行 */
.brands-row-right {
    animation: slideRight 40s linear infinite;
}

/* 悬停时暂停动画 */
.brands-row-wrapper:hover .brands-row {
    animation-play-state: paused;
}

/* 动画关键帧 */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* 品牌区域底部 */
.brands-footer {
    text-align: center;
    margin-top: 40px; /* 减少上边距 */
    padding-top: 25px; /* 减少内边距 */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.brands-footer p {
    color: #666;
    font-size: 1em;
    margin-bottom: 20px; /* 减少下边距 */
}

.brands-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.05em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.brands-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    gap: 15px;
}

.brands-cta i {
    transition: transform 0.3s ease;
}

.brands-cta:hover i {
    transform: scale(1.2);
}
/* ==================== */
/* Footer 底部版权区域 */
/* ==================== */

.footer-container {
    padding: 20px;
    text-align: center;
    /* 背景颜色 - 根据需要设置或删除这一行使用默认背景 */
    /* background-color: inherit; */
}

.footer-copyright {
    margin: 0 0 15px 0;
    color: #a0aec0;
    font-size: 14px;
}

.footer-links {
    margin: 0;
    color: #718096;
    font-size: 13px;
}

.footer-link {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4299e1;
    text-decoration: underline;
}

.footer-separator {
    margin: 0 8px;
    color: #cbd5e0;
}

/* Footer响应式设计 */
@media (max-width: 768px) {
    .footer-container {
        padding: 15px;
    }
    
    .footer-copyright {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .footer-links {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        padding: 10px;
    }
    
    .footer-copyright {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .footer-links {
        font-size: 11px;
    }
    
    .footer-separator {
        margin: 0 6px;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .brand-logo {
        width: 160px;
        height: 90px;
        padding: 15px;
        margin: 0 12px; /* 响应式调整间距 */
    }
}

@media (max-width: 992px) {
    .cooperate-brands {
        padding: 50px 0;
    }
    
    .brand-logo {
        width: 140px;
        height: 80px;
        padding: 12px;
        margin: 0 10px;
    }
    
    .brands-row-wrapper {
        margin: 8px 0; /* 移动端进一步减少间距 */
    }
    
    .brands-row-left,
    .brands-row-right {
        animation-duration: 30s;
    }
}

@media (max-width: 768px) {
    .cooperate-brands .section-title h2 {
        font-size: 2em;
    }
    
    .brand-logo {
        width: 120px;
        height: 70px;
        padding: 10px;
        margin: 0 8px;
    }
    
    .brands-row-wrapper {
        margin: 6px 0;
    }
    
    .brands-cta {
        padding: 12px 28px;
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .cooperate-brands {
        padding: 40px 0;
    }
    
    .brand-logo {
        width: 100px;
        height: 60px;
        padding: 8px;
        margin: 0 6px;
    }
    
    .brands-row-wrapper {
        margin: 5px 0;
    }
    
    .brands-row-left,
    .brands-row-right {
        animation-duration: 25s;
    }
    
    .brands-cta {
        padding: 10px 24px;
        font-size: 0.95em;
    }
}
/* Hero 区域 - 视频背景版本 */
.hero {
    position: relative;
    padding: 160px 0 100px;
    margin-top: 60px;
    text-align: center;
    overflow: hidden;
    min-height: 80vh; /* 确保足够高度显示视频 */
    display: flex;
    align-items: center;
}

/* 视频容器 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* 视频本身 */
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 关键：保持视频覆盖整个区域 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 视频遮罩（提升文字可读性） */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(240, 249, 255, 0.85) 0%, 
        rgba(224, 242, 254, 0.85) 100%);
    z-index: 1;
}

/* 内容容器 */
.hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    border-radius: 2px;
}

.hero p {
    font-size: 1.25rem;
    color: white;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-weight: 500;
    /* 渐变边框毛玻璃 */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* 渐变边框效果 */
.hero p::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(96, 165, 250, 0.3), 
        rgba(167, 139, 250, 0.3), 
        rgba(244, 114, 182, 0.3));
    border-radius: 21px;
    z-index: -1;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 团队介绍样式 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2rem;
}

.team-position {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
}

.team-description {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* 联系我们样式 */
.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: none;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(102, 126, 234, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.contact-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.contact-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.contact-details h3 {
    margin: 0;
    color: #333;
    font-size: 1rem;
    white-space: nowrap;
}

.contact-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    flex-grow: 1;
}

/* 地址项特殊处理 */
.contact-item:last-child .contact-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
}

.contact-item:last-child .contact-details h3 {
    white-space: normal;
}

.contact-item:last-child .contact-details p {
    width: 100%;
}

.contact-details a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    min-width: 300px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    .hero p {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    /* 移动端减小视频文件大小 */
    .video-background video {
        display: none; /* 可以隐藏视频，用图片代替 */
    }
    
    .video-background {
        background: url('../images/hero-mobile.jpg') center/cover no-repeat;
    }
    
    /* 团队介绍移动端适配 */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .team-image {
        height: 200px;
    }
    
    .team-info {
        padding: 15px;
    }
    
    .team-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 联系我们移动端适配 */
    .contact-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info {
        gap: 15px;
    }
    
    .contact-item {
        padding: 12px 15px;
        gap: 10px;
        align-items: center;
    }
    
    .contact-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .contact-details {
        gap: 8px;
    }
    
    .contact-details h3 {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .contact-details p {
        font-size: 0.8rem;
        flex-grow: 1;
    }
    
    /* 移动端地址项特殊处理 */
    .contact-item:last-child .contact-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* 小屏幕移动端适配 */
@media (max-width: 480px) {
    .team-image {
        height: 180px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .contact-details {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .contact-details h3 {
        white-space: normal;
    }
    
    .contact-details p {
        text-align: center;
    }
}

/* 网站开发页面样式 */
.service-overview {
    padding: 80px 0;
    background: white;
}

.service-overview .overview-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.service-overview .overview-text {
    flex: 1;
}

.service-overview .overview-image {
    flex: 1;
}

.service-overview .overview-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 服务流程样式 */
.service-process {
    padding: 80px 0;
    background: #f8f9fa;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.process-step p {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.process-step h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
}

.process-step p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 技术栈样式 */
.tech-stack {
    padding: 80px 0;
    background: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-category {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.tech-category h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    margin: 10px 0;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* 使命与愿景样式优化 */
.mission-vision {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.mission-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(102, 126, 234, 0.1)" stroke-width="1"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 0;
}

.mission-vision .container {
    position: relative;
    z-index: 1;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.mission-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.mission-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.mission-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.mission-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.mission-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.mission-card:hover h3::after {
    width: 80px;
}

.mission-card p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* 发展历程样式优化 */
.company-history {
    padding: 80px 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: white;
    border: 4px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-year {
    transform: translateX(-50%) scale(1.1);
    border-color: #764ba2;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    width: calc(50% - 70px);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -10px;
    border-left: none;
    border-top: none;
}

.timeline-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.timeline-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.timeline-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .mission-vision-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .timeline-year {
        left: 30px;
        width: 80px;
        height: 80px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 0;
    }
    
    .timeline-content::before {
        left: -10px !important;
        border-right: none !important;
        border-bottom: none !important;
    }
}

@media (max-width: 768px) {
    .mission-vision {
        padding: 60px 0;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .mission-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .mission-card h3 {
        font-size: 1.2rem;
    }
    
    .company-history {
        padding: 60px 0;
    }
    
    .timeline {
        margin-top: 40px;
    }
    
    .timeline-item {
        padding-left: 70px;
        margin-bottom: 40px;
    }
    
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .mission-vision-grid {
        gap: 20px;
    }
    
    .mission-card {
        padding: 25px 15px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .mission-card h3 {
        font-size: 1.1rem;
    }
    
    .mission-card p {
        font-size: 0.9rem;
    }
    
    .timeline-item {
        padding-left: 60px;
        margin-bottom: 30px;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
}

.tech-list li i {
    color: #667eea;
    margin-right: 10px;
    font-size: 14px;
}

/* 案例展示样式 */
.case-studies {
    padding: 80px 0;
    background: #f8f9fa;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-img {
    transform: scale(1.05);
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
}

.case-info p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .service-overview {
        padding: 60px 0;
    }
    
    .service-overview .overview-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-process {
        padding: 60px 0;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .tech-stack {
        padding: 60px 0;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .case-studies {
        padding: 60px 0;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
}
