/* =========================================================
   作品集样式 —— 深色科技风 / 无外部依赖
   改配色只需要动 :root 里的变量
   ========================================================= */

:root {
  --bg: #05060b;
  --ink: #e9edf9;
  --muted: #8a92ad;
  --line: rgba(140, 165, 240, 0.14);
  --cyan: #43e8ff;
  --violet: #8b5cf6;
  --pink: #ff4d8d;
  --panel: rgba(11, 15, 26, 0.62);
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

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

.mono {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

::selection { background: rgba(67, 232, 255, 0.28); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #0b1224 0%, #05060b 55%, #040409 100%);
}

.bg-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(to right, rgba(120, 150, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 150, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(58deg) translateY(-6%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  animation: gridDrift 22s linear infinite;
}

@keyframes gridDrift {
  to { background-position: 0 64px, 64px 0; }
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.g1 {
  width: 46vw; height: 46vw; min-width: 320px; min-height: 320px;
  top: -14vw; left: -8vw;
  background: radial-gradient(circle, rgba(67, 232, 255, 0.5), transparent 65%);
  animation: float1 18s ease-in-out infinite;
}

.g2 {
  width: 40vw; height: 40vw; min-width: 300px; min-height: 300px;
  top: 8vh; right: -12vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 65%);
  animation: float2 24s ease-in-out infinite;
}

.g3 {
  width: 34vw; height: 34vw; min-width: 260px; min-height: 260px;
  bottom: -12vw; left: 32vw;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.32), transparent 65%);
  animation: float1 28s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(4vw, 4vh, 0); }
}

@keyframes float2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-5vw, 6vh, 0); }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 0%),
    rgba(90, 160, 255, 0.10),
    transparent 62%
  );
  transition: background 0.15s linear;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 48px);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgba(5, 6, 11, 0.82), rgba(5, 6, 11, 0.28));
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #cfd7ee;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(67, 232, 255, 0.7);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(67, 232, 255, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(67, 232, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 232, 255, 0); }
}

.nav__links {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  font-size: 14px;
  color: var(--muted);
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.3s var(--ease);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

/* ---------- 通用容器 ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.section {
  padding: clamp(64px, 11vh, 132px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 78px;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section__head h2 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.section__head .num {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.14em;
  padding-top: 6px;
}

.section__note {
  margin: 0 0 0 auto;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(56px, 14vh, 140px) 0 clamp(48px, 9vh, 96px);
}

.eyebrow {
  margin: 0 0 22px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .sep { margin: 0 10px; color: var(--cyan); }

.hero__title {
  margin: 0;
  font-size: clamp(52px, 11vw, 132px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.045em;
  background: linear-gradient(100deg, #ffffff 0%, #6fe9ff 16%, #7f8fff 34%, #b98bff 50%, #ff7ab6 66%, #ffe6a8 78%, #ffffff 92%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__sub {
  max-width: 30em;
  text-wrap: balance;
  margin: 26px 0 0;
  font-size: clamp(16px, 1.7vw, 19px);
  color: #b9c2dc;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(67, 232, 255, 0.45);
  background: rgba(67, 232, 255, 0.07);
  box-shadow: 0 12px 32px -16px rgba(67, 232, 255, 0.8);
}

.btn--primary {
  border-color: transparent;
  color: #04060c;
  font-weight: 600;
  background: linear-gradient(100deg, var(--cyan), #9db8ff 55%, var(--violet));
  box-shadow: 0 14px 40px -18px rgba(120, 170, 255, 0.9);
}

.btn--primary:hover {
  color: #04060c;
  background: linear-gradient(100deg, #7ff2ff, #b6c9ff 55%, #a988ff);
  box-shadow: 0 18px 46px -16px rgba(120, 170, 255, 1);
}

.btn--ghost {
  color: var(--muted);
  background: transparent;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.btn--full { width: 100%; }

/* ---------- 跑马灯 ---------- */
.marquee {
  margin-top: clamp(48px, 9vh, 90px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: slide 34s linear infinite;
}

.marquee__track span {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(180, 195, 230, 0.55);
  white-space: nowrap;
}

.marquee__track i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.7;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ---------- 作品网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.card--wide { grid-column: 1 / -1; }

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  background: radial-gradient(
    420px circle at var(--x, 50%) var(--y, 50%),
    rgba(110, 190, 255, 0.14),
    transparent 60%
  );
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 190, 255, 0.32);
  box-shadow: 0 30px 70px -40px rgba(80, 140, 255, 0.9);
}

.card:hover::after { opacity: 1; }

.media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #070a12;
  border-bottom: 1px solid var(--line);
}

.card--wide .media { aspect-ratio: 21 / 9; }

.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .media img,
.card:hover .media video { transform: scale(1.04); }

/* 占位块 —— 素材接入后删掉即可 */
.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px;
  border: 1px dashed rgba(140, 175, 255, 0.28);
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(120, 160, 255, 0.045) 0 10px,
      transparent 10px 20px
    );
  color: rgba(160, 180, 220, 0.6);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-align: center;
}

.placeholder small {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(140, 160, 200, 0.5);
  word-break: break-all;
  padding: 0 14px;
}

.placeholder--video .play {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(140, 190, 255, 0.5);
  position: relative;
  margin-bottom: 4px;
}

.placeholder--video .play::before {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-left: 12px solid rgba(160, 210, 255, 0.8);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.placeholder--doc { margin: 16px; }

.card__body { padding: clamp(18px, 2.4vw, 26px); }

.card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.card__body h3 {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card__body .year {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.card__body p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: #a6b0cb;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: #9fb0d0;
  background: rgba(255, 255, 255, 0.02);
}

.card__link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--cyan);
  transition: gap 0.2s, opacity 0.2s;
}

.card__link:hover { opacity: 0.75; }

/* ---------- 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

/* 关于我：头像 + 一句话身份 */
.about__id {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 20px);
  margin: 0 0 clamp(22px, 3vw, 30px);
}

.about__avatar {
  flex: 0 0 auto;
  width: clamp(84px, 9vw, 112px);
  height: clamp(84px, 9vw, 112px);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(140, 180, 255, 0.35);
  box-shadow:
    0 0 0 5px rgba(67, 232, 255, 0.05),
    0 22px 44px -24px rgba(80, 140, 255, 0.9);
}

.about__idtext strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #eef2ff;
}

.about__idtext span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.about__text .lead {
  margin: 0 0 16px;
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: #eef2ff;
}

.about__text p {
  margin: 0 0 16px;
  color: #a6b0cb;
  font-size: 15px;
}

.skills {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.skills li {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.skills b {
  flex: 0 0 70px;
  font-weight: 500;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 2px;
}

.skills span { color: #c3cce3; }

/* 简历面板 */
.resume {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.resume__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 14px;
}

.resume__hint {
  font-size: 11px;
  color: rgba(150, 165, 200, 0.65);
}

.resume__paper {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1.35;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.resume__paper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

a.resume__paper:hover {
  border-color: rgba(120, 190, 255, 0.4);
  transform: translateY(-2px);
}

.resume .btn { margin-top: 14px; }

/* ---------- 联系 ---------- */
.section--contact { text-align: center; }

.mailto {
  display: inline-block;
  margin: 6px 0 10px;
  font-size: clamp(24px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #ffffff, #9fe9ff 40%, #b48cff 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid transparent;
  transition: opacity 0.3s;
}

.mailto:hover { opacity: 0.8; }

.contact__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 48px) 46px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: #6d7794;
}

/* ---------- 滚动入场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  filter: blur(6px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

.stat {
  padding: 18px 12px;
  text-align: center;
  background: rgba(8, 11, 20, 0.72);
}

.stat b {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff, #8fe4ff 55%, #b48cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 技能块 ---------- */
.skillset { margin-top: 34px; }

.skillset__row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.skillset__row h4 {
  margin: 0 0 12px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.skillset__note {
  margin: -6px 0 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: #a8b4d0;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.chips li:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 232, 255, 0.4);
  color: #e9f6ff;
}

/* ---------- 小标题 ---------- */
.sub-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.sub-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- 个人优势 ---------- */
.strengths { margin-top: clamp(48px, 7vw, 82px); }

.strength-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

.strength-list li {
  position: relative;
  padding: clamp(20px, 2.6vw, 28px);
  background: rgba(8, 11, 20, 0.72);
  transition: background 0.3s;
}

.strength-list li:hover { background: rgba(14, 19, 32, 0.85); }

.strength-list b {
  display: block;
  margin-bottom: 8px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.strength-list b::before {
  counter-increment: s;
  content: "0" counter(s);
  margin-right: 10px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.strength-list p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.75;
  color: #9fa9c4;
}

/* ---------- 工作经历时间线 ---------- */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding-bottom: clamp(30px, 4vw, 46px);
}

.tl__meta {
  padding-top: 3px;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.tl__date {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #a9b6d4;
}

.tl__role {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tl__body {
  position: relative;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.tl__body::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -4.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px 1px rgba(67, 232, 255, 0.65);
}

.tl:last-child .tl__body { border-left-color: transparent; }

.tl__body h3 {
  margin: 0 0 14px;
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tl__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl__body li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #a6b0cb;
}

.tl__body li:last-child { margin-bottom: 0; }

.tl__body li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 6px;
  height: 1px;
  background: rgba(140, 175, 225, 0.55);
}

/* ---------- 教育经历 ---------- */
.edu { margin-top: clamp(20px, 3vw, 34px); }

.edu__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.edu__item {
  padding: 20px clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.edu__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.edu__item h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.edu__item p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.tel {
  color: var(--cyan);
  border-bottom: 1px solid rgba(67, 232, 255, 0.3);
}

.tel:hover { border-bottom-color: var(--cyan); }

/* ---------- 项目案例 ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}

.case {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.case:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 190, 255, 0.32);
  box-shadow: 0 30px 70px -40px rgba(80, 140, 255, 0.9);
}

.case__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #070a12;
}

.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.case:hover .case__media img { transform: scale(1.04); }

.case__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #06090f;
  font-weight: 600;
  background: linear-gradient(100deg, var(--cyan), #9db8ff);
  box-shadow: 0 10px 30px -14px rgba(67, 232, 255, 0.9);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.case:hover .case__badge,
.case__media:focus-visible .case__badge {
  opacity: 1;
  transform: none;
}

/* ---------- 海报网格 ---------- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #070a12;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.shot:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 190, 255, 0.35);
  box-shadow: 0 24px 50px -34px rgba(80, 140, 255, 0.85);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.shot:hover img { transform: scale(1.035); }

.shot__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 9px;
  font-size: 11.5px;
  color: #e2e9fb;
  letter-spacing: 0.02em;
  background: linear-gradient(transparent, rgba(4, 6, 12, 0.9) 65%);
  opacity: 0.9;
  transition: opacity 0.3s;
}

.shot:hover .shot__cap { opacity: 1; }

/* ---------- 瀑布流 ---------- */
.masonry {
  columns: 3;
  column-gap: clamp(14px, 2vw, 22px);
}

.masonry .shot {
  break-inside: avoid;
  margin-bottom: clamp(14px, 2vw, 22px);
}

/* ---------- 视频网格 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.vid {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #070a12;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.vid:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 190, 255, 0.35);
  box-shadow: 0 24px 50px -34px rgba(80, 140, 255, 0.85);
}

.vid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.35s, transform 0.7s var(--ease);
}

.vid:hover img { opacity: 1; transform: scale(1.035); }

.vid__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 1px solid rgba(170, 220, 255, 0.65);
  background: rgba(6, 10, 18, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.vid:hover .vid__play {
  transform: scale(1.08);
  border-color: var(--cyan);
}

.vid__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 13px solid #d6ecff;
  border-top: 7.5px solid transparent;
  border-bottom: 7.5px solid transparent;
}

.vid__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 12px 9px;
  font-size: 11.5px;
  color: #dfe8ff;
  background: linear-gradient(transparent, rgba(4, 6, 12, 0.9) 65%);
}

/* ---------- 查看器 ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(4, 6, 12, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.viewer.open { display: grid; }

.viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(14px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
}

.viewer__title {
  font-size: 13.5px;
  color: #dbe4f8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.viewer__count {
  margin-right: 6px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.viewer__btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #cfd8ee;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.viewer__btn:hover {
  border-color: rgba(67, 232, 255, 0.5);
  color: #fff;
  background: rgba(67, 232, 255, 0.08);
}

.viewer__btn:disabled { opacity: 0.35; cursor: default; }

.viewer__close { margin-left: 4px; }

.viewer__stage {
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(14px, 3vw, 36px);
  -webkit-overflow-scrolling: touch;
}

.viewer__stage img {
  display: block;
  width: min(1080px, 100%);
  height: auto;
}

.viewer__stage img.solo {
  border-radius: 12px;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}

.viewer__stage img:first-child:not(.solo) { border-radius: 12px 12px 0 0; }
.viewer__stage img:last-child:not(.solo) { border-radius: 0 0 12px 12px; }

.viewer__stage video {
  width: min(1080px, 100%);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

body.no-scroll { overflow: hidden; }

/* ---------- 横向滚动轨道 ---------- */
.rail-tools {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.rail-wrap { position: relative; }

.rail {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 160, 255, 0.32) transparent;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.rail.is-dragging { cursor: grabbing; }

.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb {
  background: rgba(130, 160, 255, 0.26);
  border-radius: 99px;
}
.rail::-webkit-scrollbar-thumb:hover { background: rgba(130, 160, 255, 0.45); }

.rail__item {
  flex: 0 0 auto;
  height: clamp(300px, 30vw, 428px);
  max-width: min(72vw, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.rail .shot img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* 横版（画册 / VI / Logo）：给一个更宽的画框，整张放进框里 */
.rail__item--wide {
  width: clamp(320px, 40vw, 560px);
  background: #080c14;
}

.rail__item--wide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- 手机号弹层 ---------- */
.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: rgba(4, 6, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.phone-modal.open { display: grid; }

.phone-modal__inner { animation: phonePop 0.36s var(--ease); }

@keyframes phonePop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.phone-modal__hint {
  margin: 0 0 clamp(14px, 3vw, 26px);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.phone-modal__num {
  margin: 0;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: clamp(30px, 7.6vw, 112px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(100deg, #ffffff, #7fe8ff 42%, #b48cff 78%, #ff9ecb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.phone-modal__sub {
  margin: clamp(14px, 3vw, 26px) 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

button.tel {
  font: inherit;
  background: none;
  border: 0;
  border-bottom: 1px dashed rgba(67, 232, 255, 0.5);
  padding: 0 0 1px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

button.tel:hover {
  border-bottom-color: var(--cyan);
  color: #c8f4ff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card--wide { grid-column: auto; }
  .card--wide .media { aspect-ratio: 16 / 10; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .resume { position: static; }
  .section__note { margin-left: 0; }
  .nav__links { font-size: 13px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strength-list { grid-template-columns: minmax(0, 1fr); }
  .edu__grid { grid-template-columns: minmax(0, 1fr); }

  .cases { grid-template-columns: minmax(0, 1fr); }
  .rail__item { height: clamp(260px, 42vw, 360px); }
  .masonry { columns: 2; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tl {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 34px;
  }
  .tl__meta { display: flex; align-items: baseline; gap: 12px; }
  .tl__date, .tl__role { display: inline; margin-top: 0; }
  .tl__body { padding-left: 20px; }
  .tl__body::before { top: 11px; }
}

@media (max-width: 520px) {
  .hero__actions .btn { flex: 1 1 auto; }
  .skills li { flex-direction: column; gap: 4px; }
  .nav__brand span:last-child { letter-spacing: 0.12em; }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .masonry { columns: 1; }
  .viewer__count { display: none; }
}

/* 触屏设备没有 hover，常驻显示提示 */
@media (hover: none) {
  .case__badge { opacity: 1; transform: none; }
  .shot__cap { opacity: 1; }
}

/* 窄屏导航收一下，六个入口也要放得下 */
@media (max-width: 430px) {
  .nav { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .nav__links { gap: 10px; font-size: 12px; }
  .nav__brand { font-size: 10px; letter-spacing: 0.12em; }
  .nav__brand .dot { width: 6px; height: 6px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}
