/* =============================================
 * Font Face
 * ============================================= */
@font-face {
  font-family: 'AlibabaPuHuiTi';
  src: url('AlibabaPuHuiTi-2-65-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AlibabaPuHuiTi-55';
  src: url('AlibabaPuHuiTi-2-55-Medium.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =============================================
 * Reset
 * ============================================= */
[v-cloak] {
  display: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

html,
body {
  font-family: 'AlibabaPuHuiTi-55', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
#app::-webkit-scrollbar {
  display: none;
}

html,
body,
#app {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =============================================
 * 屏幕适配策略
 * 默认 1440px，PC 最小 1220px
 * 低于 1220px 横向滚动，不挤压布局
 * ============================================= */
body {
  min-width: 1200px;
  margin: 0 auto;
}

/* =============================================
 * 公共样式
 * ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
}

.btn-primary {
  width: 200px;
  background: #2a2d7c;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex
}

.btn-primary:hover {
  background: #3b3fa0;
}

.section-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
}

.section-desc {
  font-size: 14px;
  color: #818385;
  margin-bottom: 40px;
  text-align: center;
}

.page-placeholder {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-placeholder p {
  font-size: 18px;
  color: #666;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* 色块占位通用 */
.img-placeholder {
  background: #ccc;
  border-radius: 8px;
  flex-shrink: 0;
}

.img-placeholder.small {
  height: 120px;
  object-fit: cover;
}

.mega-img {
  width: 400px;
  height: 260px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

.mega-img-small {
  width: 200px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
}

/* =============================================
 * Header
 * ============================================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}

.top-bar {
  background: #2a2d7c;
  color: #fff;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 20px;
  width: 100%;
}

.top-box {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 0px;
  box-sizing: border-box;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  justify-content: end;
}

/* 语言下拉框 */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-family: inherit;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn .lang-arrow-img {
  width: 8px;
  height: 4px;
  transition: transform 0.3s;
  margin-left: 4px;
  margin-top: 2px;
}

.lang-btn.open .lang-arrow-img {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 80px;
  z-index: 1000;
  overflow: hidden;
}

/* 填补按钮和菜单之间的间隙，防止鼠标移出 */
.lang-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.lang-menu-item {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.lang-menu-item:hover {
  background: #f0f0f0;
}

.lang-menu-item.active {
  color: #2a2d7c;
  font-weight: 600;
  background: #f5f5ff;
}

.top-link {
  color: #fff;
  text-decoration: none;
}

.top-link:hover {
  opacity: 0.8;
}

.brand-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

.brand-icon-img {
  width: 24px;
  height: 24px;
  border-radius: 5%;
  object-fit: cover;
}

.nav-hover-area {
  position: relative;
}

.main-header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  position: relative;
  z-index: 100;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 0px;
}

.logo {
  cursor: pointer;
}


.logo-img {
  width: auto;
  height: 75px;
  object-fit: contain;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-menu .nav-item-wrap {
  list-style: none;
}

.nav-menu .nav-item-label {
  font-size: 24px;
  color: #27287B;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 28px 0;
  transition: color 0.3s;
  box-sizing: border-box;
}

.nav-menu .nav-item-label:hover {
  color: #2a2d7c;
}

/* 移动端子菜单 - PC端隐藏 */
.mobile-sub-menu {
  display: none;
}

.nav-arrow {
  width: 8px;
  height: 4px;
  margin-left: 2px;


}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  min-height: 280px;
  padding: 0 0px;
  box-sizing: border-box;
}

.mega-left {
  width: 420px;
  background: #1a1d5c;
  padding: 32px 0;
  flex-shrink: 0;
}

.mega-left-item {
  padding: 24px 60px;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.5;
}

.mega-left-item.active {
  color: #fff;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.mega-left-item h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 500;
}

.mega-left-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 400;
}

.mega-right {
  flex: 1;
  padding: 32px 40px;
  background: #f8f9fa;
}

.mega-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.mega-content-left {
  /* flex: 1; */
  width: 50%;
}

.mega-link {
  padding: 16px 0;
  cursor: pointer;
  /* border-bottom: 1px solid #eee; */
}

.mega-link:last-child {
  border-bottom: none;
}

.mega-link:hover h4 {
  color: #1a1d5c;
}

.mega-link h4 {
  font-size: 24px;
  color: #1F2021;
  margin-bottom: 8px;
  transition: color 0.3s;
  font-weight: 500;
}

.mega-link p {
  font-size: 16px;
  color: #1F2021;
  font-weight: 400;
}

.mega-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.mini-logo {
  width: auto;
  height: 24px;
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.flag-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: #333;
}

.flag-item .flag-img {
  width: 64px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =============================================
 * Footer
 * ============================================= */
.site-footer {
  background: #d0d0d0;
  /* height: 266px; */
  /* margin-top: 60px; */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  /* display: grid; */
  /* grid-template-columns: repeat(4, 1fr) auto; */
  /* gap: 40px; */
  padding: 40px 0px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 16px;
  color: #333;
}

.footer-col ul li {
  font-size: 16px;
  margin-bottom: 10px;
  color: #1F2021;
  cursor: pointer;
  word-break: break-all;
  font-weight: 400;
}

.footer-col ul li:hover {
  color: #2a2d7c;
}

/* PC端隐藏移动端合并导航 */
.mobile-nav-all {
  display: none;
}

.footer-qr {
  text-align: center;
}

.footer-qr .qr-img {
  width: 98px;
  height: 98px;
  margin: 0 auto 8px;
  display: block;
  border-radius: 4px;
}

.footer-qr p {
  font-size: 14px;
  color: #1F2021;
  font-weight: 400;
}

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid #bbb;
  text-align: center;
  font-size: 18px;
  color: #818385;
  padding-bottom: 40px;
  font-weight: 400;
}

/* =============================================
 * 中间尺寸适配 (768px - 1439px)
 * 去掉1440大留白，布局结构不变，仅缩间距
 * ============================================= */
@media (max-width: 1439px) and (min-width: 768px) {
  body {
    min-width: 100%;
  }

  .container {
    padding: 0 20px;
  }

  .top-box {
    max-width: 1200px !important;
    padding: 0 20px !important;
    margin: 0 auto;
  }

  .top-bar {
    padding: 0 0px;
  }

  .main-header {
    max-width: 1200px !important;
    padding: 0 20px !important;
    margin: 0 auto;
  }

  .mega-inner {
    max-width: 100%;
    padding: 0 20px;
  }

  .mega-left {
    width: 280px;
  }

  .mega-left-item {
    padding: 20px 30px;
  }

  .mega-left-item h3 {
    font-size: 20px;
  }

  .mega-right {
    padding: 24px 20px;
  }

  .mega-content {
    gap: 20px;
  }

  .mega-img {
    width: 240px;
    height: 160px;
  }

  .mega-img-small {
    width: 120px;
    height: 72px;
  }

  .flag-item .flag-img {
    width: 48px;
    height: 24px;
  }

  .flags-grid {
    gap: 16px;
  }

  .nav-menu {
    gap: 24px;
  }

  .nav-menu .nav-item-label {
    font-size: 20px;
  }

  .footer-content {
    padding: 30px 20px;
  }

  .footer-bottom {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* =============================================
 * 平板适配 (768px - 1220px)
 * ============================================= */
@media (min-width: 768px) and (max-width: 1220px) {
  .footer-content {
    padding: 30px 20px;
    gap: 20px;
  }

  .footer-col ul li {
    font-size: 14px;
  }

  .footer-bottom {
    max-width: 100%;
    padding: 12px 0px 30px;
    margin-top: 16px;
  }

  .page-loading-overlay img {
    width: 400px;
    height: 400px;
    object-fit: contain;
  }
}

/* =============================================
 * 移动端适配 (max-width: 767px)
 * ============================================= */
@media (max-width: 767px) {
  body {
    width: 100vw;
    overflow-x: hidden;
    min-width: 100vw;
  }

  .top-box {
    width: 100%;
    padding: 0 0;
    box-sizing: border-box;
  }

  /* ---- Header ---- */
  .top-bar {
    height: 32px;
    padding: 0 16px !important;
    font-size: 12px;
  }

  .lang-btn {
    font-size: 12px;
  }

  .lang-menu-item {
    font-size: 12px;
  }

  .top-bar-right {
    gap: 12px;
  }

  .brand-tag span {
    display: none;
  }

  .main-header {
    max-width: 1200px !important;
    height: 56px;
    padding: 0 16px !important;
    margin: 0 auto;
  }

  .logo-img {
    width: 90px;
    height: 44px;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu .nav-item-wrap {
    border-bottom: 1px solid #eee;
  }

  .nav-menu .nav-item-label {
    padding: 14px 20px;
    font-size: 14px;
  }

  .nav-arrow {
    transition: transform 0.3s;
  }

  /* 移动端子菜单 */
  .mobile-sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
  }

  .mobile-sub-menu.open {
    display: block;
  }

  .mobile-sub-menu li {
    padding: 12px 36px;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    border-bottom: 1px solid #eee;
    cursor: pointer;
  }

  .mobile-sub-menu li:last-child {
    border-bottom: none;
  }

  .mobile-sub-menu li:hover {
    color: #2a2d7c;
    background: #f0f0f0;
  }

  .mega-menu {
    display: none !important;
  }

  /* ---- Footer ---- */
  .site-footer {
    padding: 16px 0 6px;
    height: auto;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
  }

  /* 移动端：所有列合并为一组导航 */
  .footer-col {
    display: none;
    width: 100%;
    margin-bottom: 0;
  }

  /* 显示移动端合并导航 */
  .mobile-nav-all {
    display: block !important;
  }

  .mobile-nav-all ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-nav-all ul li {
    /* font-size: 13px;
    color: #1F2021;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 0;
    padding: 4px 0; */

    font-size: 16px;
    color: #1F2021;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 0;
    padding: 4px 0;
    width: 100%;
    text-align: left;
    border-bottom: 2px solid #c3c3c3;

  }

  .mobile-nav-all ul li:hover {
    color: #2a2d7c;
  }

  .footer-qr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    margin-top: 10px;
  }

  .footer-qr .qr-img {
    margin: 0;
    width: 40px;
    height: 40px;
  }

  .footer-qr p {
    font-size: 11px;
  }

  .footer-bottom {
    max-width: 100%;
    font-size: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin: 8px 12px 0;
  }

  /* ---- 公共 ---- */
  .container {
    padding: 0 16px;
  }

  .page-placeholder {
    min-height: 40vh;
  }
}

/* =============================================
 * 页面加载遮罩
 * ============================================= */
.page-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.page-loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.page-loading-overlay img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

/* =============================================
 * 右侧浮窗
 * ============================================= */
.side-float {
  position: fixed;
  right: 0;
  top: 40%;
  z-index: 999;
  /* 渐变色 */
  background: linear-gradient(to bottom, #494DD5, #212371);
  border-radius: 8px 0 0 8px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.3s;
  width: 48px;
  height: 103px;
  font-size: 12px;

}

.side-float:hover {
  opacity: 0.85;
}

.side-float .float-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.side-float .float-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.side-float .float-text {
  color: #fff;
  font-size: 12px;
  width: 34px;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-all;
}