:root {
  --text: #1a1d24;
  --text-2: #5b6270;
  --text-3: #8b919c;
  --bg: #ffffff;
  --bg-tint: #f8f9fb;
  --hairline: #e6e8ec;
  --blue: #2f6fb0;
  --orange: #e07b39;
  --link: #2b4a8b;
  --btn-bg: #1f2530;
  --emo-neutral: #64748b;
  --emo-happy: #e8a33d;
  --emo-sad: #3b82f6;
  --emo-angry: #e24b4a;
  --emo-surprised: #7f77dd;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --container: 880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.nav-brand:hover { text-decoration: none; }

.nav-links { display: flex; gap: 22px; }

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--text-2);
  cursor: pointer;
}

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-venue {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.2vw, 2.45rem);
  line-height: 1.28;
  max-width: 820px;
  margin: 0 auto;
}

.gradient-rule {
  width: 160px;
  height: 3px;
  margin: 26px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.hero-authors {
  font-size: 0.98rem;
  margin: 0 auto 6px;
}

.hero-affil {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:hover { background: #343c4c; text-decoration: none; transform: translateY(-1px); }

.btn-accent { background: var(--link); }
.btn-accent:hover { background: #3a5da8; }

.section { padding: 60px 0; border-top: 1px solid var(--hairline); }
.section-tinted { background: var(--bg-tint); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.abstract-text { color: var(--text); text-align: justify; hyphens: auto; }

.method-figure { margin: 8px 0 36px; }

.method-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
}

.figure-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 240px;
  border: 1px dashed #c9cdd6;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 111, 176, 0.05), rgba(224, 123, 57, 0.05));
  color: var(--text-3);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

.method-figure figcaption {
  font-size: 0.86rem;
  color: var(--text-2);
  margin-top: 12px;
  text-align: center;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab {
  --tab-color: var(--btn-bg);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tab-color);
  background: #fff;
  border: 1.5px solid var(--tab-color);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
#tab-baseline { --tab-color: #1f2530; }
#tab-inter    { --tab-color: var(--blue); }
#tab-intra    { --tab-color: var(--orange); }

#tab-ds-ser       { --tab-color: #1f2530; }
#tab-ds-wordcloud { --tab-color: var(--blue); }
#tab-ds-demo      { --tab-color: var(--orange); }

.tab:hover { transform: translateY(-1px); }
.tab.is-active {
  background: var(--tab-color);
  color: #fff;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.setting-desc { font-size: 0.92rem; color: var(--text-2); margin-bottom: 12px; }

.setting-note {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.6;
  border-left: 2px solid var(--hairline);
  padding-left: 12px;
  margin-bottom: 20px;
}

.sample-card {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  margin-bottom: 22px;
  overflow: hidden;
}

.sample-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 18px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--hairline);
}

.pair { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.pair-arrow { color: var(--text-3); }

.emo-chip {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff;
}
.emo-neutral   { background: var(--emo-neutral); }
.emo-happy     { background: var(--emo-happy); }
.emo-sad       { background: var(--emo-sad); }
.emo-angry     { background: var(--emo-angry); }
.emo-surprised { background: var(--emo-surprised); }

.instruction {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text);
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.audio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.audio-table th {
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.audio-table td {
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  min-width: 170px;
}

.audio-table audio { width: 160px; height: 34px; display: inline-block; }

.audio-table th.col-source { color: var(--blue); }
.audio-table th.col-ours { color: var(--orange); }
.audio-table td.col-ours,
.audio-table th.col-ours {
  background: rgba(224, 123, 57, 0.06);
  border-left: 3px solid var(--orange);
}

.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.pager-pages {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
}

.pager-btn,
.demo-btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.pager-btn:hover, .demo-btn:hover { color: var(--text); border-color: #c9cdd6; }
.pager-btn.is-active,
.demo-btn.is-active {
  color: #fff;
  background: var(--btn-bg);
  border-color: var(--btn-bg);
}

.pager-arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--text-2);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.pager-arrow:hover { color: var(--text); border-color: #c9cdd6; }
.pager-arrow:disabled { opacity: 0.35; cursor: default; }

.conv-page { display: none; }
.conv-page.is-active { display: block; }

.source-audio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}
.source-audio audio { width: 200px; height: 34px; }

.input-kind {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.input-kind::after { content: ":"; }
.kind-source { color: var(--blue); }
.kind-ours { color: var(--orange); }

.io-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.io-table th {
  font-weight: 600;
  color: var(--text-2);
  text-align: left;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.io-table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--bg-tint);
}
.io-table tbody tr:last-child td { border-bottom: none; }

.io-model { font-weight: 600; white-space: nowrap; }

.io-input {
  min-width: 300px;
}

.io-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}
.io-cell .input-kind {
  flex: none;
  width: 104px;
  text-align: left;
}
.io-value {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.spk-chip {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 1px 10px;
  border-radius: 999px;
  color: var(--text-2);
  border: 1px solid #c9cdd6;
  background: #fff;
  white-space: nowrap;
}
.io-input audio { width: 200px; height: 34px; }

.io-instruction {
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
}

.io-output { min-width: 220px; }
.io-output audio { width: 200px; height: 34px; }

.io-table .row-ours td {
  background: rgba(224, 123, 57, 0.06);
}
.io-table .row-ours td:first-child { border-left: 3px solid var(--orange); }

.if-table .instr-cell { text-align: left; min-width: 300px; }
.if-table td { border-bottom: 1px solid var(--bg-tint); }
.if-table tbody tr:last-child td { border-bottom: none; }
.cell-instruction {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
  text-align: left;
}

.cell-instruction strong,
.io-instruction strong {
  font-weight: 600;
}

.audio-missing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 34px;
  border: 1px dashed #d4d7de;
  border-radius: 999px;
  color: var(--text-3);
  font-size: 0.85rem;
  user-select: none;
}

#results p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 22px; }

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  background: #fff;
  border: 1px solid var(--hairline);
}

.results-table th,
.results-table td {
  padding: 9px 12px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.results-table th {
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-tint);
}

.results-table td:first-child,
.results-table th:first-child { text-align: left; }

.table-note {
  font-size: 0.82rem !important;
  color: var(--text-3) !important;
  margin-top: 12px;
}

#dataset > .container > p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 26px; }

.samples-intro {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
}
.samples-intro ul { list-style: none; margin-top: 6px; }
.samples-intro li { padding-left: 14px; position: relative; }
.samples-intro li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}
.samples-intro span { font-weight: 600; }
.cat-baseline { color: #1f2530; }
.cat-inter    { color: var(--blue); }
.cat-intra    { color: var(--orange); }

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

.contrib-card {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 20px 22px;
  background: var(--bg-tint);
}

.contrib-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.contrib-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

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

.section-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 22px;
}

.demo-example { display: none; }
.demo-example.is-active { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }

.demo-pager {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.demo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.desc-card {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px 18px;
  background: #fff;
}
.desc-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}
.desc-card audio {
  width: 100%;
  height: 34px;
  margin-top: 10px;
}

.desc-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.desc-source { border-top: 3px solid var(--blue); }
.desc-source .desc-tag { color: var(--blue); }
.desc-target { border-top: 3px solid var(--orange); }
.desc-target .desc-tag { color: var(--orange); }
.desc-instruct {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--orange)) 1;
  background: linear-gradient(135deg, rgba(47, 111, 176, 0.04), rgba(224, 123, 57, 0.04));
}
.desc-instruct .desc-tag {
  background: linear-gradient(90deg, var(--blue), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-arrow { display: flex; justify-content: center; color: var(--text-3); }

@media (max-width: 720px) {
  .demo-pair { grid-template-columns: 1fr; }
}

.wordcloud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.wordcloud-figure {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}
.wordcloud-figure img { display: block; width: 100%; border-radius: 6px; }
.wordcloud-figure figcaption {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  text-align: center;
  margin-top: 8px;
}

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

.footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 0 48px;
  font-size: 0.82rem;
  color: var(--text-3);
  text-align: center;
}
.footer p + p { margin-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    padding: 8px 24px 14px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--bg-tint); }

  .hero { padding: 52px 0 44px; }

  .method-cols { grid-template-columns: 1fr; gap: 24px; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .tabs { overflow-x: auto; }
  .tab { white-space: nowrap; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .container { padding: 0 16px; }
  .hero-buttons { gap: 8px; }
  .btn { padding: 8px 16px; font-size: 0.82rem; }
}
