/* ========== 公共组件样式 - Header + Footer ========== */
html,
body {
  overflow-x: hidden;
}

/* ========== Header 导航栏样式 ========== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* 白色半透明（不磨砂）：透过菜单可见海报 */
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  /* 不跟随滚动：滚动后头部随页面离开视口，保持半透明不变 */
  background-color: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

.site-header .navbar {
  padding: 0;
  height: 80px;
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 15px;
}

.site-header .navbar-brand img {
  height: 32px;
  width: auto;
}

/* 菜单项样式 - 按设计图调整 */
.site-header .nav-link {
  color: #333333;
  font-size: 18px;
  /* font-weight: 800; */
  padding: 26px 20px;
  transition: color 0.3s ease;
  position: relative;
  letter-spacing: 0.3px;
  margin-right: 30px;
}

.site-header .nav-link:hover {
  color: #0092d8;
}

/* 当前页高亮 */
.site-header .nav-link.active,
.site-header .nav-link.active:hover {
  color: #0092d8;
  font-weight: 600;
}

.site-header .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  /* background-color: #0092d8; */
}

/* 联系我们：普通菜单项，由当前页面匹配高亮 */
/* .site-header .nav-cta {
  color: #333333;
  font-weight: 500;
  margin-left: 5px;
} */

.site-header .nav-cta::after {
  display: none;
}
.site-header .nav-cta.active {
  color: #0092d8;
}
.site-header .nav-cta:hover {
  color: #0092d8;
}

/* 下拉菜单 */
.site-header .dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 12px 0;
  margin-top: 0;
  top: 70%;
  min-width: 150px;
  /* 白色半透明下拉（不磨砂） */
  background-color: rgba(255, 255, 255, 0.92);
}
.site-header .dropdown-item {
  padding: 10px 22px;
  font-size: 13px;
  color: #333333;
  transition: all 0.2s ease;
}

.site-header .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #0092d8;
  padding-left: 26px;
}

/* ========== 菱王电梯：三级下拉菜单 ========== */
.site-header .dropdown-submenu {
  position: relative;
}

.site-header .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: -4px;
  min-width: 170px;
  border-radius: 6px;
}

.site-header .dropdown-submenu > .dropdown-toggle::after {
  transform: rotate(-90deg);
  margin-left: 8px;
  opacity: 0.5;
}

/* 桌面端：悬停展开三级菜单 */
@media (min-width: 992px) {
  .site-header .dropdown-submenu:hover > .dropdown-menu,
  .site-header .dropdown-submenu:focus-within > .dropdown-menu {
    display: block;
  }
}

/* 三级菜单当前页高亮 */
.site-header .dropdown-item.active,
.site-header .dropdown-item.active:hover {
  background-color: #f0f7fc;
  color: #0092d8;
  padding-left: 26px;
}

/* 设计中 角标 */
.submenu-badge {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  color: #9aa0a6;
  background-color: #f0f2f5;
  border-radius: 3px;
  padding: 2px 5px;
  margin-left: 6px;
  vertical-align: 1px;
  font-weight: 400;
  letter-spacing: 0;
}

/* 移动端：三级菜单改为内嵌展开（点击 菱王电梯 展开） */
@media (max-width: 991.98px) {
  .site-header .dropdown-submenu > .dropdown-menu {
    position: static;
    left: auto;
    top: auto;
    box-shadow: none;
    border: none;
    background-color: #f8f9fa;
    margin: 2px 0 4px 18px;
    padding: 4px 0;
    min-width: 0;
    display: none;
  }
  .site-header .dropdown-submenu > .dropdown-menu.show {
    display: block;
  }
  .site-header .dropdown-submenu > .dropdown-toggle::after {
    transform: none;
  }
}

/* 移动端菜单 */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.92);
    padding: 18px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    /* 白色半透明移动端面板 */
  }
  .site-header .navbar-collapse .nav-link {
    border-bottom: 1px solid #f0f0f0;
  }
  
  .site-header .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .site-header .nav-link.active::after {
    bottom: 5px;
  }
  
  .site-header .navbar {
    height: auto;
    min-height: 80px;
  }
}


/* ========== Footer 底部样式（按设计图7列布局）========== */
.site-footer {
      background-color: #fafafa;
  padding-top: 50px;
  padding-bottom: 0;
  color: #555;
  font-size: 13px;
  border-top: 1px solid #e5e5e5;
}

/* 导航行 - 7列布局 */
.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
}

/* 每一列 */
.footer-nav-col {
  flex: 0 0 auto;
  min-width: 100px;
  margin-right: 50px;
}

/* 列标题 */
.nav-col-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.nav-col-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-col-title a:hover { color: #0092d8; }

/* 链接列表 */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.6;
  transition: color 0.25s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #0092d8;
  transform: translateX(2px);
}

/* ========== 脚部：菱王电梯三级分类 ========== */
.footer-group-title {
  display: inline-block;
  color: #666;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  margin-bottom: 4px;
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-group-title:hover { color: #0092d8; }

.footer-sublinks {
  padding-left: 14px;
  margin-top: 2px;
}

.footer-sublinks li {
  margin-bottom: 8px;
}

.footer-link-disabled {
  color: #9aa0a6;
  font-size: 16px;
  line-height: 1.6;
  cursor: default;
  user-select: none;
}

/* 右侧Logo区域 */
.footer-logo {
  display: inline-block;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

/* 页脚二维码：位于 Logo 下方，居中对齐 */
.footer-logo-qr {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-qr-img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.footer-qr-text {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #666666;
  white-space: nowrap;
}

/* 版权栏 */
.footer-bottom {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid #eee;
  background-color: #fafafa;
  text-align: left;
}

.copyright {
  color: #999;
  font-size: 12px;
  line-height: 1.6;
}

.footer-bottom a {
  color: #999;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #0092d8;
}

.separator {
  margin: 0 8px;
  color: #ddd;
}


/* ========== Footer 响应式设计 ========== */

/* 平板端 */
@media (max-width: 991.98px) {
  .footer-nav-row {
    gap: 25px 35px;
    justify-content: flex-start;
  }

  .footer-nav-col {
    min-width: 130px;
  }

  .footer-logo {
    margin-top: 20px;
  }

  .footer-logo-img {
    margin: 0 auto;
    display: block;
  }
}

/* 手机端 */
@media (max-width: 767.98px) {
  .site-footer {
    padding-top: 35px;
  }

  /* 手机端隐藏底部导航菜单（仅保留 Logo 与版权栏） */
  .footer-nav-row {
    display: none;
  }

  .footer-nav-col {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
  }

  .footer-nav-col:last-child {
    border-bottom: none;
  }

  .nav-col-title {
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
  }

  /* 移动端可折叠效果（可选）*/
  .footer-nav-col .footer-links {
    display: block;
  }

  .footer-bottom {
    margin-top: 25px;
    padding: 15px 0;
  }

  .copyright {
    font-size: 11px;
  }
}


/* ========== 全站页面加载特效 ========== */
#site-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F8FE;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
#site-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.site-loading-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(0, 175, 255, 0.2);
  border-top-color: #00AFFF;
  animation: siteLoadingSpin 0.9s linear infinite;
}
.site-loading-text {
  font-size: 15px;
  letter-spacing: 2px;
  color: #142342;
  font-weight: 600;
}
@keyframes siteLoadingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== 全站页面加载特效 ========== */
#site-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F8FE;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
#site-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.site-loading-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(0, 175, 255, 0.2);
  border-top-color: #00AFFF;
  animation: siteLoadingSpin 0.9s linear infinite;
}
.site-loading-text {
  font-size: 15px;
  letter-spacing: 2px;
  color: #142342;
  font-weight: 600;
}
@keyframes siteLoadingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* ---------- 响应式：窄屏禁用 AOS 横向位移动画（避免横向滚动条/溢出） ---------- */
@media (max-width: 991.98px) {
  [data-aos="fade-left"],
  [data-aos="fade-right"],
  [data-aos="fade-left"] *,
  [data-aos="fade-right"] * {
    transform: none !important;
  }
}
/* ========== 页面进入特效（除首页） ========== */
/* 海报：从大缩到正常 */
.page-hero {
  animation: heroZoomIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  transform-origin: 50% 50%;
  will-change: transform;
}

@keyframes heroZoomIn {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* 海报文字：延迟淡入上移 */
.page-hero [class$="-hero-content"],
.page-hero .hero-content {
  animation: heroContentIn 0.85s ease 0.35s both;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== 内容滚动进入特效（除首页） ========== */
/* 由 JS 添加 js-reveal，无 JS 时不隐藏内容 */
main .js-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

main .js-reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero,
  .page-hero [class$="-hero-content"],
  .page-hero .hero-content,
  main .js-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================
   全局 Hero 背景图兜底适配
   确保所有 hero 区域背景图铺满不拉伸、不留白
   ========================================================== */
section[class*="-hero"],
div[class*="-hero"] {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
/* hero 内的背景图层也强制铺满 */
[class*="-hero-bg"],
[class*="hero-bg"] {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* ==========================================================
   通用 Hero 全屏适配（图片+文字型海报）
   解决 100vh 在部分显示屏不准确导致的海报显示不全问题
   - 100dvh 动态视口：移动端地址栏伸缩时实时跟随可视区
   - 背景图 img 统一铺满：不拉伸、居中、不重复
   - 用法：hero 内背景图 img 加 class="hero-bg"
   ========================================================== */
/* 1) 图片背景型 hero：统一全屏高度（100vh 回退 + 100dvh 增强 + 最小高度兜底） */
section[class*="-hero"]:has(> img.hero-bg),
div[class*="-hero"]:has(> img.hero-bg),
section[class*="-hero"]:has(> div[class*="-hero-bg"]),
div[class*="-hero"]:has(> div[class*="-hero-bg"]) {
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

/* 2) 背景图 img 统一铺满（不拉伸、居中、不重复） */
[class*="-hero"] > img.hero-bg,
[class*="-hero-bg"] > img.hero-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

/* 3) 文字层保证盖在图片上 */
[class*="-hero"] > img.hero-bg ~ *,
[class*="-hero"] > div[class*="-hero-bg"] ~ * {
  position: relative;
  z-index: 1;
}

/* ==========================================================
   全局移动端适配（手机端 ≤ 767.98px）
   注意：仅在手机端生效，PC端排版完全不变
   ========================================================== */
@media (max-width: 767.98px) {

  /* ---------- 1. 全局基础 ---------- */
  html {
    font-size: 14px;
  }
  body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }
  img {
    max-width: 100%;
    height: auto;
  }

  /* ---------- 2. Hero 海报区域 ---------- */
  /* 所有含 hero 的 section：手机上最小高度，避免太矮 */
  section[class*="-hero"] {
    min-height: 420px;
  }
  /* Hero 文字容器：手机上占满宽度，不再 52%（只覆盖定位类的） */
  [class*="hero-text"],
  [class*="hero-content"],
  [class*="hero-inner"] {
    max-width: 80% !important;
  }
  /* 绝对定位的 hero 文字容器：左右各留 10% 边距 */
  [class*="hero-text"][style*="left"],
  [class*="hero-content"][style*="left"],
  [class*="hero-inner"][style*="left"] {
    left: 10% !important;
    right: 10% !important;
  }
  /* Hero 标题字号兜底（页面已有 clamp 的话不影响） */
  [class*="hero-text"] h1,
  [class*="hero-content"] h1,
  [class*="hero-inner"] h1 {
    font-size: 30px;
    line-height: 1.3;
  }
  /* 全局兜底：海报文字层手机端顶部至少留白，避免被 64px 固定菜单遮挡 */
  [class*="hero-text"],
  [class*="hero-content"],
  [class*="hero-inner"] {
    padding-top: clamp(80px, 14vh, 220px) !important;
  }

  /* ---------- 3. 内容容器与 section ---------- */
  main section {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
  /* 各种 inner / c / 容器类：手机上左右统一 16px */
  [class*="-inner"],
  [class*="-body"],
  [class*="-wrap"],
  [class*="-layout"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
  }
  /* Bootstrap 容器也统一左右边距 */
  main .container,
  main .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* ---------- 4. 多列布局适配 ---------- */
  /* 注意：Bootstrap 栅格已自带响应式（col-lg-* / col-md-*），这里只补充非Bootstrap的自定义布局 */
  /* 常见的自定义 flex 多列布局：手机上纵向堆叠 */
  [class*="-grid"]:not([class*="bootstrap"]),
  [class*="-row"]:not(.row):not(.navbar-nav):not(.footer-nav-row) {
    flex-direction: column !important;
    gap: 16px !important;
  }
  /* 卡片容器占满宽度（自定义布局的卡片） */
  [class*="-card"]:not([class*="col-"]),
  [class*="-col"]:not([class*="col-"]) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* ---------- 5. 标题与文字 ---------- */
  h2.tit, h2.section-title, h2.sec-title {
    font-size: 24px !important;
    line-height: 1.4;
  }
  h3 {
    font-size: 18px !important;
  }
  p {
    font-size: 14px !important;
    line-height: 1.7;
  }

  /* ---------- 6. Header 导航微调 ---------- */
  .site-header .navbar {
    height: 64px !important;
    min-height: 64px;
  }
  .site-header .navbar-brand {
    height: 64px;
    padding: 0 10px;
  }
  .site-header .navbar-brand img {
    height: 28px !important;
  }
  .site-header .container-fluid {
    padding-left: clamp(16px, 5%, 40px) !important;
    padding-right: clamp(16px, 5%, 40px) !important;
  }

  /* ---------- 7. Footer 微调（已有基础补充） ---------- */
  .site-footer .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .footer-nav-col {
    width: 100%;
    margin-right: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
  }
  .footer-nav-col:last-child {
    border-bottom: none;
  }
  .footer-links a {
    font-size: 14px;
  }
  .copyright {
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
  }
  .separator {
    display: none;
  }
  .footer-bottom a {
    display: inline-block;
    margin: 2px 6px;
  }

  /* ---------- 8. 按钮与链接 ---------- */
  .btn, a.btn, [class*="-btn"] {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }

  /* ---------- 9. 图片与视频容器 ---------- */
  [class*="-img"], [class*="-photo"], [class*="-pic"] {
    max-width: 100% !important;
  }
  video {
    max-width: 100%;
    height: auto;
  }

  /* ---------- 10. 禁用横向溢出动画 ---------- */
  [data-aos] {
    transform: none !important;
  }
}

/* ==========================================================
   平板端适配（≤ 991.98px，≥ 768px）
   ========================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  [class*="hero-text"],
  [class*="hero-content"],
  [class*="hero-inner"] {
    max-width: 70% !important;
  }
  main section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

/* ==========================================================
   手机端页脚：仅显示 1 级菜单（列标题），下级链接全部隐藏
   （覆盖上方两处手机端规则：原整行隐藏 / 竖排整列展开）
   ========================================================== */
@media (max-width: 767.98px) {
  .footer-nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
  }
  .footer-nav-col {
    width: auto;
    flex: none;
    margin-right: 0;
    border-bottom: none;
    padding-bottom: 0;
  }
  .nav-col-title {
    margin: 0;
    font-size: 15px;
  }
  /* 同特异性压过上方 .footer-nav-col .footer-links{display:block} */
  .footer-nav-col .footer-links { display: none !important; }
}