/* ==========================================================================
   1. 基础重置与全局设置
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #ffffff;
  color: #333333;
  overflow-x: hidden;
}

/* ==========================================================================
   2. 绝对置顶固定导航栏 (Navbar)
   ========================================================================== */
.navbar {
  position: fixed; /* 钉死在屏幕上 */
  top: 0;
  left: 0;
  width: 100vw; /* 强行铺满整屏宽度 */
  z-index: 9999; /* 给予至高无上的层级，任何组件都不可能盖住它 */

  /* 高级感核心：深色半透明背景 + 强力毛玻璃模糊效果 */
  background: rgba(13, 13, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* 导航内层限宽容器（保持两端对齐且大屏不散开） */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}
.logo-icon {
  font-size: 24px;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}
.nav-links a {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}
.nav-links a.active {
  font-weight: 700;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
}

.btn-contact {
  background-color: #ff5a5f;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn-contact:hover {
  background-color: #e0484d;
}

/* ==========================================================================
   3. 第一页：Hero 主背景区域 (V型斜切)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 95vh;
  background: url("page1-bg.png") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 裁剪出精美的底部向下的 V 型山峰效果 */
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
  z-index: 2;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 23, 0.78);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 0 20px; /* 增加顶距，完美避开 fixed 导航 */
  margin-bottom: 60px;
  color: #ffffff;
}
.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-content .subtitle {
  font-size: 20px;
  color: #e0e0e0;
  margin-bottom: 40px;
}
.btn-get-started {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #ffffff;
  padding: 12px 40px;
  border-radius: 30px;
  transition: 0.3s ease;
}
.btn-get-started:hover {
  background-color: #ffffff;
  color: #0d0d11;
}

/* ==========================================================================
   4. 第二页：About Section
   ========================================================================== */
.about-section {
  background-color: #ffffff;
  padding: 150px 20px 100px 20px; /* 适当调高顶距，保证平滑跳转时不遮挡标题 */
  text-align: center;
}
.about-section .container {
  max-width: 850px;
  margin: 0 auto;
}
.about-section h2 {
  font-size: 42px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 25px;
}
.about-text {
  font-size: 16px;
  line-height: 1.85;
  color: #666666;
  margin-bottom: 40px;
}
.btn-learn-more {
  display: inline-block;
  color: #ff5a5f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #ff5a5f;
  padding: 12px 45px;
  border-radius: 30px;
  transition: 0.3s ease;
}
.btn-learn-more:hover {
  background-color: #ff5a5f;
  color: #ffffff;
}

/* ==========================================================================
   5. 第三页：What We Do Section
   ========================================================================== */
.services-section {
  background-color: #ffffff;
  padding: 120px 20px; /* 配合导航栏的锚点跳转间距 */
  text-align: center;
}
.services-section .container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 48px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 60px;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.service-item {
  flex: 1;
  min-width: 250px;
  max-width: 280px;
  padding: 20px;
  transition: transform 0.3s ease;
}
.service-item:hover {
  transform: translateY(-10px);
}

.icon-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}
.bg-orange {
  background-color: #fdd5bd;
  color: #e67e22;
}
.bg-teal {
  background-color: #c9e8e3;
  color: #16a085;
}
.bg-gold {
  background-color: #f9e3b4;
  color: #f39c12;
}
.bg-blue {
  background-color: #bcd9e5;
  color: #2980b9;
}

.service-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 15px;
  line-height: 1.3;
}
.service-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
}

/* ==========================================================================
   6. 手机/平板端 完美响应式自适应
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  } /* 移动端隐藏中间菜单线 */
  .nav-container {
    padding: 15px 20px;
  }
  .hero-section {
    min-height: 80vh;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
  }
  .hero-content {
    padding-top: 100px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .about-section {
    padding: 100px 15px 60px 15px;
  }
  .about-section h2 {
    font-size: 28px;
  }
  .services-section {
    padding: 80px 15px;
  }
  .section-title {
    font-size: 36px;
    margin-bottom: 40px;
  }
  .service-item {
    max-width: 100%;
    flex-basis: 45%;
  }
}

@media (max-width: 480px) {
  .service-item {
    flex-basis: 100%;
  }
  .icon-circle {
    width: 120px;
    height: 120px;
    font-size: 45px;
    margin-bottom: 20px;
  }
}
/* ==========================================================================
   8. 第四页：Our Clients Section 样式 (全新重构)
   ========================================================================== */
.clients-section {
  background-color: #f8f9fa; /* 保持轻微的浅灰底色，与纯白背景划清界限 */
  padding: 120px 20px;
  text-align: center;
}

.clients-main-stat {
  font-size: 26px;
  font-weight: 700;
  color: #1a5276; /* 使用你Logo的皇家蓝，彰显专业度 */
  margin-top: -45px;
  margin-bottom: 50px;
  letter-spacing: -0.5px;
}

/* Logo 导航条样式 */
/* ==========================================================================
   隐藏 Clients 导航条右侧/下方的原生滚动条
   ========================================================================== */
.client-logos-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  border-bottom: 2px solid #eef0f2;
  padding-bottom: 15px;
  margin-bottom: 50px;

  /* 核心修复：保持手机端可滑动，但彻底隐藏各类浏览器的滚动条 */
  overflow-x: auto;
  scrollbar-width: none; /* 适用于 Firefox 浏览器 */
  -ms-overflow-style: none; /* 适用于 IE 和旧版 Edge 浏览器 */
}

/* 适用于 Chrome, Safari, Opera 以及新版 Edge 浏览器的隐藏双轨机制 */
.client-logos-bar::-webkit-scrollbar {
  display: none; /* 彻底不渲染滚动条轨迹与滑块 */
  width: 0 !important;
  height: 0 !important;
}

.logo-item {
  cursor: pointer;
  padding: 10px 15px;
  position: relative;
  white-space: nowrap;
}

.client-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: #777777;
  transition: color 0.3s ease;
}

/* 激活态（类似图5被选中的高亮） */
.logo-item.active .client-brand-name,
.logo-item:hover .client-brand-name {
  color: #111111;
}

.logo-item.active::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ff5a5f; /* 珊瑚红激活横条 */
}

/* 案例主体卡片 */
.client-case-card {
  background-color: #ffffff;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  display: flex; /* 左右两栏布局 */
  text-align: left;
}

/* 左侧图片区域 */
.case-image-wrapper {
  flex: 1.1;
  position: relative;
  min-height: 380px;
}

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

.case-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #ff5a5f;
  color: #ffffff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
}

/* 右侧核心数据与简介区域 */
.case-info-wrapper {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-info-wrapper h3 {
  font-size: 28px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 30px;
}

/* 三列业绩数字网络 (精准复刻图5) */
.case-stats-grid {
  display: flex;
  gap: 30px;
  margin-bottom: 35px;
}

.stat-box {
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #888888;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #1a5276; /* 高亮数字 */
}

.case-description {
  font-size: 15px;
  line-height: 1.7;
  color: #555555;
  border-top: 1px solid #f0f2f5;
  padding-top: 25px;
}

/* 响应式移动端处理 */
@media (max-width: 992px) {
  .client-case-card {
    flex-direction: column;
  } /* 平板手机降级为单列上下排版 */
  .case-image-wrapper {
    min-height: 260px;
  }
  .case-info-wrapper {
    padding: 30px;
  }
  .case-info-wrapper h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .stat-number {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .clients-section {
    padding: 80px 15px;
  }
  .clients-main-stat {
    font-size: 18px;
    margin-top: -30px;
    margin-bottom: 30px;
  }
  .client-logos-bar {
    gap: 20px;
  }
  .case-stats-grid {
    gap: 15px;
  }
}
/* ==========================================================================
   9. 第五页：Join Section 样式 (新追加)
   ========================================================================== */
.join-section {
  background-color: #ffffff; /* 恢复纯白背景，与上一页的微黄Testimonials形成对比 */
  padding: 140px 20px; /* 保持一致的呼吸感间距 */
  text-align: center;
}

.join-section .container {
  max-width: 900px;
  margin: 0 auto;
}

/* 完美还原原图的黑粗标题体积感 */
.join-section h2 {
  font-size: 52px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 35px;
  letter-spacing: -0.5px;
}

/* 还原原图描述文字 */
.join-text {
  font-size: 16px;
  line-height: 1.75;
  color: #666666;
  margin-bottom: 45px;
}

/* 专属珊瑚红镂空按钮，完美匹配原图圆角与间距 */
.btn-learn-more-coral {
  display: inline-block;
  color: #ff5a5f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #ff5a5f;
  padding: 14px 50px;
  border-radius: 30px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.btn-learn-more-coral:hover {
  background-color: #ff5a5f;
  color: #ffffff;
}

/* 移动端响应式适配 */
@media (max-width: 768px) {
  .join-section {
    padding: 90px 15px;
  }
  .join-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }
  .join-text {
    font-size: 14px;
    line-height: 1.6;
  }
  .join-text br {
    display: none;
  } /* 手机端取消强行换行，防止排版错位 */
  .btn-learn-more-coral {
    padding: 12px 40px;
    font-size: 15px;
  }
}
/* ==========================================================================
   10. 第六页：Contact Us Section 样式 (新追加)
   ========================================================================== */
.contact-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: url("contact-bg.png") no-repeat center center/cover;
  background-color: #1a1a1a;
}

/* 压暗遮罩层 */
.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.contact-container {
  position: relative;
  z-index: 2; /* 确保内容在遮罩层之上 */
  width: 100%;
  max-width: 600px; /* 限制表单最大宽度，完美还原原图比例 */
  text-align: center;
  color: #ffffff;
}

/* 完美还原原图的白色大字 */
.contact-container h2 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.contact-subtitle {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 45px;
  color: #ffffff;
  opacity: 0.9;
}

/* 表单与输入框 */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* 输入框之间的严丝合缝间距 */
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  background-color: #ffffff; /* 纯白实体输入框 */
  border: none;
  border-radius: 4px; /* 轻微圆角 */
  color: #333333;
  outline: none;
  font-family: inherit;
}

/* 更改 placeholder 占位符颜色为原图的淡淡灰色 */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaaaaa;
}

/* 完美还原原图的经典深蓝色 Submit 按钮 */
.btn-submit {
  background-color: #1a5276; /* 原图深海蓝色 */
  color: #ffffff;
  border: none;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  margin: 15px auto 0;
  width: 160px; /* 固定的居中窄按钮 */
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #113f5c; /* 鼠标悬停时加深 */
}

/* 移动端响应式适配 */
@media (max-width: 768px) {
  .contact-section {
    padding: 80px 15px;
    min-height: auto;
  }
  .contact-container h2 {
    font-size: 36px;
  }
  .contact-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 14px;
  }
  .btn-submit {
    width: 100%;
    margin-top: 10px;
  } /* 手机端按钮自动撑满，更易于手指点击 */
}
/* ==========================================================================
   11. 图片 Logo 专属优化样式
   ========================================================================== */
.logo {
  display: flex;
  align-items: center;
  height: 100%; /* 让容器跟随导航栏高度 */
}

.logo-img {
  height: 60px; /* 限制 Logo 的高度，防止把导航栏撑得太高 */
  width: auto; /* 宽度自动等比例缩放，防止图片变形 */
  object-fit: contain; /* 确保图片完整展现在区域内 */
  display: block;

  /* 可选：如果你的图片裁切后边缘有细微白边，可以加上轻微的投影让它在深色导航栏上更立体 */
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));

  transition: transform 0.3s ease;
}

/* 鼠标悬停在 Logo 上时有轻微的放大互动效果 */
.logo-img:hover {
  transform: scale(1.5);
}

/* 移动端自适应：在手机上让 Logo 稍微变小一点点，显得更精致 */
@media (max-width: 768px) {
  .logo-img {
    height: 45px;
  }
}
/* ==========================================================================
   12. Clients 左右切换按钮专属样式 (新追加)
   ========================================================================== */
.case-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  color: #1a5276; /* 使用Logo皇家蓝 */
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

/* 定位：分别悬浮在卡片两侧 */
.prev-btn {
  left: -25px;
}

.next-btn {
  right: -25px;
}

/* 悬浮互动效果 */
.case-nav-btn:hover {
  background-color: #1a5276;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(26, 82, 118, 0.3);
}

/* 按钮点击反馈 */
.case-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* 移动端适配：手机屏幕小，把按钮收回到卡片内部或变小，防止溢出屏幕 */
@media (max-width: 1200px) {
  .prev-btn {
    left: 10px;
  }
  .next-btn {
    right: 10px;
  }
  .case-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.9);
  }
}
/* ==========================================================================
   14. Clients 头部可插入图片 Logo 专属高级样式
   ========================================================================== */
.logo-item {
  cursor: pointer;
  padding: 10px 18px;
  position: relative;
  white-space: nowrap;

  /* 核心：让插入的图片 Logo 与旁边的文字水平居中对齐 */
  display: flex;
  align-items: center;
  gap: 10px; /* 图片与文字之间的精致间距 */
}

/* 规范可插入图片 Logo 的统一尺寸与高级质感 */
.brand-tab-img {
  width: 40px; /* 严格限制 Logo 图片的显示宽度 */
  height: 40px; /* 严格限制 Logo 图片的显示高度 */
  object-fit: contain; /* 确保图片等比例缩放，绝不被压扁或拉伸变形 */
  display: block;

  /* 核心高级感：默认未选中时，让图片呈现优雅的 70% 灰度，融入背景 */
  filter: grayscale(70%) opacity(0.6);
  transition: all 0.3s ease;
}

/* 当这个品牌被激活（Active）或者鼠标悬停时，图片 Logo 瞬间恢复 100% 饱满色彩，文字变黑 */
.logo-item.active .brand-tab-img,
.logo-item:hover .brand-tab-img {
  filter: grayscale(0%) opacity(1); /* 剥离灰色，恢复原本精美鲜艳的色彩 */
  transform: scale(1.08); /* 悬停时 Logo 轻微放大，增加交互灵动性 */
}

.logo-item.active .client-brand-name,
.logo-item:hover .client-brand-name {
  color: #111111;
  font-weight: 700; /* 激活时文字加粗，增强大厂案例墙的层次感 */
}
.client-brand-name {
  /* ⬇️ 在这里修改字体大小，默认是 16px，你可以改成 18px 或 20px 让它更大 */
  font-size: 20px;

  font-weight: 600;
  color: #777777;
  transition: color 0.3s ease;
}
/* ==========================================================================
   📱 移动端响应式优化 (屏幕宽度小于 768px 时自动生效)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. 客户 Tab 横条优化：允许左右滑动，防止名字挤压变形 */
  .client-logos-bar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 10px 15px;
    gap: 15px;
    -webkit-overflow-scrolling: touch; /* 让苹果手机滑动更丝滑 */
  }

  .client-logos-bar::-webkit-scrollbar {
    display: none; /* 隐藏安卓/主流浏览器底部的滚动条，保持美观 */
  }

  .logo-item {
    flex: 0 0 auto; /* 防止名字在横向滚动时被挤压变形 */
    padding: 6px 12px; /* 🟢 缩小上下左右内边距（原本是 8px 15px） */
    font-size: 12px; /* 🟢 字号从 14px 缩小到 12px，更显精致 */
    border-radius: 20px; /* 让圆角稍微变小，贴合小字号 */
  }

  /* 如果你的标签里面有小图标或小 Logo 图片，也同步把它缩小 */
  .brand-tab-img {
    height: 16px; /* 🟢 限制小图片高度不超过 16px */
    width: auto;
    margin-right: 6px; /* 缩短图片和文字之间的距离 */
  }

  /* 顺便缩短整个横条的上下间距，让它不那么占屏幕 */
  .client-logos-bar {
    gap: 10px; /* 🟢 缩小标签与标签之间的左右间距（原本是 15px） */
    padding: 8px 10px; /* 🟢 缩小整个导航条的上下外边距（原本是 10px 15px） */
  }

  /* 2. 案例大卡片优化：从“左右并排”变成“上下垂直堆叠” */
  .client-case-card {
    display: flex;
    flex-direction: column; /* 纵向排列 */
    margin: 0 15px; /* 两边留出呼吸感间距 */
    border-radius: 12px;
    overflow: hidden;
  }

  /* 3. 图片区域在手机上自适应高度 */
  .case-image-wrapper {
    width: 100%;
    height: 200px; /* 固定一个适合手机视口的高度 */
  }

  .case-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片在手机上不拉伸变形 */
  }

  /* 4. 右侧文字与数据区域优化 */
  .case-info-wrapper {
    width: 100%;
    padding: 20px 15px;
  }

  .case-info-wrapper h3 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center; /* 标题在手机上居中更符合直觉 */
  }

  /* 5. 三块业绩数据格子：从“横排 3 列”变成“两列”或独立块 */
  .case-stats-grid {
    grid-template-columns: repeat(2, 1fr); /* 变成 2 列布局 */
    gap: 12px;
  }

  /* 让第三个格子（一般是关键的利润增长）在手机上独占一行，显得大气 */
  .case-stats-grid .stat-box:nth-child(3) {
    grid-column: span 2;
  }

  .stat-box {
    padding: 12px;
  }

  .stat-number {
    font-size: 20px; /* 稍微缩小手机字号，防止溢出 */
  }

  /* 6. 左右切换箭头按钮优化：挪到下方或者放大间距，防止误触 */
  .case-nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  .prev-btn {
    left: 5px;
  }
  .next-btn {
    right: 5px;
  }
}
