:root { color-scheme: dark; --bg: #0b1018; --panel: #101925; --line: #263449; --text: #f2f5fa; --muted: #a1b1c6; --blue: #77baff; font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.6; }
button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
button { cursor: pointer; }
.wrap { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 1rem; z-index: 10; padding: .6rem 1rem; background: var(--blue); color: var(--bg); }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand-symbol { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--blue); color: var(--blue); font-size: .9rem; font-weight: 800; letter-spacing: -.06em; }
.brand-name { font-size: 1.125rem; font-weight: 750; letter-spacing: .04em; }
.brand-name span { color: var(--blue); }
.domain { font-size: .875rem; color: var(--muted); }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 38px 0 25px; }
h1 { display: flex; align-items: center; gap: 20px; margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.3; font-weight: 700; letter-spacing: -.035em; }
.title-line { width: 42px; height: 3px; background: var(--blue); }
.total { display: flex; align-items: baseline; gap: .6rem; margin: 0; white-space: nowrap; }
.total strong { color: var(--blue); font-size: 2rem; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; }
.total span { color: var(--muted); font-size: .875rem; }
.toolbar { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 12px 0 22px; }
.search-wrap { display: flex; align-items: center; position: relative; border: 1px solid #415774; border-radius: 8px; min-height: 56px; background: #121e2e; }
.search-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.search-icon { width: 22px; height: 22px; margin-left: 18px; color: #b9cbe1; flex: none; }
input[type="search"] { width: 100%; min-width: 0; color: var(--text); background: transparent; border: 0; padding: 14px 16px; outline: none; font-size: 1rem; }
input[type="search"]::placeholder { color: #9db0c8; opacity: 1; }
input[type="search"]:focus-visible { outline: none; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
.clear-search { flex: none; padding: 8px 12px; margin-right: 10px; border: 1px solid var(--line); background: #1b2b40; color: #d4e4f7; border-radius: 5px; font-size: .875rem; }
.clear-search:hover { border-color: #6d8aae; }
.result-count { color: var(--muted); font-size: .875rem; margin: 12px 0 0; }
.collection { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.list-head { display: grid; grid-template-columns: minmax(0, 1fr) 110px 82px; gap: 20px; align-items: center; padding: 14px 24px 14px 74px; border-bottom: 1px solid var(--line); color: var(--muted); background: #162132; font-size: .875rem; }
.size-heading { text-align: right; }
.download-heading { text-align: center; }
.trainer-list { list-style: none; margin: 0; padding: 0; }
.trainer-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 110px 82px; gap: 20px; align-items: center; padding: 18px 24px; border-bottom: 1px solid #223044; min-height: 88px; }
.trainer-row:last-child { border-bottom: 0; }
.trainer-row:hover { background: #152337; }
.row-index { color: #8496ae; font: .875rem Consolas, monospace; }
.row-name { min-width: 0; }
.row-name h2 { margin: 0; font-size: 1.0625rem; line-height: 1.5; font-weight: 550; overflow-wrap: anywhere; }
.row-name p { margin: 3px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.row-size { text-align: right; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: #c0ccdc; }
.row-size small { display: block; color: #8496ae; font-size: .75rem; margin-top: 2px; }
.download { display: grid; place-items: center; text-decoration: none; min-height: 42px; padding: 8px 16px; border: 1px solid #4d739e; border-radius: 6px; background: #172c45; color: #a5d1ff; font-size: .9375rem; font-weight: 600; }
.download:hover { background: var(--blue); border-color: var(--blue); color: #08192d; }
.empty { text-align: center; padding: 64px 20px; }
.empty h2 { margin: 0 0 20px; font-size: 1.125rem; font-weight: 500; color: var(--muted); }
.empty button { border: 1px solid #4d739e; background: #172c45; color: #a5d1ff; border-radius: 6px; padding: 10px 18px; font-size: .9375rem; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 28px 0; color: var(--muted); font-size: .875rem; }
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; gap: 1rem; }
  .brand { gap: .6rem; }
  .brand-name { font-size: 1rem; }
  .brand-symbol { width: 34px; height: 34px; }
  .domain { font-size: .75rem; }
  .title-row { padding: 27px 0 16px; gap: 1rem; }
  .title-line { display: none; }
  .total { gap: .4rem; }
  .total strong { font-size: 1.5rem; }
  .total span { font-size: .8125rem; }
  .toolbar { padding: 10px 0 18px; }
  .search-wrap { min-height: 52px; }
  .search-icon { margin-left: 14px; width: 20px; height: 20px; }
  input[type="search"] { padding: 12px; }
  .list-head { grid-template-columns: minmax(0, 1fr) 68px; padding: 13px 16px; gap: 12px; }
  .size-heading { display: none; }
  .trainer-row { grid-template-columns: minmax(0, 1fr) 68px; gap: 4px 12px; padding: 16px; min-height: 86px; }
  .row-index { display: none; }
  .row-name { grid-column: 1; grid-row: 1; }
  .row-name h2 { font-size: 1rem; }
  .row-name p { font-size: .875rem; }
  .row-size { grid-column: 1; grid-row: 2; text-align: left; font-size: .875rem; color: var(--muted); }
  .row-size small { display: inline; margin-left: 7px; }
  .download { grid-column: 2; grid-row: 1 / span 2; padding: 8px 12px; }
}
@media (max-width: 370px) { .domain { display: none; } .total span { font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
