/* ═══════════════════════════════════════════════════════
   Creative Studio · Portfolio  –  style.css
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:  #0e0e0e;
  --white:  #fafafa;
  --gold:   #c9a96e;
  --gold-lt:#e8d5b0;
  --gray1:  #1a1a1a;
  --gray2:  #2a2a2a;
  --gray3:  #444;
  --gray4:  #888;
  --gray5:  #bbb;
  --gray6:  #e8e8e8;
  --text:   #1a1a1a;
  --ease:   cubic-bezier(.25,.46,.45,.94);
  --trans:  0.4s var(--ease);
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'STSong', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ════════════════════════════════════════════════════════
   LOADER
   ════════════════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; }

.loader-logo {
  width: 80px; height: 80px;
  margin: 0 auto 28px;
  animation: loaderSpin 4s linear infinite;
}

.loader-logo svg { width: 100%; height: 100%; }

.loader-ring {
  animation: dashRotate 2s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes dashRotate {
  to { stroke-dashoffset: -24; }
}

.loader-bar-wrap {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.loader-bar {
  height: 100%; width: 0%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.08s linear;
}

.loader-text {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  font-weight: 300;
}

/* ════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  transition: background var(--trans), backdrop-filter var(--trans), box-shadow var(--trans);
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  font-family: var(--font-serif);
}

.dot { color: var(--gold); }

.nav-links {
  display: flex; gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  font-weight: 300;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}

.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */
#hero {
  position: relative; height: 100vh;
  overflow: hidden;
}

.hero-reel {
  position: absolute; inset: 0;
  background: #000;
  z-index: 0;
}

.reel-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  z-index: 0;
}
.reel-layer video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.reel-layer.active { opacity: 1; z-index: 1; }
.reel-layer.active video { transform: scale(1); }
.reel-layer video { transform: scale(1.05); transition: transform 8s var(--ease); }

.reel-empty { background: #0a0a0a; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.75) 100%
  );
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px 120px;
}

.hero-content { max-width: 720px; }

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--gold);
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.5s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.7s forwards;
}

.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.9s forwards;
}

.btn-hero {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 300;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.1s forwards;
}

.btn-hero:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.reel-dots {
  position: absolute;
  bottom: 80px;
  display: flex; gap: 10px;
}

.reel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.reel-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.scroll-hint span {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.3);
  animation: scrollLine 2s ease-in-out infinite;
}

.scroll-hint p {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ════════════════════════════════════════════════════════
   SECTION BASE
   ════════════════════════════════════════════════════════ */
.section { padding: 100px 40px; }

.section-dark {
  background: var(--black);
  color: var(--white);
}

/* ── 视频区 · 古风宣纸背景（仅装饰层，不拦截事件，不影响视频播放） ── */
#video-section {
  position: relative;
  background-color: #ece2cd;
  background-image:
    /* 主山水 · 单一巨幅水墨山峦（渐变浓墨，由浓到淡，全幅背景透出宣纸面板） */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 900' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='m' x1='0' y1='1' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='%231a1a1a' stop-opacity='0.60'/%3E%3Cstop offset='0.55' stop-color='%231a1a1a' stop-opacity='0.40'/%3E%3Cstop offset='1' stop-color='%231a1a1a' stop-opacity='0.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,900 L0,660 C120,635 210,665 300,640 C380,618 430,585 500,600 C560,613 600,560 660,578 C730,598 760,330 840,300 C880,286 905,210 950,250 C985,282 1010,470 1080,470 C1130,470 1175,520 1200,505 L1200,900 Z' fill='url(%23m)'/%3E%3C/svg%3E"),
    /* 顶部标题区横向浓墨带 */
    linear-gradient(180deg, rgba(26,26,26,0.13) 0%, rgba(26,26,26,0.04) 14%, transparent 26%),
    /* 墨韵晕染团 · 左上浓墨散开 */
    radial-gradient(42% 52% at 6% 12%,  rgba(26,26,26,0.30) 0%, rgba(26,26,26,0.13) 42%, transparent 72%),
    /* 墨韵晕染团 · 右下浓墨 */
    radial-gradient(50% 62% at 95% 92%, rgba(26,26,26,0.26) 0%, rgba(26,26,26,0.11) 44%, transparent 74%),
    /* 朱红晕 · 呼应主题色 */
    radial-gradient(34% 44% at 96% 4%,  rgba(158,43,37,0.19) 0%, transparent 62%),
    /* 底部墨色聚拢 · 托底 */
    radial-gradient(100% 95% at 50% 116%, rgba(26,26,26,0.24) 0%, transparent 55%);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* 宣纸纹理（细腻噪点，平铺） */
#video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* 底部墨气托底（单层，不与主山重叠） */
#video-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent 0%, rgba(26,26,26,0.12) 100%);
  pointer-events: none;
  z-index: 0;
}

/* 内容层浮于背景装饰之上（不改变 DOM 与事件，不影响视频） */
#video-section .section-header,
#video-section .tab-bar,
#video-section .tab-panel { position: relative; z-index: 1; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header.light .section-title { color: var(--white); }
.section-header.light .section-desc  { color: rgba(255,255,255,0.5); }

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 14px;
  color: var(--gray4);
  line-height: 1.8;
  font-weight: 300;
}

/* ════════════════════════════════════════════════════════
   TABS
   ════════════════════════════════════════════════════════ */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--gray6);
}

.tab-bar.light { border-color: rgba(255,255,255,0.1); }

.tab {
  background: none; border: none;
  padding: 12px 28px;
  font-size: 13px;
  color: var(--gray4);
  font-family: var(--font-body);
  cursor: pointer;
  position: relative;
  letter-spacing: 1px;
  font-weight: 400;
  transition: color 0.25s;
}

.tab-bar.light .tab { color: rgba(255,255,255,0.4); }
.tab-bar.light .tab:hover { color: rgba(255,255,255,0.8); }
.tab-bar.light .tab.active { color: var(--white); }
.tab-bar.light .tab.active::after { background: var(--gold); }

.tab::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.tab:hover { color: var(--black); }
.tab.active { color: var(--black); }
.tab.active::after { transform: scaleX(1); }

.tab-panel, .design-panel {
  display: none;
  animation: fadeIn 0.4s var(--ease);
}

.tab-panel.active, .design-panel.active { display: block; }

/* ════════════════════════════════════════════════════════
   VIDEO GRID
   ════════════════════════════════════════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 14px;
  background-color: rgba(247, 240, 224, 0.5);
  background-image:
    radial-gradient(60% 50% at 18% 0%,  rgba(26,26,26,0.06) 0%, transparent 60%),
    radial-gradient(60% 50% at 82% 100%, rgba(26,26,26,0.06) 0%, transparent 60%);
  box-shadow: 0 24px 60px rgba(40,30,20,0.10), inset 0 0 0 1px rgba(26,26,26,0.10);
}

.video-card {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform var(--trans), box-shadow var(--trans);
}

.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.12); }

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.thumb-bg {
  width: 100%; height: 100%;
  transition: transform 0.5s var(--ease);
}

.video-card:hover .thumb-bg { transform: scale(1.04); }

.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(0,0,0,0.25);
}

.play-btn svg {
  width: 48px; height: 48px;
  fill: var(--white);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.video-card:hover .play-btn { opacity: 1; }

.video-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; letter-spacing: 2px;
  background: var(--gold);
  color: var(--black);
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 500;
}

.video-info { padding: 16px 20px; }

.video-info h3 {
  font-size: 15px; font-weight: 500;
  margin-bottom: 4px;
}

.video-info p { font-size: 12px; color: var(--gray4); }

/* ════════════════════════════════════════════════════════
   DESIGN GRIDS
   ════════════════════════════════════════════════════════ */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* merged poster + banner module: one masonry grid, mixed portrait/wide */
.poster-banner-grid {
  display: block;
  column-count: 4;
  column-gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.poster-banner-grid .design-card {
  break-inside: avoid;
  width: 100%;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .poster-banner-grid { column-count: 3; } }
@media (max-width: 680px) { .poster-banner-grid { column-count: 2; column-gap: 14px; } }
@media (max-width: 420px) { .poster-banner-grid { column-count: 1; } }

/* merged poster + banner module sub-labels */
.module-sub-label {
  max-width: 1200px;
  margin: 0 auto 20px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 12px;
}
.module-sub-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.module-sub-label:not(:first-child) { margin-top: 48px; }

.design-card {
  border-radius: 4px; overflow: hidden;
  cursor: pointer;
  transition: transform var(--trans);
}

.design-card:hover { transform: translateY(-4px); }

.design-img {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

.design-img.portrait { aspect-ratio: 2/3; }
.design-img.wide { aspect-ratio: 16/5; }

/* real images / video thumbnails */
.design-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.thumb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; display: block; }

/* ── Design image lightbox (click to zoom · wheel / buttons) ── */
.detail-strip { cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  animation: fadeIn 0.3s ease;
}
.lightbox-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.lightbox-stage img {
  max-width: 92vw; max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-stage img.grabbing { cursor: grabbing; }

.lightbox-toolbar {
  position: absolute; top: 20px; right: 24px;
  z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 6px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.lb-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lb-btn:active { transform: scale(0.92); }
.lb-zoom-level {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px; letter-spacing: 1px;
  min-width: 44px; text-align: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }
.lightbox-caption {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px; letter-spacing: 1px; font-weight: 300;
}

.design-placeholder {
  color: rgba(0,0,0,0.25);
  width: 56px; height: 56px;
}

.design-placeholder svg { width: 100%; height: 100%; }
.design-placeholder.light { color: rgba(255,255,255,0.4); }

.design-info {
  padding: 12px 0 6px;
}

.design-cat {
  font-size: 10px; letter-spacing: 2px;
  color: var(--gold); font-weight: 500;
  display: block; margin-bottom: 4px;
}

.design-info h3 {
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.85);
}

/* ── 隐藏文件名（漫剧作品保留显示） ────────────────── */
.video-info h3 { display: none; }
#panel-manga .video-info h3 { display: block; }
.design-info h3 { display: none; }
.detail-name { display: none; }

/* ── Overview (首页总览 · 可滑动展示框) ──────────────── */
.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.ov-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ov-card:hover { border-color: rgba(201, 169, 110, 0.4); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }

.ov-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ov-card-cat {
  font-size: 13px; letter-spacing: 2px;
  color: var(--gold); font-weight: 400;
}
.ov-card-count { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 1px; }

/* 单个可滑动轮播框 */
.ov-slider {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #000;
}
.ov-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.ov-track img {
  flex-shrink: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
  user-select: none;
}

/* 左右切换按钮（悬停显示） */
.ov-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(201, 169, 110, 0.5);
  color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, opacity 0.25s;
  opacity: 0;
}
.ov-slider:hover .ov-btn { opacity: 1; }
.ov-btn:hover { background: rgba(201, 169, 110, 0.85); border-color: var(--gold); }
.ov-btn:active { transform: translateY(-50%) scale(0.92); }
.ov-prev { left: 8px; }
.ov-next { right: 8px; }

/* 底部进度圆点 */
.ov-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5;
}
.ov-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.ov-dot.active { background: var(--gold); transform: scale(1.4); }

/* Logo / IP 占位框 */
.ov-empty {
  height: 300px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px; letter-spacing: 1px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02) 0 10px,
    transparent 10px 20px
  );
}

/* ── Detail showcase ──────────────────────────────────── */
.detail-showcase {
  display: flex; gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.detail-card { flex: 1; min-width: 160px; max-width: 220px; cursor: pointer; }

.detail-strip {
  height: 420px; border-radius: 4px;
  position: relative; overflow: hidden;
  transition: transform var(--trans);
}

.detail-card:hover .detail-strip { transform: translateY(-4px); }

.detail-label {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  font-size: 9px; letter-spacing: 2px;
  background: rgba(0,0,0,0.2);
  color: rgba(0,0,0,0.5);
  padding: 4px 12px; border-radius: 20px;
}

.detail-label.light { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }

.detail-name {
  font-size: 12px; color: rgba(255,255,255,0.5);
  text-align: center; padding-top: 12px;
}

/* ── Logo grid ──────────────────────────────────────── */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.logo-card {
  border-radius: 4px; overflow: hidden;
  cursor: pointer;
  transition: transform var(--trans);
}

.logo-card:hover { transform: translateY(-4px); }

.logo-display {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}

.logo-display img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; padding: 16px; background: #fff; }

.logo-card p {
  font-size: 12px; color: rgba(255,255,255,0.45);
  padding-top: 10px; text-align: center;
}

/* ── IP grid ─────────────────────────────────────────── */
.ip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.ip-card {
  border-radius: 8px; overflow: hidden;
  cursor: pointer;
  transition: transform var(--trans);
  background: rgba(255,255,255,0.04);
}

.ip-card:hover { transform: translateY(-6px); }

.ip-display {
  height: 260px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px 8px 0 0;
}

.ip-display img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }

.ip-info { padding: 16px 20px; }

.ip-info h3 { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.9); margin-bottom: 4px; }
.ip-info p  { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════ */
.about-section { background: var(--white); }

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-visual { display: flex; flex-direction: column; align-items: center; gap: 32px; }

.avatar-ring {
  position: relative;
  width: 214px; height: 282px;
}

.avatar-inner {
  width: 200px; height: 268px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray6);
  position: absolute; top: 7px; left: 7px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 34px rgba(201,169,110,0.14);
}

.avatar-svg { width: 100%; height: 100%; }

.avatar-deco {
  position: absolute; inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(201,169,110,0.45);
  pointer-events: none;
}

.about-tags {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}

.tag {
  font-size: 11px; letter-spacing: 1px;
  padding: 6px 16px;
  border: 1px solid var(--gray6);
  border-radius: 20px;
  color: var(--gray3);
  font-weight: 300;
}

.about-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray3);
  margin-bottom: 16px;
  font-weight: 300;
}

.about-desc strong { font-weight: 500; color: var(--black); }
.about-desc em { font-style: normal; color: var(--gold); }

.about-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-bio { margin-top: 12px; display: flex; flex-direction: column; gap: 22px; }

.bio-item { position: relative; padding-left: 18px; }

.bio-item::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.bio-cat {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.bio-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray3);
  font-weight: 300;
  margin: 0;
}

.skills-bar { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }

.skill-row {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  align-items: center;
  gap: 14px;
}

.skill-row > span:first-child { font-size: 12px; color: var(--gray4); }
.pct { font-size: 12px; color: var(--gold); text-align: right; }

.bar {
  height: 2px;
  background: var(--gray6);
  border-radius: 1px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 1px;
  transition: width 1.2s var(--ease);
}

/* ════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════ */
.contact-section { background: var(--white); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-content: start;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--gray6);
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,169,110,0.1);
}

.contact-icon {
  width: 40px; height: 40px;
  background: rgba(201,169,110,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--gold);
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-card h3 { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.contact-card p  { font-size: 12px; color: var(--gray4); }

.wechat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wechat-qr {
  width: 120px;
  height: auto;
  margin-top: 12px;
  border-radius: 6px;
  border: 1px solid var(--gray6);
  background: #fff;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ── Form ─────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label { font-size: 12px; color: var(--gray4); letter-spacing: 1px; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray6);
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.25s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.btn-submit {
  padding: 14px 32px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.3s;
  align-self: flex-start;
}

.btn-submit:hover { background: var(--gold); color: var(--black); }

.form-success {
  font-size: 13px; color: #3a8c5c;
  padding: 12px 16px;
  background: rgba(58,140,92,0.08);
  border-radius: 4px;
  border: 1px solid rgba(58,140,92,0.2);
}

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.footer {
  background: var(--black);
  padding: 48px 40px;
}

.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo { font-size: 20px; font-weight: 700; color: var(--white); font-family: var(--font-serif); }

.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.3); transition: color 0.25s; letter-spacing: 1px; }
.footer-links a:hover { color: var(--gold); }

.footer-beian { flex-basis: 100%; text-align: center; margin-top: 14px; font-size: 12px; color: rgba(255,255,255,0.4); transition: color 0.25s; letter-spacing: 1px; }
.footer-beian:hover { color: var(--gold); }

/* ════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  #navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(12px);
    padding: 24px 32px;
    gap: 20px;
    align-items: flex-start;
  }

  .section { padding: 70px 20px; }
  .hero-title { font-size: 32px; }
  .tab { padding: 10px 14px; font-size: 12px; }
  .video-grid { grid-template-columns: 1fr; }
  .design-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .detail-showcase { flex-direction: column; align-items: center; }
  .detail-strip { height: 280px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .ip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .logo-grid { grid-template-columns: 1fr; }
  .ip-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   VIDEO MODAL — custom controls + draggable progress bar
   ════════════════════════════════════════════════════════ */
.video-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  padding: 24px;
}

.video-modal-inner {
  max-width: 960px;
  width: 100%;
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: -42px; right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
}

.video-modal-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 300;
}

.video-modal-player {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.video-modal-player video {
  width: 100%;
  max-height: 80vh;
  display: block;
  cursor: pointer;
}

.video-modal-title {
  font-size: 16px;
  color: #fff;
  font-weight: 400;
  margin-top: 14px;
  text-align: center;
}

/* controls bar —— 常驻可见，进度条随时可拖 */
.video-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 44px 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 1;
  pointer-events: auto;
}

.video-play-pause {
  width: 32px; height: 32px;
  flex: 0 0 32px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  pointer-events: auto;
}

.video-play-pause:hover { background: rgba(255,255,255,0.22); }
.video-play-pause svg { width: 14px; height: 14px; fill: currentColor; }
.video-play-pause .icon-play { display: none; }
.video-play-pause.is-paused .icon-play { display: block; }
.video-play-pause.is-paused .icon-pause { display: none; }

/* progress bar */
.video-progress-wrap {
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
}

.video-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  position: relative;
  transition: height 0.15s ease;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
}

.video-progress-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 0%;
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(201,169,110,0.22);
  transition: transform 0.2s;
}

.video-progress-wrap:hover .video-progress-handle,
.video-progress-wrap.dragging .video-progress-handle {
  transform: translate(-50%, -50%) scale(1.25);
}

.video-progress-wrap:hover .video-progress-track,
.video-progress-wrap.dragging .video-progress-track {
  height: 5px;
}

.video-time {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: auto;
}

.video-time .video-sep { margin: 0 3px; opacity: 0.6; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
