/* sheen-i18n 切换器样式 */
.ses-switcher {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: 10px;
	font-size: 12px;
	line-height: 1;
	flex-wrap: nowrap;
	flex-shrink: 0;
}
.ses-switcher .ses-langs {
	display: flex;
	align-items: center;
	gap: 4px;
}
.ses-switcher .ses-langs a {
	display: inline-block;
	padding: 5px 8px;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	opacity: .62;
	white-space: nowrap;
	transition: opacity .15s ease, background .15s ease;
}
.ses-switcher .ses-langs a:hover { opacity: 1; }
.ses-switcher .ses-langs a.active {
	opacity: 1;
	background: #4b1edb;
	color: #fff;
}
.ses-switcher .ses-cur {
	border: 1px solid rgba(0, 0, 0, .16);
	border-radius: 999px;
	padding: 4px 8px;
	font-size: 12px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

/* 侧边抽屉里的实例默认隐藏，窄屏才启用 */
.ses-drawer-switcher { display: none; }

@media (max-width: 900px) {
	/* 窄屏页头空间不足：隐藏页头实例，改用抽屉里的切换器，避免挤压搜索框 */
	.header-main > .ses-switcher { display: none; }
	.ses-drawer-switcher {
		display: block;
		margin: 18px 0 6px;
		padding-top: 16px;
		border-top: 1px solid rgba(0, 0, 0, .08);
	}
	.ses-drawer-switcher .ses-switcher {
		margin: 0;
		display: block;
	}
	.ses-drawer-switcher .ses-langs {
		flex-wrap: wrap;
		gap: 6px;
		max-width: none;
		overflow: visible;
	}
	.ses-drawer-switcher .ses-langs a { padding: 7px 12px; font-size: 13px; }
	.ses-drawer-switcher .ses-cur { margin-top: 12px; padding: 7px 12px; font-size: 13px; }
}

/* ============================================================
   v1.3.1 — language / currency switcher spacing & alignment fix
   追加于 sheen-i18n/assets/switcher.css，勿删原规则
   ============================================================ */

/* 容器层：让 switcher 与 nav 之间有明确分组间距，
   同时让 switcher 水平对齐 nav 的视觉宽度（而非贴最左） */
.container:has(> .top-nav) {
  display: flex;
  flex-direction: column;
  gap: 14px;          /* nav 与 switcher 行之间的呼吸 */
}
.container:has(> .top-nav) > .top-nav {
  width: 100%;
}

/* switcher 本身：右对齐到 nav 同宽范围内，
   不再贴容器左缘 */
.ses-switcher {
  margin-left: 0;     /* 覆盖原 10px，对齐容器 */
  width: 100%;
  justify-content: flex-end;  /* 语言 + 货币整组靠右，贴近 nav 视觉重心 */
  gap: 14px;
}

/* 语言 pills 组 */
.ses-switcher .ses-langs {
  gap: 8px;            /* 原 4px -> 8px */
}
.ses-switcher .ses-langs a {
  padding: 6px 12px;   /* 原 5px 8px -> 6px 12px，呼吸感 */
  font-size: 12px;
  line-height: 1;
  letter-spacing: .2px;
  min-height: 30px;    /* 与 currency select 等高 */
  display: inline-flex;
  align-items: center;
}

/* 货币 select：与 pills 等高等圆，左侧留 4px 与 pills 区分组 */
.ses-switcher .ses-cur {
  padding: 6px 12px;   /* 与 pills 一致 */
  min-height: 30px;
  font-size: 12px;
  line-height: 1;
  margin-left: 4px;
  border-radius: 999px;
  background: #fff;
}

/* hover / active 状态保留原规则，仅补 min-height 对齐 */
.ses-switcher .ses-langs a.active {
  min-height: 30px;
}

/* ---------- 窄屏（<=900px）抽屉内 switcher ---------- */
@media (max-width: 900px) {
  .ses-drawer-switcher .ses-switcher {
    justify-content: flex-start;  /* 抽屉内左对齐更自然 */
  }
  .ses-drawer-switcher .ses-langs {
    gap: 8px;
    flex-wrap: wrap;
  }
  .ses-drawer-switcher .ses-langs a {
    padding: 7px 14px;
    min-height: 34px;
    font-size: 13px;
  }
  .ses-drawer-switcher .ses-cur {
    margin-left: 0;
    margin-top: 12px;
    padding: 7px 14px;
    min-height: 34px;
    font-size: 13px;
  }
}

/* ---------- 中屏（700~900px）头部空间收紧 ---------- */
@media (max-width: 900px) and (min-width: 701px) {
  .ses-switcher {
    justify-content: flex-start;
    gap: 10px;
  }
  .ses-switcher .ses-langs a {
    padding: 5px 10px;
    min-height: 28px;
    font-size: 11.5px;
  }
  .ses-switcher .ses-cur {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 11.5px;
  }
}
