@charset "UTF-8";
/* ============================================================
   Gustavusの小站 · 电脑端界面
   ------------------------------------------------------------
   可调参数集中在 :root 里，改数值即可微调手感。
   ============================================================ */

:root {
  /* 第一屏：滚轮互动带来的最大缩放（15%） */
  --hero-max-zoom: 0.15;
  /* 图片缩放、界面切换的平滑时长 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hero-zoom-dur: 600ms;
  --screen-swap-dur: 820ms;

  /* 第二屏：按钮放大时长 + 淡化时长 */
  --chibi-expand-dur: 520ms;
  --chibi-fade-dur: 300ms;

  /* 配色 */
  --ink: #f2f5ff;
  --glass-line: rgba(255, 255, 255, 0.28);
  --accent: #8fd0ff;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
          "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0a0c14;
}

body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
  cursor: default;
}

button { font-family: inherit; }

/* ============================== 舞台与屏幕 ============================== */

.stage { position: fixed; inset: 0; }

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--screen-swap-dur) var(--ease),
    transform var(--screen-swap-dur) var(--ease),
    visibility 0s linear var(--screen-swap-dur),
    background-color 700ms ease;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--screen-swap-dur) var(--ease),
    transform var(--screen-swap-dur) var(--ease),
    visibility 0s linear 0s,
    background-color 700ms ease;
}

/* ============================== 第一屏 ============================== */

.screen--hero {
  background: #10131f;
  transform: scale(1.02);
}

.screen--hero.is-active { transform: scale(1); }

/* 离开第一屏时轻微推近，形成层次感 */
body.view-second .screen--hero { transform: scale(1.06); }

.hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #10131f;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(var(--hero-scale, 1));
  transition: transform var(--hero-zoom-dur) var(--ease);
  will-change: transform;
}

/* 页面中心压暗一点点，保证圆角文字可读 */
.screen--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 54%, rgba(8, 10, 24, 0.06) 0%, rgba(8, 10, 24, 0.34) 46%, rgba(6, 8, 20, 0.52) 100%);
}

/* 居中的圆润文字 */
.hero-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.hero-note-pill {
  display: inline-block;
  padding: 18px 46px;
  border-radius: 999px;
  font-size: clamp(18px, 1.65vw, 27px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: #fdfdff;
  background: rgba(24, 30, 56, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 18px 50px rgba(8, 12, 34, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 34px rgba(150, 195, 255, 0.28);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  text-shadow: 0 2px 16px rgba(120, 170, 255, 0.6);
  animation: pillFloat 5.5s var(--ease) infinite;
}

@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* 向下切换按钮（滚轮下滚后出现） */
.scroll-next-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.2vh;
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.scroll-next {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  background: rgba(20, 26, 48, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 14px 36px rgba(6, 10, 28, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 26px rgba(160, 205, 255, 0.3);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transform: translateY(26px) scale(0.82);
  transition:
    opacity 520ms var(--ease),
    transform 520ms var(--ease),
    background-color 320ms ease,
    box-shadow 320ms ease;
}

.scroll-next.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-next:hover {
  background: rgba(52, 74, 128, 0.46);
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 20px 44px rgba(6, 10, 28, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 34px rgba(170, 215, 255, 0.5);
}

.scroll-next:active { transform: translateY(-1px) scale(0.98); }

.scroll-next .chevron {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 8px rgba(120, 170, 255, 0.7));
  animation: chevBob 2.1s var(--ease) infinite;
}

@keyframes chevBob {
  0%, 100% { transform: translateY(-2px); opacity: 0.9; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ============================== 第二屏 ============================== */

.screen--second {
  background-color: #9cc9e3;
}
.chibi-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.chibi-btn {
  width: clamp(118px, 12vw, 172px);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 30%;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 40px rgba(255, 255, 255, 0.16);
  transform: scale(calc(var(--chibi-scale, 1) * var(--chibi-hover, 1)));
  opacity: 1;
  transition:
    transform var(--chibi-expand-dur) var(--ease),
    border-radius var(--chibi-expand-dur) var(--ease),
    opacity var(--chibi-fade-dur) linear,
    box-shadow 380ms ease;
  will-change: transform, opacity;
}

.chibi-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.chibi-btn:hover { --chibi-hover: 1.045; }
.chibi-btn:active { --chibi-hover: 0.965; }

/* ---------------- 返回第一屏的“向上”按钮 ---------------- */
.scroll-back-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 4.2vh;
  display: flex;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 420ms var(--ease);
}

/* 抬头显示出现时整体下移，避免和标题叠在一起 */
body.hud-on .scroll-back-wrap { transform: translateY(74px); }

.scroll-back {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  background: rgba(16, 22, 40, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 14px 36px rgba(6, 10, 28, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 26px rgba(160, 205, 255, 0.3);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transform: translateY(-18px) scale(0.86);
  transition:
    opacity 460ms var(--ease) 180ms,
    transform 460ms var(--ease) 180ms,
    background-color 320ms ease,
    box-shadow 320ms ease;
}

.screen--second.is-active .scroll-back {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-back:hover {
  background: rgba(52, 74, 128, 0.46);
  transform: translateY(3px) scale(1.06);
  box-shadow:
    0 20px 44px rgba(6, 10, 28, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 34px rgba(170, 215, 255, 0.5);
}

.scroll-back:active { transform: translateY(1px) scale(0.98); }

.scroll-back .chevron {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 8px rgba(120, 170, 255, 0.7));
  animation: chevBobUp 2.1s var(--ease) infinite;
}

@keyframes chevBobUp {
  0%, 100% { transform: translateY(2px); opacity: 0.9; }
  50%      { transform: translateY(-4px); opacity: 1; }
}

/* ============================== 抬头显示 ============================== */

.hud {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  transform: translate(-50%, -130%);
  opacity: 0;
  transition:
    transform 480ms var(--ease),
    opacity 380ms var(--ease);
  will-change: transform, opacity;
}

.hud.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.hud-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 30px;
  border-radius: 999px;
  background: rgba(14, 18, 32, 0.52);
  border: 1px solid var(--glass-line);
  box-shadow:
    0 16px 42px rgba(4, 8, 22, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(143, 208, 255, 0.9);
}

.hud-title {
  padding: 0;
  border: 0;
  background: none;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 0 2px 14px rgba(120, 170, 255, 0.55);
  transition: color 240ms ease, text-shadow 240ms ease;
}

.hud-title:hover { color: var(--accent); }

/* ============================== 音乐播放器 ============================== */

.player {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 30;
  width: 328px;
  padding: 16px 18px 14px;
  border-radius: 20px;
  background: rgba(13, 16, 27, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: #eef2ff;
  touch-action: none;
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

.player-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* 播放器可拖动：按住标题区（或面板空白处）拖动 */
.player-head {
  cursor: grab;
}

.player.is-dragging {
  cursor: grabbing;
  background: rgba(16, 20, 34, 0.72);
  box-shadow:
    0 30px 74px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.player.is-dragging .player-head { cursor: grabbing; }

.player-meta { flex: 1 1 auto; min-width: 0; }

.player-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub {
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(226, 234, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-menu {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  color: rgba(232, 240, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease;
}

.player-menu svg { width: 16px; height: 16px; }

.player-menu:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.player-menu[aria-expanded="true"] { color: #0f1424; background: var(--accent); }

/* 进度条 */
.player-progress {
  position: relative;
  height: 4px;
  margin: 14px 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  outline: none;
}

.player-progress:focus-visible { box-shadow: 0 0 0 2px rgba(143, 208, 255, 0.5); }

.player-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fc4ff, #b7a4ff);
  box-shadow: 0 0 12px rgba(140, 190, 255, 0.7);
  transition: width 120ms linear;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(226, 234, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.player-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #eaf1ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 220ms ease, transform 220ms var(--ease), color 220ms ease;
}

.player-btn svg { width: 16px; height: 16px; }

.player-btn:hover { background: rgba(255, 255, 255, 0.18); }
.player-btn:active { transform: scale(0.92); }

.player-btn--play {
  width: 42px;
  height: 42px;
  color: #0b1020;
  background: linear-gradient(160deg, #a8d8ff, #cfc3ff);
  border: 0;
  box-shadow: 0 8px 22px rgba(120, 180, 255, 0.38);
}

.player-btn--play:hover { background: linear-gradient(160deg, #bce0ff, #dcd2ff); }
.player-btn--play svg { width: 18px; height: 18px; }

/* 播放/暂停图标切换 */
.icon-pause { display: none; }
.player.is-playing .icon-play { display: none; }
.player.is-playing .icon-pause { display: block; }

/* 音量 */
.player-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.player-btn--small { width: 28px; height: 28px; border: 0; background: none; }
.player-btn--small:hover { background: rgba(255, 255, 255, 0.12); }
.player-btn--small svg { width: 15px; height: 15px; }

.icon-mute { display: none; }
.player.is-muted .icon-vol { display: none; }
.player.is-muted .icon-mute { display: block; }

.player-range {
  -webkit-appearance: none;
  appearance: none;
  width: 82px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dfe9ff;
  box-shadow: 0 0 8px rgba(150, 200, 255, 0.8);
  transition: transform 160ms ease;
}

.player-range::-webkit-slider-thumb:hover { transform: scale(1.15); }

.player-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #dfe9ff;
}

/* 歌曲列表 */
.player-list {
  margin-top: 12px;
  max-height: 246px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

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

.player-list::-webkit-scrollbar { width: 6px; }
.player-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}

.player-list-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: rgba(232, 240, 255, 0.82);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.player-list-item:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }

.player-list-item .idx {
  flex: 0 0 22px;
  font-size: 10.5px;
  color: rgba(226, 234, 255, 0.42);
  font-variant-numeric: tabular-nums;
}

.player-list-item .name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.player-list-item.is-current {
  background: rgba(143, 208, 255, 0.16);
  color: #ffffff;
}

.player-list-item.is-current .idx { color: var(--accent); }

/* ============================== 响应式（窄屏兜底） ============================== */

@media (max-width: 860px) {
  .player { right: 12px; bottom: 12px; left: 12px; width: auto; }
  .hero-note-pill { padding: 14px 26px; letter-spacing: 0.08em; }
}
