/* =====================================================================
   样式表 —— 整个网站的"皮肤"
   所有颜色、字号、间距都是参数（CSS 变量），改顶部 :root 就全站生效。
   ===================================================================== */

/* —— 本地字体：Roboto（英文/数字）+ Noto Sans SC（中文），均为 woff2 子集 —— */
@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("fonts/NotoSansSC.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* —— 颜色参数（克莱因蓝，克制点缀）—— */
  --bg: #06070B;                       /* 页面底色：近黑 */
  --bg-soft: #0A0C12;                  /* 稍亮的深色面板 */
  --bg-panel: #0D1018;                 /* 卡片面板色 */
  --surface: rgba(255,255,255,0.03);   /* 玻璃面（浅） */
  --surface-strong: rgba(255,255,255,0.06); /* 玻璃面（深） */
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --text: #FFFFFF;                     /* 正文主色 */
  --text-muted: #9AA3B5;               /* 次要文字 */
  --text-faint: #6B7488;               /* 弱化文字 */

  --accent: #002FA7;                   /* 克莱因蓝（品牌主色） */
  --accent-bright: #4C7DFF;            /* 亮蓝：深色底上的按钮/链接 */
  --accent-soft: rgba(76,125,255,0.10);/* 克莱因蓝淡底 */
  --accent-glow: rgba(0,47,167,0.35);  /* 光晕 */

  /* —— 圆角 —— */
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* —— 字体参数：英文/数字用 Roboto，中文用 Noto Sans SC —— */
  --font-heading: "Roboto", "Noto Sans SC", sans-serif;
  --font-body: "Roboto", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* —— 尺寸参数 —— */
  --nav-h: 64px;
  --maxw: 1240px;
  --gap: 28px;
  --section-pad: clamp(72px, 10vw, 140px);
}

/* ============================ 基础重置 ============================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }

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

::selection { background: var(--accent-bright); color: #fff; }

/* 键盘焦点可见（可访问性） */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================ 玻璃质感 ============================ */
.glass {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.glass-strong {
  position: relative;
  background: var(--surface-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* 玻璃顶部的微光描边 */
.glass::before,
.glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.05) 30%,
    rgba(255,255,255,0) 55%,
    rgba(255,255,255,0.08) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================ 导航 ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,7,11,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: min(var(--maxw), 100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
}
.brand-tag { font-family: var(--font-body); font-size: 12px; color: var(--text-muted); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
}
.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-strong); }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}
.nav-burger svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) - 2px);
  left: 0; right: 0;
  padding: 12px 20px 20px;
  background: rgba(6,7,11,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 49;
}
.mobile-menu.open { display: block; }
/* 菜单是下拉浮层，不锁页面滚动（锁滚动 + 平滑锚点跳转在手机上会互相打架） */
.mobile-menu a {
  display: block;
  padding: 14px 6px;
  font-size: 17px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ============================ 开场区 ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 40px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,11,0.55) 0%, rgba(6,7,11,0.25) 45%, var(--bg) 100%);
}

/* 开场区：液态玻璃动效背景（canvas 光斑 + SVG 折射滤镜） */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* 兜底：即便 canvas 出问题，也有一层克莱因蓝光晕，不会纯黑 */
  background: radial-gradient(120% 120% at 50% 0%, rgba(30,80,210,0.5), rgba(6,7,11,0.92) 55%);
}
.hero-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,7,11,0.2) 0%, rgba(6,7,11,0) 42%, var(--bg) 96%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-defs { position: absolute; width: 0; height: 0; pointer-events: none; }

.hero-inner {
  width: min(var(--maxw), 100% - 40px);
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-glow);
}
.hero-badge .label { font-size: 13px; color: var(--text-muted); }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(46px, 9vw, 104px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 18em;
  margin: 0 auto;
  text-wrap: balance;
  text-shadow: 0 2px 26px rgba(0,0,0,0.5);
}
.hero-title .accent { color: var(--accent-bright); }

.hero-subtitle {
  margin: 36px auto 0;
  max-width: 40em;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 300;
  color: var(--text-muted);
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(0,0,0,0.55);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.stat-card {
  min-width: 180px;
  padding: 20px 24px;
  border-radius: var(--radius);
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.stat-value .unit { font-size: 20px; color: var(--accent-bright); }
.stat-label { margin-top: 4px; font-size: 13px; color: var(--text-muted); }

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(var(--text-faint), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================ 通用区块 ============================ */
.section {
  padding: var(--section-pad) 20px;
}
.section.alt { background: var(--bg-soft); }

.container {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
}

.section-head { margin-bottom: 40px; }
.kicker {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.section-sub { margin-top: 10px; color: var(--text-muted); max-width: 60ch; }

/* 内容区块（作品/关于/经历/技能/联系）统一留出锚点偏移 */
.anchor { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* ============================ 分类筛选 ============================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-chip {
  padding: 9px 18px;
  font-size: 14px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.2s ease;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 18px var(--accent-glow);
}

/* ============================ 作品区块 ============================ */
.blocks { display: flex; flex-direction: column; gap: 48px; }

.block {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.block.hidden { display: none; }

.block-head { margin-bottom: 16px; }
.block-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.block-sub { margin-top: 8px; color: var(--text-muted); font-size: 15px; }

/* 版式：full / half / left / right */
.block-body.full { display: block; }
.block-body.half { max-width: 760px; margin: 0 auto; }
.block-body.left,
.block-body.right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.block-body.left .block-media { order: 1; }
.block-body.left .block-text { order: 2; }
.block-body.right .block-media { order: 2; }
.block-body.right .block-text { order: 1; }

.block-text .block-desc { color: var(--text-muted); margin-top: 12px; max-width: 60ch; }

/* ============================ 视频 ============================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-panel);
  border: 1px solid var(--border);
}
.video-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}
.video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
}
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-poster .dim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,11,0.1), rgba(6,7,11,0.75)); }
.video-poster .placeholder-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(0,47,167,0.55), transparent 60%),
    var(--bg-panel);
}
.play-btn {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  transition: transform 0.2s ease, background 0.2s ease;
}
.play-btn:hover { transform: scale(1.06); background: var(--accent); }
.play-btn svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.video-poster .video-name {
  position: relative;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 80%;
  text-align: center;
}

/* ============================ 音频播放器 ============================ */
.audio-player {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
}
.ap-cover {
  position: relative;
  width: 120px; height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: transparent;
}
.ap-cover img { width: 100%; height: 100%; object-fit: cover; }
.ap-cover svg { width: 34px; height: 34px; fill: #fff; opacity: 0.9; }
.ap-cover.playing svg { animation: coverPulse 2s ease-in-out infinite; }
@keyframes coverPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.ap-main { min-width: 0; }
.ap-title { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-artist { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.ap-controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.ap-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.ap-btn:hover { background: var(--accent); border-color: var(--accent); }
.ap-btn svg { width: 20px; height: 20px; fill: #fff; }
.ap-btn.main {
  width: 52px; height: 52px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 22px var(--accent-glow);
}
.ap-btn.main:hover { background: var(--accent-bright); }

.ap-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ap-time { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 40px; }
.ap-track { flex: 1; }
.ap-track input[type="range"] { width: 100%; }

/* 进度条 / 音量条（自定义滑块） */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-bright);
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-bright);
}

.ap-volume { display: flex; align-items: center; gap: 10px; }
.ap-volume input { width: 80px; }
.ap-volume svg { width: 18px; height: 18px; fill: var(--text-muted); flex-shrink: 0; }

/* 歌单 */
.playlist { margin-top: 18px; border-top: 1px solid var(--border); }
.playlist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 6px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.playlist-item:hover { background: var(--surface); }
.playlist-item.active { color: var(--accent-bright); }
.playlist-item .idx { font-size: 13px; color: var(--text-faint); width: 24px; font-variant-numeric: tabular-nums; }
.playlist-item .name { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-item .dur { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.playlist-item .playing-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); display: none; }
.playlist-item.active .playing-dot { display: inline-block; }

/* ============================ 图片 ============================ */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}
.image-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}
.image-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.image-item:hover img { transform: scale(1.05); }
.image-item.single { aspect-ratio: 16 / 9; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,7,12,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.lb-btn {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}
.lb-btn:hover { background: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; fill: #fff; }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ============================ PDF ============================ */
.pdf-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}
.pdf-item + .pdf-item { margin-top: var(--gap); }
.pdf-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}
.pdf-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.pdf-icon svg { width: 22px; height: 22px; fill: var(--accent-bright); }
.pdf-meta { flex: 1; min-width: 0; }
.pdf-name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-size { font-size: 12px; color: var(--text-faint); }
.pdf-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.pdf-btn:hover { background: var(--accent-bright); }
.pdf-viewer { display: none; border-top: 1px solid var(--border); }
.pdf-viewer.open { display: block; }
.pdf-viewer iframe { width: 100%; height: 72vh; border: 0; background: #fff; display: block; }

/* ============================ 代码 ============================ */
.code-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0C1220;
}
.code-block + .code-block { margin-top: var(--gap); }
.code-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; opacity: 0.7; }
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-name { flex: 1; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-lang {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-bright);
  letter-spacing: 0.5px;
}
.code-toggle {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 8px;
}
.code-toggle:hover { color: var(--text); background: var(--surface-strong); }
.code-body { display: block; }
.code-body.collapsed { display: none; }
.code-body pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  max-height: 60vh;
}
.code-body pre code { font-family: inherit; background: transparent; padding: 0; }

/* 覆盖 highlight.js 主题底色，融入本站 */
.hljs { background: #0C1220 !important; }

/* ============================ 链接 ============================ */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
}
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.link-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-strong); }
.link-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.link-arrow svg { width: 18px; height: 18px; fill: #fff; }
.link-card:hover .link-arrow { background: var(--accent-bright); }
.link-info { flex: 1; min-width: 0; }
.link-label { font-size: 15px; font-weight: 500; }
.link-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ============================ 关于 / 经历 / 技能 ============================ */
.about-text {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 68ch;
  line-height: 1.9;
  white-space: pre-line;
}

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  position: relative;
  padding: 0 0 32px 28px;
  border-left: 1px solid var(--border-strong);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -5px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-time { font-size: 16px; color: var(--accent-bright); letter-spacing: 1px; }
.tl-title { font-size: 21px; font-weight: 600; margin-top: 4px; }
.tl-org { font-size: 17px; color: var(--text-muted); margin-top: 2px; }
.tl-desc { font-size: 17px; color: var(--text-faint); margin-top: 6px; }

.skills-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-tag {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s ease;
}
.skill-tag:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

/* ============================ 联系 ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover { border-color: var(--border-strong); }
.contact-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.contact-ico svg { width: 22px; height: 22px; fill: var(--accent-bright); }
.contact-info { min-width: 0; }
.contact-label { font-size: 13px; color: var(--text-faint); }
.contact-value { font-size: 16px; font-weight: 500; margin-top: 2px; overflow-wrap: anywhere; }
.contact-card.wechat { align-items: flex-start; }
.contact-card.wechat img {
  width: 120px; height: 120px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

/* ============================ 页脚 ============================ */
.footer {
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* ============================ 动效 ============================ */
.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; filter: blur(0); transform: none; }

/* 错峰入场（开场区 + 各区块标题的小字） */
.rise {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
              filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
.rise.in { opacity: 1; filter: blur(0); transform: none; }

/* 逐词/逐字模糊浮现（参考模板的核心动效 BlurText） */
.split .w {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}
.split.in .w { opacity: 1; filter: blur(0); transform: none; }

/* ============================ 响应式 ============================ */
/* 平板 */
@media (max-width: 1024px) {
  .block-body.left,
  .block-body.right { grid-template-columns: 1fr; }
  .block-body.left .block-media,
  .block-body.right .block-media { order: 1; }
  .block-body.left .block-text,
  .block-body.right .block-text { order: 2; }
}

/* 手机 */
@media (max-width: 768px) {
  :root { --nav-h: 58px; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* 手机菜单：用透明度+位移过渡实现滑入（比 display 切换更稳） */
  .mobile-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    pointer-events: none;
    transition: opacity 0.26s ease,
                transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.26s;
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .audio-player { grid-template-columns: 1fr; gap: 14px; }
  .ap-cover { width: 100px; height: 100px; justify-self: center; }
  .ap-title { text-align: center; }
  .ap-controls { justify-content: center; }
  .ap-volume input { width: 100%; }

  .block-body.half { max-width: none; }

  .video-grid { grid-template-columns: 1fr; }
  .image-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .link-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 12px; }
  .stat-card { min-width: 0; flex: 1 1 45%; }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* 小屏手机 */
@media (max-width: 400px) {
  .image-grid { grid-template-columns: 1fr; }
  .stat-card { flex: 1 1 100%; }
  .pdf-head { flex-wrap: wrap; }
}

/* 减少动态效果（无障碍） */
@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, .rise { opacity: 1; transform: none; filter: none; }
  .split .w { opacity: 1; transform: none; filter: none; }
  .hero-scroll::after { animation: none; }
}

/* 全站默认不可选择文字；只有联系方式的"值"（邮箱 / 微信号 / 手机号）可以被用户选中复制 */
html, body, body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.contact-value {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}
body {
  -webkit-tap-highlight-color: transparent;
}

/* Specular Button 边缘追光动效（导航链接 / 筛选按钮 / 技能标签共用） */
.specular-host {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.specular-button__light {
  position: absolute;
  inset: -24px;
  z-index: 1;
  display: block;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  pointer-events: none;
}
.specular-button__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: inherit;
}

/* ============================ 环形轮播（图片/视频） ============================ */
.cc {
  position: relative;
  width: 100%;
  height: clamp(200px, 24vw, 260px);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cc-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.cc-camera {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.cc-ring {
  position: absolute;
  left: 0; top: 0;
  transform-style: preserve-3d;
}
.cc-card {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transition: opacity 0.3s ease;
}
.cc-frame {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1018;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 44px rgba(0,0,0,0.45);
  cursor: pointer;
}
.cc-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.cc-media--pending {
  background: radial-gradient(120% 120% at 50% 0%, rgba(0,90,255,0.25), #0d1018 60%);
}
.cc-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  pointer-events: none;
}
.cc-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
/* 媒体弹窗（图片大图 / 视频播放） */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,7,12,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.media-modal.open { opacity: 1; pointer-events: auto; }
.mm-stage {
  position: relative;
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-img {
  display: none;
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.mm-video {
  display: none;
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 8px;
  background: #000;
}
.mm-note {
  color: var(--text-muted);
  font-size: 15px;
  padding: 40px;
}
.mm-cap {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
  padding: 0 20px;
}
.mm-close, .mm-prev, .mm-next {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}
.mm-close:hover, .mm-prev:hover, .mm-next:hover { background: var(--accent); }
.mm-close svg, .mm-prev svg, .mm-next svg { width: 22px; height: 22px; fill: #fff; }
.mm-close { top: 24px; right: 24px; }
.mm-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.mm-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ============================ 音乐模块：选项轮盘 + 播放器 ============================ */
.music-layout {
  display: flex;
  align-items: center;
  gap: 28px;
}
.music-layout > .audio-player {
  flex: 1;
  min-width: 0;
}
.music-wheel {
  position: relative;
  flex: 0 0 190px;
  height: 220px;
  overflow: hidden;
  cursor: grab;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.music-wheel:active { cursor: grabbing; }
.ow-item {
  position: absolute;
  top: 50%;
  left: 0;
  min-width: 100%;
  transform-origin: left center;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  will-change: transform, opacity, filter;
  padding: 6px 0;
}
.ow-item.ow-selected {
  font-weight: 600;
  color: var(--text);
}
.ap-cover { position: relative; }
.ap-cover canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .music-layout { flex-direction: column; align-items: stretch; gap: 26px; margin-top: 12px; }
  .music-wheel { flex: none; width: 100%; height: 160px; touch-action: pan-y; }
  /* 居中 + 加大字号：右侧不再空一大块 */
  .ow-item {
    left: 25%;
    margin-left: 0;
    width: 60%;
    min-width: 0;
    text-align: left;
    transform-origin: left center;
    font-size: 20px;
    touch-action: none;
  }
  /* 手机：手指在卡片区上下滑也不带动页面滚动 */
  .cc { touch-action: none; }
  /* 手机端去掉 3D 旋转时的闪烁源：卡片透明度过渡 & 播放按钮的毛玻璃 & 背面 */
  .cc-card { transition: none; }
  .cc-frame { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .cc-play {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0,0,0,0.62);
  }
}

/* Vibe Coding 作品：一行一个产品，右侧附"产品说明书"链接 */
.vibe-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vibe-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  max-width: 75%;
}
.vibe-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.vibe-info {
  flex: 1;
  min-width: 0;
}
.vibe-label {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vibe-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vibe-doc {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.vibe-doc:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.vibe-doc svg { width: 14px; height: 14px; }

@media (max-width: 768px) {
  .vibe-item { max-width: none; flex-wrap: nowrap; gap: 10px; padding: 12px 14px; }
  .vibe-main { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .vibe-doc { margin-left: auto; padding: 8px 12px; font-size: 12px; }
  .vibe-label { font-size: 14px; }
  .vibe-desc { font-size: 12px; }
}

/* 禁用打印：打印时整页留白，防止"打印 / 打印成 PDF"盗图 */
@media print {
  html, body { display: none !important; }
}
img, video {
  -webkit-user-drag: none;
  user-drag: none;
}
