:root{
  --text:#111;
  --muted:#666;
  --border:#e6e6e6;
  --bg:#fff;
  --panel:#fafafa;
  --radius: 12px;
}

*{ box-sizing:border-box; }
html, body { height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height:1.55;
}

.container{
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 46px;
}

.section{ margin: 0 0 28px; }
.center{ text-align: center; }
.narrow{
  width: min(920px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.title{
  margin: 0;
  font-size: 40px;
  letter-spacing: .2px;
}
.subtitle{
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.links{
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.link{ color: var(--muted); text-decoration: underline; }
.dot{ margin: 0 8px; color: var(--border); }

.note{
  margin: 14px auto 0;
  width: min(920px, 100%);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
}

h2{ margin: 0 0 10px; font-size: 20px; }
.text{ margin: 0; }

.block{ margin: 14px auto 18px; width: min(920px, 100%); }
.block-title{ margin: 0 0 8px; font-size: 15px; }

.media{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.media img{ display:block; width:100%; height:auto; }

.placeholder{
  padding: 26px;
  color: var(--muted);
  font-size: 14px;
  text-align:center;
}

.muted{ color: var(--muted); margin: 0 auto 12px; }

.table-wrap{
  width: min(1160px, 100%);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-head{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.th{
  padding: 10px 8px;
  font-size: 13px;
  color: var(--muted);
  border-right: 1px solid var(--border);
}
.th:last-child{ border-right:none; }

.rows{ display:flex; flex-direction: column; }

.row{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.row:last-child{ border-bottom:none; }

.cell{
  padding: 10px;
  border-right: 1px solid var(--border);
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cell:last-child{ border-right:none; }

.viewer{
  width: 100%;
  height: 240px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow:hidden;
  background: #fff;
}

.controls{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.controls button{
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.controls button:hover{ background: var(--panel); }

.status{ font-size: 12px; color: var(--muted); }

.footnote{
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.footer{
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

@media (max-width: 1050px){
  .table-head{ display:none; }
  .row{ grid-template-columns: 1fr; }
  .cell{
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 10px;
  }
  .cell:last-child{ border-bottom:none; }
  .viewer{ height: 260px; }
}
.pager-btn{
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.pager-btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.pill{
  background: #3b82f6;
  color: #fff;
  border: none;

  padding: 12px 26px;      /* 更大的内边距 */
  font-size: 16px;         /* 字体更大 */
  font-weight: 600;

  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover{
  background: #2563eb;
  transform: translateY(-1px);  /* 轻微悬浮感（可选） */
}

/* Abstract left align */
.section.narrow .text {
  text-align: left;
}

/* Framework caption left align */
.figure-caption {
  text-align: left;
}

/* ====== T2SA (NEW) ====== */
.table-head.cols-5{
  grid-template-columns: 1.3fr repeat(4, 1fr);
}
.row.cols-5{
  grid-template-columns: 1.3fr repeat(4, 1fr);
}

.text-cell{
  align-items: stretch;
}
.text-box{
  width: 100%;
  height: 240px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 12px 12px;
  text-align: left;
  overflow: auto;
  font-size: 13px;
  color: var(--text);
}
.text-box .text-id{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
/* T2SA audio-only height */
#t2saRows .viewer{
  height: 120px;
}
/* T2SA text column height match */
#t2saRows .text-box{
  height: 120px;
}