@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("../fonts/AlibabaPuHuiTi-3-55-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #09519b;
  --primary-light: #0a6dad;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #b0afaf;
  --gray-dark: #666666;
  --text-dark: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
button,
input,
select,
textarea {
  font-family:
    "Alibaba PuHuiTi", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
    sans-serif;
}

body {
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部信息栏 */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary-color);
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
}

.top-bar-item svg {
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
}

.lang-item {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lang-item.active {
  opacity: 1;
  font-weight: 500;
}

.lang-item:hover {
  opacity: 1;
}

.lang-divider {
  opacity: 0.5;
}

/* 导航栏 */
header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-item {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  padding: 10px 0;
  transition: color 0.3s;
}

.nav-item:hover {
  color: var(--primary-color);
}

.nav-item.has-submenu::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  vertical-align: -1px;
  background: no-repeat center / 12px 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237c8da3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.nav-item.has-submenu:hover::before {
  transform: rotate(180deg);
  filter: brightness(0) saturate(100%) invert(25%) sepia(56%) saturate(1591%)
    hue-rotate(185deg) brightness(89%) contrast(95%);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.98);
  transform-origin: top center;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(8, 52, 98, 0.16);
  border: 1px solid rgba(9, 81, 155, 0.12);
  border-radius: 14px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  padding: 10px;
  z-index: 20;
  margin-top: 12px;
}

.submenu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(9, 81, 155, 0.12);
  border-left: 1px solid rgba(9, 81, 155, 0.12);
  transform: translateX(-50%) rotate(45deg);
}

.submenu::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.submenu a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 14px;
  color: #24354a;
  border-radius: 10px;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.submenu a:not(:last-child) {
  margin-bottom: 4px;
}

.submenu a:hover {
  background: rgba(9, 81, 155, 0.08);
  color: var(--primary-color);
}

.submenu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  padding: 8px 12px !important;
}

.submenu-item img {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
}

.submenu-item span {
  font-size: 14px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 24px;
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  transition: width 0.4s ease;
  z-index: -1;
}

.contact-btn:hover {
  color: var(--white);
}

.contact-btn:hover::before {
  width: 100%;
}

/* 通用区块标题 */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-title .en-subtitle {
  font-size: 14px;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.8;
}

.section-title p {
  font-size: 16px;
  color: var(--gray-dark);
}

/* 底部联系 */
.footer-contact {
  padding: 80px 0 40px;
  background: var(--white);
  color: var(--text-dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-info {
  flex: 1;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer-info p {
  font-size: 15px;
  color: var(--gray-dark);
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  cursor: pointer;
}

.social-icon:hover {
  background: var(--white);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.social-icon:hover svg {
  fill: var(--primary-color);
}

.footer-qr {
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}

.footer-qr img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--primary-color);
  padding: 5px;
}

.footer-qr span {
  font-size: 12px;
  color: var(--gray-dark);
}

.footer-links {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--gray-dark);
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 13px;
  color: var(--gray-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary-color);
}

.footer-bottom .beian-police {
  display: inline-flex;
  align-items: center;
}

/* 移动端菜单 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 80px 20px 20px;
  z-index: 998;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-item {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-dark);
  font-size: 16px;
}

.mobile-nav-item.has-submenu > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-nav-item.has-submenu > span::after {
  content: "+";
  font-size: 20px;
  transition: transform 0.3s;
}

.mobile-nav-item.has-submenu.active > span::after {
  transform: rotate(45deg);
}

.mobile-submenu {
  display: none;
  padding-left: 15px;
  padding-top: 10px;
}

.mobile-nav-item.has-submenu.active .mobile-submenu {
  display: block;
}

.mobile-submenu a {
  display: block;
  padding: 10px 0;
  color: var(--gray-dark);
  font-size: 14px;
}

.mobile-contact {
  background: var(--primary-color);
  color: var(--white) !important;
  text-align: center;
  border-radius: 8px;
  margin-top: 15px;
  border: none;
}

/* 通用响应式 */
@media (max-width: 1200px) {
  .section-title h2 {
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  .section-title h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }

  .nav-menu {
    display: none;
  }

  .contact-btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 30px;
  }

  .footer-contact {
    padding: 50px 0 30px;
  }

  .footer-info {
    text-align: center;
  }

  .footer-logo img {
    height: 45px;
  }

  .footer-info p {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 15px;
  }

  .footer-qr {
    align-items: center;
    margin-top: 10px;
  }

  .footer-qr img {
    width: 80px;
    height: 80px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 15px;
  }

  .footer-col h4 {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .footer-col ul li {
    margin-bottom: 8px;
  }

  .footer-col ul li a {
    font-size: 12px;
  }

  .footer-bottom {
    padding-top: 20px;
    font-size: 11px;
  }

  /* 顶部栏移动端 */
  .top-bar-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px 15px;
    justify-content: space-between;
  }

  .top-bar-left {
    flex-wrap: nowrap;
    gap: 10px;
    flex-shrink: 1;
    min-width: 0;
  }

  .top-bar-item {
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .top-bar-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .top-bar-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-bar-right {
    flex-shrink: 0;
  }

  .lang-switcher {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}
