/* ═══════════════════════════════════════════════════════════
   project.css — 项目详情页骨架（alibi / insync / aftertaste…）
   在 base.css 之后引入。皮肤细节由变量决定（* 表示有默认值）：

   --font-display *        标题字体（默认 Space Grotesk）
   --font-display-weight * 标题字重（默认 700；Archivo Black 用 400）
   --title-glow *          hero 标题发光（默认无）
   --accent-soft           柔和强调色（chip / 卡片投影用）
   --chip-bg *             meta chip 背景（默认白）
   --frame-border *        大视觉框描边（默认 1.5px --line）
   --frame-shadow          大视觉框投影
   --frame-bg *            大视觉框背景（默认白）
   --box-border *          图片框描边（默认 1.5px --line）
   --box-radius *          图片框圆角（默认 14px；平面风格设 0）
   --box-bg *              图片框背景（默认白）
   --box-shadow *          图片框投影（默认 3px 3px 0 --accent-soft；不要就设 none）
   --box-hover-transform * 图片框 hover 位移（默认 translate(-3px,-3px)；不要就设 none）
   --box-hover-shadow *    图片框 hover 投影（不要就设 none）
   --box-placeholder *     占位文字颜色
   --footer-hover-text *   next-project hover 时文字色（默认 #111）
   ═══════════════════════════════════════════════════════════ */

/* ───────── HERO ───────── */
.hero { padding: 130px 48px 0; text-align: center; }
.hero-tag {
  font-family: 'VT323', monospace; font-size: 16px;
  letter-spacing: 3px; color: var(--accent-hover, var(--accent));
  margin-bottom: 18px;
}
.hero-tag::before { content: '✦ '; }
.hero-tag::after { content: ' ✦'; }
.hero-logo { max-width: min(360px, 78vw); max-height: 120px; object-fit: contain; margin-bottom: 22px; }
.hero-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: var(--font-display-weight, 700);
  font-size: clamp(44px, 8vw, 100px);
  text-transform: uppercase; letter-spacing: -1px;
  line-height: 0.92; margin-bottom: 22px;
  text-shadow: var(--title-glow, none);
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-desc {
  font-size: 15px; color: var(--muted); line-height: 1.8;
  max-width: 620px; margin: 0 auto 28px;
}
.hero-meta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}
.meta-chip {
  font-family: 'VT323', monospace; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--chip-bg, white); padding: 5px 16px;
  letter-spacing: 0.5px; color: var(--text);
  box-shadow: 2px 2px 0 var(--accent-soft);
}

/* ───────── KEY VISUAL（trailer / 封面）───────── */
.key-visual {
  margin: 0 auto;
  max-width: 1100px;
  border: var(--frame-border, 1.5px solid var(--line));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--frame-shadow, none);
  aspect-ratio: 16/9;
  background: var(--frame-bg, white);
  display: flex; align-items: center; justify-content: center;
}
.key-visual img, .key-visual video, .key-visual iframe { width: 100%; height: 100%; object-fit: cover; border: none; display: block; }

/* ───────── SECTIONS ───────── */
.section { padding: 80px 48px 0; max-width: 1200px; margin: 0 auto; }
.section:last-of-type { padding-bottom: 90px; }
.section-head {
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px; margin-bottom: 14px;
}
.section-num { font-family: 'VT323', monospace; font-size: 20px; color: var(--accent-hover, var(--accent)); letter-spacing: 1px; }
.section-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: var(--font-display-weight, 700);
  font-size: clamp(24px, 3.5vw, 38px);
  text-transform: uppercase; letter-spacing: -0.5px;
}
.section-desc { font-size: 14px; color: var(--muted); line-height: 1.75; max-width: 720px; margin-bottom: 32px; }

/* ───────── 图片网格（c1~c4 列数 / c21 左大右小 / c12 左小右大）───────── */
.img-row { display: grid; gap: 16px; margin-bottom: 16px; }
.img-row.c1 { grid-template-columns: 1fr; }
.img-row.c2 { grid-template-columns: 1fr 1fr; }
.img-row.c3 { grid-template-columns: repeat(3, 1fr); }
.img-row.c4 { grid-template-columns: repeat(4, 1fr); }
.img-row.c21 { grid-template-columns: 2fr 1fr; }
.img-row.c12 { grid-template-columns: 1fr 2fr; }
.img-box {
  border: var(--box-border, 1.5px solid var(--line));
  border-radius: var(--box-radius, 14px);
  overflow: hidden; background: var(--box-bg, white);
  aspect-ratio: 16/9;
  box-shadow: var(--box-shadow, 3px 3px 0 var(--accent-soft));
  display: flex; align-items: center; justify-content: center;
  font-family: 'VT323', monospace; color: var(--box-placeholder, var(--muted)); font-size: 14px; letter-spacing: 1px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.img-box:hover {
  transform: var(--box-hover-transform, translate(-3px,-3px));
  box-shadow: var(--box-hover-shadow, 6px 6px 0 var(--accent));
}
.img-box img, .img-box video, .img-box iframe { width: 100%; height: 100%; object-fit: cover; border: none; display: block; }
.img-box.contain img { object-fit: contain; padding: 18px; background: var(--box-bg, white); }
.img-box.tall { aspect-ratio: 3/4; }
.img-box.square { aspect-ratio: 1/1; }
.img-box.wide { aspect-ratio: 21/9; }
.img-caption {
  font-family: 'VT323', monospace; font-size: 14px;
  color: var(--muted); letter-spacing: 1px;
  text-align: center; margin: -6px 0 16px;
}

/* ───────── 通栏固定 KV BANNER（页面内容从下方盖上来）─────────
   用法：.banner（可加 data-trailer="youtube链接" → hover 出 PLAY TRAILER 光标，点击打开）
         内放 .banner-bg 图 + .banner-center（logo 或 title + tag + desc）
         后接 .banner-spacer 占位，正文全部包进 .page-content
   可调变量：--banner-h 高度 / --banner-tint 压暗层颜色 */
.banner {
  position: fixed; top: 0; left: 0; right: 0;
  height: clamp(380px, var(--banner-h, calc(100vh - 260px)), 880px);
  z-index: 0; overflow: hidden;
}
.banner-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner::after { content: ''; position: absolute; inset: 0; background: var(--banner-tint, rgba(0,0,0,0.34)); z-index: 1; }
.banner-center {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 56px 24px 0;
}
.banner-logo { max-width: min(400px, 60vw); max-height: 38%; object-fit: contain; filter: drop-shadow(0 4px 18px rgba(0,0,0,0.35)); }
.banner-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: var(--font-display-weight, 700);
  font-size: clamp(48px, 7vw, 92px);
  text-transform: uppercase; letter-spacing: -1px; line-height: 0.95;
  color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.45);
}
.banner-title em { color: var(--accent); font-style: normal; }
.banner-tag { font-family: 'VT323', monospace; font-size: 17px; letter-spacing: 3px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.55); }
.banner-tag::before { content: '✦ '; }
.banner-tag::after { content: ' ✦'; }
.banner-desc { font-size: 14.5px; line-height: 1.8; max-width: 640px; color: #fff; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.trailer-button {
  display: none; align-items: center; justify-content: center;
  margin-top: 18px; padding: 11px 18px;
  border: 1px solid rgba(255,255,255,0.72); color: #fff;
  background: rgba(10,10,20,0.45); backdrop-filter: blur(8px);
  font-family: 'VT323', monospace; font-size: 17px; letter-spacing: 2px;
  cursor: pointer;
}
.banner-spacer { height: clamp(380px, var(--banner-h, calc(100vh - 260px)), 880px); }
.page-content {
  position: relative; z-index: 1;
  background: radial-gradient(var(--dot) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  background-color: var(--bg);
  border-top: 1.5px solid var(--line);
}

/* ───────── 紧凑项目信息表 ───────── */
.info-table {
  max-width: 900px; margin: 0 auto; padding: 36px 48px 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: center;
  column-gap: 64px; row-gap: 7px;
  font-size: 13.5px;
}
.info-item { display: flex; gap: 10px; align-items: baseline; }
.info-item.wide { grid-column: 1 / -1; }
.info-label {
  font-family: 'VT323', monospace; font-size: 16px;
  letter-spacing: 1.5px; color: var(--muted);
  white-space: nowrap;
}
.info-value { line-height: 1.6; }
.info-value em { color: var(--accent-hover, var(--accent)); font-style: normal; font-weight: 600; }

/* ───────── NEXT PROJECT ───────── */
.next-project {
  margin-top: 90px;
  background: var(--footer-bg); color: white;
  padding: 64px 48px;
  display: flex; justify-content: space-between; align-items: center;
  text-decoration: none; cursor: none;
  border-top: 1.5px solid var(--accent);
  transition: background 0.25s, color 0.25s;
}
.next-project:hover { background: var(--accent); color: var(--footer-hover-text, #111); }
.next-label { font-family: 'VT323', monospace; font-size: 15px; letter-spacing: 3px; opacity: 0.55; margin-bottom: 10px; }
.next-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: var(--font-display-weight, 700);
  font-size: clamp(28px, 5vw, 56px);
  text-transform: uppercase; line-height: 1;
}
.next-arrow { font-family: 'VT323', monospace; font-size: 52px; }

/* ───────── 滚动叙事组件 design-scroll（三阶段角色设计等）─────────
   用法：.design-scroll > .ds-sticky > [.ds-text(kicker/title/stage-texts/progress) + .ds-visuals(figures)]
   桌面端 300vh 滚动切换阶段；移动端 / reduced-motion 自动纵向平铺显示 figcaption
   JS 在 common.js，自动绑定所有 .design-scroll */
.design-scroll { height: 300vh; }
.ds-sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: 32% 1fr;
  align-items: center; gap: 36px;
  padding: 90px 0 40px;
}
.ds-text { text-align: left; }
.ds-kicker { font-family: 'VT323', monospace; font-size: 16px; letter-spacing: 3px; color: var(--accent-hover, var(--accent)); margin-bottom: 10px; }
.ds-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: var(--font-display-weight, 700);
  font-size: clamp(32px, 4vw, 54px); text-transform: uppercase;
  line-height: 1; margin-bottom: 26px;
}
.ds-stage-text { display: none; }
.ds-stage-text.is-active { display: block; animation: dsFade 0.8s ease; }
@keyframes dsFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ds-stage-text h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px; letter-spacing: 0.5px; color: var(--accent-hover, var(--accent)); margin-bottom: 10px; }
.ds-stage-text p { font-size: 14px; color: var(--text); line-height: 1.8; max-width: 340px; }
.ds-progress { display: flex; gap: 22px; margin-top: 32px; }
.ds-progress span {
  font-family: 'VT323', monospace; font-size: 15px; letter-spacing: 1.5px;
  color: var(--muted); opacity: 0.75;
  padding-top: 8px; border-top: 1px solid var(--line);
  min-width: 74px;
  transition: color 0.5s ease, border-color 0.5s ease, opacity 0.5s ease;
}
.ds-progress span.is-active { color: var(--accent-hover, var(--accent)); border-top-color: var(--accent); opacity: 1; }
.ds-visuals { position: relative; height: min(78vh, 640px); }
.ds-visuals figure {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transform: scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.ds-visuals figure.is-active { opacity: 1; transform: scale(1); }
.ds-visuals img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ds-visuals figcaption { display: none; }
.ds-outro { max-width: 720px; padding-top: 48px; }
.ds-outro p { font-size: 14.5px; color: var(--text); line-height: 1.9; margin-bottom: 18px; }

@media (max-width: 760px) {
  .design-scroll { height: auto; }
  .ds-sticky { position: static; height: auto; display: block; padding: 0; }
  .ds-title { margin-bottom: 20px; }
  .ds-stage-text, .ds-progress { display: none !important; }
  .ds-visuals { height: auto; }
  .ds-visuals figure { position: static; opacity: 1; transform: none; margin-bottom: 36px; }
  .ds-visuals img { height: auto; max-height: 70vh; }
  .ds-visuals figcaption { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-top: 10px; }
  .ds-visuals figcaption strong { display: block; font-family: 'VT323', monospace; font-weight: 400; font-size: 15px; letter-spacing: 1.5px; color: var(--accent-hover, var(--accent)); margin-bottom: 4px; }
}
@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  .trailer-button { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .design-scroll { height: auto; }
  .ds-sticky { position: static; height: auto; display: block; padding: 0; }
  .ds-stage-text, .ds-progress { display: none !important; }
  .ds-stage-text.is-active { animation: none; }
  .ds-visuals { height: auto; }
  .ds-visuals figure { position: static; opacity: 1; transform: none; transition: none; margin-bottom: 36px; }
  .ds-visuals img { height: auto; max-height: 70vh; }
  .ds-visuals figcaption { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-top: 10px; }
  .ds-visuals figcaption strong { display: block; font-family: 'VT323', monospace; font-weight: 400; font-size: 15px; letter-spacing: 1.5px; color: var(--accent-hover, var(--accent)); margin-bottom: 4px; }
}

/* ───────── MOBILE ───────── */
@media (max-width: 760px) {
  .hero { padding: 110px 20px 0; }
  .section { padding: 64px 20px 0; }
  .img-row.c2, .img-row.c3, .img-row.c4, .img-row.c21, .img-row.c12 { grid-template-columns: 1fr; }
  .next-project { padding: 48px 24px; }
  .banner, .banner-spacer { height: clamp(300px, 58vh, 560px); }
  .banner-desc { font-size: 13px; }
  .info-table { grid-template-columns: 1fr; row-gap: 6px; padding: 28px 24px 0; column-gap: 0; }
  [data-trailer] { cursor: pointer; }
}
