/* MLG Languages v1.0.0 — 顶部右上角语言切换器 */
.mlg-lang-bar{background:#fff;border-bottom:1px solid #E1EAF2;}
.mlg-lang-bar-inner{display:flex;justify-content:flex-end;align-items:center;height:38px;gap:24px;}
.mlg-header-contact{display:flex;align-items:center;justify-content:space-between;gap:40px;width:360px;min-width:360px;margin-left:auto;}
.mlg-contact-item{display:inline-flex;align-items:center;gap:6px;color:#33475B;font-size:12px;text-decoration:none;white-space:nowrap;}
.mlg-contact-item:hover{color:#2E86C1;}
/* 邮箱项向左推入指定位置；电话项保持在区块左端不动 */
.mlg-header-contact .mlg-contact-item:last-child{margin-right:24px;}
.mlg-contact-item svg{color:#2E86C1;flex:none;}
.mlg-lang-select-wrap{position:relative;display:inline-flex;align-items:center;flex:none;}
.mlg-lang-globe{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#5A6B7B;display:flex;pointer-events:none;}
.mlg-lang-select{
  appearance:none;-webkit-appearance:none;
  height:26px;line-height:24px;
  padding:0 26px 0 31px;
  border:1px solid #D6E2EC;border-radius:3px;
  background-color:#fff;color:#33475B;
  font-size:12px;font-family:inherit;cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235A6B7B' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 9px center;
}
.mlg-lang-select:hover,.mlg-lang-select:focus{border-color:#2E86C1;outline:none;}
.mlg-lang-inline .mlg-lang-select{height:30px;}
@media (max-width:768px){
  .mlg-lang-bar-inner{height:34px;gap:8px;}
  .mlg-header-contact{width:auto;min-width:0;gap:12px;overflow:hidden;}
  .mlg-header-contact .mlg-contact-item:last-child{margin-right:0;}
  .mlg-contact-item{font-size:11px;gap:4px;}
  .mlg-lang-select{height:25px;font-size:11px;}
}
@media (max-width:480px){
  .mlg-contact-item span{display:none;}
  .mlg-contact-item svg{width:15px;height:15px;}
}
/* 阿语：正文右对齐，导航与页脚文字方向正确 */
.mlg-lang-ar .entry-content{direction:rtl;text-align:right;}
.mlg-lang-ar .nav-menu,.mlg-lang-ar .footer-col,.mlg-lang-ar .footer-bottom{direction:rtl;}
.mlg-lang-ar .mlg-lang-select{direction:ltr;text-align:left;padding-left:31px;padding-right:26px;}
