/* Wiki（wiki*.go）。11-30 用户要求照官方 Wiki（wiki.warthunder.com）抄：中性深灰底、内容放在圆角面板里、蓝色强调，
   左侧分组方框的分类栏（小线框图标），首页五张铺满图片、左下角竖排英文的大类卡，
   下面一块左边大类标签、右边类别格子，再下面左边内容面板、右边侧栏卡片。
   图都是本站收录的 WT Live 社区涂装截图（wiki_skins.go 对到载具），不用官方美术图。
   只在有 .wk 的页面生效（body:has(.wk)），不动全站其他页面。 */

body:has(.wk) {
  --wk-bg: #17181a;
  --wk-s1: #222326;       /* 面板 */
  --wk-s2: #2a2c30;       /* 面板里再抬一层：格子、输入框、悬停 */
  --wk-s3: #33363b;
  --wk-line: #35383d;
  --wk-line-2: #2c2e33;
  --wk-ink: #eceef1;
  --wk-ink-2: #b0b4bb;
  --wk-ink-3: #82868e;
  --wk-link: #4f9cff;
  --wk-blue: #1f6ff2;     /* 选中的标签、按钮 */
  --wk-amber: #f2b632;    /* 只用在历史 BR */
  --wk-r: 6px;
  --wk-num: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", var(--font);
  --wk-cond: "DIN Condensed", "Bahnschrift Condensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", sans-serif;
  background: var(--wk-bg);
  color: var(--wk-ink);
  color-scheme: dark;
}
body:has(.wk) .page-head { margin-bottom: 8px; }
body:has(.wk) .crumbs, body:has(.wk) .crumbs-sep { color: var(--wk-ink-3); }
body:has(.wk) .crumbs a { color: var(--wk-ink-2); }
body:has(.wk) .footer { margin-top: 0; }

.wk-aviation { --c: #8db8e0; }
.wk-helicopters { --c: #93c3a4; }
.wk-ground { --c: #c8b37f; }
.wk-bluewater { --c: #7d9fcc; }
.wk-coastal { --c: #6cc1b6; }

.wk { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.wk-body { min-width: 0; }
.wk a { color: var(--wk-link); }
.wk a:hover { color: #8cc0ff; }
.wk :focus-visible { box-shadow: 0 0 0 2px var(--wk-bg), 0 0 0 4px var(--wk-link); outline: none; }
.wk h1, .wk h2, .wk h3 { color: var(--wk-ink); }
.wk-box { background: var(--wk-s1); border-radius: var(--wk-r); }

/* 输入框和按钮 */
.wk input[type="search"], .wk select {
  height: 36px; padding: 0 10px; background: var(--wk-s2); color: var(--wk-ink);
  border: 1px solid var(--wk-line); border-radius: 4px; font-size: var(--fs-s);
}
.wk input[type="search"]::placeholder { color: var(--wk-ink-3); }
.wk input[type="search"]:focus, .wk select:focus { border-color: var(--wk-link); }
.wk button[type="submit"] {
  height: 36px; padding: 0 16px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--wk-blue); color: #fff; font-weight: 600; font-size: var(--fs-s);
}
.wk button[type="submit"]:hover { background: #3a82f5; }
.wk a.wk-btn {
  display: block; padding: 9px 12px; border-radius: 4px; text-align: center;
  background: var(--wk-blue); color: #fff; font-weight: 600; font-size: var(--fs);
}
.wk a.wk-btn:hover { background: #3a82f5; color: #fff; text-decoration: none; }

/* ---------- 左侧分类栏：分组方框 ---------- */
.wk-rail { position: sticky; top: 12px; display: grid; gap: 12px; }
.wk-rail-search { display: flex; padding: 10px; }
.wk-rail-search input[type="search"] { flex: 1; min-width: 0; height: 32px; border-radius: 4px 0 0 4px; }
.wk-rail-search button[type="submit"] { height: 32px; padding: 0 10px; border-radius: 0 4px 4px 0; }
.wk-rail-group { padding: 10px 0 8px; }
.wk-rail-h { margin: 0 0 4px; padding: 0 20px; color: var(--wk-ink-3); font-size: var(--fs-s); }
.wk-rail-list { list-style: none; margin: 0; padding: 0; }
.wk-rail-list a { display: flex; align-items: center; gap: 10px; padding: 8px 20px; color: var(--wk-ink); font-size: var(--fs); }
.wk .wk-rail-list a:hover { color: var(--wk-ink); background: var(--wk-s2); text-decoration: none; }
.wk .wk-rail-list a[aria-current="page"] { color: var(--wk-link); background: var(--wk-s2); }
.wk-glyph { width: 20px; height: 20px; flex: none; color: var(--wk-ink-2); }
.wk-rail-list a[aria-current="page"] .wk-glyph { color: var(--wk-link); }

/* ---------- 首页：五张大类卡（照官方：图铺满，左下角竖排英文） ---------- */
.wk-panels { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.wk-panel {
  position: relative; isolation: isolate; overflow: hidden; display: block;
  aspect-ratio: 3 / 5; border-radius: var(--wk-r); background: var(--wk-s2);
}
.wk-panel.has-img { background: var(--img) center / cover no-repeat var(--wk-s2); }
.wk-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .12) 50%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 40%);
  transition: opacity .2s;
}
.wk-panel:hover::before { opacity: .55; }
.wk-panel > .wk-icon { position: absolute; left: 15%; top: 18%; width: 70%; color: var(--c); opacity: .5; }
.wk-panel-en {
  position: absolute; left: 10px; bottom: 14px;
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-family: var(--wk-cond); font-weight: 700; font-size: clamp(24px, 2.7vw, 38px); line-height: .98; letter-spacing: .01em;
  color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}
.wk-panel-en > span { display: block; }
.wk-panel-n { position: absolute; top: 10px; left: 12px; right: 12px; font-size: var(--fs-s); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }

/* 大卡下面：左边大类标签，右边类别格子（照官方「初学者 / 机制…」） */
.wk-know { display: grid; grid-template-columns: 200px minmax(0, 1fr); margin-bottom: 20px; overflow: hidden; }
.wk-know-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--wk-line-2); }
.wk-know-tabs label { display: block; padding: 12px 10px; text-align: center; color: var(--wk-link); font-size: var(--fs-m); cursor: pointer; }
.wk-know-tabs label:hover { background: var(--wk-s2); }
.wk-know-tabs input:checked + label { background: var(--wk-blue); color: #fff; }
.wk-know-tabs input:focus-visible + label { box-shadow: inset 0 0 0 2px #fff; }
.wk-know-grid { list-style: none; margin: 0; padding: 20px; display: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; align-content: start; }
.wk-know:has(#wk-know-aviation:checked) .wk-know-aviation,
.wk-know:has(#wk-know-helicopters:checked) .wk-know-helicopters,
.wk-know:has(#wk-know-ground:checked) .wk-know-ground,
.wk-know:has(#wk-know-bluewater:checked) .wk-know-bluewater,
.wk-know:has(#wk-know-coastal:checked) .wk-know-coastal { display: grid; }
@supports not selector(:has(*)) { .wk-know-grid { display: grid; } }
.wk-know-grid a {
  position: relative; display: block; min-height: 74px; padding: 12px 16px; border: 1px solid var(--wk-line); border-radius: 4px;
  background: var(--wk-s1); color: var(--wk-ink); font-size: var(--fs);
}
.wk .wk-know-grid a:hover { border-color: var(--wk-ink-3); color: var(--wk-ink); text-decoration: none; }
.wk-know-grid b { position: absolute; right: 14px; bottom: 6px; font-family: var(--wk-num); font-size: 30px; font-weight: 600; line-height: 1; color: var(--wk-s3); }
.wk-know-grid a:hover b { color: var(--wk-ink-3); }
.wk .wk-know-grid .wk-know-all { color: var(--wk-link); }

/* 下面两栏：左边内容面板，右边侧栏卡片 */
.wk-home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.wk-home-side { min-width: 0; display: grid; gap: 20px; }
.wk-feed { min-width: 0; }
.wk-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--wk-line-2); }
.wk-feed-head h2 { padding: 12px 0 10px; font-size: var(--fs); font-weight: 600; border-bottom: 2px solid var(--wk-link); margin-bottom: -1px; }
.wk-feed-head span { font-size: var(--fs-s); color: var(--wk-ink-3); }
.wk-box-h { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 18px; font-size: var(--fs-s); font-weight: 400; border-bottom: 1px solid var(--wk-line-2); }
.wk .wk-box-h { color: var(--wk-ink-3); }
.wk-box-h a { font-size: var(--fs-s); }

.wk-tiles { list-style: none; margin: 0; padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px 16px; }
.wk-tile { display: grid; gap: 4px; color: var(--wk-ink); }
.wk a.wk-tile, .wk a.wk-tile:hover { color: var(--wk-ink); text-decoration: none; }
.wk-tile img, .wk-skins img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--wk-s2); }
.wk-tile:hover img, .wk-skins a:hover img { filter: brightness(1.12); }
.wk-tile-name { font-weight: 600; line-height: 1.35; margin-top: 4px; overflow-wrap: anywhere; }
.wk-tile:hover .wk-tile-name { color: var(--wk-link); }
.wk-tile-meta { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); color: var(--wk-ink-3); }

.wk-nations { list-style: none; margin: 0; padding: 6px 18px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.wk-nations a { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; color: var(--wk-ink); }
.wk .wk-nations a:hover { color: var(--wk-link); text-decoration: none; }
.wk-nations b { font-family: var(--wk-num); font-weight: 400; color: var(--wk-ink-3); font-size: var(--fs-s); }

/* 随机一辆（照官方「热门车辆」卡） */
.wk-rand { overflow: hidden; }
.wk-rand .wk-box-h { border-bottom: 0; }
.wk-rand-pic { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 190px; padding: 14px 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, var(--wk-s1)), var(--wk-s1)); }
.wk-rand-pic.has-img { background: var(--img) center / cover no-repeat var(--wk-s2); }
.wk-rand-pic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(34, 35, 38, .95) 0%, rgba(34, 35, 38, .2) 55%, rgba(34, 35, 38, 0) 100%); }
.wk-rand-pic > .wk-icon { position: absolute; left: 20%; top: 14%; width: 60%; color: var(--c); opacity: .35; z-index: -1; }
.wk-rand-name { font-size: var(--fs-l); font-weight: 700; line-height: 1.25; color: var(--wk-ink); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.wk a.wk-rand-pic:hover .wk-rand-name { color: var(--wk-link); }
.wk a.wk-rand-pic:hover { text-decoration: none; }
.wk-rand-body { padding: 4px 18px 18px; display: grid; gap: 12px; }
.wk-rand-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0; color: var(--wk-ink-2); font-size: var(--fs-s); }
.wk-foot { margin: 0; font-size: var(--fs-xs); color: var(--wk-ink-3); }

/* 国家页、搜索页的标题 */
.wk-home-head { margin: 4px 0 16px; }
.wk-home-head h1 { font-size: 28px; font-weight: 700; }
.wk-home-head p { margin: 4px 0 0; color: var(--wk-ink-3); font-size: var(--fs-s); }
.wk-find { display: grid; gap: 6px; max-width: 620px; margin-bottom: 18px; }
.wk-find-row { display: flex; gap: 8px; }
.wk-find-row input[type="search"] { flex: 1; min-width: 0; height: 42px; font-size: var(--fs); }
.wk-find-row button[type="submit"] { height: 42px; padding: 0 22px; font-size: var(--fs); }

/* ---------- 面板里的段落（载具页等） ---------- */
.wk-sec { margin: 0; }
.wk-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--wk-line-2); }
.wk-sec-head h2 { font-size: var(--fs-m); font-weight: 600; }
.wk-sec-head > span, .wk-sec-head > a { font-size: var(--fs-s); color: var(--wk-ink-3); }
.wk .wk-sec-head > a { color: var(--wk-link); }
.wk-body > .wk-sec { background: var(--wk-s1); border-radius: var(--wk-r); padding: 16px 20px 18px; margin-bottom: 16px; }

/* ---------- BR 牌：街机 / 历史 / 模拟 ---------- */
.wk-plate { display: flex; gap: 0; margin: 0; }
.wk-plate > div { min-width: 70px; padding: 6px 12px 8px; text-align: center; border: 1px solid rgba(255, 255, 255, .16); background: rgba(23, 24, 26, .75); }
.wk-plate > div + div { border-left: 0; }
.wk-plate > div:first-child { border-radius: 4px 0 0 4px; }
.wk-plate > div:last-child { border-radius: 0 4px 4px 0; }
.wk-plate dt { font-size: var(--fs-xs); color: var(--wk-ink-3); line-height: 1.3; }
.wk-plate dd { margin: 0; font-family: var(--wk-num); font-size: 24px; font-weight: 600; line-height: 1.15; color: var(--wk-ink); }
.wk-plate .is-main { border-color: var(--wk-amber); position: relative; z-index: 1; }
.wk-plate .is-main dd { color: var(--wk-amber); }
.wk-plate .is-main + div { border-left: 0; }
.wk-plate-s > div { min-width: 0; flex: 1; padding: 4px 6px 6px; background: var(--wk-s2); }
.wk-plate-s dd { font-size: 19px; }

/* ---------- 列表页 ---------- */
.wk-band {
  position: relative; isolation: isolate; overflow: hidden; min-height: 170px; padding: 28px 28px 22px; margin-bottom: 16px;
  display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--wk-r); background: var(--wk-s1);
}
.wk-band.has-img { background: var(--img) center 40% / cover no-repeat var(--wk-s1); }
.wk-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .1) 100%);
}
.wk-band h1 { font-size: 34px; font-weight: 700; line-height: 1.2; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.wk-band p { margin: 6px 0 0; color: var(--wk-ink-2); font-size: var(--fs-s); }

.wk-count { margin: 0 0 10px; color: var(--wk-ink-3); font-size: var(--fs-s); }
.wk-count b { font-family: var(--wk-num); color: var(--wk-ink); font-size: var(--fs-m); font-weight: 600; }
.wk-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.wk-jump a { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border-radius: 4px; background: var(--wk-s1); color: var(--wk-ink-2); font-size: var(--fs-s); }
.wk .wk-jump a:hover { background: var(--wk-s2); color: var(--wk-ink); text-decoration: none; }
.wk-jump b { font-family: var(--wk-num); font-weight: 400; color: var(--wk-ink-3); font-size: var(--fs-xs); }

.wk-group { margin-bottom: 16px; padding: 16px 20px 12px; background: var(--wk-s1); border-radius: var(--wk-r); scroll-margin-top: 12px; }
.wk-group-h { display: flex; align-items: baseline; gap: 12px; font-size: 22px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--wk-line-2); }
.wk-group-h span { font-size: var(--fs-s); font-weight: 400; color: var(--wk-ink-3); }
.wk-rank-h { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 0; padding: 4px 10px; background: var(--wk-s2); border-radius: 4px; font-size: var(--fs-s); font-weight: 400; color: var(--wk-ink-2); }
.wk-rank-h b { font-family: var(--wk-num); font-size: 18px; font-weight: 600; color: var(--wk-ink); letter-spacing: .04em; }
.wk-rank-h span { margin-left: auto; color: var(--wk-ink-3); font-size: var(--fs-xs); }
.wk-empty { padding: 36px 20px; color: var(--wk-ink-2); background: var(--wk-s1); border-radius: var(--wk-r); }

/* ---------- 表格 ---------- */
.wk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wk-table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.wk-table caption { text-align: left; padding: 10px 0 6px; color: var(--wk-ink-3); font-size: var(--fs-xs); }
.wk-table thead th { text-align: left; font-weight: 400; color: var(--wk-ink-3); font-size: var(--fs-xs); padding: 6px 10px; border-bottom: 1px solid var(--wk-line); white-space: nowrap; }
.wk-table td, .wk-table tbody th { padding: 8px 10px; border-bottom: 1px solid var(--wk-line-2); vertical-align: top; color: var(--wk-ink-2); text-align: left; }
.wk-table tbody tr:last-child td, .wk-table tbody tr:last-child th { border-bottom: 0; }
.wk-table tbody tr:hover td, .wk-table tbody tr:hover th { background: var(--wk-s2); }
.wk-table .wk-n { text-align: right; font-family: var(--wk-num); white-space: nowrap; }
.wk-table thead .wk-n { text-align: right; }
.wk-table .wk-num { font-family: var(--wk-num); white-space: nowrap; }
.wk-name { font-weight: 400; min-width: 190px; color: var(--wk-ink); }
.wk-table .wk-name { color: var(--wk-ink); }
.wk-name a { font-weight: 600; }
.wk .wk-name a { color: var(--wk-ink); }
.wk .wk-name a:hover { color: var(--wk-link); text-decoration: none; }
.wk-sub { display: block; font-size: var(--fs-xs); color: var(--wk-ink-3); font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
.wk-meta { display: none; font-size: var(--fs-xs); color: var(--wk-ink-3); font-weight: 400; }
.wk-cls { white-space: nowrap; }
.wk-table .wk-br { font-size: var(--fs); color: var(--wk-ink-2); }
.wk-table .wk-br-r { color: var(--wk-amber); font-weight: 600; }
.wk-table .wk-skins { font-size: var(--fs-s); }
/* 载具列表：每个等级一张表，宽屏定列宽，上下几张表的列对齐 */
@media (min-width: 641px) {
  .wk-rows { table-layout: fixed; }
  .wk-rows thead th.wk-n { width: 68px; }
  .wk-rows thead th.wk-hide-s:not(.wk-n) { width: 132px; }
  .wk-rows .wk-name { min-width: 0; overflow-wrap: anywhere; }
}
.wk-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--fs-xs); color: var(--wk-ink-3); }
.wk-est { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 4px; border-radius: 2px; background: var(--wk-s3); color: var(--wk-amber); font-weight: 400; }

.wk-tag { display: inline-block; vertical-align: 1px; font-size: 11px; line-height: 17px; padding: 0 5px; border-radius: 3px; border: 1px solid currentColor; color: var(--wk-ink-3); font-weight: 400; white-space: nowrap; }
.wk-tag-premium { color: #e3b84a; }
.wk-tag-pack { color: #b79ae6; }
.wk-tag-event { color: #ea9a58; }
.wk-tag-squadron { color: #7fb5e8; }
.wk-tag-marketplace { color: #6fc6c0; }

/* ---------- 载具页 ---------- */
.wk-hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 380px; padding: 28px; margin-bottom: 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 24px;
  border-radius: var(--wk-r); background: var(--wk-s1);
}
/* 窄屏用 800 宽的缩略图（约 180KB），宽屏换原图（约 800KB） */
.wk-hero.has-img { background: var(--img) center 40% / cover no-repeat var(--wk-s1); }
@media (min-width: 861px) { .wk-hero.has-img { background-image: var(--img-l, var(--img)); } }
.wk-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .25) 45%, rgba(23, 24, 26, .92) 100%);
}
.wk-hero:not(.has-img) { min-height: 260px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--wk-s1)) 0%, var(--wk-s1) 70%); }
.wk-hero:not(.has-img)::before { display: none; }
.wk-hero > .wk-icon { position: absolute; right: 28px; top: 24px; width: 260px; max-width: 45%; color: var(--c); opacity: .22; z-index: -1; }
.wk-hero-text { min-width: 0; }
.wk-hero h1 { font-size: 40px; font-weight: 700; line-height: 1.15; text-shadow: 0 2px 16px rgba(0, 0, 0, .55); overflow-wrap: anywhere; }
.wk-hero-en { margin: 6px 0 0; color: var(--wk-ink-2); font-size: var(--fs-s); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.wk-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 0 0 8px; font-size: var(--fs-s); color: var(--wk-ink-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.wk .wk-facts a { color: var(--wk-ink); font-weight: 600; }
.wk-hero .wk-tag { text-shadow: none; background: rgba(23, 24, 26, .75); }
.wk-hero .wk-plate { flex-wrap: wrap; justify-content: flex-end; }
.wk-hero-credit { position: absolute; top: 12px; right: 14px; max-width: 50%; padding: 2px 8px; border-radius: 3px; background: rgba(23, 24, 26, .75); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk .wk-hero-credit { color: var(--wk-ink-2); }
.wk .wk-hero-credit:hover { color: var(--wk-ink); }

.wk-tree { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 16px; padding: 10px 20px; font-size: var(--fs-s); color: var(--wk-ink-3); background: var(--wk-s1); border-radius: var(--wk-r); }

.wk-skins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px 12px; }
.wk-skins a { display: grid; gap: 6px; }
.wk-skin-t { font-size: var(--fs-s); color: var(--wk-ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.wk-skins a:hover .wk-skin-t { color: var(--wk-link); }
.wk-more { margin: 12px 0 0; font-size: var(--fs-s); }

.wk-kv { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 28px; }
.wk-kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--wk-line-2); }
.wk-kv dt { color: var(--wk-ink-3); font-size: var(--fs-s); }
.wk-kv dd { margin: 0; font-family: var(--wk-num); text-align: right; color: var(--wk-ink); }
.wk-kv + .wk-scroll { margin-top: 14px; }
.wk-armor { max-width: 520px; }

/* 折叠的大段（弹药、改件）：标题行就是开关 */
.wk-fold > summary { cursor: pointer; list-style: none; }
.wk-fold:not([open]) > summary { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.wk-fold > summary::-webkit-details-marker { display: none; }
.wk-fold > summary h2::before { content: ""; display: inline-block; width: 0; height: 0; margin: 0 10px 2px 0; border: 5px solid transparent; border-left: 7px solid var(--wk-ink-3); border-right-width: 0; vertical-align: middle; transition: transform .15s; }
.wk-fold[open] > summary h2::before { transform: rotate(90deg); }
.wk-fold > summary:hover h2 { color: var(--wk-link); }
.wk-note { font-size: var(--fs-xs); color: var(--wk-ink-3); max-width: 70ch; }
.wk-weapon { border-bottom: 1px solid var(--wk-line-2); }
.wk-weapon:last-child { border-bottom: 0; }
.wk-weapon > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 0; font-weight: 600; color: var(--wk-ink); }
.wk-weapon > summary span { font-weight: 400; font-size: var(--fs-xs); color: var(--wk-ink-3); }
.wk-weapon > summary::marker { color: var(--wk-ink-3); }
.wk-weapon[open] > summary { color: var(--wk-link); }
.wk-weapon .wk-scroll { padding-bottom: 12px; }
.wk-ammo .wk-pen { color: var(--wk-ink); }

/* ---------- 列表页（wiki_list.go）：结构、尺寸、颜色照官方 Wiki 的样式表抄（wiki.warthunder.com 的 app.css，深色主题） ---------- */
.wk-list {
  --theme-bg-block: #232324; --theme-border-color: #404040; --theme-active-color: #4ab4ff;
  --theme-text-primary: #dee2e6; --theme-text-secondary: #969c9d; --theme-hover-bg: #000;
}
.wk-list .wk-band { margin-bottom: 12px; }
.wk-list .wk-band.has-img { background-position: center 55%; }

/* 筛选栏 */
.unit-filters { margin-bottom: 15px; border-radius: var(--wk-r); overflow: visible; }
.unit-filters_panel { background-color: var(--theme-bg-block); width: 100%; position: relative; padding: 9px 0; border-radius: var(--wk-r) var(--wk-r) 0 0; }
.unit-filters_wrapper { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px; }
.unit-filters_line { height: 2px; background-color: var(--theme-bg-block); padding: 0 10px; }
.unit-filters_line::before { content: ""; display: block; background-color: var(--theme-border-color); height: 2px; }
.unit-filters_result { display: flex; align-items: center; padding: 5px 11px; background-color: var(--theme-bg-block); gap: 6px; font-size: 14px; color: var(--theme-text-primary); border-radius: 0 0 var(--wk-r) var(--wk-r); }
.unit-filters_panel[hidden] + .unit-filters_line[hidden] + .unit-filters_result { border-radius: var(--wk-r); }
.unit-filters_amount { font-weight: 500; }
.unit-filters_grow { flex: 1 1 auto; }
.unit-filters .vr { align-self: stretch; width: 1px; margin: 4px 2px; background-color: var(--theme-border-color); }
.wk .unit-filters_view { color: var(--theme-text-primary); border: 1px solid var(--theme-border-color); background-color: var(--theme-bg-block); border-radius: 3px; height: 30px; padding: 0 11px; font-size: 12px; font-weight: 500; transition: background-color .2s; display: flex; align-items: center; gap: 8px; }
.wk .unit-filters_view:hover { background-color: var(--theme-hover-bg); color: var(--theme-text-primary); text-decoration: none; }
.wk .unit-filters_view.active { background-color: var(--theme-border-color); }
.unit-filters_clear { background-color: var(--theme-bg-block); border: 0; border-radius: 3px; height: 30px; padding: 0 6px; color: var(--theme-text-primary); transition: .2s; opacity: .75; cursor: pointer; display: inline-flex; align-items: center; }
.unit-filters_clear:hover { opacity: 1; }
.wk-list [hidden] { display: none !important; }
.unit-br-modes select { height: 30px; padding: 0 28px 0 10px; font-size: 12px; font-weight: 500; border-radius: 3px; background-color: var(--theme-bg-block); border: 1px solid var(--theme-border-color); color: var(--theme-text-primary); }

.unit-filter { border: 2px solid var(--theme-border-color); border-radius: 3px; height: 34px; max-height: 34px; position: relative; padding: 0 13px; font-size: 14px; background-color: var(--theme-border-color); color: var(--theme-text-primary); font-weight: 500; transition: border .2s; display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit; }
.unit-filter:hover { border-color: #bfbfbf; }
.unit-filter.active { border-color: var(--theme-active-color); }
.unit-filter_caret { margin-left: auto; }
.unit-filter_search { position: relative; flex: 1 1 150px; min-width: 150px; }
.unit-filter_search-icon { height: 34px; position: absolute; left: 0; top: 0; display: flex; align-items: center; padding-left: 12px; pointer-events: none; color: var(--theme-text-primary); }
.wk .unit-filter_search .unit-filter { width: 100%; height: 34px; padding-left: 40px; cursor: text; background-color: var(--theme-border-color); border: 2px solid var(--theme-border-color); border-radius: 3px; font-size: 14px; }
.wk .unit-filter_search .unit-filter:focus { border-color: var(--theme-active-color); }
.wk .unit-filter_search .unit-filter::placeholder { color: var(--theme-text-secondary); }
.wk-dd { position: relative; }
.wk-list .dropdown-menu { position: absolute; z-index: 60; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); min-width: 100%; max-height: 300px; overflow-x: hidden; overflow-y: auto; padding: 8px 0; background: #212529; border: 1px solid rgba(255, 255, 255, .15); border-radius: 6px; box-shadow: 0 8px 16px rgba(0, 0, 0, .3); }
.wk-list .dropdown-menu[hidden] { display: none; }
.wk-list .dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 16px; border: 0; background: none; color: #dee2e6; font: inherit; font-size: 14px; text-align: left; white-space: nowrap; cursor: pointer; }
.wk-list .dropdown-item:hover { background: #2b3035; }
.wk-list .dropdown-item.active { background: var(--theme-active-color); color: #fff; }
.wk-list .dropdown-item img { width: 1.75em; flex: none; }
.wk-list .dropdown-header { display: block; padding: 4px 16px; font-size: 12px; color: #adb5bd; white-space: nowrap; }
.wk-list .unit-filter_rank-items:not([hidden]) { display: grid; grid-template-columns: auto auto; }
.wk-list .unit-filter_rank-items .dropdown-item { justify-content: center; }
.unit-filter_status-block { flex: none; width: 1.75em; height: 1.25em; border-radius: 4px; }
.unit-filter_status-block.regular { background-color: #007fcb; }
.unit-filter_status-block.premium { background-color: #c79c00; }
.unit-filter_status-block.squadron { background-color: #1f9900; }

/* 分房权重：每个模式一条双端滑块（两个 range 叠在一起） */
.wk-br-menu { min-width: 240px !important; padding-top: 4px !important; }
.wk-br { margin-bottom: 8px; }
.wk-range { position: relative; height: 22px; margin: 0 20px; }
.wk-range::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: #555; }
.wk-range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; accent-color: var(--theme-active-color); }
.wk-range input::-webkit-slider-runnable-track { background: none; }
.wk-range input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--theme-active-color); cursor: ew-resize; }
.wk-range input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--theme-active-color); cursor: ew-resize; }
.wk-range input::-moz-range-track { background: none; }
.wk-range-v { display: flex; justify-content: space-between; margin: 0 16px; font-size: 12px; color: #dee2e6; font-variant-numeric: tabular-nums; }
.wk-range-fill { position: absolute; top: 9px; height: 4px; border-radius: 2px; background: var(--theme-active-color); pointer-events: none; }

/* 首页：国家卡、类别卡 */
.wk-view-home { padding: 4px 0; }
.unit-filter_country-buttons { display: grid; gap: 1.5em; padding: 1.5em; grid-template-columns: repeat(5, 1fr); background: var(--theme-bg-block); border-radius: var(--wk-r); }
.wk .unit-filter_country-button { display: flex; flex-direction: column; padding: 0; border-radius: 5px; border: 1px solid var(--theme-border-color); background-color: var(--theme-bg-block); overflow: hidden; align-items: center; position: relative; font-size: 16px; color: var(--theme-text-primary); }
.wk .unit-filter_country-button:hover { border-color: var(--theme-active-color); color: var(--theme-text-primary); text-decoration: none; }
.unit-filter_country-button img { width: 100%; display: block; }
.unit-filter_country-button span { padding: .3em .75em; position: absolute; bottom: 0; left: 0; width: 100%; text-align: left; background: linear-gradient(90deg, var(--theme-bg-block), transparent 250px); font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit-filter_class-buttons { display: grid; gap: 1.25em; padding: 1.5em; margin-top: 12px; grid-template-columns: repeat(6, 1fr); background: var(--theme-bg-block); border-radius: var(--wk-r); }
.wk .unit-filter_class-button { display: flex; flex-direction: column; padding: 0; border-radius: 5px; border: 1px solid var(--theme-border-color); background-color: #1d262a; overflow: hidden; align-items: center; position: relative; font-size: 14px; color: var(--theme-text-primary); text-align: center; }
.wk .unit-filter_class-button:hover { border-color: var(--theme-active-color); color: var(--theme-text-primary); text-decoration: none; }
.unit-filter_class-button .icon-container { display: block; width: 100%; padding-top: 50%; position: relative; }
.unit-filter_class-button .icon-wrapper { position: absolute; width: 100%; height: 100%; left: 0; top: 0; display: flex; align-items: center; justify-content: center; }
.unit-filter_class-button img { padding: 10px; max-width: 100%; max-height: 100%; }
.unit-filter_class-button .label { display: block; padding: .4em .4em .5em; width: 100%; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }

/* 国家标签 */
.navtabs { width: 100%; background-color: var(--theme-bg-block); box-sizing: border-box; overflow: hidden; position: relative; border-radius: var(--wk-r) var(--wk-r) 0 0; }
.navtabs_wrapper { padding: 0 15px; display: flex; gap: 10px; flex-flow: nowrap; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.navtabs_wrapper::-webkit-scrollbar { display: none; }
.wk .navtabs_item { display: inline-flex; align-items: center; font-size: 15px; padding: 0 5px; color: var(--theme-text-primary); cursor: pointer; text-decoration: none; position: relative; }
.wk .navtabs_item:hover { color: var(--theme-text-primary); text-decoration: none; }
.navtabs_item-label { transition: border-bottom .2s; padding: 8px 0 5px; border-bottom: 3px solid var(--theme-bg-block); }
.navtabs_item:hover .navtabs_item-label { border-bottom-color: var(--theme-border-color); }
.navtabs_item.active .navtabs_item-label, .navtabs_item.active:hover .navtabs_item-label { border-bottom-color: var(--theme-active-color); font-weight: 500; }
.unit-trees_nav .navtabs_item.highlight { background: linear-gradient(180deg, rgb(255 217 82 / 50%), transparent); }
.unit-tree[hidden] { display: none; }

/* 科技树 */
.wt-tree { position: relative; overflow-x: auto; overflow-y: hidden; border-radius: 0 0 var(--wk-r) var(--wk-r); background-color: #242e33; }
.wt-tree_wrapper { display: table; position: relative; width: 100%; }
.wt-tree_instance { display: flex; flex-direction: column; width: 100%; background-color: #242e33; color: #f8f9fa; min-height: 400px; }
.wt-tree_row { display: grid; grid-template-columns: 1fr var(--wt-tree-l-width) 1px var(--wt-tree-r-width) 1fr; width: 100%; min-width: var(--wt-tree-minwidth); gap: 12px; }
.wt-tree_v-line { position: relative; min-width: 1px; width: 1px; }
.wt-tree_v-line_instance { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }
.wt-tree_v-line_instance::before { content: ""; display: block; width: 1px; height: 100%; background-color: rgba(255, 255, 255, .25); margin: auto; border-radius: 2px; }
.wt-tree_header { text-align: center; background-color: #36424e; font-size: 14px; height: 30px; color: rgba(255, 255, 255, .8); gap: 0 !important; }
.wt-tree_header > div { display: flex; align-items: center; justify-content: center; height: 100%; }
.wt-tree_header .wt-tree_v-line_instance { padding: 5px 0; box-sizing: border-box; }
.wt-tree_r-header { font-size: 12px; color: rgba(195, 195, 195, .75); height: 22px; }
.wt-tree_r-header_label { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 3px; }
.wt-tree_r-header_label span { font-family: serif; }
.wt-tree_r-header--first .wt-tree_r-header_label { border-top: 0; }
.wt-tree_r-header--first .wt-tree_v-line_instance { padding-top: 5px; box-sizing: border-box; }
.wt-tree_r-header > div:first-child .wt-tree_r-header_label { margin-left: 12px; }
.wt-tree_r-header > div:last-child .wt-tree_r-header_label { margin-right: 12px; }
.wt-tree_footer { min-height: 5px; height: 100%; flex-grow: 1; }
.wt-tree_footer .wt-tree_v-line_instance { padding-bottom: 5px; box-sizing: border-box; }
.wt-tree_rank-instance { margin-top: 5px; margin-bottom: 20px; border-collapse: separate; border-spacing: 0; }
.wt-tree_rank-instance td { position: relative; width: 120px; min-width: 120px; height: 48px; min-height: 48px; padding: 0 6px 30px; box-sizing: content-box; vertical-align: top; }
.wt-tree_rank-instance tr:last-child td { padding-bottom: 0; }
.wt-tree_rank-instance td:first-child { padding-left: 0; }
.wt-tree_rank-instance td:last-child { padding-right: 0; }

.wt-tree_item { position: relative; width: 120px; min-width: 120px; height: 48px; min-height: 48px; background-color: #2c404c; background-image: url("../img/wiki/tex/item.png"); overflow: hidden; }
.wt-tree_item--prem { background-image: url("../img/wiki/tex/item-prem.png"); }
.wt-tree_item--squad { background-image: url("../img/wiki/tex/item-squad.png"); }
.wt-tree_item-icon { display: block; height: 43px; width: auto; max-width: none; margin: 5px 0 0 5px; pointer-events: none; }
.wt-tree_item-text { display: block; color: #fff; margin: 3px 5px 0; width: 110px; position: absolute; top: 0; text-align: right; font-size: 12px; line-height: 1.5; pointer-events: none; white-space: nowrap; overflow: hidden; }
.wt-tree_item-text > span { display: inline-block; margin-left: 0; transition: margin-left 5s linear; text-shadow: 0 0 3px rgba(0, 0, 0, .9); }
.wt-tree_item:hover .wt-tree_item-text > span, .wt-tree_group-folder:hover .wt-tree_item-text > span { margin-left: -100%; }
.wt-tree_item-link { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }
.wt-tree_item-link:focus-visible { box-shadow: inset 0 0 0 2px var(--theme-active-color) !important; }
.wt-tree .br { position: absolute; line-height: 0; font-size: 11px; right: 6px; bottom: 11px; pointer-events: none; opacity: .75; color: #fff; }

.wt-tree_group { position: relative; display: block; height: 48px; }
.wt-tree_group-folder { position: absolute; bottom: 0; display: block; width: 120px; min-width: 120px; height: 52px; min-height: 52px; background-image: url("../img/wiki/tex/group.png"); overflow: hidden; cursor: pointer; list-style: none; }
.wt-tree_group-folder::-webkit-details-marker { display: none; }
.wt-tree_group-folder::marker { content: ""; }
.wt-tree_group-folder:focus-visible { outline: 2px solid var(--theme-active-color); outline-offset: -2px; }
.wt-tree_group--prem .wt-tree_group-folder { background-image: url("../img/wiki/tex/group-prem.png"); }
.wt-tree_group-folder_inner { display: block; position: relative; margin-top: 4px; width: 120px; min-width: 120px; height: 48px; min-height: 48px; overflow: hidden; }
.wt-tree_group-items { position: absolute; width: 132px; min-width: 132px; top: -4px; margin-left: -6px; padding: 5px; border: 1px solid #2c404c; border-radius: 2px; box-shadow: 0 7px 5px -5px rgba(24, 24, 24, .75); background: #405561; z-index: 2; overflow: hidden; box-sizing: border-box; }
.wt-tree_group[open] { z-index: 15; }
.wt-tree_group-items .wt-tree_item { margin-bottom: 30px; }
.wt-tree_group-items .wt-tree_item:last-child { margin-bottom: 0; }
.wt-tree_group-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.wt-tree-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }

/* 筛选时：暗层盖住整棵树，符合的卡浮在上面 */
.wt-tree_fade { position: absolute; width: 100%; height: 100%; left: 0; top: 0; background-color: rgba(0, 0, 0, .5); z-index: 10; pointer-events: none; display: none; }
.wt-tree.wt-tree--fade .wt-tree_fade { display: block; }
.wt-tree_item.highlight, .wt-tree_group.highlight { box-shadow: 0 0 0 8px #2a363c; }
.wt-tree_item.highlight { z-index: 20; }
.wt-tree_group.highlight { z-index: 30; }
.wt-tree_group[open].highlight { z-index: 40; }
.wt-tree_group.highlight .wt-tree_item.highlight { box-shadow: 0 4px 6px -2px rgba(8, 11, 12, .5); }
.wt-tree.wt-tree--fade .wt-tree_group.highlight .wt-tree_item .wt-tree_item-link { background-color: rgba(0, 0, 0, .5); }
.wt-tree_item.highlight .wt-tree_item-link { background-color: unset !important; }

/* 列表 */
.wt-ulist { width: 100%; background-color: #242e33; overflow-x: auto; position: relative; padding-bottom: 20px; border-radius: var(--wk-r); }
.wt-ulist_instance { width: 100%; border-collapse: collapse; background-color: #242e33; color: #fff; text-align: center; font-size: 15px; word-break: keep-all; white-space: nowrap; }
.wt-ulist_header { background-color: #36424e; font-size: 14px; height: 36px; color: rgba(255, 255, 255, .8); }
.wt-ulist_header th { font-weight: normal; padding: 0; border-left: 1px solid rgba(255, 255, 255, .25); border-right: 1px solid rgba(255, 255, 255, .25); }
.wt-ulist_header th:first-child { border-left: 0; }
.wt-ulist_header th:last-child { border-right: 0; }
.wt-ulist_header-button button { display: flex; align-items: center; justify-content: center; width: 100%; height: 36px; padding: 0 5px; border: 0; background: none; color: rgba(255, 255, 255, .8); font: inherit; cursor: pointer; transition: .2s; }
.wt-ulist_header-button button:hover { background-color: rgba(255, 255, 255, .1); }
.wt-ulist_header-button.active--bottom { box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .6); }
.wt-ulist_header-button.active--top { box-shadow: inset 0 4px 4px rgba(0, 0, 0, .6); }
.wk-col-country { width: 60px; }
.wk-col-rank, .wk-col-br { width: 90px; }
.wk-col-cost { width: 140px; }
.wt-ulist_unit { position: relative; height: 40px; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: background-color .2s; }
.wt-ulist_unit:hover { background-color: rgba(255, 255, 255, .05); }
.wt-ulist_unit td { padding: 0 10px; }
.wt-ulist_unit--regular .wt-ulist_unit-name { background: linear-gradient(90deg, #007fcb 0, #007fcb 7px, transparent 7px); }
.wt-ulist_unit--prem .wt-ulist_unit-name { background: linear-gradient(90deg, #c79c00 0, #c79c00 7px, transparent 7px); }
.wt-ulist_unit--squad .wt-ulist_unit-name { background: linear-gradient(90deg, #1f9900 0, #1f9900 7px, transparent 7px); }
.wt-ulist_unit-name { position: relative; text-align: left; padding-left: 25px !important; }
.wk .wt-ulist_unit-name a { display: flex; align-items: center; color: #f8f9fa; text-decoration: none; }
.wk .wt-ulist_unit-name a:hover { color: #f8f9fa; text-decoration: underline; }
.wt-ulist_unit-name img { width: 1.75em; max-height: 1.75em; margin-right: 12px; }
.wt-ulist_unit-role { font-size: .9em; }
.wt-ulist_unit-role svg { vertical-align: -4px; margin-right: 4px; }
.wt-ulist_unit-country img { width: 1.75em; vertical-align: middle; }
.wt-ulist_unit td img[width="18"] { vertical-align: -4px; }
.wt-ulist_unit[hidden] { display: none; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
  .wk { grid-template-columns: 190px minmax(0, 1fr); }
  .wk-home { grid-template-columns: minmax(0, 1fr); }
  .wk-home-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .wk-know { grid-template-columns: 150px minmax(0, 1fr); }
  .wk-know-tabs label { font-size: var(--fs); }
}
@media (max-width: 860px) {
  .wk { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* 分类栏：首页只留搜索（下面有大类卡），其他页面是一个面板，里面一行可横滑的大类 */
  .wk-rail { position: static; gap: 8px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .wk-rail .wk-rail-h, .wk-rail .wk-rail-site, .wk-rail.is-home .wk-rail-group { display: none; }
  .wk-rail-group { padding: 4px; }
  .wk-rail-list { display: flex; overflow-x: auto; scrollbar-width: none; }
  .wk-rail-list::-webkit-scrollbar { display: none; }
  .wk-rail-list a { padding: 8px 12px; border-radius: 4px; white-space: nowrap; font-size: var(--fs-s); gap: 6px; }
  .wk-glyph { width: 18px; height: 18px; }
  /* 大类卡：一行横滑 */
  .wk-panels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 38%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-bottom: 12px; }
  .wk-panels::-webkit-scrollbar { display: none; }
  .wk-panels > li { scroll-snap-align: start; }
  .wk-panel-en { font-size: 28px; }
  /* 类别块：标签在上面一行 */
  .wk-know { grid-template-columns: minmax(0, 1fr); margin-bottom: 12px; }
  .wk-know-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--wk-line-2); scrollbar-width: none; }
  .wk-know-tabs label { flex: none; padding: 10px 14px; font-size: var(--fs); }
  .wk-know-grid { padding: 14px; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-know-grid a { min-height: 64px; padding: 10px 12px; font-size: var(--fs-s); }
  .wk-know-grid b { font-size: 24px; }
  .wk-home, .wk-home-side { gap: 12px; }
  .wk-hero { grid-template-columns: minmax(0, 1fr); min-height: 300px; padding: 20px 18px; }
  .wk-hero .wk-plate { justify-content: flex-start; }
  .wk-hero h1 { font-size: 30px; }
  .wk-band { padding: 22px 18px 18px; min-height: 140px; }
  .wk-band h1 { font-size: 28px; }
  .wk-body > .wk-sec, .wk-group { padding: 14px 14px 10px; }
}
@media (max-width: 1200px) {
  .unit-filter_country-buttons { grid-template-columns: repeat(4, 1fr); gap: 1.2em; padding: 1.2em; }
  .unit-filter_class-buttons { grid-template-columns: repeat(4, 1fr); gap: 1.2em; padding: 1.2em; }
}
@media (max-width: 900px) {
  .unit-filter_country-buttons, .unit-filter_class-buttons { grid-template-columns: repeat(3, 1fr); gap: 1em; padding: 1em; }
  .wk .unit-filter_country-button { font-size: 14px; }
}
@media (max-width: 640px) {
  .unit-filter_country-buttons, .unit-filter_class-buttons { grid-template-columns: repeat(2, 1fr); }
  .unit-filters_wrapper > .wk-dd { flex: 1 1 40%; }
  .unit-filters_wrapper > .wk-dd > .unit-filter { width: 100%; }
  .unit-filter_search { flex-basis: 100%; }
  .wk-hide-s { display: none; }
  .wk-meta { display: block; }
  .wk-name { min-width: 0; }
  .wk-table td, .wk-table tbody th { padding: 8px 6px; }
  .wk-tiles { padding: 14px; }
  .wk-tiles, .wk-skins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .wk-plate > div { min-width: 0; flex: 1; padding: 5px 8px 6px; }
  .wk-plate dd { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-panel::before, .wk-fold > summary h2::before, .wt-tree_item-text > span, .navtabs_item-label { transition: none; }
}
