/* ═══════════════════════════════════════════
   CSS Variables & Theme System
   ═══════════════════════════════════════════ */
:root {
  /* ── 亮色主题（首屏保持原始设计） ── */
  --bg-primary: #fefefe;
  --bg-secondary: linear-gradient(180deg, #fdf7fa 0%, #f7f2fa 100%);
  --bg-secondary-solid: #f7f2fa;
  --bg-transition: linear-gradient(180deg, #fefefb 0%, #fbf9fc 100%);
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --bg-card-vibrant: rgba(255, 255, 255, 0.6);
  --bg-card-glass: rgba(255, 255, 255, 0.5);
  --border-glass: rgba(255, 255, 255, 0.8);
  --bg-jump: #fdfafd;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a8;
  --accent: #d4789c;
  --accent-soft: rgba(212, 120, 156, 0.15);
  --accent-glow: rgba(212, 120, 156, 0.3);
  --gradient-hero: linear-gradient(160deg, #fef0f5 0%, #f0e6f6 30%, #e8e0f8 60%, #f5eef8 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 240, 245, 0.8), rgba(240, 230, 246, 0.6));
  --gradient-accent: linear-gradient(135deg, #d4789c, #b07cd8, #8888d8);
  --border: rgba(212, 120, 156, 0.15);
  --border-hover: rgba(212, 120, 156, 0.35);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.04);
  --shadow-md: 0 8px 32px rgba(26, 26, 46, 0.06);
  --shadow-lg: 0 16px 64px rgba(26, 26, 46, 0.08);
  --shadow-glow: 0 0 40px rgba(212, 120, 156, 0.15);
  --nav-bg: rgba(254, 254, 254, 0.8);
  --timeline-line: rgba(212, 120, 156, 0.2);
  --tag-bg: rgba(212, 120, 156, 0.08);
  --tag-text: #b06888;
  --card-blur: 20px;
  --star-color: rgba(212, 120, 156, 0.4);
  --orb-1: rgba(212, 120, 156, 0.3);
  --orb-2: rgba(176, 124, 216, 0.2);
  --orb-3: rgba(136, 136, 216, 0.15);
  /* ── LiquidEther 底色（仅第二页起） ── */
  --le-purple: #5227FF;
  --le-pink: #FF9FFC;
  --le-lavender: #B497CF;
}

[data-theme="dark"] body::before {
  background: radial-gradient(circle at 80% 20%, rgba(232, 138, 175, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(192, 136, 232, 0.04) 0%, transparent 50%);
}

[data-theme="dark"] {
  --bg-primary: #0d0d1a;
  --bg-secondary: linear-gradient(180deg, #100e14 0%, #16121a 100%);
  --bg-secondary-solid: #16121a;
  --bg-card: rgba(20, 20, 40, 0.7);
  --bg-card-hover: rgba(30, 30, 55, 0.8);
  --bg-card-glass: rgba(25, 25, 50, 0.5);
  --border-glass: rgba(255, 255, 255, 0.1);
  --bg-jump: #0e0b12;
  --text-primary: #f0eef5;
  --text-secondary: #b8b8d0;
  --text-muted: #7878a0;
  --accent: #e88aaf;
  --accent-soft: rgba(232, 138, 175, 0.12);
  --accent-glow: rgba(232, 138, 175, 0.25);
  --gradient-hero: linear-gradient(160deg, #0d0d1a 0%, #1a1030 30%, #15152e 60%, #0d0d1a 100%);
  --gradient-card: linear-gradient(135deg, rgba(30, 20, 50, 0.8), rgba(20, 20, 40, 0.6));
  --gradient-accent: linear-gradient(135deg, #e88aaf, #c088e8, #9898e8);
  --border: rgba(232, 138, 175, 0.12);
  --border-hover: rgba(232, 138, 175, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(232, 138, 175, 0.1);
  --nav-bg: rgba(13, 13, 26, 0.85);
  --timeline-line: rgba(232, 138, 175, 0.15);
  --tag-bg: rgba(232, 138, 175, 0.08);
  --tag-text: #e88aaf;
  --star-color: rgba(232, 138, 175, 0.3);
  --orb-1: rgba(232, 138, 175, 0.2);
  --orb-2: rgba(192, 136, 232, 0.15);
  --orb-3: rgba(152, 152, 232, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  touch-action: pan-y;
  transition: background 0.5s ease, color 0.5s ease;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(212, 120, 156, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(176, 124, 216, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════
   Navbar
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.3rem;
  animation: spin-slow 8s linear infinite;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  background: var(--tag-bg);
}

.btn-icon:hover {
  color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.05);
}

/* Theme toggle icons */
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.lang-toggle .lang-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════
   Hero Section — 全屏3D背景 + 左右布局叠加
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  position: relative;
  background: var(--gradient-hero);
  overflow: visible;
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 150px;
  padding-left: 5%;
  padding-right: 2%;
}

/* 全屏 3D 背景 canvas（保持原样） */
.hero-canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#heroCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 左侧文字区 */
.hero-content {
  flex: 0 0 450px;
  z-index: 10;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  white-space: nowrap;
}

/* 右侧彩球舞台 */
.hero-interactive-stage {
  flex: 0 0 650px;
  height: 550px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 彩球物理沙盒 */
.balls-sandbox-hint {
  position: absolute;
  top: 12px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 20;
  pointer-events: none;
}

[data-theme="dark"] .balls-sandbox-hint {
  background: rgba(255, 255, 255, 0.15);
}

#ballsCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 32px;
  cursor: default;
}

/* 环绕左侧标题的玻璃标签 */
.hero-tags {
  position: absolute;
  top: 64px;
  left: 5%;
  width: 450px;
  height: calc(100vh - 64px);
  pointer-events: none;
  z-index: 11;
}

.custom-floating-tag {
  position: absolute;
  z-index: 12;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(142, 120, 212, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

[data-theme="dark"] .custom-floating-tag {
  color: #c8c8e0;
  background: rgba(20, 20, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 32px;
  min-height: 1.6em;
}

.hero-subtitle .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.hero-desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}

.hero-desc p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  border: 1px solid var(--border);
  margin-top: 4px;
}

/* Scroll hint */
.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  animation: float-gentle 3s ease-in-out infinite;
}

.scroll-hint:hover {
  opacity: 1;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}

/* Star decorations */
.star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--star-color);
  border-radius: 50%;
  z-index: 1;
}

.star::before, .star::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.star::before {
  width: 20px;
  height: 2px;
  top: 1px;
  left: -8px;
}

.star::after {
  width: 2px;
  height: 20px;
  top: -8px;
  left: 1px;
}

.star-1 { top: 15%; left: 10%; animation: twinkle 3s ease-in-out infinite; }
.star-2 { top: 25%; right: 15%; animation: twinkle 4s ease-in-out 1s infinite; }
.star-3 { bottom: 30%; left: 20%; animation: twinkle 3.5s ease-in-out 0.5s infinite; }
.star-4 { top: 40%; right: 8%; animation: twinkle 4.5s ease-in-out 1.5s infinite; }
.star-5 { bottom: 20%; right: 25%; animation: twinkle 3s ease-in-out 2s infinite; }

/* ═══════════════════════════════════════════
   Section Common
   ═══════════════════════════════════════════ */
.section {
  padding: 100px 0;
  position: relative;
  transition: background 0.8s ease-in-out;
}

/* 渐变页：第2、4页 */
.section.section-gradient {
  background: var(--bg-secondary);
  background-attachment: fixed;
}

/* 纯色跳跃页：第3、5页 */
.section.section-jump {
  background: var(--bg-jump);
  border-top: 1px solid rgba(212, 120, 156, 0.1);
  border-bottom: 1px solid rgba(212, 120, 156, 0.1);
}

[data-theme="dark"] .section.section-jump {
  border-top: 1px solid rgba(232, 138, 175, 0.08);
  border-bottom: 1px solid rgba(232, 138, 175, 0.08);
}

/* ── 左右布局（标题左 + 内容右） ── */
.section-split {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.section-split-left {
  flex: 0 0 280px;
  position: sticky;
  top: 100px;
}

.section-split-right {
  flex: 1;
  min-width: 0;
}

.section-split-left .section-title {
  text-align: left;
  margin-bottom: 12px;
}

.section-split-left .section-subtitle {
  text-align: left;
  margin-bottom: 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 60px;
}

/* ═══════════════════════════════════════════
   Timeline (Experience)
   ═══════════════════════════════════════════ */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg-secondary-solid));
  z-index: 2;
}

.section-experience {
  padding-top: 50px;
}

/* 经历页左右布局 */
.experience-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.experience-left {
  flex: 0 0 380px;
  position: sticky;
  top: 100px;
}

.experience-right {
  flex: 1;
  min-width: 0;
}

/* 电子工牌 3D 容器 */
.lanyard-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lanyard-hint {
  position: absolute;
  top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
  letter-spacing: 2px;
  animation: lanyard-pulse 2s infinite;
}

#lanyardCanvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

@keyframes lanyard-pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

@media (max-width: 768px) {
  .experience-layout {
    flex-direction: column;
    gap: 20px;
  }

  .experience-left {
    flex: none;
    position: static;
    width: 100%;
  }

  .lanyard-container {
    height: 400px;
  }
}

/* ── 时间轴 ── */
.timeline-wrapper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 36px;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--timeline-line);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* 圆点：不同颜色区分 */
.timeline-dot {
  position: absolute;
  left: -33px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.25);
}

.dot-work {
  background: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}

.dot-edu {
  background: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.dot-bachelor {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.dot-intern {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .timeline-dot {
  border-color: #0f172a;
}

/* 卡片 */
.timeline-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline-card:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

/* 日期 */
.timeline-date {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', 'Inter', monospace;
  letter-spacing: 0.02em;
}

/* 标题 */
.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* 元信息 */
.timeline-meta {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 4px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-soft);
}

/* 子列表 */
.timeline-sub-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-sub-list li {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}

.timeline-sub-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.timeline-sub-list li strong {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.08em;
}

/* 关键数据高亮 */
.timeline-sub-list .hl {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05em;
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

/* 实习徽章 */
.intern-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  padding: 2px 10px;
  border-radius: 30px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 500;
}

/* ========== 捕获野生西西墙（底轨抽取+全屏泡泡） ========== */
.safari-section {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 40px 0;
  background: linear-gradient(135deg, #e0f2fe 0%, #fdf2f8 100%);
  overflow: hidden;
}

[data-theme="dark"] .safari-section {
  background: linear-gradient(135deg, #0b1329 0%, #1a1030 100%);
}

#bubbleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.safari-inner {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.safari-header {
  position: relative;
  z-index: 5;
  pointer-events: none;
  padding: 0 20px;
  margin-bottom: auto;
}

.safari-header .section-subtitle strong {
  color: #f43f5e;
}

.safari-showcase {
  position: absolute;
  bottom: 40px;
  left: 5%;
  width: 90%;
  height: 280px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  z-index: 10;
}

[data-theme="dark"] .safari-showcase {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

.safari-showcase:active { cursor: grabbing; }

.safari-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 30px;
  will-change: transform;
}

.wild-card {
  width: 110px;
  height: 165px;
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s;
  pointer-events: auto;
  cursor: grab;
  position: relative;
}

[data-theme="dark"] .wild-card {
  background: #1e294b;
  border-color: rgba(255, 255, 255, 0.08);
}

.wild-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  pointer-events: none;
}

.wild-card-meta { display: flex; flex-direction: column; gap: 2px; }
.wild-card-tag { font-size: 0.65rem; font-weight: 700; color: #f43f5e; }
.wild-card-desc {
  font-size: 0.75rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="dark"] .wild-card-desc { color: #cbd5e1; }

.wild-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #f43f5e;
}

.wild-card.extracted {
  position: fixed;
  z-index: 999;
  width: 240px;
  height: 340px;
  pointer-events: none;
  box-shadow: 0 30px 60px -15px rgba(139, 92, 246, 0.3) !important;
  border-color: #8b5cf6 !important;
  transition: none !important;
}

.wild-card.extracted img { height: 100%; }

.bubble-popup {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #0f172a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1000;
  pointer-events: none;
}

.bubble-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #0f172a;
}

.wild-card.extracted .bubble-popup {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* 点击放大弹窗 */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-trigger {
  cursor: zoom-in;
}

/* 南昌大学照片样式 */
.ncu-photo {
  width: 220px;
  height: 290px;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  cursor: zoom-in;
}

.ncu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.ncu-photo:hover {
  transform: translateY(-10px) scale(1.12);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* 行内预览标签 */
.view-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 8px;
  margin-left: 6px;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.view-media-badge:hover {
  color: #ffffff;
  background: #8b5cf6;
  border-color: #8b5cf6;
}

[data-theme="dark"] .view-media-badge {
  color: #b4a0f0;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
}

[data-theme="dark"] .view-media-badge:hover {
  color: #ffffff;
  background: #8b5cf6;
}

/* 微型缩略图画廊 */
.timeline-micro-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.micro-tile {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
}

.micro-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.micro-tile:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 20px -5px rgba(244, 63, 94, 0.25);
  border-color: var(--accent);
}

.micro-tile:hover img {
  transform: scale(1.1);
}

/* 毛玻璃悬浮预览 */
.hover-preview-drawer {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  width: 640px;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.25);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: scale(0.9) translateY(15px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.hover-preview-drawer.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hover-preview-drawer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

[data-theme="dark"] .hover-preview-drawer {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

/* 入场动画 */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.4, 1),
              transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1);
}

.reveal-item.revealed,
.reveal-item.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   Works Section
   ═══════════════════════════════════════════ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.works-grid .work-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-card {
  position: relative;
  background: var(--bg-card-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 22px 28px;
  transition: all 0.4s ease;
  overflow: hidden;
}

.work-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.work-card:hover .work-card-glow {
  opacity: 1;
}

.work-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.work-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.work-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.work-metrics {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-value {
  font-size: 1.45rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   Works Feed Section（爆款内容中台）
   ═══════════════════════════════════════════ */
.section-works-feed {
  background: var(--bg-secondary);
}

.feed-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.feed-left {
  flex: 1;
  min-width: 280px;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
  transition: all 0.2s;
}

.feed-left-img {
  width: 100%;
  max-height: 340px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.feed-left-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.feed-intro p {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.feed-insight {
  border-left: 4px solid #ff2e4d;
  background: rgba(255, 46, 77, 0.06);
}

.feed-growth {
  border-left: 4px solid #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}

.feed-insight,
.feed-growth {
  padding: 14px 18px;
  border-radius: 0 16px 16px 0;
  margin-bottom: 16px;
}

.feed-insight-label,
.feed-growth-label {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.feed-insight-label { color: #ff2e4d; }
.feed-growth-label { color: #3b82f6; }

.feed-insight span:last-child,
.feed-growth span:last-child {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.feed-right {
  flex: 1;
  min-width: 320px;
  display: flex;
  justify-content: center;
  position: relative;
}

.arrow-connector {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 12;
  backdrop-filter: blur(2px);
  border: 1px solid var(--border-glass);
}

.phone-mockup {
  width: 360px;
  height: 640px;
  background: #121212;
  border-radius: 44px;
  padding: 11px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0f0f0f;
  border-radius: 28px;
  z-index: 15;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #f8f9fc;
  border-radius: 34px;
  overflow-y: auto;
  padding: 48px 10px 20px 10px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

[data-theme="dark"] .phone-screen {
  background: #1a1a2e;
}

.xhs-grid {
  display: flex;
  gap: 10px;
}

.xhs-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xhs-clickable-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

[data-theme="dark"] .xhs-clickable-card {
  background: #252540;
}

.xhs-clickable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.xhs-clickable-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.xhs-card-body {
  padding: 10px 10px 12px;
}

.xhs-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #1a1a1a;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

[data-theme="dark"] .xhs-card-title {
  color: #e8e8f0;
}

.xhs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #6c6c70;
}

[data-theme="dark"] .xhs-card-footer {
  color: #9898b0;
}

.xhs-card-author {
  font-weight: 500;
}

.like-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 30px;
  transition: background 0.2s, transform 0.1s;
  font-weight: 500;
  border: none;
  background: none;
  font-size: inherit;
  color: inherit;
}

.like-btn:active {
  transform: scale(0.85);
}

.like-btn.liked {
  color: #ff2e4d !important;
  font-weight: 600;
}

.feed-hint {
  text-align: center;
  margin-top: 30px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

@media (max-width: 820px) {
  .phone-mockup {
    transform: scale(0.92);
    margin: 0 auto;
  }
  .arrow-connector {
    left: -25px !important;
  }
}

@media (max-width: 700px) {
  .feed-container {
    flex-direction: column;
  }
  .arrow-connector {
    display: none;
  }
  .feed-left, .feed-right {
    width: 100%;
  }
  .phone-mockup {
    transform: scale(0.95);
    margin-top: 20px;
  }
}

/* ═══════════════════════════════════════════
   AI Creation Section
   ═══════════════════════════════════════════ */
.section-ai {
}

.ai-showcase {
  max-width: 900px;
  margin: 0 auto;
}

.ai-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.ai-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.ai-card-main {
  margin-bottom: 24px;
}

.ai-card-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

.ai-card-visual {
  flex-shrink: 0;
}

.ai-orb {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.orb-ring-1 {
  width: 100%;
  height: 100%;
  border-color: var(--orb-1);
  animation: orb-spin 12s linear infinite;
}

.orb-ring-2 {
  width: 75%;
  height: 75%;
  border-color: var(--orb-2);
  animation: orb-spin 8s linear infinite reverse;
}

.orb-ring-3 {
  width: 50%;
  height: 50%;
  border-color: var(--orb-3);
  animation: orb-spin 6s linear infinite;
}

.orb-core {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 1;
}

.ai-card-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ai-card-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.ai-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ai-card-placeholder {
  padding: 40px;
  text-align: center;
}

.ai-placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.ai-card-placeholder h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.coming-soon {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   Surprise / Blindbox Section
   ═══════════════════════════════════════════ */
.blindbox-area {
  max-width: 1100px;
  margin: 0 auto;
}

.blindbox-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── 3D 卡牌翻转核心 ── */
.card-container {
  perspective: 1200px;
  height: 380px;
  cursor: pointer;
  transition: filter 0.25s ease;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  border-radius: 20px;
}

.card-container.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* 正面：渐变 + 礼物图标 */
.card-front {
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.95), rgba(240, 230, 246, 0.95));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
  padding: 20px;
}

[data-theme="dark"] .card-front {
  background: linear-gradient(135deg, rgba(30, 20, 50, 0.95), rgba(20, 20, 40, 0.95));
}

.card-container:not(.flipped):hover {
  filter: brightness(1.08);
  transform: translateY(-4px);
}

.card-front-icon {
  font-size: 2.5rem;
  opacity: 0.85;
  animation: blindbox-float 3s infinite ease-in-out;
}

@keyframes blindbox-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.card-front-label {
  font-family: 'Inter', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

/* ── 背面：照片 + 文字 杂志感 ── */
.card-back {
  background: var(--bg-card);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 30px;
  z-index: 1;
  border-color: var(--card-accent, var(--border));
  color: var(--text-primary);
  text-align: left;
}

/* 照片容器 */
.card-back-photo {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-back-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card-container:hover .card-back-photo img {
  transform: scale(1.03);
}

.card-back-photo.lightbox-trigger {
  cursor: zoom-in;
}

/* 文字内容区 */
.card-back-content {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
}

.card-back-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--card-accent, var(--accent));
  margin: 0;
  line-height: 1.3;
}

.card-back-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

/* 背面滚动条 */
.card-back-content p::-webkit-scrollbar {
  width: 3px;
}
.card-back-content p::-webkit-scrollbar-thumb {
  background: var(--card-accent, var(--accent));
  border-radius: 10px;
}
.card-back-content p::-webkit-scrollbar-track {
  background: transparent;
}

/* 盲盒 Toast */
.blindbox-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff3c9;
  padding: 0.8rem 2rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 10000;
  border-left: 5px solid var(--accent, #ff64ae);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.blindbox-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 图片加载失败优雅降级 */
.card-back-photo .photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary-solid));
  border-radius: 14px;
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   Contact Section
   ═══════════════════════════════════════════ */
.section-contact {
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px 48px;
  text-align: center;
  transition: all 0.4s ease;
  min-width: 280px;
}

.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.contact-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-star {
  color: var(--accent);
  font-size: 0.7rem;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  * {
    touch-action: pan-y !important;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .mobile-menu {
    display: flex;
  }

  /* 左右布局移动端：变上下 */
  .section-split {
    flex-direction: column;
    gap: 24px;
  }

  .section-split-left {
    flex: none;
    position: static;
    width: 100%;
  }

  .section-split-left .section-title,
  .section-split-left .section-subtitle {
    text-align: center;
  }

  /* 首屏移动端：上下布局 */
  .hero {
    flex-direction: column;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 64px;
    overflow: visible;
  }

  .hero-canvas-wrapper {
    pointer-events: none;
    touch-action: pan-y;
  }

  #heroCanvas,
  #ballsCanvas,
  #lanyardCanvas,
  #bubbleCanvas {
    pointer-events: none;
    touch-action: pan-y;
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    align-items: center;
    text-align: center;
    padding: 80px 24px 20px 24px;
  }

  .hero-interactive-stage {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: 380px;
    margin: 0 auto;
  }

  .custom-floating-tag {
    font-size: 0.65rem;
    padding: 6px 12px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .ai-card-inner {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }

  .ai-cards-row {
    grid-template-columns: 1fr;
  }

  .blindbox-cards {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 360px;
  }

  .timeline-wrapper {
    padding-left: 28px;
  }

  .timeline-dot {
    left: -25px;
    width: 12px;
    height: 12px;
  }

  .timeline-card {
    padding: 18px 20px;
  }

  .timeline-date {
    font-size: 0.95rem;
  }

  .timeline-title {
    font-size: 1.15rem;
  }

  .intern-badge {
    display: none;
  }

  .work-card {
    padding: 24px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

/* ═══════════════════════════════════════════
   Mobile Comprehensive Fix
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 整体 */
  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    padding: 0.4rem 1.2rem;
  }

  /* 惊喜盲盒 */
  .blindbox-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-container {
    height: 320px;
  }

  .card-back {
    padding: 10px;
    gap: 20px;
  }

  .card-back-photo {
    max-height: 160px;
  }

  .card-back-content h4 {
    font-size: 0.82rem;
  }

  .card-back-content p {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  /* 爆款内容中台 */
  .feed-container {
    flex-direction: column;
    gap: 24px;
  }

  .feed-left {
    min-width: auto;
    padding: 20px;
  }

  .feed-left-img {
    max-height: 200px;
  }

  .feed-intro p {
    font-size: 0.9rem;
  }

  .feed-insight,
  .feed-growth {
    padding: 10px 14px;
  }

  .arrow-connector {
    display: none;
  }

  .phone-mockup {
    width: 280px;
    height: 520px;
    margin: 0 auto;
  }

  .phone-notch {
    width: 80px;
    height: 22px;
    top: 14px;
  }

  .phone-screen {
    padding: 40px 8px 16px 8px;
    border-radius: 28px;
  }

  .xhs-grid {
    gap: 8px;
  }

  .xhs-card-body {
    padding: 8px;
  }

  .xhs-card-title {
    font-size: 0.75rem;
  }

  .xhs-card-footer {
    font-size: 0.6rem;
  }

  /* 捕获野生西西墙 */
  .safari-section {
    height: auto;
    min-height: 100vh;
    padding: 30px 0;
  }

  .safari-showcase {
    height: 220px;
    bottom: 20px;
    left: 3%;
    width: 94%;
    border-radius: 18px;
  }

  .safari-track {
    gap: 16px;
    padding: 0 16px;
  }

  .wild-card {
    width: 90px;
    height: 135px;
    border-radius: 10px;
  }

  .bubble-popup {
    font-size: 0.65rem;
    padding: 6px 10px;
  }

  /* 工作成果 */
  .work-card {
    padding: 20px;
  }

  .work-title {
    font-size: 1rem;
  }

  .work-desc {
    font-size: 0.82rem;
  }

  .metric-value {
    font-size: 1.2rem;
  }

  .metric-label {
    font-size: 0.7rem;
  }

  /* 联系方式 */
  .contact-card {
    padding: 28px 24px;
    min-width: auto;
  }

  /* 页脚 */
  .footer-text {
    font-size: 0.8rem;
  }

  /* Toast */
  .blindbox-toast {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    max-width: 85vw;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .blindbox-cards {
    grid-template-columns: 1fr;
  }

  .card-container {
    height: 340px;
  }

  .phone-mockup {
    width: 260px;
    height: 480px;
  }
}
