/* ================================================================
   Style — 毛玻璃质感 · 蓝色强调 · 深色主题 · 响应式
   ================================================================ */

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

:root {
  --bg: #060609;
  --bg-elevated: #0b0b12;
  --surface: rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.07);
  --surface-glass: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --text: #f0f0f4;
  --text-secondary: #9a9aa4;
  --text-tertiary: #5e5e6a;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59,130,246,0.35);
  --accent-subtle: rgba(59,130,246,0.08);
  --accent2: #8b5cf6;
  --accent3: #06b6d4;
  --gradient-1: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04), 0 8px 40px rgba(0,0,0,0.5);
  --shadow-lg: 0 1px 0 rgba(255,255,255,0.05), 0 24px 80px rgba(0,0,0,0.7);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(59,130,246,0.2); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

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

/* ================================================================
   Loading Progress Bar
   ================================================================ */
.loader-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  background: var(--gradient-1);
  z-index: 9999;
  width: 0;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.3s ease;
}
.loader-bar.done {
  width: 100%;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.5s ease 0.25s;
}

/* ================================================================
   Navigation
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(6,6,9,0.78);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav__logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nav__list { display: flex; gap: 32px; }

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--accent-glow);
  transition: width 0.3s var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================================
   Hero — 鼠标追踪聚光灯
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 28px 60px;
  overflow: hidden;
  background: var(--bg);
}

/* 鼠标追踪聚光灯 */
.hero__spotlight {
  position: absolute;
  pointer-events: none;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, rgba(99,102,241,0.05) 30%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(40px);
  z-index: 0;
}
.hero__spotlight.active {
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__name {
  display: block;
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__role {
  display: block;
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 12px;
}

.hero__tagline {
  margin-top: 28px;
  font-size: 18px;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

.hero__cta {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  z-index: 1;
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  transition: all 0.35s var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn--primary:active { transform: scale(0.96); }

.btn--ghost {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  border: 0.5px solid rgba(255,255,255,0.12);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

/* ================================================================
   Section Title
   ================================================================ */
.section-title {
  text-align: center;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title--left { text-align: left; margin-bottom: 24px; }

/* ================================================================
   Filter Bar
   ================================================================ */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 0.5px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-secondary);
  transition: all 0.35s var(--ease-spring);
}
.filter-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-hover);
}
.filter-btn.active {
  background: rgba(59,130,246,0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--accent-light);
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 0 20px rgba(59,130,246,0.12);
}

/* ================================================================
   Works Grid — 卡片网格
   ================================================================ */
.works {
  padding: 80px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 毛玻璃卡片 — 极简网格态，弹出交互由 card-popout 处理 */
.works-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 0.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
}
.works-card:hover {
  border-color: rgba(59,130,246,0.25);
  box-shadow: 0 0 40px rgba(59,130,246,0.06);
}

/* ---- 图片区域 ---- */
.works-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.works-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- 长图徽章 ---- */
.works-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(139,92,246,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #c4b5fd;
  border: 0.5px solid rgba(139,92,246,0.3);
  z-index: 2;
}

/* 视频播放徽章 */
.works-card__badge--video {
  background: rgba(6,182,212,0.25);
  color: #67e8f9;
  border-color: rgba(6,182,212,0.3);
}

/* 视频封面占位 */
.works-card__video-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(6,182,212,0.12) 0%, rgba(59,130,246,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.works-card__video-placeholder svg {
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.works-card:hover .works-card__video-placeholder svg {
  transform: scale(1.15);
  opacity: 1;
}

/* ---- 卡片文本区 ---- */
.works-card__body {
  padding: 12px 16px 14px;
  position: relative;
  z-index: 1;
}

.works-card__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 2px;
}

.works-card__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---- 不规则尺寸 ---- */
/* 统一为 4/3 比例，消除参差不齐的留白 */
.works-grid .works-card:nth-child(5n+1) .works-card__image { aspect-ratio: 4 / 3; }
.works-grid .works-card:nth-child(5n+3) .works-card__image { aspect-ratio: 4 / 3; }

/* ================================================================
   Card Popout — iOS 26 Liquid Glass 卡片弹出至屏幕中心
   ================================================================ */

/* 背景模糊遮罩 */
.card-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6,6,9,0.55);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.card-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* 弹出的卡片 — Liquid Glass 毛玻璃 */
.card-popout {
  position: fixed;
  top: 0;
  left: 0;
  width: min(880px, calc(100vw - 40px));
  height: 500px;
  border-radius: var(--radius-lg);
  background: rgba(13,13,28,0.82);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 0.5px solid rgba(255,255,255,0.1);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04),
    0 30px 80px rgba(0,0,0,0.7),
    0 0 120px rgba(59,130,246,0.06);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transform-origin: top left;
  transition: opacity 0.25s ease;
  z-index: 501;
  cursor: pointer;
}
.card-popout.active {
  opacity: 1;
  pointer-events: all;
}

/* Liquid Glass 光线反射 — 左上到右下渐变 */
.card-popout::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.06) 0%,
    transparent 40%,
    rgba(59,130,246,0.04) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* 顶部微光边缘 */
.card-popout::after {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
  z-index: 4;
}

/* ---- 弹出卡片：左侧图片 ---- */
.card-popout__image {
  width: 45%;
  min-width: 200px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.card-popout__image img,
.card-popout__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}
.card-popout:hover .card-popout__image img,
.card-popout:hover .card-popout__image video {
  transform: scale(1.05);
}
.popout-video {
  display: block;
  max-height: 500px;
  width: 100%;
  object-fit: contain;
  background: #000;
}
/* 9:16 竖屏视频 */
.popout-video--vertical {
  max-height: 460px;
  max-width: 260px;
  width: auto;
  margin: 0 auto;
  border-radius: 12px;
}

/* 视频比例标签 */
.popout-video-ratio {
  font-size: 10px;
  opacity: 0.5;
  margin-left: 2px;
}

/* 视频列表（弹出层内） */
.popout-video-list {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 3;
}
.popout-video-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.popout-video-item:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.popout-video-item.active {
  background: rgba(6,182,212,0.35);
  color: #fff;
}
.popout-video-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.popout-video-item.active .popout-video-dot {
  background: #67e8f9;
  box-shadow: 0 0 6px rgba(6,182,212,0.6);
}

/* ---- 弹出卡片：右侧信息 ---- */
.card-popout__body {
  flex: 1;
  padding: 20px 24px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.card-popout__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 6px;
}

.card-popout__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
  color: var(--text);
}

.card-popout__meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.card-popout__desc {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- 点击提示箭头 ---- */
.card-popout__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: -0.01em;
}
.card-popout__cta span {
  display: inline-block;
  transition: transform 0.3s var(--ease-spring);
}
.card-popout:hover .card-popout__cta span {
  transform: translateX(4px);
}

/* 移动端：垂直布局 */
@media (max-width: 768px) {
  .card-popout {
    width: calc(100vw - 32px);
    height: auto;
    flex-direction: column;
  }
  .card-popout__image {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
  }
  .card-popout__body {
    padding: 20px;
    justify-content: flex-start;
  }
  .card-popout__title {
    font-size: 21px;
  }
}

/* ================================================================
   About — 头像 + 简介 + 可展开卡片（含工作经历）
   ================================================================ */
.about {
  padding: 80px 28px;
  max-width: 880px;
  margin: 0 auto;
}

/* 顶部：头像 + 名字/角色 */
.about__top {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}
.about__image {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.about__avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59,130,246,0.2) 0%, rgba(99,102,241,0.15) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid rgba(59,130,246,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.about__avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.2) 0%, transparent 60%);
}
.about__avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.about__avatar-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.06em;
  position: relative;
}
.about__avatar-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  position: relative;
}
.about__intro {
  flex: 1;
  min-width: 0;
}
.about__name {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.about__role-text {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.about__tagline-text {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  border: 0.5px solid rgba(59,130,246,0.2);
  background: var(--accent-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}
.skill-tag:hover {
  border-color: rgba(59,130,246,0.4);
  background: rgba(59,130,246,0.15);
  box-shadow: 0 0 14px rgba(59,130,246,0.12);
}

/* 社交链接（联系方式区域使用） */
.about__social {
  display: flex;
  gap: 14px;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.social-link:hover {
  border-color: rgba(59,130,246,0.4);
  color: var(--accent-light);
  background: var(--accent-subtle);
  box-shadow: 0 0 20px rgba(59,130,246,0.12);
}

/* ---- 可展开信息卡片 ---- */
.about__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-card {
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.info-card:hover {
  border-color: rgba(59,130,246,0.2);
  box-shadow: 0 0 30px rgba(59,130,246,0.05);
}
.info-card.expanded {
  border-color: rgba(59,130,246,0.25);
  box-shadow: 0 0 30px rgba(59,130,246,0.08);
}

/* 卡片头部 — 可点击 */
.info-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  gap: 16px;
}
.info-card__header-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.info-card__header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.info-card__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.info-card__period {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-light);
}
.info-card__company {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.info-card__role {
  font-size: 13px;
  color: var(--text-secondary);
}
.info-card__arrow {
  color: var(--text-tertiary);
  transition: transform 0.35s var(--ease-out);
  flex-shrink: 0;
}
.info-card.expanded .info-card__arrow {
  transform: rotate(180deg);
  color: var(--accent-light);
}

/* 卡片内容区 — 默认折叠 */
.info-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out), padding 0.45s ease;
}
.info-card__body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}
.info-card__body p:last-child { margin-bottom: 0; }
.info-card.expanded .info-card__body {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .about { padding: 60px 20px; }
  .about__top {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    margin-bottom: 32px;
  }
  .about__avatar {
    width: 150px;
    height: 150px;
  }
  .about__avatar-text { font-size: 22px; }
  .about__name { font-size: clamp(24px, 7vw, 34px); }
  .about__skills { justify-content: center; }
  .about__social { justify-content: center; }
  .info-card__header { padding: 14px 18px; }
  .info-card.expanded .info-card__body { padding: 0 18px 16px; }
  .info-card__header-left { gap: 8px; }
  .info-card__header-right { gap: 6px; }
}

/* ================================================================
   Skills
   ================================================================ */
.skills {
  padding: 80px 28px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.skill-card {
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.45s var(--ease-spring);
}
.skill-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(59,130,246,0.08);
}
.skill-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  color: var(--accent-light);
}
.skill-card__icon svg { width: 100%; height: 100%; }
.skill-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.skill-card p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ================================================================
   Contact
   ================================================================ */
.contact {
  padding: 80px 28px 100px;
  max-width: 800px;
  margin: 0 auto;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact__info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.contact__email a {
  font-size: 18px;
  font-weight: 600;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 微信二维码 */
.contact__qr {
  display: flex;
  justify-content: center;
  align-items: center;
}
.qr-image {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--border);
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

/* ================================================================
   Footer
   ================================================================ */
.footer {
  text-align: center;
  padding: 32px;
  font-size: 13px;
  color: var(--text-tertiary);
  border-top: 0.5px solid var(--border);
}

/* ================================================================
   Mobile Mockup Viewer（放大版）
   ================================================================ */
.mockup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.mockup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mockup-close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.mockup-close:hover {
  background: rgba(255,255,255,0.14);
  transform: scale(1.1) rotate(90deg);
}

/* Phone frame — 放大尺寸 */
.mockup-phone {
  width: 380px;
  height: 760px;
  background: #13131a;
  border-radius: 40px;
  border: 3px solid #2a2a34;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 2px #08080e, 0 30px 80px rgba(0,0,0,0.8);
}

.mockup-phone__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 32px;
  background: #13131a;
  border-radius: 0 0 18px 18px;
  z-index: 3;
}

.mockup-phone__screen {
  position: absolute;
  inset: 10px;
  border-radius: 30px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  scroll-behavior: smooth;
}
.mockup-phone__screen::-webkit-scrollbar { width: 0; }

.mockup-phone__screen img {
  width: 100%;
  display: block;
}

.mockup-hint {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* ================================================================
   Lightbox — 支持滚轮切换
   ================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px 80px;
}
.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.lightbox img.fade-out {
  opacity: 0;
  transform: scale(0.96);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.14);
  transform: scale(1.1);
}

/* 灯箱导航箭头 */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}
.lightbox__nav:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-50%) scale(1.1);
}
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* ================================================================
   Project Detail Page
   ================================================================ */
.project-detail {
  padding: 100px 28px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
.project-hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
}
.project-hero__image img,
.project-hero__video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius-lg);
}

/* 视频项目：全宽垂直布局，视频居中放大 */
.project-hero--video {
  display: block;
}
.project-hero--video .project-hero__image {
  max-width: 1100px;
  margin: 0 auto 32px;
}
.project-hero--video .project-hero__video {
  aspect-ratio: auto;
  width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-lg);
}
.project-hero--video .project-hero__video--vertical {
  width: auto;
  max-width: 400px;
  max-height: 75vh;
  margin: 0 auto;
}
.project-hero--video .project-hero__info {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.project-hero--video .project-hero__meta {
  justify-content: center;
}
.project-hero--video .project-hero__mockup-btn {
  align-self: center;
}

/* 9:16 竖屏视频 */
.project-hero__video--vertical {
  aspect-ratio: 9/16;
  width: auto;
  max-width: 360px;
  max-height: 640px;
  margin: 0 auto;
}
.project-hero--video .project-hero__video--vertical {
  max-width: 420px;
  max-height: 78vh;
}

/* 视频合集容器 */
.project-hero__video-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.project-hero--video .project-hero__video-gallery {
  max-width: 1100px;
  margin: 0 auto;
}
.video-gallery-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.video-gallery-btn {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 0.5px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}
.video-gallery-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-hover);
}
.video-gallery-btn.active {
  background: rgba(6,182,212,0.2);
  color: #67e8f9;
  border-color: rgba(6,182,212,0.35);
}
.project-hero__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project-hero__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.project-hero__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.project-hero__meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
.project-hero__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-hero__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.project-hero__mockup-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  border: 0.5px solid rgba(139,92,246,0.35);
  background: rgba(139,92,246,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #c4b5fd;
  transition: all 0.3s ease;
}
.project-hero__mockup-btn:hover {
  background: rgba(139,92,246,0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(139,92,246,0.15);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 0.5px solid var(--border);
  cursor: pointer;
  transition: all 0.45s var(--ease-spring);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.project-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(59,130,246,0.08);
  border-color: var(--border-hover);
}
.project-gallery__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transition: color 0.3s ease;
}
.back-link:hover { color: var(--text); }

/* ================================================================
   Back to Top Button
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: rgba(11,11,18,0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.4s var(--ease-spring);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  border-color: rgba(59,130,246,0.4);
  color: var(--accent-light);
  background: rgba(11,11,18,0.95);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(59,130,246,0.12);
}

/* ================================================================
   Form Feedback
   ================================================================ */
.form-feedback {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: none;
}
.form-feedback.success {
  display: block;
  color: #34d399;
}
.form-feedback.error {
  display: block;
  color: #f87171;
}

.btn__loader {
  display: inline-flex;
  align-items: center;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .project-hero { grid-template-columns: 1fr; gap: 32px; }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav {
    padding: 12px 20px;
  }
  .nav__logo {
    font-size: 16px;
  }
  .nav__list {
    position: fixed;
    top: 0; right: -100%;
    width: 260px; height: 100vh;
    flex-direction: column;
    background: rgba(11,11,18,0.96);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right 0.4s var(--ease-out);
    border-left: 0.5px solid var(--border);
    z-index: 250;
  }
  .nav__list.active { right: 0; }
  .nav__toggle { display: flex; z-index: 260; }
  .nav__link { font-size: 16px; }

  /* Hero */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 100px 20px 60px;
  }
  .hero__spotlight {
    width: 280px;
    height: 280px;
  }
  .hero__name {
    font-size: clamp(32px, 10vw, 56px);
  }
  .hero__role {
    font-size: clamp(16px, 5vw, 22px);
  }
  .hero__tagline {
    font-size: 15px;
  }
  .hero__cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Works */
  .works { padding: 60px 20px; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .works-card__body { padding: 10px 12px 12px; }
  .works-card__title { font-size: 14px; }
  .section-title { font-size: clamp(24px, 7vw, 36px); margin-bottom: 32px; }

  /* Card Popout — full-width vertical */
  .card-popout {
    width: calc(100vw - 32px);
    height: auto;
    max-height: 90vh;
    flex-direction: column;
    border-radius: var(--radius-lg);
  }
  .card-popout__image {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .card-popout__body {
    padding: 16px 18px 20px;
    justify-content: flex-start;
  }
  .card-popout__title { font-size: 20px; }
  .card-popout__desc { font-size: 13px; -webkit-line-clamp: 4; }

  /* Skills */
  .skills { padding: 60px 20px 80px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .skill-card { padding: 24px 16px; }
  .skill-card h3 { font-size: 14px; }

  /* Contact */
  .contact { padding: 60px 20px 80px; }
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact__info p { font-size: 15px; }
  .contact__email a { font-size: 16px; }
  .qr-placeholder { width: 160px; height: 160px; }

  /* Mockup */
  .mockup-phone { width: 300px; height: 620px; border-radius: 32px; }
  .mockup-phone__screen { border-radius: 24px; }

  /* Lightbox */
  .lightbox { padding: 80px 16px 60px; }
  .lightbox img { max-width: 96vw; max-height: 70vh; }
  .lightbox__nav { width: 36px; height: 36px; font-size: 16px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__close { top: 12px; right: 16px; width: 38px; height: 38px; }

  /* Project detail */
  .project-detail { padding: 80px 16px 40px; }
  .project-hero__title { font-size: clamp(22px, 6vw, 32px); }
  .project-hero--video .project-hero__video { max-height: 50vh; }
  .project-hero--video .project-hero__video--vertical { max-width: 300px; max-height: 55vh; }
  .project-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .nav { padding: 10px 14px; }
  .nav__logo { font-size: 14px; }

  .hero { padding: 80px 16px 50px; }
  .hero__spotlight { width: 200px; height: 200px; }
  .hero__cta .btn { max-width: 100%; }

  .works-grid { grid-template-columns: 1fr; gap: 16px; }
  .works-card__image { aspect-ratio: 16 / 10; }
  .works-card__title { font-size: 16px; }
  .works, .about, .skills, .contact { padding-left: 16px; padding-right: 16px; }

  .skills-grid { grid-template-columns: 1fr; gap: 10px; }

  .project-gallery { grid-template-columns: 1fr; }

  .mockup-phone { width: 260px; height: 520px; border-radius: 28px; }
  .mockup-phone__screen { border-radius: 20px; }

  .about__avatar { width: 160px; height: 160px; }

  .filter-bar { gap: 6px; }
  .filter-btn { padding: 7px 14px; font-size: 12px; }

  /* 极小屏: 320px (iPhone SE, Fold 等) */
  @media (max-width: 360px) {
    .hero__name { font-size: 28px; }
    .hero__role { font-size: 15px; }
    .card-popout { width: calc(100vw - 16px); }
    .card-popout__body { padding: 12px 14px 16px; }
    .card-popout__title { font-size: 18px; }
    .card-popout__desc { font-size: 12px; -webkit-line-clamp: 3; }
    .mockup-phone { width: 240px; height: 480px; }
    .btn { padding: 12px 20px; font-size: 14px; }
  }
}
