:root{
  --img-w: 200px;
  --img-h: 128px;
  --audio-w: 200px;
  --audio-h: 40px;
  --cell-pad: 10px;
}

body{
  font-family: "Google Sans","Noto Sans",system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
}

.publication-title{
  line-height: 1.15;
}

.publication-authors .author-block a{
  color: inherit;
  text-decoration: none;
}

.sample-toolbar{
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

@media (max-width: 768px){
  .sample-toolbar{
    grid-template-columns: 1fr;
  }
}

.section-divider{
  border-top: 1px solid rgba(10,10,10,.08);
  margin: 28px 0;
}

.sample-section-title{
  margin-top: 10px;
  margin-bottom: 8px;
}

.sample-card{
  margin: 10px 0 22px;
  padding: 14px;
  border: 1px solid rgba(10,10,10,.08);
  border-radius: 12px;
  background: white;
  box-shadow: 0 1px 0 rgba(10,10,10,.03);
}

.sample-card h3{
  margin-bottom: 10px;
}

.table-wrap{
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(10,10,10,.08);
}

.demo-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px; /* 横向多列时防止挤爆 */
}

.demo-table th,
.demo-table td{
  text-align: center;
  vertical-align: middle;
  padding: var(--cell-pad);
  border-bottom: 1px solid rgba(10,10,10,.06);
}

.demo-table thead th{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  border-bottom: 1px solid rgba(10,10,10,.12);
}

.demo-img{
  width: var(--img-w);
  height: var(--img-h);
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(10,10,10,.08);
  background: #fafafa;
}

.demo-audio{
  width: var(--audio-w);
  height: var(--audio-h);
}

.is-dense{
  --cell-pad: 6px;
  --img-w: 180px;
  --img-h: 115px;
  --audio-w: 180px;
  --audio-h: 34px;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10,10,10,.08);
  font-size: 12px;
  background: #fff;
}
