/* 第三章｜各有其声 */

.genre-voices {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
}

/* ── Part 1: 三种天空 ── */

.genre-voices__chapter-open {
  padding-bottom: 2.25rem;
}

.genre-voices__sky-phase {
  position: relative;
  padding: 1.1rem var(--space-md) 6vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.genre-voices__sky-lead-block {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.35rem 0 1.1rem;
}

.genre-voices__sky-lead {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(36rem, 92vw);
  font-family: "Noto Serif SC", var(--font-serif);
  font-weight: 300;
  font-size: clamp(0.88rem, 1.55vw, 1.02rem);
  letter-spacing: 0.08em;
  line-height: 2.15;
  color: rgba(48, 48, 48, 0.78);
  text-align: center;
}

.genre-voices__sky-host {
  width: min(920px, 96vw);
}

.genre-voices__sky-svg {
  width: 100%;
  height: auto;
  display: block;
}

.genre-voices__sky-frame {
  fill: none;
  stroke: none;
}

.genre-voices__sky-light {
  fill: rgba(255, 255, 255, 0.92);
}

.genre-voices__sky-drop {
  fill: rgba(148, 158, 168, 0.42);
  stroke: rgba(120, 132, 144, 0.32);
  stroke-width: 0.35;
}

.genre-voices__sky-pos-label,
.genre-voices__sky-neg-label {
  font-family: "Noto Serif SC", var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.1em;
  fill: rgba(48, 48, 48, 0.78);
}

.genre-voices__sky-pos-pct,
.genre-voices__sky-neg-pct {
  font-family: "Noto Sans SC", var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.04em;
  fill: rgba(36, 52, 68, 0.88);
  font-variant-numeric: tabular-nums;
}

.genre-voices__sky-name {
  font-family: "Noto Serif SC", var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.14em;
  fill: rgba(36, 52, 68, 0.88);
}

.genre-voices__sky-count {
  font-family: "Noto Sans SC", var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.06em;
  fill: rgba(80, 80, 80, 0.62);
}

/* ── Part 2: 语言场 ── */

.genre-voices__field-wrap {
  position: relative;
  padding: 4vh var(--space-md) 12vh;
}

.genre-voices__field-wrap > .reading-prose.genre-voices__field-intro {
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  padding-top: 0;
}

.genre-voices__field-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
  max-width: min(1180px, 99vw);
  margin: 0 auto;
}

.genre-voices__field-layout.is-detail-ready {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  max-width: min(1280px, 99vw);
}

.genre-voices__field-panel {
  position: relative;
  min-width: 0;
}

.genre-voices__field-host {
  width: 100%;
  touch-action: manipulation;
}

.genre-voices__field-svg {
  width: 100%;
  height: auto;
  min-height: min(82vh, 980px);
  display: block;
  overflow: visible;
}

.genre-voices__field-guide {
  stroke: rgba(148, 158, 168, 0.22);
  stroke-width: 1;
}

.genre-voices__field-guide--axis {
  stroke: rgba(120, 132, 144, 0.36);
  stroke-width: 1.2;
}

.genre-voices__field-guide--zone {
  stroke: rgba(120, 132, 144, 0.42);
  stroke-width: 1;
  stroke-dasharray: 5 7;
}

.genre-voices__field-guide--column {
  stroke: rgba(148, 158, 168, 0.2);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.genre-voices__field-guide--mid {
  stroke: rgba(148, 158, 168, 0.28);
  stroke-dasharray: 3 6;
}

.genre-voices__anchor-label {
  font-family: "Noto Serif SC", var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.14em;
  fill: rgba(36, 52, 68, 0.82);
}

.genre-voices__anchor-hint {
  font-family: "Noto Serif SC", var(--font-serif);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.16em;
  fill: rgba(80, 88, 96, 0.52);
}

.genre-voices__term.is-clustered {
  opacity: 0.42;
}

.genre-voices__term {
  cursor: pointer;
  outline: none;
}

.genre-voices__term:focus,
.genre-voices__term:focus-visible {
  outline: none;
}

.genre-voices__term-drop {
  fill: rgba(186, 198, 212, 0.42);
  stroke: rgba(148, 158, 168, 0.48);
  stroke-width: 0.75;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.genre-voices__term-label {
  font-family: "Noto Serif SC", var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.05em;
  fill: rgba(36, 52, 68, 0.86);
  pointer-events: none;
}

.genre-voices__term:hover .genre-voices__term-drop,
.genre-voices__term:focus-visible .genre-voices__term-drop {
  fill: rgba(160, 176, 192, 0.55);
  stroke: rgba(120, 132, 144, 0.55);
}

.genre-voices__term.is-selected .genre-voices__term-drop {
  fill: rgba(130, 148, 168, 0.58);
  stroke: rgba(80, 96, 112, 0.58);
  stroke-width: 1;
}

.genre-voices__term.is-selected .genre-voices__term-label {
  fill: rgba(24, 36, 48, 0.94);
  font-weight: 500;
}

.genre-voices__term.is-dimmed {
  opacity: 0.22;
}

.genre-voices__field-hint {
  margin: -3rem 0 0.35rem;
  padding: 0;
  text-align: center;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 100;
  font-synthesis: none;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: rgba(58, 58, 58, 0.88);
  -webkit-font-smoothing: antialiased;
}

/* ── Detail panel ── */

.genre-voices__detail {
  position: sticky;
  top: 8vh;
  padding: 1.25rem 1.1rem 1.5rem;
  border: 1px solid rgba(186, 194, 204, 0.28);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
  min-height: 12rem;
  display: none;
}

.genre-voices.is-detail-ready .genre-voices__detail {
  display: block;
  animation: genre-voices-detail-in 0.45s ease both;
}

@keyframes genre-voices-detail-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.genre-voices__detail-empty {
  margin: 0;
  font-family: "Noto Serif SC", var(--font-serif);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  line-height: 1.85;
  color: rgba(80, 88, 96, 0.58);
}

.genre-voices__detail-head {
  margin-bottom: 0.85rem;
}

.genre-voices__detail-term {
  margin: 0;
  font-family: "Noto Serif SC", var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: rgba(36, 52, 68, 0.9);
}

.genre-voices__detail-type {
  margin: 0.35rem 0 0;
  font-family: "Noto Sans SC", var(--font-sans);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(80, 88, 96, 0.56);
}

.genre-voices__detail-stats {
  margin: 0 0 0.75rem;
}

.genre-voices__detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(186, 194, 204, 0.18);
  font-family: "Noto Sans SC", var(--font-sans);
  font-size: 0.74rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.genre-voices__detail-row dt {
  color: rgba(60, 68, 76, 0.72);
}

.genre-voices__detail-row dd {
  margin: 0;
  color: rgba(36, 52, 68, 0.82);
  font-variant-numeric: tabular-nums;
}

.genre-voices__detail-note {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(100, 108, 116, 0.58);
}

.genre-voices__detail-relation {
  margin: 0 0 0.85rem;
  font-family: "Noto Serif SC", var(--font-serif);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.75;
  color: rgba(48, 56, 64, 0.76);
}

.genre-voices__detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.genre-voices__tab {
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(186, 194, 204, 0.32);
  border-radius: 999px;
  background: transparent;
  font-family: "Noto Sans SC", var(--font-sans);
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(80, 88, 96, 0.68);
  cursor: pointer;
}

.genre-voices__tab.is-active {
  border-color: rgba(120, 132, 144, 0.45);
  color: rgba(36, 52, 68, 0.88);
  background: rgba(255, 255, 255, 0.5);
}

.genre-voices__detail-poems {
  max-height: min(36vh, 280px);
  overflow-y: auto;
}

.genre-voices__poem-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.genre-voices__poem-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0.45rem 0;
  border: none;
  border-bottom: 1px solid rgba(186, 194, 204, 0.16);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.genre-voices__poem-title {
  font-family: "Noto Serif SC", var(--font-serif);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(36, 52, 68, 0.86);
}

.genre-voices__poem-meta {
  margin-top: 0.15rem;
  font-family: "Noto Sans SC", var(--font-sans);
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(100, 108, 116, 0.58);
}

.genre-voices__detail-more,
.genre-voices__detail-empty-list {
  margin: 0.5rem 0 0;
  font-size: 0.68rem;
  color: rgba(100, 108, 116, 0.56);
}

.genre-voices__detail-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(100, 108, 116, 0.5);
  cursor: pointer;
}

.genre-voices__detail.is-open .genre-voices__detail-empty {
  display: none;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .genre-voices__field-layout.is-detail-ready {
    grid-template-columns: 1fr;
  }

  .genre-voices__detail {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .genre-voices__sky-phase {
    padding-top: 0.85rem;
  }

  .genre-voices__field-wrap {
    padding-bottom: 8vh;
  }

  .genre-voices__field-svg {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .genre-voices__term {
    transition: opacity 0.2s ease;
  }
}
