@import url("linea-black.css");

/* ============================================================
   LINEA Gallery — 视觉画廊子页面
   设计语言参考 gregorcollienne.com（编辑排版 · 3D 翻转文字 · 错落瀑布流 · 毛玻璃全屏导航）
   浅色底 + 近黑文字 + 粗体全大写 · 零外部字体/资源依赖
   ============================================================ */

:root {
  --color-dark: #0C0C0C;
  --color-light: #f5f3f0;
  --color-light-2: #eceae4;
  --color-muted: #8b877f;
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --cubic: cubic-bezier(.77, 0, .175, 1);
  --cubic-2: cubic-bezier(.5, 0, .5, 1);
  --space: 0.4rem;
  --pad: 24px;
  --header-h: 64px;
  --fs-h1: clamp(38px, 8vw, 108px);
  --fs-h3: clamp(19px, 3vw, 30px);
  --fs-body: clamp(13px, 1.1vw, 16px);
  --fs-mini: clamp(11px, 0.95vw, 13px);
  --fs-micro: 10px;
}

* { box-sizing: border-box; padding: 0; margin: 0; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  background: var(--color-light);
  color: var(--color-dark);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ── 入场遮罩（毛玻璃淡出） ──────────────────────────────── */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--color-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity .42s var(--cubic), backdrop-filter .8s var(--cubic-2), visibility 0s .8s;
}
.intro__wordmark {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: .9;
  perspective: 900px;
}
.intro__wordmark span {
  display: inline-block;
  transform: translateY(110%) rotateX(-70deg);
  transform-origin: center bottom;
  opacity: 0;
  animation: intro-rise 1s var(--cubic) forwards;
}
.intro__wordmark span:nth-child(2) { animation-delay: .06s; }
.intro__wordmark span:nth-child(3) { animation-delay: .12s; }
.intro__wordmark span:nth-child(4) { animation-delay: .18s; }
.intro__wordmark span:nth-child(5) { animation-delay: .24s; }
.intro__tag {
  font-size: var(--fs-mini); font-weight: 700; letter-spacing: .4em;
  color: var(--color-muted); opacity: 0;
  animation: intro-fade 1s var(--cubic) .5s forwards;
}
@keyframes intro-rise {
  to { transform: none; opacity: 1; }
}
@keyframes intro-fade {
  to { opacity: 1; }
}
body.is-done .intro { opacity: 0; visibility: hidden; }

/* ── 固定顶部（汉堡 + 词标） ─────────────────────────────── */
.c-header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 900;
  mix-blend-mode: normal;
}
.c-header__brand {
  font-size: var(--fs-mini); font-weight: 800; letter-spacing: .34em;
  color: var(--color-dark);
  transform: translateY(40%); opacity: 0;
  transition: transform .42s var(--cubic), opacity .42s var(--cubic);
}
body.is-ready .c-header__brand { transform: none; opacity: 1; }

/* 汉堡按钮：3D 翻转 + / × */
.navopener {
  position: relative; width: var(--header-h); height: var(--header-h);
  perspective: 700px;
}
.navopener__icon {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform .42s var(--cubic);
}
.navopener__bar,
.navopener__bar::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 26px; height: 3px; background: var(--color-dark);
  transform: translate(-50%, -50%);
  transition: background .4s ease;
}
.navopener__bar::before { transform: translate(-50%, -50%) rotate(90deg); }
.navopener__close {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateY(-40%) rotateX(-90deg);
  transition: transform .42s var(--cubic);
}
.navopener__close::before,
.navopener__close::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 26px; height: 3px; background: var(--color-dark);
}
.navopener__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.navopener__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
body.nav-open .navopener__icon { transform: translateY(60%) rotateX(-90deg); }
body.nav-open .navopener__close { transform: none; }

/* ── 全屏导航遮罩 ─────────────────────────────────────────── */
.c-navscreen {
  position: fixed; top: 0; left: 0; width: 100%; height: 0;
  z-index: 800; overflow: hidden; pointer-events: none;
  background: var(--color-light);
  filter: blur(12px);
  transition: height .01s ease .8s;
}
.c-navscreen__inner {
  height: 100%; padding: calc(var(--header-h) + 12px) var(--pad) 96px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.c-navscreen__menu {
  list-style: none; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(6px, 1.4vh, 16px);
}
.c-navscreen__menu li { perspective: 1000px; }
.c-navscreen__menu li a {
  display: inline-block; font-size: var(--fs-h3); font-weight: 800; line-height: 1.05;
  position: relative;
  transform: translateY(50%) rotateX(-50deg);
  opacity: 0;
  border-bottom: 3px solid transparent;
  transition: border-color .3s ease;
}
.c-navscreen__menu li a:hover { border-color: var(--color-dark); }
.c-navscreen__menu li a.is-current { border-color: var(--color-dark); }
body.nav-open .c-navscreen { height: 100%; filter: blur(0); transition: height .01s ease; pointer-events: all; }
body.nav-open .c-navscreen__menu li a {
  transform: none; opacity: 1;
  transition: transform .42s var(--cubic), opacity .42s var(--cubic), border-color .3s ease;
}
body.nav-open .c-navscreen__menu li:nth-child(1) a { transition-delay: .02s; }
body.nav-open .c-navscreen__menu li:nth-child(2) a { transition-delay: .08s; }
body.nav-open .c-navscreen__menu li:nth-child(3) a { transition-delay: .14s; }
body.nav-open .c-navscreen__menu li:nth-child(4) a { transition-delay: .2s; }
body.nav-open .c-navscreen__menu li:nth-child(5) a { transition-delay: .26s; }

.c-navscreen__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.c-navscreen__about { max-width: 560px; }
.c-navscreen__about .line { display: block; overflow: hidden; perspective: 1000px; }
.c-navscreen__about .line span {
  display: block; font-size: var(--fs-mini); font-weight: 400;
  letter-spacing: .04em; text-transform: none; color: var(--color-muted);
  transform: translateY(120%); opacity: 0;
}
body.nav-open .c-navscreen__about .line span {
  transform: none; opacity: 1;
  transition: transform .42s var(--cubic), opacity .42s var(--cubic);
}
body.nav-open .c-navscreen__about .line:nth-child(1) span { transition-delay: .3s; }
body.nav-open .c-navscreen__about .line:nth-child(2) span { transition-delay: .34s; }
body.nav-open .c-navscreen__about .line:nth-child(3) span { transition-delay: .38s; }
body.nav-open .c-navscreen__about .line:nth-child(4) span { transition-delay: .42s; }
.c-navscreen__social { display: flex; gap: 20px; font-size: var(--fs-mini); font-weight: 800; letter-spacing: .12em; }

/* ── 主内容 ──────────────────────────────────────────────── */
.gallery-main { padding: calc(var(--header-h) + 8px) 0 140px; }

.gallery-head { padding: 3vh var(--pad) 1vh; max-width: 1500px; margin: 0 auto; }
.gallery-eyebrow {
  display: block; font-size: var(--fs-mini); font-weight: 700;
  letter-spacing: .4em; color: var(--color-muted); margin-bottom: 20px;
  opacity: 0; transform: translateY(40%);
  transition: transform .42s var(--cubic) .1s, opacity .42s var(--cubic) .1s;
}
.gallery-title {
  font-size: var(--fs-h1); font-weight: 800; line-height: .92; letter-spacing: .01em;
  overflow: hidden; padding-bottom: .06em;
}
.gallery-title span {
  display: inline-block; transform: translateY(110%) rotateX(-70deg);
  transform-origin: center bottom; opacity: 0;
}
.gallery-sub {
  max-width: 520px; margin-top: 18px;
  font-size: var(--fs-body); font-weight: 400; letter-spacing: .04em;
  text-transform: none; color: var(--color-muted); line-height: 1.8;
  opacity: 0; transform: translateY(40%);
  transition: transform .42s var(--cubic) .35s, opacity .42s var(--cubic) .35s;
}
body.is-ready .gallery-eyebrow,
body.is-ready .gallery-sub { transform: none; opacity: 1; }
body.is-ready .gallery-title span {
  transform: none; opacity: 1;
  transition: transform .42s var(--cubic) .15s, opacity .42s var(--cubic) .15s;
}

/* ── 错落瀑布流 ──────────────────────────────────────────── */
.overview {
  max-width: 1500px; margin: 0 auto; padding: 2vh var(--pad) 0;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 2.4vw;
  row-gap: 8vh;
}
.overview-item {
  position: relative; height: 30vh; min-height: 180px;
  perspective: 900px;
  opacity: 0; transform: translateY(8vh) rotateX(10deg);
  transition: opacity .42s var(--cubic), transform .42s var(--cubic);
}
.overview-item.is-visible { opacity: 1; transform: none; }
.overview-item:nth-child(5n+2),
.overview-item:nth-child(5n+4) { transform: translateY(50%); }
.overview-item:nth-child(5n+2).is-visible,
.overview-item:nth-child(5n+4).is-visible { transform: translateY(50%); }

.gm-media {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.gm-media img,
.gm-media video {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  transition: transform .42s var(--cubic);
}
.overview-item:hover .gm-media img,
.overview-item:hover .gm-media video { transform: scale(1.04); }

/* 视频播放图标 */
.gm-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(12,12,12,.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  pointer-events: none;
  transition: opacity, color, background-color, border-color, transform, box-shadow, visibility; transition-duration: .3s;
  z-index: 2;
}
.overview-item:hover .gm-video-icon {
  background: rgba(12,12,12,.9);
  transform: translate(-50%, -50%) scale(1.1);
}

/* 悬停信息 */
.gm-caption {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  z-index: 2; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .4s ease, transform .4s ease;
}
.gm-caption__label { display: block; font-size: var(--fs-mini); font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
.gm-caption__by { display: block; margin-top: 4px; font-size: var(--fs-micro); font-weight: 400; letter-spacing: .1em; color: var(--color-muted); text-transform: none; }
.overview-item:hover .gm-caption { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* 删除按钮（仅本人可见） */
.gm-del {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-dark); color: var(--color-light);
  font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8); transition: opacity, color, background-color, border-color, transform, box-shadow, visibility; transition-duration: .25s; transition-timing-function: ease;
}
.overview-item:hover .gm-del { opacity: 1; transform: scale(1); }
.gm-del:hover { background: #c00000; }

/* ── 空态 ───────────────────────────────────────────────── */
.overview-empty {
  display: none; text-align: center; padding: 14vh var(--pad);
  color: var(--color-muted); font-size: var(--fs-body); font-weight: 400;
  letter-spacing: .06em; text-transform: none; line-height: 2.2;
}
.overview-empty .ge-icon { display: block; font-size: 44px; margin-bottom: 18px; }
.overview-empty.visible { display: block; }

/* ── 固定底部 ────────────────────────────────────────────── */
.c-footer {
  position: fixed; bottom: 0; left: 0; width: 100%;
  height: 84px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); z-index: 900; pointer-events: none;
}
.c-footer__item { perspective: 1000px; pointer-events: all; }
.c-footer__item a,
.c-footer__item button {
  display: inline-block; font-size: var(--fs-body); font-weight: 800; letter-spacing: .12em;
  border-bottom: 2px solid transparent; cursor: pointer;
  transform: translateY(60%) rotateX(-50deg); opacity: 0; filter: blur(8px);
  transition: border-color .3s ease, opacity .7s var(--cubic), transform .7s var(--cubic);
}
.c-footer__item a:hover,
.c-footer__item button:hover { border-color: var(--color-dark); }
.c-footer__count { font-size: var(--fs-mini); font-weight: 700; letter-spacing: .2em; color: var(--color-muted); }
body.is-ready .c-footer__item a,
body.is-ready .c-footer__item button { transform: none; opacity: 1; filter: blur(0); }
body.is-ready .c-footer__item:nth-child(2) a,
body.is-ready .c-footer__item:nth-child(2) button { transition-delay: .06s; }
body.is-ready .c-footer__item:nth-child(3) a,
body.is-ready .c-footer__item:nth-child(3) button { transition-delay: .12s; }

.upload-status { font-size: var(--fs-micro); letter-spacing: .08em; color: var(--color-muted); text-transform: none; }
.upload-status.success { color: #1a7a3c; }
.upload-status.error { color: #c00000; }
.upload-status.uploading { color: var(--color-dark); }

/* ── 灯箱 ────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(12, 12, 12, .9);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.lightbox-figure { max-width: 92vw; max-height: 88vh; text-align: center; margin: 0; }
.lightbox-figure img {
  max-width: 92vw; max-height: 78vh; margin: 0 auto; object-fit: contain;
  transform: scale(.96); transition: transform .5s var(--cubic);
}
.lightbox.open .lightbox-figure img { transform: scale(1); }
.lightbox-figure figcaption {
  margin-top: 20px; font-size: var(--fs-mini); font-weight: 800; letter-spacing: .2em;
  color: var(--color-light); text-transform: uppercase;
}
.lightbox-close {
  position: absolute; top: 20px; right: 26px; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; color: var(--color-light);
  font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.lightbox-close:hover { transform: rotate(90deg); }

/* ── 登录/注册弹窗 ───────────────────────────────────────── */
.auth-overlay {
  position: fixed; inset: 0; z-index: 960;
  background: rgba(12, 12, 12, .4);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s;
}
.auth-overlay.open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.auth-box {
  width: min(400px, 90vw); background: var(--color-light);
  padding: 40px 36px; position: relative;
  transform: translateY(30px) rotateX(-8deg); transition: transform .6s var(--cubic);
}
.auth-overlay.open .auth-box { transform: none; }
.auth-close {
  position: absolute; top: 16px; right: 20px; font-size: 24px; color: var(--color-muted);
}
.auth-box h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: .06em; margin-bottom: 26px; }
.auth-box input {
  width: 100%; font: inherit; font-weight: 400; text-transform: none; letter-spacing: .02em;
  font-size: var(--fs-body);
  background: transparent; border: none; border-bottom: 2px solid var(--color-dark);
  padding: 12px 0; margin-bottom: 18px; color: var(--color-dark); border-radius: 0;
}
.auth-box input::placeholder { color: var(--color-muted); }
.auth-box input:focus { outline: none; border-bottom-color: #c00000; }
.auth-box .btn {
  width: 100%; margin-top: 10px; padding: 14px; font-weight: 800; letter-spacing: .16em;
  background: var(--color-dark); color: var(--color-light);
  transition: background .3s ease;
}
.auth-box .btn:hover { background: #c00000; }
.auth-switch { margin-top: 22px; text-align: center; font-size: var(--fs-mini); font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--color-muted); }
.auth-switch a { font-weight: 800; border-bottom: 1px solid var(--color-dark); color: var(--color-dark); }
.auth-error { margin-top: 14px; text-align: center; font-size: var(--fs-mini); font-weight: 400; letter-spacing: .02em; text-transform: none; color: #c00000; opacity: 0; transition: opacity .3s ease; }
.auth-error.show { opacity: 1; }

/* ── 服务器离线提示 ──────────────────────────────────────── */
.server-offline {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 970;
  background: #c00000; color: #fff;
  padding: 10px var(--pad); font-size: var(--fs-mini); font-weight: 700; letter-spacing: .06em;
  text-align: center; transform: translateY(-100%); transition: transform .5s var(--cubic);
}
.server-offline.visible { transform: none; }
.server-offline code { font-family: inherit; text-transform: none; }

/* ── 响应式 ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --pad: 20px;
  }
  .overview-grid { grid-template-columns: repeat(3, 1fr); row-gap: 6vh; }
  .overview-item { height: 26vh; min-height: 160px; }
  .overview-item:nth-child(5n+2),
  .overview-item:nth-child(5n+4) { transform: none; }
  .overview-item:nth-child(3n+2) { transform: translateY(40%); }
  .overview-item:nth-child(3n+2).is-visible { transform: translateY(40%); }
  .video-showcase__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  :root {
    --pad: 16px;
    --header-h: 52px;
    --fs-h1: clamp(32px, 10vw, 48px);
    --fs-h3: clamp(18px, 4vw, 24px);
    --fs-body: clamp(12px, 2.5vw, 14px);
    --fs-mini: clamp(10px, 2vw, 12px);
  }

  .gallery-head {
    padding: 80px var(--pad) 50px;
    text-align: center;
  }

  .gallery-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .overview-grid { grid-template-columns: repeat(2, 1fr); column-gap: 4vw; row-gap: 5vh; }
  .overview-item { height: 22vh; min-height: 140px; }
  /* 移动端取消奇偶错位：下移 50% 不会撑高网格容器，最后一行会溢出压住下面的计数与操作条 */
  .overview-item:nth-child(n),
  .overview-item:nth-child(n).is-visible { transform: none; }

  /* 说明文字改成铺满卡片宽度：原先「居中 + nowrap」，长标签会把文档撑宽
     （实测 390 宽视口溢出 36px，整页能横向拖动） */
  .gm-caption { left: 0; right: 0; transform: none; padding: 0 8px; font-size: 10px; }
  .overview-item:hover .gm-caption,
  .overview-item.is-visible .gm-caption { transform: translateY(-4px); }
  .gm-caption__label { white-space: normal; overflow-wrap: anywhere; }
  .gm-caption__by { font-size: 9px; }
  .gm-del { width: 28px; height: 28px; font-size: 12px; opacity: 1; }

  .c-navscreen__foot { flex-direction: column; align-items: flex-start; }

  .c-footer {
    height: auto;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(245, 243, 240, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-light-2);
  }

  .c-footer__item {
    width: 100%;
    text-align: center;
  }

  .c-footer__item button {
    width: 100%;
    padding: 12px 20px;
    font-size: 12px;
  }

  .gallery-main { padding-bottom: 150px; }
  .video-showcase { margin-bottom: 60px; padding: 0 16px; }
  .video-showcase__header { margin-bottom: 40px; }
  .video-showcase__title { font-size: clamp(16px, 4vw, 22px); letter-spacing: .1em; }
  .video-showcase__grid { grid-template-columns: 1fr; gap: 20px; }
  .video-card { height: auto; }
  .video-card__thumb { height: 200px; }
  .video-card__play { width: 50px; height: 50px; font-size: 20px; }

  .lightbox-figure img,
  .lightbox-figure video { max-width: 95vw; max-height: 70vh; }
  .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 24px; }

  .video-modal-content { padding: 0; }
  #modal-video-player { max-height: 50vh; }
  .video-modal-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 28px; }
  .video-modal-info h3 { font-size: clamp(16px, 4vw, 20px); }
  .video-modal-info p { font-size: clamp(12px, 3vw, 14px); }

  .auth-box { padding: 30px 24px; }
}

@media (max-width: 480px) {
  :root {
    --pad: 12px;
    --fs-h1: clamp(28px, 12vw, 40px);
    --fs-h3: clamp(16px, 5vw, 20px);
    --fs-body: 12px;
    --fs-mini: 10px;
  }

  .gallery-head { padding: 70px var(--pad) 40px; }
  .overview-grid { column-gap: 3vw; row-gap: 4vh; }
  .overview-item { min-height: 120px; height: 20vh; }

  .video-showcase__grid { gap: 16px; }
  .video-card__thumb { height: 180px; }
  .video-card__info { padding: 15px; height: 90px; }
  .video-card__title { font-size: 12px; }
  .video-card__desc { font-size: 10px; }

  .c-footer { padding: 10px 12px; }
  .c-footer__item button { padding: 10px 16px; font-size: 11px; }
  .gallery-main { padding-bottom: 170px; }
  .upload-status { font-size: 10px; }
}

/* ══════════════════════════════════════════════════════════
   视频专栏样式
   ══════════════════════════════════════════════════════════ */
.video-showcase {
  max-width: 1400px;
  margin: 0 auto 100px;
  padding: 0 var(--pad);
}

.video-showcase__header {
  margin-bottom: 60px;
  text-align: center;
}

.video-showcase__title {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: .15em;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.video-showcase__desc {
  font-size: var(--fs-mini);
  font-weight: 400;
  text-transform: none;
  color: var(--color-muted);
  letter-spacing: .02em;
}

.video-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.video-card {
  position: relative;
  background: var(--color-light-2);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s var(--cubic), box-shadow .3s var(--cubic);
  height: 280px;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(12,12,12,.1);
}

.video-card__thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #eceae4 0%, #d8d6d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-card__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(12,12,12,.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: background .3s;
  pointer-events: none;
}

.video-card:hover .video-card__play {
  background: rgba(12,12,12,.9);
}

.video-card__info {
  padding: 20px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-card__title {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card__desc {
  font-size: var(--fs-mini);
  font-weight: 400;
  text-transform: none;
  color: var(--color-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-showcase__empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-muted);
}

.vse-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 20px;
}

.video-showcase__empty p {
  font-size: var(--fs-body);
  font-weight: 400;
  text-transform: none;
}

/* 视频播放弹窗 */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(12,12,12,.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.is-active {
  display: flex;
}

.video-modal-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#modal-video-player {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 4px;
}

.video-modal-info {
  color: var(--color-light);
  text-align: center;
}

.video-modal-info h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.video-modal-info p {
  font-size: var(--fs-body);
  font-weight: 400;
  text-transform: none;
  color: var(--color-light-2);
  line-height: 1.6;
}

.video-modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  font-size: 36px;
  color: var(--color-light);
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
  z-index: 10;
}

.video-modal-close:hover {
  background: rgba(255,255,255,.2);
}

/* 灯箱支持视频 */
.lightbox video {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .video-showcase {
    margin-bottom: 60px;
    padding: 0 16px;
  }

  .video-showcase__header {
    margin-bottom: 40px;
  }

  .video-showcase__title {
    font-size: clamp(16px, 4vw, 22px);
    letter-spacing: .1em;
  }

  .video-showcase__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-card {
    height: auto;
  }

  .video-card__thumb {
    height: 200px;
  }

  .video-card__play {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .video-modal-content {
    padding: 0;
  }

  #modal-video-player {
    max-height: 50vh;
  }

  .video-modal-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .video-modal-info h3 {
    font-size: clamp(16px, 4vw, 20px);
  }

  .video-modal-info p {
    font-size: clamp(12px, 3vw, 14px);
  }
}

@media (max-width: 480px) {
  .video-showcase__grid {
    gap: 16px;
  }

  .video-card__thumb {
    height: 180px;
  }

  .video-card__info {
    padding: 15px;
  }

  .overview-item {
    min-height: 120px;
  }
}

.c-navscreen { filter: none; transition-delay: 0s; }
body.nav-open .c-navscreen { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .overview-item { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

/* Existing entry transitions stay on transform and opacity. */
:is(.gm-media, .video-card, .gm-del):focus-visible, #navopener:focus-visible {
  outline: 2px solid #a51a22;
  outline-offset: 4px;
}
.c-navscreen[inert] { pointer-events: none; }

@media (max-width: 768px) {
  :is(.gallery-page, .forum-page) {
    --pad: clamp(15px, 4.4vw, 26px);
    --header-h: 58px;
    --fs-body: 16px;
    --fs-mini: 13px;
  }
  .c-header__brand { font-size: 14px; letter-spacing: .15em; }
  .navopener { margin-inline-start: -8px; }
  .c-navscreen { overflow-y: auto; overscroll-behavior: contain; }
  .c-navscreen__inner { min-height: 100%; }
  .c-navscreen__menu li a { min-height: 48px; font-size: clamp(28px, 8vw, 48px); }
  .c-navscreen__social a { min-height: 44px; display: inline-flex; align-items: center; }
  .auth-box { width: min(100vw - 28px, 420px); max-height: 88dvh; overflow-y: auto; padding: 22px; }
  .auth-box :is(input, .btn) { min-height: 44px; font-size: 16px; }
  .auth-close { min-width: 44px; min-height: 44px; }
}

@media (max-width: 768px) {
  .gallery-main { padding: calc(var(--header-h) + 10px) 0 calc(88px + env(safe-area-inset-bottom, 0px)); }
  .gallery-head { padding: 31px var(--pad) 32px; text-align: left; }
  .gallery-title { font-size: clamp(42px, 12vw, 72px); }
  .gallery-sub { margin-inline: 0; max-width: 30em; font-size: 16px; line-height: 1.65; }
  .video-showcase { padding-inline: var(--pad); margin-bottom: 32px; }
  .video-showcase__header { margin-bottom: 16px; }
  .video-showcase__title { font-size: clamp(19px, 5.2vw, 25px); }
  .video-showcase__desc { font-size: 14px; line-height: 1.5; }
  .video-card__thumb { height: auto; aspect-ratio: 16 / 9; }
  .video-card__info { height: auto; min-height: 83px; }
  .video-card__title { font-size: 16px; }
  .video-card__desc { font-size: 14px; }

  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .overview-item { height: auto; min-height: 0; aspect-ratio: 1.14; overflow: hidden; }
  .overview-item:first-child { grid-column: 1 / -1; aspect-ratio: 1.52; }
  .gm-media :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
  .gm-del { width: 44px; height: 44px; }
  .gm-caption__label { font-size: 13px; line-height: 1.25; }
  .gm-caption__by { font-size: 11px; line-height: 1.25; }
  .lightbox-figure :is(img, video) { max-width: calc(100vw - 24px); max-height: 77dvh; }
  :is(.lightbox-close, .video-modal-close) { width: 44px; height: 44px; }

  .gallery-page .c-footer {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 7px;
    padding: 6px var(--pad) calc(6px + env(safe-area-inset-bottom, 0px)); align-items: center;
  }
  .gallery-page .c-footer__item { min-width: 0; width: auto; }
  .gallery-page :is(.c-footer__item a, #gallery-upload-btn) {
    min-height: 44px; padding: 0 4px; font-size: clamp(11px, 3.4vw, 15px);
    line-height: 1.2; letter-spacing: 0; align-content: center;
  }
  .gallery-page .c-footer__count { font-size: 12px; letter-spacing: 0; }
  .gallery-page .upload-status { max-width: 100%; overflow-wrap: anywhere; }
}

@media (max-width: 768px) and (hover: none) {
  .overview-item .gm-caption {
    bottom: 0; padding: 15px 8px 7px; color: #fff; text-align: left;
    background: linear-gradient(transparent, #100e0de8);
  }
  .overview-item.is-visible .gm-caption { opacity: 1; transform: none; }
  .overview-item .gm-caption__by { color: #eee5d9; }
}
