/* 通用样式 */
html {
  overflow-x: hidden; /* 防止水平滚动 */
}

body { 
  margin: 0; 
  font-family: 'Roboto', sans-serif; 
  color: #333;
  overflow-x: hidden; /* 防止水平滚动 */
  width: 100%;
}
.container { max-width: 1600px; margin: 0 auto; padding: 0 20px; }
.cta-btn { background: green; color: white; border: none; padding: 10px 20px; cursor: pointer; font-size: 1rem; }
@media (min-width: 1920px) { .cta-btn { padding: 12px 24px; font-size: 1.2rem; } }
@media (max-width: 480px) { .cta-btn { padding: 8px 16px; font-size: 0.9rem; } }

/* ===== 导航条基础 ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

/* 初始状态：透明，融入背景 */
#header.transparent {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* 滚动后：半透明 + 毛玻璃质感 */
#header.glass {
  background-color: rgba(255, 255, 255, 0.15); /* 更微妙的半透明 */
  backdrop-filter: blur(30px) saturate(180%);  /* 更强的毛玻璃效果 */
  -webkit-backdrop-filter: blur(30px) saturate(180%); /* Safari 兼容 */
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);     /* 更柔和的阴影 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 细微边框增强质感 */
}

/* 导航文字颜色 - 基于背景颜色动态调整 */
/* 深色背景时使用白色文字 */
#header.dark-bg .nav-menu a,
#header.dark-bg .logo {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* 增加文字阴影提高可读性 */
}

/* 浅色背景时使用深色文字 */
#header.light-bg .nav-menu a,
#header.light-bg .logo {
  color: rgba(51, 51, 51, 0.9) !important;
  text-shadow: none;
}

/* 保留原有的透明和毛玻璃状态的样式作为备用 */
#header.transparent .nav-menu a,
#header.transparent .logo {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#header.glass .nav-menu a,
#header.glass .logo {
  color: rgba(51, 51, 51, 0.9) !important;
  text-shadow: none;
}

/* CTA 按钮特殊处理 */
#header .cta-btn {
  background: transparent;
  border: 2px solid currentColor;
  padding: 10px 24px;
  border-radius: 8px; /* <<-- 圆角长方形 */
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap; /* 防止文字换行 */
  margin-left: 20px; /* 与导航菜单保持距离 */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CTA按钮颜色 - 基于背景颜色动态调整 */
/* 深色背景时的CTA按钮 */
#header.dark-bg .cta-btn {
  color: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

#header.dark-bg .cta-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* 浅色背景时的CTA按钮 */
#header.light-bg .cta-btn {
  color: rgba(51, 51, 51, 0.9) !important;
  border-color: rgba(51, 51, 51, 0.6);
  background: rgba(51, 51, 51, 0.05);
}

#header.light-bg .cta-btn:hover {
  background: rgba(51, 51, 51, 0.9);
  color: #fff !important;
  border-color: rgba(51, 51, 51, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}

/* 保留原有的透明和毛玻璃状态样式作为备用 */
#header.transparent .cta-btn {
  color: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

#header.transparent .cta-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

#header.glass .cta-btn {
  color: rgba(51, 51, 51, 0.9) !important;
  border-color: rgba(51, 51, 51, 0.6);
  background: rgba(51, 51, 51, 0.05);
}

#header.glass .cta-btn:hover {
  background: rgba(51, 51, 51, 0.9);
  color: #fff !important;
  border-color: rgba(51, 51, 51, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}

.navbar { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    height: 100%;
    gap: 20px; /* 子元素之间的间距 */
}

.logo { 
    display: flex;
    align-items: center;
    text-decoration: none; 
    transition: all 0.3s ease;
    height: 40px; /* 固定高度确保一致性 */
}
.logo:hover { transform: scale(1.05); }

.logo-img {
    height: 40px; /* 固定高度 */
    width: auto; /* 保持宽高比 */
    max-width: 180px; /* 限制最大宽度 */
    transition: all 0.3s ease;
}

/* 深色背景时的logo样式 */
#header.dark-bg .logo-img {
    filter: brightness(0) invert(1); /* 将黑色logo变为白色 */
}

#header.transparent .logo-img {
    filter: brightness(0) invert(1); /* 透明背景时也使用白色logo */
}

/* 浅色背景时的logo样式 */
#header.light-bg .logo-img {
    filter: none; /* 保持原始黑色 */
}

#header.glass .logo-img {
    filter: none; /* 毛玻璃效果时保持原始黑色 */
}

.nav-menu { 
    display: flex; 
    gap: 30px; 
    align-items: center;
    flex: 1; /* 占据中间空间 */
    justify-content: center; /* 导航链接居中 */
}

.nav-link { 
    position: relative; 
    text-decoration: none; 
    font-size: 1rem; 
    font-weight: 500; 
    transition: all 0.3s ease; 
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active { 
    transform: translateY(-2px);
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 0; 
    height: 2px; 
    background: currentColor; 
    transition: width 0.3s ease; 
    border-radius: 1px;
}
.nav-link:hover::after, .nav-link.active::after { 
    width: 100%; 
}

/* 移除汉堡菜单 */

/* 响应式设计 */
@media (min-width: 1920px) { 
    .nav-link { font-size: 1.1rem; }
    #header .cta-btn { padding: 12px 28px; font-size: 1rem; }
}

/* 平板端 */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    .nav-link {
        font-size: 0.9rem;
    }
    #header .cta-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* 移动端 - 保持横向布局，隐藏部分导航链接 */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 35px;
        max-width: 140px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        display: none; /* 移动端隐藏导航链接 */
    }
    
    /* 移动端只显示CTA按钮 */
    #header .cta-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
        margin-left: auto; /* 推到最右边 */
    }
    
    #header.transparent, #header.glass { 
        height: 60px; 
    }
}

@media (max-width: 480px) { 
    .navbar { 
        padding: 0 12px; 
    }
    
    .logo-img {
        height: 30px;
        max-width: 120px;
    }
    
    #header .cta-btn {
        padding: 7px 16px;
        font-size: 0.85rem;
    }
}

/* Hero */
#hero { 
    position: relative; 
    height: 100vh; 
    width: 100%; 
    overflow: hidden; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-top: -80px; /* 修复顶部白条问题 */
    padding-top: 80px; /* 确保内容不被导航条遮挡 */
}
.hero-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1; 
}
.hero-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    position: absolute; 
    top: 0; 
    left: 0; 
}

/* 桌面端图片 - 默认显示 */
.desktop-image {
    display: block;
}

/* 移动端图片 - 默认隐藏 */
.mobile-image {
    display: none;
}

/* 移动端显示移动端图片，隐藏桌面端图片 */
@media (max-width: 768px) {
    .desktop-image {
        display: none;
    }
    .mobile-image {
        display: block;
    }
}
.hero-content { 
    position: relative; 
    z-index: 2; 
    text-align: center; 
    color: #333; /* 改为深色文字 */
    padding: 20px; 
    max-width: 80%; 
}
.hero-content h1 { 
    font-size: 2.5vw; 
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8); /* 改为白色阴影增强可读性 */
    margin: 0 0 30px 0; /* 增加底部间距 */
}
.hero-content p { 
    font-size: 1.5vw; 
    margin: 0 0 45px 0; /* 增加底部间距 */
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.8); /* 添加白色阴影增强可读性 */
}

/* Hero区域的CTA按钮 - 改为深色样式 */
.hero-content .cta-btn {
    background: rgba(51, 51, 51, 0.9);
    border: 2px solid rgba(51, 51, 51, 0.9);
    color: #ffffff;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content .cta-btn:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-content .cta-btn:active {
    transform: translateY(0);
}
@media (min-width: 1920px) { 
    .hero-content h1 { 
        font-size: 3.2rem; 
        margin-bottom: 35px;
    } 
    .hero-content p { 
        font-size: 2rem; 
        margin-bottom: 50px;
    }
    .hero-content .cta-btn {
        padding: 20px 50px;
        font-size: 1.2rem;
    }
}
@media (max-width: 768px) { 
    .hero-content h1 { 
        font-size: 5vw; /* 从 4.2vw 增加到 5vw */
        margin-bottom: 25px;
    } 
    .hero-content p { 
        font-size: 3vw; /* 从 2.5vw 增加到 3vw */
        margin-bottom: 35px;
    }
    .hero-content .cta-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }
}
@media (max-width: 480px) { 
    .hero-content { max-width: 95%; } 
    .hero-content h1 { 
        font-size: 7vw; /* 从 5vw 增加到 6vw */
        margin-bottom: 20px;
    } 
    .hero-content p { 
        font-size: 4.0vw; /* 从 3vw 增加到 3.5vw */
        margin-bottom: 30px;
    }
    .hero-content .cta-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
        letter-spacing: 0.3px;
    }
}

/* About */
#about { padding: 80px 0; text-align: center; }
#about h1 { 
    font-size: 2.2rem; 
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { font-size: 1.1rem; line-height: 1.8; color: #555; }
@media (min-width: 1920px) { 
    #about h1 { font-size: 2.6rem; }
    .about-content p { font-size: 1.3rem; } 
}
@media (max-width: 768px) { 
    #about h1 { font-size: 1.9rem; }
    .about-content { max-width: 90%; } 
}
@media (max-width: 480px) { 
    #about h1 { font-size: 1.6rem; }
    .about-content p { font-size: 1rem; } 
}

/* ========================================================================= */
/* 服务展示轮播 - 重构为上图下文简约风格 */
/* ========================================================================= */

#services { 
    width: 100%;
    padding: 80px 0; 
    background: #f8f9fa; /* <<-- 满屏灰色背景 */
    position: relative;
    /* 移除 padding-bottom 以便分页器定位更灵活 */
}

#services .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

#services h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #services h2 {
        font-size: 1.7rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    #services h2 {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
}

/* 1. 轮播容器和卡片的基本样式 - 重构 */
.services-swiper {
    position: relative;
    overflow: hidden;
    padding: 0 20px; /* <<-- 添加左右内边距，保持内容不贴边 */
    margin-bottom: 0; /* <<-- 移除间距，由分页器的margin-top控制 */
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch; /* 保持所有slide高度一致 */
}

.swiper-slide {
    height: auto; /* 让Swiper自动计算最高卡片的高度 */
    display: flex; /* 使用flex让内部的service-card可以拉伸 */
}

/* ========================================================================= */
/* 服务卡片样式重塑 - 白色背景、圆角和浮动阴影 */
/* ========================================================================= */

.service-card {
    /* --- 核心修改：重新引入白色背景、圆角和阴影 --- */
    background-color: #ffffff; /* <<-- 纯白色背景 */
    border-radius: 12px; /* <<-- 增加圆角 */
    padding: 0; /* 内部内容由子元素控制，卡片本身无内边距 */
    height: 100%; /* <<-- 关键修改：所有卡片高度一致，占满slide高度 */
    min-height: 450px; /* <<-- 设置最小高度，确保所有卡片至少这么高 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* <<-- 浮动阴影效果 -->> */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06); /* 柔和的初始阴影 */
}

/* <<-- 移除所有主题背景和伪元素装饰 -->> */
.service-card::before, 
.service-card::after,
.service-card.figure-right::after,
.service-card.figure-sm,
.service-card.figure-lg,
.service-card.texture-soft::before,
.service-card.texture-grid::before,
.service-card.texture-noise::before,
.service-card.theme-blue::before,
.service-card.theme-green::before,
.service-card.theme-plum::before,
.service-card.theme-amber::before,
.service-card.theme-teal::before {
    content: none !important; /* 强制移除所有伪元素 */
}

/* 悬停效果调整 - 增强浮动感 */
.service-card:hover {
    transform: translateY(-5px); /* <<-- 增加 Y 轴位移，增强"浮动"感 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* <<-- 悬停时阴影更明显 */
}

/* 新增：图片容器和图片样式 */
.service-image-wrapper {
    width: 100%;
    height: 250px; /* 设定一个固定高度，确保卡片顶部媒体区域一致 */
    overflow: hidden;
    /* 移除这里的圆角，让图片顶满卡片顶部 */
    border-radius: 0; 
    margin-bottom: 0; /* 文本内容单独添加边距 */
    box-shadow: none; /* 移除图片区域阴影 */
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片覆盖容器 */
    transition: transform 0.4s ease;
}

.service-card:hover .service-image-wrapper img {
    transform: scale(1.05); /* 悬停时图片轻微放大 */
}

/* 新增：文本内容区域 */
.service-text-content {
    /* <<-- 新增：包裹文本内容，并添加内边距 -->> */
    padding: 25px 20px;
    flex: 1; /* <<-- 让文本区域自动填充剩余空间，保持卡片底部对齐 */
    display: flex;
    flex-direction: column;
}

/* 移除所有主题背景颜色（因为现在背景为 transparent） */
.service-card.theme-blue,
.service-card.theme-green,
.service-card.theme-amber,
.service-card.theme-plum,
.service-card.theme-teal,
.service-card.theme-gray { 
    --card-bg: transparent; 
}

/* 3. 文本和 CTA 样式 - 调整间距 */
.promo-tag {
    margin-top: 0;
    margin-bottom: 5px; /* 缩小标签与标题的间距 */
    color: #4CAF50; /* 保持品牌强调色 */
}

.promo-title {
    font-size: 1.4rem; /* 略微调小标题字体 */
    font-weight: 700;
    margin: 0 0 10px 0; /* 调整标题上下间距 */
    color: #333;
}

.promo-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1; /* <<-- 让描述文字占据剩余空间 */
}

.cta-button {
    /* 行动号召按钮样式 */
    display: none; /* 按需隐藏 CTA 按钮 */
}

.cta-button:hover {
    background-color: #333;
}

/* 4. 分页指示器独立容器样式 */
.services-pagination-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
    margin-top: 6px; /* <<-- 与卡片区域保持24px距离 */
}

.services-pagination {
    position: relative;
    text-align: center;
    padding: 8px 0; /* <<-- 上下各8px内边距 */
}

.services-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #333;
    opacity: 0.3;
    margin: 0 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.services-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #333;
    transform: scale(1.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .service-card {
        min-height: 400px; /* <<-- 平板端调整最小高度 */
    }
    .service-image-wrapper {
        height: 200px;
    }
}
@media (max-width: 480px) {
    .service-card {
        min-height: 380px; /* <<-- 移动端调整最小高度 */
    }
    .service-image-wrapper {
        height: 160px;
    }
    .promo-title {
        font-size: 1.2rem;
    }
    .promo-desc {
        font-size: 0.95rem;
    }
    .services-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    .services-swiper {
        margin-bottom: 0; /* <<-- 移动端也移除间距 */
    }
    .services-pagination-container {
        margin-top: 20px; /* <<-- 移动端保持20px距离 */
    }
}

/* ------------------------------------- */
/* 🌟 服务流程介绍区域 */
/* ------------------------------------- */

.service-process-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.service-process-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

.service-process-description {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .service-process-intro {
        margin-bottom: 40px;
    }
    
    .service-process-title {
        font-size: 1.7rem;
    }
    
    .service-process-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-process-title {
        font-size: 1.4rem;
    }
    
    .service-process-description {
        font-size: 0.95rem;
    }
}

/* ------------------------------------- */
/* 🌟 服务流程手风琴 (横向布局) - 桌面端优化版 */
/* ------------------------------------- */

.process-steps-accordion {
    /* 核心：Flexbox 实现水平布局 */
    display: flex; 
    width: 100%;
    height: 450px; /* 增加高度以容纳更多内容 */
    max-width: 90%; /* 关键修改：使用百分比，适应更大屏幕，最大到90% */
    margin: 60px auto;
    overflow: hidden; /* 防止内容溢出容器 */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* 增强立体感 */
    border-radius: 16px; /* 更圆润的边角 */
    
    /* 深色渐变背景 - 让玻璃效果更明显 */
    background: linear-gradient(
        135deg,
        rgba(60, 80, 100, 0.95) 0%,
        rgba(80, 100, 120, 0.95) 50%,
        rgba(100, 120, 140, 0.95) 100%
    );
    
    /* 或者使用图片背景（如需要可取消注释） */
    /* background: url('your-image.jpg') center/cover; */
    /* 添加深色遮罩确保玻璃效果可见 */
    position: relative;
}

/* 可选：添加背景纹理层 */
.process-steps-accordion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 3px
        );
    pointer-events: none;
    z-index: 0;
}

/* 限制最大宽度，避免在超大屏幕上过宽 */
@media (min-width: 1920px) {
    .process-steps-accordion {
        max-width: 1800px; /* 超大屏幕最大宽度 */
    }
}

.process-item {
    /* 核心：通过 flex-basis 控制折叠/展开的宽度 */
    flex-basis: 0; /* 默认收起状态，从0开始 */
    flex-grow: 1; /* 关键修复：默认平均分配空间，填满容器 */
    min-width: 180px; /* 关键修改：增加最小宽度，确保标题可读 */
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.3); /* 更柔和的分隔线，使用半透明白色 */
    
    /* 动画过渡：应用于 flex-basis 和所有子元素的样式变化 */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative;
    z-index: 1; /* 确保在纹理层之上 */

    /* 内部布局：将头部和内容区域设置为弹性容器 */
    display: flex;
    flex-direction: column; /* 头部和内容上下堆叠 */
    justify-content: flex-end; /* 将头部推到底部，模仿图2设计 */
    padding: 35px 25px;
}

/* 玻璃模糊效果 - 统一样式 */
.process-item {
    /* 毛玻璃效果核心样式 */
    background: rgba(255, 255, 255, 0.15); /* 半透明白色背景 */
    backdrop-filter: blur(20px) saturate(180%); /* 毛玻璃模糊 */
    -webkit-backdrop-filter: blur(20px) saturate(180%); /* Safari支持 */
    
    /* 边框增强玻璃质感 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* 右边框稍淡 */
    
    /* 阴影增强立体感 */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4); /* 顶部高光 */
}

/* 最后一个项目的右边框 */
.process-item:nth-child(5) {
    border-right: none;
}

/* 为每个步骤设置不同的玻璃色调（可选，轻微色彩区分） */
.process-item:nth-child(1) {
    background: rgba(90, 127, 174, 0.2); /* 蓝色调 */
}

.process-item:nth-child(2) {
    background: rgba(98, 169, 154, 0.2); /* 青绿色调 */
}

.process-item:nth-child(3) {
    background: rgba(215, 161, 86, 0.2); /* 金黄色调 */
}

.process-item:nth-child(4) {
    background: rgba(139, 157, 163, 0.2); /* 灰蓝色调 */
}

.process-item:nth-child(5) {
    background: rgba(188, 201, 206, 0.2); /* 浅灰蓝色调 */
}

/* 激活 (Hover/Click) 状态 - 玻璃效果增强 */
.process-item.is-active {
    flex-basis: 0; /* 从0开始 */
    flex-grow: 3; /* 关键修复：激活时占据3倍空间（相对于其他项目的1） */
    min-width: 450px; /* 确保激活时有足够宽度显示内容 */
    
    /* 增强玻璃效果 */
    background: rgba(255, 255, 255, 0.25) !important; /* 激活时更亮 */
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    
    /* 更明显的边框和阴影 */
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1); /* 外发光效果 */
    z-index: 2; /* 确保激活项在最上层 */
}

/* 添加悬停效果 - 玻璃效果 */
.process-item:hover {
    background: rgba(255, 255, 255, 0.2) !important; /* 悬停时稍亮 */
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    transform: translateY(-3px);
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ------------------- 内部元素样式 ------------------- */

/* 头部样式：数字和标题 */
.process-header {
    display: flex;
    flex-direction: column; /* 确保数字和标题上下堆叠 */
    align-items: flex-start;
    padding-bottom: 25px; /* 增加与内容区域的分隔 */
    position: relative;
}

.process-number {
    font-size: 4rem; /* 增大数字 */
    font-weight: 800; /* 更粗的字体 */
    color: rgba(255, 255, 255, 0.7); /* 半透明白色 */
    margin-bottom: 20px;
    transition: all 0.4s ease;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* 添加文字阴影 */
}

.process-title {
    font-size: 1.5rem; /* 稍微减小标题字体，确保在收起状态可读 */
    font-weight: 700; /* 更粗的字体 */
    margin: 0;
    white-space: normal; /* 允许标题换行 */
    line-height: 1.3; /* 紧凑的行高 */
    transition: all 0.4s ease;
    color: #ffffff; /* 白色 */
    letter-spacing: -0.5px; /* 稍微收紧字间距 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* 添加轻微阴影增强可读性 */
}

/* 激活状态下标题字体放大 */
.process-item.is-active .process-title {
    font-size: 2rem; /* 展开时字体更大 */
}

/* 激活状态下的头部视觉增强 */
.process-item.is-active .process-number,
.process-item:hover .process-number {
    color: rgba(255, 255, 255, 0.95); /* 更亮的白色 */
    transform: scale(1.08);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* 激活状态阴影 */
}

.process-item:hover .process-title {
    transform: translateX(5px); /* 轻微位移增强动感 */
}

/* 指示器样式 */
.process-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4); /* 半透明白色 */
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.process-item.is-active .process-indicator {
    background-color: rgba(255, 255, 255, 0.9); /* 更亮的白色 */
    transform: scale(1.3);
    box-shadow: 0 3px 8px rgba(255, 255, 255, 0.4);
}

/* 详情内容区域 */
.process-content {
    /* 确保内容在折叠时隐藏，在展开时显示 */
    flex-grow: 1; /* 占据剩余空间 */
    padding: 25px 20px 0 20px; /* 添加左右边距 */
    
    /* 核心动画：在横向手风琴中，内容使用 Opacity (透明度) 渐变 */
    opacity: 0;
    transition: all 0.5s ease;
    
    /* 确保内容在折叠时不会干扰布局 */
    visibility: hidden; 
    pointer-events: none;
    transform: translateY(15px);
}

.process-item.is-active .process-content {
    opacity: 1; /* 展开后渐入 */
    transition-delay: 0.3s; /* 增加延迟，等待宽度展开动画完成 */
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.process-content p {
    font-size: 1.1rem; /* 增大字体 */
    line-height: 1.8; /* 增加行高 */
    margin: 0;
    padding: 0 5px; /* 添加左右内边距，防止文字贴边 */
    color: rgba(255, 255, 255, 0.95); /* 白色 */
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.2px; /* 稍微增加字间距 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* 添加轻微阴影增强可读性 */
    word-wrap: break-word; /* 确保长单词换行 */
    overflow-wrap: break-word; /* 防止文字溢出 */
}

/* ------------------- 移动端优化 ------------------- */

@media (max-width: 768px) {
    /* 移动端恢复为竖向布局 */
    .process-steps-accordion {
        flex-direction: column;
        height: auto;
        border-radius: 8px;
        margin: 40px auto;
        max-width: 100%; /* 移动端使用100%宽度 */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        
        /* 移动端也使用深色背景 */
        background: linear-gradient(
            180deg,
            rgba(60, 80, 100, 0.95) 0%,
            rgba(80, 100, 120, 0.95) 100%
        );
    }
    
    /* 1. 修改 .process-item 为 grid 布局 */
    .process-item {
        display: grid;
        /* 定义两行：第一行高度自适应（标题），第二行初始为0（内容）*/
        grid-template-rows: auto 0fr; 
        grid-template-columns: 1fr; /* 单列，占满宽度 */
        transition: grid-template-rows 0.5s ease-in-out;
        
        /* 重置桌面端样式 */
        flex-basis: auto;
        flex-grow: 0;
        min-width: 0; /* 重要：允许收缩 */
        max-width: none; /* 移除最大宽度限制 */
        width: auto; /* 自动宽度 */
        
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 18px 20px; /* item外层padding：上下18px，左右20px */
        box-sizing: border-box;
        
        /* 重置动画和定位 */
        transform: none;
        justify-content: flex-start; /* 重置对齐方式 */
    }
    
    /* 2. 当 .process-item 激活时，展开第二行 - 保持玻璃效果 */
    .process-item.is-active {
        grid-template-rows: auto 1fr;
        
        /* 增强玻璃效果 */
        background: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(25px) saturate(200%);
        -webkit-backdrop-filter: blur(25px) saturate(200%);
        
        /* 增强阴影和边框 */
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.4);
        
        /* 重置桌面端的 flex-grow */
        flex-grow: 0;
    }

    /* 3. .process-content 移动端样式 - 只负责上下间距 */
    .process-content {
        /* 用于 grid 动画的容器 */
        overflow: hidden;
        min-height: 0;
        padding: 15px 0; /* 只设置上下padding，左右使用item的padding */
        box-sizing: border-box;
    }
    
    /* 4. 段落样式 - 移动端不需要额外padding */
    .process-content > p {
       display: block;
       padding: 0; /* 移除额外padding，使用容器的边距 */
       margin: 0;
       box-sizing: border-box;
       
       /* 文字换行的完整方案 */
       overflow-wrap: break-word;
       word-wrap: break-word;
       word-break: break-word;
       white-space: normal; /* 正常换行 */
       
       font-size: 0.95rem;
       line-height: 1.6;
       color: rgba(255, 255, 255, 0.95); /* 白色 */
       text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    /* 5. 标题区域 */
    .process-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px; /* 使用 gap 代替 margin */
        padding: 0;
    }
    
    .process-number {
        font-size: 1.4rem;
        margin: 0;
        flex-shrink: 0;
        color: rgba(255, 255, 255, 0.7); /* 半透明白色 */
    }
    
    .process-title {
        font-size: 1.4rem; /* 与序号字体大小相同 */
        margin: 0;
        flex: 1;
        white-space: normal;
        word-wrap: break-word;
        color: #ffffff; /* 白色 */
        line-height: 1.3; /* 添加行高，避免文字拥挤 */
    }
    
    /* 重置移动端的标题激活样式 - 保持字体大小不变 */
    .process-item.is-active .process-title {
        font-size: 1.4rem !important; /* 与序号字体大小相同 */
        transform: none; /* 不移动 */
    }
    
    /* 6. 移动端移除桌面端的悬停效果 */
    .process-item:hover {
        transform: none;
        /* 保持玻璃效果，不添加额外变化 */
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }
    
    .process-item:hover .process-title {
        transform: none; /* 移动端不要位移动画 */
    }
    
    .promo-title { 
        font-size: 1.2rem; 
    }
    
    .promo-desc { 
        font-size: 0.9rem; 
        line-height: 1.5;
    }
    
    /* 移动端分页指示器样式 */
    .services-pagination {
        margin-top: 30px;
    }
    
    .services-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 5px;
    }
}

/* 更小屏幕的额外优化 */
@media (max-width: 480px) {
    /* 小屏幕适当减少内边距 */
    .process-item {
        padding: 15px 18px; /* 小屏幕：上下15px，左右18px */
        box-sizing: border-box;
    }
    
    .process-content {
        padding: 12px 0; /* 只设置上下padding */
    }
    
    .process-number {
        font-size: 1.2rem; /* 小屏幕字体大小 */
    }
    
    /* 优化标题字体大小 - 与序号相同 */
    .process-title {
        font-size: 1.2rem !important; /* 与序号字体大小相同 */
        line-height: 1.3 !important;
    }
    
    /* 确保激活状态下字体大小不变 */
    .process-item.is-active .process-title {
        font-size: 1.2rem !important;
    }
    
    /* 优化内容字体大小 - 不需要额外padding */
    .process-content > p {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0; /* 移除额外padding */
    }
}

/* ------------------------------------- */
/* 🌟 环保理念轮播 (单图全宽、文字叠加) */
/* ------------------------------------- */

.full-width-section {
    width: 100%;
    padding: 80px 0 100px 0; /* 底部留出空间给分页指示器 */
    background-color: #f5f5f5; 
}

.carousel-container {
    /* 取消 max-width，让 Swiper 占据全宽，但保持内容居中 */
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.sustainability-swiper {
    width: 100%;
    height: 600px; /* 桌面端高度 */
    margin-top: 40px;
    
    /* 核心：确保单图全屏显示 */
    overflow: hidden; 
}

.sustainability-swiper .swiper-slide {
    text-align: center;
    background: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: none; /* 移除阴影和圆角，实现"顶满"效果 */
}

/* 统一图片和视频的样式 */
.sustainability-swiper .slide-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证媒体文件覆盖整个 Slide */
    transition: transform 0.5s ease;
}

/* 视频裁剪优化 - 确保只显示中间内容 */
.sustainability-swiper .slide-media[src*=".mp4"],
.sustainability-swiper .slide-media[src*=".webm"],
.sustainability-swiper .slide-media[src*=".ogg"] {
    object-fit: cover;
    object-position: center center; /* 确保视频居中裁剪 */
}

/* Hero 区域视频优化 */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* 确保视频在图片之上 */
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* 图片在视频之下 */
}

/* ------------------- 文字叠加样式 ------------------- */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 8%; /* 增加左右边距，从5%提升到8% */
    text-align: left;
    color: white;
    box-sizing: border-box; /* 确保padding计入总宽度 */
    /* 半透明黑色渐变背景，使文字清晰可读 */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
}

.slide-overlay h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    margin-top: 0;
    padding: 0; /* 移除额外padding，使用容器的边距 */
    font-weight: 700;
    word-wrap: break-word; /* 确保长标题换行 */
    overflow-wrap: break-word; /* 防止标题溢出 */
}

.slide-overlay p {
    font-size: 1.1rem;
    margin: 0;
    padding: 0; /* 移除额外padding，使用容器的边距 */
    opacity: 0.9;
    max-width: 800px; /* 限制文字宽度，避免太宽影响阅读 */
    word-wrap: break-word; /* 确保长单词换行 */
    overflow-wrap: break-word; /* 防止文字溢出 */
}

/* ------------------- 分页指示器独立容器样式 ------------------- */
.sustainability-pagination-container {
    width: 100%;
    margin-top: 24px; /* <<-- 与图片/视频区域保持24px距离 */
    text-align: center; /* 居中显示 */
    padding: 8px 0;
}

.sustainability-pagination {
    position: relative;
    text-align: center;
}

.sustainability-pagination .swiper-pagination-bullet {
    width: 30px; /* 宽度调整为长方形 */
    height: 6px; /* 扁平化高度 */
    border-radius: 3px; 
    background: rgba(51, 51, 51, 0.3); /* <<-- 改为深色，因为现在在浅色背景上 */
    opacity: 1; 
    margin: 0 6px;
    transition: all 0.3s ease;
}

.sustainability-pagination .swiper-pagination-bullet-active {
    background: #333; /* <<-- 激活时使用深色 */
    width: 45px; /* 激活时宽度略微增加 */
}

/* ------------------- 响应式适配 ------------------- */
@media (max-width: 1024px) {
    .sustainability-swiper {
        height: 500px;
    }
    .slide-overlay {
        padding: 30px 6%; /* 平板端增加左右边距 */
    }
    .slide-overlay h3 {
        font-size: 1.6rem;
    }
    .slide-overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .full-width-section {
        padding: 40px 0 60px 0;
    }
    .sustainability-swiper {
        height: 400px; /* 移动端高度 */
    }
    .sustainability-pagination-container {
        margin-top: 20px; /* <<-- 移动端保持20px距离 */
    }
    .slide-overlay {
        padding: 20px 25px; /* 移动端保持足够的左右边距 */
    }
    .slide-overlay h3 {
        font-size: 1.4rem;
    }
    .slide-overlay p {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.7rem;
    }
}

/* Portfolio - Pinterest 样式瀑布流 */
#portfolio { padding: 80px 0; background: #f8f8f8; }
.portfolio-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
#portfolio h2 { text-align: center; margin-bottom: 40px; font-size: 2.2rem; font-weight: 700; }

.filter-bar { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { background: #eee; border: none; padding: 8px 16px; cursor: pointer; font-size: 1rem; border-radius: 20px; transition: all 0.3s ease; }
.filter-btn.active, .filter-btn:hover { background: green; color: white; transform: translateY(-2px); }

/* Masonry Grid - Pinterest 样式瀑布流 */
.portfolio-grid {
  margin: 0 auto;
  width: 100%;
  column-count: 4; /* 默认4列 */
  column-gap: 20px;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: white;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease forwards;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    /* 确保所有图片宽度一致，高度自适应 */
    object-fit: cover;
    min-height: 200px; /* 设置最小高度，避免太矮的图片 */
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

/* 文字覆盖层 - 默认隐藏，悬停时显示 */
.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 16px 20px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.portfolio-item:hover .text-overlay {
    opacity: 1;
    transform: translateY(0);
}

.text-overlay h3 { 
  margin: 0; 
  font-size: 1.1rem; 
  font-weight: 600; 
  margin-bottom: 6px;
}
.text-overlay p { 
  margin: 0; 
  font-size: 0.85rem; 
  opacity: 0.9; 
}

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

/* 响应式布局 */
@media (max-width: 1200px) {
  .portfolio-grid { column-count: 3; }
  .portfolio-container { max-width: 1000px; }
}

@media (max-width: 768px) {
  .portfolio-grid { column-count: 2; }
  .portfolio-container { max-width: 600px; }
  .filter-bar { gap: 8px; margin-bottom: 30px; }
  .filter-btn { padding: 6px 12px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .portfolio-grid { column-count: 2; }
  .portfolio-container { max-width: 400px; padding: 0 10px; }
  .portfolio-item { margin-bottom: 10px; }
  .text-overlay { padding: 8px 12px; }
  .text-overlay h3 { font-size: 0.9rem; }
  .text-overlay p { font-size: 0.75rem; }
}

/* ------------------------------------- */
/* 🌟 联系我们 - 双栏报价请求表单 */
/* ------------------------------------- */

.quote-request-section {
    width: 100%;
    padding: 0;
    background: #f8f9fa;
}

.quote-container {
    display: flex;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* 左侧视觉区域 - 50% */
.quote-visual-column {
    flex: 1;
    position: relative;
    min-height: 100vh;
}

.quote-image-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.quote-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.quote-visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 50px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
}

.quote-visual-overlay h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.quote-visual-overlay p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.95;
}

/* 右侧表单区域 - 50% */
.quote-form-column {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.quote-form-wrapper {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 0 50px;
}

/* 表单头部 */
.quote-form-header {
    margin-bottom: 40px;
}

.quote-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.quote-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* 表单样式 */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.required {
    color: #ff6b6b;
    font-weight: 700;
}

.optional {
    color: #999;
    font-weight: 400;
    font-size: 0.85rem;
}

/* 输入框通用样式 */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

/* 即时通讯复合字段 */
.messenger-group {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
}

.messenger-select {
    padding-right: 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    appearance: none;
}

/* 文本域 */
.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* 文件上传区域 */
.file-upload-area {
    position: relative;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-content {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
}

.file-upload-area:hover .file-upload-content {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.upload-icon {
    color: #999;
    margin-bottom: 12px;
}

.upload-text {
    font-size: 1rem;
    color: #333;
    margin: 0 0 8px 0;
}

.upload-text strong {
    color: #4CAF50;
    font-weight: 600;
}

.upload-hint {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

.file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 复选框组 */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 10px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #4CAF50;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.privacy-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* 提交按钮 - 使用导航条样式 */
.submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    background: transparent;
    border: 2px solid rgba(51, 51, 51, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: rgba(51, 51, 51, 0.9);
    color: #fff;
    border-color: rgba(51, 51, 51, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单反馈消息 */
.form-message {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .quote-container {
        flex-direction: column;
        min-height: auto;
    }

    .quote-visual-column {
        min-height: 400px;
    }

    .quote-image-wrapper {
        position: relative;
        height: 400px;
    }

    .quote-visual-overlay {
        padding: 40px 30px;
    }

    .quote-visual-overlay h3 {
        font-size: 2rem;
    }

    .quote-visual-overlay p {
        font-size: 1rem;
    }

    .quote-form-column {
        padding: 60px 0;
    }

    .quote-form-wrapper {
        padding: 0 40px;
    }

    .quote-title {
        font-size: 2rem;
    }
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .quote-visual-column {
        min-height: 300px;
    }

    .quote-image-wrapper {
        height: 300px;
    }

    .quote-visual-overlay {
        padding: 30px 25px;
    }

    .quote-visual-overlay h3 {
        font-size: 1.6rem;
    }

    .quote-visual-overlay p {
        font-size: 0.95rem;
    }

    .quote-form-column {
        padding: 50px 0;
    }

    .quote-form-wrapper {
        padding: 0 25px;
        max-width: 100%;
    }

    .quote-title {
        font-size: 1.7rem;
    }

    .quote-subtitle {
        font-size: 1rem;
    }

    .messenger-group {
        grid-template-columns: 1fr;
    }

    .file-upload-content {
        padding: 30px 15px;
    }
}

/* 响应式设计 - 小屏幕 */
@media (max-width: 480px) { 
    .quote-visual-column {
        min-height: 250px;
    }

    .quote-image-wrapper {
        height: 250px;
    }

    .quote-visual-overlay {
        padding: 25px 20px;
    }

    .quote-visual-overlay h3 {
        font-size: 1.4rem;
    }

    .quote-visual-overlay p {
        font-size: 0.9rem;
    }

    .quote-form-wrapper {
        padding: 0 20px;
    }

    .quote-title {
        font-size: 1.6rem;
    }

    .quote-subtitle {
        font-size: 0.95rem;
    }

    .quote-form {
        gap: 20px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Floating Button */
#floating-btn { position: fixed; bottom: 2vw; right: 2vw; background: green; color: white; border: none; padding: 1.2vw; border-radius: 50%; cursor: pointer; animation: pulse 2s infinite; font-size: 1rem; }
@media (min-width: 1920px) { #floating-btn { padding: 1.5vw; font-size: 1.2rem; } }
@media (max-width: 480px) { #floating-btn { padding: 1vw; font-size: 0.9rem; } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* ------------------------------------- */
/* 🌟 底部 CTA 区域样式 - 全宽沉浸式背景 */
/* ------------------------------------- */

#footer-cta-hero {
    /* 核心：占满视口宽度和高度 */
    width: 100%;
    min-height: 100vh; /* 占满整个视口高度 */
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    overflow: hidden;
}

/* 媒体容器：背景媒体只在 CTA 区域内显示 */
#footer-cta-hero .media-wrapper {
    position: absolute; /* 相对于父容器定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 占满整个 #footer-cta-hero 区域 */
    z-index: 0; /* 在内容之下 */
    overflow: hidden;
}

/* 媒体元素：全屏覆盖 */
.bg-media {
    display: none; /* 默认隐藏，由 JS 决定显示图片或视频 */
    width: 100%;
    height: 100%;
    object-fit: cover; /* 覆盖整个容器 */
    object-position: center center; /* 居中裁剪 */
}

/* CTA 内容：垂直居中显示 */
.cta-content {
    position: relative;
    min-height: 70vh; /* 至少占据 70% 的视口高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    line-height: 1.6;
}

.big-cta-btn {
    display: inline-block;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.big-cta-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

/* 深色遮罩层：确保文字清晰可读 */
#footer-cta-hero::before {
    content: '';
    position: absolute; /* 相对于 #footer-cta-hero 定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ------------------- 页脚完美融合 ------------------- */
footer {
    /* 关键：让 footer 浮在背景图之上，背景黑色 */
    position: relative;
    width: 100%;
    margin: 0;
    padding: 20px 20px 15px; /* 减小内边距来降低高度 */
    background: #000000; /* 黑色背景 */
    color: rgba(255, 255, 255, 0.9);
    z-index: 3; /* 确保在背景和遮罩之上 */
}

/* 页脚内容居中 */
footer > .container {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    margin: 10px 0;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 页脚链接样式 */
footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

footer a:hover {
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    padding: 5px 10px;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* 社交媒体图标样式 */
.social-media-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    #footer-cta-hero {
        min-height: 90vh;
    }
    
    .cta-content {
        min-height: 60vh;
        padding: 80px 20px;
    }
    
    .cta-title {
        font-size: 2.8rem;
    }
    
    .cta-description {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    #footer-cta-hero {
        min-height: 80vh;
    }
    
    .cta-content {
        min-height: 50vh;
        padding: 60px 20px;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .big-cta-btn {
        padding: 14px 30px;
        font-size: 1.1rem;
    }
    
    footer {
        padding: 30px 15px 20px;
    }
    
    footer p {
        font-size: 0.9rem;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .social-media-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    #footer-cta-hero {
        min-height: 70vh;
    }
    
    .cta-content {
        min-height: 45vh;
        padding: 50px 15px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .big-cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    footer {
        padding: 25px 10px 15px;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-media-icons {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .social-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* --- 解决问题2 & 4: 桌面端默认状态下数字和标题可见且对齐
 * 通过将 justify-content 从 flex-end 改为 flex-start，让头部内容始终从顶部开始显示。
 * 增加了 padding-top 来确保内容不会紧贴边缘。
*/
.process-item {
    justify-content: flex-start; /* 将内容从顶部对齐 */
    padding-top: 35px; /* 增加顶部内边距 */
}

/* 当手风琴项被激活时，头部标题向上移动，为下方内容腾出空间 */
.process-item.is-active .process-header {
    transform: translateY(-20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-header {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 移动端内容超出问题的修复已整合到上面的 @media (max-width: 768px) 中 */

/* ------------------------------------- */
/* 🌟 合作伙伴Logo跑马灯 - 全宽无缝循环 */
/* ------------------------------------- */

#partners-marquee {
    /* 全宽背景 */
    width: 100%;
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* 标题区域 */
.marquee-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.marquee-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.marquee-header p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

/* 跑马灯容器 - 实现全宽效果 */
.marquee-container {
    /* 核心：使用负margin来"逃逸"父容器的max-width限制 */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 20px 0;
}

/* 跑马灯轨道 - 使用Flexbox水平排列 */
.marquee-track {
    display: flex;
    align-items: center;
    gap: 80px; /* Logo之间的间距 */
    width: fit-content;
    
    /* 核心动画：线性匀速滚动 */
    animation: marquee-scroll 40s linear infinite;
    
    /* 悬停暂停功能 */
    animation-play-state: running;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* 无缝循环动画 */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 精确移动50%，因为我们复制了一组Logo */
        transform: translateX(-50%);
    }
}

/* Logo项样式 */
.marquee-item {
    flex-shrink: 0; /* 防止Logo被压缩 */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px; /* 固定高度确保垂直对齐 */
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.marquee-item img {
    max-height: 100%;
    max-width: 180px; /* 限制最大宽度 */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6); /* 默认灰度效果 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬停效果 - 恢复彩色并放大 */
.marquee-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .marquee-header h2 {
        font-size: 2rem;
    }
    
    .marquee-header p {
        font-size: 1.1rem;
    }
    
    .marquee-track {
        gap: 60px;
        animation-duration: 35s; /* 略微加快速度 */
    }
    
    .marquee-item {
        height: 70px;
    }
    
    .marquee-item img {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    #partners-marquee {
        padding: 60px 0;
    }
    
    .marquee-header {
        margin-bottom: 40px;
    }
    
    .marquee-header h2 {
        font-size: 1.8rem;
    }
    
    .marquee-header p {
        font-size: 1rem;
    }
    
    .marquee-track {
        gap: 50px;
        animation-duration: 30s; /* 移动端加快速度 */
    }
    
    .marquee-item {
        height: 60px;
        padding: 8px 15px;
    }
    
    .marquee-item img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    #partners-marquee {
        padding: 40px 0;
    }
    
    .marquee-header h2 {
        font-size: 1.5rem;
    }
    
    .marquee-header p {
        font-size: 0.9rem;
    }
    
    .marquee-track {
        gap: 40px;
        animation-duration: 25s; /* 小屏幕更快 */
    }
    
    .marquee-item {
        height: 50px;
        padding: 5px 10px;
    }
    
    .marquee-item img {
        max-width: 100px;
        filter: grayscale(50%) opacity(0.7); /* 移动端稍微保留一点颜色 */
    }
    
    /* 移动端点击也能触发彩色效果 */
    .marquee-item:active img {
        filter: grayscale(0%) opacity(1);
        transform: scale(1.1);
    }
}
