@charset "utf-8";
/* ==========================================================================
   通用页头样式  header.css
   站点：WordPress 主题 WMJ
   说明：只作用于页头（.th-head），不修改页面其它区域；类名前缀统一 th-
   --------------------------------------------------------------------------
   目录
   01  变量与基础
   02   布局容器
   03   顶部信息条
   04   语言切换
   05   社交媒体
   06   主导航
   07   下拉菜单
   08   搜索与 CTA
   09   移动端顶栏
   10   侧滑抽屉
   11   覆盖主题旧样式
   12   断点
   13   动效与无障碍
   ========================================================================== */


/* ==========================================================================
   01  变量与基础
   ========================================================================== */
.th-head{
  --th-navy:#014daf;
  --th-navy-deep:#081d4e;
  --th-red:#014daf;
  --th-red-dark:#c8232f;
  --th-wa:#25d366;
  --th-ink:#1a2233;
  --th-ink-2:#3a465f;
  --th-muted:#8794ad;
  --th-line:#e8edf6;
  --th-max:1920px;
  --th-topbar-h:40px;
  --th-main-h:86px;

  position:sticky;
  top:0;
  z-index:99;
  width:100%;
  padding:0;                 /* 覆盖主题 .web_head 的 padding */
  background:#fff;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--th-ink);
  -webkit-font-smoothing:antialiased;
}
.th-head *,
.th-head *:before,
.th-head *:after{box-sizing:border-box}
.th-head a{text-decoration:none;color:inherit}
.th-head ul,.th-head li{list-style:none;margin:0;padding:0}
.th-head button{font-family:inherit;border:0;background:none;cursor:pointer;color:inherit;padding:0}
.th-head svg{display:block}
.th-head img{max-width:100%;height:auto;display:block}


/* ==========================================================================
   02  布局容器
   ========================================================================== */
.th-container{
  width:min(var(--th-max),95%);
  margin:0 auto;
  display:flex;
  align-items:center;
}


/* ==========================================================================
   03  顶部信息条
   ========================================================================== */
.th-topbar{
  position:relative;
  background:var(--th-navy);
  color:#fff;
}
.th-topbar .th-container{
  height:var(--th-topbar-h);
  justify-content:space-between;
}

/* 左侧：邮箱 / WhatsApp */
.th-contact{display:flex;align-items:center;gap:26px;min-width:0}
.th-contact li{display:flex;align-items:center;min-width:0}
.th-contact a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  line-height:1;
  color:rgba(255,255,255,.84);
  transition:color .22s ease;
  white-space:nowrap;
}
.th-contact a:hover{color:#fff}
.th-contact .th-i{width:14px;height:14px;opacity:.9}
.th-contact--wa .th-i{width:16px;height:16px;color:#5ee08a;opacity:1}

/* 右侧：语言 + 社媒 */
.th-tools{display:flex;align-items:center;gap:18px}
.th-tools__sep{width:1px;height:14px;background:rgba(255,255,255,.24)}


/* ==========================================================================
   04  语言切换
   ========================================================================== */
.th-lang{position:static}
.th-lang__btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  line-height:1;
  color:rgba(255,255,255,.9);
  padding:6px 0;
  transition:color .22s ease;
}
.th-lang__btn:hover{color:#fff}
.th-lang__btn .th-i--globe{width:14px;height:14px;opacity:.9}
.th-lang__btn .th-i--caret{width:9px;height:9px;opacity:.65;transition:transform .25s ease}
.th-lang__btn:after{
  content:"";
  position:absolute;
  left:-14px;right:-14px;top:100%;
  height:104px;
  background:transparent;
}
.th-lang:hover .th-i--caret,
.th-lang:focus-within .th-i--caret{transform:rotate(180deg)}

/* 面板贴在页头下沿，与容器右边缘对齐 */
.th-lang__list{
  position:absolute;
  top:calc(100% + var(--th-main-h) + 8px);
  right:max(4%,calc((100% - var(--th-max)) / 2));
  min-width:176px;
  padding:7px 0;
  background:#fff;
  border-radius:6px;
  box-shadow:0 18px 44px rgba(9,25,66,.2);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .22s ease,transform .22s ease,visibility .22s;
  z-index:80;
}
.th-lang:hover .th-lang__list,
.th-lang:focus-within .th-lang__list{opacity:1;visibility:visible;transform:none}
.th-lang__list a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 16px;
  font-size:13px;
  color:var(--th-ink-2);
  transition:background .15s ease,color .15s ease;
}
.th-lang__list a:hover{background:#f4f7fe;color:var(--th-navy)}
.th-lang__list a.is-current{color:var(--th-red);font-weight:700}
.th-lang__list em{font-style:normal;font-size:11px;letter-spacing:.06em;color:#a9b4c8}


/* ==========================================================================
   05  社交媒体
   ========================================================================== */
.th-social{display:flex;align-items:center;gap:14px}
.th-social li{display:flex}
.th-social a,
.th-social span.th-social__ph{
  display:block;
  color:rgba(255,255,255,.78);
  transition:color .22s ease,transform .22s ease;
}
.th-social .th-i{width:14px;height:14px;fill:currentColor;stroke:none}
/* 主题自带图标图片（facebook.png / youtube.png …） */
.th-head .th-social img{width:20px;height:20px;display:block;object-fit:contain;border-radius:3px}
.th-social a:hover{transform:translateY(-2px);opacity:.85}
.th-social a{opacity:.92;transition:transform .22s ease,opacity .22s ease}
.th-social span.th-social__ph{cursor:default}


/* ==========================================================================
   06  主导航
   ========================================================================== */
.th-main{background:#fff;border-bottom:1px solid var(--th-line)}
.th-main .th-container{height:var(--th-main-h);gap:24px}

/* Logo：图片优先，无图时自动用文字锁定 */
.th-logo{display:flex;align-items:center;gap:12px;flex:0 0 auto;min-width:0}
.th-logo__mark{
  width:44px;height:44px;border-radius:9px;flex:0 0 auto;
  display:grid;place-items:center;
  background:linear-gradient(140deg,#1b4396 0%,var(--th-navy) 60%,var(--th-navy-deep) 100%);
  box-shadow:0 6px 14px rgba(13,43,110,.22);
  position:relative;
  overflow:hidden;
}
.th-logo__mark b{color:#fff;font-size:21px;font-weight:800;line-height:1;letter-spacing:-.02em}
.th-logo__img{width:auto;max-height:52px}
.th-logo__words b{
  display:block;font-size:23px;line-height:1.05;font-weight:800;
  letter-spacing:.07em;color:var(--th-navy);text-transform:uppercase;
}
.th-logo__words i{
  display:block;font-style:normal;font-size:9.5px;font-weight:700;
  letter-spacing:.24em;color:#96a3bb;text-transform:uppercase;margin-top:5px;
}

/* 菜单 */
.th-nav{margin-left:auto;display:flex;align-items:center}
.th-nav .head_nav{display:flex;align-items:center;gap:2px;width:auto;padding:0}
.th-head .head_nav>li{position:relative;margin:0;padding:0;line-height:1}
.th-head .head_nav>li>a{
  display:block;
  padding:0 16px;
  line-height:var(--th-main-h);
  font-size:16px;
  font-weight:600;
  color:var(--th-ink);
  transition:color .22s ease;
  position:relative;
}
.th-head .head_nav>li>a em{font-style:normal}
/* hover / 当前项 红色下划线 */
.th-head .head_nav>li>a:after{
  content:"";
  position:absolute;
  left:16px;right:16px;bottom:25px;
  height:2px;
  background:var(--th-red);
  transform:scaleX(0);
  transform-origin:50% 50%;
  transition:transform .28s ease;
}
.th-head .head_nav>li:hover>a,
.th-head .head_nav>li.nav-current>a{color:var(--th-navy)}
.th-head .head_nav>li:hover>a:after,
.th-head .head_nav>li.nav-current>a:after{transform:scaleX(1)}


/* ==========================================================================
   07  下拉菜单
   ========================================================================== */
.th-head .head_nav li ul{
  position:absolute;
  left:50%;
  top:calc(100% - 1px);
  width:252px;
  padding:9px 0;
  margin:0;
  background:#fff;
  border:1px solid var(--th-line);
  border-top:2px solid var(--th-red);
  border-radius:0 0 10px 10px;
  box-shadow:0 22px 46px rgba(9,25,66,.15);
  opacity:0;
  visibility:hidden;
  transform:translate(-50%,10px);
  transition:opacity .24s ease,transform .24s ease,visibility .24s;
  z-index:70;
}
.th-head .head_nav li:hover>ul,
.th-head .head_nav li:focus-within>ul{opacity:1;visibility:visible;transform:translate(-50%,0)}
.th-head .head_nav li ul li{
  display:block;
  margin:0;
  padding:0;
  line-height:1.5;
  text-align:left;
}
.th-head .head_nav li ul li a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 20px;
  font-size:14px;
  color:var(--th-ink-2);
  transition:background .18s ease,color .18s ease,padding .18s ease;
}
.th-head .head_nav li ul li a:hover{background:#f5f8ff;color:var(--th-navy);padding-left:26px}
/* 去掉旧主题的左侧色块装饰 */
.th-head .head_nav li ul li a:before{display:none}


/* ==========================================================================
   08  搜索与 CTA
   ========================================================================== */
.th-actions{display:flex;align-items:center;gap:14px;flex:0 0 auto}

/* 搜索按钮 */
.th-iconbtn{
  width:42px;height:42px;
  display:grid;place-items:center;
  border:1px solid var(--th-line);
  border-radius:50%;
  background:#fff;
  color:var(--th-navy);
  cursor:pointer;
  transition:background .24s ease,border-color .24s ease,color .24s ease;
}
.th-iconbtn .th-i{width:17px;height:17px}
.th-iconbtn:hover{background:var(--th-navy);border-color:var(--th-navy);color:#fff}

/* CTAN：菜单最后一项 .head_nav>li:last-child 按按钮渲染 */
.th-head .head_nav>li:last-child{margin-left:14px}
.th-head .head_nav>li:last-child>a{
  display:inline-flex;
  align-items:center;
  height:46px;
  line-height:46px;
  padding:0 24px;
  border-radius:4px;
  background:var(--th-red);
  color:#fff;
  font-size:15px;
  font-weight:700;
  box-shadow:0 8px 20px rgba(229,46,58,.26);
  transition:background .24s ease,transform .24s ease,box-shadow .24s ease;
}
.th-head .head_nav>li:last-child>a:after{display:none}
.th-head .head_nav>li:last-child>a:hover{
  color:#fff!important;
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(229,46,58,.34);
}


/* 搜索面板 */
.th-search{
  position:fixed;
  inset:0;
  z-index:140;
  opacity:0;
  visibility:hidden;
  transition:opacity .26s ease,visibility .26s;
}
.th-search__box{
  position:relative;
  z-index:2;
  margin-top:calc(var(--th-topbar-h) + var(--th-main-h));
  background:#fff;
  padding:32px 0 26px;
  box-shadow:0 24px 50px rgba(9,25,66,.16);
}
.th-search__inner{width:min(var(--th-max),95%);margin:0 auto}
.th-search__row{
  display:flex;
  align-items:center;
  gap:16px;
  border-bottom:2px solid var(--th-navy);
  padding-bottom:13px;
}
.th-search__row > .th-i{width:20px;height:20px;color:var(--th-navy);flex:0 0 auto}
.th-search__row input[type="search"]{
  flex:1;
  min-width:0;
  border:0;
  outline:none;
  background:none;
  font-size:21px;
  font-weight:500;
  font-family:inherit;
  color:var(--th-ink);
  height:34px;
}
.th-search__row input::placeholder{color:#b6c0d2}
.th-head .th-search__go{
  flex:0 0 auto;
  height:42px;
  padding:0 26px;
  border-radius:3px;
  background:var(--th-navy);
  color:#fff;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:background .2s ease;
}
.th-head .th-search__go:hover{background:var(--th-red)}
.th-search__close{
  flex:0 0 auto;
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:50%;
  color:var(--th-navy);
  cursor:pointer;
  background:#f2f6fd;
  transition:background .2s ease,color .2s ease;
}
.th-search__close .th-i{width:16px;height:16px}
.th-search__close:hover{background:var(--th-navy);color:#fff}
.th-search__kw{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:12.5px;
  color:var(--th-muted);
}
.th-search__kw a{
  padding:6px 13px;
  border:1px solid var(--th-line);
  border-radius:20px;
  color:#43506b;
  transition: .2s;
}
.th-search__kw a:hover{border-color:var(--th-navy);color:var(--th-navy);background:#f5f8ff}
.th-search__mask{position:absolute;inset:calc(var(--th-topbar-h) + var(--th-main-h)) 0 0 0;z-index:1;background:rgba(8,20,48,.45)}
#th-search-state:checked ~ .th-search{opacity:1;visibility:visible}
html:has(#th-search-state:checked){overflow:hidden}

/* ==========================================================================
   09  移动端顶栏
   ========================================================================== */
.th-mbar{display:none}
.th-mbar__logo{display:flex;align-items:center;gap:9px}
.th-mbar__logo .th-logo__mark{width:32px;height:32px;border-radius:7px}
.th-mbar__logo .th-logo__mark b{font-size:15px}
.th-mbar__logo .th-logo__words b{font-size:16px;letter-spacing:.06em}
.th-mbar__logo .th-logo__words i{font-size:7px;letter-spacing:.18em;margin-top:3px}
.th-mbar__acts{display:flex;align-items:center;gap:2px;margin-left:auto}
.th-burger{
  width:40px;height:40px;
  display:grid;place-items:center;
  cursor:pointer;
  color:var(--th-navy);
}
.th-burger .th-i{width:20px;height:20px}


/* ==========================================================================
   10  侧滑抽屉（纯 CSS，无 JS）
   ========================================================================== */
.th-state{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.th-scrim{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(8,20,48,.52);
  opacity:0;
  visibility:hidden;
  transition:opacity .3s ease,visibility .3s;
  z-index:120;
}
.th-drawer{
  display:none;
  position:fixed;
  top:0;left:0;right:auto;bottom:0;
  width:86%;
  max-width:320px;
  background:#fff;
  z-index:130;
  transform:translateX(-100%);
  transition:transform .32s cubic-bezier(.22,.61,.36,1);
  box-shadow:24px 0 60px rgba(6,17,42,.28);
  flex-direction:column;
}
.th-drawer__head{
  flex:0 0 auto;
  height:60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  border-bottom:1px solid var(--th-line);
}
.th-drawer__title{
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--th-muted);
}
.th-drawer__close{width:36px;height:36px;display:grid;place-items:center;color:var(--th-navy);cursor:pointer}
.th-drawer__close .th-i{width:18px;height:18px}
.th-drawer__body{flex:1;overflow-y:auto;padding:6px 18px 24px}

/* 抽屉内搜索 */
.th-dsearch{display:flex;align-items:center;gap:8px;margin:14px 0 4px;border:1px solid var(--th-line);border-radius:4px;padding:0 12px}
.th-dsearch input{flex:1;height:42px;border:0;outline:none;font-size:14px;font-family:inherit;color:var(--th-ink);background:none}
.th-dsearch button{width:32px;height:32px;display:grid;place-items:center;color:var(--th-navy)}
.th-dsearch .th-i{width:16px;height:16px}

/* 抽屉内菜单 */
.th-drawer__nav .head_nav{display:block;width:auto;padding:0}
.th-head .th-drawer__nav .head_nav>li{
  border-bottom:1px solid #f1f4fa;
  margin:0;
  padding:0;
  display:block;
  line-height:1;
}
.th-head .th-drawer__nav .head_nav>li>a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:auto;
  padding:15px 0;
  line-height:1.3;
  font-size:15.5px;
  font-weight:600;
  color:var(--th-ink);
  text-transform:none;
}
.th-head .th-drawer__nav .head_nav>li>a:after{display:none}
.th-head .th-drawer__nav .head_nav>li>a em{
  display:inline;
  height:auto;
  overflow:visible;
  text-transform:none;
}
.th-head .th-drawer__nav .head_nav li ul{
  position:static;
  width:auto;
  padding:0 0 6px 14px;
  border:0;
  border-radius:0;
  box-shadow:none;
  opacity:1;
  visibility:visible;
  transform:none;
  background:none;
}
.th-head .th-drawer__nav .head_nav li ul li{padding:0;line-height:1.5}
.th-head .th-drawer__nav .head_nav li ul li a{
  display:block;
  height:auto;
  line-height:1.5;
  padding:7px 0;
  font-size:14px;
  color:var(--th-muted);
  background:none;
}
/* 抽屉底部 CTA（严格限定为一级菜单最后一项） */
.th-head .th-drawer__nav .head_nav>li:last-child>a{
  height:auto;
  margin:14px 0;
  padding:14px 18px;
  line-height:1.2;
  border-radius:4px;
  background:var(--th-red);
  color:#fff;
  justify-content:center;
  box-shadow:none;
  text-align:center;
}
.th-head .th-drawer__nav .head_nav>li:last-child{border-bottom:0}

/* 抽屉分组标题 */
.th-sec{
  margin:20px 0 10px;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#9aa6bd;
}
.th-dlangs{display:flex;flex-wrap:wrap;gap:8px}
.th-dlangs a{
  padding:7px 13px;
  border:1px solid var(--th-line);
  border-radius:3px;
  font-size:12.5px;
  color:#44506b;
}
.th-dlangs a.is-current{background:var(--th-navy);border-color:var(--th-navy);color:#fff;font-weight:700}
.th-dcontact{display:grid;gap:9px}
.th-dcontact a{
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:14px;
  font-weight:700;
  border-radius:4px;
}
.th-dcontact a.th-dcontact--wa{background:var(--th-wa);color:#fff}
.th-dcontact a.th-dcontact--mail{border:1px solid var(--th-line);color:var(--th-navy);font-weight:600}
.th-dcontact .th-i{width:16px;height:16px}
.th-dcontact--wa .th-i{fill:currentColor;stroke:none}
.th-dsocial{display:flex;gap:10px}
.th-dsocial a,.th-dsocial span{
  width:36px;height:36px;
  border-radius:50%;
  background:#f2f6fd;
  color:var(--th-navy);
  display:grid;place-items:center;
}
.th-dsocial .th-i{width:14px;height:14px;fill:currentColor;stroke:none}


/* ==========================================================================
   11  覆盖主题旧样式
   ========================================================================== */
/* 旧的移动端工具条（本次不再使用） */
.mobile-head-items,
.mobile-head-aside{display:none!important}

/* 主题给 .web_head 预留的定位/内边距 */
.web_head.th-head{height:auto;padding:0;position:sticky;top:0}
.web_head.th-head .th-container{display:flex}

/* 锁滚动（支持 :has 的浏览器） */
html:has(.th-state:checked){overflow:hidden}


/* ==========================================================================
   12  断点
   ========================================================================== */
@media (max-width:1100px){
  .th-head{--th-main-h:78px}
  .th-head .head_nav>li>a{padding:0 12px;font-size:15px}
  .th-head .head_nav>li>a:after{left:12px;right:12px;bottom:21px}
  .th-head .head_nav>li:last-child{margin-left:8px}
  .th-head .head_nav>li:last-child>a{height:42px;line-height:42px;padding:0 18px;font-size:14px}
  .th-container{gap:16px}
}

/* 991 以下切换为移动端顶栏 + 抽屉 */
@media (max-width:991px){
  .th-head .th-topbar,
  .th-head .th-main{display:none}
  /* 移动端：整条页头吸顶（顶栏本身高度就是页头高度，所以让父级 sticky） */
  .th-head{
    position:sticky!important;   /* 主题在 ≤950px 用 .web_head{position:relative!important} 强制改回，这里必须同等重要 */
    top:0!important;
    z-index:110;
    border-bottom:1px solid var(--th-line);
    background:#fff;
  }
  .th-mbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:62px;
    padding:0 15px;
    background:#fff;
    position:relative;
    top:auto;
  }
  .th-drawer{display:flex;visibility:hidden;pointer-events:none;box-shadow:none}
  .th-scrim{display:block}
  .th-search__box{margin-top:62px;padding:18px 0 16px}
  .th-search__mask{inset:62px 0 0 0}
  .th-search__row{gap:10px;padding-bottom:10px}
  .th-search__row > .th-i{width:17px;height:17px}
  .th-search__row input[type="search"]{font-size:16px;height:30px}
  .th-head .th-search__go{height:38px;padding:0 16px;font-size:13px}
  .th-search__close{width:34px;height:34px}
  .th-search__kw{margin-top:12px;gap:8px;font-size:12px}
  .th-search__kw a{padding:5px 11px}
    #th-nav-state:checked ~ .th-scrim{opacity:1;visibility:visible}
  #th-nav-state:checked ~ .th-drawer{
    transform:none;
    visibility:visible;
    pointer-events:auto;
    box-shadow:24px 0 60px rgba(6,17,42,.28);
  }
  #th-nav-state:checked ~ .th-mbar .th-burger{color:var(--th-navy)}
}


/* ==========================================================================
   13  动效与无障碍
   ========================================================================== */
.th-head :focus-visible{outline:2px solid var(--th-red);outline-offset:2px;border-radius:2px}
.th-dsearch input::-webkit-search-cancel-button{-webkit-appearance:none}

@media (prefers-reduced-motion:reduce){
  .th-head *,
  .th-head *:before,
  .th-head *:after{transition:none!important;animation:none!important}
}
