/* ========== 统一样式解决对齐问题 ========== */
/* 统一导航栏图标按钮样式 (PC端) */
.nav-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 4px !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}

/* 移动端图标容器 */
.mobile-icons-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* 移动端菜单按钮样式 */
.nav-icon-btn-mobile {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 2px !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}

/* 移动端汉堡菜单图标强制白色 */
.nav-icon-btn-mobile i,
.nav-icon-btn-mobile .iconfont,
.nav-icon-btn-mobile .icon-menu {
  color: #ffffff !important;
}

/* 统一图标大小和垂直对齐 */
.nav-icon-btn i,
.nav-icon-btn svg,
.nav-icon-btn-mobile i,
.nav-icon-btn-mobile svg {
  display: inline-block !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}

/* 字体图标大小统一 */
.nav-icon-btn i,
.nav-icon-btn-mobile i {
  font-size: 20px !important;
}

/* SVG图标大小统一 */
.nav-icon-btn svg,
.nav-icon-btn-mobile svg {
  width: 20px !important;
  height: 20px !important;
}

/* 确保按钮容器内的所有元素垂直居中 */
.d-flex.align-items-start {
  align-items: center !important;
}

/* 移除原有按钮可能的额外边距 */
.btn-icon {
  padding: 0 !important;
}

/* 确保所有图标按钮高度一致 */
.btn-lg-large {
  min-width: 40px !important;
  min-height: 40px !important;
}

/* PC端隐藏移动端图标容器，移动端隐藏PC端图标按钮 */
@media (min-width: 768px) {
  .mobile-icons-wrapper {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .d-none.d-md-inline-flex {
    display: none !important;
  }
}


/* ========== 导航栏样式 - 白色字体，悬浮金色 ========== */

/* 1. 所有导航链接文字白色 */
#header .navbar a,
#header .navbar li a,
#header .navbar-item a,
#header .header-nav a,
#header .navbar ul li a {
  margin-right: 3px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
}

/* 2. 导航链接悬浮金色 */
#header .navbar a:hover,
#header .navbar li a:hover,
#header .navbar-item a:hover,
#header .header-nav a:hover {
  color: #ffd700 !important;
  -webkit-text-fill-color: #ffd700 !important;
}

/* 3. 所有图标白色 */
#header .icon,
#header .iconfont,
#header button i,
#header .btn i {
  color: #ffffff !important;
}

/* 4. SVG图标白色填充 */
#header svg,
#header svg path {
  fill: #ffffff !important;
}

/* 5. 图标悬浮金色 */
#header button:hover .icon,
#header button:hover .iconfont,
#header .btn:hover i,
#header button:hover svg,
#header button:hover svg path {
  color: #ffd700 !important;
  fill: #ffd700 !important;
}

/* 6. 下拉菜单背景色 */
#header .navbar ul,
#header .navbar ul li {
  background-color: rgb(47, 16, 31) !important;
}

#header .navbar ul li a {
  color: #ffffff !important;
}

#header .navbar ul li a:hover {
  color: #ffd700 !important;
}

/* 7. 移除渐变文字效果 */
#header .navbar>li {
  background-image: none !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: unset !important;
  animation: none !important;
}


/* ========== 移动端菜单样式 - 所有文字白色 ========== */

/* 移动端抽屉菜单所有文字强制白色 */
#globalNav,
#globalNav * {
  color: #ffffff !important;
}

/* 关闭按钮基础样式 - 增强可见性 */
.close-menu-btn {
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 10 !important;
}

.close-menu-btn span {
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: bold !important;
  line-height: 1 !important;
}

.close-menu-btn:hover {
  background: rgba(255, 215, 0, 0.25) !important;
  border-color: #ffd700 !important;
  transform: scale(1.05) !important;
}

.close-menu-btn:hover span {
  color: #ffd700 !important;
}

/* 确保移动端菜单内容背景色正确 */
#globalNav .modal-content {
  background-color: rgb(47, 16, 31) !important;
}

#globalNav .modal-body {
  background-color: rgb(47, 16, 31) !important;
}

/* 移动端菜单头部区域样式 */
#globalNav .header-utility {
  background-color: transparent !important;
  padding-bottom: 15px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 移动端导航链接样式 */
#globalNav .navbar a,
#globalNav .navbar-item a,
#globalNav .header-nav a {
  color: #ffffff !important;
  font-size: 16px !important;
  padding: 12px 0 !important;
  display: block !important;
}

#globalNav .navbar a:hover,
#globalNav .navbar-item a:hover,
#globalNav .header-nav a:hover {
  color: #ffd700 !important;
}

/* 移动端子菜单样式 */
#globalNav .navbar ul,
#globalNav .navbar ul li {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

#globalNav .navbar ul li a {
  color: #ffffff !important;
  padding-left: 20px !important;
}

/* 移动端底部的关闭按钮样式 */
#globalNav .modal-footer .btn-circle {
  width: 50px !important;
  height: 50px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}

#globalNav .modal-footer .btn-circle span {
  font-size: 28px !important;
  font-weight: bold !important;
}

#globalNav .modal-footer .btn-circle:hover {
  background: rgba(255, 215, 0, 0.25) !important;
  border-color: #ffd700 !important;
  transform: scale(1.05) !important;
}

#globalNav .modal-footer .btn-circle:hover span {
  color: #ffd700 !important;
}

/* 移动端搜索框样式 */
#globalNav .sch-m .schinput {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

#globalNav .sch-m .schinput::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

#globalNav .sch-m button i {
  color: #ffffff !important;
}

/* 移动端菜单内容样式 */
@media (max-width: 768px) {
  #globalNav .modal-body {
    padding: 20px !important;
  }

  #globalNav .navbar a {
    font-size: 16px !important;
    padding: 12px 0 !important;
    display: block !important;
  }

  /* 确保关闭按钮在移动端可见 */
  #globalNav .close-menu-btn {
    display: inline-flex !important;
  }
}

/* 日历按钮文字样式 */
#globalNav .calendar-text {
  color: #ffffff !important;
}

/* 所有图标在移动端菜单中为白色 */
#globalNav .iconfont,
#globalNav i {
  color: #ffffff !important;
}

/* ========== 页脚基础样式 ========== */

/* 基础样式 */
#footer,
#footer div,
#footer a,
#footer strong,
#footer span {
  color: #ffffff !important;
}

#footer a:hover,
#footer a:focus {
  color: #ffd700 !important;
}

/* 左侧菜单链接样式 */
.footer-links-wrapper {
  flex: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-link {
  display: inline-block;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.footer-link:hover {
  color: #ffd700 !important;
  text-decoration: none;
}

/* 右侧联系信息样式 - 一列两行 */
.footer-contact-wrapper {
  flex-shrink: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}

.contact-item {
  font-size: 14px;
  white-space: nowrap;
}

.contact-item strong {
  font-weight: 600;
  margin-right: 5px;
}

/* 返回顶部图标样式 */
#footer .icon-nav-top {
  color: #ffffff !important;
}

#footer .content-top:hover .icon-nav-top {
  color: #ffd700 !important;
}

/* ========== 响应式布局 ========== */

/* 平板端 (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .footer-links {
    gap: 6px 12px;
  }

  .footer-link {
    font-size: 13px;
    white-space: nowrap;
  }

  .contact-item {
    font-size: 13px;
    white-space: nowrap;
  }
}

/* 手机端 (小于768px) - 改为上下布局 */
@media (max-width: 767px) {
  .footer-grid {
    flex-direction: column !important;
    gap: 20px;
  }

  .footer-links-wrapper {
    width: 100%;
  }

  .footer-links {
    justify-content: center;
    gap: 8px 12px;
  }

  .footer-link {
    font-size: 12px;
    white-space: nowrap;
    padding: 4px 0;
  }

  .footer-contact-wrapper {
    width: 100%;
  }

  .footer-contact {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }

  .contact-item {
    font-size: 12px;
    white-space: nowrap;
  }

  /* 移动端字体大小调整 */
  .footer-col div {
    font-size: 13px !important;
  }

  .footer-col strong {
    width: 80px !important;
    font-size: 13px !important;
  }

  /* 整体内边距调整 */
  #footer .container {
    padding: 0 15px;
  }

  /* 信息区域间距调整 */
  .footer-grid {
    padding: 0 !important;
  }
}

/* 超小屏手机 (小于480px) */
@media (max-width: 480px) {
  .footer-link {
    font-size: 11px;
    white-space: nowrap;
  }

  .contact-item {
    font-size: 11px;
    white-space: nowrap;
  }

  .footer-contact {
    gap: 12px;
  }

  /* 超小屏强制换行显示链接 */
  .footer-links {
    justify-content: center;
  }
}

/* 链接悬浮效果 */
#footer a {
  transition: color 0.3s ease;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}


/* index样式 */
/* 新闻图片统一比例样式 */
.billboard-img {
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
}

.billboard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.billboard:hover .billboard-img img {
  transform: scale(1.05);
}

.billboard-item {
  margin-bottom: 30px;
}

/* 返回顶部按钮样式 */
.content-top,
#contentTop {
  cursor: pointer;
  transition: all 0.3s ease;
}

.content-top:hover,
#contentTop:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* 平滑滚动全局样式 */
html {
  scroll-behavior: smooth;
}

/* 返回顶部按钮完整样式 */
.content-top,
#contentTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
  visibility: visible;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-top:hover,
#contentTop:hover {
  opacity: 1 !important;
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.content-top i,
#contentTop i {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: bold;
}

/* 移动端适配 */
@media (max-width: 768px) {

  .content-top,
  #contentTop {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .content-top i,
  #contentTop i {
    font-size: 18px;
  }
}

/* 二级菜单栏显示逻辑 */
/* 终极强制下拉菜单 最高权重 通杀所有冲突 */
#header ul.navbar > li.navbar-item {
  position: relative !important;
}

#header ul.navbar > li.navbar-item ul {
  display: none !important;
  position: absolute !important;
  left: 0 !important;
  top: 100% !important;
  background: rgb(47, 16, 31) !important;
  width: 200px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 999999 !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

#header ul.navbar > li.navbar-item:hover ul {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}