/* 导航栏基础样式 */
.navbar {
  /* padding: 0.5rem 2rem; */
  /* position: relative; */
}

.navbar-brand {
  padding: 0 !important;
  margin-right: 5rem !important;
  width: 14.2rem;
}

.navbar-brand img {
  width: 100%;
  height: auto;
}

.navbar.navbar-dark {
  height: 7.375rem;
  /* padding: 1.5rem 2rem !important; */
  padding: 1.5rem 2rem 1.5rem 6.7rem !important;
  background-image: url('../img/icon/navbg.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.navbar-dark .navbar-nav .nav-link {
  color: white !important;
}

.navbar-expand-lg .navbar-nav,
.navbar-expand-lg .navbar-nav .nav-item {
  flex-grow: 1 !important;
}

.container-fluid.currency {
  margin-top: 7.25rem;
}

/* 下拉菜单样式 */
.navbar-nav .dropdown-menu {
  margin-top: 2rem;
  padding: 0;
  border-radius: 0;
  border: none;
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.16);
}

.dropdown-item {
  padding: 1rem 1.5rem;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #2d9cd0;
  font-weight: bold;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #00338D;
  color: white;
}

/* 语言选择器样式 */

.language-selector {
  margin-left: 6rem !important;
}

.form-select.bg-transparent {
  position: relative;
  width: auto;
  padding-right: 1rem;
  background-image: url('../img/icon/arrow.png');
  background-size: auto;
  background-position: right center;
  background-repeat: no-repeat;
}

.form-select.bg-transparent option {
  background: #ffffff;
  color: black;
  padding: 0.5rem 1rem !important;
}

.lang-btn {
  background: none !important;
  color: white !important;
  font-size: 1rem !important;
}

.text-white .dropdown-item {
  color: white !important;
}

.language-switch .dropdown-menu {
  min-width: 8rem;
  margin-top: 2rem;
  padding: 0 !important;
}

.language-switch .dropdown-menu .dropdown-item.active {
  background-color: #2e9ed4;
}

.scrolling-wrapper {
  display: flex;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
  animation-timing-function: linear;
}

.currency-item {
  display: inline-block;
  margin-right: 0;
}

@keyframes scroll {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}



/* 移动端优化 */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }

  .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0;
  }

  .dropdown-item {
    padding: 0.5rem 1.5rem;
  }

  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #00338D;
  }
}

/* 添加自定义样式 */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(90deg, #00338D, #0066CC);
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .language-selector {
    margin-top: 1rem;
    border-top: none;
    padding-top: 1rem;
  }
}

@media (min-width: 992px) {
  .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
  }

  .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* 防止鼠标移动到下拉菜单和导航项之间的间隙时菜单消失 */
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media screen and (max-width: 576px) {}


/* 底部样式 */

.site-footer {
  background-image: url('../img/icon/footerBg.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: white;
  padding: 5rem 0 2rem;
}

/* 主要内容区域样式 */
.footer-sections {
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  position: relative;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.8rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-list a:hover {
  color: white;
}

.logo-block {
  width: 75%;
}

/* 社交链接样式 */
.social-links {
  /* display: flex; */
  display: none !important;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 二维码区域样式 */
.qr-codes {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
}

.qr-item span {
  font-size: 1rem;
  color: #fff;
}

/* 底部版权信息样式 */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.8rem;
  color: #fff;
}

.footer-title .fas {
  display: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

@media (min-width: 1920px) {

  .container-fluid-index.footer-content {
    max-width: 1524px;
  }
}

@media screen and (max-width: 1800px) {
  .qr-item span {
    font-size: 0.875rem;
  }
}

@media screen and (max-width: 1600px) {
  .qr-item span {
    font-size: 0.8rem;
  }
}

@media (max-width: 1300px) {
  .navbar-nav .nav-link {
    padding: 0.5rem !important;
  }

  .footer-sections .col-lg-7 {
    width: 100%;
  }

  .footer-title {
    font-size: 1rem;
  }

  .logo-chat {
    flex-direction: row !important;
    width: 100%;
  }

  .footer-sections .col-lg-3 {
    width: 100%;
  }

  .footer-sections {
    display: flex;
  }

  .logo-block {
    width: 20%;
    margin-bottom: 2rem;
  }

  .logo-chat {
    margin-bottom: 2rem;
    flex-direction: row !important;
  }

  .qr-codes {
    justify-content: center;
  }
}

@media (max-width: 1200px) {
  .navbar-brand {
    width: 10rem;
  }
}

@media (max-width: 1100px) {
  .navbar-brand {
    width: 8rem;
  }

  .navbar.navbar-dark {
    padding: 1.5rem 2rem 1.5rem 2rem !important;
  }
}

/* 小屏幕下的样式 */
@media (max-width: 991.98px) {
  .dropdown-menu {
    display: none;
  }

  .dropdown-menu.show {
    display: block;
    background: none;
    box-shadow: none;
    color: #fff;
  }

  .dropdown-menu.show .dropdown-item {
    color: #fff;
    text-indent: 1rem;
  }

  .qr-codes {
    margin-top: 2rem;
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media screen and (max-width: 880px) {
  .footer-sections {
    margin-bottom: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    margin-top: 0;
  }

  .qr-codes {
    margin-top: 1rem;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .qr-codes {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .footer-title {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
  }

  .footer-title .fas {
    display: block;
    font-size: 12px;
    transform: rotate(0);
    transition: transform .35s ease-in-out;
  }

  .footer-title.active .fas {
    transform: rotate(-180deg);
  }

  .footer-list {
    height: 0;
    overflow: hidden;
    transition: height .35s ease-in-out;
  }
}

@media (min-width: 767.98px) {
  .footer-list {
    height: auto !important;
  }
}

@media (max-width: 576px) {
  .social-links a {
    width: 30px;
    height: 30px;
  }

  .footer-sections .col-12 {
    padding: 0 !important;
    width: 33%;
  }

  .footer-links a {
    font-size: 0.8rem;
  }
}

@media (max-width: 375px) {
  .footer-sections .col-12 {
    width: 50%;
  }
}

@media screen and (max-width: 320px) {
  .navbar-brand {
    width: 60px;
    flex: 1 1 auto;
  }

  .navbar-brand img {
    width: 80px;
  }

  .navbar.navbar-dark {
    padding: 0 0.5rem !important;
  }
}

.search-input {
  position: relative;
}

.search-input .search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #767676;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}