/* ========================================
   极简个人品牌简历站 — 样式文件 v3
   单页滚动 + 星空粒子 + 日夜模式
   ======================================== */

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

/* ---------- CSS Variables ---------- */
:root {
  --nav-height: 56px;
  --sidebar-width: 280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme (default) */
[data-theme="dark"] {
  --bg-body: #0a1929;
  --bg-card: rgba(15, 30, 50, 0.75);
  --bg-sidebar: rgba(10, 20, 38, 0.85);
  --bg-navbar: rgba(10, 20, 38, 0.88);
  --border-color: rgba(88, 166, 255, 0.1);
  --border-hover: rgba(88, 166, 255, 0.25);
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #5c6a7a;
  --accent: #ff7a59;
  --accent-grad: linear-gradient(135deg, #ff7a59, #ff5eaa);
  --accent-blue: #58a6ff;
  --accent-purple: #bc8cff;
  --accent-orange: #f0883e;
  --particle-color: rgba(255, 255, 255, 0.4);
  --bg-overlay: rgba(10, 25, 41, 0.65);
  --section-footer-border: rgba(255, 255, 255, 0.15);
}

/* Light Theme */
[data-theme="light"] {
  --bg-body: #f0f4f8;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-sidebar: rgba(255, 255, 255, 0.92);
  --bg-navbar: rgba(255, 255, 255, 0.92);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #a0aec0;
  --accent: #e05a3a;
  --accent-grad: linear-gradient(135deg, #e05a3a, #d946a8);
  --accent-blue: #3182ce;
  --accent-purple: #805ad5;
  --accent-orange: #dd6b20;
  --particle-color: rgba(0, 0, 0, 0.12);
  --bg-overlay: rgba(240, 244, 248, 0.5);
  --section-footer-border: rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0a1929;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  transition: color 0.5s ease;
}

/* ---------- 全屏背景大图 + 深色遮罩 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* 回退：当 Unsplash 图片无法加载时，显示渐变背景 */
  background: linear-gradient(135deg, #0a1929 0%, #0d1b3e 30%, #132040 60%, #0a1628 100%);
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  transition: background 0.5s ease;
}

/* ---------- 星空粒子 Canvas ---------- */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  transition: background 0.5s ease;
}

.nav-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
}

.nav-item {
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  user-select: none;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}

.nav-item:hover { color: var(--text-primary); }

.nav-item.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ---------- Page Wrapper (Left + Right) ---------- */
.page-wrapper {
  display: flex;
  padding-top: var(--nav-height);
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ---------- Sidebar Card ---------- */
.sidebar-card {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  background: var(--bg-sidebar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  z-index: 10;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.sidebar-content {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Avatar */
.sidebar-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(255, 122, 89, 0.2);
  margin-bottom: 14px;
  background: var(--bg-body);
}

.sidebar-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Name & Title */
.sidebar-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 2px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.sidebar-title {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.sidebar-signature {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  margin-bottom: 16px;
}

/* Divider */
.sidebar-divider {
  width: 80%;
  height: 1px;
  background: var(--border-color);
  margin: 12px 0;
  transition: background 0.5s ease;
}

/* Contact list (icon + text visible) */
.sidebar-contact-list {
  width: 100%;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.contact-row-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.contact-row-text {
  word-break: break-all;
}

/* Info list */
.sidebar-info-list {
  width: 100%;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.06);
}

.info-row:last-child { border-bottom: none; }
.info-key { color: var(--text-muted); }
.info-val { color: var(--text-secondary); font-weight: 500; }

/* CTA button */
.sidebar-cta {
  margin-top: 20px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent-grad);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}

.sidebar-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 122, 89, 0.3);
}

/* ---------- Main Content ---------- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 0 36px 60px;
  min-width: 0;
}

/* ---------- Content Sections ---------- */
.content-section {
  padding-top: 40px;
  min-height: 50vh;
}

/* ---------- Hero Area ---------- */
.hero-area {
  margin-bottom: 36px;
}

.hero-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 12px;
}

.hero-headline {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-cta {
  display: inline-block;
  padding: 8px 24px;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
}

.hero-cta:hover {
  background: var(--accent);
  color: white;
}

/* ---------- Block Card ---------- */
.block-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--transition), background 0.5s ease, border-color 0.5s ease;
}

.block-card:hover {
  border-color: var(--border-hover);
}

/* ---------- Block Label ---------- */
.block-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-blue);
}

/* ---------- Advantages ---------- */
.advantage-list { list-style: none; padding: 0; }

.traits-intro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(188, 140, 255, 0.06);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.advantage-list li {
  position: relative;
  padding: 14px 0 14px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-bottom: 1px solid var(--border-color);
}

.advantage-list li strong {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.advantage-list li:last-child { border-bottom: none; }

.advantage-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 6px rgba(240, 136, 62, 0.4);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 24px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 16px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px; top: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 2px solid var(--accent-blue);
  transition: background 0.5s ease;
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.timeline-company { font-size: 16px; font-weight: 700; }
.timeline-position { font-size: 13px; color: var(--accent-orange); font-weight: 600; margin-bottom: 4px; }
.timeline-time { font-size: 12px; color: var(--text-muted); font-family: "SF Mono", "Fira Code", monospace; }

.timeline-achievements { list-style: none; padding: 0; margin-top: 8px; }

.timeline-achievements li {
  position: relative;
  padding: 3px 0 3px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-achievements li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 12px;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.skill-tag {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-primary);
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.15);
  border-radius: 20px;
  transition: var(--transition);
  cursor: default;
}

.skill-tag:hover {
  background: rgba(88, 166, 255, 0.18);
  border-color: rgba(88, 166, 255, 0.35);
  transform: translateY(-1px);
}

/* Skills Detail */
.skills-detail { margin-top: 8px; }

.skill-detail-group { margin-bottom: 16px; }
.skill-detail-group:last-child { margin-bottom: 0; }

.skill-detail-category {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.skill-detail-items {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 12px;
}

/* ---------- Interests ---------- */
.interests-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.interest-loading {
  font-size: 14px;
  color: var(--text-muted);
  padding: 40px;
  text-align: center;
}

/* ---- Tag bar ---- */
.interest-tags-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.interest-tag {
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-purple);
  border: 1px solid var(--accent-purple);
  border-radius: 20px;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(188, 140, 255, 0.2);
}

/* ---- Rows wrap ---- */
.interest-rows-wrap {
  width: 100%;
  line-height: 0;
}

/* Single row — zero gap, fills full width */
.interest-row {
  display: flex;
  line-height: 0;
}

/* Cell — exact pixel size set by JS, matches image aspect ratio */
.interest-collage-item {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  line-height: 0;
}

/* Image fills cell exactly — no crop because cell dimensions match aspect ratio */
.interest-collage-item img,
.interest-collage-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.interest-collage-item:hover img,
.interest-collage-item:hover video {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.interest-collage-item:hover {
  z-index: 2;
  box-shadow: 0 0 0 2px var(--accent-purple), 0 6px 24px rgba(188, 140, 255, 0.3);
}

.interest-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.interest-collage-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  pointer-events: none;
}

/* ---------- Certifications ---------- */
.cert-list { list-style: none; padding: 0; }

.cert-list li {
  padding: 6px 0 6px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
}

.cert-list li::before {
  content: '🏆';
  position: absolute;
  left: 0;
  font-size: 12px;
}

/* ---------- Section Footer ---------- */
.section-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
}

.section-footer-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  white-space: nowrap;
}

.section-footer-line {
  flex: 1;
  height: 0;
  border-top: 1px dashed var(--section-footer-border);
}

.section-footer-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
}

/* ---------- Works Grid ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* ---------- Douyin Body (left-right: all info | screenshot) ---------- */
.douyin-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.douyin-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.douyin-highlights {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.douyin-proof {
  flex-shrink: 0;
  text-align: center;
  padding-top: 0;
}

.douyin-proof-img {
  width: 280px;
  max-width: 280px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
}

.douyin-proof-img:hover {
  border-color: var(--accent);
  filter: brightness(1.05);
}

.douyin-proof-caption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.douyin-highlight-item {
  display: flex;
  gap: 22px;
  padding: 28px;
  background: rgba(255, 122, 89, 0.04);
  border: 1px solid rgba(255, 122, 89, 0.12);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.douyin-highlight-item:hover {
  border-color: rgba(255, 122, 89, 0.3);
  background: rgba(255, 122, 89, 0.08);
}

.douyin-highlight-item .highlight-fire { font-size: 44px; flex-shrink: 0; margin-top: 0; line-height: 1; }

.douyin-highlight-item strong {
  display: block;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.douyin-highlight-item p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

/* ---------- Douyin Card Base ---------- */
.douyin-card { padding: 24px; margin-bottom: 24px; }

.douyin-header {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.douyin-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.douyin-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.douyin-badge {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(255, 122, 89, 0.1);
  padding: 3px 10px;
  border-radius: 10px;
  margin-left: 8px;
}

.douyin-time {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 8px;
}

.douyin-bio {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.douyin-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.douyin-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.douyin-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.douyin-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.douyin-link {
  display: block;
  text-align: center;
  padding: 14px 28px;
  font-size: 15px;
  color: white;
  background: var(--accent-grad);
  border-radius: 22px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  margin-top: 0;
}

.douyin-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 122, 89, 0.3);
}

/* ---------- Game Project Card ---------- */
.game-project-card { padding: 28px; margin-top: 24px; }

.game-project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.game-project-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.game-project-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.game-project-time {
  font-size: 13px;
  color: var(--text-muted);
}

.game-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  padding: 4px 12px;
  font-size: 11px;
  color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 12px;
  font-family: "SF Mono", "Fira Code", monospace;
}

.game-project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.game-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.game-feature {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: rgba(88, 166, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.game-feature:hover {
  border-color: var(--border-hover);
  background: rgba(88, 166, 255, 0.08);
}

.feature-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

.game-feature strong {
  font-size: 13px;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.game-feature br + br { display: none; }

.game-feature div {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.game-media {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.game-video {
  width: 100%;
  display: block;
  background: #000;
  border-radius: var(--radius-md);
}

.game-download-area {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.game-download-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 13px;
  color: white;
  background: var(--accent-grad);
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.game-download-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 122, 89, 0.3);
}

.game-file-info {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- General Project Card ---------- */
.project-card { padding: 28px; margin-top: 16px; }

.project-header {
  margin-bottom: 18px;
}

.project-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.project-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 122, 89, 0.08);
  padding: 3px 12px;
  border-radius: 12px;
}

.project-time {
  font-size: 13px;
  color: var(--text-muted);
}

.project-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-details li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.project-attach {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.project-attach-link {
  display: inline-block;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--accent-grad);
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
}

.project-attach-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 122, 89, 0.3);
}

.project-attach-info {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Highlight Card ---------- */
.highlight-card { text-align: center; padding: 32px; }

.highlight-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.highlight-fire { font-size: 40px; }

.highlight-title {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.6;
}

.highlight-title strong {
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
}

.highlight-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.8;
}

.work-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.work-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--bg-body);
}

.work-info { padding: 14px; }

.work-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.work-stat { display: flex; align-items: center; gap: 4px; }
.work-stat .num { color: var(--text-secondary); font-weight: 600; }

/* Video */
.video-embed-area { margin-top: 16px; }

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-body);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Cognition Grid ---------- */
.cognition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cognition-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.cognition-card:hover { border-color: var(--border-hover); }

.cognition-card-title {
  padding: 16px 20px 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cognition-img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
  margin-top: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.cognition-img:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.cognition-desc {
  padding: 16px 20px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Masonry ---------- */
.masonry { columns: 3; column-gap: 16px; }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.masonry-item:hover { transform: scale(1.02); }

.masonry-item img,
.masonry-item video {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

.masonry-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  pointer-events: none;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.masonry-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }

.lightbox-img-wrapper {
  max-width: 90vw; max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-video {
  max-width: 90vw; max-height: 80vh;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter { position: absolute; bottom: 24px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ---------- Animation ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

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

.block-card { animation: slideUp 0.6s ease both; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

::selection { background: rgba(88, 166, 255, 0.3); color: var(--text-primary); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .sidebar-card {
    width: 100%;
    position: relative;
    top: auto; left: auto; bottom: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-content {
    padding: 20px 16px;
  }

  .page-wrapper { flex-direction: column; }
  .main-content { margin-left: 0; padding: 0 20px 60px; }
  .hero-headline { font-size: 28px; }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item { padding: 8px 14px; font-size: 13px; flex-shrink: 0; }

  .works-grid { grid-template-columns: 1fr; gap: 16px; }
  .masonry { columns: 2; column-gap: 10px; }
  .cognition-grid { grid-template-columns: 1fr; gap: 16px; }
  .block-card { padding: 18px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 18px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .douyin-body { flex-direction: column; }
  .douyin-proof { align-self: center; }
  .douyin-proof-img { width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .masonry { columns: 1; }
  .hero-headline { font-size: 24px; }
  .timeline-header { flex-direction: column; gap: 2px; }
}