/* ==========================================================
   覃孔莲 · 游戏视觉设计师 — 个人作品集
   暗色 / 克制 / 高级 / 科技感
   ========================================================== */

:root {
  --bg: #07070d;
  --bg-soft: #0c0c16;
  --panel: #10101c;
  --panel-2: #14141f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eceaf4;
  --text-2: #9a97ab;
  --accent-1: #d903ff;
  --accent-2: #8b8cff;
  --accent-3: #4f6dff;
  --grad: linear-gradient(180deg, #fcd4ff 0%, #de52ff 50%, #7a02ff 100%);
  --radius: 14px;
  --header-h: 72px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

::selection { background: rgba(217, 3, 255, 0.4); color: #fff; }

/* ---------- 通用文字 / 标题 ---------- */
.grad-text {
  /* 与主按钮同色系，但收紧渐变区间、不发灰：亮粉 → 品红 → 亮紫，外加光晕衬托 */
  background: linear-gradient(180deg, #ffd9ff 0%, #ef6bff 55%, #d51dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(233, 78, 255, 0.38));
}

.section { padding: 110px 0; position: relative; }

.section-head { margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.section-sub {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(5px); }

/* Hero 按钮：磁吸 + 光标跟随光晕（JS 写入 --mx/--my 与 transform） */
.hero-actions .btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.hero-actions .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05) 48%, transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.hero-actions .btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(217, 3, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(139, 140, 255, 0.45);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--accent-1);
  box-shadow: 0 10px 30px rgba(217, 3, 255, 0.25);
}

/* ==========================================================
   页头
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  letter-spacing: 0.08em;
}
.logo-text b { font-weight: 800; }
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(217, 3, 255, 0.4);
}

.nav { display: flex; gap: 6px; }
.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.06em;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-btn span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   1. Hero 首屏
   ========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero-bg {
  position: relative;
  width: 100%;
  /* 与新头图（1920×1080）比例一致 => 图片完整呈现、零裁切 */
  aspect-ratio: 16 / 9;
  /* 右侧延展底色：与海报同色调的深蓝紫 */
  background:
    radial-gradient(ellipse 55% 60% at 80% 22%, rgba(79, 109, 255, 0.18), transparent 65%),
    radial-gradient(ellipse 45% 40% at 98% 6%, rgba(217, 3, 255, 0.14), transparent 60%),
    #05060d;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}

/* 鼠标跟随光晕 */
.hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,3,255,0.16) 0%, rgba(139,140,255,0.08) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  left: 50%; top: 45%;
  pointer-events: none;
  filter: blur(10px);
  transition: left 0.25s cubic-bezier(.22,1,.36,1), top 0.25s cubic-bezier(.22,1,.36,1);
}

/* 简历海报点击热区：点击海报任意空白处 → 前往「关于我」 */
.hero-img-link {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 1;
}
/* 悬停海报时轻微放大提亮（结构上 veil/热区在 img 之后，用 :has 反查） */
.hero-img {
  transition: transform 0.7s cubic-bezier(.22,1,.36,1), filter 0.7s ease;
}
.hero:has(.hero-img-link:hover) .hero-img {
  transform: scale(1.015);
  filter: brightness(1.07);
}

/* 主视觉海报：容器与图片同比例，完整呈现不裁切 */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;;
  object-fit: cover;
  object-position: center top;
  user-select: none;
  pointer-events: none;
}

.hero-veil {
  position: absolute; inset: 0;
  /* 右侧文案区轻微压暗；底部渐变在 100% 处完全不透明，与下一板块底色无缝 */
  background:
    linear-gradient(90deg, transparent 46%, rgba(5, 6, 13, 0.3) 70%, rgba(5, 6, 13, 0.52) 100%),
    linear-gradient(180deg, rgba(5, 6, 13, 0.4) 0%, transparent 18%),
    linear-gradient(180deg,
      transparent 56%,
      rgba(10, 8, 22, 0.3) 72%,
      rgba(9, 7, 18, 0.55) 84%,
      rgba(8, 7, 14, 0.82) 93%,
      #07070d 100%);
}

/* 文案层：叠放在首屏可视区内居中（容器比正文板块更宽，让文案更靠右） */
.hero-inner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1360px, 95%);
  height: 100svh;
  display: flex;
  align-items: center;
  z-index: 2;
  /* 让空白区域点击穿透到海报热区，文字/按钮自身恢复接收 */
  pointer-events: none;
}
.hero-content,
.scroll-hint {
  pointer-events: auto;
}

.hero-content {
  max-width: 620px;
  margin-left: auto;
  text-align: right;
  /* 整块文案在首屏内略微下移 */
  padding-top: calc(var(--header-h) + 7vh);
  /* 靠右但保留边距，不贴边 */
  padding-right: clamp(14px, 2.5vw, 36px);
}

.hero-script {
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(26px, 3vw, 40px);
  color: #fff;
  text-shadow: 0 0 24px rgba(217, 3, 255, 0.6);
  margin-bottom: 10px;
}

.hero-hello {
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-hello span { color: var(--text-2); }

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* 标题换成「我是覃孔莲」美术字图片（569×124，右对齐，窄屏居中） */
.hero-title-img {
  display: block;
  margin-left: auto;
  width: min(100%, 460px);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  pointer-events: none;
  user-select: none;
}
@media (max-width: 820px) {
  .hero-title-img { margin: 0 auto; }
}

.hero-role {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.25em;
  background: linear-gradient(180deg, #fcd4ff 0%, #de52ff 50%, #7a02ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-2);
  max-width: 30em;
  margin-left: auto;
  margin-bottom: 38px;
  line-height: 1.9;
  text-wrap: balance; /* 两行均衡换行，避免尾行参差 */
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* 按钮下方小字：作品计数 */
.hero-count {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
.hero-count .grad-text {
  font-weight: 700;
  font-size: 15px;
}

/* 全局鼠标跟随光点（细微，仅精确指针设备） */
#cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,3,255,0.10) 0%, rgba(120,130,255,0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
  mix-blend-mode: screen;
}
@media (pointer: coarse) {
  #cursor-glow { display: none; }
}

/* 下滑提示 */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.scroll-hint:hover { opacity: 1; }
.mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.wheel {
  width: 3px; height: 7px;
  background: var(--accent-1);
  border-radius: 3px;
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.scroll-hint-text {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-2);
}

/* ==========================================================
   2. 关于我
   ========================================================== */
.about {
  padding-top: 64px; /* 整块文案上移 */
  background:
    linear-gradient(180deg, #07070d 0%, rgba(7, 7, 13, 0) 200px),
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(217,3,255,0.07), transparent 70%),
    var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: start;
}

.about-lead {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 18px;
}
.about-body {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 28px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tags li {
  padding: 8px 18px;
  font-size: 13px;
  border: 1px solid rgba(217, 3, 255, 0.35);
  border-radius: 999px;
  color: #eaa6ff;
  background: rgba(217, 3, 255, 0.08);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-tags li:hover {
  background: rgba(217, 3, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217,3,255,0.25);
}

/* 数字大字统计（参考图 3 风格） */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.stat {
  position: relative;
  text-align: center;
  padding: 0 12px;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 12%;
  height: 76%;
  width: 1px;
  background: var(--line);
}
.stat-num {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  color: #f5d0e8;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
}
.stat-num em {
  font-style: normal;
  font-size: 0.42em;
  font-weight: 700;
  color: #f5d0e8;
}
.stat-label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.08em;
}

/* ==========================================================
   3. 工作经历
   ========================================================== */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2), transparent);
  border-radius: 2px;
  opacity: 0.5;
}
.timeline-item { position: relative; }
.timeline-item + .timeline-item { margin-top: 44px; }

.timeline-dot {
  position: absolute;
  left: -36px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 5px rgba(217, 3, 255, 0.18), 0 0 18px rgba(139, 140, 255, 0.6);
}

.timeline-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 3, 255, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.timeline-time {
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.timeline-badge {
  display: inline-block;
  vertical-align: 1px;
  margin-left: 10px;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(217, 3, 255, 0.16);
  color: #eaa6ff;
  border: 1px solid rgba(217, 3, 255, 0.35);
}
.timeline-badge.muted {
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
  border-color: var(--line);
}

.timeline-company { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.timeline-role {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.timeline-duty li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 8px;
}
.timeline-duty li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad);
  opacity: 0.8;
}

/* ==========================================================
   4. 作品目录
   ========================================================== */
.catalog {
  background:
    radial-gradient(ellipse 45% 40% at 10% 100%, rgba(79,109,255,0.07), transparent 70%),
    var(--bg-soft);
}

.catalog-list { display: grid; gap: 18px; }

.catalog-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.catalog-group:hover {
  border-color: rgba(217, 3, 255, 0.4);
  transform: translateX(6px);
  box-shadow: -8px 0 30px rgba(217, 3, 255, 0.12);
}

.catalog-parent {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
  border-radius: 10px;
  transition: background 0.3s ease;
}
.catalog-parent:hover { background: rgba(255, 255, 255, 0.03); }

.catalog-index {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.catalog-name {
  font-size: 19px;
  font-weight: 700;
  flex: 1;
}
.catalog-arrow {
  color: var(--text-2);
  transition: transform 0.3s ease, color 0.3s ease;
}
.catalog-parent:hover .catalog-arrow {
  transform: translateX(6px);
  color: var(--accent-1);
}

.catalog-children {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 22px 16px 66px;
}
.catalog-child {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: all 0.3s ease;
}
.catalog-child:hover {
  color: #fff;
  border-color: var(--accent-1);
  background: rgba(217, 3, 255, 0.18);
  box-shadow: 0 4px 14px rgba(217, 3, 255, 0.25);
}

/* ==========================================================
   5. 作品展示
   ========================================================== */
.work-block {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.work-block:last-child { padding-bottom: 0; }

.work-head {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  margin-bottom: 34px;
}
.work-index {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border: 1px solid rgba(139, 140, 255, 0.35);
  border-radius: 999px;
  background: rgba(139, 140, 255, 0.08);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.work-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}
.work-desc {
  font-size: 14px;
  color: var(--text-2);
  max-width: 720px;
}
.back-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.back-link:hover {
  color: #fff;
  border-color: var(--accent-1);
  background: rgba(217, 3, 255, 0.15);
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.work-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.work-item.media { aspect-ratio: 16 / 10; }
.work-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.work-item span {
  position: relative;
  z-index: 2;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 18px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ---------- 作品媒体：静态图 / GIF 动图 / 视频 通用 ---------- */
.work-item { background: #0a0a12; }

.work-item > img,
.work-item > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;   /* 任何尺寸都完整显示，不变形、不裁切 */
  background: #0a0a12;
}
/* 需要铺满裁切的素材，给 figure 加 data-fit="cover" */
.work-item[data-fit="cover"] > img,
.work-item[data-fit="cover"] > video { object-fit: cover; }

/* 已放入真实作品：隐藏占位渐变与默认文案，悬停时浮出作品名 */
.work-item.filled { cursor: zoom-in; }
.work-item.filled::before { display: none; }
.work-item.filled > img,
.work-item.filled > video { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.work-item.filled:hover > img,
.work-item.filled:hover > video { transform: scale(1.04); }
.work-item.filled > span:not(.work-tag) {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.work-item.filled:hover > span:not(.work-tag) { opacity: 1; transform: none; }

/* 右上角类型角标（Motion / Video / Image） */
.work-item .work-tag {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ---------- 点击放大查看 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
  background: rgba(4, 4, 10, 0.94);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img,
.lightbox video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  display: block;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.lightbox-cap {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-close:hover { background: rgba(217, 3, 255, 0.3); transform: rotate(90deg); }

/* ---------- 作品数量多时折叠：超出部分点击展开 ---------- */
.work-item.hidden-item { display: none; }

.gallery-more {
  display: block;
  margin: 28px auto 4px;
  padding: 13px 32px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.gallery-more:hover {
  color: #fff;
  border-color: var(--accent-1);
  background: rgba(217, 3, 255, 0.14);
  box-shadow: 0 12px 34px rgba(217, 3, 255, 0.22);
}
.gallery-more .arrow { display: inline-block; transition: transform 0.3s ease; }
.gallery-more:hover .arrow { transform: translateY(3px); }

/* 各区块卡片比例跟随素材原始比例（避免竖版素材被塞进宽框里变小） */
#work-360-popup .work-gallery { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
#work-360-popup .work-item { aspect-ratio: 320 / 402; }   /* 弹窗 320×402 竖版 */

#work-360-eye .work-gallery { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
#work-360-eye .work-item { aspect-ratio: 660 / 220; }     /* 点睛 660×220 超宽 */

#work-360-screensaver .work-gallery { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
#work-360-screensaver .work-item { aspect-ratio: 16 / 9; } /* 屏保 1920×1080 */

#work-360-nav .work-gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
#work-360-nav .work-item { aspect-ratio: 232 / 150; }      /* 导航位 232×150；超宽长条自动跨整行 */

#work-landing .work-gallery { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
#work-landing .work-item { aspect-ratio: 1920 / 920; }     /* 落地页视频 1920×920 */

#work-focus .work-gallery { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
#work-focus .work-item { aspect-ratio: 1920 / 670; }       /* 焦点图 1920×670 超宽 */

/* 官网·运营素材：图片尺寸差异大（竖版长页/横版实名页/方图混排），改用瀑布流 */
#work-operation .work-gallery {
  display: block;
  columns: 3;
  column-gap: 18px;
}
#work-operation .work-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 18px;
  aspect-ratio: auto;
  display: block;
}
#work-operation .work-item > img {
  position: static;
  width: 100%;
  height: auto;
}
/* 瀑布流下 figure 不再是 grid，悬浮标题（span）改为绝对定位并直接隐藏（不显示标题胶囊） */
#work-operation .work-item > span:not(.work-tag) {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: none;
}
@media (max-width: 1024px) {
  #work-operation .work-gallery { columns: 2; }
}
@media (max-width: 640px) {
  #work-operation .work-gallery { columns: 1; }
}

/* 超宽长条素材（宽高比 ≥4，如 594×80 导航长图）：跨整行并按自身比例显示，JS 自动判定 */
.work-item.wide { grid-column: 1 / -1; }

/* 占位图渐变（替换为真实作品图时删除 .ph 即可） */
.ph::before {
  content: "";
  position: absolute; inset: 0;
  transition: transform 0.5s ease;
}
.work-item:hover.ph::before { transform: scale(1.06); }
.ph-a::before { background:
  radial-gradient(ellipse 80% 90% at 20% 10%, rgba(139,140,255,0.5), transparent 60%),
  radial-gradient(ellipse 70% 80% at 85% 90%, rgba(79,109,255,0.55), transparent 60%),
  #10101c; }
.ph-b::before { background:
  radial-gradient(ellipse 80% 90% at 80% 15%, rgba(217,3,255,0.5), transparent 60%),
  radial-gradient(ellipse 70% 80% at 15% 85%, rgba(139,140,255,0.4), transparent 60%),
  #0d0d17; }
.ph-c::before { background:
  radial-gradient(ellipse 80% 90% at 50% 0%, rgba(79,109,255,0.45), transparent 60%),
  radial-gradient(ellipse 80% 90% at 50% 110%, rgba(217,3,255,0.4), transparent 60%),
  #0f0f1a; }

/* ==========================================================
   6. 页尾联系
   ========================================================== */
.footer {
  position: relative;
  padding: 120px 0 40px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(217,3,255,0.12), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.3;
  margin: 10px 0 18px;
}
.footer-sub {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 80px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 34px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 3, 255, 0.45);
  box-shadow: 0 18px 44px rgba(217, 3, 255, 0.18);
}
.contact-icon { font-size: 28px; margin-bottom: 6px; }
.contact-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-2);
}
.contact-value {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.contact-hint {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 11px;
  color: var(--accent-2);
  opacity: 0.85;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.footer-logo { font-size: 15px; }
.footer-logo .logo-mark { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
.copyright { font-size: 12px; color: var(--text-2); }
.back-top {
  font-size: 12px;
  color: var(--text-2);
  transition: color 0.3s ease;
}
.back-top:hover { color: var(--accent-1); }

/* ==========================================================
   滚动进入动画
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal[data-delay="5"] { transition-delay: 0.6s; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wheel { animation: none; }
  .hero-img { transition: none; }
  #cursor-glow { display: none; }
}

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1150px) {
  .hero-content { max-width: 520px; padding-right: clamp(12px, 3vw, 32px); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .section { padding: 80px 0; }
  .about { padding-top: 48px; }

  /* 移动端菜单 */  .menu-btn { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(72vw, 300px);
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    gap: 4px;
    padding: 28px 22px;
    background: rgba(10, 10, 18, 0.97);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.22,1,.36,1);
  }
  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 16px; padding: 14px 10px; }
  .nav-link::after { display: none; }

  /* Hero：窄屏改为海报在上、文案在下的自然流式排布（同样不裁切） */
  .hero { min-height: auto; }
  .hero-img { object-position: center top; }
  .hero-inner {
    position: static;
    transform: none;
    width: min(1180px, 92%);
    margin: 0 auto;
    height: auto;
    display: block;
    padding: 40px 0 64px;
  }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(5, 6, 13, 0.35) 0%, transparent 16%),
      linear-gradient(180deg,
        transparent 55%,
        rgba(10, 8, 22, 0.3) 72%,
        rgba(9, 7, 18, 0.6) 85%,
        #07070d 100%);
  }
  .scroll-hint { display: none; }
  .hero-content {
    margin: 0;
    max-width: 100%;
    text-align: center;
    padding-right: 0;
    padding-top: 0;
  }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { padding: 36px 6px; }

  .work-head { flex-direction: column; gap: 14px; }
  .back-link { margin-left: 0; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .stat + .stat::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}
