/* ============================================================
   呜呜鼬的个人小窝 · v2
   设计语言：Apple 式的克制 —— 留白、层级、精修细节
   一条中轴线，所有内容居中
   ============================================================ */

/* ---------- 设计令牌 ---------- */

:root,
[data-theme="light"] {
  --bg:        #FFFFFF;
  --tint:      #F5F5F7;
  --text:      #1D1D1F;
  --second:    #6E6E73;
  --faint:     #A1A1A6;
  --line:      rgba(0, 0, 0, 0.10);
  --line-soft: rgba(0, 0, 0, 0.06);
  --link:      #0071E3;
  --chip:      rgba(0, 0, 0, 0.05);
  --veil:      rgba(255, 255, 255, 0.72);
  --glow-a:    rgba(10, 132, 255, 0.14);
  --glow-b:    rgba(191, 90, 242, 0.10);
  --glow-c:    rgba(255, 55, 95, 0.08);
  --lift:      0 2px 8px rgba(0, 0, 0, 0.04), 0 24px 60px rgba(0, 0, 0, 0.08);
  --card:      #FFFFFF;
  --shadow-s:  0 1px 2px rgba(0,0,0,0.04);
}

[data-theme="dark"] {
  --bg:        #000000;
  --tint:      #111113;
  --text:      #F5F5F7;
  --second:    #86868B;
  --faint:     #5B5B60;
  --line:      rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --link:      #2997FF;
  --chip:      rgba(255, 255, 255, 0.10);
  --veil:      rgba(0, 0, 0, 0.68);
  --glow-a:    rgba(10, 132, 255, 0.16);
  --glow-b:    rgba(191, 90, 242, 0.12);
  --glow-c:    rgba(255, 55, 95, 0.09);
  --lift:      0 18px 44px rgba(0, 0, 0, 0.5);
  --card:      #151517;
  --shadow-s:  0 1px 2px rgba(255,255,255,0.04);
}

/* ---------- 基础 ---------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
               "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
               "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 400ms ease, color 400ms ease;
}

a { color: inherit; }

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

::selection {
  background: rgba(10, 132, 255, 0.22);
}

.col {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 3rem);
}

/* ---------- 导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease;
}

.nav.stuck {
  background: var(--veil);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 60rem;
  height: 3rem;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 3rem);
}

.mark {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.links {
  display: flex;
  gap: clamp(0.875rem, 3vw, 1.5rem);
  margin-left: auto;
  font-size: 0.8125rem;
}

.links a {
  color: var(--second);
  text-decoration: none;
  transition: color 200ms ease;
}

.links a:hover { color: var(--text); }

.theme {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--chip);
  color: var(--text);
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.theme:hover { background: var(--line); }
.theme:active { transform: scale(0.94); }

.theme .ic {
  width: 1.05rem;
  height: 1.05rem;
}

/* 浅色显示月亮（点击变深色），深色显示太阳（点击变浅色） */
.theme .ic-sun  { display: none; }

[data-theme="dark"] .theme .ic-sun  { display: block; }
[data-theme="dark"] .theme .ic-moon { display: none; }

/* ---------- 开场 ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 3rem);
  padding: 2rem 0 8rem;
  overflow: hidden;
}

/* 非常克制的极光光晕，深浅色下都能融入背景 */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.85;
  animation: drift 16s ease-in-out infinite alternate;
}

.aurora::before {
  width: 46vw;
  height: 46vw;
  left: 12%;
  top: 22%;
  background: radial-gradient(closest-side, var(--glow-a), transparent 70%);
}

.aurora::after {
  width: 40vw;
  height: 40vw;
  right: 10%;
  top: 34%;
  background: radial-gradient(closest-side, var(--glow-b), transparent 70%);
  animation-delay: -8s;
}

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

.hero .col {
  position: relative;
  animation: rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--second);
}

/* ---------- 扇形渐变标题 ---------- */

.title {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.05em;
  margin: 0 0 2rem;
  line-height: 1;
  font-size: clamp(3.5rem, 18vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ch {
  display: block;
  transform-origin: 50% 120%;
  animation: float 7s ease-in-out infinite;
}

.ch:nth-child(2) { animation-delay: -2.4s; }
.ch:nth-child(3) { animation-delay: -4.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-0.05em); }
}

/* 支持 background-clip 时切成渐变透明字，否则退回纯色 */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .ch {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* 三段渐变首尾相接，整词是一条连续渐变 */
.c1 {
  background-image: linear-gradient(115deg, #0A84FF 0%, #5E5CE6 100%);
  transform: rotate(-7deg) translateY(0.06em);
}

.c2 {
  background-image: linear-gradient(115deg, #5E5CE6 0%, #BF5AF2 100%);
  transform: translateY(-0.02em);
}

.c3 {
  background-image: linear-gradient(115deg, #BF5AF2 0%, #FF375F 100%);
  transform: rotate(7deg) translateY(0.06em);
}

.sub {
  margin: 0;
  font-size: clamp(1.0625rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--second);
  letter-spacing: 0.02em;
}

/* 滚动提示 */
.cue {
  position: absolute;
  left: 50%;
  bottom: 2.75rem;
  width: 1px;
  height: 3rem;
  overflow: hidden;
  background: var(--line);
}

.cue span {
  position: absolute;
  inset: 0;
  background: var(--second);
  animation: trickle 2400ms ease-in-out infinite;
}

@keyframes trickle {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ---------- 区块 ---------- */

.section {
  padding: clamp(5rem, 13vh, 8.5rem) 0;
  scroll-margin-top: 3rem;
}

.tinted {
  background: var(--tint);
  transition: background-color 400ms ease;
}

.label {
  margin: 0 0 clamp(3rem, 8vh, 4.5rem);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--faint);
}

/* 作品内的子板块标题（如“摄影”） */
.sub-label {
  margin: clamp(4rem, 10vh, 6rem) 0 clamp(2rem, 5vh, 3rem);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--faint);
}

/* ---------- 作品 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  text-align: left;
}

.entry { min-width: 0; }

.card {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: clamp(14px, 2vw, 22px);
  background: var(--card);
  box-shadow: var(--shadow-s);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.entry:hover .card {
  transform: translateY(-6px);
  box-shadow: var(--lift);
}

.slot,
.media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.media {
  object-fit: cover;
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.entry:hover .media { transform: scale(1.03); }

.slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--faint);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  background:
    linear-gradient(135deg, var(--tint), var(--bg));
  border: 1px dashed var(--line);
  border-radius: inherit;
}

.slot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--faint);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

.index {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.entry h2 {
  margin: 0 0 0.375rem;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--second);
}

.text {
  margin: 0;
  max-width: 30rem;
  font-size: 0.9375rem;
  color: var(--second);
}

/* ---------- 关于 ---------- */

.lead {
  max-width: 36rem;
  margin: 0 auto;
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
  line-height: 1.9;
  letter-spacing: 0.005em;
}

.lead + .lead {
  margin-top: 1.5rem;
}

/* ---------- 那句话 ---------- */

.creed {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 4rem clamp(1.5rem, 6vw, 3rem);
  background: #000;
}

.creed-bg {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: brightness(1.02) saturate(1.05);
  transform: scale(1.05);
  transition: transform 0.6s ease;
  will-change: transform;
}

.creed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.0) 45%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.creed-text {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(1.75rem, 7vw, 3.5rem);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

/* ---------- 联系 ---------- */

.mail {
  display: inline-block;
  font-size: clamp(1.375rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 200ms ease, transform 200ms ease;
}

.mail:hover { opacity: 0.7; }
.mail:active { transform: scale(0.98); }

/* ---------- 页脚 ---------- */

/* ---------- 页脚 ---------- */

.foot {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--faint);
}

.foot p { margin: 0.15rem 0; }

.foot a {
  text-decoration: none;
  transition: color 200ms ease;
}

.foot a:hover { color: var(--text); }

/* 备案行，和版权行拉开一点 */
.foot .beian {
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}


/* ---------- 滚动揭示 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.shown { opacity: 1; transform: none; }

/* 网格中逐项错峰出现 */
.grid .reveal:nth-child(2) { transition-delay: 120ms; }
.grid .reveal:nth-child(3) { transition-delay: 60ms; }
.grid .reveal:nth-child(4) { transition-delay: 180ms; }

/* ---------- 窄屏 ---------- */

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 8vh, 4rem);
  }
  .creed-text { letter-spacing: 0.06em; line-height: 1.8; }
}

/* ---------- 减少动画 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .col, .cue span, .ch, .aurora::before, .aurora::after,
  .slot::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .media, .card, .creed-bg, body, .tinted, .nav { transition: none; }
  .entry:hover .media { transform: none; }
  .entry:hover .card { transform: none; }
}

/* ============================================================
   华丽视频播放器
   ============================================================ */

/* 作品卡片可点击 */
.entry[data-key] { cursor: pointer; }
.entry[data-key] .card { transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
                         box-shadow 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.entry[data-key]:hover .card { transform: translateY(-6px); box-shadow: var(--lift); }

/* 海报上的播放按钮 */
.play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 45%);
}

.play svg {
  width: 4.25rem;
  height: 4.25rem;
  padding: 1.15rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0A84FF, #5E5CE6 55%, #BF5AF2);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45),
              0 10px 34px rgba(0, 0, 0, 0.4);
  animation: playPulse 2.4s ease-out infinite;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.entry[data-key]:hover .play svg {
  transform: scale(1.14);
  animation-play-state: paused;
}

@keyframes playPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5), 0 10px 34px rgba(0, 0, 0, 0.4); }
  70%  { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0), 0 10px 34px rgba(0, 0, 0, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 10px 34px rgba(0, 0, 0, 0.4); }
}

/* 播放器弹层 */
.player {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.player.open { opacity: 1; visibility: visible; }

.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.player-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  background: #0A0A0C;
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
              0 40px 100px rgba(0, 0, 0, 0.65),
              0 0 90px rgba(90, 109, 240, 0.22);
  transform: scale(0.94) translateY(16px);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.player.open .player-panel { transform: none; }

/* 标题栏 */
.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem 0.85rem 1.35rem;
}

.player-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-close {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.player-close:hover { background: rgba(255, 255, 255, 0.22); }
.player-close:active { transform: scale(0.92); }
.player-close svg { width: 1rem; height: 1rem; }

/* 视频舞台 */
.player-stage {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* 加载动画 */
.player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease;
}

.player-loading.on { opacity: 1; }

.player-loading span {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 暂停时的中心播放键 */
.player-big {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease;
}

.player-big.on { opacity: 1; }

.player-big svg {
  width: 4.5rem;
  height: 4.5rem;
  padding: 1.2rem;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: bigPulse 2s ease-in-out infinite;
}

@keyframes bigPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* 控制栏 */
.player-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ctrl {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.ctrl:hover { background: rgba(255, 255, 255, 0.2); }
.ctrl:active { transform: scale(0.9); }
.ctrl svg { width: 1.05rem; height: 1.05rem; }

.i-pause { display: none; }
.player.playing .i-pause { display: block; }
.player.playing .i-play { display: none; }

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

/* 进度条 */
.prog {
  position: relative;
  flex: 1;
  height: 1.1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.prog-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.prog-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #0A84FF, #5E5CE6, #BF5AF2, #FF375F);
  box-shadow: 0 0 12px rgba(191, 90, 242, 0.65);
}

.prog-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 200ms ease;
}

.prog:hover .prog-thumb,
.prog.drag .prog-thumb { transform: translate(-50%, -50%) scale(1); }

.prog-tip {
  position: absolute;
  bottom: 1.5rem;
  transform: translateX(-50%);
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.prog:hover .prog-tip { opacity: 1; }

.time {
  flex: none;
  min-width: 6.4rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}

/* 全屏 */
.player-panel:fullscreen {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.player-panel:fullscreen .player-stage {
  flex: 1;
  aspect-ratio: auto;
}

/* 提示条 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2.5rem;
  z-index: 200;
  transform: translateX(-50%) translateY(16px);
  padding: 0.6rem 1.2rem;
  border-radius: 14px;
  background: rgba(28, 28, 32, 0.94);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 窄屏播放器 */
@media (max-width: 720px) {
  .play svg { width: 3.4rem; height: 3.4rem; padding: 0.9rem; }
  .player { padding: 0.5rem; }
  .player-panel { border-radius: 14px; }
  .player-head { padding: 0.7rem 0.9rem; }
  .player-bar { padding: 0.6rem 0.7rem; gap: 0.5rem; }
  .time { min-width: 5.4rem; font-size: 0.72rem; }
  .ctrl { width: 2rem; height: 2rem; }
  .player-big svg { width: 3.6rem; height: 3.6rem; padding: 1rem; }
}

/* 减少动画时关闭播放器动画 */
@media (prefers-reduced-motion: reduce) {
  .play svg, .player-big svg { animation: none; }
  .player, .player-panel { transition: none; }
}

/* ============================================================
   摄影作品（作品区域内的摄影板块 · 缩略图网格）
   ============================================================ */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  text-align: left;
}

.photo {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: clamp(14px, 2vw, 22px);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-s);
  cursor: pointer;
  transition: box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.photo:hover { box-shadow: var(--lift); }

/* 统一画幅：和上方视频卡片一致的 16:9，无论原图多大都裁进同一框内 */
.photo-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.photo:hover .photo-media { transform: scale(1.05); }

.photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.6rem 0.7rem 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

/* ============================================================
   摄影图片查看器（点击缩略图弹出，可左右滑动浏览）
   ============================================================ */

.iviewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.iviewer.open { opacity: 1; visibility: visible; }

.iviewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.iviewer-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: clamp(8px, 1.5vw, 14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.iviewer.open .iviewer-img { transform: none; }

.iviewer-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  z-index: 1;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.iviewer-count {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.iviewer-close {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.iviewer-close:hover { background: rgba(255, 255, 255, 0.24); }
.iviewer-close:active { transform: scale(0.92); }
.iviewer-close svg { width: 1.1rem; height: 1.1rem; }

.iviewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.iviewer-nav:hover { background: rgba(255, 255, 255, 0.24); }
.iviewer-nav:active { transform: translateY(-50%) scale(0.92); }
.iviewer-nav svg { width: 1.3rem; height: 1.3rem; }

.iviewer-nav.prev { left: 0.8rem; }
.iviewer-nav.next { right: 0.8rem; }

@media (max-width: 720px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iviewer { padding: 0.4rem; }
  .iviewer-close { top: 0.6rem; left: 0.6rem; width: 2.1rem; height: 2.1rem; }
  .iviewer-nav { width: 2.3rem; height: 2.3rem; }
  .iviewer-nav svg { width: 1.1rem; height: 1.1rem; }
  .iviewer-nav.prev { left: 0.5rem; }
  .iviewer-nav.next { right: 0.5rem; }
  .iviewer-count { top: 0.8rem; right: 0.9rem; }
  .iviewer-caption { bottom: 1rem; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .photo, .photo-media, .iviewer, .iviewer-img { transition: none; }
  .photo:hover .photo-media { transform: none; }
}