.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 248, 251, 0.86);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 14px 34px -30px rgba(58, 43, 54, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  color: #fff;
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 8px 20px -10px rgba(255, 111, 168, 0.9);
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand-text small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--pink-deep);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-dot {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFAACC;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.nav-dot[hidden] {
  display: none;
}

.nav-link:hover {
  color: var(--pink-deep);
  background: rgba(255, 170, 204, 0.16);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--pink-deep);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(51, 204, 187, 0.3);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  color: var(--ink-soft);
}

.online-pill:hover {
  text-decoration: none;
  border-color: rgba(51, 204, 187, 0.55);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-ring 2.4s ease-out infinite;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--pink-deep);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 首屏 ---------- */
.hero {
  padding: 62px 0 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 1.04;
}

.hero-name {
  display: block;
  letter-spacing: 0.04em;
  background: linear-gradient(118deg, #a83a65 6%, #ff6fa8 52%, #ffaacc 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-name-jp {
  display: block;
  margin-top: 12px;
  font-size: 0.34em;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
}

.hero-romaji {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.44em;
  color: var(--pink-deep);
}

.hero-tagline {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 3px solid var(--pink);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.7vw, 19px);
  color: #8c3f5f;
}

.hero-desc {
  margin-top: 16px;
  max-width: 54ch;
  color: var(--ink-soft);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 88px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.stat strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--pink-deep);
  line-height: 1.3;
}

.stat em {
  font-style: normal;
  font-size: 10px;
  margin-left: 2px;
  color: var(--ink-mute);
}

.stat small {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

.stat-color strong {
  font-size: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 22px 34px 0;
}

.hero-arch {
  position: relative;
  width: min(100%, 372px);
  aspect-ratio: 4 / 5;
  padding: 10px;
  border-radius: 220px 220px 34px 34px;
  background: linear-gradient(155deg, rgba(255, 170, 204, 0.95), rgba(255, 204, 170, 0.6) 48%, rgba(153, 238, 221, 0.8));
  box-shadow: var(--shadow-lg);
}

.hero-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 210px 210px 26px 26px;
  background: linear-gradient(180deg, #ffe3ee, #fff);
}

.hero-arch-star {
  position: absolute;
  top: -18px;
  right: 8px;
  font-size: 34px;
  color: var(--pink-strong);
  animation: float-y 6s ease-in-out infinite;
  text-shadow: 0 6px 18px rgba(255, 111, 168, 0.4);
}

.float-chip {
  position: absolute;
  z-index: 2;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--pink-deep);
  animation: float-y 5.4s ease-in-out infinite;
}

.chip-a {
  top: 13%;
  left: -2%;
}

.chip-b {
  top: 46%;
  right: -2%;
  color: #2b9d90;
  animation-delay: -2.4s;
}

.hero-online {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(272px, 84%);
  padding: 15px 18px;
  border-radius: 22px;
  z-index: 3;
}

.hero-online header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.hero-online header strong {
  color: var(--teal);
}

.online-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.online-list:empty {
  display: none;
}

.online-empty {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-mute);
}

.online-empty[hidden] {
  display: none;
}

/* ---------- 角色介绍 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.3fr;
  gap: 22px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.profile-grid > div {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.profile-grid dt {
  margin-bottom: 2px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

.profile-grid dd {
  font-size: 14px;
  font-weight: 500;
}

.profile-note {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--ink-mute);
}

.story-body p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keyword {
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 170, 204, 0.18);
  color: #a33b66;
  font-size: 12px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: timeline-step;
}

.timeline-list li {
  position: relative;
  padding-left: 36px;
}

.timeline-list li::before {
  counter-increment: timeline-step;
  content: counter(timeline-step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
}

.timeline-list li::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: -16px;
  left: 11px;
  width: 1px;
  background: var(--line);
}

.timeline-list li:last-child::after {
  display: none;
}

.timeline-list h4 {
  font-size: 14.5px;
}

.timeline-list p {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.unit-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

.unit-members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.unit-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.62);
}

.unit-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  flex-shrink: 0;
}

.unit-member strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
}

.unit-member small {
  font-size: 10.5px;
  color: var(--ink-mute);
}

/* ---------- 小知识 ---------- */
.trivia-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- 卡面 ---------- */
.card-groups {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-group-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.card-group-title {
  font-size: 18px;
}

.card-group-count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-mute);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* ---------- 音乐 ---------- */
.music-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 22px;
  align-items: start;
}

.player {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.player-empty-prompt {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.player-empty-prompt[hidden] {
  display: none;
}

.player-empty-prompt p {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-pill);
  background: rgba(255, 252, 253, 0.9);
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.player.is-empty .player-cover img {
  opacity: 0;
}

.player.is-empty .player-main > :not(.player-controls) {
  visibility: hidden;
  opacity: 0;
}

.player-cover {
  position: relative;
  flex: 0 0 216px;
  width: 216px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffaacc, #ffccaa 60%, #99eedd);
  box-shadow: var(--shadow-sm);
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.player-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--pink-deep);
}

.player-main h3 {
  margin-top: 4px;
  font-size: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-mute);
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.player-tags[hidden] {
  display: none;
}

.player-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 170, 204, 0.17);
  color: var(--pink-deep);
  font-size: 10.5px;
  line-height: 1.6;
}

.player-metadata {
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.player-metadata[hidden] {
  display: none;
}

.player-metadata summary {
  padding: 8px 12px;
  color: var(--pink-deep);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
}

.player-metadata summary::-webkit-details-marker {
  display: none;
}

.player-metadata summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.2s var(--ease);
}

.player-metadata[open] summary::before {
  transform: rotate(90deg);
}

.player-metadata-list {
  max-height: 230px;
  margin: 0;
  padding: 4px 12px 12px;
  overflow: auto;
  border-top: 1px dashed var(--line-soft);
}

.player-metadata-row {
  display: grid;
  grid-template-columns: minmax(100px, 150px) minmax(0, 1fr);
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 11.5px;
  line-height: 1.6;
}

.player-metadata-row:last-child {
  border-bottom: 0;
}

.player-metadata-row dt {
  color: var(--ink-mute);
  word-break: break-word;
}

.player-metadata-row dd {
  margin: 0;
  color: var(--ink-soft);
  word-break: break-word;
  white-space: pre-wrap;
}

.player-times {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-mute);
}

.player-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--ink-mute);
  font-size: 12px;
}

.playlist {
  padding: 22px;
}

.playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.playlist-head h3 {
  font-size: 16px;
}

.playlist-head span {
  font-size: 11.5px;
  color: var(--ink-mute);
}

.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 332px;
  overflow: auto;
  padding-right: 4px;
}

/* ---------- 插画墙 / 聊天室 ---------- */
.masonry {
  column-count: 3;
  column-gap: 18px;
}

.masonry > * {
  break-inside: avoid;
  margin: 0 0 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 36px;
  padding: 54px 0 42px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 34px;
  align-items: start;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.footer-brand p {
  grid-column: 1 / -1;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-mute);
}

.footer-note {
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--ink-mute);
}

.footer-note p {
  margin-bottom: 6px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 11.5px;
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.footer-social a:hover {
  background: #fff;
  color: var(--pink-deep);
  text-decoration: none;
}

.footer-social svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.footer-small {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--pink-deep);
}

.footer-credit {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.footer-credit a {
  color: var(--pink-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trivia-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .music-layout {
    grid-template-columns: 1fr;
  }

  .playlist-list {
    max-height: 300px;
  }

  .hero-grid {
    gap: 32px;
  }
}

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

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 14px;
    right: 14px;
    z-index: 55;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 248, 251, 0.97);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    margin-right: auto;
  }

  .hero {
    padding: 34px 0 62px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-visual {
    order: 2;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    padding: 0 0 94px;
  }

  .hero-online {
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
    width: min(330px, 92%);
  }

  .chip-a {
    left: 0;
  }

  .chip-b {
    right: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 74px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .trivia-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .masonry {
    column-count: 2;
    column-gap: 14px;
  }

  .masonry > * {
    margin-bottom: 14px;
  }

  .player {
    flex-direction: column;
  }

  .player-cover {
    flex: none;
    width: 100%;
    max-width: 262px;
    margin-inline: auto;
  }

  .player-main h3 {
    font-size: 19px;
  }

  .collection-progress {
    align-self: stretch;
  }

  .progress-track {
    flex: 1;
    width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-note {
    grid-column: auto;
  }

  .online-pill {
    display: none;
  }

  .hero-arch {
    width: min(100%, 330px);
  }
}

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

  .trivia-grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    column-count: 1;
  }

  .hero-stats .stat {
    flex: 1 1 calc(50% - 5px);
  }

  .unit-members {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .player-controls {
    justify-content: center;
  }

  .volume-control {
    margin-left: 0;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .hero-title {
    font-size: clamp(40px, 13vw, 58px);
  }

  .section {
    padding: 60px 0;
  }

  .panel {
    padding: 20px;
  }

  .player-metadata-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}





