/* ============================================================================
 * 论文项目主页样式 —— 结构复刻自 MINT-SJTU/STI-Bench.io
 * 分区顺序: 变量 → 基础 → 容器 → 首屏 → 通用区块 → 排行榜 → 选项卡
 *           → QUIZ → 图片轮播 → 响应式
 * ==========================================================================*/

/* ── 0. 可调变量:改这里就能换主题色,不用翻全文 ───────────────────────── */
:root {
    --accent:        #FFA500;   /* 主强调色(高亮词 / 选项卡下划线 / 排序箭头) */
    --author:        rgb(78, 233, 78); /* 作者名字颜色 */
    --btn-bg:        #333333;   /* 胶囊按钮底色 */
    --btn-bg-hover:  #555555;
    --text:          #333;
    --text-muted:    #555;
    --page-bg:       #f8f8f8;
    --section-bg:    #ffffff;
    --border:        #dddddd;
    --font-serif:    'Times New Roman', Times, serif;
    --font-sans:     Arial, Helvetica, sans-serif;
    --measure:       800px;     /* 正文段落最大宽度 */
    --container:     1200px;    /* 内容容器最大宽度 */
}

/* ── 1. 基础 ──────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    background-color: var(--page-bg);
    color: var(--text);
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }

/* ── 2. 容器 ──────────────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── 3. 首屏(标题 / 作者 / 链接按钮) ─────────────────────────────────── */
.robot {
    background-color: var(--section-bg);
    padding: 40px 0;
    text-align: center;
}

.robot .title {
    /* 长标题自适应:视口越窄字号越小,保证不会断成四五行的碎块 */
    font-size: clamp(1.5rem, 3.1vw, 2.9em);
    font-weight: bold;
    line-height: 1.25;
    margin: 0 0 10px;
}

.robot .subtitle {
    font-size: 1.2em;
    color: #666;
}

.title .highlight { color: var(--accent); }

.publication-authors {
    font-size: 1.25em;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 20px;
}

.author-name        { color: var(--author); }
.author-affiliation { color: black; }

.publication-links {
    margin-top: 20px;
    text-align: center;
}

.publication-links .link-block {
    display: inline-block;
    margin: 0 5px 8px;
}

.publication-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    background-color: var(--btn-bg);
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.publication-links a:hover { background-color: var(--btn-bg-hover); }
.publication-links i       { margin-right: 5px; }
.icon {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

/* 未发布的链接按钮:与可点按钮同款外形,但灰底、不可点、带 coming soon 标 */
.btn-soon {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8a95a3;
    font-weight: bold;
    background-color: #eef1f5;
    border: 1px dashed #cfd6df;
    padding: 9px 18px;
    border-radius: 20px;
    cursor: default;
    user-select: none;
}

.soon-tag {
    font-family: var(--font-sans);
    font-size: 0.66em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #a5741a;
    background: #fdf3d8;
    border-radius: 8px;
    padding: 2px 7px;
    white-space: nowrap;
}

/* ── 4. 通用区块 ──────────────────────────────────────────────────────── */
.logo-section,
.abstract-section,
.taxonomy-section,
.demo-video-section,
.comparison-section,
.pipeline-section,
.results-section,
.analysis-section,
.more-examples-section,
.quiz-section,
.casestudy-section,
.conclusion-section {
    background-color: var(--section-bg);
    padding: 40px 0;
    margin: 0;
}

h2 {
    font-size: 2.0em;
    margin: 0 0 20px;
    text-align: center;
    font-family: var(--font-serif);
}

h3 {
    font-size: 1.5em;
    font-family: var(--font-serif);
    margin: 30px auto 15px;
    max-width: var(--measure);
}

p {
    font-size: 1.5em;
    color: var(--text);
    margin: 0 0 20px;
    text-align: left;
    font-family: var(--font-serif);
}

/* 正文型段落:居中 + 限宽 + 两端对齐(Abstract / Conclusion / Analysis) */
.abstract-section p,
.conclusion-section p,
.analysis-section p {
    text-align: justify;
    margin: 0 auto 20px;
    max-width: var(--measure);
}

/* 图注:比正文小一号,靠左 */
.figure-caption {
    font-size: 1.1em;
    text-align: justify;
    margin: 16px auto 20px;
    max-width: 1000px;
    color: var(--text);
}

/* 图片容器 */
.image-container {
    width: 100%;
    text-align: center;
}

.full-width-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.analysis-section .full-width-image { max-width: var(--measure); }

.full-width-image:hover {
    transform: scale(1.03);
    position: relative;
    z-index: 20;
}

/* ── 两张图并排一行(Construction Pipeline:流程图 + 语料分布圆环图) ────────
   ★ 对齐原理:把两列的宽度比设成两张图的宽高比,渲染出来的**高度就自动相等**,
     上下边缘都能对齐,而且任何屏宽下都保持相等(纯比例,不写死像素)。
         pipeline.png  = 2400×1387  -> 宽高比 1.730  -> 173fr
         statistic.png = 2400×1767  -> 宽高比 1.358  -> 136fr
     换图时:按新图的比例改这两个数字即可。                                    */
.figure-row {
    display: grid;
    grid-template-columns: 173fr 136fr;
    gap: 28px;
    align-items: start;      /* 顶对齐;高度已由上面的比例保证一致 */
    margin: 0 0 30px;
}

.figure-panel { margin: 0; }

.figure-panel img {
    width: 100%;
    height: auto;
    display: block;
}

.figure-panel figcaption {
    font-family: var(--font-serif);
    font-size: 1.02em;
    color: #55606f;
    line-height: 1.6;
    text-align: justify;
    margin-top: 12px;
}

/* 并排时不放大,避免悬停时两张图互相遮挡 */
.figure-row .full-width-image:hover { transform: none; }

/* Demo 视频网格 */
.video-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.video-container video {
    border-radius: 8px;
    width: 400px;
    max-width: 100%;
    height: auto;
    background: #000;
}

/* 结果区双栏 */
.two-col {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.two-col > * { flex: 1; min-width: 0; }

.two-col .stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── 5. 排行榜 ────────────────────────────────────────────────────────── */
.leaderboard-section {
    background-color: var(--section-bg);
    padding: 40px 0;
}

.leaderboard-section .container { max-width: 1600px; }

.leaderboard-section .leaderboard-title {
    color: #2c3e50;
    margin-bottom: 10px;
}

.leaderboard-section .description {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.2em;
    color: var(--text-muted);
    margin-bottom: 25px;
    padding: 0 20px;
}

.leaderboard-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    table-layout: fixed;
    font-family: var(--font-sans);
    font-size: 0.95em;
}

.leaderboard-section th,
.leaderboard-section td {
    border: 1px solid var(--border);
    padding: 11px 5px;
    text-align: center;
    word-wrap: break-word;
    vertical-align: middle;
}

.leaderboard-section th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8em;
    /* 表头:水平 + 垂直严格居中;relative 供排序箭头绝对定位 */
    text-align: center;
    vertical-align: middle;
    position: relative;
    padding: 11px 4px;
}

/* 表头禁止折行 —— CP-HUMAN 这类带连字符的列名不会再被断成两行 */
.leaderboard-section .task-header { white-space: nowrap; }

.leaderboard-section thead th.sortable {
    cursor: pointer;
    user-select: none;
}

.leaderboard-section thead th.sortable:hover { background-color: #e9e9e9; }

/* 16 列宽度分配(合计 100%)
   Rank 4.5% + Method 17.5% + Overall 6.5%  = 28.5%
   9 个纯数值列各 5.2%                       = 46.8%  ("87.95" 绰绰有余)
   4 个长列名各 6.3%                         = 25.2%  (LS-Head / LS-Body / CP-Room / CP-Human)

   ※ Method 由 16% 加宽到 17.5%:让 "Qwen2.5-VL-7B-Instruct + OPEN 徽章"
     在 1440px 附近也能排成一行,不再把徽章挤到第二行。
     多出来的 1.5% 由上面 4 个长列名各让 0.25%,其他列一律不动。 */
.leaderboard-section .rank-header   { width: 4.5%; }
.leaderboard-section .method-header { width: 17.5%; }
.leaderboard-section .avg-header    { width: 6.5%; }
.leaderboard-section .task-header   { width: 5.2%; }
.leaderboard-section .task-header.wide { width: 6.3%; }

.leaderboard-section tbody tr:nth-child(even) { background-color: #f8f8f8; }
.leaderboard-section tbody tr:hover           { background-color: #f1f1f1; }

.leaderboard-section .model-name { text-align: left; font-weight: bold; }
.leaderboard-section .model-name a { color: inherit; text-decoration: none; }
.leaderboard-section .model-name a:hover {
    text-decoration: underline;
    color: #3498db;
}

.leaderboard-section .frame-count {
    color: #888;
    font-weight: normal;
    font-size: 0.9em;
    margin-left: 4px;
}

.leaderboard-section .rank-col {
    font-weight: bold;
    background-color: #f5f5f5;
}

/* 前三名高亮 */
.leaderboard-section tbody tr:nth-child(1) .rank-col { color: #d4af37; }
.leaderboard-section tbody tr:nth-child(2) .rank-col { color: #9aa0a6; }
.leaderboard-section tbody tr:nth-child(3) .rank-col { color: #b87333; }

/* 排序箭头绝对定位在单元格右侧 —— 不再挤占文字空间,表头文字始终正中 */
.leaderboard-section .sort-indicator {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: auto;
    font-size: 0.85em;
    line-height: 1;
}

/* ── 6a. 任务定义 —— 左侧粘性目录 + 右侧内容(方案 B) ─────────────────── */
.taskdef-section {
    background-color: var(--section-bg);
    padding: 40px 0;
}

.taskdef-section .section-lead {
    font-family: var(--font-sans);
    font-size: 1.02em;
    color: #55606f;
    text-align: center;
    max-width: 880px;
    margin: 0 auto 34px;
    line-height: 1.7;
}

.taskdef-wrap {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 44px;
    align-items: start;
}

/* 左侧目录:滚动到本区块时粘住 */
.taskdef-nav {
    position: sticky;
    top: 20px;
    border-right: 1px solid #e6ecf3;
    padding-right: 18px;
}

.taskdef-nav .nav-title {
    font-family: var(--font-sans);
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9aa7b6;
    margin-bottom: 12px;
}

.taskdef-nav .nav-group {
    font-family: var(--font-sans);
    font-size: 0.66em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #b6c2d1;
    margin: 16px 0 6px 12px;
}

.taskdef-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.87em;
    color: #55606f;
    text-decoration: none;
    padding: 8px 12px;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    margin-bottom: 2px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.taskdef-nav a .n { font-size: 0.82em; font-weight: 700; color: #b6c2d1; }
.taskdef-nav a:hover { background: #f4f7fb; }

.taskdef-nav a.on {
    border-left-color: var(--accent);
    background: #fff7e8;
    color: #a8610a;
    font-weight: 700;
}
.taskdef-nav a.on .n { color: #d99a3a; }

/* 右侧内容 */
.taskdef-block { margin-bottom: 32px; scroll-margin-top: 20px; }

.taskdef-block h3 {
    font-family: var(--font-sans);
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #14213d;
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef2f7;
    max-width: 100%;
    text-align: left;
}

.taskdef-block h3 .dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 9px;
    vertical-align: middle;
}
.taskdef-block h3 .dot.g1 { background: #3b7dd8; }
.taskdef-block h3 .dot.g2 { background: #e0803a; }

.taskdef-item {
    padding: 14px 0 14px 20px;
    border-left: 2px solid #eef2f7;
}

.taskdef-item .name {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95em;
    color: #14213d;
}

.taskdef-item .def {
    font-family: var(--font-serif);
    font-size: 0.95em;
    color: #4a5568;
    line-height: 1.6;
    margin: 4px 0 0;
    max-width: 100%;
    text-align: left;
}

.taskdef-item .ex {
    font-family: var(--font-serif);
    font-size: 0.86em;
    color: #8896a6;
    font-style: italic;
    margin: 5px 0 0;
    max-width: 100%;
    text-align: left;
}

/* ── 6b. QUIZ 的选项卡(页面其他地方仍在用,保留) ──────────────────────── */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-top: 10px;
}

.tab-button {
    flex: 1;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-muted);
    border: none;
    background: none;
    position: relative;
    transition: color 0.3s;
    font-family: var(--font-sans);
    padding: 8px 10px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-button i { font-size: 1.2em; }
.tab-button.active { color: var(--accent); }

.tab-button.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
}

/* ── 7. QUIZ ──────────────────────────────────────────────────────────── */
.quiz-section {
    background-color: var(--section-bg);
    padding: 40px 60px;
}

.quiz-section-title { margin-bottom: 20px; text-align: center; }

.quiz-content,
.quiz-section .container > .quiz-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.quiz-section .video-column { flex: 3; min-width: 0; }
.quiz-section .text-column  { flex: 2; min-width: 0; }

.quiz-section video {
    border-radius: 8px;
    width: 100%;
    height: auto;
    background: #000;
}

.quiz-question p {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.quiz-options {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 0 auto;
    width: 95%;
}

.quiz-options li { margin: 0; display: flex; }

.quiz-options button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px;
    background-color: rgba(245, 245, 220, 0.8);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    text-align: left;
    justify-content: flex-start;
    height: 100%;
    transition: background-color 0.3s, border-color 0.3s;
    font-family: var(--font-sans);
}

.quiz-options button:hover { background-color: rgba(245, 245, 220, 1); }

.quiz-options button.correct {
    background-color: #d7f5d7;
    border-color: #2e9e2e;
}

.quiz-options button.wrong {
    background-color: #fbdada;
    border-color: #d33;
}

.option-label {
    font-weight: bold;
    color: var(--text);
    margin-right: 10px;
    white-space: nowrap;
}

.quiz-feedback {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.quiz-feedback.hide-groundtruth span:nth-child(2) { display: none; }

/* ── 8. 图片轮播 ──────────────────────────────────────────────────────── */
.image-slider {
    position: relative;
    max-width: var(--container);
    margin: 0 auto 90px;
    min-height: 260px;
}

.slides-container {
    position: relative;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* 首张参与文档流,撑开轮播高度(避免写死 height:1000px) */
.slide.active:first-child,
.slide.active { position: relative; }

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    z-index: 5;
}

.prev-button,
.next-button {
    background-color: var(--btn-bg);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 30px;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    font-family: var(--font-sans);
}

.prev-button:hover,
.next-button:hover { background-color: var(--btn-bg-hover); }

.prev-button i,
.next-button i { margin: 0 8px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots span.active { background: var(--accent); }

/* ── 9. 页脚 ──────────────────────────────────────────────────────────── */
.site-footer {
    background-color: var(--section-bg);
    border-top: 1px solid var(--border);
    padding: 28px 0 40px;
    text-align: center;
}

.site-footer p {
    font-size: 0.95em;
    font-family: var(--font-sans);
    color: #888;
    margin: 0;
    text-align: center;
}

/* ── 10. 响应式(原始页面缺失,这里补上) ───────────────────────────── */
@media (max-width: 1024px) {
    .robot .title { font-size: 2.6em; }
    .quiz-section { padding: 40px 30px; }
}

@media (max-width: 860px) {
    .robot .title { font-size: 2.0em; }
    h2            { font-size: 1.6em; }
    p             { font-size: 1.15em; }
    .abstract-section p,
    .conclusion-section p,
    .analysis-section p { font-size: 1.15em; }

    .two-col,
    .quiz-content { flex-direction: column; }

    /* 并排的两张图:窄屏改成上下排列 */
    .figure-row { grid-template-columns: 1fr; gap: 22px; margin-bottom: 24px; }
    .figure-panel figcaption { font-size: 1.05em; }

    .quiz-section .video-column,
    .quiz-section .text-column { max-width: 100%; flex: none; width: 100%; }

    .video-container { flex-direction: column; align-items: center; }
    .video-container video { width: 100%; }

    .leaderboard-section table { font-size: 0.7em; }
    .leaderboard-section th,
    .leaderboard-section td { padding: 6px 3px; }
    .leaderboard-section .container { overflow-x: auto; }

    .tab-button      { font-size: 0.72em; }
    .quiz-options    { grid-template-columns: 1fr; }

    /* 任务定义:窄屏时左栏收起来,变成顶部可换行的胶囊导航 */
    .taskdef-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .taskdef-nav {
        position: static;
        width: auto;
        border-right: none;
        border-bottom: 1px solid #e6ecf3;
        padding: 0 0 14px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .taskdef-nav .nav-title { width: 100%; margin-bottom: 4px; }
    .taskdef-nav .nav-group { width: 100%; margin: 8px 0 2px 0; }
    .taskdef-nav a {
        border-left: none;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 6px 12px;
        margin: 0;
    }
    .taskdef-nav a.on { border-color: var(--accent); }
    .taskdef-item { padding-left: 14px; }
    .taskdef-item .def { font-size: 1.05em; }
    .taskdef-item .ex  { font-size: 0.95em; }
}

@media (max-width: 520px) {
    .publication-links a,
    .btn-soon { padding: 8px 14px; font-size: 0.9em; }
    .quiz-section { padding: 30px 16px; }
}


/* ══════════════════════════════════════════════════════════════════════════
   11. HumanPhys 页面新增元素
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 首屏补充 ─────────────────────────────────────────────────────────── */
.robot .venue {
    display: block;
    font-size: 0.5em;
    font-weight: normal;
    color: #7a8798;
    margin-top: 12px;
    letter-spacing: 0.02em;
}

.author-note {
    font-size: 0.8em;
    color: #8a95a3;
}

/* ── 模型来源徽章(排序后仍跟随模型) ───────────────────────────────── */
/* 来源徽章:字号和内边距略收,给模型名让出宽度(配合 Method 列加宽,
   让 "Qwen2.5-VL-7B-Instruct + OPEN" 在 1440px 附近能排成一行) */
.model-tag {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 5px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.55em;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.tag-closed { background: #e6efff; color: #1a56c4; }
.tag-open   { background: #e4f5e9; color: #1a7f37; }
.tag-sft    { background: #fff3e0; color: #a05a00; }
.tag-api    { background: #f1e8ff; color: #6d3fc0; }
.tag-human  { background: #fdf1d8; color: #97690a; }

/* ── 概览统计条 ───────────────────────────────────────────────────────── */
.stat-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 1000px;
    margin: 34px auto 6px;
}

.stat {
    flex: 1 1 150px;
    max-width: 190px;
    padding: 16px 10px;
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.9em;
    font-weight: 700;
    color: #1a3a6b;
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.78em;
    color: #7a8798;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 6px;
}

/* ── 小标题 / 段落补充 ────────────────────────────────────────────────── */
.sub-table-title {
    font-family: var(--font-sans);
    font-size: 1.25em;
    text-align: left;
    max-width: 100%;
    margin: 40px 0 8px;
    padding-left: 12px;
    color: #2c3e50;
    border-left: 4px solid var(--accent);
}

.table-note {
    font-family: var(--font-sans);
    font-size: 0.92em;
    color: #667085;
    line-height: 1.65;
    text-align: left;
    max-width: 100%;
    margin: 12px 0 0;
}

.mono {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.88em;
}

/* ── 基准线表(沿用排行榜外观,不参与排序) ─────────────────────────── */
.baseline-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    font-family: var(--font-sans);
    font-size: 0.88em;
    margin: 12px 0 0;
}

.baseline-table th,
.baseline-table td {
    border: 1px solid var(--border);
    padding: 10px 5px;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word;
}

.baseline-table thead th {
    background: #f2f2f2;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.76em;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* 与主榜同口径:Baseline 19% + Overall 7.2% + 9 个数值列各 5.2% + 4 个长列名各 6.75% */
.baseline-table .method-header { width: 19%; }
.baseline-table .avg-header    { width: 7.2%; }
.baseline-table .task-header   { width: 5.2%; }
.baseline-table .task-header.wide { width: 6.75%; }
.baseline-table .model-name    { text-align: left; font-weight: 600; }
.baseline-table tbody tr:hover { background: #f7f9fc; }

/* ── 消融表 ───────────────────────────────────────────────────────────── */
.ablation-table,
.transfer-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-family: var(--font-sans);
    font-size: 0.82em;
    margin: 0;
}

.ablation-table caption,
.transfer-table caption {
    caption-side: top;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.95em;
    font-weight: 600;
    color: #2c3e50;
    padding: 0 0 10px;
}

.ablation-table th,
.ablation-table td,
.transfer-table th,
.transfer-table td {
    border: 1px solid var(--border);
    padding: 7px 5px;
    text-align: center;
    vertical-align: middle;
}

.ablation-table thead th,
.transfer-table thead th {
    background: #f2f4f7;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.78em;
    line-height: 1.25;
}

.ablation-table .model-name,
.transfer-table .model-name {
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.ablation-table .yes,
.transfer-table .yes { color: #1a7f37; font-weight: 700; }
.ablation-table .no  { color: #c9ccd1; }

.ablation-table tbody tr:hover,
.transfer-table tbody tr:hover { background: #f7f9fc; }

.tag-sub {
    display: block;
    font-size: 0.82em;
    font-weight: 400;
    color: #8a95a3;
}

.gain      { color: #1a7f37; font-weight: 600; white-space: nowrap; }
.gain-weak { color: #b8860b; font-weight: 600; white-space: nowrap; }

/* ── 对比表 ───────────────────────────────────────────────────────────── */
.compare-table {
    width: 100%;
    /* ★ 屏幕自适应的关键:列宽完全由 HTML 里 <colgroup> 的百分比决定,
       不再由内容的最小宽度决定 —— 所以窗口再窄,表格也只会跟着缩,不会被撑破 */
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    font-family: var(--font-sans);
    font-size: 0.95em;
    margin: 20px 0;
}

/* 9 列宽度,合计 100%
   Benchmark 22% + Human-Centric 12% + 6 个勾叉列各 8.5%(=51%) + Train 15% */
.compare-table .c-bench { width: 22%; }
.compare-table .c-hc    { width: 12%; }
.compare-table .c-flag  { width: 8.5%; }
.compare-table .c-train { width: 15%; }

/* 表头的「窄屏缩写版」默认隐藏,只在手机宽度下启用 */
.compare-table .lbl-short { display: none; }

.compare-table th,
.compare-table td {
    border: 1px solid var(--border);
    padding: 9px 5px;
    text-align: center;
    vertical-align: middle;
    /* 兜底:万一某个词实在放不下,允许就地断行,绝不溢出单元格 */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.compare-table thead th {
    background: #f2f4f7;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.78em;
    line-height: 1.3;
}

.compare-table .bench-name {
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.compare-table .yes { color: #1a7f37; font-weight: 700; font-size: 1.15em; }
.compare-table .no  { color: #ccd1d8; font-size: 1.1em; }

.compare-table .highlight-row { background: #fff8ec; }
.compare-table .highlight-row .bench-name { color: #b26a00; }
.compare-table .highlight-row .yes { color: #b26a00; }
.compare-table tbody tr:hover { background: #f7f9fc; }
.compare-table .highlight-row:hover { background: #fff3e0; }

/* ── 案例研究区 ───────────────────────────────────────────────────────── */
.quiz-lead {
    font-family: var(--font-sans);
    font-size: 1.05em;
    color: #44505f;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 26px;
    line-height: 1.7;
}

.feedback-explain {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85em;
    font-weight: normal;
    line-height: 1.6;
    color: #4a5568;
    text-align: left;
}

.quiz-feedback code,
.quiz-question code {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: #f1f3f7;
    padding: 1px 5px;
    border-radius: 4px;
}

/* 案例区的图不加 hover 放大,避免遮挡右侧题目 */
.quiz-section .full-width-image:hover { transform: none; }

/* 本页选项是完整句子而非短数值,单列比 2×2 更易读 */
.quiz-section .quiz-options {
    grid-template-columns: 1fr;
    width: 100%;
}

.quiz-section .quiz-options button {
    padding: 13px 15px;
    font-size: 16px;
    line-height: 1.45;
}

/* ── 页脚补充 ─────────────────────────────────────────────────────────── */
.site-footer p + p { margin-top: 14px; }

.footer-copy {
    font-size: 0.88em;
    color: #9aa3ae;
}

/* 平板/小笔记本:16 列的排行榜开始变挤。
   ① 字号收一档,让 CP-HUMAN 这类「禁止折行」的表头还能塞下
   ② 容器允许横向滚动兜底 —— 内容装得下时不会出现滚动条,装不下才不会撑破整页 */
@media (max-width: 1100px) {
    .leaderboard-section table { font-size: 0.84em; }
    .leaderboard-section .container { overflow-x: auto; }
}

/* ── 新增元素的响应式 ─────────────────────────────────────────────────── */

/* 平板:对比表字号和内边距各收一档(列宽百分比不变,自动跟着缩放) */
@media (max-width: 1024px) {
    .compare-table { font-size: 0.86em; }
    .compare-table th,
    .compare-table td { padding: 8px 4px; }
}

@media (max-width: 860px) {
    .compare-table,
    .ablation-table,
    .transfer-table { font-size: 0.76em; }

    .compare-table th,
    .compare-table td { padding: 7px 3px; }

    .ablation-table th,
    .ablation-table td,
    .transfer-table th,
    .transfer-table td { padding: 5px 3px; }

    .stat { flex: 1 1 120px; }
    .stat-num { font-size: 1.5em; }

    .leaderboard-section .container,
    .comparison-section .container { overflow-x: auto; }

    .sub-table-title { font-size: 1.1em; }
}

/* 手机:启用缩写表头 + 重新分配列宽,让 9 列真正塞得下且不出现半截词 */
@media (max-width: 560px) {
    .compare-table { font-size: 0.68em; }
    .compare-table th,
    .compare-table td { padding: 6px 2px; }
    .compare-table thead th { line-height: 1.25; }

    /* 切到缩写 */
    .compare-table .lbl-full  { display: none; }
    .compare-table .lbl-short { display: inline; }

    /* 列宽重排:Benchmark 拿到更多(要放 HumanMoveVQA),勾叉列略收 */
    .compare-table .c-bench { width: 24%; }
    .compare-table .c-hc    { width: 11%; }
    .compare-table .c-flag  { width: 8.6%; }
    .compare-table .c-train { width: 13.4%; }

    .compare-table .yes { font-size: 1.05em; }
}


/* ── ⑦b Examples gallery ───────────────────────────────────────────────── */
.examples-section {
    background-color: var(--page-bg);
    padding: 40px 0 56px;
}

.examples-section .section-lead,
.taxonomy-section .section-lead {
    font-family: var(--font-sans);
    font-size: 1.02em;
    color: #55606f;
    text-align: center;
    max-width: 880px;
    margin: 0 auto 30px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.example-card {
    margin: 0;
    background: var(--section-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.example-card img {
    width: 100%;
    display: block;
    background: #0e1420;
    border-bottom: 1px solid var(--border);
}

.example-card figcaption {
    padding: 10px 12px 12px;
    font-size: .82em;
    line-height: 1.5;
    color: var(--text-muted);
}

.example-tag {
    display: inline-block;
    font-weight: 700;
    font-size: .92em;
    padding: 1px 9px 2px;
    border-radius: 999px;
    margin-bottom: 6px;
    color: #fff;
}

.example-tag.g1 { background: #3b7dd8; }
.example-tag.g2 { background: #e0803a; }

.example-q { margin: 0 0 4px; color: var(--text); }
.example-a { margin: 0; }

@media (max-width: 1000px) {
    .examples-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .examples-grid { grid-template-columns: 1fr; }
}
