/* ======= 公共头部和页脚样式（PC+移动端，含抽屉菜单） ======= */

/* 顶部信息栏、导航栏、logo、菜单按钮 */
.top-bar {
  background: linear-gradient(135deg, #54cccc 0%, #4dd0e1 100%); /* 与移动端一致的渐变 */
  color: #fff;
  font-size: 14px;
  padding: 8px 0; /* 增加padding提供更好的视觉效果 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000; /* 降低z-index，让导航栏和抽屉菜单在上层 */
  box-shadow: 0 2px 8px rgba(84, 204, 204, 0.25); /* 添加微妙阴影 */
}

/* 为body添加顶部padding，避免内容被固定头部遮挡 */
body {
  padding-top: 140px !important; /* PC端：顶部信息栏(40px) + 导航栏(60px) + 安全边距(40px) */
  margin: 0 !important;
}

.language-selector a {
  color: #fff;
  margin-left: 8px;
  font-size: 14px;
  text-decoration: none;
}
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1100; /* 提高z-index，确保在顶部信息栏之上 */
  position: fixed;
  top: 40px; /* PC端位置，适应新的顶部信息栏高度 */
  left: 0;
  right: 0;
  width: 100%;
}
.navbar .navbar-brand img,
.navbar-brand img {
  height: 48px;
  max-height: 48px;
  width: auto;
  transition: all 0.3s;
}
@media (max-width: 991px) {
  .navbar .navbar-brand img,
  .navbar-brand img {
    height: 36px !important;
    max-height: 36px !important;
  }
  .navbar .container.d-flex {
    flex-wrap: nowrap;
    align-items: center;
  }
  .mobile-menu-btn {
    margin-left: auto;
    margin-right: 0;
    display: flex !important;
    align-items: center;
    height: 44px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    justify-content: center;
    z-index: 1250; /* 确保汉堡菜单按钮可点击 */
  }
  body {
    padding-top: 140px !important; /* 移动端：顶部信息栏(70px) + 导航栏(50px) + 安全边距(20px) */
    margin: 0 !important;
  }
  
  .top-bar {
    padding: 10px 0; /* 保持与移动端样式一致 */
    z-index: 1000; /* 确保在最底层 */
    height: auto; /* 允许高度自适应 */
    min-height: 70px; /* 增加最小高度适应新的padding */
  }
  
  .navbar {
    top: 80px; /* 调整移动端导航栏位置，适应新的顶部信息栏高度 */
    z-index: 1200; /* 确保导航栏在顶部信息栏之上 */
  }
  
  .mobile-drawer {
    z-index: 1300; /* 确保抽屉菜单在最上层 */
  }
  
  .mobile-drawer .drawer-content {
    z-index: 1350; /* 确保抽屉内容在最上层 */
  }
}
.menu-icon {
  display: block;
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  position: relative;
  transition: background 0.3s;
}
.menu-icon::before, .menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2.5px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

/* PC端菜单 */
.navbar-nav {
  gap: 18px;
}
.navbar-nav .nav-link {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  border-radius: 4px;
  transition: all 0.3s;
  text-decoration: none;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #54cccc;
  /* background: #ff6633; */
}

/* PC端导航active高亮 */
.navbar-nav .nav-item.active > .nav-link {
  color: #54cccc;
  /* background: #ff6633; */
}

/* ======= 移动端抽屉菜单样式======= */
@media (max-width: 991px) {
  .mobile-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    background: transparent;
    z-index: 1300; /* 确保抽屉菜单在吸顶导航之上 */
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  }
  .mobile-drawer .drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1200;
    pointer-events: none;
  }
  .mobile-drawer .drawer-content {
    position: absolute;
    top: 0; right: 0; height: 100vh;
    width: 50vw; /* 半屏宽度 */
    max-width: 320px;
    min-width: 220px;
    background: #23272b;
    color: #fff;
    box-shadow: -2px 0 16px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    z-index: 1201;
  }
  .mobile-drawer.open {
    pointer-events: auto;
  }
  .mobile-drawer.open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-drawer.open .drawer-content {
    transform: translateX(0);
  }
  .drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    position: absolute;
    top: 18px; right: 22px;
    z-index: 2;
    cursor: pointer;
    transition: color 0.2s;
  }
  .drawer-close:hover { color: #54cccc; }
  .drawer-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 36px 0 0 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.4rem !important;
    align-items: flex-start !important;
  }
  .drawer-menu li a,
  .drawer-menu li a:visited,
  .drawer-menu li a:active,
  .drawer-menu li a:focus,
  .drawer-menu li a:hover {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    color: #fff !important;
    font-size: 0.98rem !important;
    padding: 0.28rem 1rem !important;
    border-radius: 0 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
  }
  .drawer-menu li a:hover, .drawer-menu li a.active {
    background: #54cccc !important;
    color: #fff !important;
  }
  /* 移动端抽屉菜单active高亮 */
  .drawer-menu .active > a,
  .drawer-menu li a.active {
    background: #54cccc !important;
    color: #fff !important;
  }
}

/* ======= 页脚样式 ======= */
.footer {
  background: #23272b;
  color: #fff;
  padding: 40px 0 20px 0;
  font-size: 15px;
}
.footer h5 {
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.footer p, .footer a {
  color: #bbb;
  font-size: 0.98rem;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}
.social-links a {
  color: #bbb;
  margin: 0 8px;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.social-links a:hover {
  color: #fff;
}
.footer .list-unstyled {
  padding-left: 0;
}
.footer .list-unstyled li {
  margin-bottom: 8px;
}
.footer .list-unstyled a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s;
}
.footer .list-unstyled a:hover {
  color: #54cccc !important;
  text-decoration: underline;
}
@media (max-width: 991px) {
  .footer {
    text-align: center;
    padding: 32px 0 12px 0;
  }
  .footer h5 {
    margin-bottom: 12px;
  }
  .footer .list-unstyled li {
    margin-bottom: 6px;
  }
}
/* ======= 公共头部和页脚样式结束======= */

/* ======= 24/7 Support & GET IN TOUCH 公共样式开�?======= */
.support-contact-section {
  margin: 3rem 0;
}
.support-contact-section .support-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.support-contact-section .support-info img {
  width: 60px;
  height: 60px;
}
.support-contact-section .support-info h2 {
  font-weight: 700;
  font-size: 2rem;
  margin: 0;
}
.support-contact-section .support-desc {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: #333;
}
.support-contact-section .support-desc span {
  color: #54cccc;
}
.support-contact-section .contact-form {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border-radius: 12px;
  padding: 2rem 1.5rem;
}
.support-contact-section .contact-form .form-control {
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 10px 14px;
  background: #fff;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.support-contact-section .contact-form .form-control:focus {
  border-color: #54cccc;
  box-shadow: 0 0 0 0.2rem rgba(35, 140, 255, 0.25);
  outline: none;
}
.support-contact-section .contact-form .btn {
  background: #54cccc;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.5rem 2.5rem;
  border-radius: 6px;
  border: none;
  transition: background-color 0.3s;
}
.support-contact-section .contact-form .btn:hover {
  background: #1a75d1; /* 鼠标悬停时颜色变�?*/
  color: #fff;
}
@media (max-width: 991px) {
  .support-contact-section .support-info h2 {
    font-size: 1.3rem;
  }
  .support-contact-section .contact-form {
    padding: 1.2rem 0.7rem;
  }
}
@media (max-width: 768px) {
  .support-contact-section {
    margin: 2rem 0;
  }
  .support-contact-section .support-info img {
    width: 44px;
    height: 44px;
  }
  .support-contact-section .support-info h2 {
    font-size: 1.1rem;
  }
  .support-contact-section .support-desc {
    font-size: 0.98rem;
  }
  .support-contact-section .contact-form {
    padding: 1rem 0.5rem;
  }
  .support-contact-section .contact-form .btn {
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
  }
}
/* ======= 24/7 Support & GET IN TOUCH 公共样式结束 ======= */

/* ======= PC端LOGO和菜单排版优化开�?======= */
.navbar .navbar-brand img,
.navbar-brand img {
  height: 48px;
  max-height: 48px;
  width: auto;
  transition: all 0.3s;
}
@media (max-width: 991px) {
  .navbar .navbar-brand img,
  .navbar-brand img {
    height: 36px !important;
    max-height: 36px !important;
  }
}
/* PC端菜单横向排列，移动端隐�?*/
.navbar-nav.d-none.d-lg-flex {
  display: flex !important;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 991px) {
  .navbar-nav.d-none.d-lg-flex {
    display: none !important;
  }
}
/* 移动端菜单按钮和抽屉菜单只在小屏显示，PC端隐�?*/
@media (min-width: 992px) {
  .mobile-menu-btn, .mobile-drawer {
    display: none !important;
  }
}
@media (max-width: 991px) {
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
    height: 36px;
  }
  .mobile-drawer {
    display: block !important;
  }
}
/* ======= PC端LOGO和菜单排版优化结�?======= */

/* ======= PC端导航栏整体高度和LOGO、菜单优化开�?======= */
@media (min-width: 992px) {
  .navbar {
    min-height: 84px !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
  .navbar .navbar-brand img,
  .navbar-brand img {
    height: 50px;
    max-height: 90px;
  }
  .navbar-nav.d-none.d-lg-flex {
    gap: 1.2rem;
  }
  .navbar-nav.d-none.d-lg-flex .nav-link {
    font-size: 1.18rem;
    padding: 0.5rem 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
  }
}
/* ======= PC端导航栏整体高度和LOGO、菜单优化结�?======= */

/* 顶部信息栏联系信息样式 */
.top-bar .contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
}

.top-bar .contact-item a {
  color: #fff;
  text-decoration: none;
}

/* 移动端顶部信息栏优化 */
@media (max-width: 768px) {
  .top-bar {
    padding: 10px 0; /* 增加padding为两行内容提供空间 */
    min-height: 60px; /* 设置最小高度 */
    background: linear-gradient(135deg, #4dd0e1 0%, #26c6da 100%) !important; /* 更好看的渐变 */
    box-shadow: 0 2px 8px rgba(77, 208, 225, 0.25); /* 添加微妙阴影 */
  }
  
  .top-bar .container {
    padding: 0 20px; /* 增加容器内边距 */
    height: 100%;
    display: flex;
    align-items: center;
  }
  
  .top-bar .ms-auto {
    display: flex !important;
    flex-direction: column !important; /* 改为垂直排列，分两行显示 */
    align-items: flex-end !important; /* 改为右对齐 */
    justify-content: center !important;
    gap: 5px !important; /* 两行之间的间距 */
    font-size: 13px !important;
    width: 100% !important;
    line-height: 1.3 !important;
  }
  
  .top-bar .contact-item {
    font-size: 13px;
    gap: 0.5rem;
    white-space: nowrap; /* 防止文字换行 */
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15); /* 半透明白色背景 */
    padding: 4px 8px; /* 内边距 */
    border-radius: 15px; /* 圆角 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    transition: all 0.3s ease; /* 过渡动画 */
  }
  
  .top-bar .contact-item:hover {
    background: rgba(255, 255, 255, 0.25); /* 悬停效果 */
    transform: translateY(-1px); /* 微妙上移 */
  }
  
  .top-bar .contact-item span:first-child {
    display: inline; /* 保留"Whatsapp:"和"Email:"文字 */
    font-weight: 600; /* 加粗标签 */
  }
  
  .top-bar .contact-item a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 500; /* 联系方式稍微加粗 */
  }
}

/* 超小屏幕（手机竖屏）进一步优化 */
@media (max-width: 480px) {
  .top-bar {
    padding: 8px 0;
    min-height: 60px; /* 增加最小高度保持一致性 */
    background: linear-gradient(135deg, #4dd0e1 0%, #26c6da 100%) !important; /* 保持渐变 */
    box-shadow: 0 2px 8px rgba(77, 208, 225, 0.25); /* 保持阴影 */
  }
  
  .top-bar .container {
    padding: 0 15px; /* 超小屏幕适中的内边距 */
  }
  
  .top-bar .ms-auto {
    font-size: 12px !important;
    gap: 4px !important;
    align-items: flex-end !important; /* 超小屏幕也保持右对齐 */
  }
  
  .top-bar .contact-item {
    font-size: 12px;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15); /* 保持半透明背景 */
    padding: 3px 6px; /* 超小屏幕的内边距 */
    border-radius: 12px; /* 稍小的圆角 */
    backdrop-filter: blur(8px); /* 毛玻璃效果 */
  }
  
  .top-bar .contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
  }
  
  .top-bar .contact-item span:first-child {
    font-weight: 600;
  }
  
  .top-bar .contact-item a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 500;
  }
  
  body {
    padding-top: 130px !important; /* 超小屏：顶部信息栏(60px) + 导航栏(50px) + 安全边距(20px) */
    margin: 0 !important;
  }
  
  .navbar {
    top: 68px; /* 调整超小屏幕的导航栏位置 */
  }
} 
