/* mweb/css/common.css
   公共样式：对照小程序 app.wxss + nav-bar / Tabbar / Tool / banner 组件
   单位换算：小程序 rpx → px 按 1rpx = 0.5px（750rpx 设计稿）
   品牌色：主蓝 #0074bc / 金 #f8b823 / 深蓝 #1a3a5c / 深字 #1a1a1a / 浅底 #f5f7fa */

:root {
  --brand: #0074bc;
  --gold: #f8b823;
  --deep: #1a3a5c;
  --app-max: 480px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #e9edf2;
  font: 14px/1.5 'Microsoft Yahei', Arial, sans-serif;
  color: #666;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* 页面外壳：手机宽度，桌面端居中，模拟小程序窗口 */
.page-app {
  position: relative;
  width: 100%;
  max-width: var(--app-max);
  margin: 0 auto;
  min-height: 100vh;
  background: #f5f7fa;
  overflow-x: hidden;
}
.page-app.page-bg-white { background: #ffffff; }
.page-app.page-bg-gray  { background: #f5f5f5; }
.page-app.page-bg-f6f8  { background: #f5f6f8; }

/* 通用工具类（对照 app.wxss） */
.cor-8 { color: #0074bc !important; }
.backcol-8 { background: linear-gradient(to right, #0074bc, #049ec8) !important; }

.text-primary { color: #0074bc; }
.text-gold { color: #f8b823; }
.bg-primary { background: #0074bc; }

.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ellipsis-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ===================== Toast（对照 wx.showToast） ===================== */
.lx-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  z-index: 99999;
  max-width: 70%;
  text-align: center;
  pointer-events: none;
}

/* ===================== 顶部导航（对照 components/nav-bar） ===================== */
.nav-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max);
  z-index: 999;
  background: #ffffff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 滚动后加投影（对照 .nav-bar--solid / 官网 .top-header.active） */
.nav-bar.nav-bar--solid {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
}

.nav-bar__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0 10px 12px;
  width: 100%;
}

.nav-placeholder { height: 84px; }

.nav-bar__left { display: flex; align-items: center; flex-shrink: 0; }

.nav-bar__logo-box { display: flex; align-items: center; flex-shrink: 0; }

/* Logo 色块占位（对应 syswebfig.Logo） */
.nav-bar__logo {
  /*height: 49px;*/
  width: 161px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0074bc 0%, #0d5a9c 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.nav-bar__logo img{width:100%;}
.nav-bar__logo .logo-cn {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 3px;
}
.nav-bar__logo .logo-en {
  font-size: 8px;
  letter-spacing: 1.5px;
  opacity: 0.85;
}

/* ---------- 右侧：语言 + 汉堡 ---------- */
.nav-bar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 12px;
}

/* 语言切换（对照 .lang-box） */
.lang-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333333;
  white-space: nowrap;
  padding: 5px 0;
  cursor: pointer;
  user-select: none;
}
.lang-box__label { font-size: 13px; color: inherit; }
.lang-box__arrow {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #333333;
  transition: transform 0.2s ease;
}
.lang-box--open .lang-box__arrow { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  min-width: 130px;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.lang-dropdown--show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-item {
  display: block;
  padding: 10px 16px;
  color: #333333;
  font-size: 14px;
  cursor: pointer;
}
.lang-item--active, .lang-item:hover {
  background-color: #f2f7fd;
  color: #2277bb;
}

/* 汉堡按钮（对照 .nav-bar__menu / menu.png） */
.nav-bar__menu {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-burger, .menu-burger::before, .menu-burger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 1px;
  content: '';
  position: relative;
  transition: transform 0.2s;
}
.menu-burger::before { position: absolute; top: -6px; }
.menu-burger::after { position: absolute; top: 6px; }

/* ===================== 抽屉遮罩（对照 .mm-overlay） ===================== */
.mm-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mm-overlay.show { opacity: 1; visibility: visible; }

/* ===================== 抽屉（对照 .mm-drawer：240px 右侧滑入） ===================== */
.mm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  padding: 0 20px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
   visibility: hidden;
  /* 关闭时彻底隐藏：宽屏下抽屉贴容器右缘，仅 translateX(100%) 仍会留在屏幕内 */
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.mm-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s ease, visibility 0s;
}


/* 桌面端：抽屉贴容器右缘 */
@media (min-width: 481px) {
  .mm-drawer { right: calc(50% - var(--app-max) / 2); }
  .tool-wrap { right: calc(50% - var(--app-max) / 2 + 10px); }
}

.mm-close {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 60px;
  margin-bottom: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.mm-close-x {
  font-size: 26px;
  color: #666;
  font-family: Arial, sans-serif;
  line-height: 1;
  transform: rotate(45deg);
  display: inline-block;
}

.mm-list { flex: 1; min-height: 0; width: 100%; overflow-y: auto; }
.mm-item { border-bottom: 1px solid #eee; }

.mm-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  user-select: none;
}
.mm-title-text { font-size: 14px; font-weight: 500; color: #333333; }
.mm-title:hover .mm-title-text { color: #2277bb; }
.mm-title-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.mm-title-arrow.cur { transform: rotate(45deg); }

.mm-sub { padding-left: 16px; border-bottom: none; }
.mm-sub-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  user-select: none;
}
.mm-sub-title-text { font-size: 15px; color: #333333; }
.mm-sub-title:hover .mm-sub-title-text { color: #2277bb; }
.mm-sub-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(-45deg);
  transition: transform 0.24s ease;
  flex-shrink: 0;
}
.mm-sub-arrow.cur { transform: rotate(45deg); }
.mm-sub-content { padding-left: 16px; }
.mm-link { padding: 8px 0; font-size: 14px; color: #666666; cursor: pointer; }
.mm-link:hover { color: #2277bb; }

/* ===================== 底部 Tabbar（对照 components/Tabbar） ===================== */
.Tabbar_un {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max);
  background-color: #fff;
  z-index: 99;
  box-shadow: 0 0 3px #d4d4d4;
  padding: 0 10px;
}
.Tabbar_un .list_tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.Tabbar_un .list_tab .item {
  width: 20%;
  text-align: center;
  padding: 10px 0;
  color: #333333;
}
/*.Tabbar_un .list_tab .item a { display: block; }*/
.flex {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.Tabbar_un .iconfont {
  font-size: 25px;
  color: #333333;
  height: 30px;
}
.Tabbar_un .item .name {
  font-size: 14px;
  margin-top: 2.5px;
}
.item_phone { color: #ffffff !important; }
.item.item_phone .iconfont { color: #ffffff; height: auto; font-size: 22px; }
.tabbar-clear { height: 75px; }

.item_phone {
  width: 60px !important;
  height: 60px !important;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===================== 悬浮工具（对照 components/Tool） ===================== */
.tool-wrap {
  position: fixed;
  right: 10px;
  bottom: 20%;
  z-index: 98;
}
.tool-item {
  width: 35px;
  height: 35px;
  line-height: 35px;
  margin-bottom: 10px;
  text-align: center;
  opacity: .9;
  border-radius: 50%;
  overflow: hidden;
  color: #8c8c8c;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, .2);
  background-color: rgba(255, 255, 255, .9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-item .iconfont { font-size: 18px; color: #8c8c8c; }

/* ===================== 子页顶部 Banner（对照 components/banner） ===================== */
.banner_box {
  width: 100%;
  height: 175px;
  position: relative;
  overflow: hidden;
}
.banner_box .img_box { width: 100%; height: 100%; position: relative; }
.banner_box .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 背景图色块占位 */
.banner_box .img.img-ph {
  background: linear-gradient(120deg, #1a3a5c 0%, #0074bc 60%, #38a0dc 100%);
}
.banner_box .img_mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.banner_box .container_banner_text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 100%;
  padding: 0 15px;
  text-align: center;
}
.banner_box .container_banner_text .int_box {
  color: #ffffff;
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

/* ===================== 栏目横向 Tab（对照 app.wxss .swiper-tab） ===================== */
.swiper-tab {
  width: 100%;
  height: 44px;
  white-space: nowrap;
  background: #ffffff;
  border-bottom: 1rpx solid #eee;
  border-bottom: 0.5px solid #eee;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.swiper-tab::-webkit-scrollbar { display: none; }
.swiper-tab-list {
  display: inline-block;
  vertical-align: top;
  padding: 0 24px;
  height: 44px;
  line-height: 44px;
  font-size: 15px;
  color: #333333;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
}
.swiper-tab-list.on-8 {
  background: linear-gradient(to right, #007aff 0%, #114378 100%);
  color: #ffffff;
}

/* 隐藏工具类 */
.hidden { display: none !important; }
