/* ==========================================================
 *  AIGC 漫剧创作者 · 作品集 H5
 *  双主题：theme-rain 雨窗实拍（冷雨青灰） / theme-sky 天蓝玻璃水流
 *  布局：移动端竖版单列 ｜ 桌面端宽屏 + 网格
 *  改配色只需改 body.theme-xxx 里的变量
 * ========================================================== */

:root {
  --ink:   #111111;
  --ink-2: #555555;
  --ink-3: #8A99A8;

  --radius: 22px;
  --radius-sm: 14px;
  --page-pad: 20px;

  --font-display: 'Noto Sans SC', 'Source Han Sans CN', 'ZCOOL QingKe HuangYou',
                  'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans CN', 'PingFang SC',
               'Microsoft YaHei', sans-serif;
}

/* ---------- 主题 A：雨窗实拍（默认）—— 低饱和冷雨青灰 ---------- */
body.theme-rain {
  --sky-0: #22303E;
  --sky-1: #2C3B4C;
  --sky-2: #3E556C;
  --blue:  #6E96B8;
  --blue-deep: #33546F;
  --blue-mid: #7FA0BF;
  --cyan:  #A9C9DE;
  --violet:#8A9BB5;

  /* 中性色调族（雨窗主题偏灰、去饱和） */
  --tint: 170, 192, 212;          /* 边框/分隔线基色 */
  --shadow-tint: 110, 150, 184;   /* 强调色阴影基色 */
  --accent-soft:  #AFC6D8;        /* 次级强调文字 */
  --accent-line:  #9DB6CB;        /* 箭头/图标强调 */
  --accent-chip:  #C2D6E4;        /* 时间胶囊等浅强调 */
  --text-soft-1:  #D6E4EE;
  --text-soft-2:  #C6D8E6;
  --text-soft-3:  #D2E0EB;
  --nav-text:     #E4EEF6;
  --nav-text-2:   #E2EDF6;

  --glass-bg: rgba(24, 38, 54, 0.48);
  --glass-border: rgba(178, 200, 220, 0.26);
  --glass-shadow: 0 18px 48px rgba(6, 14, 26, 0.44);
  --glass-blur: blur(18px) saturate(120%);

  --on-dark:   #F3F8FC;
  --on-dark-2: rgba(220, 233, 244, 0.86);
  --on-dark-3: rgba(194, 212, 228, 0.66);
  --hairline:  rgba(180, 202, 224, 0.20);

  /* 装饰渐变 */
  --grad-cta:     linear-gradient(100deg, #C2D6E6 0%, #E6EEF4 50%, #AECBDE 100%);
  --grad-cta-hov: linear-gradient(100deg, #CFDEE9 0%, #EEF3F7 50%, #BCD4E4 100%);
  --grad-title:   linear-gradient(90deg, #9FBCD3, #C6D6E2);
  --grad-hero-en: linear-gradient(100deg, #A5C2D8 0%, #D0DDE6 55%, #C2CEDB 100%);
  --grad-avatar:  linear-gradient(150deg, #D9E3EB, #C3D5E0);
  --grad-cover:   linear-gradient(150deg, #CFDDE7, #BCCFDC);

  /* 分类徽章（压暗版，贴合雨窗氛围） */
  --badge-mv:  linear-gradient(120deg, #5C6B94, #8E97BC);
  --badge-sb:  linear-gradient(120deg, #3E7D86, #6FAEB4);
  --badge-cat7: linear-gradient(120deg, #8E4A63, #C97A93);
  --badge-cat6: linear-gradient(120deg, #56548C, #8B84B8);
  --badge-comic: linear-gradient(120deg, #3E7066, #6BA79A);
  --badge-film: linear-gradient(120deg, var(--blue-deep), #6E82A0);
  --badge-comfyui: linear-gradient(120deg, #7A4E22, #C08B4E);
}

/* ---------- 主题 B：天蓝玻璃水流（最初版本）—— 高饱和天蓝 ---------- */
body.theme-sky {
  --sky-0: #F4FBFF;
  --sky-1: #E6F7FF;
  --sky-2: #CDEFFF;
  --blue:  #1890FF;
  --blue-deep: #0A5FB4;
  --blue-mid: #37A6FF;
  --cyan:  #35E0D0;
  --violet:#8B7BFF;

  --tint: 190, 216, 244;
  --shadow-tint: 24, 144, 255;
  --accent-soft:  #A8D4FF;
  --accent-line:  #9ECFFF;
  --accent-chip:  #BEE0FF;
  --text-soft-1:  #D6E7F8;
  --text-soft-2:  #CFE6FA;
  --text-soft-3:  #DCEBFA;
  --nav-text:     #E8F1FB;
  --nav-text-2:   #E6F1FC;

  --glass-bg: rgba(16, 42, 74, 0.46);
  --glass-border: rgba(188, 222, 250, 0.30);
  --glass-shadow: 0 18px 48px rgba(8, 24, 46, 0.38);
  --glass-blur: blur(18px) saturate(150%);

  --on-dark:   #F6FBFF;
  --on-dark-2: rgba(228, 242, 254, 0.86);
  --on-dark-3: rgba(202, 226, 248, 0.66);
  --hairline:  rgba(190, 222, 250, 0.20);

  --grad-cta:     linear-gradient(100deg, #BFE0FF 0%, #E8F4FF 50%, #A9D2F7 100%);
  --grad-cta-hov: linear-gradient(100deg, #D3EAFF 0%, #F5FAFF 50%, #C0E0FA 100%);
  --grad-title:   linear-gradient(90deg, #7FB8FF, #A9E6E0);
  --grad-hero-en: linear-gradient(100deg, #8FCBFF 0%, #B5F2E8 55%, #CFC4FF 100%);
  --grad-avatar:  linear-gradient(150deg, #DFF3FF, #BFE6FF);
  --grad-cover:   linear-gradient(150deg, #D8F0FF, #BFE3FF);

  --badge-mv:  linear-gradient(120deg, #7B6BFF, #A48CFF);
  --badge-sb:  linear-gradient(120deg, #12C2B3, #45E6D5);
  --badge-cat7: linear-gradient(120deg, #C2185B, #FF6E9C);
  --badge-cat6: linear-gradient(120deg, #6A3DB8, #B07CFF);
  --badge-comic: linear-gradient(120deg, #0E8F7E, #2FC7A8);
  --badge-film: linear-gradient(120deg, #0A5FB4, #7B6BFF);
  --badge-comfyui: linear-gradient(120deg, #C26A15, #FFB35C);
}

/* ---------- 主题 C：星空（墨夜底 / 银河青 / 鎏金） ---------- */
body.theme-star {
  --sky-0: #02040a;
  --sky-1: #050a14;
  --sky-2: #0b1424;
  --blue:  #7fd8ff;
  --blue-deep: #4aa8e6;
  --blue-mid: #9fe4ff;
  --cyan:  #8ff0d6;
  --violet:#7f8bff;

  --tint: 127, 178, 235;
  --shadow-tint: 90, 150, 220;
  --accent-soft:  #9fd9ff;
  --accent-line:  #8fe8ff;
  --accent-chip:  #bfe6ff;
  --text-soft-1:  #D6E7F8;
  --text-soft-2:  #CFE6FA;
  --text-soft-3:  #DCEBFA;
  --nav-text:     #E8F1FB;
  --nav-text-2:   #E6F1FC;

  --glass-bg: rgba(11, 18, 31, 0.55);
  --glass-border: rgba(140, 200, 255, 0.22);
  --glass-shadow: 0 18px 48px rgba(2, 6, 14, 0.55);
  --glass-blur: blur(18px) saturate(130%);

  --on-dark:   #e9f2fc;
  --on-dark-2: rgba(200, 222, 244, 0.86);
  --on-dark-3: rgba(150, 180, 210, 0.66);
  --hairline:  rgba(140, 200, 255, 0.16);

  --grad-cta:     linear-gradient(100deg, #9FD9FF 0%, #DDF0FF 50%, #8FE8D8 100%);
  --grad-cta-hov: linear-gradient(100deg, #B8E6FF 0%, #F0F8FF 50%, #A6F2E4 100%);
  --grad-title:   linear-gradient(90deg, #7FD8FF, #8FF0D6);
  --grad-hero-en: linear-gradient(100deg, #8FDCFF 0%, #B5F2E8 55%, #CFC4FF 100%);
  --grad-avatar:  linear-gradient(150deg, #27405E, #14263E);
  --grad-cover:   linear-gradient(150deg, #22364F, #101D30);

  --badge-mv:  linear-gradient(120deg, #6A5BD6, #9C8CFF);
  --badge-sb:  linear-gradient(120deg, #12A6A0, #45E6D5);
  --badge-cat7: linear-gradient(120deg, #A81B52, #FF6E9C);
  --badge-cat6: linear-gradient(120deg, #5B38A8, #B07CFF);
  --badge-comic: linear-gradient(120deg, #0E7F74, #2FC7A8);
  --badge-film: linear-gradient(120deg, #2E6FA8, #7F8BFF);
  --badge-comfyui: linear-gradient(120deg, #B4621E, #E8A95C);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky-1);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ============ 背景：三主题层（视频 / 天蓝流体+雨珠 / 星空） ============ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #1B2530 0%, #2A3948 34%, #3E5266 62%, #56697C 100%);
}
/* 雨窗实拍：冷灰蓝底 */
body.theme-rain .bg-layer {
  background: linear-gradient(180deg, #1B2530 0%, #2A3948 34%, #3E5266 62%, #56697C 100%);
}
/* 天蓝雨窗：与线上初版完全一致的天空渐变 */
body.theme-sky .bg-layer {
  background:
    radial-gradient(110% 70% at 12% 0%, #FFFFFF 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #F4FBFF 0%, #E6F7FF 38%, #DDF3FF 72%, #EAF9FF 100%);
}
/* 星空：墨夜底 */
body.theme-star .bg-layer { background: #02040a; }

/* —— 雨窗视频层（theme-rain 显示） —— */
.bg-video, .bg-veil, .bg-video-train, #cloudCanvas { display: none; }
body.theme-rain .bg-video {
  display: block;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.94) saturate(.96);
}
/* 雨窗主题：列车驶过段（与原背景同机位，opacity dissolve 衔接几乎无痕） */
body.theme-rain .bg-video-train {
  display: block;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .95s ease;
  pointer-events: none;
  filter: brightness(.94) saturate(.96);
}
body.theme-rain .bg-video-train.on { opacity: 1; }
/* 雨窗主题：动态云层（程序化云团在天空区缓慢漂移，screen 提亮 + 下缘渐隐入天际线） */
body.theme-rain #cloudCanvas {
  display: block;
  position: absolute; left: 0; top: 0;
  width: 100%; height: 54%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 55%, transparent 100%);
}
/* 冷灰蓝暗色纱幕：压住视频亮度，统一色调 */
body.theme-rain .bg-veil {
  display: block;
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14,22,32,.34) 0%, rgba(14,22,32,.10) 30%, rgba(16,26,38,.16) 68%, rgba(10,18,28,.42) 100%),
    radial-gradient(120% 90% at 50% 30%, rgba(20,34,50,0) 55%, rgba(12,20,30,.28) 100%);
}

/* —— 天蓝雨窗层（theme-sky 显示）：流体光斑 + 雨打玻璃 —— */
.bg-blob, #rainCanvas, .bg-grain { display: none; }
body.theme-sky .bg-blob {
  display: block;
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
}
body.theme-sky .blob-1 {
  width: 46vw; height: 46vw; min-width: 320px; min-height: 320px;
  background: radial-gradient(circle at 35% 35%, rgba(24,144,255,.55), rgba(24,144,255,0) 70%);
  top: -8vw; left: -6vw; animation: float1 22s ease-in-out infinite;
}
body.theme-sky .blob-2 {
  width: 38vw; height: 38vw; min-width: 280px; min-height: 280px;
  background: radial-gradient(circle at 50% 50%, rgba(53,224,208,.55), rgba(53,224,208,0) 70%);
  top: 34%; right: -8vw; animation: float2 26s ease-in-out infinite;
}
body.theme-sky .blob-3 {
  width: 34vw; height: 34vw; min-width: 260px; min-height: 260px;
  background: radial-gradient(circle at 50% 50%, rgba(139,123,255,.45), rgba(139,123,255,0) 70%);
  bottom: 4%; left: -6vw; animation: float3 30s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,70px) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,60px) scale(1.08); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,-60px) scale(1.15); } }

body.theme-sky #rainCanvas {
  display: block;
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
body.theme-sky .bg-grain {
  display: block;
  position: absolute; inset: 0; opacity: .32; pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px),
    radial-gradient(rgba(24,144,255,.10) 1px, transparent 1px);
  background-size: 110px 110px, 47px 47px;
  background-position: 0 0, 20px 20px;
}

/* —— 星空层（theme-star 显示）：银河 Canvas + 暗角 + 颗粒 —— */
#skyCanvas, .bg-star-vignette, .bg-star-grain { display: none; }
body.theme-star #skyCanvas {
  display: block;
  position: absolute; inset: 0; width: 100%; height: 100%;
}
body.theme-star .bg-star-vignette {
  display: block;
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(20,45,90,.30) 0%, rgba(2,4,10,0) 62%),
    radial-gradient(100% 100% at 50% 50%, rgba(2,4,10,0) 42%, rgba(2,4,10,.72) 100%);
}
body.theme-star .bg-star-grain {
  display: block;
  position: absolute; inset: 0; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— 后台自定义背景（图片 / 视频），优先级高于三主题 —— */
.bg-custom { display: none; }
body.has-custom-bg .bg-video,
body.has-custom-bg .bg-video-train,
body.has-custom-bg #cloudCanvas,
body.has-custom-bg .bg-blob,
body.has-custom-bg #rainCanvas,
body.has-custom-bg #skyCanvas,
body.has-custom-bg .bg-star-vignette { display: none !important; }
body.has-custom-bg.bg-type-img .bg-custom.is-img {
  display: block;
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
body.has-custom-bg.bg-type-video .bg-custom.is-video {
  display: block;
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
/* 自定义背景上的可读性纱幕（无论原图多亮，都压出一层暗调保证文字可读） */
body.has-custom-bg .bg-veil {
  display: block;
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,14,24,.34) 0%, rgba(8,14,24,.10) 30%, rgba(8,14,24,.18) 68%, rgba(6,11,20,.44) 100%),
    radial-gradient(120% 90% at 50% 30%, rgba(14,22,34,0) 55%, rgba(8,14,24,.30) 100%);
}

/* ============ 背景音乐播放器（多曲播放列表） ============ */
.bgm-player {
  position: fixed;
  right: 14px;
  top: calc(62px + env(safe-area-inset-top));
  z-index: 35;
  display: flex; align-items: center; gap: 10px;
}
/* 无曲目时由 JS 设置 hidden，确保真正隐藏（作者样式 display:flex 会覆盖 UA 的 [hidden]） */
.bgm-player[hidden] { display: none; }
.bgm-toggle {
  position: relative;
  width: 44px; height: 44px;
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--nav-text);
  background: rgba(16, 23, 35, 0.42);
  border: 1px solid rgba(var(--tint), 0.22);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 34px rgba(8, 14, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform .18s, background .25s, border-color .25s;
}
.bgm-toggle:hover { border-color: rgba(var(--tint), 0.40); }
.bgm-toggle:active { transform: scale(.94); }
.bgm-toggle .bgm-ico { width: 18px; height: 18px; display: none; }
.bgm-toggle .bgm-ico svg { width: 100%; height: 100%; }
/* 未播放：显示「播放」三角；播放中：显示「暂停」双竖条 */
.bgm-toggle:not(.playing) .bgm-ico-play { display: inline-flex; }
.bgm-toggle.playing .bgm-ico-pause { display: inline-flex; }

/* 播放中跳动的音波 */
.bgm-wave {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: none; align-items: center; gap: 2px; height: 14px; pointer-events: none;
}
.bgm-toggle.playing .bgm-wave { display: inline-flex; }
.bgm-wave i {
  width: 2px; height: 100%; border-radius: 2px; background: var(--accent-line);
  animation: bgmWave 0.9s ease-in-out infinite;
}
.bgm-wave i:nth-child(2) { animation-delay: .15s; }
.bgm-wave i:nth-child(3) { animation-delay: .3s; }
.bgm-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes bgmWave { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* 悬停 / 聚焦展开的控制面板（位于按钮左侧，避免溢出右边） */
.bgm-panel {
  position: absolute;
  right: 54px; top: 50%;
  display: flex; flex-direction: column; gap: 7px;
  width: 224px; padding: 11px 13px;
  color: var(--nav-text);
  background: rgba(16, 23, 35, 0.55);
  border: 1px solid rgba(var(--tint), 0.22);
  border-radius: 14px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 34px rgba(8, 14, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 0; transform: translateY(-50%) translateY(6px) scale(.98);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.bgm-player:hover .bgm-panel,
.bgm-player:focus-within .bgm-panel { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.bgm-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bgm-title {
  font-size: 12.5px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bgm-time { flex: none; font-size: 11px; color: rgba(var(--tint), .85); font-variant-numeric: tabular-nums; }
.bgm-seek {
  position: relative; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); cursor: pointer; touch-action: none;
}
.bgm-seek-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--tint), 1), var(--accent-line));
}
.bgm-seek-knob {
  position: absolute; top: 50%; left: 0%;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  transform: translate(-50%, -50%); pointer-events: none;
}
.bgm-ctrls { display: flex; gap: 8px; justify-content: center; }
.bgm-nav {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(var(--tint), .25);
  background: rgba(255, 255, 255, .08); color: var(--nav-text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, transform .15s;
}
.bgm-nav:hover { background: rgba(255, 255, 255, .18); }
.bgm-nav:active { transform: scale(.92); }
.bgm-nav svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .bgm-panel { width: 70vw; max-width: 260px; } }

/* 后台：背景音乐播放列表 */
.bgm-track-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 2px; }
.bgm-track-list .dim { margin: 0; }
.bgm-track {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(20, 30, 45, .05); border: 1px solid rgba(20, 30, 45, .12);
}
.bt-idx { flex: none; width: 18px; text-align: center; font-weight: 600; opacity: .7; }
.bt-name { flex: 1 1 auto; min-width: 0; }
.bt-file { flex: none; max-width: 36%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8a99a8; font-size: 12px; }
.bgm-add-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.bgm-add-row .dim { font-size: 12px; }

/* 玻璃整体反光斜带（雨系主题共用，强化「有一层玻璃」） */
.bg-glass-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg,
    rgba(255,255,255,.12) 0%,
    rgba(255,255,255,.03) 26%,
    rgba(255,255,255,0) 44%,
    rgba(255,255,255,.07) 62%,
    rgba(255,255,255,0) 100%);
}
/* 星空主题不需要玻璃反光 */
body.theme-star .bg-glass-sheen { display: none; }

/* —— 天蓝雨窗：背景是亮色天空，字体颜色随主题切换（亮底深字 / 暗底浅字）——
   只影响裸在背景上的文字；玻璃卡片内部维持深玻璃+浅字，不受影响 —— */
body.theme-sky .hero-eyebrow {
  color: #0A5FB4;
  text-shadow: 0 2px 14px rgba(255,255,255,.75), 0 1px 2px rgba(255,255,255,.9);
}
body.theme-sky .hero-title {
  color: #0A2E4A;
  text-shadow: 0 4px 26px rgba(255,255,255,.9), 0 1px 2px rgba(255,255,255,.95);
  filter: none;
}
body.theme-sky .hero-title .highlight {
  background: linear-gradient(100deg, #0A5FB4 0%, #0E8C86 55%, #5B4BCF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0;
  filter: none;
}
body.theme-sky .hero-en {
  color: rgba(12, 48, 78, .92);
  text-shadow: 0 2px 14px rgba(255,255,255,.8);
}
body.theme-sky .section-title {
  color: #0B3556;
  text-shadow: 0 2px 18px rgba(255,255,255,.8), 0 1px 2px rgba(255,255,255,.9);
}
body.theme-sky .section-title::after { background: linear-gradient(90deg, #0A5FB4, #0E9F92); }
body.theme-sky .section-en { color: rgba(11, 53, 86, .60); }
body.theme-sky .footer { color: rgba(11, 53, 86, .58); text-shadow: 0 1px 10px rgba(255,255,255,.6); }

/* ============ 主题切换按钮 ============ */
.theme-toggle {
  position: fixed;
  right: 14px;
  top: calc(14px + env(safe-area-inset-top));
  z-index: 35;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  color: var(--nav-text);
  background: rgba(16, 23, 35, 0.42);
  border: 1px solid rgba(var(--tint), 0.22);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 34px rgba(8, 14, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform .18s, background .25s, border-color .25s;
}
.theme-toggle:hover { border-color: rgba(var(--tint), 0.40); }
.theme-toggle:active { transform: scale(.95); }
.theme-toggle .tt-ico {
  width: 14px; height: 14px; display: inline-flex;
}
.theme-toggle .tt-ico svg {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

@media (max-width: 720px) {
  .theme-toggle { right: 10px; padding: 8px 11px; font-size: 11px; }
}

/* ============ 顶部快捷跳转按钮 ============ */
.top-nav {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%);
  z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(16, 23, 35, 0.42);
  border: 1px solid rgba(var(--tint),0.20);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 34px rgba(8, 14, 24, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  max-width: calc(100vw - 20px);
}

.nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  color: var(--nav-text); text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .18s, box-shadow .25s;
}
.nav-btn .nav-ico { display: inline-flex; width: 15px; height: 15px; }
.nav-btn .nav-ico svg {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-btn:hover {
  color: #FFFFFF;
  background: rgba(232, 240, 246, 0.14);
  border-color: rgba(var(--tint),0.28);
}
.nav-btn:active { transform: scale(.96); }

.nav-btn-cta {
  color: #08131F;
  background: var(--grad-cta);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 22px rgba(150, 176, 200, 0.34);
  font-weight: 700;
}
.nav-btn-cta:hover {
  color: #08131F;
  background: var(--grad-cta-hov);
  border-color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 720px) {
  .top-nav { gap: 4px; padding: 5px; }
  .nav-btn { padding: 9px 12px; font-size: 12px; gap: 6px; }
  .nav-btn .nav-ico { display: none; }
}

/* ============ 容器 ============ */
.app {
  position: relative; z-index: 2;
  max-width: 1720px; margin: 0 auto;
  padding: 0 var(--page-pad) calc(110px + env(safe-area-inset-bottom));
}
.section { padding: 54px 0 10px; position: relative; }

.section-head { margin-bottom: 22px; }
.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 30px; letter-spacing: 2px; line-height: 1.1;
  color: #F2F8FF;
  text-shadow: 0 2px 22px rgba(6, 12, 22, 0.6);
  position: relative; display: inline-block;
}
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: -9px;
  width: 46px; height: 6px; border-radius: 6px;
  background: var(--grad-title);
}
.section-en { margin-top: 15px; font-size: 11px; letter-spacing: 5px; color: rgba(196, 212, 226, 0.66); font-weight: 500; }

/* ============ 玻璃卡片 ============ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.14);
  position: relative; overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; top: -40%; left: -20%;
  width: 150%; height: 90%;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0));
  transform: rotate(-12deg); pointer-events: none;
}
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(155,180,202,.42), rgba(255,255,255,.06) 40%, rgba(150,220,215,.34));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ============ 首屏 Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 90px;
}
/* 星空主题 · 首屏人物实景引擎画布（人物衣袍飘动 + 地球地平线）
   通栏铺满整个视口宽：hero 虽在限宽 .app 容器内，但画布用 left:50% + margin-left:-50vw
   破格到视口两边，左右没有截线，星光与页面星空无缝淡入 */
#heroScene {
  display: none;
  position: absolute; top: 0; bottom: 0;
  left: 50%; margin-left: -50vw;
  width: 100vw; height: 100%;
  z-index: 1; pointer-events: none;
}
body.theme-star #heroScene { display: block; }
.hero-inner { position: relative; z-index: 3; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: 6px; font-weight: 700; margin-bottom: 18px;
  color: var(--accent-soft);
  text-shadow: 0 2px 18px rgba(6,14,26,.75);
}
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 12.5vw, 56px);
  line-height: 1.04; letter-spacing: 1px; color: #F4FAFF;
  text-shadow: 0 4px 30px rgba(4,10,20,.80), 0 1px 3px rgba(4,10,20,.6);
  /* 投影放在父级：filter 直接作用于 background-clip:text 元素时，
     Chrome 会把深色投影穿透到字形上方，导致渐变字发暗 */
  filter: drop-shadow(0 4px 26px rgba(6,14,28,.85)) drop-shadow(0 0 18px rgba(96,134,168,.30));
}
.hero-title .line { display: block; }
.hero-title .highlight {
  background: var(--grad-hero-en);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* 必须清掉继承来的 text-shadow：透明字 + clip:text 时阴影会穿透字形盖在渐变上 */
  text-shadow: none;
}
/* 雨窗实拍主题：实拍雨窗背景太"碎"，渐变色字（漫剧/短剧等）容易糊进背景 ——
   加一圈浅色描边 + 暗色描影，只描边缘不改字色，保留雨天氛围 */
body.theme-rain .hero-title .highlight {
  -webkit-text-stroke: 1px rgba(236, 246, 255, 0.42);
  filter: drop-shadow(0 2px 10px rgba(4, 12, 24, 0.78)) drop-shadow(0 0 3px rgba(4, 12, 24, 0.55));
}
.hero-en {
  margin-top: 20px; font-size: 15px; letter-spacing: 3px; font-weight: 500;
  color: var(--on-dark-2);
  text-shadow: 0 2px 18px rgba(6,14,26,.8);
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-tags .tag {
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--nav-text-2); background: rgba(18, 28, 44, 0.44);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(170, 192, 212,0.28);
  box-shadow: 0 6px 22px rgba(6, 12, 22, 0.34), inset 0 1px 0 rgba(255,255,255,.12);
  position: relative;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3;
  /* 底部城市楼群较高时提示会糊在楼上，加一层胶囊底衬保证可读 */
  padding: 11px 24px 13px; border-radius: 20px;
  background: rgba(12, 36, 66, .40);
  border: 1px solid rgba(172, 192, 212,.18);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hint-text {
  font-size: 12px; letter-spacing: 3px; color: var(--on-dark);
  text-shadow: 0 2px 14px rgba(6,12,22,.9), 0 1px 3px rgba(6,12,22,.8);
}
.hint-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--accent-line); border-bottom: 2px solid var(--accent-line);
  filter: drop-shadow(0 2px 10px rgba(6,12,22,.8));
  transform: rotate(45deg); animation: hintMove 1.8s ease-in-out infinite;
}
@keyframes hintMove {
  0%,100% { transform: rotate(45deg) translate(-3px,-3px); opacity: .5; }
  50%     { transform: rotate(45deg) translate(4px,4px); opacity: 1; }
}

/* ============ 关于我 ============ */
.about-card { padding: 22px; }
.about-top { display: flex; gap: 16px; align-items: flex-start; position: relative; z-index: 2; }
.avatar-wrap {
  flex: 0 0 92px; width: 92px; height: 92px; border-radius: 26px; overflow: hidden; position: relative;
  background: var(--grad-avatar);
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 8px 22px rgba(var(--shadow-tint),.22);
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.avatar-wrap::after {
  content: ''; position: absolute; top: 8px; left: 10px; width: 26px; height: 18px;
  border-radius: 50%; background: rgba(255,255,255,.75); filter: blur(2px);
}
.about-name { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: 1px; color: var(--on-dark); }
.about-identity { margin-top: 7px; font-size: 12.5px; line-height: 1.6; color: var(--accent-soft); font-weight: 500; }
.drop-deco {
  position: absolute; right: -18px; bottom: -26px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(var(--shadow-tint),.22) 60%, rgba(var(--shadow-tint),0) 72%);
  filter: blur(1px); pointer-events: none; animation: dropBreath 6s ease-in-out infinite;
}
@keyframes dropBreath { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.05); } }

.about-side { position: relative; z-index: 2; }
.about-block { margin-top: 20px; }
.block-label {
  font-size: 11px; letter-spacing: 4px; color: var(--on-dark-3); font-weight: 700;
  margin-bottom: 9px; display: flex; align-items: center; gap: 8px;
}
.block-label::before { content: ''; width: 14px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px; padding: 6px 12px; border-radius: 10px;
  background: rgba(150,176,200,.13); color: var(--text-soft-2);
  border: 1px solid rgba(155,180,202,.24); font-weight: 500; position: relative;
}
.chip.skill { background: rgba(var(--tint),.14); color: var(--text-soft-3); border: 1px solid rgba(155,180,202,.30); }
.about-bio { font-size: 13.5px; line-height: 1.95; color: var(--on-dark-2); letter-spacing: .3px; }

/* ============ 简历区（个人信息 / 经历 / 自我评价） ============ */
.resume-card { padding: 22px; margin-top: 18px; }
.rs-block + .rs-block { margin-top: 26px; }
.rs-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--accent-soft);
  margin-bottom: 14px;
}
.rs-label::before { content: ''; width: 14px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

.rs-profile { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rs-pf {
  display: flex; gap: 12px; align-items: baseline;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(var(--tint),.10); border: 1px solid rgba(var(--tint),.20);
}
.rs-pf-k { flex: none; min-width: 68px; font-size: 12px; font-weight: 700; color: var(--accent-line); letter-spacing: 1px; }
.rs-pf-v { font-size: 13px; line-height: 1.7; color: var(--on-dark-2); word-break: break-all; }

.rs-timeline { display: flex; flex-direction: column; gap: 18px; }
.rs-item {
  position: relative; padding: 16px 18px 16px 22px; border-radius: 16px;
  background: rgba(var(--tint),.08); border: 1px solid rgba(var(--tint),.18);
}
.rs-item::before {
  content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--blue), var(--cyan));
}
.rs-item-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.rs-item-t { font-family: var(--font-display); font-weight: 900; font-size: 16px; letter-spacing: .5px; color: var(--on-dark); }
.rs-period { font-size: 11.5px; font-weight: 700; color: var(--accent-chip); padding: 3px 9px; border-radius: 8px; background: rgba(140,170,196,.18); }
.rs-org { margin-top: 6px; font-size: 12.5px; color: var(--on-dark-2); letter-spacing: .3px; }
.rs-items { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.rs-items li { font-size: 13px; line-height: 1.85; color: var(--on-dark-2); }
.rs-items li::marker { color: var(--blue); }

.rs-media { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.rs-audio, .rs-video { display: flex; flex-direction: column; gap: 6px; }
.rs-mk { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent-soft); }
.rs-media audio { width: 100%; }
.rs-media video { width: 100%; max-height: 320px; border-radius: 12px; background: #0B2233; }

/* 多视频（带名称） */
.rs-videos { margin-top: 14px; display: grid; gap: 14px; grid-template-columns: 1fr; }
.rs-vcard {
  border-radius: 14px; padding: 10px 10px 12px;
  background: rgba(var(--tint),.10);
  border: 1px solid rgba(var(--tint),.20);
  box-shadow: 0 8px 22px rgba(6,12,22,.26);
  overflow: hidden;
}
.rs-vname {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  color: var(--accent-soft); margin-bottom: 8px; padding-left: 2px;
}
.rs-vdot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--blue-mid), #6E96B8);
  box-shadow: 0 0 0 3px rgba(var(--shadow-tint),.16);
}
.rs-vcard video { display: block; width: 100%; max-height: 300px; border-radius: 10px; background: #0B2233; }

/* 多图片 */
.rs-imgs { margin-top: 14px; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.rs-img { margin: 0; cursor: zoom-in; }
.rs-img img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px; background: #22303F;
  border: 1px solid rgba(var(--tint),.20);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.rs-img:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(var(--shadow-tint),.18); }
.rs-img figcaption {
  margin-top: 6px; font-size: 11.5px; color: var(--on-dark-3);
  letter-spacing: .4px; text-align: center;
}

/* 作品弹窗内的多视频 / 多图片 */
.wx-videos { margin-top: 18px; }
.wx-imgs { margin-top: 16px; }
.wx-main-name { margin-bottom: 10px; font-size: 13px; }
.rs-vempty {
  padding: 18px 14px; border-radius: 10px; font-size: 12px; color: var(--on-dark-3);
  background: rgba(150,176,200,.07); border: 1px dashed rgba(155,180,202,.30); text-align: center;
}

/* 图片全屏放大 */
.lightbox {
  position: fixed; inset: 0; z-index: 3000; display: none;
  align-items: center; justify-content: center; padding: 5vh 5vw;
  background: rgba(6,28,44,.82); backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; animation: lbIn .28s ease; }
@keyframes lbIn { from { opacity: 0 } to { opacity: 1 } }
.lb-inner { position: relative; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-inner img { max-width: 92vw; max-height: 82vh; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.45); background: #fff; }
.lb-cap { color: rgba(255,255,255,.92); font-size: 13px; letter-spacing: .6px; }
.lb-x {
  position: absolute; top: -14px; right: -14px;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(226,238,250,.94); color: var(--blue-deep); font-size: 20px; line-height: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}

.rs-review { font-size: 13.5px; line-height: 2; color: var(--on-dark-2); letter-spacing: .3px; }

/* ============ 分类标签 ============ */
.cat-bar {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px;
  margin: 0 calc(-1 * var(--page-pad)) 8px;
  padding-left: var(--page-pad); padding-right: var(--page-pad);
  scrollbar-width: none; position: relative; z-index: 3;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-item {
  flex: 0 0 auto; padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--text-soft-1); background: rgba(20,30,46,.46);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--tint),.24); box-shadow: 0 6px 20px rgba(6,12,22,.30);
  transition: color .3s, background .35s, box-shadow .35s, transform .3s;
}
.cat-item.active {
  color: #fff; background: linear-gradient(120deg, var(--blue), var(--blue-mid) 60%, var(--cyan));
  border-color: rgba(255,255,255,.55); box-shadow: 0 8px 22px rgba(var(--shadow-tint),.38); font-weight: 700;
}

/* ============ 作品卡片 ============ */
.work-list { display: flex; flex-direction: column; gap: 18px; }
.work-card {
  display: flex; gap: 14px; padding: 12px; border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform .35s cubic-bezier(.22,.9,.28,1), box-shadow .35s;
}
.work-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(var(--shadow-tint),.4), rgba(255,255,255,0) 45%, rgba(150,180,200,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.work-card:active { transform: scale(.985); }
.work-cover {
  flex: 0 0 108px; width: 108px; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; position: relative;
  background: var(--grad-cover); box-shadow: 0 6px 16px rgba(var(--shadow-tint),.18);
}
.work-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-gloss { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 45%); pointer-events: none; }
.cover-drop {
  position: absolute; right: 8px; bottom: 8px; width: 12px; height: 12px;
  border-radius: 50% 50% 50% 2px; transform: rotate(-45deg); background: rgba(255,255,255,.85);
  box-shadow: inset -1px -1px 2px rgba(var(--shadow-tint),.35); animation: dropSlide 4s ease-in-out infinite; pointer-events: none;
}
@keyframes dropSlide { 0%,100% { transform: rotate(-45deg) translateY(0); opacity:.6; } 50% { transform: rotate(-45deg) translateY(6px); opacity:1; } }

.work-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding-right: 4px; }
.work-title { font-family: var(--font-display); font-weight: 900; font-size: 17px; letter-spacing: .5px; color: var(--on-dark); line-height: 1.25; }
.work-type {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 6px; color: #fff; background: linear-gradient(120deg, var(--blue), var(--blue-mid));
}
.work-type.mv { background: var(--badge-mv); }
.work-type.storyboard { background: var(--badge-sb); }
/* 分类归属（cat 字段）：仿真人剧 / 连载3D漫剧 / 连载2D漫剧 */
.work-type.cat7 { background: var(--badge-cat7); }
.work-type.cat6 { background: var(--badge-cat6); }
.work-type.comic { background: var(--badge-comic); }
/* 分类归属（cat 字段）：ComfyUI 工作流 */
.work-type.comfyui { background: var(--badge-comfyui); }
.work-desc { font-size: 12.5px; line-height: 1.7; color: var(--on-dark-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-meta { font-size: 11px; color: var(--on-dark-3); letter-spacing: .5px; }
.work-play {
  position: absolute; right: 14px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(140deg, var(--blue), var(--cyan));
  box-shadow: 0 4px 12px rgba(var(--shadow-tint),.4);
}
.work-play svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }

.work-card.switch-out { animation: cardOut .32s ease forwards; }
.work-card.switch-in { animation: cardIn .5s cubic-bezier(.22,.9,.28,1) backwards; }
@keyframes cardOut { to { opacity: 0; transform: translateY(-12px) scale(.95); filter: blur(6px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.96); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* ============ 核心优势 ============ */
.adv-list { display: flex; flex-direction: column; gap: 14px; }
.adv-card {
  display: flex; gap: 14px; padding: 18px; border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  position: relative; overflow: hidden; transition: transform .35s;
}
.adv-card:active { transform: scale(.99); }
.adv-icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
  font-size: 20px; color: #fff; background: linear-gradient(140deg, var(--blue), var(--cyan));
  box-shadow: 0 6px 16px rgba(var(--shadow-tint),.35), inset -2px -3px 8px rgba(0,0,0,.08); position: relative;
}
.adv-icon::after { content: ''; position: absolute; top: 6px; left: 8px; width: 14px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.7); filter: blur(1.5px); }
.adv-card:nth-child(2) .adv-icon { background: var(--badge-mv); box-shadow: 0 6px 16px rgba(var(--shadow-tint),.35); }
.adv-card:nth-child(3) .adv-icon { background: var(--badge-sb); box-shadow: 0 6px 16px rgba(var(--shadow-tint),.32); }
.adv-card:nth-child(4) .adv-icon { background: linear-gradient(140deg, var(--blue-deep), var(--blue-mid)); box-shadow: 0 6px 16px rgba(10,95,180,.32); }
.adv-title { font-family: var(--font-display); font-weight: 900; font-size: 15.5px; letter-spacing: .5px; color: var(--on-dark); margin-bottom: 6px; }
.adv-desc { font-size: 12.5px; line-height: 1.8; color: var(--on-dark-2); }
/* 核心优势 · 亮点数据标签 */
.adv-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.adv-stat {
  font-size: 10.5px; font-weight: 600; letter-spacing: .4px;
  color: var(--accent-soft);
  background: rgba(var(--tint), .10);
  border: 1px solid rgba(var(--tint), .22);
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}

/* ============ 联系 & 底部 ============ */
.contact { padding-bottom: 30px; }
.contact-card { padding: 24px 22px; }
.contact-slogan {
  font-family: var(--font-display); font-weight: 900; font-size: 24px; letter-spacing: 2px;
  background: linear-gradient(100deg, var(--blue), var(--cyan) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; z-index: 2;
}
.contact-items { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 2; }
.contact-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
  background: rgba(var(--tint),.10); border: 1px solid rgba(var(--tint),.20); font-size: 13px;
  transition: transform .3s, background .3s; cursor: pointer;
}
.contact-item:active { transform: scale(.98); background: rgba(var(--tint),.20); }
.ci-label { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); padding: 3px 8px; border-radius: 6px; letter-spacing: 1px; }
.ci-value { color: var(--on-dark); font-weight: 500; word-break: break-all; }
.ci-copy { margin-left: auto; font-size: 11px; color: var(--on-dark-3); border: 1px solid rgba(var(--tint),.28); border-radius: 6px; padding: 3px 8px; flex: 0 0 auto; }
.footer { margin-top: 26px; text-align: center; font-size: 11px; color: var(--on-dark-3); letter-spacing: 1px; line-height: 1.8; }

/* ============ 返回顶部 ============ */
.to-top {
  position: fixed; right: 18px; bottom: calc(26px + env(safe-area-inset-bottom));
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20,30,46,.60); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.95); box-shadow: 0 8px 22px rgba(var(--shadow-tint),.28);
  z-index: 40; opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  transition: opacity .35s, transform .35s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; fill: var(--accent-line); }
.to-top:active { transform: scale(.9); }

/* ============ 入场动画 ============ */
.reveal {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .8s cubic-bezier(.22,.9,.28,1), transform .8s cubic-bezier(.22,.9,.28,1), filter .8s ease;
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ============ 弹窗 ============ */
.modal { position: fixed; inset: 0; z-index: 60; display: none; }
.modal.open { display: block; }
.modal-mask {
  position: absolute; inset: 0; background: rgba(14,24,36,.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s;
}
.modal.open .modal-mask { opacity: 1; }
.modal-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(30, 44, 60, .96), rgba(24, 36, 50, .97));
  clip-path: circle(0% at 50% 50%);
  transition: clip-path .62s cubic-bezier(.3,.9,.3,1);
  overflow: hidden;
}
.modal.open .modal-panel { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); }
.modal.closing .modal-panel { clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)); }
.modal.closing .modal-mask { opacity: 0; }
.modal-glass {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 50% at 20% 0%, rgba(var(--shadow-tint),.18), transparent 60%),
    radial-gradient(70% 40% at 90% 30%, rgba(150,180,200,.20), transparent 65%),
    radial-gradient(80% 50% at 10% 90%, rgba(138,155,181,.14), transparent 60%);
}
.modal-head {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: calc(16px + env(safe-area-inset-top)) 18px 14px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(18, 30, 44, .74);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.modal-head-text { flex: 1; min-width: 0; }
#modalTitle { font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: 1px; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-type { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--accent-chip); background: rgba(140,170,196,.18); padding: 2px 9px; border-radius: 6px; }
.modal-close {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--tint),.16); border: 1px solid rgba(var(--tint),.30);
  box-shadow: 0 6px 16px rgba(6,12,22,.34); color: var(--text-soft-3);
}
.modal-close svg { width: 16px; height: 16px; }
.modal-body {
  position: relative; z-index: 3; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 18px 18px calc(30px + env(safe-area-inset-bottom));
}
.modal-desc {
  font-size: 13.5px; line-height: 1.9; color: var(--on-dark-2); margin-bottom: 18px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(var(--tint),.10); border: 1px solid rgba(var(--tint),.20);
  box-shadow: 0 6px 20px rgba(6,12,22,.26);
}

/* —— 漫剧翻页 —— */
.comic-wrap { position: relative; }
.comic-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.comic-scroll::-webkit-scrollbar { display: none; }
.comic-page {
  flex: 0 0 100%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden;
  background: rgba(20,30,46,.52); border: 1px solid rgba(var(--tint),.22);
  box-shadow: 0 10px 30px rgba(6,12,22,.34); position: relative;
}
.comic-page img { width: 100%; display: block; }
.page-no { position: absolute; left: 10px; bottom: 10px; font-size: 11px; color: #fff; background: rgba(14,24,36,.5); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px); letter-spacing: 1px; }
.comic-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.comic-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--tint),.16); border: 1px solid rgba(var(--tint),.30);
  box-shadow: 0 6px 18px rgba(6,12,22,.32); color: var(--text-soft-3); font-size: 16px;
  transition: transform .25s, opacity .25s;
}
.comic-btn:disabled { opacity: .35; }
.comic-btn:active { transform: scale(.9); }
.comic-dots { display: flex; gap: 7px; }
.comic-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--shadow-tint),.25); transition: all .3s; }
.comic-dots i.on { background: var(--blue); width: 20px; border-radius: 4px; }
.comic-tip { text-align: center; font-size: 11px; color: var(--on-dark-3); margin-top: 12px; letter-spacing: 1px; }

/* —— MV 播放器 —— */
.mv-player { border-radius: var(--radius); overflow: hidden; background: #0A2233; box-shadow: 0 10px 30px rgba(14,24,36,.28); position: relative; }
.mv-player video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: contain; background: #0A2233; }
.mv-placeholder {
  aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: linear-gradient(160deg, #2C4258, var(--blue-deep)); color: rgba(255,255,255,.92); text-align: center; padding: 24px;
}
.mv-placeholder .play-ring { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.7); animation: rippleRing 2.4s ease-out infinite; }
@keyframes rippleRing { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 70% { box-shadow: 0 0 0 22px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.mv-placeholder .play-ring svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.mv-placeholder p { font-size: 12px; line-height: 1.8; opacity: .82; }
.mv-meta { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.mv-meta span { font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(var(--tint),.12); border: 1px solid rgba(var(--tint),.24); color: var(--text-soft-1); }

/* —— 分镜缩放 —— */
.sb-stage {
  border-radius: var(--radius); overflow: hidden; background: rgba(20,30,46,.52);
  border: 1px solid rgba(var(--tint),.22); box-shadow: 0 10px 30px rgba(6,12,22,.34);
  position: relative; height: 46vh; min-height: 260px; touch-action: none; display: grid; place-items: center;
}
.sb-img { max-width: 100%; max-height: 100%; transition: opacity .3s; will-change: transform; transform-origin: center center; }
.sb-caption {
  margin-top: 12px; font-size: 12.5px; line-height: 1.8; color: var(--text-soft-1);
  background: rgba(var(--tint),.10); border: 1px solid rgba(var(--tint),.22);
  border-radius: var(--radius-sm); padding: 10px 14px;
}
.sb-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.sb-thumbs::-webkit-scrollbar { display: none; }
.sb-thumb { flex: 0 0 76px; height: 96px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .65; transition: all .3s; background: #22303F; position: relative; }
.sb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-thumb.on { border-color: var(--blue); opacity: 1; box-shadow: 0 4px 12px rgba(var(--shadow-tint),.3); }
.sb-tip { text-align: center; font-size: 11px; color: var(--on-dark-3); margin-top: 10px; }
.zoom-badge { position: absolute; right: 10px; top: 10px; font-size: 11px; color: #fff; background: rgba(14,24,36,.5); padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(4px); z-index: 4; }

/* ============ 水滴过渡 / Toast ============ */
.drop-transition {
  position: fixed; z-index: 55; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(196,214,230,.6) 55%, rgba(var(--shadow-tint),0) 72%);
  transform: translate(-50%,-50%) scale(0); opacity: 0; pointer-events: none;
}
.drop-transition.go { animation: dropBurst .6s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes dropBurst { 0% { transform: translate(-50%,-50%) scale(0); opacity: .95; } 100% { transform: translate(-50%,-50%) scale(38); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(10px);
  background: rgba(14,24,36,.9); color: #fff; font-size: 12.5px; padding: 10px 20px; border-radius: 999px;
  z-index: 120; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; backdrop-filter: blur(6px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }



/* ==========================================================
 *  桌面端：宽屏 16:9 + 网格
 * ========================================================== */
@media (min-width: 900px) {
  :root { --page-pad: 48px; --radius: 26px; }

  body { background: linear-gradient(160deg, #2C3B4C, #22303E); }

  .section { padding: 92px 0 20px; }

  /* Hero：满屏（高度按 16:9 视口比例取值，宽度始终占满容器，内容与提示严格居中） */
  .hero {
    min-height: 0;
    width: 100%;
    height: min(100svh, 56.25vw);
    padding-top: 0; padding-bottom: 140px;
  }
  .hero-inner { max-width: 62%; }
  .hero-eyebrow { font-size: 13px; letter-spacing: 9px; margin-bottom: 26px; }
  .hero-title { font-size: clamp(56px, 7.4vw, 132px); letter-spacing: 2px; }
  .hero-en { font-size: 20px; letter-spacing: 6px; margin-top: 28px; }
  .hero-tags { gap: 12px; margin-top: 34px; }
  .hero-tags .tag { font-size: 14px; padding: 10px 22px; }
  .scroll-hint { bottom: 92px; }
  .hint-text { font-size: 13px; letter-spacing: 5px; }

  /* 关于我：左头像 / 右信息 */
  .about-card { display: grid; grid-template-columns: 280px 1fr; gap: 44px; padding: 40px 44px; align-items: start; }
  .about-top { flex-direction: column; gap: 20px; }
  .avatar-wrap { flex: 0 0 auto; width: 100%; height: 220px; border-radius: 30px; }
  .about-name { font-size: 28px; }
  .about-identity { font-size: 14px; line-height: 1.8; }
  .about-side { display: flex; flex-direction: column; gap: 26px; }
  .about-block { margin-top: 0; }
  .block-label { font-size: 12px; letter-spacing: 5px; }
  .chip { font-size: 13.5px; padding: 8px 15px; }
  .about-bio { font-size: 15px; line-height: 2.05; }

  /* 简历区（宽屏） */
  .resume-card { margin-top: 26px; padding: 40px 44px; }
  .rs-profile { grid-template-columns: repeat(2, 1fr); gap: 12px 18px; }
  .rs-timeline { gap: 22px; }
  .rs-item { padding: 20px 24px 20px 28px; }
  .rs-item-t { font-size: 19px; }
  .rs-org { font-size: 13.5px; }
  .rs-items li { font-size: 14px; line-height: 1.95; }
  .rs-media { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .rs-audio, .rs-video { flex: 1 1 320px; }
  .rs-videos { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .rs-imgs { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .rs-review { font-size: 15px; line-height: 2.1; }

  /* 作品网格 */
  .work-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
  .work-card { flex-direction: column; gap: 14px; padding: 14px; }
  .work-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(var(--shadow-tint),.22); }
  .work-cover { flex: none; width: 100%; aspect-ratio: 3 / 4; border-radius: 18px; }
  .work-info { gap: 9px; padding: 2px 4px 6px; }
  .work-title { font-size: 20px; }
  .work-desc { font-size: 13.5px; line-height: 1.8; -webkit-line-clamp: 3; }
  .work-meta { font-size: 12px; }
  .work-play { right: 20px; bottom: 20px; width: 38px; height: 38px; }
  .work-play svg { width: 14px; height: 14px; }

  /* 优势四列 */
  .adv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
  .adv-card { padding: 24px; gap: 16px; }
  .adv-card:hover { transform: translateY(-4px); }
  .adv-icon { flex: 0 0 54px; width: 54px; height: 54px; font-size: 23px; }
  .adv-title { font-size: 17px; }
  .adv-desc { font-size: 13.5px; line-height: 1.9; }

  /* 联系 */
  .contact-card { padding: 40px 44px; }
  .contact-slogan { font-size: 34px; }
  .contact-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 26px; }
  .contact-item { padding: 15px 18px; font-size: 14px; }

  .section-title { font-size: 40px; letter-spacing: 3px; }
  .section-title::after { width: 62px; height: 7px; bottom: -12px; }
  .section-en { font-size: 12px; letter-spacing: 7px; margin-top: 20px; }

  /* 弹窗：居中卡片 */
  .modal-panel {
    inset: 5vh auto; left: 50%; transform: translateX(-50%);
    width: min(1240px, 92vw); height: 90vh;
    border-radius: 28px;
    box-shadow: 0 40px 100px rgba(10,60,110,.35);
    border: 1px solid rgba(200,215,230,.35);
  }
  .modal-head { padding: 22px 30px 18px; }
  #modalTitle { font-size: 24px; }
  .modal-close { width: 42px; height: 42px; flex: 0 0 42px; }
  .modal-body { padding: 26px 30px 40px; }
  .modal-desc { font-size: 15px; line-height: 2; padding: 18px 22px; }
  .mv-player video { aspect-ratio: 16 / 9; }
  .sb-stage { height: 54vh; }
  .sb-thumb { flex: 0 0 96px; height: 120px; }
  .comic-scroll { max-width: 720px; margin: 0 auto; }
  .comic-tip, .sb-tip { font-size: 12px; }

  .to-top { right: 34px; width: 50px; height: 50px; }
}

@media (min-width: 1500px) {
  .hero-inner { max-width: 56%; }
}

/* ============ 减少动效 ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ==========================================================
 *  写实电影（film）作品：卡片直达按钮 / 标签 / 标签页 / 资产网格
 * ========================================================== */
.work-type.film {
  color: #fff;
  background: var(--badge-film);
}

/* 卡片标签 */
.work-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.work-tags .wt {
  font-size: 10.5px; font-weight: 600; letter-spacing: .5px;
  color: var(--text-soft-2); background: rgba(150,176,200,.12);
  border: 1px solid rgba(155,180,202,.26);
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}

/* 卡片直达按钮（看正片 / 分镜 / 资产图） */
.work-jumps { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 16px 14px; }
.wj-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font: 600 12px/1 var(--font-body); color: var(--text-soft-2);
  background: rgba(150,176,200,.12); border: 1px solid rgba(155,180,202,.32);
  padding: 7px 13px; border-radius: 20px; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.wj-btn svg { width: 11px; height: 11px; fill: currentColor; }
.wj-btn:hover { background: var(--blue); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(var(--shadow-tint),.3); }
.wj-btn.wj-main {
  color: #fff; border: none;
  background: linear-gradient(120deg, var(--blue), var(--blue-mid) 60%, var(--cyan));
  box-shadow: 0 4px 12px rgba(var(--shadow-tint),.35);
}

/* 弹窗标签页 */
.film-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 14px 0 4px; padding: 4px;
  background: rgba(150,176,200,.07); border-radius: 12px;
  position: sticky; top: 0; z-index: 3;
  backdrop-filter: blur(8px);
}
.ft-tab {
  flex: 1; min-width: 64px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font: 600 12.5px/1 var(--font-body); color: var(--on-dark-2);
  background: transparent; border: none; border-radius: 9px;
  padding: 9px 10px; cursor: pointer; transition: all .2s;
}
.ft-tab svg { width: 10px; height: 10px; fill: currentColor; }
.ft-tab em { font-style: normal; font-size: 10.5px; opacity: .75; }
.ft-tab:hover { color: var(--nav-text); background: rgba(var(--tint),.14); }
.ft-tab.on {
  color: #fff; background: linear-gradient(120deg, var(--blue), var(--blue-mid) 60%, var(--cyan));
  box-shadow: 0 3px 10px rgba(var(--shadow-tint),.3);
}

/* 各分区 */
.film-body .ft-sec { display: none; }
.film-body .ft-sec.on { display: block; animation: ftIn .35s ease; }
@keyframes ftIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ft-gtitle {
  margin: 18px 0 10px; font-size: 13px; font-weight: 700;
  color: var(--accent-soft); letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
}
.ft-gtitle::before { content: ''; width: 14px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.ft-gtitle em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--on-dark-3); }

/* 图片网格（分镜 / 资产图通用） */
.ft-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin-bottom: 6px;
}
.ft-cell {
  margin: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in;
  background: #22303F; border: 1px solid rgba(var(--tint),.16);
  transition: transform .2s, box-shadow .2s;
}
.ft-cell:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(10,95,180,.16); }
.ft-cell img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ft-cell figcaption {
  padding: 7px 9px; font-size: 11px; line-height: 1.5;
  color: var(--on-dark-2); background: rgba(18, 30, 44, .82);
  border-top: 1px solid rgba(var(--tint),.14);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 加载更多 */
.ft-more { display: flex; justify-content: center; padding: 14px 0 4px; }
.ft-more .wj-btn { padding: 9px 22px; }

/* ==========================================================
 *  AI 音乐 MV：双正片（横版 + 竖版）/ 海报动态 / 不裁切网格
 * ========================================================== */

/* 正片：同一「正片」分栏里容纳 21:9 与 9:16 等多个版本 */
.mv-film { margin-bottom: 22px; }
.mv-film:last-of-type { margin-bottom: 6px; }
.mv-ratio {
  font-style: normal; margin-left: 8px; padding: 1px 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  color: var(--on-dark-3); border: 1px solid rgba(var(--tint),.32); border-radius: 20px;
}
.mv-film-wrap {
  background: #04070d; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(var(--tint),.16);
  box-shadow: 0 10px 26px rgba(6,14,26,.34);
}
.mv-film-wrap.r916 { max-width: 340px; margin: 0 auto; }
.mv-film-wrap video { width: 100%; height: auto; display: block; }

/* 海报动态：静音循环播放，呈"会动的海报" */
.ft-grid.motion { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ft-cell.video { cursor: default; background: #04070d; }
.ft-cell.video video {
  width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover;
  display: block; background: #04070d;
}

/* 不裁切网格：按原图比例展示（MV 的分镜 / 资产多为竖版，裁切会毁掉构图） */
.ft-grid.natural { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: start; }
.ft-cell.natural img {
  width: 100%; height: auto; max-height: 440px;
  aspect-ratio: auto; object-fit: contain; background: #0b1424;
}
/* 宽幅资产（21:9 / 2.33:1 三视图等）：放大格子，保证三个视角都看得清 */
.ft-grid.natural.wide { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.ft-grid.natural.wide .ft-cell img {
  width: 100%; height: auto; max-height: none;
  aspect-ratio: auto; object-fit: contain; background: #0b1424;
}
/* 分镜瀑布流：竖版 9:16 与宽银幕 21:9 混排时，既保原比例又不留空洞 */
.ft-grid.masonry { display: block; columns: 220px; column-gap: 10px; }
.ft-grid.masonry .ft-cell {
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  width: 100%; margin: 0 0 10px;
}
.ft-grid.masonry .ft-cell img {
  width: 100%; height: auto; max-height: none;
  aspect-ratio: auto; object-fit: contain; background: #0b1424;
}
