/* 客户登录 / 注册：右上角语言下拉（可扩展多语种） */
.t6-lang{
  --t6-lang-teal:#009688;
  --t6-lang-ink:#0F1535;
  --t6-lang-muted:#8A93A8;
  --t6-lang-track:#EEF1F6;
  --t6-lang-line:#E6E9F2;
  position:fixed;
  top:18px;
  right:22px;
  z-index:50;
  width:max-content;
  max-width:min(240px, calc(100vw - 32px));
  user-select:none;
}
.t6-lang-trigger{
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:34px;
  padding:0 10px 0 11px;
  border-radius:999px;
  background:var(--t6-lang-track);
  border:1px solid rgba(15,21,53,.07);
  box-shadow:0 8px 20px -14px rgba(15,21,53,.28);
  color:var(--t6-lang-ink);
  cursor:pointer;
  list-style:none;
  outline:none;
  transition:background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.t6-lang-trigger::-webkit-details-marker{display:none;}
.t6-lang-trigger::marker{content:"";display:none;}
.t6-lang-trigger:hover{
  background:#e7ebf2;
  border-color:rgba(15,21,53,.10);
}
.t6-lang[open] .t6-lang-trigger,
.t6-lang-trigger:focus-visible{
  background:#fff;
  border-color:rgba(0,150,136,.35);
  box-shadow:0 0 0 3px rgba(0,150,136,.16);
}
.t6-lang-mark,
.t6-lang-caret{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  color:#7B86A3;
}
.t6-lang-mark{width:15px;height:15px;}
.t6-lang-mark svg{width:15px;height:15px;display:block;}
.t6-lang-caret{width:12px;height:12px;transition:transform .18s cubic-bezier(.4,0,.2,1);}
.t6-lang-caret svg{width:12px;height:12px;display:block;}
.t6-lang[open] .t6-lang-caret{transform:rotate(180deg);}
.t6-lang-current{
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  line-height:1;
  max-width:9em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.t6-lang-panel{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:188px;
  max-width:min(260px, calc(100vw - 32px));
  max-height:min(320px, calc(100vh - 72px));
  overflow:auto;
  padding:6px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--t6-lang-line);
  box-shadow:0 18px 40px -16px rgba(15,30,90,.28), 0 2px 8px rgba(15,21,53,.06);
  animation:t6LangIn .16s ease-out;
}
.t6-lang-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:40px;
  padding:0 10px 0 12px;
  border-radius:8px;
  color:var(--t6-lang-ink);
  text-decoration:none !important;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.t6-lang-item:hover{
  background:#F5F7FB;
}
.t6-lang-item:focus{outline:none;}
.t6-lang-item:focus-visible{
  outline:2px solid var(--t6-lang-teal);
  outline-offset:-2px;
}
.t6-lang-name{
  font-size:13px;
  font-weight:600;
  line-height:1.3;
}
.t6-lang-check{
  width:16px;height:16px;flex-shrink:0;
  color:var(--t6-lang-teal);
  opacity:0;
}
.t6-lang-check svg{width:16px;height:16px;display:block;}
.t6-lang-item.is-active{
  background:rgba(0,150,136,.08);
  color:var(--t6-lang-teal);
}
.t6-lang-item.is-active .t6-lang-check{opacity:1;}
@keyframes t6LangIn{
  from{opacity:0;transform:translateY(-6px);}
  to{opacity:1;transform:translateY(0);}
}
.t6-lang.is-inline{
  position:relative;
  top:auto;
  right:auto;
  z-index:20;
}
.t6-lang.is-inline .t6-lang-trigger{
  height:32px;
  line-height:1;
  box-shadow:none;
}
@media (max-width:640px){
  .t6-lang{top:12px;right:12px;}
  .t6-lang-trigger{height:32px;}
  .t6-lang.is-inline{top:auto;right:auto;}
}
@media (prefers-reduced-motion:reduce){
  .t6-lang-panel,
  .t6-lang-caret,
  .t6-lang-trigger,
  .t6-lang-item{animation:none;transition:none;}
}
