/* ============================================================
   SUMU-DESIGN · 阿木作品集
   暗色 + 霓虹绿 + 暗紫 + 编辑式排版
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  overflow-y: scroll;
  background: #000;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none; /* 隐藏系统光标，用自定义 */
}

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

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

button {
  font-family: inherit;
  cursor: none;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- Variables ---------- */
:root {
  --color-black: #000000;
  --color-black-soft: #0a0a0a;
  --color-neon-green: #8BFF2D;
  --color-neon-green-dim: #5aa800;
  --color-dark-purple: #7c3aed;
  --color-warm-amber: #c8946b;
  --color-cream: #f5f0e8;
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.65);
  --text-muted: rgba(255,255,255,0.35);
  
  --surface-dark: rgba(0,0,0,0.85);
  --surface-glass: rgba(255,255,255,0.04);
  --surface-border: rgba(255,255,255,0.1);
  
  --font-display: 'Playfair Display', 'Noto Serif SC', serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  
  --cursor-size: 12px;
  --cursor-hover-size: 36px;
}

/* ---------- Custom Cursor ---------- */
.custom-cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-neon-green);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: transform 0.05s ease-out;
}

.custom-cursor {
  position: fixed;
  width: var(--cursor-size);
  height: var(--cursor-size);
  border: 1.5px solid var(--color-neon-green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  mix-blend-mode: screen;
  backdrop-filter: none;
}

.custom-cursor.is-hovering {
  width: var(--cursor-hover-size);
  height: var(--cursor-hover-size);
  border-color: var(--color-neon-green);
  background: rgba(139,255,45,0.08);
  box-shadow: 0 0 20px rgba(139,255,45,0.3);
}

/* ---------- Fade Layer ---------- */
.fade-layer {
  position: fixed;
  inset: 0;
  background: #000;
  pointer-events: none;
  z-index: 9990;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fade-layer.active {
  opacity: 1;
}

/* ---------- Side Navigation ---------- */
.side-nav {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 120px;
  padding-bottom: 60px;
  pointer-events: none;
}

.side-nav a,
.side-nav button {
  pointer-events: auto;
}

.nav-logo {
  position: absolute;
  top: 32px;
  left: 0;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
  font-style: italic;
}

.nav-logo-sub {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--color-neon-green);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  margin-top: 3px;
}

.nav-dots {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-dot {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 4px 8px 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-dot em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s ease;
}

.nav-dot:hover .nav-line {
  width: 40px;
  background: var(--text-primary);
}

.nav-dot:hover em {
  opacity: 1;
  transform: translateX(0);
}

.nav-dot.active .nav-line {
  width: 48px;
  background: var(--color-neon-green);
  box-shadow: 0 0 8px rgba(139,255,45,0.5);
}

.nav-dot.active em {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-neon-green);
}

.nav-footer {
  position: absolute;
  bottom: 32px;
  left: 0;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

/* ---------- Section Base ---------- */
.section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.section-header-row {
  padding: 120px 120px 40px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-label.light .section-num,
.section-label.light .section-tag {
  color: var(--text-primary);
}

.section-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--color-neon-green);
  font-weight: 400;
}

.section-tag {
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.section-title.big {
  font-size: 72px;
}

.section-title.light {
  color: var(--text-primary);
}

.section-desc {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 1px;
}

/* ============================================================
   01 HERO
   ============================================================ */
.hero {
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #000;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.35) 70%,
    rgba(0,0,0,0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  padding: 0 200px;
  gap: 60px;
  padding-left: 220px;
  align-items: center;
}

.hero-left {
  flex: 1;
  max-width: 720px;
}

.hero-right {
  align-self: flex-end;
  padding-bottom: 80px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-tag {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--color-neon-green);
  font-weight: 500;
}

.hero-dot {
  color: var(--text-muted);
}

.hero-year {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  margin-bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 32px;
}

.hero-title-en {
  font-size: 108px;
  letter-spacing: -4px;
  line-height: 1;
  color: var(--text-primary);
}

.hero-title-cn {
  font-size: 36px;
  letter-spacing: 8px;
  color: var(--color-neon-green);
  font-family: var(--font-body);
  font-weight: 700;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-top: 8px;
  margin-bottom: 24px;
  position: relative;
}

.hero-subtitle::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--color-neon-green);
  box-shadow: 0 0 8px rgba(139,255,45,0.5);
}

.hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 48px;
  max-width: 420px;
}

.hero-cta {
  margin-top: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1.5px solid var(--color-neon-green);
  background: rgba(139,255,45,0.05);
  color: var(--color-neon-green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--color-neon-green);
  color: var(--color-black);
  box-shadow: 0 0 30px rgba(139,255,45,0.4);
  transform: translateY(-2px);
}

.hero-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-align: right;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--text-muted));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

.scroll-indicator span {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

/* ============================================================
   02 ABOUT
   ============================================================ */
.about {
  background: #000;
  position: relative;
  z-index: 2;
}

.about-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.about-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.35) 100%
  );
}

.about-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 220px 0 160px;
}

.about-text {
  max-width: 560px;
  text-align: left;
}

.about-paragraph {
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.about-skills {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-bar {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-neon-green);
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(139,255,45,0.5);
}

/* ============================================================
   03 PROJECTS · 横向 Coverflow 轮播（底部居中）
   ============================================================ */
.projects {
  background: #000;
  scroll-snap-align: none;
  overflow: visible;
  height: 100vh;
  min-height: auto;
  position: relative;
  z-index: 3;
}

/* 背景视频 */
.projects-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  filter: brightness(0.55);
  pointer-events: none;
  will-change: transform;
}

/* 遮罩 */
.projects-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 30%,
    rgba(0,0,0,0.45) 70%,
    rgba(0,0,0,0.75) 100%
  );
}

/* 内容区：参考影像动画 flex 行布局 */
.projects-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  padding: 0 120px;
  align-items: center;
  gap: 80px;
}

.projects-text {
  flex: 1;
  max-width: 520px;
  text-align: left;
}

/* 引用语 · 参考 film-quote */
.projects-quote {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-primary);
  margin-top: 32px;
  letter-spacing: 1px;
}

/* 右侧项目列表 · 参考 film-sidebar */
.projects-sidebar {
  width: 340px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--surface-border);
  transform: translateX(100px);
}

.projects-item {
  padding: 14px 0 14px 18px;
  border-bottom: 1px solid var(--surface-border);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: color 0.25s ease, border-left-color 0.25s ease, padding-left 0.25s ease;
  border-left: 2px solid transparent;
}

.projects-item:hover {
  color: var(--color-neon-green);
  border-left-color: var(--color-neon-green);
  padding-left: 14px;
}

.projects-item.is-active {
  color: var(--color-neon-green);
  border-left-color: var(--color-neon-green);
  padding-left: 14px;
  background: rgba(139,255,45,0.04);
}

.projects-item-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--color-neon-green);
  flex-shrink: 0;
  width: 32px;
}

/* 居中卡片正上方项目名称 */
.projects-carousel-title {
  position: absolute;
  bottom: 425px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  transition: opacity 0.3s ease;
}

/* 底部居中 Carousel 容器 */
.projects-carousel {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  width: 440px;
  height: 247px;
  pointer-events: auto;
}

/* 统一 16:9 · PS 风格卡片 */
.project-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 247px;
  transform-origin: center center;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 18px;
  overflow: hidden;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.5),
    0 0 0 0 rgba(255,255,255,0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* PS 风格：选中卡片有发光边框 + 强外发光（通过 active 类控制） */
.project-slide.is-active {
  border-color: rgba(139,255,45,0.6);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.6),
    0 0 30px rgba(139,255,45,0.25),
    0 0 0 1px rgba(139,255,45,0.3) inset;
}

/* 玻璃高光反射层（顶部斜向柔光，轻量版不用 mix-blend-mode） */
.project-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0) 65%,
    rgba(255,255,255,0.03) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-slide.is-active::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0) 70%,
    rgba(255,255,255,0.06) 100%
  );
}

/* 边缘卡片：高光减弱 */
.project-slide.blur-card::before {
  opacity: 0.4;
}

.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-slide.is-active img {
  transform: scale(1.03);
}

/* PS 风格底部标签栏已移除（按用户要求删除） */

/* 滚轮提示 · 卡片下方居中 */
.projects-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  white-space: nowrap;
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* 小屏手机 projects 堆叠式（保留此断点给更小屏幕） */
@media (max-width: 800px) {
  .projects { height: auto; min-height: 100vh; padding: 80px 0; }
  .projects-bg-overlay { background: rgba(0,0,0,0.5); }
  .projects-content { flex-direction: column; padding: 40px; gap: 32px; padding-top: 40px; }
  .projects-quote { font-size: 20px; margin-top: 20px; }
  .projects-sidebar { width: 100%; border-left: none; border-top: 1px solid var(--surface-border); padding-top: 16px; transform: none; }
  .projects-carousel-title { position: relative; bottom: auto; left: auto; transform: none; font-size: 28px; margin: 32px auto 0; }
  .projects-carousel { position: relative; left: auto; bottom: auto; transform: none; width: 320px; height: 180px; margin: 40px auto 0; z-index: 15; pointer-events: auto; }
  .project-slide { width: 320px; height: 180px; pointer-events: auto; }
  .projects-hint { bottom: 20px; left: 50%; transform: translateX(-50%); }
}

/* 中等屏幕 projects 微调（800px ~ 1200px） */
@media (min-width: 801px) and (max-width: 1200px) {
  .projects-content { padding: 0 80px; gap: 40px; }
  .projects-sidebar { width: 260px; }
  .projects-sidebar { transform: translateX(60px); }
  .projects-carousel-title { bottom: 350px; font-size: 36px; }
  .projects-carousel { bottom: 50px; width: 360px; height: 202px; }
  .project-slide { width: 360px; height: 202px; }
  .projects-hint { bottom: 30px; }
}

/* ============================================================
   04 GALLERY
   ============================================================ */
.gallery {
  background: #050505;
  position: relative;
  z-index: 4;
}

/* 筛选按钮条 */
.gallery-filter {
  padding: 0 120px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  padding: 8px 20px;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s ease;
  font-family: var(--font-ui, 'Inter', sans-serif);
  text-transform: uppercase;
}

.filter-btn:hover {
  border-color: var(--color-neon-green);
  color: var(--color-neon-green);
}

.filter-btn.is-active {
  background: var(--color-neon-green);
  border-color: var(--color-neon-green);
  color: #000;
  font-weight: 600;
}

.gallery-masonry {
  padding: 0 120px 120px;
  column-count: 4;
  column-gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  display: block;
  cursor: none;
  transition: transform 0.4s ease, opacity 0.35s ease;
  margin-bottom: 16px;
  break-inside: avoid;
}

.gallery-item:hover {
  transform: scale(1.02);
  z-index: 5;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--color-neon-green);
  z-index: 2;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-label {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   05 FILM
   ============================================================ */
.film {
  background: #000;
  position: relative;
  z-index: 5;
}

.film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
  pointer-events: none;
  will-change: transform, opacity;
}

.film-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.8) 100%
  );
}

.film-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  padding: 0 120px;
  align-items: center;
  gap: 80px;
}

.film-text {
  flex: 1;
  max-width: 520px;
}

.film-quote {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.4;
  font-style: italic;
  color: var(--text-primary);
  margin-top: 32px;
  letter-spacing: 1px;
}

.film-sidebar {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--surface-border);
  padding-left: 32px;
}

.film-item {
  padding: 16px 0 16px 16px;
  border-bottom: 1px solid var(--surface-border);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  display: flex;
  gap: 16px;
  align-items: center;
  transition: color 0.3s ease, border-color 0.3s ease, padding-left 0.3s ease;
  cursor: none;
  border-left: 2px solid transparent;
}

.film-item:hover {
  color: var(--color-neon-green);
  border-left-color: var(--color-neon-green);
  padding-left: 12px;
}

.film-item:active {
  background: rgba(139,255,45,0.05);
}

.film-item-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--color-neon-green);
  flex-shrink: 0;
}

/* ============================================================
   06 CONTACT
   ============================================================ */
.contact {
  background: #000;
  position: relative;
  z-index: 6;
}

.contact-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5);
  pointer-events: none;
  will-change: transform, opacity;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.88);
}

.contact-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.contact-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  margin-top: 24px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.contact-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--color-neon-green);
  letter-spacing: 2px;
  margin-bottom: 48px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 48px;
  border-top: 1px solid var(--surface-border);
}

.contact-link {
  padding: 20px 24px;
  border-bottom: 1px solid var(--surface-border);
  border-right: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.3s ease;
  text-align: left;
}

.contact-link:nth-child(2n) {
  border-right: none;
}

.contact-link:hover {
  background: rgba(139,255,45,0.05);
}

.contact-link-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-link-value {
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.back-top-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-secondary);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.back-top-btn:hover {
  border-color: var(--color-neon-green);
  color: var(--color-neon-green);
  background: rgba(139,255,45,0.05);
}

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  border-top: 1px solid var(--surface-border);
}

.footer-divider {
  margin: 0 12px;
  color: var(--color-neon-green);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.modal-overlay.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  font-size: 28px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: color 0.3s ease;
  z-index: 3;
}

.modal-close:hover {
  color: var(--color-neon-green);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.modal-gallery {
  position: relative;
  background: #0a0a0a;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 主图容器 */
.modal-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}

.modal-gallery-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 5;
  pointer-events: none;
}

.modal-gallery-prev,
.modal-gallery-next {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all 0.3s ease;
}

.modal-gallery-prev:hover,
.modal-gallery-next:hover {
  border-color: var(--color-neon-green);
  color: var(--color-neon-green);
  box-shadow: 0 0 12px rgba(139,255,45,0.3);
}

.modal-gallery-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 2px;
  letter-spacing: 1px;
}

/* 底部缩略图条 */
.modal-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
  scrollbar-width: thin;
}

.modal-gallery-thumbs::-webkit-scrollbar { height: 4px; }
.modal-gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.modal-thumb {
  flex: 0 0 auto;
  width: 100px;
  height: 60px;
  border-radius: 3px;
  overflow: hidden;
  cursor: none;
  border: 1.5px solid rgba(255,255,255,0.1);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.modal-thumb:hover {
  opacity: 0.85;
  border-color: rgba(255,255,255,0.3);
}

.modal-thumb.is-active {
  opacity: 1;
  border-color: var(--color-neon-green);
  box-shadow: 0 0 0 1px var(--color-neon-green), 0 0 12px rgba(139,255,45,0.25);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info {
  padding: 20px 0;
}

.modal-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--color-neon-green);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.modal-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.modal-detail {
  border-top: 1px solid var(--surface-border);
  padding-top: 20px;
}

.modal-detail-row {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-detail-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  width: 80px;
  flex-shrink: 0;
}

.modal-detail-value {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

/* ============================================================
   视频弹窗（点击 Film 条目打开）
   ============================================================ */
.video-modal {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

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

.video-modal-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  animation: slideUp 0.4s ease;
}

.video-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.video-modal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--color-neon-green);
}

.video-modal-player {
  position: relative;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-modal-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* 竖屏视频特殊处理 */
.video-modal-player video[src*="stage-02"],
.video-modal-player video[src*="stage-05"] {
  object-fit: contain;
  max-height: 80vh;
}

.video-modal-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Gallery 图片详情灯箱 */
.gallery-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 90vw;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.gallery-lightbox-inner img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
  background: #0a0a0a;
}

.gallery-lightbox-info {
  text-align: left;
  padding-top: 12px;
}

.gallery-lightbox-meta {
  margin-bottom: 12px;
}

.gallery-lightbox-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--color-neon-green);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gallery-lightbox-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.gallery-lightbox-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin: 0;
}

/* ============================================================
   RESPONSIVE - Mobile (< 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  
  /* Hide custom cursor on touch devices */
  .custom-cursor, .custom-cursor-dot {
    display: none;
  }
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .project-slide { cursor: pointer; }

  /* ===== 移动端遮罩：改为纵向渐变 + 视频聚焦 ===== */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.88) 0%,
      rgba(0,0,0,0.6) 35%,
      rgba(0,0,0,0.4) 65%,
      rgba(0,0,0,0.55) 100%
    );
  }
  .hero-video { object-position: center center; filter: brightness(0.65); }

  .about-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.9) 0%,
      rgba(0,0,0,0.65) 30%,
      rgba(0,0,0,0.35) 70%,
      rgba(0,0,0,0.55) 100%
    );
  }
  .about-video { object-position: center center; filter: brightness(0.65); }

  .projects-bg-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.9) 0%,
      rgba(0,0,0,0.6) 40%,
      rgba(0,0,0,0.4) 70%,
      rgba(0,0,0,0.8) 100%
    );
  }
  .projects-bg-video { object-position: center center; filter: brightness(0.6); }

  .film-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.88) 0%,
      rgba(0,0,0,0.55) 40%,
      rgba(0,0,0,0.35) 70%,
      rgba(0,0,0,0.75) 100%
    );
  }
  .film-video { object-position: center center; filter: brightness(0.6); }

  .contact-video { object-position: center center; }


  /* Nav collapse */
  .side-nav {
    left: 16px;
    top: auto;
    bottom: 20px;
    transform: none;
    flex-direction: row;
    padding: 0;
    align-items: center;
    gap: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 40px;
  }
  
  .nav-logo {
    position: static;
    flex-direction: row;
    gap: 4px;
    font-size: 11px;
    margin-right: 16px;
  }
  .nav-logo-sub { margin-top: 0; }
  
  .nav-dots {
    flex-direction: row;
    gap: 8px;
  }
  
  .nav-line { width: 16px; }
  .nav-dot em { display: none; }
  .nav-footer { display: none; }
  
  /* Hero */
  .hero-content {
    flex-direction: column;
    padding: 0 40px;
    padding-top: 120px;
    align-items: flex-start;
    gap: 40px;
  }
  .hero-right { display: none; }
  .hero-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-title-en { font-size: 64px; letter-spacing: -2px; }
  .hero-title-cn { font-size: 28px; letter-spacing: 6px; }
  .hero-subtitle { font-size: 32px; }
  
  .about-content { padding: 60px 40px; justify-content: center; }
  .about-text { text-align: left; max-width: 100%; }
  .about-skills { align-items: flex-start; }
  
  /* Section header */
  .section-header-row { padding: 100px 40px 32px; }
  .section-title { font-size: 36px; }
  .section-title.big { font-size: 48px; }
  
  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 40px 60px;
    gap: 20px;
  }
  .project-large { grid-column: 1; grid-row: auto; }
  .project-large .project-cover { min-height: 280px; }
  .projects-col-right { grid-template-rows: auto; gap: 20px; }
  .project-bottom { grid-column: 1; grid-template-columns: 1fr; gap: 20px; }
  .project-bottom .project-card { flex-direction: column; height: auto; }
  .project-bottom .project-card .project-cover { width: 100%; height: 200px; }
  
  /* Gallery */
  .gallery-filter { padding: 0 40px 16px; gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 11px; letter-spacing: 1px; }
  .gallery-masonry {
    padding: 0 40px 100px;
    column-count: 2;
    column-gap: 12px;
  }
  .gallery-item { margin-bottom: 12px; }
  
  /* Film */
  .film-content {
    flex-direction: column;
    padding: 100px 40px;
    gap: 48px;
  }
  .film-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--surface-border);
    padding-left: 0;
    padding-top: 24px;
  }
  
  /* Contact */
  .contact-title { font-size: 56px; }
  .contact-links { grid-template-columns: 1fr; }
  .contact-link { border-right: none; }
  
  /* Modal */
  .modal-overlay { padding: 20px; }
  .modal-content { max-height: 92vh; }
  .modal-body { grid-template-columns: 1fr; gap: 24px; }
  .modal-title { font-size: 28px; }

  /* Gallery lightbox mobile */
  .gallery-lightbox-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    max-height: 95vh;
    overflow-y: auto;
  }
  .gallery-lightbox-inner img {
    max-height: 55vh;
  }
  .gallery-lightbox-title { font-size: 22px; }
}

/* Very small phones */
@media (max-width: 480px) {
  .hero-title-en { font-size: 48px; }
  .hero-subtitle { font-size: 24px; }
  .contact-title { font-size: 40px; }
  .section-title.big { font-size: 36px; }
  .gallery-filter { padding: 0 20px 12px; }
  .filter-btn { padding: 5px 10px; font-size: 10px; letter-spacing: 1px; }
  .gallery-masonry { padding: 0 20px 80px; column-count: 1; column-gap: 12px; }
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-line { animation: none; }
  
  html { scroll-snap-type: none; }
  
  video {
    animation: none !important;
  }
}
