/* ===== 李航宇 LI HANGYU · 0929v3 · 片场放映 · 深夜监视器配色 ===== */
:root {
  /* 新配色体系：冷蓝黑底 + 监视器冰青 + 银白；电紫仅用于渐变深度 */
  --bg: #06080e;
  --bg-2: #0b101a;
  --ink: #eaf0f7;
  --dim: #8590a2;
  --line: rgba(234, 240, 247, 0.13);
  --neon: #2fe0ff;
  --neon-deep: #0aa8c8;
  --violet: #8b7bff;
  --dark-ink: #04161c;
  --serif: "Songti SC", "STSong", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--neon); color: var(--dark-ink); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; border-radius: 2px; }

/* 隐藏内容仅在有 JS 且非减少动态时生效 —— 无 JS 或 app.js 加载失败时一切直接可见 */
html.js .fx { opacity: 0; transform: translateY(48px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 0.8, 0.24, 1); }
html.js .fx.in { opacity: 1; transform: none; }

/* ===== PRELOADER（仅 JS 显示）===== */
.preloader { display: none; }
html.js .preloader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}
html.js .preloader.done { transform: translateY(-101%); }
/* 兜底：即使 app.js 未执行，2.4s 后自动隐藏，绝不遮挡内容 */
html.js .preloader { animation: preKill 0.3s ease 2.4s forwards; }
@keyframes preKill { to { opacity: 0; visibility: hidden; } }
.pre-center { text-align: center; }
.pre-name {
  display: block; font-family: var(--serif); font-weight: 900;
  font-size: clamp(48px, 10vw, 96px); letter-spacing: 0.12em;
  animation: preFlicker 0.9s steps(2) infinite;
}
@keyframes preFlicker { 50% { opacity: 0.55; } }
.pre-count {
  display: block; margin-top: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.4em; color: var(--neon);
}
.pre-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--neon), var(--violet));
  box-shadow: 0 0 16px rgba(47, 224, 255, 0.6);
}

/* ===== 噪点 ===== */
.grain {
  position: fixed; inset: -100px; z-index: 250; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-38px, 22px); }
  50% { transform: translate(24px, -30px); }
  75% { transform: translate(-16px, -14px); }
  100% { transform: translate(0, 0); }
}

/* ===== 自定义光标 ===== */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 260; pointer-events: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--neon);
  mix-blend-mode: difference;
  display: none; place-items: center;
  transition: width 0.25s, height 0.25s, background 0.25s;
  transform: translate(-50%, -50%);
}
.cursor span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--dark-ink); opacity: 0; transition: opacity 0.2s; white-space: nowrap;
}
.cursor.grow { width: 72px; height: 72px; background: var(--ink); }
.cursor.grow span { opacity: 1; }
html.js body.has-cursor, html.js body.has-cursor a, html.js body.has-cursor button { cursor: none; }
html.js body.has-cursor .cursor { display: grid; }

/* ===== 滚动进度 ===== */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 240;
  background: transparent;
}
.progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--neon), var(--violet));
  box-shadow: 0 0 12px rgba(47, 224, 255, 0.55);
}

/* ===== 顶栏 ===== */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 230;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(18px, 4vw, 48px);
  mix-blend-mode: difference;
}
.brand {
  font-family: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: 0.1em;
}
.brand span { color: var(--neon); margin: 0 4px; }
.top-nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.top-nav a {
  font-size: 13px; letter-spacing: 0.16em; padding: 6px 2px;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.top-nav a:hover { border-bottom-color: var(--neon); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
  position: absolute; top: -9%; left: 0;
  width: 100%; height: 118%; object-fit: cover; object-position: center 30%;
  will-change: transform;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(6,8,14,0.08) 0%, rgba(6,8,14,0.74) 78%),
    linear-gradient(180deg, rgba(6,8,14,0.52) 0%, transparent 30%, transparent 62%, var(--bg) 100%);
}
.hero-runner {
  position: absolute; top: 16vh; left: 0; white-space: nowrap;
  font-family: var(--mono); font-size: clamp(48px, 9vw, 110px); font-weight: 700;
  letter-spacing: 0.06em; color: transparent;
  -webkit-text-stroke: 1px rgba(234, 240, 247, 0.2);
  animation: runner 30s linear infinite;
  will-change: transform;
}
@keyframes runner { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
.hero-core { position: relative; padding: 0 16px; }
.hero-tag {
  font-family: var(--mono); font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 0.5em; color: var(--neon); margin-bottom: 3vh;
  text-shadow: 0 0 18px rgba(47, 224, 255, 0.45);
}
.hero-name {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(96px, 24vw, 300px); line-height: 0.95; letter-spacing: 0.02em;
  display: flex; justify-content: center;
  text-shadow: 0 0 60px rgba(47, 224, 255, 0.14);
}
.hero-name span { display: inline-block; }
.hero-name span:nth-child(1) { transition-delay: 0.05s; }
.hero-name span:nth-child(2) { transition-delay: 0.18s; }
.hero-name span:nth-child(3) { transition-delay: 0.31s; }
.hero-base {
  margin-top: 3.5vh;
  font-family: var(--mono); font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 0.4em; color: var(--dim);
}
.hero-badge {
  position: absolute; right: clamp(18px, 6vw, 80px); bottom: 9vh;
  width: clamp(92px, 11vw, 140px); height: clamp(92px, 11vw, 140px);
}
.hero-badge svg { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.hero-badge text {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.22em;
  fill: var(--ink);
}
.hero-badge i {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-style: normal; font-size: 22px; color: var(--neon);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-hint {
  position: absolute; left: clamp(18px, 6vw, 80px); bottom: 9vh;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em; color: var(--dim);
  writing-mode: vertical-rl;
}

/* ===== 跑马灯 ===== */
.strip { overflow: hidden; padding: 20px 0; }
.strip-a { background: var(--neon); color: var(--dark-ink); transform: rotate(-1.2deg) scale(1.02); }
.strip-b { background: var(--ink); color: #0b101a; transform: rotate(1.1deg) scale(1.02); }
.strip-track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.strip-track span {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(16px, 2.6vw, 26px); letter-spacing: 0.1em; padding-right: 0.5em;
}
.strip-left { animation: slideL 28s linear infinite; }
.strip-right { animation: slideR 28s linear infinite; }
@keyframes slideL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slideR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ===== 公共标题 ===== */
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.42em;
  color: var(--neon); margin-bottom: 18px;
}
.kicker.dark { color: var(--dark-ink); }
.bigtitle {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(48px, 9vw, 120px); line-height: 1.05; letter-spacing: 0.04em;
}
.bigtitle span {
  background: linear-gradient(100deg, var(--neon), var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { margin-top: 16px; color: var(--dim); font-size: 15px; letter-spacing: 0.08em; }

/* ===== 场景（叠片放映）===== */
.scenes { position: relative; }
.scenes-head { padding: clamp(80px, 14vh, 150px) clamp(18px, 5vw, 64px) clamp(48px, 8vh, 90px); }
.scene-counter {
  position: fixed; right: clamp(12px, 2.5vw, 32px); top: 50%; z-index: 220;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--dim); writing-mode: vertical-rl;
  opacity: 0; transition: opacity 0.4s;
}
html.js .scene-counter.on { opacity: 1; }
.scene-counter em { font-style: normal; color: var(--neon); font-size: 15px; }
.scene-counter span { margin: 4px 0; }

.scene {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: var(--bg);
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.8);
}
.scene-bg { position: absolute; inset: 0; }
.scene-bg img {
  width: 100%; height: 116%; object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
  transition: filter 0.5s;
  filter: saturate(0.9) brightness(0.88);
}
.scene:hover .scene-bg img { filter: saturate(1.08) brightness(1); }
.scene-veil {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(6,8,14,0.04) 30%, rgba(6,8,14,0.8) 92%);
}
.scene-hit { position: absolute; inset: 0; z-index: 2; }
.scene-info {
  position: absolute; z-index: 1; bottom: clamp(28px, 7vh, 72px);
  max-width: min(760px, 86vw); pointer-events: none;
}
.pos-l { left: clamp(18px, 5vw, 64px); text-align: left; }
.pos-r { right: clamp(18px, 5vw, 64px); text-align: right; }
.scene-no {
  display: block;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(52px, 8vw, 110px); line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1.5px var(--neon);
  filter: drop-shadow(0 0 14px rgba(47, 224, 255, 0.35));
}
.scene-info h3 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(34px, 6.5vw, 84px); line-height: 1.08; letter-spacing: 0.04em;
  margin-top: 10px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.65);
}
.scene-info h3 em {
  display: block; font-style: normal;
  font-size: 0.42em; letter-spacing: 0.3em; color: var(--ink);
  opacity: 0.85; margin-top: 8px;
}
.scene-tag {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em;
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px;
  background: rgba(6, 8, 14, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ===== 更多作品 ===== */
.more { padding: clamp(90px, 15vh, 160px) clamp(18px, 5vw, 64px); border-top: 1px solid var(--line); }
.more-list { list-style: none; margin-top: 34px; }
.more-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 22px 6px; border-bottom: 1px solid var(--line);
  font-size: clamp(20px, 3.4vw, 34px); font-weight: 700; letter-spacing: 0.05em;
  transition: padding-left 0.3s, color 0.3s;
}
.more-list li:hover { padding-left: 22px; color: var(--neon); }
.more-list em {
  font-style: normal; font-family: var(--mono);
  font-size: clamp(12px, 1.5vw, 15px); letter-spacing: 0.14em; color: var(--dim);
  white-space: nowrap;
}
.more-note { margin-top: 26px; font-size: 14px; color: var(--dim); }
.more-note a { color: var(--neon); }
.more-note a:hover { text-decoration: underline; }

/* ===== 关于 ===== */
.about { padding: clamp(90px, 15vh, 170px) clamp(18px, 5vw, 64px); border-top: 1px solid var(--line); background: var(--bg-2); }
.about-cols {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(30px, 6vw, 90px); margin-top: clamp(36px, 6vh, 64px);
}
.about-text p { color: var(--dim); margin-bottom: 18px; font-size: 16.5px; }
.about-text p:first-child { color: var(--ink); font-size: 20px; font-weight: 600; }
.about-stats { display: grid; gap: 16px; align-content: start; }
.stat {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 28px; background: var(--bg);
  display: flex; align-items: baseline; gap: 6px;
}
.stat strong {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(46px, 5vw, 68px); line-height: 1;
  background: linear-gradient(100deg, var(--neon), var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat i {
  font-style: normal; font-size: 26px;
  color: var(--neon);
}
.stat span { margin-left: 12px; font-size: 13px; letter-spacing: 0.22em; color: var(--dim); }
.awards { list-style: none; margin-top: clamp(48px, 8vh, 80px); }
.awards li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 20px 6px; border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 2.4vw, 24px); font-weight: 600; letter-spacing: 0.04em;
  transition: padding-left 0.3s;
}
.awards li:hover { padding-left: 20px; }
.awards em {
  font-style: normal; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.24em; color: var(--dim); white-space: nowrap;
}
.awards em.gold { color: #e6c66e; }
.awards em.bronze { color: #9fb2c8; }

/* ===== 联系（冰青反转）===== */
.contact {
  background: linear-gradient(160deg, var(--neon) 0%, #17b8e8 60%, var(--violet) 140%);
  color: var(--dark-ink);
  padding: clamp(100px, 17vh, 190px) clamp(18px, 5vw, 64px);
  text-align: center;
  position: relative; overflow: hidden;
}
.contact-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(52px, 11vw, 150px); line-height: 1.06; letter-spacing: 0.05em;
  margin-bottom: clamp(30px, 6vh, 60px);
}
.contact-mail {
  display: inline-block;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(17px, 4.2vw, 46px); letter-spacing: 0.03em;
  border-bottom: 3px solid var(--dark-ink); padding-bottom: 8px;
  word-break: break-all;
  transition: letter-spacing 0.35s;
}
.contact-mail:hover { letter-spacing: 0.09em; }
.contact-row {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin: clamp(34px, 6vh, 56px) 0;
}
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 40px; border-radius: 999px;
  font-size: 15px; letter-spacing: 0.16em; font-weight: 600;
  transition: background 0.25s, color 0.25s;
  will-change: transform;
}
.pill.solid { background: var(--bg); color: var(--neon); }
.pill.solid:hover { background: #10151f; }
.pill.line { border: 2px solid var(--dark-ink); color: var(--dark-ink); }
.pill.line:hover { background: var(--dark-ink); color: var(--neon); }
.contact-base {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.34em; color: rgba(4, 22, 28, 0.66);
}

/* ===== 页脚 ===== */
.footer {
  padding: 26px clamp(18px, 5vw, 64px);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--dim);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--neon); }
.footer a:hover { text-decoration: underline; }

/* ===== 灯箱 ===== */
.lightbox { position: fixed; inset: 0; z-index: 270; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 4, 8, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lb-stage {
  position: relative; z-index: 1; max-width: min(1280px, 92vw);
  display: flex; flex-direction: column; gap: 14px;
}
.lb-img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.85);
}
.lb-caption {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 15px; letter-spacing: 0.1em;
}
.lb-count { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.2em; }
.lb-btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(6, 8, 14, 0.72);
  color: var(--ink); font-size: 22px;
  display: grid; place-items: center;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.lb-btn:hover { border-color: var(--neon); color: var(--neon); transform: scale(1.08); }
.lb-prev { left: max(12px, 3vw); top: 50%; margin-top: -26px; }
.lb-next { right: max(12px, 3vw); top: 50%; margin-top: -26px; }
.lb-close { top: max(14px, 3vh); right: max(14px, 3vw); }
body.lb-open { overflow: hidden; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .about-cols { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .stat { flex-direction: column; gap: 4px; padding: 18px; }
  .stat span { margin-left: 0; }
}
@media (max-width: 720px) {
  .hero-badge, .hero-hint { display: none; }
  .scene-counter { display: none; }
  .hero-runner { top: 12vh; }
  .more-list li { flex-direction: column; gap: 4px; }
  .about-stats { grid-template-columns: 1fr; }
  .lb-btn { width: 44px; height: 44px; }
}

/* ===== 减少动态 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .preloader { display: none; }
  html.js .fx { opacity: 1; transform: none; }
  .grain { display: none; }
  .strip-track { animation: none; flex-wrap: wrap; width: auto; white-space: normal; justify-content: center; }
}
