/* ==========================================================
   牛码 NewQR · Design System
   4/8 栅格 · MiSans 本地化 · 对比度 ≥ WCAG AA
   ========================================================== */

/* ---------- 字体（本地自托管子集） ---------- */
@font-face { font-family: "MiSans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/MiSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "MiSans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/MiSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "MiSans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/MiSans-Semibold.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* 品牌 */
  --brand-500: #2B5CFF;
  --brand-600: #1F4AE0;
  --brand-700: #183BB8;
  --brand-50:  #EEF2FF;
  --brand-100: #DFE6FF;
  --violet-500: #7C5CFF;
  --mint-500: #12C2A0;
  --mint-50: #E7F8F4;
  --grad-brand: linear-gradient(135deg, #2B5CFF 0%, #7C5CFF 100%);

  /* 中性色：文字四级，层级靠明度而不是字号堆叠 */
  --ink-900: #0E1116;   /* 标题 */
  --ink-700: #344054;   /* 正文 */
  --ink-500: #667085;   /* 次要 */
  --ink-400: #98A2B3;   /* 占位/禁用 */
  --line-200: #EAECF0;  /* 分割线 */
  --line-300: #D0D5DD;  /* 输入框描边 */
  --bg-50: #F5F7FA;     /* 页面底 */
  --bg-100: #F2F4F7;    /* 控件底 */
  --white: #FFFFFF;
  --page-bg: #FFFFFF;
  --surface-subtle: #F8FAFC;
  --hero-glow-blue: rgba(43, 92, 255, .10);
  --hero-glow-violet: rgba(124, 92, 255, .08);
  --cta-bg: linear-gradient(115deg, #1E3FB0 0%, #4653D7 52%, #7653C4 100%);
  --cta-line: rgba(43, 92, 255, .18);

  --warn-500: #F79009; --warn-50: #FFFAEB;
  --err-500: #F04438;  --err-50: #FEF3F2;

  /* 字号 / 行高（成对使用） */
  --fs-12: 12px; --lh-12: 20px;
  --fs-13: 13px; --lh-13: 20px;
  --fs-14: 14px; --lh-14: 22px;
  --fs-16: 16px; --lh-16: 24px;
  --fs-18: 18px; --lh-18: 28px;
  --fs-20: 20px; --lh-20: 28px;
  --fs-24: 24px; --lh-24: 32px;
  --fs-32: 32px; --lh-32: 40px;
  --fs-40: 40px; --lh-40: 48px;
  --fs-56: 56px; --lh-56: 64px;

  /* 间距（4/8 栅格） */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-30: 120px;

  /* 圆角 */
  --r-6: 6px; --r-8: 8px; --r-10: 10px; --r-12: 12px; --r-16: 16px; --r-20: 20px; --r-full: 999px;

  /* 阴影（克制，两级即可） */
  --sh-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --sh-lg: 0 12px 32px -8px rgba(16, 24, 40, .12), 0 4px 8px -4px rgba(16, 24, 40, .04);
  --ring: 0 0 0 4px rgba(43, 92, 255, .16);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
  --nav-h: 64px;
  --nav-control-h: 32px;

  --font: "MiSans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}


/* ---------- 暗色主题：只重定义语义色，组件不改 ---------- */
:root { --nav-bg: rgba(255,255,255,.8); --night: #0E1116; color-scheme: light; }
[data-theme="dark"] {
  color-scheme: dark;
  --white: #15181E;      /* 卡片/面板 */
  --page-bg: #0B0D11;
  --surface-subtle: #10141C;
  --hero-glow-blue: rgba(43, 92, 255, .16);
  --hero-glow-violet: rgba(124, 92, 255, .12);
  --bg-50: #0B0D11;      /* 页面底 */
  --bg-100: #1D2129;     /* 控件底 */
  --line-200: #262A33;
  --line-300: #363C47;
  --ink-900: #F2F4F7;
  --ink-700: #C5CBD3;
  --ink-500: #8D95A2;
  --ink-400: #5E6673;
  --brand-50: rgba(91, 130, 255, .14);
  --brand-100: rgba(91, 130, 255, .28);
  --brand-600: #7C9BFF;
  --mint-50: rgba(18, 194, 160, .14);
  --warn-50: rgba(247, 144, 9, .14);
  --err-50: rgba(240, 68, 56, .14);
  --nav-bg: rgba(11, 13, 17, .78);
  --night: #15181E;
  --sh-xs: 0 1px 2px rgba(0,0,0,.4);
  --sh-sm: 0 1px 3px rgba(0,0,0,.5);
  --sh-lg: 0 16px 40px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  --ring: 0 0 0 4px rgba(91, 130, 255, .28);
}
[data-theme="dark"] .badge--ok { color: #3DDBB8; }
[data-theme="dark"] .badge--warn { color: #FDB022; }
[data-theme="dark"] .badge--err { color: #F97066; }
html { transition: background-color .2s var(--ease); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-14); line-height: var(--lh-14);
  color: var(--ink-700); background: var(--bg-50);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 0;
}
h1, h2, h3, h4, p { margin: 0; }
body[data-page] { background: var(--page-bg); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { color: var(--ink-900); font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--brand-100); color: var(--ink-900); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-8); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 导航 ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--nav-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line-200); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__tag { display: inline-flex; align-items: center; height: 20px; padding-left: var(--s-3); border-left: 1px solid var(--line-300); font-size: var(--fs-12); line-height: 1; font-weight: 400; color: var(--ink-700); white-space: nowrap; }
.brand img { width: 32px; height: 34px; flex-shrink: 0; }
.logo-tile { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: linear-gradient(135deg, #2B5CFF 0%, #5B5CFF 55%, #7C5CFF 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.08), 0 6px 14px -6px rgba(43,92,255,.55); flex-shrink: 0; }
[data-theme="dark"] .logo-tile { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 16px -6px rgba(124,92,255,.6); }
.brand__name { font-size: 19px; line-height: 22px; font-weight: 600; color: var(--ink-900); letter-spacing: .02em; }
.nav__links { display: flex; gap: var(--s-1); margin-left: auto; }
.nav__mobile { display: none; }
.nav__mobile summary { display: grid; place-items: center; width: 40px; height: 44px; cursor: pointer; list-style: none; border-radius: var(--r-8); }
.nav__mobile summary::-webkit-details-marker { display: none; }
.nav__mobile summary svg { width: 20px; height: 20px; }
.nav__mobile nav { position: absolute; right: var(--s-4); top: var(--nav-h); min-width: 176px; padding: var(--s-2); background: var(--white); border: 1px solid var(--line-200); border-radius: var(--r-12); box-shadow: var(--sh-lg); }
.nav__mobile a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-8); white-space: nowrap; }
.nav__mobile a:hover { background: var(--bg-100); }
.nav__mobile-tools { display: none; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line-200); }
.nav__link { position: relative; padding: 0 var(--s-3); height: 36px; display: inline-flex; align-items: center; border-radius: var(--r-full); font-size: var(--fs-14); color: var(--ink-500); font-weight: 500; transition: color .15s var(--ease), background .15s var(--ease); }
.nav__link:hover { color: var(--ink-900); background: var(--bg-100); }
.nav__link.is-active { color: var(--ink-900); }
.nav__link.is-active::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -14px; height: 2px; border-radius: 2px; background: var(--brand-500); }
.nav__right { display: flex; align-items: center; gap: var(--s-3); padding-left: var(--s-6); border-left: 1px solid var(--line-200); height: 28px; }
@media (max-width: 1080px) { .nav__links { display: none; } .nav__mobile { display: block; } .nav__right { margin-left: auto; } }

.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: var(--r-full); background: transparent; color: var(--ink-500); transition: background .15s var(--ease), color .15s var(--ease); font-size: var(--fs-13); font-weight: 600; }
.icon-btn:hover { background: var(--bg-100); color: var(--ink-900); }
.nav .icon-btn { width: var(--nav-control-h); height: var(--nav-control-h); flex-shrink: 0; }
.nav [data-toggle-theme] { background: var(--bg-100); border: 1px solid var(--line-200); box-shadow: var(--sh-xs); }
.nav [data-toggle-theme]:hover { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-600); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: block; }
[data-theme="dark"] .icon-btn .i-moon { display: none; }
.nav__divider { width: 1px; height: 20px; background: var(--line-200); margin: 0 var(--s-1); }

/* ---------- 按钮 ---------- */
.btn { --h: 40px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: var(--h); padding: 0 18px; border-radius: var(--r-full); border: 1px solid transparent; font-size: var(--fs-14); line-height: 1; font-weight: 500; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); user-select: none; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn--sm { --h: 32px; padding: 0 14px; font-size: var(--fs-13); }
.btn--lg { --h: 48px; padding: 0 28px; font-size: var(--fs-16); }
.btn--primary { background: linear-gradient(180deg, #3D6BFF, var(--brand-500)); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.08), inset 0 1px 0 rgba(255,255,255,.18), 0 4px 12px -4px rgba(43,92,255,.45); }
.btn--primary:hover { background: var(--brand-600); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 6px 16px -4px rgba(43,92,255,.5); }
.btn--dark { background: var(--ink-900); color: var(--white); }
.btn--dark:hover { opacity: .88; }
.btn--secondary { background: var(--white); color: var(--ink-900); border-color: var(--line-300); box-shadow: var(--sh-xs); }
.btn--secondary:hover { background: var(--bg-50); }
.btn--ghost { background: transparent; color: var(--ink-700); }
.btn--ghost:hover { background: var(--bg-100); color: var(--ink-900); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- 标签 / 徽章 ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--s-2); border-radius: var(--r-full); font-size: var(--fs-12); line-height: 1; font-weight: 500; background: var(--bg-100); color: var(--ink-700); }
.badge--brand { background: var(--brand-50); color: var(--brand-600); }
.badge--ok { background: var(--mint-50); color: #08705D; }
.badge--warn { background: var(--warn-50); color: #B54708; }
.badge--err { background: var(--err-50); color: #B42318; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 卡片 ---------- */
.card { background: var(--white); border: 1px solid var(--line-200); border-radius: var(--r-16); box-shadow: var(--sh-xs); }

/* ---------- 表单控件 ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.label { font-size: var(--fs-13); line-height: var(--lh-13); font-weight: 500; color: var(--ink-900); }
.hint { font-size: var(--fs-12); line-height: var(--lh-12); color: var(--ink-500); }
.input, .select, .textarea { width: 100%; height: 40px; padding: 0 var(--s-3); border: 1px solid var(--line-300); border-radius: var(--r-8); background: var(--white); font-size: var(--fs-14); color: var(--ink-900); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); box-shadow: var(--sh-xs); }
.textarea { height: auto; min-height: 96px; padding: 10px var(--s-3); line-height: var(--lh-14); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .select:hover, .textarea:hover { border-color: #B6BDC9; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

/* 分段控制器 */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-100); border-radius: var(--r-full); width: 100%; }
.seg button { flex: 1; height: 32px; border: 0; background: transparent; border-radius: var(--r-full); font-size: var(--fs-13); font-weight: 500; color: var(--ink-500); transition: all .15s var(--ease); }
.seg button:hover { color: var(--ink-900); }
.seg button.is-active { background: var(--white); color: var(--ink-900); box-shadow: var(--sh-sm); }

/* Chip */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { height: 32px; padding: 0 var(--s-3); border-radius: var(--r-full); border: 1px solid var(--line-200); background: var(--white); font-size: var(--fs-13); font-weight: 500; color: var(--ink-700); transition: all .15s var(--ease); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--line-300); color: var(--ink-900); }
.chip.is-active { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-600); }

/* 滑块 */
.range { display: flex; align-items: center; gap: var(--s-3); }
.range input[type=range] { flex: 1; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(var(--brand-500), var(--brand-500)) 0/var(--p, 50%) 100% no-repeat, var(--line-200); }
.range input[type=range]::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--line-300); box-shadow: var(--sh-sm); cursor: grab; }
.range input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--line-300); box-shadow: var(--sh-sm); }
.range output { min-width: 40px; text-align: right; font-size: var(--fs-12); color: var(--ink-500); font-variant-numeric: tabular-nums; }

/* 开关 */
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); cursor: pointer; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 20px; background: var(--line-300); position: relative; transition: background .2s var(--ease); cursor: pointer; flex-shrink: 0; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--brand-500); }
.switch input:checked::after { transform: translateX(16px); }

/* 色块 */
.color { position: relative; display: flex; align-items: center; gap: var(--s-2); height: 40px; padding: 0 var(--s-3) 0 var(--s-2); border: 1px solid var(--line-300); border-radius: var(--r-8); background: var(--white); box-shadow: var(--sh-xs); }
.color input[type=color] { width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--r-6); background: none; cursor: pointer; }
.color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color input[type=color]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.08); border-radius: var(--r-6); }
.color input[type=text] { border: 0; outline: 0; width: 100%; font-family: var(--mono); font-size: var(--fs-13); color: var(--ink-900); text-transform: uppercase; background: transparent; }

/* Toast */
.toast { color-scheme: light; position: fixed; left: 50%; bottom: var(--s-8); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 100; padding: 10px var(--s-4); border-radius: var(--r-10); background: #0E1116; color: #fff; font-size: var(--fs-14); box-shadow: var(--sh-lg); transition: all .25s var(--ease); display: flex; align-items: center; gap: var(--s-2); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 页脚 */
.footer { border-top: 1px solid var(--line-200); background: var(--page-bg); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-8) var(--s-6); font-size: var(--fs-13); color: var(--ink-500); }

@media (max-width: 768px) {
  .nav { --nav-control-h: 44px; }
  .nav__links { display: none; }
  .nav__mobile { display: block; }
  .nav__right { margin-left: auto; padding-left: 0; border-left: 0; }
  .nav__right > .lang-sw, .nav__right > [data-toggle-theme], .nav__right > #resetBtn, .nav__right > .nav__divider, .nav__right > .btn--dark { display: none; }
  .nav__mobile-tools { display: flex; flex-wrap: wrap; }
  .nav__inner { gap: var(--s-2); }
  .brand { gap: var(--s-2); }
  .brand img { width: 28px; height: 30px; }
  .brand__tag { height: 18px; padding-left: 10px; font-size: 11px; }
  .container { padding: 0 var(--s-4); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
[data-theme="dark"] .seg button.is-active { background: var(--line-300); }

/* ---------- 广告位 ----------
   空占位（未启用）完全不占空间；启用后由服务端加 .is-on 并预留固定高度，避免布局跳动 (CLS) */
.ad-slot:not(.is-on) { display: none; }
.ad-slot.is-on { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--r-12); background: var(--white); border: 1px solid var(--line-200); }
.ad-slot.is-on::before { content: "AD"; position: absolute; top: 6px; right: 8px; z-index: 1; font-size: 10px; line-height: 1; letter-spacing: .06em; color: var(--ink-400); pointer-events: none; }
.ad-slot--banner.is-on { max-width: 970px; min-height: 90px; margin: var(--s-12) auto 0; }
.ad-slot--side.is-on { min-height: 120px; margin-top: var(--s-5); }
.ad-slot img { display: block; max-width: 100%; height: auto; border-radius: inherit; }
.ad-slot > a { display: block; width: 100%; }
.ad-slot ins { display: block; width: 100%; }
@media (max-width: 720px) { .ad-slot--banner.is-on { min-height: 100px; margin: var(--s-8) auto 0; } .ad-slot.ad--desktop { display: none !important; } }
@media (min-width: 721px) { .ad-slot.ad--mobile { display: none !important; } }
html[lang="en"] .ad-slot.ad--zh, html[lang="zh-CN"] .ad-slot.ad--en { display: none !important; }

/* 公告栏（后台开启） */
.announce { display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 36px; padding: 6px var(--s-4); background: var(--night, #0E1116); color: #fff; font-size: var(--fs-13); line-height: var(--lh-13); text-align: center; }
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .announce { background: var(--brand-600); }

/* 触控尺寸：移动端可点区域 ≥ 44px */
@media (max-width: 640px) {
  .icon-btn { width: 44px; height: 44px; }
  .btn--sm { --h: 40px; }
  .nav .brand { min-height: 44px; }
}

/* 语言切换：一体胶囊 + 滑块 */
.lang-sw { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; width: 76px; height: var(--nav-control-h); padding: 3px; border: 0; border-radius: var(--r-full); background: var(--bg-100); box-shadow: inset 0 0 0 1px var(--line-200); cursor: pointer; flex-shrink: 0; }
.lang-sw__thumb { position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); height: calc(100% - 6px); border-radius: var(--r-full); background: var(--white); box-shadow: 0 1px 2px rgba(16,24,40,.1), 0 1px 3px rgba(16,24,40,.06); transition: transform .24s cubic-bezier(.2,.8,.2,1); }
html[lang^="en"] .lang-sw__thumb { transform: translateX(100%); }
.lang-sw__opt { position: relative; z-index: 1; font-size: var(--fs-12); line-height: 1; font-weight: 600; color: var(--ink-500); text-align: center; transition: color .2s var(--ease); }
html:not([lang^="en"]) .lang-sw__opt:nth-of-type(2), html[lang^="en"] .lang-sw__opt:nth-of-type(3) { color: var(--ink-900); }
.lang-sw:hover .lang-sw__opt { color: var(--ink-700); }
html:not([lang^="en"]) .lang-sw:hover .lang-sw__opt:nth-of-type(2), html[lang^="en"] .lang-sw:hover .lang-sw__opt:nth-of-type(3) { color: var(--ink-900); }
.lang-sw:focus-visible { box-shadow: var(--ring); }
[data-theme="dark"] .lang-sw__thumb { background: var(--line-300); }
@media (max-width: 480px) { .nav__right { gap: 4px; } .nav__divider, .nav__right > .btn--dark { display: none !important; } .lang-sw { width: 76px; height: 44px; padding: 6px; } .lang-sw__thumb { top: 6px; left: 6px; width: calc(50% - 6px); height: calc(100% - 12px); } }
/* 页脚 Logo 触控高度 ≥44px */
.footer .brand { min-height: 44px; display: inline-flex; align-items: center; }
