/* Bundle: 12 CSS files merged */

/* --- style.css --- */
/* ============================================   个人简历与作品集网站 - 样式文件   Style: Clean minimal / System-font typography   Inspired by "Things That Should Be Large"   ============================================ *//* === CSS Variables === */:root {  --bg: #ffffff;  --bg-subtle: #f7f7f7;  --text-primary: #1a1a1a;  --text-secondary: #555555;  --text-muted: #999999;  --accent: #4F46E5;  --accent-light: #818CF8;  --accent-dark: #3730A3;  --accent-subtle: rgba(79, 70, 229, 0.06);  --surface: #ffffff;  --border-color: #e5e5e5;  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;  --font-heading: 'Roboto Flex', sans-serif;  --font-size-base: 16px;  --letter-spacing: -0.011em;  --line-height: 1.7;  --section-padding: 100px 32px 80px;  --section-title-size: 1.6rem;  --section-title-spacing: -0.025em;  --section-title-align: center;  --section-mb: 56px;  --nav-bg: rgba(255,255,255,0.92);  --cover-title-size: clamp(2.6rem, 5.5vw, 4rem);  --cover-title-spacing: -0.02em;  --cover-title-align: center;  --max-width: 1000px;  --nav-height: 60px;  --radius: 6px;  --radius-lg: 12px;  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);}/* === Reset & Base === */*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }html {  scroll-behavior: smooth;  scroll-padding-top: var(--nav-height);}body {  font-family: var(--font-body);  background-color: var(--bg);  color: var(--text-primary);  line-height: var(--line-height, 1.7);  min-height: 100vh;  overflow-x: hidden;  -webkit-font-smoothing: antialiased;  -moz-osx-font-smoothing: grayscale;  font-size: var(--font-size-base, 16px);  letter-spacing: var(--letter-spacing, -0.011em);}/* Remove paper texture — no longer needed */.paper-texture { display: none; }.main-content { position: relative; z-index: 1; }/* === Navigation Bar === */.navbar {  position: fixed;  top: 0; left: 0; right: 0;  height: var(--nav-height);  background: var(--nav-bg, rgba(255,255,255,0.92));  backdrop-filter: blur(12px);  -webkit-backdrop-filter: blur(12px);  z-index: 1000;  border-bottom: 1px solid var(--border-color);}.nav-container {  max-width: var(--max-width);  margin: 0 auto;  padding: 0 32px;  height: 100%;  display: flex;  align-items: center;  justify-content: center;}.nav-logo {  display: none;}.nav-links { list-style: none; display: flex; gap: 4px; }.nav-links li a {  display: inline-block;  padding: 6px 14px;  font-size: 0.88rem;  font-weight: 500;  color: var(--text-secondary);  text-decoration: none;  border-radius: 6px;  transition: all var(--transition);}.nav-links li a:hover { color: var(--text-primary); background: var(--accent-subtle); }.nav-links li a.active { color: var(--accent); background: var(--accent-subtle); }.mobile-menu-btn {  display: none;  background: none;  border: 1px solid var(--border-color);  border-radius: var(--radius);  font-size: 1.2rem;  color: var(--text-secondary);  cursor: pointer;  padding: 6px 12px;  font-family: var(--font-body);}/* ============================================   COVER SECTION — Typography-forward Hero   ============================================ */.cover-section {
  min-height: 100vh;
  position: relative;
  overflow: visible;
}
.cover-wrapper {
  height: 300vh;
  position: relative;
}
.cover-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: transparent;
}
.cover-title {
  font-family: var(--font-heading, 'Roboto Flex', sans-serif);
  font-size: var(--cover-title-size, clamp(2.6rem, 5.5vw, 4rem));
  font-weight: 100;
  font-stretch: 100%;
  color: var(--cover-title-color, var(--text-primary));
  line-height: 1.2;
  margin-bottom: 36px;
  letter-spacing: var(--cover-title-spacing, -0.02em);
  text-align: var(--cover-title-align, center);
  margin-top: var(--cover-title-mt, 0px);
  margin-left: var(--cover-title-ml, 0px);
  z-index: 10;
  position: relative;
}
.cover-explore-btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: var(--cover-btn-size, 1.05rem);
  font-weight: 600;
  color: #fff;
  background: var(--text-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: -0.01em;
  margin-top: var(--cover-btn-mt, 0px);
  margin-left: var(--cover-btn-ml, 0px);
  z-index: 10;
  position: relative;
}
.cover-explore-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.2);
}
.cover-explore-btn.explored {
  animation: btnPopOut 0.35s ease forwards;
}
@keyframes btnPopOut {
  to { opacity: 0; transform: translateY(-16px) scale(0.95); }
}
.cover-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease, margin 0.5s ease;
  z-index: 10;
  position: relative;
}
.cover-nav-buttons.revealed {
  opacity: 1;
  max-height: 400px;
}
.cover-nav-btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(16px);
}
.cover-nav-buttons.revealed .cover-nav-btn {
  animation: navBtnPopIn 0.4s ease forwards;
}
.cover-nav-buttons.revealed .cover-nav-btn:nth-child(1) { animation-delay: 0.05s; }
.cover-nav-buttons.revealed .cover-nav-btn:nth-child(2) { animation-delay: 0.13s; }
.cover-nav-buttons.revealed .cover-nav-btn:nth-child(3) { animation-delay: 0.21s; }
.cover-nav-buttons.revealed .cover-nav-btn:nth-child(4) { animation-delay: 0.29s; }
.cover-nav-buttons.revealed .cover-nav-btn:nth-child(5) { animation-delay: 0.37s; }
@keyframes navBtnPopIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.cover-nav-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.cover-img-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.cover-img-item {
  position: absolute;
  overflow: visible;
}
.cover-img-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.cover-img-main {
  max-width: var(--cover-main-size, 15vw);
  z-index: 3;
}
.cover-img-bg {
  max-width: var(--cover-bg-size, 9vw);
  z-index: 2;
}
@media (max-width: 768px) {
  .cover-wrapper { height: 250vh; }
  .cover-img-main { max-width: 20vw; }
  .cover-img-bg { max-width: 12vw; }
}
@media (max-width: 480px) {
  .cover-wrapper { height: 220vh; }
  .cover-title { font-size: 1.8rem; }
  .cover-explore-btn { font-size: 0.95rem; padding: 12px 28px; }
  .cover-nav-buttons { gap: 8px; margin-top: 32px; }
  .cover-nav-btn { padding: 10px 18px; font-size: 0.88rem; }
  .cover-img-main { max-width: 25vw; }
  .cover-img-bg { max-width: 15vw; }
}
/* === Sections === */.section {  max-width: var(--max-width);  margin: 0 auto;  padding: var(--section-padding, 100px 32px 80px);  position: relative;  background: var(--sec-bg, transparent);}/* === Section Headers — Clean minimal (centered) === */.section-header {  text-align: var(--section-title-align, center);  margin-bottom: var(--section-mb, 56px);}.section-title {  font-family: var(--font-heading, 'Roboto Flex', sans-serif);  font-size: var(--section-title-size, 1.6rem);  font-weight: 700;  color: var(--sec-title-color, var(--text-primary));  letter-spacing: var(--section-title-spacing, -0.025em);  margin-top: var(--sec-title-mt, 0px);  margin-left: var(--sec-title-ml, 0px);}/* TextPressure character spans */.tp-char {  display: inline-block;  white-space: pre;  transition: none;  will-change: font-variation-settings;}/* SplitText character spans */.split-char {  display: inline-block;  white-space: pre;  will-change: transform, opacity;}.section-underline {  display: none;}/* === Scroll Animation Base === */.fade-up {  opacity: 0;  transform: translateY(24px);  transition: opacity 0.6s ease-out, transform 0.6s ease-out;}.fade-up.visible { opacity: 1; transform: translateY(0); }.stagger-children > * {  opacity: 0;  transform: translateY(16px);  transition: opacity 0.45s ease-out, transform 0.45s ease-out;}.stagger-children.visible > *:nth-child(1) { transition-delay: 0.04s; }.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }.stagger-children.visible > *:nth-child(3) { transition-delay: 0.12s; }.stagger-children.visible > *:nth-child(4) { transition-delay: 0.16s; }.stagger-children.visible > *:nth-child(5) { transition-delay: 0.20s; }.stagger-children.visible > *:nth-child(6) { transition-delay: 0.24s; }.stagger-children.visible > *:nth-child(7) { transition-delay: 0.28s; }.stagger-children.visible > *:nth-child(8) { transition-delay: 0.32s; }.stagger-children.visible > * {  opacity: 1;  transform: translateY(0);}/* ============================================   SECTION 1: Personal Info   CircularGallery 照片 + 横行四卡片   ============================================ */.personal-new { max-width: 1000px; margin: 0 auto; }.personal-gallery-wrapper {  width: 100%;  height: auto;  position: relative;  margin-bottom: 48px;  border-radius: var(--radius-lg);  overflow: visible;}/* ── 横行四卡片（悬停展开）── */.personal-info-row {  display: grid;  grid-template-columns: repeat(4, 1fr);  gap: 20px;  align-items: start;}.info-card {  background: var(--surface);  border-radius: var(--radius-lg);  padding: 20px 22px;  border: 1px solid var(--border-color);  cursor: default;  transition:    background 0.3s ease,    border-color 0.3s ease,    box-shadow 0.3s ease;}.info-card:hover {  background: var(--accent-subtle);  border-color: var(--accent-light);  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.1);}.info-card h4 {  display: flex;  align-items: center;  justify-content: space-between;  font-size: 0.95rem;  font-weight: 700;  color: var(--text-primary);  margin: 0;  letter-spacing: -0.01em;  transition: color 0.3s ease;}.info-card:hover h4 {  color: var(--accent);}/* + / − indicator */.info-card-indicator {  display: inline-flex;  align-items: center;  justify-content: center;  width: 22px;  height: 22px;  font-size: 1.1rem;  font-weight: 400;  color: var(--text-muted);  border-radius: 50%;  transition: transform 0.35s ease, color 0.3s ease;  flex-shrink: 0;  margin-left: 8px;}.info-card:hover .info-card-indicator {  transform: rotate(45deg);  color: var(--accent);}/* ── 可展开内容体 ── */.info-card-body {  max-height: 0;  overflow: hidden;  opacity: 0;  transform: translateY(-6px);  transition:    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),    opacity 0.35s ease,    transform 0.35s ease,    margin-top 0.35s ease;  margin-top: 0;}.info-card:hover .info-card-body {
  max-height: 800px;
  overflow-y: auto;
  opacity: 1;
  transform: translateY(0);
  margin-top: 14px;
}.info-card ul { list-style: none; padding: 0; }.info-card ul li {  padding: 5px 0;  color: var(--text-secondary);  font-size: 0.84rem;  line-height: 1.6;  border-bottom: 1px solid rgba(0,0,0,0.04);}.info-card ul li:last-child { border-bottom: none; }.info-lbl {  display: inline-block;  font-weight: 600;  color: var(--text-primary);  min-width: 36px;  margin-right: 6px;  font-size: 0.8rem;}.info-card .placeholder-text { color: var(--text-muted); }/* ============================================   SECTION 2: AI Matcher — iframe embedding   ============================================ */.matcher-iframe-wrapper {  width: 100%;  max-width: 780px;  margin: 0 auto;  background: #fff;  border-radius: 12px;  overflow: hidden;  box-shadow: 0 1px 3px rgba(0,0,0,0.06);  border: 1px solid var(--border-color);}.matcher-iframe {  width: 100%;  height: 800px;  border: none;  display: block;}@media (max-width: 768px) {  .matcher-iframe { height: 900px; }}/* ============================================   SECTION 5: Portfolio   ============================================ */.portfolio-container { max-width: var(--max-width); margin: 0 auto; }.gooey-nav-container { margin-bottom: 48px; }.portfolio-content-area { position: relative; min-height: 300px; }.portfolio-panel { display: none; }.portfolio-panel.active { display: block; animation: panelIn 0.3s ease; }@keyframes panelIn {  from { opacity: 0; transform: translateX(20px); }  to { opacity: 1; transform: translateX(0); }}.narrative-item {  opacity: 0;  transform: translateY(20px);  transition: opacity 0.5s ease-out, transform 0.5s ease-out;}.narrative-item.visible { opacity: 1; transform: translateY(0); }/* Xiaohongshu — 左右两栏 sticky 布局 */.xhs-layout { padding-top: 48px;  display: grid;  grid-template-columns: 1fr 1fr;  gap: 0;  min-height: 80vh;  align-items: start;}/* ── 左栏：照片轮播（sticky）── */.xhs-left {  position: sticky;  top: 100px;  padding-right: 48px;}.xhs-photo-stage {  position: relative;  width: 100%;  aspect-ratio: 4/5;  border-radius: 12px;  overflow: hidden;  background: var(--bg-subtle);}.xhs-photo {  position: absolute;  inset: 0;  width: 100%;  height: 100%;  object-fit: cover;  opacity: 0;  transition: opacity 0.6s ease;  pointer-events: none;}.xhs-photo.active {  opacity: 1;  pointer-events: auto;}.xhs-photo-counter {  text-align: center;  margin-top: 14px;  font-size: 0.82rem;  color: var(--text-muted);  font-weight: 500;  letter-spacing: 0.04em;}/* ── 右栏：可滚动内容 ── */.xhs-right {  padding-left: 0;}.xhs-section {  padding: 28px 0;  border-bottom: 1px solid var(--border-color);}.xhs-section:first-child { padding-top: 0; }.xhs-section:last-child { border-bottom: none; }.xhs-section h3 {  font-size: 1.15rem;  font-weight: 700;  color: var(--text-primary);  margin-bottom: 12px;  letter-spacing: -0.01em;}.xhs-section p {  font-size: 0.9rem;  color: var(--text-secondary);  line-height: 1.75;  margin-bottom: 12px;}.xhs-link {  display: inline-block;  font-size: 0.85rem;  font-weight: 600;  color: var(--accent);  text-decoration: none;  transition: color 0.2s ease;}.xhs-link:hover {  color: var(--accent-dark);}

/* Xiaohongshu — 杂志布局（左图右树） */
.xhs-magazine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── 左栏：JS 粘性跟随 2×2 IP 网格 ── */
.xhs-magazine-left {
  will-change: transform;
}

/* 2×2 网格容器 */
.xhs-magazine-ip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* 每个 IP 卡片 */
.xhs-magazine-ip-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* IP 名称标签 */
.xhs-magazine-ip-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
  background: var(--accent-subtle);
  padding: 3px 6px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xhs-magazine-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: visible;
  background: var(--bg-subtle);
}

.xhs-magazine-stage:hover::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 50;
  pointer-events: none;
}

.xhs-magazine-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
  transform-origin: center center;
  cursor: default;
}

.xhs-magazine-photo.active {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s ease, transform 0.3s ease;
  cursor: zoom-in;
}

.xhs-magazine-photo.active:hover {
  transform: scale(3);
  z-index: 60 !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.xhs-magazine-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.xhs-magazine-counter {
  text-align: center;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ── 右栏：树形内容 ── */
.xhs-magazine-right {
  min-height: 0;
}

.xhs-tree {
  max-width: none;
  margin: 0;
  padding: 0;
}

.xhs-tree-root {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.xhs-tree-icon { font-size: 1.2rem; flex-shrink: 0; }
.xhs-tree-label { color: var(--text-primary); }
.xhs-tree-label.sub { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }

.xhs-tree-connector {
  width: 2px;
  height: 20px;
  background: var(--border-color);
  margin-left: 19px;
}

.xhs-tree-branch { margin-bottom: 2px; }

.xhs-tree-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: default;
}

.xhs-tree-content {
  padding: 14px 16px 14px 32px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-left: 2px solid var(--border-color);
  margin-left: 19px;
}

.xhs-tree-sub {
  padding: 4px 16px 4px 46px;
  border-left: 2px solid var(--border-color);
  margin-left: 19px;
}

.xhs-tree-sub-connector {
  width: 2px;
  height: 10px;
  background: var(--border-color);
  margin-left: 0;
}

.xhs-tree-sub-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.xhs-tree-sub-icon {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.xhs-tree-sub-image {
  margin-top: 10px;
  margin-left: 28px;
}
.xhs-tree-sub-image img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.xhs-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.xhs-link:hover { color: var(--accent-dark); }

/* ── 小红书运营 - 图片网格（四图并列）── */
.xhs-image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.xhs-image-grid-item {
  border-radius: 8px;
  overflow: visible;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
}
.xhs-image-grid-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center center;
}
.xhs-tree-content:has(.xhs-image-grid-item:hover)::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 50;
  pointer-events: none;
}

.xhs-image-grid-item:hover img {
  transform: scale(1.5);
  z-index: 60;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  position: relative;
}

/* 账号成果总览: 单行排列 */
.xhs-tree > :nth-child(2) .xhs-image-grid {
  grid-template-columns: repeat(5, 1fr);
}

/* 账号成果总览: 5x */
.xhs-tree > :nth-child(2) .xhs-image-grid-item:hover img {
  transform: scale(5);
  z-index: 60;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  position: relative;
}

/* 定位与自我分析: 2x */
.xhs-tree > :nth-child(3) .xhs-image-grid-item:hover img {
  transform: scale(2);
  z-index: 60;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  position: relative;
}

/* 竞品与差异化策略: 2x */
.xhs-tree > :nth-child(4) .xhs-image-grid-item:hover img {
  transform: scale(2);
  z-index: 60;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  position: relative;
}

/* 内容体系与爆款方法: 3x */
.xhs-tree > :nth-child(5) .xhs-image-grid-item:hover img {
  transform: scale(3);
  z-index: 60;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  position: relative;
}
/* 单张图片时占满整行 */
.xhs-image-grid-item:only-child {
  grid-column: 1 / -1;
}
.xhs-image-grid-item:only-child img {
  max-height: 480px;
  object-fit: contain;
}
/* 两张图片时上下排列，占满宽度 */
.xhs-image-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: 1fr;
}
.xhs-image-grid:has(> :nth-child(2):last-child) .xhs-image-grid-item img {
  max-height: 480px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .xhs-magazine {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .xhs-magazine-left {
    max-width: 420px;
    margin: 0 auto;
  }
  .xhs-magazine-ip-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .xhs-magazine-ip-label {
    font-size: 0.65rem;
    padding: 3px 5px;
  }
}
/* Carousel */.carousel-container {  position: relative;  max-width: 750px;  margin: 0 auto 28px;  border-radius: var(--radius);  overflow: hidden;  border: 1px solid var(--border-color);}.carousel-track-wrapper { overflow: hidden; position: relative; }.carousel-track {  display: flex;  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);  touch-action: pan-y;}.carousel-slide { flex: 0 0 100%; position: relative; }.carousel-slide img,.carousel-slide video {  width: 100%; display: block;  aspect-ratio: 16/10;  object-fit: cover;}.carousel-slide video { background: #000; }.carousel-caption {  position: absolute;  bottom: 0; left: 0; right: 0;  background: linear-gradient(transparent, rgba(0,0,0,0.65));  color: #fff;  padding: 40px 20px 14px;  pointer-events: none;}.carousel-caption h4 { font-size: 1rem; font-weight: 600; margin-bottom: 3px; }.carousel-caption p { font-size: 0.8rem; opacity: 0.85; }.carousel-arrow {  position: absolute;  top: 50%;  transform: translateY(-50%);  width: 38px; height: 38px;  border-radius: 50%;  background: rgba(255,255,255,0.9);  border: 1px solid var(--border-color);  cursor: pointer;  font-size: 0.9rem;  display: flex;  align-items: center;  justify-content: center;  z-index: 10;  transition: all var(--transition);  color: var(--text-primary);}.carousel-arrow:hover { background: #fff; box-shadow: var(--shadow-sm); }.carousel-arrow.prev { left: 12px; }.carousel-arrow.next { right: 12px; }.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }.carousel-dot {  width: 8px; height: 8px;  border-radius: 50%;  background: var(--border-color);  border: none;  cursor: pointer;  transition: all var(--transition);}.carousel-dot.active { background: var(--text-primary); transform: scale(1.3); }/* Lightbox */.lightbox {  display: none;  position: fixed;  top: 0; left: 0; right: 0; bottom: 0;  background: rgba(0,0,0,0.92);  z-index: 10000;  align-items: center;  justify-content: center;  cursor: pointer;}.lightbox.active { display: flex; }.lightbox-content { max-width: 90vw; max-height: 90vh; object-fit: contain; cursor: default; }.lightbox-close {  position: absolute;  top: 20px; right: 30px;  font-size: 2rem;  color: #fff;  background: none;  border: none;  cursor: pointer;  opacity: 0.6;  transition: opacity var(--transition);  line-height: 1;}.lightbox-close:hover { opacity: 1; }/* Footer */.site-footer {  text-align: var(--footer-align, center);  padding: var(--footer-padding, 48px 32px);  color: var(--footer-color, var(--text-muted));  font-size: var(--footer-size, 0.82rem);  position: relative;  z-index: 1;  border-top: 1px solid var(--border-color);  margin-top: var(--footer-mt, 40px);}/* Placeholder */.placeholder-text { color: var(--text-muted); }.empty-state {  text-align: center;  padding: 48px 24px;  color: var(--text-muted);  font-size: 0.95rem;  border: 1px solid var(--border-color);  border-radius: var(--radius-lg);  background: var(--bg-subtle);}/* ============================================   RESPONSIVE DESIGN   ============================================ */@media (max-width: 768px) {  :root { --nav-height: 52px; }  .nav-links {    display: none;    position: absolute;    top: var(--nav-height);    left: 0; right: 0;    flex-direction: column;    background: rgba(255,255,255,0.97);    backdrop-filter: blur(12px);    -webkit-backdrop-filter: blur(12px);    border-bottom: 1px solid var(--border-color);    padding: 12px 24px;    gap: 2px;  }  .nav-links.open { display: flex; }  .nav-links li a { display: block; text-align: center; padding: 10px; }  .mobile-menu-btn { display: block; }  .section { padding: 64px 20px 48px; }  .section-title { font-size: 1.35rem; }  .personal-gallery-wrapper{height:340px;margin-bottom:32px;}   .personal-info-row { grid-template-columns: repeat(2, 1fr); }  .xhs-layout { padding-top: 48px; grid-template-columns: 1fr; }  .xhs-left {    position: relative;    top: auto;    transform: none;    padding-right: 0;    margin-bottom: 32px;    max-width: 420px;    margin-left: auto;    margin-right: auto;  }  .carousel-arrow { width: 32px; height: 32px; font-size: 0.8rem; }}@media (max-width: 480px) {  .personal-gallery-wrapper{height:260px;}  .personal-info-row { grid-template-columns: 1fr; }  .cover-title { font-size: 1.8rem; }  .cover-explore-btn { font-size: 0.95rem; padding: 12px 28px; }  .cover-nav-buttons { gap: 8px; margin-top: 32px; }  .cover-nav-btn { padding: 10px 18px; font-size: 0.88rem; }}/* ── Personal photo strip (备用照片展示) ── */.personal-photo-strip {  margin-top: 32px;}.personal-photo-strip h4 {  font-size: 0.85rem;  font-weight: 600;  color: var(--text-muted);  margin-bottom: 14px;}.personal-photo-strip .photo-grid {  display: grid;  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));  gap: 12px;}.personal-photo-strip .photo-grid-item {  border-radius: 8px;  overflow: hidden;  border: 1px solid var(--border-color);  background: var(--surface);}.personal-photo-strip .photo-grid-item img {  width: 100%;  aspect-ratio: 4/3;  object-fit: cover;  display: block;}.personal-photo-strip .photo-grid-item .photo-title {  padding: 6px 10px;  font-size: 0.78rem;  color: var(--text-secondary);}

/* ── Photography Category Sections ── */
.photo-quote {
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.6;
  padding: 24px 32px 56px;
  max-width: 600px;
  margin: 0 auto;
}

.photo-sections {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.photo-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.photo-section .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.photo-section .photo-card {
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-section .photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.photo-section .photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  aspect-ratio: 4/3;
}

@media (max-width: 768px) {
  .photo-section .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
  }
}


/* --- circular-gallery.css --- */
/* CircularGallery �?pure CSS 3D carousel */
/* Uses CSS perspective + 3D transforms; no WebGL required */

.circular-gallery {
  width: 100%;
  height: 100%;
  overflow: visible;
  cursor: grab;
  position: relative;
  background: var(--bg-subtle);
  clip-path: inset(0);
}

.circular-gallery:active {
  cursor: grabbing;
}

.cg-stage {
  width: 100%;
  height: 100%;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cg-ring {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cg-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 510px;
  margin-left: -180px;
  margin-top: -255px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cg-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cg-item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}

.cg-item-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cg-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.cg-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.cg-dot.active { background: #fff; transform: scale(1.4); }

.cg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  color: var(--text-primary);
  transition: all var(--transition);
}
.cg-arrow:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.cg-arrow.prev { left: 12px; }
.cg-arrow.next { right: 12px; }

.cg-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

@media (max-width: 768px) {
  .cg-item {
    width: 270px; height: 390px;
    margin-left: -135px; margin-top: -195px;
  }
  .cg-arrow { width: 30px; height: 30px; font-size: 0.85rem; }
}


/* --- logo-loop.css --- */
﻿/* LogoLoop — vanilla CSS infinite logo marquee
   Adapted from React Bits LogoLoop component
   Supports horizontal scroll, fade-out edges, hover pause/scale */

.logoloop {
  position: relative;
  overflow: hidden;

  --ll-gap: 40px;
  --ll-logoHeight: 48px;
  --ll-fadeColor: #ffffff;
}

.logoloop__track {
  display: flex;
  width: max-content;
  will-change: transform;
  user-select: none;
  position: relative;
  z-index: 0;
}

.logoloop__list {
  display: flex;
  align-items: center;
}

.logoloop__item {
  position: relative; flex: 0 0 auto;
  margin-right: var(--ll-gap);
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logoloop__item:last-child {
  margin-right: var(--ll-gap);
}

/* Images (for future use / favicons) */
.logoloop__item img {
  height: var(--ll-logoHeight);
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: auto;
  -webkit-user-drag: none;
  pointer-events: none;
  border-radius: 4px;
}

/* Icon placeholder */
.logoloop__icon {
  width: var(--ll-logoHeight);
  height: var(--ll-logoHeight);
  border-radius: 8px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--ll-logoHeight) * 0.5);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease;
}

.logoloop__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Scale on hover */
.logoloop--scale-hover .logoloop__item {
  padding: calc(var(--ll-logoHeight) * 0.1) 0;
}

.logoloop--scale-hover .logoloop__item:hover .logoloop__icon,
.logoloop--scale-hover .logoloop__item:hover img {
  transform: scale(1.2);
  transform-origin: center center;
}

/* Fade-out edges */
.logoloop--fade::before,
.logoloop--fade::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(24px, 8%, 120px);
  pointer-events: none;
  z-index: 10;
}

.logoloop--fade::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--ll-fadeColor, #ffffff) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.logoloop--fade::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--ll-fadeColor, #ffffff) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* ── Skills section wrapper ── */
.skills-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skills-category-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-left: 4px;
}

.skills-category-row {
  border: none;
  background: transparent;
  padding: 20px 12px;
}

.skills-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.skills-loop-wrapper {
  min-height: 56px;
}

@media (max-width: 768px) {
  .skills-categories { gap: 20px; }
  .skills-category-row { padding: 14px 8px; }
}



/* --- ScrollStack.css --- */
﻿/* ============================================
   ScrollStack -- 卡片叠加 + Scroll-jacking
   页面锁定后鼠标滚动 = 卡片逐张覆盖
   ============================================ */

/* -- 外层容器 -- */
.stack-section {
  width: 100%;
  margin: 0;
  position: relative;
}

/* 直接解除 experience section 的宽度限制 */
#experience.section {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* -- 标题组 -- */
.stack-titles {
  position: relative;
  z-index: 100;
  pointer-events: none;
}
.stack-titles .scroll-stack-section-title {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  min-height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 12px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.stack-titles .scroll-stack-section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- 卡片舞台 (覆盖整个视口，供 absolute 卡片居中) -- */
.stack-stage {
  position: relative;
  min-height: 100vh;
  overflow: visible;
}

/* -- 卡片：absolute 居中叠加 -- */
.scroll-stack-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96vw;
  max-width: none;
  background: var(--surface);
  border-radius: 16px;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.45s ease,
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

/* -- 卡片状态 -- */
.scroll-stack-card.active {
  transform: translate(-50%, -50%);
  opacity: 1;
  z-index: 2;
  box-shadow: none;
  outline: none;
}
.scroll-stack-card.covered {
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.scroll-stack-card.below {
  transform: translate(-50%, 130%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}
.scroll-stack-card.above {
  transform: translate(-50%, -130%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

/* z-index fallback (无 JS) */
.scroll-stack-card:nth-child(1) { z-index: 10; }
.scroll-stack-card:nth-child(2) { z-index: 9; }
.scroll-stack-card:nth-child(3) { z-index: 8; }
.scroll-stack-card:nth-child(4) { z-index: 7; }
.scroll-stack-card:nth-child(5) { z-index: 6; }
.scroll-stack-card:nth-child(6) { z-index: 5; }
.scroll-stack-card:nth-child(7) { z-index: 4; }
.scroll-stack-card:nth-child(8) { z-index: 3; }
.scroll-stack-card:nth-child(9) { z-index: 2; }
.scroll-stack-card:nth-child(10) { z-index: 1; }

/* -- 左侧照片 -- */
.scroll-stack-card-left {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
  background: transparent;
  min-height: 560px;
}
.scroll-stack-card-left img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.scroll-stack-card-left-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: transparent;
}

/* -- 右侧文字 -- */
.scroll-stack-card-right {
  flex: 1;
  padding: 48px 56px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* -- 类型标签 -- */
.scroll-stack-card-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  align-self: flex-start;
}
.scroll-stack-card-badge.work {
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent);
}
.scroll-stack-card-badge.project {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

/* -- 卡片标题 & 副标题 -- */
.scroll-stack-card-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.scroll-stack-card-role {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}
.scroll-stack-card-period {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* -- 详情 -- */
.scroll-stack-card-details {
  margin-top: 20px;
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 20px 24px;
}
.scroll-stack-card-details ul {
  list-style: none; padding: 0;
}
.scroll-stack-card-details ul li {
  padding: 5px 0 5px 18px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  white-space: pre-wrap;
}
.scroll-stack-card-details ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
.scroll-stack-card-details p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* -- 底部进度 & 提示 -- */
.scroll-stack-card-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scroll-stack-progress {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.scroll-stack-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  opacity: 0.5;
  animation: hintPulse 2.2s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

/* -- 导航圆点 (JS 动态创建，默认隐藏) -- */
.stack-stage-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.stack-stage-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.stack-stage-dot.active {
  background: var(--text-primary);
  transform: scale(1.3);
}

/* ============================================
   RESPONSIVE - 手机端：保持左右布局 + 紧凑压缩
   ============================================ */
@media (max-width: 768px) {
  .stack-titles .scroll-stack-section-title {
    font-size: 1.2rem;
    min-height: 12vh;
    padding: 0 4px 6px;
  }

  .stack-stage { min-height: 70vh; }

  .scroll-stack-card {
    flex-direction: row;
    width: 96vw;
    max-width: none;
  }
  .scroll-stack-card-left {
    flex: 0 0 33%;
    min-height: 220px;
  }
  .scroll-stack-card-right {
    padding: 20px 16px 20px 14px;
  }
  .scroll-stack-card-info h3 {
    font-size: 1rem;
  }
  .scroll-stack-card-role { font-size: 0.8rem; }
  .scroll-stack-card-period { font-size: 0.72rem; }
  .scroll-stack-card-details {
    padding: 12px 14px;
    margin-top: 12px;
  }
  .scroll-stack-card-details ul li {
    font-size: 0.78rem;
    padding: 2px 0 2px 14px;
  }
  .scroll-stack-card-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    margin-bottom: 8px;
  }
  .scroll-stack-card-footer {
    margin-top: 12px;
    padding-top: 8px;
  }

  .stack-stage-dots { display: flex; }
}

@media (max-width: 480px) {
  .scroll-stack-card {
    width: 94vw;
    max-width: none;
    border-radius: 12px;
  }
  .scroll-stack-card-left {
    flex: 0 0 35%;
    min-height: 180px;
  }
  .scroll-stack-card-right {
    padding: 16px 12px 16px 10px;
  }
  .scroll-stack-card-details {
    padding: 10px 10px;
  }
  .scroll-stack-card-info h3 {
    font-size: 0.9rem;
  }
  .scroll-stack-card-details ul li {
    font-size: 0.72rem;
  }
}

/* --- gooey-nav.css --- */
/* ============================================
   GooeyNav - Gooey Navigation Effect
   Adapted from React Bits for vanilla JS
   Horizontal spread layout (space-between)
   ============================================ */

/* === Color Variables for Particles === */
:root {
  --gooey-color-1: #4F46E5;
  --gooey-color-2: #818CF8;
  --gooey-color-3: #3730A3;
  --gooey-color-4: #F59E0B;

  --linear-ease: linear(
    0,
    0.068,
    0.19 2.7%,
    0.804 8.1%,
    1.037,
    1.199 13.2%,
    1.245,
    1.27 15.8%,
    1.274,
    1.272 17.4%,
    1.249 19.1%,
    0.996 28%,
    0.949,
    0.928 33.3%,
    0.926,
    0.933 36.8%,
    1.001 45.6%,
    1.013,
    1.019 50.8%,
    1.018 54.4%,
    1 63.1%,
    0.995 68%,
    1.001 85%,
    1
  );
}

/* === GooeyNav Container === */
.gooey-nav-container {
  position: relative;
  display: flex;
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.gooey-nav-container nav {
  display: flex;
  width: 100%;
  position: relative;
  transform: translate3d(0, 0, 0.01px);
}

.gooey-nav-container nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 14px;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.gooey-nav-container nav ul li {
  border-radius: 100vw;
  position: relative;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 0 0.5px 1.5px transparent;
  color: var(--text-secondary);
  background: transparent;
  padding: 5px 6px;
}

.gooey-nav-container nav ul li a {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  user-select: none;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}

.gooey-nav-container nav ul li:focus-within:has(:focus-visible) {
  box-shadow: 0 0 0.5px 1.5px rgba(255, 255, 255, 0.5);
}

.gooey-nav-container nav ul li::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100vw;
  background: transparent;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  z-index: -1;
}

.gooey-nav-container nav ul li.active {
  color: var(--accent);
  font-weight: 600;
}

.gooey-nav-container nav ul li.active::after {
  opacity: 1;
  transform: scale(1);
}

/* === Effect Elements === */
.gooey-nav-container .effect {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 1;
  pointer-events: none;
  display: grid;
  place-items: center;
  z-index: 1;
}

.gooey-nav-container .effect.text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.gooey-nav-container .effect.text.active {
  color: var(--text-primary);
}

.gooey-nav-container .effect.filter {
  filter: none;
  mix-blend-mode: normal;
  isolation: isolate;
}

.gooey-nav-container .effect.filter::before {
  display: none;
}

.gooey-nav-container .effect.filter::after {
  display: none;
}

@keyframes gooey-pill {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* === Particles === */
.particle,
.point {
  display: block;
  opacity: 0;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  transform-origin: center;
}

.particle {
  --time: 5s;
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  animation: gooey-particle calc(var(--time)) ease 1 -350ms;
}

.point {
  background: var(--color);
  opacity: 1;
  animation: gooey-point calc(var(--time)) ease 1 -350ms;
}

@keyframes gooey-particle {
  0% {
    transform: rotate(0deg) translate(calc(var(--start-x)), calc(var(--start-y)));
    opacity: 1;
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  70% {
    transform: rotate(calc(var(--rotate) * 0.5)) translate(calc(var(--end-x) * 1.2), calc(var(--end-y) * 1.2));
    opacity: 1;
    animation-timing-function: ease;
  }
  85% {
    transform: rotate(calc(var(--rotate) * 0.66)) translate(calc(var(--end-x)), calc(var(--end-y)));
    opacity: 1;
  }
  100% {
    transform: rotate(calc(var(--rotate) * 1.2)) translate(calc(var(--end-x) * 0.5), calc(var(--end-y) * 0.5));
    opacity: 1;
  }
}

@keyframes gooey-point {
  0% {
    transform: scale(0);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  25% {
    transform: scale(calc(var(--scale) * 0.25));
  }
  38% {
    opacity: 1;
  }
  65% {
    transform: scale(var(--scale));
    opacity: 1;
    animation-timing-function: ease;
  }
  85% {
    transform: scale(var(--scale));
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  .gooey-nav-container nav ul {
    gap: 10px;
  }
  .gooey-nav-container nav ul li {
    padding: 3px 4px;
  }
  .gooey-nav-container nav ul li a {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .gooey-nav-container nav ul {
    gap: 8px;
  }
  .gooey-nav-container nav ul li {
    padding: 2px 3px;
  }
  .gooey-nav-container nav ul li a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}


/* --- chroma-grid.css --- */
/* ============================================
   ChromaGrid - Spotlight Grid for Photography
   Adapted from React Bits for vanilla JS
   ============================================ */

.chroma-grid {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  justify-content: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;

  --x: 50%;
  --y: 50%;
  --r: 300px;
}

/* Responsive: single column on small screens */
@media (max-width: 768px) {
  .chroma-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 0.75rem;
  }
}

/* === Individual Card === */
.chroma-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
  background: var(--card-gradient, #111);
  aspect-ratio: 4/3;

  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.25);
}

.chroma-card:hover {
  border-color: var(--card-border, var(--accent));
}

.chroma-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mouse-x) var(--mouse-y),
    var(--spotlight-color),
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.chroma-card:hover::before {
  opacity: 1;
}

/* === Card Image === */
.chroma-img-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: transparent;
}

.chroma-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* === Card Info Overlay === */
.chroma-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 1.5rem 1rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.chroma-info .name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.3;
}

.chroma-info .role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.4;
}

.chroma-info .handle {
  display: none;
}

/* === Overlay & Fade Layers === */
.chroma-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  backdrop-filter: grayscale(1) brightness(0.8);
  -webkit-backdrop-filter: grayscale(1) brightness(0.8);
  background: rgba(0, 0, 0, 0.001);

  mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    transparent 0%,
    transparent 10%,
    rgba(0,0,0,0.08) 25%,
    rgba(0,0,0,0.18) 40%,
    rgba(0,0,0,0.3) 55%,
    rgba(0,0,0,0.5) 70%,
    rgba(0,0,0,0.68) 85%,
    white 100%
  );
  -webkit-mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    transparent 0%,
    transparent 10%,
    rgba(0,0,0,0.08) 25%,
    rgba(0,0,0,0.18) 40%,
    rgba(0,0,0,0.3) 55%,
    rgba(0,0,0,0.5) 70%,
    rgba(0,0,0,0.68) 85%,
    white 100%
  );
}

.chroma-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  backdrop-filter: grayscale(1) brightness(0.8);
  -webkit-backdrop-filter: grayscale(1) brightness(0.8);
  background: rgba(0, 0, 0, 0.001);

  mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    white 0%,
    white 10%,
    rgba(255,255,255,0.9) 25%,
    rgba(255,255,255,0.78) 40%,
    rgba(255,255,255,0.65) 55%,
    rgba(255,255,255,0.5) 70%,
    rgba(255,255,255,0.32) 85%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    white 0%,
    white 10%,
    rgba(255,255,255,0.9) 25%,
    rgba(255,255,255,0.78) 40%,
    rgba(255,255,255,0.65) 55%,
    rgba(255,255,255,0.5) 70%,
    rgba(255,255,255,0.32) 85%,
    transparent 100%
  );

  opacity: 1;
  transition: opacity 0.25s ease;
}


/* --- variable-proximity.css --- */
/* ============================================
   VariableProximity — 封面文字样式
   ============================================ */

/* Each letter span */
.vp-letter {
  display: inline-block;
  transition: none; /* rAF handles smooth updates */
  will-change: font-variation-settings;
}

/* Space between words */
.vp-space {
  display: inline-block;
  width: 0.3em;
}


/* --- video-3d-cards.css --- */
/* ============================================
   Video 3D Card Carousel
   Inspired by gobzzzmusicplayer 3D icon-cards
   ============================================ */

/* === 3D Card Container === */
.video-cards-wrap {
  position: relative;
  padding: 30px 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-cards {
  position: relative;
  width: 90vw;
  height: 60vw;
  max-width: 900px;
  max-height: 600px;
  margin: 0 auto;
  perspective: 1200px;
  transform-origin: center;
  touch-action: none;
  cursor: grab;
}

.video-cards:active {
  cursor: grabbing;
}

.video-cards__content {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center;
  transform: translateZ(-52vw) rotateY(0deg);
  pointer-events: none;
}

.video-cards__item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 44vw;
  height: 44vw;
  max-width: 460px;
  max-height: 460px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  pointer-events: auto;
  cursor: pointer;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow 0.3s ease;
}

.video-cards__item:hover {
  box-shadow: none;
}

.video-cards__item.active-card {
  box-shadow: none;
}

.video-cards__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.video-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-cards__item.active-card .video-card-label,
.video-cards__item:hover .video-card-label {
  opacity: 1;
}

/* === Card positions (up to 8 items) === */
.video-cards__item:nth-child(1) { transform: rotateY(0deg) translateZ(52vw); }
.video-cards__item:nth-child(2) { transform: rotateY(45deg) translateZ(52vw); }
.video-cards__item:nth-child(3) { transform: rotateY(90deg) translateZ(52vw); }
.video-cards__item:nth-child(4) { transform: rotateY(135deg) translateZ(52vw); }
.video-cards__item:nth-child(5) { transform: rotateY(180deg) translateZ(52vw); }
.video-cards__item:nth-child(6) { transform: rotateY(225deg) translateZ(52vw); }
.video-cards__item:nth-child(7) { transform: rotateY(270deg) translateZ(52vw); }
.video-cards__item:nth-child(8) { transform: rotateY(315deg) translateZ(52vw); }

.video-drag-hint {
  text-align: center;
  font-size: 0.72rem;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 6px 0 4px;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.video-drag-hint.hidden {
  opacity: 0;
}

.video-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-detail-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.video-detail-panel {
  display: flex;
  background: #fff;
  border-radius: 14px;
  max-width: 620px;
  width: 92%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: none;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-detail-overlay.active .video-detail-panel {
  transform: translateY(0) scale(1);
}

.video-detail-visual {
  flex: 0 0 45%;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.video-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-detail-visual video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.video-detail-info {
  flex: 1;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
}

.video-detail-close:hover {
  background: rgba(0,0,0,0.75);
}

.video-detail-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.video-detail-divider {
  width: 40px;
  height: 2px;
  background: #4F46E5;
  margin-bottom: 14px;
}

.video-detail-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 20px;
}

.video-detail-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  align-self: flex-start;
  text-decoration: none;
}

.video-detail-play-btn:hover {
  background: #4F46E5;
  transform: translateY(-1px);
}

.video-detail-play-btn.play-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.video-cards-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.video-cards-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface, #fff);
  border: 1px solid var(--border-color, #e5e5e5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  color: var(--text-primary, #1a1a1a);
  font-size: 0.85rem;
}

.video-cards-arrow:hover {
  background: var(--accent, #4F46E5);
  color: #fff;
  border-color: var(--accent, #4F46E5);
}

.video-cards-dots {
  display: flex;
  gap: 6px;
}

.video-cards-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-color, #e5e5e5);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.video-cards-dot.active {
  background: var(--accent, #4F46E5);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .video-cards {
    width: 80vw;
    height: 90vw;
    max-width: none;
    max-height: none;
    perspective: 800px;
  }

  .video-cards__content {
    transform: translateZ(-60vw) rotateY(0deg);
  }

  .video-cards__item {
    width: 55vw;
    height: 55vw;
    max-width: none;
    max-height: none;
  }

  .video-cards__item:nth-child(1) { transform: rotateY(0deg) translateZ(60vw); }
  .video-cards__item:nth-child(2) { transform: rotateY(45deg) translateZ(60vw); }
  .video-cards__item:nth-child(3) { transform: rotateY(90deg) translateZ(60vw); }
  .video-cards__item:nth-child(4) { transform: rotateY(135deg) translateZ(60vw); }
  .video-cards__item:nth-child(5) { transform: rotateY(180deg) translateZ(60vw); }
  .video-cards__item:nth-child(6) { transform: rotateY(225deg) translateZ(60vw); }
  .video-cards__item:nth-child(7) { transform: rotateY(270deg) translateZ(60vw); }
  .video-cards__item:nth-child(8) { transform: rotateY(315deg) translateZ(60vw); }

  .video-detail-panel {
    flex-direction: column;
    max-height: 90vh;
  }

  .video-detail-visual {
    flex: 0 0 200px;
    min-height: 200px;
  }

  .video-detail-info {
    padding: 22px 20px;
  }

  .video-detail-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .video-cards {
    width: 75vw;
    height: 85vw;
    perspective: 650px;
  }

  .video-cards__item {
    width: 50vw;
    height: 50vw;
  }

  .video-drag-hint {
    font-size: 0.65rem;
  }
}

#panel-video.active .video-cards-wrap {
  animation: videoCardsFadeIn 0.5s ease forwards;
}

@keyframes videoCardsFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- conveyor-belt.css --- */
﻿/* ============================================
   Conveyor Belt — Photo showcase
   Full-width • fade-out edges • pause-on-hover • sharp zoom
   Strategy: render large (420x315), display small (scale 0.667)
   ============================================ */

.cb-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  --cb-fadeColor: var(--bg, #ffffff);
}

/* Fade-out edges (LogoLoop style) */
.cb-container::before,
.cb-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(32px, 8%, 160px);
  pointer-events: none;
  z-index: 10;
}

.cb-container::before {
  left: 0;
  background: linear-gradient(to right, var(--cb-fadeColor) 0%, transparent 100%);
}

.cb-container::after {
  right: 0;
  background: linear-gradient(to left, var(--cb-fadeColor) 0%, transparent 100%);
}

/* Scrolling track */
.cb-track {
  display: flex;
  align-items: center;
  will-change: transform;
  position: relative;
  z-index: 0;
}

/* Photo card — rendered at 420×315, default scale 0.667 (displays at 280×210) */
.cb-card {
  flex-shrink: 0;
  border-radius: 10px;
  overflow: visible;
  position: relative;
  background: var(--bg-subtle);
  z-index: 1;
  transform: scale(0.667);
  transform-origin: center center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cb-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  -webkit-user-drag: none;
}

/* Hover: restore to native 1:1 = sharp 420×315 display */
.cb-card:hover {
  transform: scale(1);
  z-index: 60;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Backdrop overlay */
.cb-backdrop {
  display: none;
}

.cb-container.cb-paused .cb-backdrop {
  display: block;
}

/* Optional label */
.cb-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cb-card:hover .cb-card-label {
  opacity: 1;
}

@media (max-width: 768px) {
  .cb-card {
    transform: scale(0.5);
  }
  .cb-card:hover {
    transform: scale(0.85);
  }
}


/* --- timeline.css --- */
/* ============================================
   Timeline — 垂直中线时间轴 + 弹性卡片弹窗
   用于"项目经验"区域
   ============================================ */

/* ── 外层容器 ── */
.timeline-section {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-top: 80px;
}

/* ── 标题 ── */
.timeline-title {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  text-align: center;
  min-height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timeline-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 时间轴容器 ── */
.timeline-container {
  position: relative;
  padding: 10px 0 20px;
}

/* ── 中线 ── */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--text-primary);
  transform: translateX(-50%);
  transform-origin: top;
  border-radius: 1px;
}

/* ── 每一项 ── */
.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 90px;
  margin-bottom: 70px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease-out, transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.timeline-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left  { justify-content: flex-start; }
.timeline-item.right { justify-content: flex-end;   }

/* ── 文字标签（节点旁边）── */
.timeline-content {
  width: calc(50% - 55px);
  cursor: pointer;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    background   0.25s ease,
    transform    0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow   0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.timeline-content:hover {
  border-color: var(--border-color);
  background: var(--accent-subtle);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.timeline-item.left  .timeline-content { text-align: right; }
.timeline-item.right .timeline-content { text-align: left;  }

/* ── 时间区间 ── */
.timeline-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ── 项目名称 ── */
.timeline-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 5px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* ── 角色 ── */
.timeline-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ════════════════════════════════════════════
   节点（中线上的可点击圆点）
   ════════════════════════════════════════════ */
.timeline-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text-primary);
  cursor: pointer;
  z-index: 2;
  transition:
    transform  0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    background 0.35s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* 内圆点 */
.timeline-node::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-primary);
  transition:
    transform  0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.35s ease;
}

/* hover：反色 + 放大 */
.timeline-node:hover {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  background: var(--text-primary);
}
.timeline-node:hover::after {
  background: var(--surface);
}

/* 激活态（卡片打开时） */
.timeline-node.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
}
.timeline-node.active::after {
  background: var(--surface);
}

/* ════════════════════════════════════════════
   详情卡片弹窗（fixed 居中，无遮罩背景）
   ════════════════════════════════════════════ */
.timeline-card-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}
.timeline-card-wrapper.active {
  pointer-events: auto;
  visibility: visible;
}

/* 卡片本体 */
.timeline-card {
  display: flex;
  flex-direction: row;
  max-width: 800px;
  width: calc(100vw - 48px);
  max-height: 85vh;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
}

/* ── 左侧照片 ── */
.timeline-card-left {
  flex: 0 0 38%;
  position: relative;
  min-height: 340px;
  background: transparent;
  overflow: hidden;
}
.timeline-card-left img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.timeline-card-left-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: transparent;
}

/* ── 右侧文字 ── */
.timeline-card-right {
  flex: 1;
  padding: 32px 36px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
}

/* 标签 */
.timeline-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  align-self: flex-start;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.timeline-card-right h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.timeline-card-role {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

/* 详情列表 */
.timeline-card-details {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 16px 18px;
  max-height: 220px;
  overflow-y: auto;
}
.timeline-card-details ul {
  list-style: none;
  padding: 0;
}
.timeline-card-details ul li {
  padding: 3px 0 3px 16px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.7;
  position: relative;
}
.timeline-card-details ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
.timeline-card-details p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* 关闭按钮 */
.timeline-card-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--surface);
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  z-index: 5;
  line-height: 1;
}
.timeline-card-close:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
  transform: rotate(90deg);
}

/* ════════════════════════════════════════════
   响应式
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .timeline-title {
    font-size: 1.2rem;
    margin-bottom: 36px;
  }

  /* 中线左移 */
  .timeline-line {
    left: 18px;
  }

  /* 所有节点左对齐 */
  .timeline-node {
    left: 18px;
    width: 36px;
    height: 36px;
  }

  /* 所有内容块靠右 */
  .timeline-item {
    justify-content: flex-start !important;
    padding-left: 50px;
    margin-bottom: 50px;
  }
  .timeline-content {
    width: 100%;
    text-align: left !important;
  }

  /* 卡片改为上下布局 */
  .timeline-card {
    flex-direction: column;
    max-height: 82vh;
    overflow-y: auto;
    width: calc(100vw - 24px);
  }
  .timeline-card-left {
    flex: 0 0 auto;
    min-height: 180px;
    max-height: 220px;
  }
  .timeline-card-right {
    padding: 20px 18px;
  }
  .timeline-card-right h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .timeline-line  { left: 14px; }
  .timeline-node  { left: 14px; width: 30px; height: 30px; }
  .timeline-node::after { width: 8px; height: 8px; }
  .timeline-item  { padding-left: 42px; margin-bottom: 40px; }

  .timeline-name  { font-size: 0.95rem; }
  .timeline-period { font-size: 0.72rem; }
  .timeline-role  { font-size: 0.78rem; }

  .timeline-card-left { min-height: 150px; max-height: 180px; }
  .timeline-card-right { padding: 16px 14px; }
  .timeline-card-close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 1rem; }
}


/* --- research-reel.css --- */
/* ============================================
   Research Reel — 双排反向滑动
   上排向右 → 下排向左 ←
   鼠标滚轮驱动横滑，点击弹出详情
   ============================================ */

/* ── 外层容器：打破父级 max-width，撑满全屏 ── */
.rr-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: none;
  padding: 60px 0 40px;
}

/* ── 轨道包裹（overflow 隐藏溢出卡片）── */
.rr-track-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
}

/* ── 卡片轨道（居中，两端溢出）── */
.rr-track {
  display: flex;
  gap: 47px;
  justify-content: center;
  will-change: transform;
  transition: none;
  padding: 8px 0;
}

/* ── 单张卡片 ── */
.rr-card {
  flex-shrink: 0;
  width: 140px;
  height: 190px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-subtle);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.rr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0);
  z-index: 2;
}

.rr-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* ── 标题（插在两排之间，始终在卡片上方）── */
.rr-title {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 48px 0;
  user-select: none;
  position: relative;
  z-index: 10;
}

/* ── 进度指示 ── */
.rr-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rr-hint.visible {
  opacity: 1;
}

/* ════════════════════════════════════════════
   模态详情弹窗
   ════════════════════════════════════════════ */
.rr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: rrFadeIn 0.2s ease;
}
.rr-modal.active {
  display: flex;
}

@keyframes rrFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rr-modal-card {
  background: #fff;
  border-radius: 14px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: rrSlideUp 0.3s ease;
}

@keyframes rrSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.rr-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s ease;
  line-height: 1;
}
.rr-modal-close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.rr-modal-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 14px 14px 0 0;
}

.rr-modal-body {
  padding: 28px 36px 36px;
}

.rr-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.rr-modal-desc {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.85;
  white-space: pre-line;
}

/* ════════════════════════════════════════════
   响应式
   ════════════════════════════════════════════ */
@media (max-width: 860px) {
  .rr-section {
    padding: 40px 0 32px;
  }
  .rr-track-wrapper {
    padding: 0 20px;
  }
  .rr-card {
    width: 105px;
    height: 145px;
  }
  .rr-track {
    gap: 35px;
  }
  .rr-title {
    font-size: 1.5rem;
    padding: 36px 0;
  }
  .rr-modal {
    padding: 20px;
  }
  .rr-modal-body {
    padding: 20px 24px 28px;
  }
  .rr-modal-title {
    font-size: 1.15rem;
  }
  .rr-modal-desc {
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {
  .rr-track-wrapper {
    padding: 0 12px;
  }
  .rr-card {
    width: 85px;
    height: 120px;
  }
  .rr-track {
    gap: 28px;
  }
  .rr-title {
    font-size: 1.3rem;
    padding: 28px 0;
  }
  .rr-modal-img {
    max-height: 200px;
  }
  .rr-modal-body {
    padding: 16px 18px 24px;
  }
}


/* ============================================
   项目经验 — 四图横排 hover 展开卡片
   ============================================ */

.proj-cards-section {
  /* 突破父级 max-width，撑满全屏 */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: none;
  min-height: 140vh;
  padding: 40px 24px 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.proj-cards-title {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

/* ── 四列弹性布局（hover 展开像对折纸铺开）── */
.proj-cards-grid {
  display: flex;
  gap: 24px;
  flex: 1;
  align-items: flex-start;
}

/* ── 单张卡片 ── */
.proj-card {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  overflow: visible;
  background: var(--surface);
  border: 1px solid transparent;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
.proj-card:hover {
  flex: 3;
  border-color: var(--border-color);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  z-index: 2;
}

/* ── 图片区域 ── */
.proj-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--accent-subtle);
  flex-shrink: 0;
  transform: scale(1.0);
  transform-origin: center center;
  border-radius: 12px;
  z-index: 1;
  position: relative;
}
.proj-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.proj-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
}
.proj-card:hover .proj-card-img img {
  transform: scale(1.05);
}

/* ── 内容折叠区（核心动画）── */
.proj-card-body {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border-radius: 0 0 12px 12px;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s ease;
}
.proj-card:hover .proj-card-body {
  max-height: 55vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 0 40px;
}

/* 内容区滚动条美化 */
.proj-card-body::-webkit-scrollbar {
  width: 4px;
}
.proj-card-body::-webkit-scrollbar-track {
  background: transparent;
}
.proj-card-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
}

.proj-card-body-inner {
  padding: 0 18px;
  transition: background 0.4s ease;
}

/* 四张卡片各自 hover 背景色 — 覆盖整个展开框 */
.proj-card:nth-child(1):hover .proj-card-body {
  background: rgba(144, 238, 144, 0.18);   /* 嫩绿色 */
}
.proj-card:nth-child(2):hover .proj-card-body {
  background: rgba(255, 182, 193, 0.18);   /* 低饱和粉色 */
}
.proj-card:nth-child(3):hover .proj-card-body {
  background: rgba(255, 255, 180, 0.25);   /* 低饱和黄色 */
}
.proj-card:nth-child(4):hover .proj-card-body {
  background: rgba(180, 160, 220, 0.20);   /* 浅紫色 */
}

.proj-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.proj-card-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.proj-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.proj-card-list li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 3px 0 3px 12px;
  position: relative;
  white-space: pre-wrap;
}
.proj-card-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ── 响应式 ── */
@media (max-width: 1024px) {
  .proj-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: stretch;
  }
  .proj-card {
    flex: auto;
    min-width: auto;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  .proj-card:hover {
    flex: auto;
  }
  .proj-cards-section {
    min-height: auto;
    padding: 40px 16px 40px;
  }
}

@media (max-width: 640px) {
  .proj-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: stretch;
  }
  .proj-cards-section {
    min-height: auto;
    padding: 32px 12px 40px;
  }
  .proj-cards-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
}


/* === Image fade-in (global) === */
img{opacity:0;transition:opacity 0.4s ease}img.loaded{opacity:1}img[src=""],img[src="#"]{opacity:0!important}

/* === 分板块背景图片/视频 === */
section.has-bg-image,footer.has-bg-image{position:relative;max-width:none;margin-left:0;margin-right:0;--bg:transparent;--surface:transparent;--bg-subtle:transparent;--info-card-bg:transparent;--cb-fadeColor:transparent;--border-color:transparent;--accent-subtle:transparent}section.has-bg-image .matcher-iframe-wrapper{background:transparent;box-shadow:none}.bg-group-wrapper{position:relative;overflow:hidden}.bg-group-wrapper .section{max-width:none;margin-left:0;margin-right:0}.bg-group-wrapper .section+.section{padding-top:0}.bg-group-wrapper .site-footer{margin-top:0;border-top:none}.bg-spotlight-top{position:absolute;inset:0;z-index:1;pointer-events:none;mask-image:radial-gradient(circle 180px at var(--sx,50%) var(--sy,50%),transparent 0%,transparent 140px,black 180px);-webkit-mask-image:radial-gradient(circle 180px at var(--sx,50%) var(--sy,50%),transparent 0%,transparent 140px,black 180px)}
