/* 大模型排行榜 v4 排版（叠在 llm-leaderboard.v2.css 之上；替代 v3.css）。
   设计约定：字号 H1 28/24 · H2 18 · 正文 15/14 · 次要 13/12；间距 8px 栅格；强调色只用站点蓝 + 涨跌绿/红。
   深色模式：颜色全部走 --x-* 变量。类名刻意避开 theme.css 通用深色规则会匹配的片段
   （-card/-panel/-board/-section/-item/-note/-wrap/-box/-faq/-content/-tool/-sheet…），
   着色文字放在 span/b/i/small/a 里（theme.css 会把 td/th/p/li/label 的颜色 !important 改掉）。 */
.lx4 {
    --x-text: #1f2937; --x-muted: #667085; --x-line: #e4e7ec; --x-surface: #fff; --x-soft: #f5f7fa; --x-head: #f8fafc;
    --x-accent: #175cd3; --x-accent-soft: #eef4ff; --x-tint: #f7f9ff; --x-up: #067647; --x-up-bg: #ecfdf3; --x-down: #b42318; --x-down-bg: #fef3f2;
    --x-warn: #b54708; --x-warn-bg: #fffaeb; --x-open-bg: #ecfdf3; --x-open: #067647; --x-on: #fff; --x-shadow: 0 1px 2px rgba(16, 24, 40, .08);
    --lx-sticky: 0px;
}
html[data-theme="dark"] .lx4 {
    --x-text: #e6edf5; --x-muted: #9aa6b4; --x-line: rgba(255, 255, 255, .12); --x-surface: #151c26; --x-soft: #1b2431; --x-head: #18212d;
    --x-accent: #8eb6ff; --x-accent-soft: #1a2a44; --x-tint: rgba(142, 182, 255, .06); --x-up: #6ee7b7; --x-up-bg: #11291f; --x-down: #fca5a5; --x-down-bg: #3a1d1f;
    --x-warn: #fbbf24; --x-warn-bg: #33270d; --x-open-bg: #123226; --x-open: #6ee7b7; --x-on: #0b1220; --x-shadow: none;
    color-scheme: dark;
}
.lx4 .page-shell { padding-top: 16px; }
.lx4 a { text-decoration: none; }

/* ---- 首屏：标题 / 一句话 / 小标签 ---- */
.lx4 .lx-hero h1 { margin: 8px 0 8px; font-size: 1.75rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.lx4 .lx-lead { max-width: 760px; margin: 0; color: var(--x-text); font-size: .9375rem; line-height: 1.6; }
.lx4 .lx-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.lx4 .lx-meta li { margin: 0; padding: 0; }
.lx4 .lx-meta li::before { content: none; }
.lx-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--x-soft); color: var(--x-muted); font-size: .75rem; line-height: 1; white-space: nowrap; }
.lx-chip time, .lx-chip b { color: var(--x-text); font-weight: 600; font-variant-numeric: tabular-nums; }
a.lx-chip.is-link { background: var(--x-accent-soft); color: var(--x-accent); font-weight: 600; }
a.lx-chip.is-link:hover { text-decoration: underline; }
.lx-chip.is-warn { background: var(--x-warn-bg); color: var(--x-warn); font-weight: 600; }

/* ---- 六个第一名 ---- */
.lx-tops { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 24px 0 16px; }
a.lx-top { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 88px; padding: 12px; border: 1px solid var(--x-line); border-radius: 12px; background: var(--x-surface); color: var(--x-text); transition: border-color .15s; }
a.lx-top:hover { border-color: var(--x-accent); }
.lx-tl { overflow: hidden; color: var(--x-muted); font-size: .75rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lx-tn { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lx-tn b { overflow: hidden; color: var(--x-text); font-size: .875rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lx-tv { margin-top: auto; color: var(--x-accent); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 本周变化 / 新模型 两张卡 ---- */
.lx-week { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 8px; }
.lx-wk { min-width: 0; padding: 12px 16px 4px; border: 1px solid var(--x-line); border-radius: 12px; background: var(--x-surface); }
.lx-wkh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.lx4 .lx-wkh .lx-h { margin: 0; font-size: 1rem; }
.lx-wks { color: var(--x-muted); font-size: .75rem; white-space: nowrap; }
.lx4 ol.lx-rows { margin: 0; padding: 0; list-style: none; }
.lx4 ol.lx-rows li { margin: 0; padding: 0; }
.lx4 ol.lx-rows li + li { border-top: 1px solid var(--x-line); }
.lx-rows a { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; color: var(--x-text); }
.lx-rows a:hover b { color: var(--x-accent); }
.lx-rn { display: flex; flex-direction: column; min-width: 0; }
.lx-rn b, .lx-rn small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-rn b { color: var(--x-text); font-size: .875rem; font-weight: 600; line-height: 1.35; }
.lx-rn small, .lx-rr small { color: var(--x-muted); font-size: .75rem; line-height: 1.35; }
.lx-rr { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--x-soft); color: var(--x-muted); font-size: .75rem; font-weight: 600; line-height: 1.5; }
.lx-pill.up { background: var(--x-up-bg); color: var(--x-up); }
.lx-pill.down { background: var(--x-down-bg); color: var(--x-down); }
.lx-pill.new { background: var(--x-accent-soft); color: var(--x-accent); }
.lx4 .lx-empty { margin: 8px 0 12px; font-size: .8125rem; }
.lx-empty span { color: var(--x-muted); }
.lx-ic { flex: none; width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
.lx-tn .lx-ic, .lx-rows .lx-ic { width: 18px; height: 18px; }
.lx-lt { display: inline-grid; place-items: center; background: var(--x-soft); color: var(--x-muted); font-size: .6875rem; font-style: normal; font-weight: 700; }

/* ---- 标签行 + 工具栏 ---- */
.lx-tb { display: flex; flex-direction: column; gap: 12px; margin: 32px 0 8px; }
.lx-seg { display: inline-flex; align-self: flex-start; gap: 2px; max-width: 100%; padding: 4px; overflow-x: auto; border-radius: 10px; background: var(--x-soft); scrollbar-width: none; }
.lx-seg::-webkit-scrollbar { display: none; }
a.lx-tab { flex: 0 0 auto; padding: 6px 14px; border-radius: 8px; color: var(--x-muted); font-size: .875rem; font-weight: 500; line-height: 1.5; white-space: nowrap; }
a.lx-tab:hover { color: var(--x-text); }
a.lx-tab.is-on { background: var(--x-surface); box-shadow: var(--x-shadow); color: var(--x-text); font-weight: 600; }
html[data-theme="dark"] .lx4 a.lx-tab.is-on { background: #26303e; }
.lx-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.lx-q { position: relative; flex: 1 1 220px; min-width: 160px; max-width: 300px; }
.lx-q svg { position: absolute; top: 50%; left: 10px; width: 16px; height: 16px; color: var(--x-muted); transform: translateY(-50%); pointer-events: none; }
.lx4 .lx-q input { box-sizing: border-box; width: 100%; height: 36px; margin: 0; padding: 0 10px 0 32px; border: 1px solid var(--x-line); border-radius: 8px; background: var(--x-surface); color: var(--x-text); font-size: .875rem; box-shadow: none; }
.lx4 .lx-q input:focus { border-color: var(--x-accent); outline: 2px solid var(--x-accent-soft); }
.lx-fp { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.lx4 label.lx-sel { display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; height: 36px; margin: 0; padding: 0 4px 0 10px; border: 1px solid var(--x-line); border-radius: 8px; background: var(--x-surface); }
.lx4 label.lx-sel:focus-within { border-color: var(--x-accent); }
.lx-sl { color: var(--x-muted); font-size: .75rem; white-space: nowrap; }
.lx4 .lx-sel select { min-width: 0; max-width: 170px; height: 34px; margin: 0; padding: 0 2px; border: 0; background: transparent; color: var(--x-text); font-size: .8125rem; font-weight: 500; box-shadow: none; cursor: pointer; }
.lx4 .lx-sel select:focus { outline: none; }
html[data-theme="dark"] .lx4 .lx-sel select option { background: #151c26; color: #e6edf5; }
.lx-grp { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--x-soft); }
a.lx-gb { padding: 4px 10px; border-radius: 6px; color: var(--x-muted); font-size: .8125rem; line-height: 1.5; white-space: nowrap; }
a.lx-gb.is-active { background: var(--x-surface); box-shadow: var(--x-shadow); color: var(--x-text); font-weight: 600; }
html[data-theme="dark"] .lx4 a.lx-gb.is-active { background: #26303e; }
.lx4 .lx-apply { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--x-accent); color: var(--x-on); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.lx-form.js .lx-apply { display: none; }
.lx4 .lx-ib, .lx4 .lx-fbtn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; height: 36px; margin: 0 0 0 auto; padding: 0; border: 1px solid var(--x-line); border-radius: 8px; background: var(--x-surface); color: var(--x-text); cursor: pointer; }
.lx4 .lx-ib { width: 36px; }
.lx4 .lx-ib:hover, .lx4 .lx-fbtn:hover { border-color: var(--x-accent); color: var(--x-accent); }
.lx4 .lx-ib:disabled { opacity: .45; cursor: default; }
.lx-ib svg, .lx-fbtn svg { width: 18px; height: 18px; }
.lx4 .lx-fbtn { display: none; padding: 0 12px; font-size: .8125rem; font-weight: 600; }
.lx-fbtn i { min-width: 18px; height: 18px; border-radius: 999px; background: var(--x-accent); color: var(--x-on); font-size: .6875rem; font-style: normal; line-height: 18px; text-align: center; }
.lx-fbtn i[hidden] { display: none; }

/* ---- 表格（桌面） ---- */
.lx-bd { margin-top: 8px; }
.lx-bdh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 8px; }
.lx4 .lx-bdh .lx-h { margin: 0; }
.lx-cnt { color: var(--x-muted); font-size: .8125rem; }
.lx4 .lx-colbtn { align-self: center; height: 30px; margin-left: auto; padding: 0 12px; border: 1px solid var(--x-line); border-radius: 999px; background: var(--x-surface); color: var(--x-accent); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.lx4 .lx-colbtn[aria-pressed="true"] { background: var(--x-accent-soft); }
.lx4 .lx-colbtn[hidden] { display: none; }
.lx-tbl { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--x-text); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.lx-tbl thead { position: sticky; top: var(--lx-sticky); z-index: 3; }
.lx-tbl th { padding: 6px 8px; border-bottom: 1px solid var(--x-line); background: var(--x-head); color: var(--x-muted); font-size: .75rem; font-weight: 600; text-align: right; white-space: nowrap; }
.lx-tbl tr.lx-g th { padding-top: 8px; }
.lx-tbl th.lx-gh { border-bottom-style: dashed; text-align: center; }
.lx-tbl th.c-rk, .lx-tbl th.c-m { text-align: left; }
.lx-tbl th[rowspan] { vertical-align: bottom; }
.lx-tbl th a.lx-sort { color: inherit; }
.lx-tbl th a.lx-sort:hover, .lx-tbl th.is-s a.lx-sort { color: var(--x-accent); }
.lx-tbl th a.lx-sort i { display: inline-block; min-width: .6em; font-style: normal; }
.lx-tbl td { padding: 8px; border-bottom: 1px solid var(--x-line); text-align: right; white-space: nowrap; vertical-align: middle; }
.lx-tbl :is(th, td):is(.c-in, .c-pi, .c-tt, .c-cx), .lx-tbl th.lx-gh { border-left: 1px solid var(--x-line); }
.lx-tbl tbody tr:hover td { background: var(--x-soft); }
.lx-tbl td.c-rk { width: 32px; text-align: left; }
.lx-tbl td.c-m { min-width: 190px; text-align: left; }
.lx-rk { display: inline-grid; min-width: 22px; height: 22px; place-items: center; border-radius: 6px; color: var(--x-muted); font-size: .75rem; font-weight: 600; }
.lx-rk.t { background: var(--x-accent-soft); color: var(--x-accent); }
.lx-mv { display: block; font-size: .6875rem; font-style: normal; line-height: 1.2; }
.lx-mv.up { color: var(--x-up); } .lx-mv.dn { color: var(--x-down); }
a.lx-m { display: inline-flex; align-items: center; gap: 8px; color: var(--x-text); font-size: .875rem; font-weight: 600; }
a.lx-m:hover .lx-n { color: var(--x-accent); }
.lx-o { display: flex; align-items: center; gap: 6px; margin: 2px 0 0 28px; color: var(--x-muted); font-size: .75rem; }
.lx-w, .lx-ef { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--x-soft); color: var(--x-muted); font-size: .6875rem; font-style: normal; font-weight: 500; line-height: 1.5; }
.lx-w.is-o { background: var(--x-open-bg); color: var(--x-open); }
.lx-ef { margin-left: 6px; background: var(--x-accent-soft); color: var(--x-accent); }
.lx-tbl td.c-ar b { font-weight: 600; }
.lx-tbl td small { margin-left: 3px; color: var(--x-muted); font-size: .6875rem; }
.lx-tbl td.is-p { background: var(--x-tint); }
.lx-tbl td.is-p b, .lx-tbl td.is-p { color: var(--x-accent); }
.lx-tbl td.c-ar.is-p { color: var(--x-text); }
.lx-tbl tbody tr:hover td.is-p { background: var(--x-soft); }
.lx-tbl td.is-e { color: var(--x-muted); opacity: .45; }
.lx-tbl td.c-dt { color: var(--x-muted); }
html[data-theme="dark"] .lx4 .lx-tbl td.is-p:not(.c-ar) { color: var(--x-accent) !important; }
html[data-theme="dark"] .lx4 .lx-tbl td:is(.is-e, .c-dt) { color: var(--x-muted) !important; }
.lx-tbl sup { color: var(--x-warn); }
.lx-fl { color: var(--x-warn); }
.lx-tbl tr.is-fam td.c-rk { box-shadow: inset 3px 0 0 var(--lx-fam, transparent); }
.lx-tbl tr.lx-none td { padding: 24px; color: var(--x-muted); text-align: center; }
.lx-x { display: none; }
.lx-more { margin: 16px 0 0; text-align: center; }
.lx-more a { display: inline-block; padding: 8px 20px; border: 1px solid var(--x-line); border-radius: 999px; background: var(--x-surface); color: var(--x-accent); font-size: .875rem; font-weight: 600; }
.lx-more a:hover { border-color: var(--x-accent); }
.lx4 .lx-fn { max-width: 920px; margin: 8px 0 0; color: var(--x-muted); font-size: .75rem; line-height: 1.6; }
.lx-fn span { color: var(--x-muted); }
@media (min-width: 761px) {
    .lx-tbl:not(.is-more) :is(th, td):is(.c-rt, .c-tt, .c-fa) { display: none; }
    .lx-tbl:not(.is-more) :is(th, td).c-sp { border-left: 1px solid var(--x-line); }
}
/* 1100px 以下表格横向滚动（粘性表头随之失效；窄屏有卡片布局） */
@media (max-width: 1099px) { .lx-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; } .lx-tbl thead { position: static; } }

/* ---- 其余区块 ---- */
.lx4 .lx-h { margin: 0 0 8px; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.lx4 .lx-h small { color: var(--x-muted); font-size: .8125rem; font-weight: 400; }
.lx4 .lx-h3 { margin: 16px 0 8px; font-size: .9375rem; font-weight: 600; }
.lx-sec { margin-top: 40px; }
.lx4 .lx-dim, .lx4 span.lx-dim { color: var(--x-muted); font-size: .8125rem; }
.lx4 p.lx-dim { margin: 0 0 8px; }
.lx4 .lx-chips { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; font-size: .8125rem; }
.lx4 .lx-chips a, .lx4 .lx-az a, .lx4 .lx-src a, .lx4 .lx-meth a, .lx4 .lx-qa a { color: var(--x-accent); }
.lx4 .lx-chips a:hover, .lx4 .lx-az a:hover, .lx4 .lx-qa a:hover, .lx4 .lx-src a:hover { text-decoration: underline; }
.lx4 .lx-az { margin: 0; color: var(--x-muted); font-size: .8125rem; line-height: 2; }
.lx4 .lx-sum { max-width: 920px; margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--x-soft); font-size: .875rem; line-height: 1.7; }
.lx-sum span { color: var(--x-text); }
.lx4 .lx-src, .lx4 .lx-meth { max-width: 920px; margin: 0; padding-left: 20px; font-size: .875rem; line-height: 1.7; }
.lx4 .lx-src li + li, .lx4 .lx-meth li + li { margin-top: 4px; }
.lx4 .lx-qa { max-width: 920px; padding: 12px 0; border-bottom: 1px solid var(--x-line); }
.lx4 .lx-qa summary { cursor: pointer; font-size: .9375rem; font-weight: 600; }
.lx4 .lx-qa p { margin: 8px 0 0; font-size: .875rem; line-height: 1.7; }

@media (max-width: 1099px) { .lx-tops { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .lx4 .page-shell { padding-top: 8px; }
    .lx4 .lx-hero h1 { font-size: 1.5rem; }
    .lx4 .lx-lead { font-size: .9375rem; }
    .lx4 .lx-meta { gap: 6px; margin-top: 12px; }
    .lx-chip { height: 24px; padding: 0 8px; }
    .lx-tops { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 16px; }
    a.lx-top { min-height: 80px; padding: 10px 12px; }
    .lx-week { grid-template-columns: 1fr; gap: 12px; }
    .lx-wk { padding: 12px 12px 4px; }
    .lx-tb { margin-top: 24px; gap: 12px; }
    .lx-seg { align-self: stretch; gap: 8px; margin: 0 -12px; padding: 0 12px 2px; border-radius: 0; background: transparent; }
    a.lx-tab { padding: 6px 14px; border: 1px solid var(--x-line); border-radius: 999px; background: var(--x-surface); font-size: .8125rem; }
    a.lx-tab.is-on, html[data-theme="dark"] .lx4 a.lx-tab.is-on { border-color: var(--x-accent); background: var(--x-accent); box-shadow: none; color: var(--x-on); }
    .lx-form { flex-wrap: wrap; }
    .lx-q { flex: 1 1 0; max-width: none; min-width: 0; }
    .lx4 .lx-q input { font-size: 1rem; } /* iOS 16px 以下聚焦会放大 */
    .lx4 .lx-fbtn { display: inline-flex; order: 2; margin: 0; }
    .lx4 .lx-ib { order: 3; margin: 0; }
    .lx-fp { order: 4; flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border: 1px solid var(--x-line); border-radius: 12px; background: var(--x-soft); }
    .lx-form.js .lx-fp { display: none; }
    .lx-form.js.is-fo .lx-fp { display: grid; }
    .lx4 label.lx-sel { width: 100%; min-width: 0; }
    .lx4 .lx-sel select { flex: 1 1 0; max-width: none; font-size: .875rem; }
    .lx4 label.lx-sel[for="llm-org"] { grid-column: 1 / -1; }
    .lx-grp { justify-content: stretch; }
    .lx-grp a.lx-gb { flex: 1 1 0; text-align: center; }
    .lx-fp .lx-apply { grid-column: 1 / -1; }
    .lx4 .lx-colbtn { display: none; }

    /* 卡片：同一套单元格，CSS 重排成「名次 | 模型 · Arena」+ 一行关键指标；点开看全部 */
    .lx-tw { overflow: visible; }
    .lx-tbl, .lx-tbl tbody { display: block; }
    .lx-tbl thead { display: none; }
    .lx-tbl tbody tr { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; padding: 12px 12px 12px 44px; border: 1px solid var(--x-line); border-radius: 12px; background: var(--x-surface); }
    .lx-tbl tbody tr::before { order: 3; flex: 0 0 100%; height: 4px; content: ''; }
    .lx-tbl tbody tr:hover td { background: transparent; }
    .lx-tbl td { display: none; padding: 0; border: 0 !important; background: transparent !important; text-align: left; font-size: .78125rem; }
    .lx-tbl td.c-rk { position: absolute; top: 12px; left: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 24px; }
    .lx-tbl td.c-m { display: block; flex: 1 1 0; order: 1; min-width: 0; }
    .lx-tbl td.c-m a.lx-m { display: flex; max-width: 100%; font-size: .9375rem; }
    .lx-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lx-tbl td.c-ar { display: block; order: 2; text-align: right; }
    .lx-tbl td.c-ar b { font-size: .9375rem; font-weight: 700; }
    .lx-tbl td:is(.c-in, .c-po, .c-sp) { display: inline-block; order: 4; }
    .lx-tbl td.is-e { display: none !important; }
    .lx-tbl td:not(.c-rk, .c-m, .c-ar)::before { margin-right: 4px; color: var(--x-muted); font-weight: 400; }
    .lx-tbl td.c-in::before { content: var(--l-in); } .lx-tbl td.c-co::before { content: var(--l-co); }
    .lx-tbl td.c-pi::before { content: var(--l-pi); } .lx-tbl td.c-po::before { content: var(--l-po); }
    .lx-tbl td.c-rt::before { content: var(--l-rt); } .lx-tbl td.c-tt::before { content: var(--l-tt); }
    .lx-tbl td.c-fa::before { content: var(--l-fa); } .lx-tbl td.c-sp::before { content: var(--l-sp); }
    .lx-tbl td.c-cx::before { content: var(--l-cx); } .lx-tbl td.c-dt::before { content: var(--l-dt); }
    .lx-tbl td.c-sp::after { content: ' tok/s'; color: var(--x-muted); }
    .lx-tbl td:is(.c-tt, .c-fa)::after { content: ' s'; color: var(--x-muted); }
    .lx-x { display: block; width: 24px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--x-muted); cursor: pointer; }
    .lx-x::before { display: block; content: '⌄'; font-size: 15px; line-height: 12px; transition: transform .15s; }
    .lx-tbl tr.is-open .lx-x::before { transform: rotate(180deg); }
    .lx-tbl tr.is-open td:not(.c-rk, .c-m, .c-ar) { display: inline-block; order: 4; }
    .lx-o { margin-left: 28px; }
    .lx-tbl tr.lx-none { display: block; padding: 16px; }
    .lx-tbl tr.lx-none td { display: block; }
    .lx-sec { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .lx-x::before, a.lx-top { transition: none; } }
/* 站点底部 App 式导航条在本页隐藏（同音乐页），表格卡片与筛选抽屉不被遮挡 */
html body:has(main.lx4) #mobileNav { display: none !important; }
@media (max-width: 768px) { html body:has(main.lx4) { padding-bottom: env(safe-area-inset-bottom, 0px) !important; } }
/* 单色图标（fill=currentColor，作为 <img> 时恒为黑）在深色下反相 */
html[data-theme="dark"] .lx4 img.lx-ic:is([src*="/anthropic.svg"], [src*="/moonshot.svg"], [src*="/openai.svg"], [src*="/xai.svg"], [src*="/xiaomi.svg"]) { filter: invert(1) brightness(.9); }
/* 站点 body 是 overflow-x:hidden（body 成了滚动容器），sticky 表头失效；桌面且 body 无行内 overflow 时改成 clip */
@media (min-width: 1100px) { html body:has(main.lx):not([style*="overflow"]) { overflow-x: clip !important; overflow-y: visible !important; } }
/* 图表视图沿用 v2 的图例/徽标样式，深色下改用深色 token */
html[data-theme="dark"] .lx :is(.llm-front-tag, .llm-bubble-tag, .llm-logo) { background: var(--x-soft); border-color: var(--x-line); }
html[data-theme="dark"] .lx .llm-front-tag { color: #6ee7a0; }
html[data-theme="dark"] .lx .llm-bubble-tag, html[data-theme="dark"] .lx .llm-bubble-tag small { color: var(--x-muted); }
html[data-theme="dark"] .lx .llm-org-icon--xai { filter: invert(1) brightness(.9); }

/* ====== 模型详情页 v4（includes/llm-model-v4.php，main.lm4）====== */
.lm4 { background: transparent; }
.lm-shell { box-sizing: border-box; max-width: 1040px; margin: 0 auto; padding: 16px 24px 80px; }
.lm-id { display: flex; align-items: center; gap: 16px; margin: 8px 0 12px; }
.lm-id > .lx-ic { width: 44px; height: 44px; padding: 6px; border: 1px solid var(--x-line); border-radius: 12px; background: var(--x-surface); box-sizing: border-box; }
.lm-id > .lx-lt { font-size: 1.125rem; }
.lm-idt { min-width: 0; }
.lx4 .lm-hero h1 { margin: 0 0 4px; overflow-wrap: anywhere; }
.lx4 .lm-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: .8125rem; }
.lm-sub span { color: var(--x-muted); }
.lm-sub .lm-org { color: var(--x-text); font-weight: 600; }
.lm-sub .lm-rel::before, .lm-sub .lm-lic::before { margin-right: 8px; color: var(--x-line); content: '|'; }
.lx4 .lm-h { margin: 32px 0 12px; }
.lm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lm-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 96px; padding: 12px 16px; border: 1px solid var(--x-line); border-radius: 12px; background: var(--x-surface); box-sizing: border-box; }
.lm-t b { overflow: hidden; color: var(--x-text); font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.lm-t b small { margin-left: 4px; color: var(--x-muted); font-size: .75rem; font-weight: 500; }
.lm-t1 b { color: var(--x-accent); }
.lm-ts { margin-top: auto; overflow: hidden; color: var(--x-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.lm-ts.is-warn, .lm-warn { color: var(--x-warn); }
.lm-sec { margin-top: 40px; }
.lm-sec .lx-wkh { margin-bottom: 12px; }
.lm-chartbox { padding: 8px 8px 0; border: 1px solid var(--x-line); border-radius: 12px; background: var(--x-surface); }
.lm-chart { display: block; width: 100%; height: auto; }
.lm-chart .lm-gl { stroke: var(--x-line); stroke-width: 1; stroke-dasharray: 3 4; }
.lm-chart .lm-ax { fill: var(--x-muted); font-size: 12px; }
.lm-chart .lm-ln { fill: none; stroke: var(--x-accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.lm-chart .lm-dot { fill: var(--x-accent); stroke: var(--x-surface); stroke-width: 2; }
.lm-tw { overflow-x: auto; border: 1px solid var(--x-line); border-radius: 12px; background: var(--x-surface); -webkit-overflow-scrolling: touch; }
.lm-tbl { width: 100%; border-collapse: collapse; color: var(--x-text); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.lm-tbl th { padding: 8px 12px; border-bottom: 1px solid var(--x-line); background: var(--x-head); color: var(--x-muted); font-size: .75rem; font-weight: 600; text-align: right; white-space: nowrap; }
.lm-tbl td { padding: 8px 12px; border-bottom: 1px solid var(--x-line); text-align: right; white-space: nowrap; }
.lm-tbl tbody tr:last-child td { border-bottom: 0; }
.lm-tbl :is(th, td).c-m { text-align: left; }
.lm-tbl :is(th, td).c-rk { width: 32px; text-align: left; }
.lm-tbl td.c-m b { font-weight: 600; }
.lm-tbl td.is-e { color: var(--x-muted); opacity: .45; }
.lm-tbl tr.is-self td { background: var(--x-tint); }
.lm-tbl tbody tr:hover td { background: var(--x-soft); }
.lm-me { margin-left: 8px; }
html[data-theme="dark"] .lx4 .lm-tbl td.is-e { color: var(--x-muted) !important; }
html[data-theme="dark"] .lx4 .lm-tbl th { background: var(--x-head) !important; }
.lx4 .lm-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lx4 .lm-links li { margin: 0; }
.lm-links a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--x-line); border-radius: 999px; background: var(--x-surface); color: var(--x-accent); font-size: .8125rem; font-weight: 600; }
.lm-links a:hover { border-color: var(--x-accent); }
@media (max-width: 900px) { .lm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .lm-shell { padding: 8px 16px 48px; }
    .lm-id { gap: 12px; }
    .lm-id > .lx-ic { width: 40px; height: 40px; }
    .lx4 .lm-hero h1 { font-size: 1.5rem; }
    .lm-t { min-height: 84px; padding: 10px 12px; }
    .lm-t b { font-size: 1.0625rem; }
    .lm-sec { margin-top: 32px; }
    .lm-tbl { font-size: .78125rem; }
    .lm-tbl th, .lm-tbl td { padding: 8px; }
    .lm-cmp :is(th, td):nth-child(4) { display: none; } /* 手机上比较表省掉智能指数列，保证不横向滚动 */
    .lm-tbl td.c-m { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
    .lm-tbl td.c-m .lx-m { max-width: 100%; }
    .lm-tbl td.c-m .lm-me { display: none; }
}
.lx4 #llm-results-count.lx-cnt { color: var(--x-muted); font-size: .8125rem; font-weight: 400; }
.lx4 .lx-q input::placeholder { color: var(--x-muted); font-size: .875rem; opacity: 1; }
.lm-sec .lx-wkh { flex-wrap: wrap; }
@media (max-width: 760px) { .lm-sec .lx-wks { white-space: normal; } }
@media (max-width: 760px) { .lm-chart .lm-ax { font-size: 20px; } }
