:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #20212a;
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: #ded2ff; }
:focus-visible { outline: 3px solid #8957e5; outline-offset: 3px; }
.container { width: min(100% - 40px, 1440px); margin-inline: auto; }
.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; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 100; padding: 10px 14px; background: #ede5ff; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid #e5e6eb; background: #f3f4f7; }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 6px 13px 6px 7px; border-radius: 999px; background: #171820; color: #fff; text-decoration: none; font-family: Georgia, serif; font-size: 17px; }
.brand-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #9761f2; color: #fff; font-family: system-ui, sans-serif; font-size: 15px; font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 7px; margin-inline: auto; padding: 4px; border-radius: 999px; background: #e9eaee; font-size: 13px; }
.site-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: #fff; }
.source-link { flex: none; padding: 8px 12px; border: 1px solid #d4d6de; border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 700; }
.source-link:hover { border-color: #9761f2; color: #6936c9; }

.overview { padding: 53px 0 68px; background: #f3f4f7; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 31px; }
.eyebrow, .section-index, .panel-kicker { color: #7556b7; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.page-heading .eyebrow { margin: 0 0 10px; }
.page-heading h1 { margin: 0 0 9px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(30px, 3.2vw, 45px); line-height: 1.25; font-weight: 500; letter-spacing: -.04em; }
.page-heading p:last-child { margin: 0; color: #59616d; font-size: 13px; line-height: 1.7; }
.page-heading > a { flex: none; align-self: flex-start; padding: 10px 16px; border-radius: 6px; background: #7a3fe4; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.page-heading > a:hover { background: #6932d0; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.summary-card { min-width: 0; min-height: 150px; display: flex; flex-direction: column; padding: 19px 20px; border-radius: 8px; background: #fff; }
.summary-label { align-self: flex-start; padding: 6px 10px; border-radius: 99px; background: #f1f2f5; color: #484d59; font-size: 11px; font-weight: 700; }
.summary-card strong { margin-top: 15px; color: #292a35; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -.04em; }
.summary-card p { margin: 6px 0 0; overflow: hidden; color: #4d5360; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.summary-note { margin-top: auto; padding-top: 10px; color: #9298a3; font-size: 10px; }
.preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.preview-card { min-width: 0; padding: 20px; border: 1px solid #e2e3e9; border-radius: 8px; background: #fff; }
.preview-head { display: flex; align-items: center; gap: 8px; }
.preview-head h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 22px; font-weight: 500; }
.preview-head > span:last-child { margin-left: auto; color: #8d92a0; font-size: 10px; }
.preview-icon { width: 12px; height: 12px; flex: none; }
.preview-icon-model { background: #8052dd; }
.preview-icon-throughput { background: #2872d4; }
.preview-icon-ttft { background: #df814d; }
.preview-card > p { margin: 7px 0 0; color: #8d92a0; font-size: 11px; }
.preview-canvas { position: relative; height: 265px; margin-top: 15px; }
.preview-card > a { display: inline-block; margin-top: 10px; color: #6844b0; font-size: 11px; font-weight: 700; text-decoration: none; }
.preview-card > a:hover { text-decoration: underline; }

.detail-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 30px; padding-top: 68px; }
.detail-nav { position: sticky; top: 24px; align-self: start; display: grid; gap: 4px; padding-top: 8px; }
.detail-nav strong { margin-bottom: 9px; color: #8c92a0; font-size: 11px; }
.detail-nav a { padding: 9px 10px; border-left: 2px solid transparent; color: #5d626d; font-size: 12px; text-decoration: none; }
.detail-nav a:hover { border-color: #7a3fe4; background: #f7f4ff; color: #55349e; }
.detail-main { min-width: 0; }
.detail-section { margin-bottom: 88px; scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 21px; }
.section-heading h2 { margin: 6px 0 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 35px; line-height: 1.2; font-weight: 500; letter-spacing: -.04em; }
.section-heading > p { max-width: 370px; margin: 0; color: #727987; font-size: 12px; line-height: 1.65; }
.data-panel { overflow: hidden; border: 1px solid #dfe1e6; border-radius: 8px; background: #fff; }
.panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 24px 26px; border-bottom: 1px solid #e8e9ed; }
.panel-heading h3 { margin: 6px 0 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 23px; font-weight: 500; }
.panel-heading > span { color: #818897; font-size: 11px; }
.panel-footer { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid #e8e9ed; background: #fafafb; color: #7b8290; font-size: 11px; }
.panel-footer a { color: #7043c8; text-decoration: none; }
.panel-footer a:hover { text-decoration: underline; }

.arena-controls, .board-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; padding: 16px 24px; border-bottom: 1px solid #e8e9ed; }
.search-field { flex: 1 1 230px; max-width: 400px; }
.search-field input { width: 100%; height: 39px; padding: 0 13px; border: 1px solid #dcdfe5; border-radius: 5px; background: #fff; color: #252936; font-size: 12px; }
.select-field { display: inline-flex; align-items: center; gap: 7px; color: #69717d; font-size: 11px; white-space: nowrap; }
.select-field select { height: 39px; padding: 0 10px; border: 1px solid #dcdfe5; border-radius: 5px; background: #fff; color: #252936; font-size: 11px; }
.result-count { margin-left: auto; color: #8d93a0; font-size: 11px; white-space: nowrap; }
.empty-message { margin: 0; padding: 38px 24px; color: #757b87; font-size: 12px; }
.arena-legend { display: flex; flex-wrap: wrap; gap: 10px 17px; padding: 20px 24px 3px; color: #6d7582; font-size: 11px; }
.arena-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.arena-legend i { width: 13px; height: 7px; border-radius: 4px; }
.legend-proprietary { background: #7455d3; }
.legend-open { background: #139d83; }
.legend-unknown { background: #9298a3; }
.arena-canvas { margin: 0 20px; }
.arena-chart-inner { position: relative; width: 100%; height: 580px; }
.chart-note { margin: 0; padding: 11px 24px 17px; color: #8b919d; font-size: 11px; line-height: 1.5; }
.arena-table-wrap { max-height: 470px; overflow: auto; border-top: 1px solid #e8e9ed; }
.arena-table-wrap table, .results-wrap table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.arena-table-wrap th, .arena-table-wrap td, .results-wrap th, .results-wrap td { padding: 13px 20px; border-bottom: 1px solid #eceef1; }
.arena-table-wrap th, .results-wrap th { position: sticky; top: 0; z-index: 1; background: #f8f8fa; color: #777e8b; font-size: 11px; }
.arena-table-wrap td, .results-wrap td { color: #555d69; font-size: 12px; }
.arena-rank-cell { color: #6d49bd !important; font-weight: 800; }
.arena-rating-cell, .results-wrap .value-cell { color: #282632 !important; font-size: 14px !important; font-weight: 800; }
.arena-model-cell { min-width: 260px; }
.arena-model-cell strong, .arena-model-cell span, .model-cell strong, .model-cell span { display: block; }
.arena-model-cell strong, .model-cell strong { color: #272a34; font-size: 12px; }
.arena-model-cell span, .model-cell span { margin-top: 3px; color: #959ba6; font-size: 11px; }

.metric-tabs { display: flex; align-items: center; gap: 26px; overflow-x: auto; padding: 0 24px; border-bottom: 1px solid #e8e9ed; }
.metric-tabs button { position: relative; flex: none; padding: 17px 0; border: 0; background: none; color: #6e7480; font-size: 12px; font-weight: 700; }
.metric-tabs button:hover, .metric-tabs button[aria-selected="true"] { color: #3f2580; }
.metric-tabs button[aria-selected="true"]::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #8254df; content: ""; }
.metric-intro { display: flex; align-items: center; gap: 25px; padding: 19px 24px; border-bottom: 1px solid #e8e9ed; }
.metric-intro h3 { margin: 5px 0 0; font-size: 19px; white-space: nowrap; }
.metric-intro p { max-width: 440px; margin: 0; color: #737b87; font-size: 11px; line-height: 1.6; }
.direction { flex: none; margin-left: auto; color: #6544b3; font-size: 11px; font-weight: 800; }
.workload-caption { margin: 0; padding: 0 24px 14px; color: #7c8490; font-size: 11px; line-height: 1.5; }
.charts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #e8e9ed; }
.chart-panel { min-width: 0; margin: 0; padding: 21px 17px 0; }
.chart-panel + .chart-panel { border-left: 1px solid #e8e9ed; }
.chart-panel figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-inline: 8px; }
.chart-panel h4 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 18px; font-weight: 500; }
.chart-panel figcaption span { color: #8c93a0; font-size: 10px; }
.chart-canvas { position: relative; height: 270px; margin-top: 8px; }
.chart-panel .chart-note { padding: 10px 8px 15px; }
.results-wrap { overflow-x: auto; border-top: 1px solid #e8e9ed; }
.table-hint { display: none; }
.results-wrap td a { color: #7043c8; font-weight: 700; text-decoration: none; }
.empty-state { padding: 42px 24px; }
.empty-label { color: #8d72c5; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 800; }
.empty-state h4 { margin: 8px 0; font-size: 18px; }
.empty-state p { margin: 0; color: #777e8b; font-size: 12px; }
.empty-state a { display: inline-block; margin-top: 10px; color: #7043c8; font-size: 12px; text-decoration: none; }

.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.method-grid article { padding: 23px; border: 1px solid #e0e2e8; border-radius: 8px; }
.method-grid h3 { margin: 0 0 11px; font-size: 16px; }
.method-grid p { margin: 0; color: #6d7581; font-size: 12px; line-height: 1.75; }
.method-grid a { display: inline-block; margin-top: 18px; color: #7043c8; font-size: 11px; font-weight: 700; text-decoration: none; }
.site-footer { border-top: 1px solid #e6e7eb; background: #f8f8fa; }
.footer-inner { display: flex; justify-content: space-between; gap: 15px; padding-block: 26px; color: #777e8b; font-size: 11px; }
.footer-inner a { color: #7043c8; text-decoration: none; }

@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-card:last-child { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 135px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1440px); }
  .header-inner { min-height: 59px; gap: 9px; }
  .brand { padding-right: 9px; font-size: 14px; }
  .site-nav { gap: 0; margin-left: auto; margin-right: 0; background: transparent; font-size: 11px; }
  .site-nav a { padding: 7px; }
  .source-link { display: none; }
  .overview { padding: 34px 0 45px; }
  .page-heading { display: block; margin-bottom: 22px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading > a { display: none; }
  .summary-grid { gap: 9px; }
  .summary-card { min-height: 137px; padding: 13px; }
  .summary-card strong { font-size: 23px; }
  .summary-card p { font-size: 11px; }
  .summary-label { font-size: 10px; }
  .preview-grid { grid-template-columns: 1fr; gap: 10px; }
  .preview-card:last-child { grid-column: auto; }
  .preview-canvas { height: 245px; }
  .detail-layout { display: block; padding-top: 37px; }
  .detail-nav { position: static; display: flex; gap: 4px; overflow-x: auto; padding: 0 0 18px; }
  .detail-nav strong { display: none; }
  .detail-nav a { flex: none; border-left: 0; border-bottom: 2px solid transparent; }
  .detail-section { margin-bottom: 60px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 9px; }
  .panel-heading { display: block; padding: 19px; }
  .panel-heading > span { display: block; margin-top: 9px; }
  .arena-controls, .board-controls { padding: 14px 18px; }
  .search-field { max-width: none; flex-basis: 100%; }
  .arena-legend { padding: 17px 16px 0; }
  .arena-canvas { margin: 0 10px; }
  .arena-chart-inner { height: 550px; }
  .metric-tabs { gap: 19px; padding-inline: 18px; }
  .metric-tabs .result-count { display: none; }
  .metric-intro { flex-wrap: wrap; gap: 9px; padding: 16px 18px; }
  .metric-intro p { order: 3; width: 100%; }
  .workload-caption { padding-inline: 18px; }
  .charts-grid { grid-template-columns: 1fr; }
  .chart-panel + .chart-panel { border-left: 0; border-top: 1px solid #e8e9ed; }
  .method-grid { grid-template-columns: 1fr; }
  .panel-footer { padding-inline: 18px; }
}
@media (max-width: 440px) {
  .brand span:last-child { display: none; }
  .site-nav { margin-left: auto; }
  .summary-card strong { font-size: 20px; }
  .summary-note { font-size: 9px; }
  .table-hint { display: block; margin: 0; padding: 8px 18px; color: #8c93a0; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
