/* HSK 交卷记录 · 全局查询列表 */

.journal-theme,
.journal-theme * {
  box-sizing: border-box;
}

.journal-theme {
  min-height: 100vh;
  background: #f5f7f7;
  color: var(--ink);
  font-family: var(--font);
}

.journal-theme button,
.journal-theme input,
.journal-theme select {
  font: inherit;
}

.journal-theme a {
  color: inherit;
  text-decoration: none;
}

.journal-theme .page {
  width: var(--container);
  margin: 0 auto;
  padding: 34px 0 64px;
}

.journal-theme .records-heading {
  margin-bottom: 0;
}

.journal-theme .records-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 0;
  padding: 0 4px;
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
}

.journal-theme .records-back:hover {
  color: var(--red-dark);
}

.journal-theme .records-back:focus-visible,
.journal-theme .query-button:focus-visible,
.journal-theme .report-button:focus-visible,
.journal-theme .pagination-arrow:focus-visible,
.journal-theme .pagination-page:focus-visible,
.journal-theme #clearQuery:focus-visible,
.journal-theme input:focus-visible,
.journal-theme select:focus-visible {
  outline: 2px solid #159bd3;
  outline-offset: 2px;
}

.journal-theme h1 {
  margin: 0;
  font-family: var(--font);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.journal-theme .records-filter {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px 0 4px;
  border-top: 3px solid var(--red);
  background: transparent;
}

.journal-theme .filter-field {
  min-width: 0;
}

.journal-theme .filter-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}

.journal-theme .select-wrap {
  position: relative;
}

.journal-theme .select-wrap::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  content: "";
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.journal-theme #levelSelect {
  width: 100%;
  height: 46px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  appearance: none;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

/* 按钮列按文字宽度走，不写死像素：96px 是照中文「查询」两个字量的，
   越南语 Tìm kiếm、俄语 Найти、英语 Search 都塞不下，会在按钮里折成两行。
   auto + 按钮上的 min-width：长文案把列撑开，短文案也不会缩成一个小方块。 */
.journal-theme .query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.journal-theme .query-input {
  position: relative;
  min-width: 0;
}

.journal-theme .query-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink-3);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-55%);
}

.journal-theme .query-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: var(--ink-3);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.journal-theme #paperQuery {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}
/* 原生 input 的 placeholder 折不了行。真正看见的是叠加层，字号跟查询按钮一样，
   七语长文案最多两行。属性里的 placeholder 留给读屏和 :placeholder-shown。 */
.journal-theme #paperQuery::placeholder {
  color: transparent;
}
.journal-theme .query-placeholder {
  position: absolute;
  left: 42px;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.journal-theme #paperQuery:not(:placeholder-shown) ~ .query-placeholder {
  visibility: hidden;
}

.journal-theme #paperQuery:hover,
.journal-theme #levelSelect:hover {
  border-color: #aeb9c3;
}

.journal-theme #paperQuery:focus,
.journal-theme #levelSelect:focus {
  border-color: #159bd3;
}

.journal-theme #clearQuery {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-3);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
}

.journal-theme #clearQuery[hidden] {
  display: none;
}

.journal-theme #clearQuery:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.journal-theme .query-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  /* nowrap 是关键：不加的话按钮宁可把「Tìm kiếm」折行也不去撑宽父列。
     min-width 只保证中文这种短文案仍是个像样的按钮，不是上限。 */
  min-width: 96px;
  white-space: nowrap;
  padding: 0 20px;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.journal-theme .query-button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.journal-theme .records {
  overflow: hidden;
  background: var(--paper);
}

.journal-theme .record-table-scroll {
  overflow-x: auto;
}

.journal-theme .record-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
}

.journal-theme .record-table th,
.journal-theme .record-table td {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.journal-theme .record-table th {
  background: #fbfcfc;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}

/* 列宽按「试卷 / 总分 / 提交时间 / 结果 / 报告」五列给：
   「作答记录」一栏已注释掉（表头在 pages/hsk-records.html，单元格在 assets/hsk-records.js），
   它原先占的 13% 并回「试卷」列。恢复该列时，这几条 nth-child 连同下方窄屏规则整体后移一位。 */
.journal-theme .record-table th:nth-child(1) {
  width: 47%;
}

.journal-theme .record-table th:nth-child(2) {
  width: 13%;
}

.journal-theme .record-table th:nth-child(3) {
  width: 17%;
}

.journal-theme .record-table th:nth-child(4) {
  width: 11%;
}

.journal-theme .record-table th:nth-child(5) {
  width: 12%;
  text-align: right;
}

.journal-theme .record-table td {
  color: var(--ink-2);
  font-size: 14px;
}

.journal-theme .record-table tbody tr:last-child td {
  border-bottom: 0;
}

.journal-theme .record-table tbody tr:hover {
  background: #fbfdfc;
}

.journal-theme .paper-cell strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.journal-theme .paper-cell span {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 13px;
}

.journal-theme .attempt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.journal-theme .score {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.journal-theme .score small {
  margin-left: 4px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}

.journal-theme .score--grading {
  color: #946317;
  font-size: 14px;
}

.journal-theme .submitted {
  color: var(--ink-2);
  font-size: 14px;
  white-space: nowrap;
}

.journal-theme .result {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.journal-theme .result--passed {
  border-color: #cfe5c5;
  background: #eef7ea;
  color: #4f8a36;
}

.journal-theme .result--failed {
  border-color: #f0ceca;
  background: #fff0ef;
  color: #c64e4e;
}

.journal-theme .result--grading {
  border-color: #e8cf9d;
  background: #fff8e8;
  color: #946317;
}

.journal-theme .row-action {
  text-align: right !important;
}

.journal-theme .report-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.journal-theme .report-button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.journal-theme .empty {
  padding: 64px 24px;
  color: var(--ink-3);
  text-align: center;
}

.journal-theme .records-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.journal-theme .records-pagination[hidden] {
  display: none;
}

.journal-theme .page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.journal-theme .pagination-arrow,
.journal-theme .pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.journal-theme .pagination-arrow {
  padding: 0;
  font-size: 18px;
}

.journal-theme .pagination-arrow:hover:not(:disabled),
.journal-theme .pagination-page:hover:not([aria-current="page"]) {
  border-color: var(--red);
  color: var(--red);
}

.journal-theme .pagination-page[aria-current="page"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  cursor: default;
}

.journal-theme .pagination-arrow:disabled {
  border-color: var(--line);
  background: #f1f3f3;
  color: #aab2ba;
  cursor: not-allowed;
}

.records-mock-controller {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 690;
  width: 232px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, .32);
}

.records-mock-controller-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #d1d5db;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.records-mock-controller-head::after {
  content: "⌄";
  font-size: 14px;
  transition: transform .16s ease;
}

.records-mock-controller[data-collapsed="1"] .records-mock-controller-head::after {
  transform: rotate(180deg);
}

.records-mock-controller[data-collapsed="1"] .records-mock-controller-body {
  display: none;
}

.records-mock-controller-body {
  padding: 0 12px 12px;
}

.records-mock-label,
.records-mock-custom label {
  display: block;
  margin-bottom: 6px;
  color: #9ca3af;
  font-size: 10.5px;
  font-weight: 600;
}

.records-mock-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.records-mock-actions button,
.records-mock-apply {
  min-width: 36px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 5px;
  background: transparent;
  color: #d1d5db;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.records-mock-actions button.on {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.records-mock-custom {
  margin: 0;
}

.records-mock-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.records-mock-input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 5px;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
}

.records-mock-input:focus {
  border-color: rgba(255, 255, 255, .52);
  outline: 0;
}

.records-mock-apply {
  color: #fff;
}

.records-mock-apply:hover,
.records-mock-actions button:hover {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.records-mock-note {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.45;
}

.records-mock-controller.rvw-adopted .records-mock-custom-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px !important;
}

.records-mock-controller.rvw-adopted .records-mock-input {
  height: 30px !important;
  padding: 0 7px !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 5px !important;
  background: #1f2937 !important;
  color: #fff !important;
}

@media (max-width: 1024px) {
  .journal-theme .page {
    width: min(100% - 24px, 1000px);
    padding-top: 24px;
  }

  .journal-theme h1 {
    font-size: 30px;
  }

}

@media (max-width: 760px) {

  .journal-theme .paper-cell .record-meta {
    white-space: normal;
  }

}

@media (max-width: 1024px) {

  .journal-theme .record-table-scroll {
    overflow-x: visible;
  }

  .journal-theme .record-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  .journal-theme .record-table thead {
    display: none;
  }

  .journal-theme .record-table tbody {
    display: block;
  }

  .journal-theme .record-table tbody tr {
    display: grid;
    grid-template-areas:
      "paper action"
      "attempt score"
      "submitted result";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 20px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .journal-theme .record-table tbody tr:last-child {
    border-bottom: 0;
  }

  .journal-theme .record-table td {
    display: flex;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .journal-theme .record-table td::before {
    color: var(--ink-3);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
  }

  .journal-theme .record-table .paper-cell {
    grid-area: paper;
  }

  .journal-theme .record-table .paper-cell::before,
  .journal-theme .record-table .row-action::before {
    content: none;
  }

  .journal-theme .paper-cell strong {
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  /* 单元格按列序对位：试卷(1) / 总分(2) / 提交时间(3) / 结果(4) / 报告(5)。
     「作答记录」注释掉后各列前移一位；这套 grid-area 只是打底，
     ≤1024px 真正生效的卡片布局在文件末尾的「手机交卷记录 Figma」区块。 */
  .journal-theme .record-table td:nth-child(2) {
    grid-area: score;
  }

  .journal-theme .record-table td:nth-child(3) {
    grid-area: submitted;
  }

  .journal-theme .record-table td:nth-child(4) {
    grid-area: result;
  }

  .journal-theme .record-table td:nth-child(2),
  .journal-theme .record-table td:nth-child(4) {
    align-items: flex-end;
    text-align: right;
  }

  .journal-theme .submitted {
    white-space: nowrap;
  }

  .journal-theme .row-action {
    grid-area: action;
    align-self: start;
  }

  .journal-theme .report-button {
    min-width: 88px;
    min-height: 40px;
    padding: 0 12px;
  }

  .journal-theme .records-pagination {
    justify-content: center;
    gap: 4px;
  }

  .journal-theme .page-numbers {
    gap: 4px;
  }

  .journal-theme .pagination-arrow {
    min-width: 40px;
    padding: 0;
  }

  .journal-theme .pagination-page {
    padding: 0 8px;
  }

  .records-mock-controller:not(.rvw-adopted) {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 520px) {
  html:has(.journal-theme) .avatar-name {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   2026-08-18 · 按 Figma 改版（交卷记录页）
   ---------------------------------------------------------------------
   一句话总结这次改的是什么：把「红」收回给唯一的主操作。
   改版前返回链接、查询按钮、每行的「查看报告」都是品牌红，一屏里十来处红，
   谁都不突出。现在：返回是白底描边、查询是墨色实底（它是筛选不是主张）、
   查看报告默认只有文字，红只留给「已过级」这一个结论性标签。
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 返回当前报告：白底描边按钮 ─────────────────────────────────────── */
.journal-theme .records-back{
  gap: 9px; min-height: 48px; padding: 0 18px;
  color: var(--ink-2); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: border-color .16s ease, background .16s ease;
}
.journal-theme .records-back:hover{ color: var(--ink); background: var(--paper-2); border-color: var(--line-strong); }
.journal-theme .records-back svg{ flex: 0 0 auto; }

/* ── 查询：墨色实底 ─────────────────────────────────────────────────── */
.journal-theme .query-button{
  border-color: var(--ink); background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 700;
}
.journal-theme .query-button:hover{ border-color: #000; background: #000; }

/* ── 表格 ───────────────────────────────────────────────────────────── */
.journal-theme .record-table th{ background: var(--paper); }
.journal-theme .record-table th:nth-child(n+2),
.journal-theme .record-table td:nth-child(n+2){ text-align: center; }
/* 最后一列（报告）：压回上方的居中，抵掉列宽规则里的 text-align:right。
   「作答记录」注释掉后末列由第 6 列变第 5 列。 */
.journal-theme .record-table th:nth-child(5){ text-align: center; }
/* 隔行底色替代分割线做主视觉：每行两行文字（卷名 + ID），只靠细线分不开。 */
.journal-theme .record-table tbody tr:nth-child(odd){ background: var(--paper-2); }
.journal-theme .record-table tbody tr:last-child td{ border-bottom: 1px solid var(--line); }
.journal-theme .record-table tbody tr:hover{ background: var(--seal-tint); }

/* ── 结果标签：过级用品牌红，未过级用中性灰 ──────────────────────────
   「未过级」不是错误，是一次还没到线的结果，所以用中性灰而不是红；
   红留给「已过级」这个用户真正在找的结论。 */
.journal-theme .result{ border: 0; }
.journal-theme .result--passed{ background: var(--seal-tint); color: var(--seal); }
.journal-theme .result--failed{ background: var(--ink-3); color: #fff; }
.journal-theme .result--grading{ background: #fff4e2; color: #946317; }

/* ── 查看报告：默认纯文字，hover 才浮出底色 ────────────────────────── */
.journal-theme .report-button{
  min-height: 42px; padding: 5px 9px;
  color: var(--ink-2); background: transparent; border: 0; border-radius: 4px;
  transition: color .16s ease, background .16s ease;
}
.journal-theme .report-button:hover{ color: var(--ink); background: var(--line); border: 0; }

/* ── 分页：当前页是浅底描边，不是实心红块 ──────────────────────────── */
.journal-theme .pagination-page[aria-current="page"]{
  border-color: var(--seal); background: var(--seal-tint); color: var(--seal);
}

/* 筛选区那条 3px 红顶线撤掉：Figma 里返回按钮与筛选区之间没有分隔，
   而红是这一页唯一的强调色，用在一条纯装饰的线上就把「已过级」压下去了。 */
.journal-theme .records-filter{ border-top: 0; }

.journal-theme .records-mobile-bar,
.journal-theme .paper-cell .record-meta,
.journal-theme .score-prefix,
.journal-theme .report-button-attempt{
  display: none;
}
.journal-theme .pagination-arrow-icon{
  display: block;
  width: 10px;
  height: 10px;
}
.journal-theme .pagination-arrow--next .pagination-arrow-icon{
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════════════════
   手机交卷记录 Figma 825:9322（对稿 390；平板 ≤1024 与手机同一套卡片）
   官网外壳保留；本页墨色条 + 筛选白卡 + 独立记录卡 + 粉底分页。
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .journal-theme .records-mobile-bar{
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 12px 16px;
    background: #111827;
  }
  .journal-theme .records-mobile-title{
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
  }
  .journal-theme .records-mobile-back{
    position: absolute;
    left: 16px;
    top: 50%;
    display: flex;
    align-items: center;
    width: 24px;
    height: 24px;
    overflow: clip;
    transform: translateY(-50%);
  }
  .journal-theme .records-mobile-back-icon,
  .journal-theme .records-mobile-back img{
    display: block;
    width: 24px;
    height: 24px;
  }
  .journal-theme .records-heading,
  .journal-theme .records-back{
    display: none;
  }
  .journal-theme .page{
    width: calc(100% - 32px);
    padding: 20px 0 32px;
  }
  .journal-theme .records-filter{
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: .5px solid var(--border);
    border-radius: 8px;
    background: #fff;
  }
  .journal-theme .filter-field label{
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
    margin-bottom: 6px;
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 700;
    line-height: 16.5px;
    letter-spacing: .025em;
  }
  .journal-theme .query-row{
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .journal-theme .query-icon{
    display: none;
  }
  .journal-theme #levelSelect,
  .journal-theme #paperQuery,
  .journal-theme .query-button{
    height: 44px;
  }
  .journal-theme #levelSelect{
    padding: 0 36px 0 13px;
    border-color: var(--border-2);
    font-size: 14px;
  }
  .journal-theme #paperQuery{
    padding: 0 44px 0 12px;
    border-color: var(--border-2);
  }
  .journal-theme #paperQuery::placeholder{
    color: transparent;
  }
  .journal-theme .query-placeholder{
    left: 12px;
    color: var(--ink-4, #9ca3af);
    font-size: 14px;
  }
  .journal-theme .query-button{
    min-width: 120px;
    padding: 0 20px;
    font-size: 14px;
  }
  .journal-theme .records{
    overflow: visible;
    background: transparent;
  }
  .journal-theme .record-table-scroll{
    overflow-x: visible;
  }
  .journal-theme .record-table{
    display: block;
    width: 100%;
    min-width: 0;
  }
  .journal-theme .record-table thead{
    display: none;
  }
  .journal-theme .record-table tbody{
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .journal-theme .record-table tbody tr{
    display: grid;
    grid-template-areas:
      "score result"
      "paper paper"
      "action action";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px;
    border: .5px solid var(--border);
    border-radius: 6px;
    background: #fff;
  }
  .journal-theme .record-table tbody tr:nth-child(odd),
  .journal-theme .record-table tbody tr:hover{
    background: #fff;
  }
  .journal-theme .record-table tbody tr:last-child{
    border-bottom: .5px solid var(--border);
  }
  .journal-theme .record-table td{
    display: flex;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  /* 桌面端「表格」组给最后一行 td 加了 border-bottom:1px solid var(--line)，选择器含
     :last-child、特异性比上面 .record-table td 的归零更高，手机端会漏进卡片里 —— 每张卡
     （tr）已自带 .5px 边框，td 再画一条底线就在卡片内多出横线。这里用同等特异性显式压回 0。 */
  .journal-theme .record-table tbody tr:last-child td{
    border-bottom: 0;
  }
  .journal-theme .record-table td::before{
    content: none;
  }
  .journal-theme .record-table .paper-cell{
    grid-area: paper;
  }
  .journal-theme .paper-cell strong{
    font-size: 15px;
    font-weight: 600;
    line-height: 21px;
    overflow-wrap: anywhere;
  }
  /* 「作答记录」整栏已注释掉，原先靠 td:nth-child(2){display:none} 在卡片里隐掉
     它的做法一并撤掉 —— 留着会把前移过来的「总分」列吃掉。 */
  .journal-theme .paper-cell .paper-id-desktop,
  .journal-theme .record-table .submitted{
    display: none;
  }
  .journal-theme .paper-cell .record-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 400;
    line-height: 16.5px;
    white-space: normal;
  }
  .journal-theme .paper-cell .record-meta > span{
    white-space: nowrap;
  }
  /* 卡片里的两处定位同样按新列序：总分第 2 列、结果第 4 列（原第 3 / 第 5 列）。 */
  .journal-theme .record-table td:nth-child(2){
    grid-area: score;
    align-items: flex-start;
  }
  .journal-theme .record-table td:nth-child(4){
    grid-area: result;
    align-items: flex-end;
  }
  .journal-theme .score{
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    line-height: 16.5px;
  }
  .journal-theme .score-prefix{
    display: inline;
  }
  .journal-theme .score small{
    margin-left: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
  }
  .journal-theme .score--grading{
    color: #946317;
    font-size: 11px;
  }
  .journal-theme .result{
    min-height: 0;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 16.5px;
  }
  .journal-theme .row-action{
    grid-area: action;
    align-self: stretch;
    margin-top: 12px;
    text-align: left !important;
  }
  .journal-theme .report-button{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: .5px solid #9ca3af;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 19px;
  }
  .journal-theme .report-button:hover{
    color: var(--ink);
    background: var(--paper-2);
    border: .5px solid #9ca3af;
  }
  .journal-theme .report-button-label{
    /* display: none; */
  }
  .journal-theme .report-button-attempt{
    display: none;
    /* display: inline; */
  }
  .journal-theme .records-pagination{
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 0;
  }
  .journal-theme .page-numbers{
    gap: 8px;
  }
  .journal-theme .pagination-arrow,
  .journal-theme .pagination-page{
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-color: var(--border-2);
    border-radius: 6px;
    color: var(--ink-3);
    font-size: 14px;
    font-weight: 600;
  }
  .journal-theme .pagination-arrow{
    background: #fff;
  }
  .journal-theme .pagination-page[aria-current="page"]{
    border-color: var(--red);
    background: var(--red-light);
    color: var(--red);
  }
  .journal-theme .pagination-arrow:disabled{
    border-color: var(--border);
    background: var(--surface-3, #f3f4f6);
    opacity: .4;
  }
}
