:root {
  --text: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.66);
  --faint: rgba(255,255,255,.18);
  --panel: rgba(13,16,22,.36);
  --panel-strong: rgba(10,12,18,.54);
  --stroke: rgba(255,255,255,.16);
  --transition-ms: 780ms;
  --ease-cinema: cubic-bezier(.7, 0, .16, 1);
  --app-height: 100vh;
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  max-width: 100%;
}
html { scroll-behavior: auto; }
body {
  margin: 0;
  overflow: hidden;
  background: #090b0f;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button {
  font: inherit;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #06070a;
  opacity: 1;
  visibility: visible;
  transition: opacity 860ms ease, visibility 0s linear 0s;
}

.intro-overlay.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 860ms ease, visibility 0s linear 860ms;
}

.intro-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.08) brightness(.72);
  transform: scale(1.08);
}

.intro-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 58%, rgba(255,255,255,.08), transparent 24%),
    radial-gradient(circle at 50% 48%, transparent 34%, rgba(0,0,0,.24) 72%, rgba(0,0,0,.74) 100%),
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.12) 42%, rgba(0,0,0,.62));
}

.intro-enter-btn {
  position: relative;
  width: 178px;
  height: 66px;
  margin-top: 30vh;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 24px;
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(45,112,78,.54), rgba(13,47,36,.46) 48%, rgba(255,255,255,.055)),
    rgba(9,28,24,.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -18px 34px rgba(0,0,0,.06),
    0 24px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(24px) saturate(1.18);
  cursor: pointer;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.intro-enter-btn::before {
  content: none;
}

.intro-enter-btn:hover {
  transform: scale(1.045);
  border-color: rgba(255,255,255,.24);
  background:
    linear-gradient(135deg, rgba(54,128,90,.62), rgba(15,55,42,.52) 48%, rgba(255,255,255,.075)),
    rgba(10,34,28,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -18px 34px rgba(0,0,0,.05),
    0 0 26px rgba(102,210,148,.13),
    0 26px 82px rgba(0,0,0,.28);
}

.intro-enter-btn:active {
  transform: scale(.98);
}

.intro-enter-cn,
.intro-enter-en {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 18px rgba(0,0,0,.32);
}

.intro-enter-cn {
  font-size: 18px;
  font-weight: 520;
}

.intro-enter-en {
  font-size: 11px;
  font-weight: 600;
}

.site-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.video-stage,
.bg-video,
.cinema-vignette,
.grain {
  position: fixed;
  inset: 0;
}

.video-stage {
  z-index: -3;
  overflow: hidden;
  background: #06070a;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transform: scale(1.018);
  transition: opacity 420ms ease, transform 1200ms ease, visibility 0s linear 420ms;
  will-change: auto;
  background: #090b0f;
}

.bg-video.is-visible {
  opacity: 1;
  visibility: visible;
  z-index: 10;
  transform: scale(1);
  transition: opacity 420ms ease, transform 1200ms ease, visibility 0s linear 0s;
  will-change: opacity;
}

/* 防止视频未就绪时整页纯黑：舞台始终有底色 */
.video-stage {
  background: #090b0f;
}


#transitionVideo {
  z-index: 20;
}

#transitionVideo.is-visible {
  z-index: 20;
}

#scene3LoopVideo.is-visible {
  z-index: 11;
}

.cinema-vignette {
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 34%, rgba(0,0,0,.22) 72%, rgba(0,0,0,.72) 100%),
    linear-gradient(90deg, rgba(0,0,0,.68), transparent 24%, transparent 72%, rgba(0,0,0,.56)),
    linear-gradient(180deg, rgba(0,0,0,.42), transparent 30%, transparent 68%, rgba(0,0,0,.58));
}

.grain {
  z-index: 3;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 42px) clamp(22px, 5vw, 72px);
  pointer-events: none;
}

.brand,
.topbar nav {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.brand-mark {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 0 24px rgba(255,255,255,.8);
}

.topbar nav {
  display: none;
}

/* 底部居中页面指示器 */
.scene-pager {
  position: fixed;
  left: 50%;
  bottom: clamp(22px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.nav-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  cursor: pointer;
  transition: width .35s ease, background .35s ease;
}

.nav-dot.is-active {
  width: 28px;
  background: rgba(255,255,255,.92);
}

.mobile-scene-controls {
  display: none;
}

/* 去掉底部横杠进度条 */
.progress-ui {
  display: none !important;
}


.content-track {
  position: relative;
  z-index: 5;
  display: flex;
  width: 500vw;
  height: 100vh;
  transform: translate3d(0,0,0);
  will-change: auto;
}

.content-track.is-moving {
  will-change: transform;
  transition: transform var(--transition-ms) cubic-bezier(.22,.61,.36,1);
}

/* 场景滑动期间关闭毛玻璃，避免 backdrop-filter 每帧重采样视频 */
body.is-scene-moving .glass-panel,
body.is-scene-moving .scene-pager {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(10, 12, 18, 0.78) !important;
}
body.is-scene-moving .grain {
  opacity: 0 !important;
  visibility: hidden !important;
}

body[data-phase="sceneMusic"] .content-track,
body[data-phase="transition-1-music"] .content-track,
body[data-phase="transition-2-music"] .content-track,
body[data-phase="transition-music-1"] .content-track {
  transform: translate3d(-100vw,0,0);
}

body[data-phase="scene2"] .content-track,
body[data-phase="transition"] .content-track,
body[data-phase="scene2-intro"] .content-track,
body[data-phase="scene2-idle"] .content-track,
body[data-phase="transition-music-2"] .content-track {
  transform: translate3d(-200vw,0,0);
}

/* 深链直达作品页：首屏即作品区，不闪首页 */
html.deeplink-work #introOverlay {
  display: none !important;
}
html.deeplink-work #scene1Video {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.deeplink-work .content-track {
  transform: translate3d(-200vw, 0, 0) !important;
  transition: none !important;
}


body[data-phase="scene3-idle"] .content-track,
body[data-phase="scene3"] .content-track,
body[data-phase="transition-2-3"] .content-track,
body[data-phase="transition-3-2"] .content-track,
body[data-phase="transition-4-3"] .content-track {
  transform: translate3d(-300vw,0,0);
}


body[data-phase="scene4"] .content-track,
body[data-phase="scene4-idle"] .content-track,
body[data-phase="transition-3-4"] .content-track {
  transform: translate3d(-400vw,0,0);
}


.page {
  position: relative;
  flex: 0 0 100vw;
  height: 100vh;
  padding: clamp(96px, 12vh, 150px) clamp(22px, 5vw, 72px) clamp(32px, 7vh, 72px);
}

.page-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
}

.hero-copy {
  max-width: 560px;
  padding-bottom: clamp(18px, 6vh, 64px);
}

.eyebrow,
.small-label {
  margin: 0 0 16px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 560px;
  margin-bottom: 22px;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: .96;
  letter-spacing: -.075em;
  font-weight: 540;
}

.home-title-line {
  display: block;
}

#home-title {
  position: relative;
  top: calc(clamp(-160px, -21vh, -120px) + 42mm);
  margin-bottom: -4px;
}

.home-title-line-offset {
  margin-left: 0;
  margin-top: 16px;
}

h2 {
  margin-bottom: 16px;
  font-size: 28px;
  letter-spacing: -.04em;
  font-weight: 520;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  letter-spacing: -.03em;
  font-weight: 520;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.primary-btn {
  min-width: 172px;
  height: 48px;
  padding: 0 22px;
  color: #101318;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  transition: transform .28s ease, background .28s ease;
}

.primary-btn:hover { transform: translateY(-2px); background: #fff; }

.hint {
  position: relative;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hint::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin-left: 13px;
  vertical-align: middle;
  background: rgba(255,255,255,.42);
  animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
  0%,100% { transform: scaleX(.55); opacity: .3; }
  50% { transform: scaleX(1); opacity: .9; }
}

.glass-panel {
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, var(--panel), rgba(255,255,255,.06));
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  backdrop-filter: blur(24px) saturate(1.18);
}

.profile-card {
  align-self: end;
  justify-self: end;
  width: min(100%, 360px);
  margin-bottom: clamp(16px, 5vh, 60px);
  padding: 28px;
  border-radius: 30px;
  transform: translateX(20px);
}

.profile-card p,
.tile p {
  color: rgba(255,255,255,.67);
  line-height: 1.38;
}

.profile-card dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0 0;
}

.profile-card dt {
  color: rgba(255,255,255,.46);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.profile-card dd {
  margin: 7px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 14px;
}

/* ========== Music Player Page ========== */
.page-music {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.music-layout {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(420px, 1fr);
  gap: clamp(20px, 3vw, 40px);
  width: min(92vw, 1180px);
  max-height: calc(100vh - 140px);
  align-items: stretch;
}

.music-layout-3 {
  grid-template-columns: minmax(240px, 300px) minmax(360px, 1fr) minmax(240px, 300px);
  width: min(96vw, 1380px);
}


.music-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 28px;
  padding: 22px 18px 16px;
  overflow: hidden;
}

.music-sidebar-head {
  padding: 0 8px 12px;
}

.music-sidebar-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
}

.music-tabs {
  display: flex;
  gap: 8px;
  padding: 0 4px 14px;
  flex-wrap: wrap;
}

.music-tab {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 8px 14px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .04em;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.music-tab.is-active,
.music-tab:hover {
  color: #101318;
  background: rgba(255,255,255,.9);
  border-color: transparent;
}

.music-playlist {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.music-playlist::-webkit-scrollbar {
  width: 4px;
}

.music-playlist::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 4px;
}

.music-track {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 10px;
  color: inherit;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  text-align: left;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.music-track:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

.music-track.is-active {
  border-color: rgba(126,244,229,.35);
  background: linear-gradient(135deg, rgba(126,244,229,.14), rgba(255,255,255,.06));
}

.music-track-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.music-track-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.music-track-meta strong {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-track-meta em {
  font-style: normal;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-track-idx {
  color: rgba(255,255,255,.35);
  font-size: 12px;
  letter-spacing: .08em;
}

.music-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 0;
  border-radius: 32px;
  padding: clamp(22px, 3vw, 36px);
  overflow: hidden;
}

.music-stage-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 50% 28%, rgba(126,244,229,.18), transparent 36%),
    radial-gradient(circle at 70% 70%, rgba(120,160,255,.12), transparent 34%);
  pointer-events: none;
}

.music-cover-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 14px;
}

.music-disc {
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  border-radius: 50%;
  padding: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(0,0,0,.35));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}

.music-disc-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 18px rgba(0,0,0,.35);
}

.music-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.music-disc.is-playing .music-cover {
  animation: disc-spin 18s linear infinite;
}

@keyframes disc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.music-spectrum {
  width: min(70%, 360px);
  height: 64px;
  opacity: .9;
}

.music-meta {
  position: relative;
  z-index: 1;
  text-align: center;
}

.music-meta h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 32px);
}

.music-meta p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 14px;
}

.music-lyrics {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  min-height: 84px;
  text-align: center;
  display: grid;
  gap: 6px;
}

.music-lyric-line {
  margin: 0;
  color: rgba(255,255,255,.38);
  font-size: 14px;
  line-height: 1.5;
  transition: color .25s ease, transform .25s ease, opacity .25s ease;
}

.music-lyric-line.is-active {
  color: rgba(255,255,255,.94);
  transform: scale(1.04);
  font-weight: 600;
}

.music-progress-block {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.music-progress,
.music-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  outline: none;
  cursor: pointer;
}

.music-progress::-webkit-slider-thumb,
.music-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.music-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.music-ctrl {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.music-ctrl:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
}

.music-ctrl-main {
  width: 58px;
  height: 58px;
  color: #101318;
  background: rgba(255,255,255,.92);
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

.music-ctrl-main:hover {
  background: #fff;
}

.music-ctrl[data-mode="loop"] {
  color: rgba(126,244,229,.95);
  border-color: rgba(126,244,229,.35);
}

.music-ctrl[data-mode="shuffle"] {
  color: rgba(160,190,255,.95);
  border-color: rgba(160,190,255,.35);
}

.music-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  color: rgba(255,255,255,.7);
}

.music-volume-slider {
  width: 88px;
}

.music-source-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.music-source-badge.is-cloud {
  color: rgba(126,244,229,.95);
  border-color: rgba(126,244,229,.3);
  background: rgba(126,244,229,.1);
}

.music-login {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 28px;
  padding: 22px 18px 18px;
  overflow: hidden;
}

.music-login-head h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.music-login-tip {
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  line-height: 1.5;
}

.music-login-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.music-qr-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}

.music-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.music-qr-mask {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  gap: 10px;
  background: rgba(8,12,16,.72);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.music-qr-mask.is-visible {
  display: grid;
}


.music-qr-refresh,
.music-login-refresh-btn,
.music-logout-btn {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 16px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  cursor: pointer;
  font-size: 12px;
}

.music-qr-refresh:hover,
.music-login-refresh-btn:hover,
.music-logout-btn:hover {
  background: rgba(255,255,255,.16);
}

.music-login-status {
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  text-align: center;
}

.music-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.music-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,.1);
}

.music-user-card strong {
  display: block;
  font-size: 15px;
}

.music-user-card p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.5);
  font-size: 12px;
}

.music-cloud-playlists {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

.music-cloud-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 8px;
  color: inherit;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  text-align: left;
}

.music-cloud-item:hover,
.music-cloud-item:focus-visible {
  border-color: rgba(126,244,229,.3);
  background: rgba(255,255,255,.08);
}

.music-cloud-item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.music-cloud-item strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-cloud-item em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  color: rgba(255,255,255,.5);
  font-size: 11px;
}

.music-empty {
  margin: 12px 0;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  text-align: center;
}

.music-logout-btn {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 920px) {
  .music-layout {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    width: min(94vw, 560px);
  }

  .music-layout-3 {
    grid-template-columns: 1fr;
    width: min(94vw, 560px);
  }

  .music-sidebar {
    max-height: 280px;
  }

  .music-login {
    order: 3;
  }

  .music-disc {
    width: min(56vw, 220px);
    height: min(56vw, 220px);
  }
}


@media (max-width: 768px) {
  .page-music {
    align-items: flex-start;
    padding-top: 88px;
    padding-bottom: 88px;
    overflow-y: auto;
  }

  .music-layout {
    max-height: none;
    gap: 16px;
  }

  .music-stage {
    border-radius: 24px;
    padding: 20px 16px 24px;
  }

  .music-controls {
    gap: 10px;
  }

  .music-volume {
    width: 100%;
    justify-content: center;
  }
}

.page-work {
  display: block;
}


.work-layout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
}

/* ========== Section Header (左侧 1/3) ========== */
.section-header {
  width: 30%;
  max-width: 360px;
  z-index: 21;
}

.section-header .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 16px 0;
  color: var(--text);
}

.section-header .section-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ========== Project Cards Grid (右侧 2/3) ========== */
.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 330px));
  gap: 26px;
  z-index: 20;
}

.project-card {
  position: relative;
  width: 100%;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03) 38%, rgba(7,12,18,.54)),
    rgba(8, 12, 18, .52);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 60px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(1.18);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease, background 300ms ease;
  will-change: transform;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 32%, rgba(98,238,221,.08));
  opacity: .42;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.28);
  box-shadow:
    0 28px 78px rgba(0,0,0,.46),
    0 0 0 1px rgba(255,255,255,.08),
    0 0 36px rgba(92,231,214,.08);
}

.project-card.is-deeplink-focus {
  animation: project-deeplink-pulse 1.8s ease;
  border-color: rgba(126,244,229,.55);
  box-shadow:
    0 0 0 2px rgba(126,244,229,.35),
    0 28px 78px rgba(0,0,0,.46),
    0 0 40px rgba(92,231,214,.22);
}

@keyframes project-deeplink-pulse {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-8px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}


.project-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 12px 12px 0;
  border-radius: 17px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}

.project-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.22));
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 360ms ease, filter 360ms ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.04);
  filter: saturate(1.08) brightness(1.04);
}

.project-card-info {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.project-card-title {
  font-size: clamp(19px, 1.55vw, 23px);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 9px;
  color: var(--text);
}

.project-card-description {
  font-size: 14px;
  line-height: 1.52;
  color: rgba(255,255,255,.66);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.065);
  font-size: 11px;
  line-height: 1;
}

/* ========== Project Modal ========== */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 36%, rgba(70,210,196,.12), transparent 34%),
    rgba(0,0,0,.68);
  backdrop-filter: blur(16px) saturate(1.1);
}

.project-modal-card {
  position: relative;
  width: min(74vw, 1120px);
  height: min(78vh, 720px);
  max-height: 78vh;
  overflow: hidden;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(360px, 1.14fr);
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04) 42%, rgba(8,14,18,.68)),
    rgba(8,14,18,.62);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  box-shadow: 0 44px 140px rgba(0,0,0,.64), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(26px) saturate(1.18);
  opacity: 0;
  transform: scale(.96) translateY(10px);
  transition: opacity 300ms ease, transform 300ms var(--ease-cinema), border-color 260ms ease;
  will-change: transform, opacity;
}

.project-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-overlay.is-open .project-modal-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.project-modal-overlay.is-closing {
  opacity: 0;
}

.project-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: rgba(255,255,255,.92);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  backdrop-filter: blur(12px);
}

.project-modal-close:hover {
  background: rgba(0,0,0,.8);
  border-color: rgba(255,255,255,.32);
  transform: scale(1.1);
}

.project-modal-close svg {
  width: 20px;
  height: 20px;
}

.project-modal-media {
  position: relative;
  min-height: 0;
  height: 100%;
  background:
    radial-gradient(circle at 28% 20%, rgba(117,220,255,.18), transparent 26%),
    linear-gradient(160deg, rgba(33,68,126,.34), rgba(12,17,24,.58));
  overflow: hidden;
}

.project-modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 54%, rgba(0,0,0,.3));
}

.project-modal-media img,
.project-modal-media video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.project-modal-content {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px) clamp(26px, 3.2vw, 40px) clamp(22px, 2.6vw, 32px);
}

.project-modal-kicker {
  margin: 0 0 8px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.project-modal-title {
  max-width: calc(100% - 58px);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1.02;
  margin: 0 0 9px;
  color: var(--text);
  white-space: nowrap;
}

.project-modal-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 14px;
  color: rgba(255,255,255,.76);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.42;
}

.project-modal-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(118px, 1fr));
  gap: 10px;
  min-height: 0;
}

.project-detail-section {
  min-height: 118px;
  padding: 12px 13px 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.project-detail-section h4 {
  margin: 0 0 8px;
  color: rgba(255,255,255,.84);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project-detail-section p,
.project-detail-section li {
  color: rgba(255,255,255,.68);
  font-size: 12.5px;
  line-height: 1.38;
}

.project-detail-section p,
.project-detail-section ul {
  margin: 0;
}

.project-detail-section p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.project-detail-section ul {
  padding-left: 15px;
}

.project-detail-section li {
  margin-bottom: 2px;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech-list span {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.07);
  font-size: 10.5px;
}

.project-modal-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
}

.project-status {
  color: rgba(156,255,235,.84);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.project-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.96);
  background: linear-gradient(135deg, rgba(45,112,78,.64), rgba(13,47,36,.56));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.project-modal-cta-secondary {
  background: rgba(255,255,255,.08);
}

.project-modal-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(54,128,90,.72), rgba(15,55,42,.64));
  box-shadow: 0 8px 24px rgba(45,112,78,.4);
}

.project-modal-cta.is-disabled,
.project-modal-cta.is-disabled:hover {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
  background: rgba(255,255,255,.06);
  box-shadow: none;
  pointer-events: auto;
}

body.project-detail-open .content-track {
  pointer-events: none;
}

/* ============================================
   Scene 4: Contact Page
   ============================================ */

.page-contact {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-scene-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(3,7,12,.92), rgba(6,24,28,.7) 46%, rgba(4,8,13,.9)),
    radial-gradient(circle at 72% 28%, rgba(96,238,217,.18), transparent 34%),
    radial-gradient(circle at 24% 76%, rgba(255,255,255,.08), transparent 32%);
  opacity: .94;
}

.contact-layout {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(360px, 1fr);
  gap: clamp(28px, 4.2vw, 72px);
  width: min(88vw, 1280px);
  margin: 0 auto;
  align-items: center;
}

.contact-intro h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 5.8vw, 86px);
  line-height: .98;
  letter-spacing: 0;
}

.contact-title-line {
  display: block;
}

.contact-lead {
  max-width: 560px;
  margin: 0 0 clamp(24px, 4vh, 42px);
  color: rgba(255,255,255,.72);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.72;
}

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

.contact-info-card,
.social-panel,
.feedback-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.contact-info-card {
  min-height: 136px;
  padding: 22px 24px;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.contact-info-card-email {
  grid-column: 1 / -1;
}

.contact-info-card::before,
.social-panel::before,
.feedback-panel::before,
.social-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent 34%, rgba(92,231,214,.1));
  opacity: .55;
}

.contact-info-card:hover,
.social-panel:hover,
.feedback-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 26px 80px rgba(55,231,214,.12), 0 18px 56px rgba(0,0,0,.3);
}

.contact-info-card strong {
  position: relative;
  display: block;
  margin: 12px 0 8px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
}

.contact-info-card-email strong {
  font-size: clamp(26px, 2.4vw, 34px);
  white-space: nowrap;
}

.contact-info-card p {
  position: relative;
  margin: 0;
  color: rgba(255,255,255,.62);
  line-height: 1.48;
}

.contact-side {
  display: grid;
  gap: 20px;
}

.social-panel,
.feedback-panel {
  padding: clamp(22px, 2.4vw, 32px);
}

.panel-heading {
  position: relative;
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.15;
}

.social-link-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.social-chip {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.social-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 28px rgba(98,238,221,.16);
}

.feedback-panel {
  display: grid;
  gap: 14px;
}

.feedback-panel label {
  position: relative;
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,.68);
}

.feedback-panel input,
.feedback-panel textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 14px 16px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.07);
  outline: none;
  resize: vertical;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.feedback-panel input:focus,
.feedback-panel textarea:focus {
  border-color: rgba(126,244,229,.55);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 4px rgba(126,244,229,.08);
}

.feedback-submit {
  justify-self: start;
  min-width: 158px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 13px 24px;
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.1);
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.feedback-submit:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.46);
  background: rgba(255,255,255,.16);
  box-shadow: 0 0 34px rgba(98,238,221,.16), 0 18px 48px rgba(0,0,0,.26);
}

.feedback-submit:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
  box-shadow: 0 14px 36px rgba(0,0,0,.2);
}

.feedback-toast {
  min-height: 22px;
  margin: 0;
  color: rgba(159,255,236,.86);
}

.contact-reveal {
  opacity: 0;
  transform: translateY(30px);
}

body[data-phase="scene4"] .contact-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 720ms ease var(--reveal-delay), transform 720ms ease var(--reveal-delay);
}

body[data-phase="scene4-idle"] .contact-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 720ms ease var(--reveal-delay), transform 720ms ease var(--reveal-delay);
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    padding: 10px 4px 24px;
  }

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

@media (max-width: 768px) {
  html,
  body,
  .site-shell {
    width: 100%;
    height: var(--app-height);
    overflow: hidden;
    overscroll-behavior: none;
  }

  html {
    position: fixed;
    inset: 0;
  }

  body {
    position: fixed;
    inset: 0;
    /* 允许我们自己的触摸滑动切页 */
    touch-action: pan-y;
  }

  .site-shell {
    position: fixed;
    inset: 0;
    touch-action: pan-y;
  }

  button,
  a,
  input,
  textarea,
  select,
  label,
  .project-card,
  .nav-dot,
  .audio-control-panel,
  .mobile-scene-controls,
  .project-modal-card,
  .scene-pager {
    touch-action: manipulation;
  }

  .video-stage,
  .bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: var(--app-height);
  }

  .bg-video {
    object-fit: cover;
    object-position: center center;
  }

  .content-track {
    height: var(--app-height);
    overscroll-behavior: none;
    touch-action: pan-y;
  }

  .page {
    height: var(--app-height);
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: pan-y;
  }

  /* 手机端隐藏噪点层，减负 */
  .grain {
    display: none !important;
  }

  .cinema-vignette {
    opacity: .65;
  }

  .mobile-scene-controls {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(6,12,14,.55);
    backdrop-filter: blur(14px) saturate(1.1);
    box-shadow: 0 14px 42px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
  }

  .mobile-scene-btn {
    min-width: 72px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
  }

  .scene-pager {
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 70;
  }

  .page-contact {
    display: block;
    align-items: flex-start;
    padding: 92px 18px 120px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .contact-layout {
    display: grid;
    width: min(100%, 520px);
    max-height: none;
    overflow: visible;
    gap: 18px;
    padding: 0 0 24px;
  }

  .contact-intro h1 {
    margin: 8px 0 12px;
    font-size: clamp(42px, 13vw, 62px);
    line-height: .96;
  }

  .contact-lead {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.62;
  }

  .contact-card-grid,
  .social-link-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-info-card {
    min-height: 112px;
    padding: 20px 22px;
    border-radius: 24px;
  }

  .contact-info-card-email {
    grid-column: auto;
  }

  .contact-info-card strong,
  .contact-info-card-email strong {
    font-size: clamp(23px, 7vw, 29px);
  }

  .contact-info-card-email strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .feedback-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .feedback-submit {
    width: 100%;
  }

  .page-music {
    touch-action: pan-y;
  }

  .music-playlist,
  .project-cards-grid {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
}

/* 更通用的移动类（UA 检测） */
html.is-mobile .grain { display: none !important; }
html.is-mobile .bg-video {
  transition: opacity 220ms ease !important;
}
html.is-mobile .content-track.is-moving {
  transition-duration: 420ms !important;
}


.progress-ui {
  position: fixed;
  left: clamp(22px, 5vw, 72px);
  right: clamp(22px, 5vw, 72px);
  bottom: clamp(20px, 4vh, 44px);
  z-index: 30;
  display: none !important;
  align-items: center;
  gap: 18px;
  color: rgba(255,255,255,.66);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: none;
}


.progress-line {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
}

.progress-line i {
  display: block;
  width: 0%;
  height: 100%;
  background: rgba(255,255,255,.86);
  transform-origin: left center;
  transition: width 120ms linear;
}

@media (max-width: 920px) {
  .page-home {
    grid-template-columns: 1fr;
    align-items: end;
  }
  .profile-card {
    max-width: 460px;
    margin-bottom: 0;
    justify-self: start;
    transform: none;
  }
  .section-copy,
  .content-grid {
    right: auto;
    left: 50%;
    width: min(88vw, 760px);
    transform: translateX(-50%);
  }
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .tile,
  .tile-large {
    height: 150px;
    min-height: 150px;
  }
}

@media (max-width: 768px) {
  #home-title {
    top: clamp(-44px, -6vh, -32px);
  }

  .page-work {
    overflow: hidden;
  }

  .work-layout {
    position: absolute;
    inset: 0;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(78px, 24vw) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 92px 16px 82px;
  }

  .section-header {
    width: auto;
    max-width: 96px;
    align-self: center;
  }

  .section-header .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .section-header h2 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.04;
    margin-bottom: 14px;
  }

  .section-header .section-subtitle {
    font-size: 16px;
    line-height: 1.55;
  }

  .project-cards-grid {
    width: 100%;
    max-height: calc(100dvh - 174px);
    grid-template-columns: 1fr;
    gap: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 8px;
    -webkit-overflow-scrolling: touch;
  }

  .project-card {
    width: 100%;
    min-height: 0;
    border-radius: 18px;
  }

  .project-image-wrap {
    margin: 10px 10px 0;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
  }

  .project-card-info {
    padding: 14px 15px 16px;
  }

  .project-card-title {
    font-size: 16px;
  }

  .project-card-description {
    font-size: 12px;
    line-height: 1.42;
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
  }

  .project-tags {
    gap: 6px;
  }

  .project-tags span {
    padding: 5px 7px;
    font-size: 10px;
  }

  .project-modal-overlay {
    padding: 14px;
    align-items: center;
  }

  .project-modal-card {
    width: calc(100vw - 28px);
    height: auto;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .project-modal-media {
    position: relative;
    height: auto;
    min-height: 220px;
  }

  .project-modal-media img,
  .project-modal-media video {
    min-height: 220px;
    height: 220px;
  }

  .project-modal-content {
    display: block;
    padding: 24px 20px 26px;
  }

  .project-modal-title {
    max-width: calc(100% - 44px);
    font-size: clamp(28px, 8vw, 40px);
    white-space: normal;
  }

  .project-modal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-modal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-modal-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .project-modal-cta {
    flex: 1 1 auto;
  }

  .section-copy,
  .content-grid {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: min(88vw, 420px);
    transform: none;
  }

  .section-copy {
    margin: 96px auto 16px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    row-gap: 18px;
    margin: 0 auto;
  }

  .tile,
  .tile-large {
    height: auto;
    min-height: 132px;
  }
}

@media (max-width: 640px) {
  #home-title {
    top: clamp(-36px, -5vh, -24px);
  }
  .intro-enter-btn {
    width: 164px;
    height: 62px;
    margin-top: 28vh;
    border-radius: 20px;
  }
  .intro-enter-cn {
    font-size: 17px;
  }
  .intro-enter-en {
    font-size: 10px;
  }
  .topbar {
    padding: 20px;
  }
  .brand span:last-child {
    display: none;
  }
  .page {
    padding: 90px 20px 72px;
  }
  h1 {
    font-size: clamp(30px, 11vw, 52px);
  }
  .profile-card,
  .tile {
    padding: 16px 22px;
    border-radius: 24px;
  }
  .page-home {
    gap: 18px;
  }
  .progress-ui {
    left: 20px;
    right: 20px;
  }
}

/* 音频控制面板 */
.audio-control-panel {
  position: fixed;
  top: calc(clamp(20px, 3vw, 42px) - 14.5px);
  right: calc(clamp(22px, 5vw, 72px) + 113px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audio-control-panel:hover {
  transform: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.audio-play-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.audio-play-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
}

.audio-play-btn:active {
  transform: scale(0.95);
}

.audio-control-panel.is-playing .audio-play-btn {
  background: rgba(100, 220, 220, 0.24);
  color: rgba(100, 220, 220, 1);
}

.audio-volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-volume-icon {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
}

.audio-volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.audio-volume-slider::-webkit-slider-thumb:hover {
  background: #fff;
  transform: scale(1.15);
}

.audio-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.audio-volume-slider::-moz-range-thumb:hover {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .audio-control-panel {
    top: calc(20px - 3.5px);
    right: 133px;
    padding: 8px 14px;
    gap: 10px;
  }

  .audio-play-btn {
    width: 32px;
    height: 32px;
  }

  .audio-volume-slider {
    width: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-overlay,
  .intro-enter-btn {
    transition: none !important;
  }
  .content-track.is-moving,
  .bg-video,
  .hint::after {
    transition: none !important;
    animation: none !important;
  }
  .audio-control-panel,
  .audio-play-btn {
    transition: none !important;
  }
}

/* ============================================
   Scene 3: Gallery Page
   ============================================ */

.page-gallery {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* 相册角标：更换照片 */
.gallery-manage-fab {
  position: absolute;
  right: 22px;
  bottom: 28px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(12, 16, 24, .72);
  backdrop-filter: blur(12px);
  color: #f3f6fb;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.gallery-manage-fab:hover {
  transform: translateY(-1px);
  background: rgba(20, 28, 40, .88);
  border-color: rgba(16,163,127,.45);
}
.gallery-manage-fab svg { flex-shrink: 0; opacity: .9; }

.gallery-manage-modal[hidden] { display: none !important; }
.gallery-manage-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.gallery-manage-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.gallery-manage-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(22,28,38,.98), rgba(12,16,24,.98));
  color: #eef2f7;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.gallery-manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.gallery-manage-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.gallery-manage-close {
  border: 0;
  background: rgba(255,255,255,.06);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}
.gallery-manage-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.gallery-manage-desc {
  margin: 0 0 14px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}
.gallery-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.gallery-manage-btn {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gallery-manage-btn.primary {
  background: linear-gradient(135deg, #0f9f7a, #10a37f);
  border-color: transparent;
  color: #fff;
}
.gallery-manage-btn:hover { filter: brightness(1.06); }
.gallery-manage-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  user-select: none;
  cursor: pointer;
}
.gallery-manage-status {
  min-height: 1.2em;
  margin: 0 0 10px;
  font-size: 12px;
  color: #86efac;
}
.gallery-manage-status.is-error { color: #fca5a5; }
.gallery-manage-list {
  display: grid;
  gap: 8px;
}
.gallery-manage-empty {
  margin: 8px 0;
  color: #64748b;
  font-size: 13px;
}
.gallery-manage-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
}
.gallery-manage-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}
.gallery-manage-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.gallery-manage-meta strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-manage-meta span {
  font-size: 11px;
  color: #64748b;
}
.gallery-manage-del {
  border: 0;
  background: rgba(239,68,68,.12);
  color: #fca5a5;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}
.gallery-manage-del:hover { background: rgba(239,68,68,.22); }

@media (max-width: 768px) {
  .gallery-manage-fab {
    right: 14px;
    bottom: 18px;
    padding: 10px 12px;
  }
  .gallery-manage-fab span { display: none; }
}

.gallery-3d-stage {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  padding-right: 5vw;
  overflow: hidden;
  /* 默认不开启 3D 透视，悬停卡片时再由 card 自己 preserve-3d */
  perspective: none;
}

.photo-column {
  position: relative;
  width: 320px;
  height: 80vh;
  overflow: hidden;
  transform-style: preserve-3d;
}

.photo-column-left {
  /* 左列特定样式（如需要） */
}

.photo-column-right {
  /* 右列特定样式（如需要） */
}

.photo-track-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform-style: flat;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.photo-card {
  position: relative;
  width: 300px;
  height: 220px;
  margin-bottom: 30px;

  transform-style: flat;
  will-change: auto;
  transition: none;

  border-radius: 12px;
  overflow: hidden;
  /* 默认无大阴影，滚动条带更省；悬停再开 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);

  cursor: pointer;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.photo-card.is-hovered {
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.photo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.photo-card.is-hovered::before {
  opacity: 1;
}

.photo-card .shine-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.photo-card.is-hovered .shine-overlay {
  opacity: 1;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.15s ease-out;

  /* GPU 加速和图片优化 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.photo-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.1s ease-out;
  pointer-events: none;
  z-index: 4;
}

.photo-card.is-hovered .photo-info-overlay {
  opacity: 1;
}

.photo-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.photo-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.photo-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(9, 11, 15, 0.95);
  backdrop-filter: blur(24px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.7, 0, 0.16, 1);
}

.photo-detail-overlay.is-active {
  opacity: 1 !important;
  pointer-events: all;
}

.detail-content {
  position: relative;
  display: flex;
  gap: 3rem;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;

  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.16, 1);
}

.photo-detail-overlay.is-active .detail-content {
  transform: scale(1);
}

.detail-image {
  width: auto;
  max-width: 60vw;
  max-height: 80vh;
  height: auto;

  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  max-width: 320px;

  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.detail-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.detail-date {
  font-size: 0.85rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.detail-close {
  position: absolute;
  top: 2rem;
  right: 2rem;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 50%;

  color: var(--muted);
  cursor: pointer;

  transition: all 0.2s ease;
}

.detail-close:hover {
  background: var(--panel-strong);
  color: var(--text);
  transform: scale(1.1);
}

/* ============================================
   Carousel Preview Styles
   ============================================ */

.carousel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.95);
  /* 移除 backdrop-filter 以提升性能 */

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-out;

  /* GPU 加速 */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.carousel-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;

  /* GPU 加速 */
  transform: translateZ(0);
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  perspective: 2000px;

  /* GPU 加速 */
  transform: translateZ(0);
}

.carousel-slide {
  position: absolute;
  width: 75%;
  max-width: 900px;
  height: 85%;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease-out;
  transform-style: preserve-3d;
  will-change: transform, opacity;

  /* GPU 加速 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.carousel-slide.is-hidden {
  transition: none;
  pointer-events: none;
}

.carousel-slide-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;

  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  /* 移除 backdrop-filter 以提升性能 */
  overflow: hidden;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 10px 30px rgba(0, 0, 0, 0.5);

  /* GPU 加速 */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.carousel-slide.is-active .carousel-slide-content {
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 1),
    0 20px 50px rgba(255, 255, 255, 0.05);
}

.carousel-image-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 0 2rem;
  overflow: hidden;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  pointer-events: none;

  /* GPU 加速和图片优化 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
}

.carousel-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 2rem 2rem 2rem;
  width: 100%;
  text-align: center;
}

.carousel-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.carousel-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.carousel-date {
  font-size: 0.9rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 50%;

  color: var(--muted);
  cursor: pointer;
  z-index: 100;

  transition: all 0.3s ease;
}

.carousel-nav:hover:not(:disabled) {
  background: var(--panel-strong);
  color: var(--text);
  transform: translateY(-50%) scale(1.1);
  border-color: var(--text);
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-nav-prev {
  left: 2rem;
}

.carousel-nav-next {
  right: 2rem;
}

/* Close Button */
.carousel-close {
  position: absolute;
  top: 2rem;
  right: 2rem;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 50%;

  color: var(--muted);
  cursor: pointer;
  z-index: 100;

  transition: all 0.2s ease;
}

.carousel-close:hover {
  background: var(--panel-strong);
  color: var(--text);
  transform: scale(1.1);
}

/* Counter */
.carousel-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);

  padding: 0.75rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  backdrop-filter: blur(12px);

  font-size: 0.95rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  z-index: 100;
}

.carousel-current {
  color: var(--text);
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .carousel-container {
    padding: 3rem 1rem;
  }

  .carousel-slide {
    width: 90%;
    height: 80%;
  }

  .carousel-slide-content {
    gap: 1rem;
    border-radius: 12px;
  }

  .carousel-image-wrapper {
    padding: 1.5rem 1.5rem 0 1.5rem;
  }

  .carousel-info {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }

  .carousel-title {
    font-size: 1.25rem;
  }

  .carousel-description {
    font-size: 0.9rem;
  }

  .carousel-nav {
    width: 44px;
    height: 44px;
  }

  .carousel-nav-prev {
    left: 1rem;
  }

  .carousel-nav-next {
    right: 1rem;
  }

  .carousel-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .carousel-counter {
    bottom: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .gallery-3d-stage {
    padding-right: 2vw;
    gap: 15px;
  }

  .photo-column {
    width: 240px;
    height: 70vh;
  }

  .photo-card {
    width: 220px;
    height: 160px;
    border-radius: 8px;
  }

  .detail-content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .detail-image {
    max-width: 90vw;
    max-height: 50vh;
  }

  .detail-info {
    max-width: 100%;
  }

  .detail-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .gallery-3d-stage {
    padding-right: 1vw;
    padding-left: 1vw;
    gap: 10px;
    justify-content: center;
  }

  .photo-column {
    width: 160px;
    height: 60vh;
  }

  .photo-card {
    width: 150px;
    height: 110px;
    border-radius: 6px;
    margin-bottom: 20px;
  }

  /* 禁用 3D 效果以提升性能 */
  .photo-card.is-hovered::before {
    opacity: 0.5;
  }

  .photo-card .shine-overlay {
    display: none;
  }

  .detail-title {
    font-size: 1.2rem;
  }

  .detail-description {
    font-size: 0.875rem;
  }
}
