/* ============================================================
   Chris Resume · Apple Style System
   设计参考：Apple MacBook Neo 产品页
   视频区：深色（Dark Stage）
   内容区：浅色（#f5f5f7 / #ffffff 交替色带）
   ============================================================ */

/* ===================== CSS Variables — Apple Tokens ===================== */
:root {
  /* Colors */
  --color-ink:      #f2ede6;   /* 主文字 */
  --color-graphite: #a39a8d;   /* 次要文字 */
  --color-slate:    #c6bfb4;   /* 中层文字 */
  --color-ash:      #d8d2c8;   /* 图标描边 */
  --color-fog:      #151311;   /* 页面背景（暖炭黑） */
  --color-snow:     #1e1b18;   /* 卡片表面 */
  --color-obsidian: #000000;   /* 深色区 */
  --color-mist:     #2c2824;   /* 分割线 */
  --color-gold:     #c9a84c;   /* 强调色（品牌） */
  --color-gold-dim: rgba(201,168,76,0.3);
  --color-caution:  #b64400;

  /* Typography */
  --font-display: 'SF Pro Display', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-text:    'SF Pro Text', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type Scale */
  --text-caption:    12px;
  --text-body-sm:    14px;
  --text-body:       17px;
  --text-subheading: 20px;
  --text-heading-sm: 24px;
  --text-heading:    40px;
  --text-heading-lg: 56px;
  --text-display:    clamp(48px, 8vw, 96px);

  /* Spacing (4px base) */
  --sp-4:  4px;
  --sp-8:  8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-28: 28px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-56: 56px;
  --sp-80: 80px;
  --sp-120:120px;

  /* Radii */
  --radius-card:   28px;
  --radius-button: 999px;
  --radius-sm:     10px;

  /* Layout */
  --page-max: 1200px;

  /* Motion */
  --ease-default: 0.344s ease;
  --ease-quick:   0.1s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-fog);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.006em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* ===================== 自定义光标（SVG 准星） ===================== */
#customCursor {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 44px; height: 44px;
  transition: width 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
              height 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#customCursor svg {
  width: 100%; height: 100%;
  display: block;
}

/* 准星描边样式 */
.reticle-line, .reticle-ring, .reticle-dot {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.35s ease, stroke-width 0.35s ease, opacity 0.35s ease;
}

.reticle-dot {
  fill: var(--color-gold);
  stroke: none;
}

/* hover 时圆环填充金色 + 稍稍放大（锁定感） */
#customCursor.hover {
  width: 54px; height: 54px;
}

#customCursor.hover .reticle-ring {
  fill: rgba(201,168,76,0.25);
  stroke-width: 2.6;
}

/* 视频区恢复默认光标 */
#videoStage,
#videoStage * {
  cursor: auto;
}

/* 内容区之外隐藏自定义光标 */
#videoStage ~ #customCursor {
  /* shown by JS only in content area */
}

/* ===================== 视频区（深色，保持不变） ===================== */

/* 加载遮罩 */
#loadingOverlay {
  position: fixed; inset: 0;
  background: #000;
  z-index: 9999;
  transition: opacity 0.8s ease;
}
#loadBar {
  position: absolute; bottom: 0; left: 0;
  height: 1px; width: 0%;
  background: var(--color-gold);
  transition: width 0.3s ease;
}
#loadingOverlay.done { opacity: 0; pointer-events: none; }

/* 视频滚动区 */
#videoStage {
  height: 200vh;
  position: relative;
}
#videoContainer {
  position: sticky; top: 0;
  width: 100%; height: 100vh;
  overflow: hidden;
  background: #000;
}
.layer-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}
#freezeCanvas { object-fit: unset; }

/* Hero 文字 */
.screen-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; z-index: 10;
  pointer-events: none;
}
#heroText {
  opacity: 0;
  transition: opacity 0.6s ease;
}
#heroText.visible { opacity: 1; }
.hero-tag {
  font-family: var(--font-text);
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--color-gold);
  margin-bottom: 16px; font-weight: 400;
}
.hero-gold-line {
  width: 40px; height: 1px;
  background: var(--color-gold);
  margin: 0 auto 20px; opacity: 0.6;
}
.hero-name {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700; color: #fff;
  letter-spacing: -0.022em; line-height: 1.04;
  margin-bottom: 12px;
}
.hero-name span { color: var(--color-gold); }
.hero-sub {
  font-size: 13px; letter-spacing: 4px;
  text-transform: uppercase; color: #888; font-weight: 300;
}

/* 视频 4.1 点击提示 */
#clickHint {
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  cursor: pointer;
}
#clickHint.visible {
  opacity: 1;
  pointer-events: auto;
}

/* 三层白色脉冲圆环 */
.click-hint-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.7);
  animation: hintPulse 2.4s ease-in-out infinite;
}

.click-hint-ring:nth-child(1) {
  width: 36px; height: 36px;
  animation-delay: 0s;
}
.click-hint-ring:nth-child(2) {
  width: 60px; height: 60px;
  animation-delay: 0.3s;
}
.click-hint-ring:nth-child(3) {
  width: 88px; height: 88px;
  animation-delay: 0.6s;
}

@keyframes hintPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.3); opacity: 0.15; }
}

/* 闪白 + 滚动提示 + 进度条（深色区用白色） */
#flashOverlay {
  position: fixed; inset: 0;
  background: #fff; opacity: 0;
  pointer-events: none; z-index: 20;
}
#scrollHint {
  position: fixed; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 15; opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
#scrollHint.visible { opacity: 1; }
.sh-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--color-gold));
}
.sh-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-gold);
  animation: dotDrop 1.8s ease-in-out infinite;
}
@keyframes dotDrop {
  0%   { transform: translateY(-32px); opacity: 0; }
  30%  { opacity: 1; }
  80%  { opacity: 0.8; }
  100% { transform: translateY(6px); opacity: 0; }
}
#scrollProgress {
  position: fixed; top: 0; left: 0;
  height: 1px; width: 0%;
  background: var(--color-gold);
  z-index: 100;
  transition: width 0.1s linear;
}

/* ===================== 内容区 ===================== */
#contentArea {
  position: relative; z-index: 5;
  background: var(--color-fog);
}

/* 交替色带：偶数 section 白底，奇数 section fog 底 */
.content-section {
  padding: var(--sp-120) 72px;
}
.content-section:nth-child(odd) {
  background: var(--color-snow);
}
.content-section:nth-child(even) {
  background: var(--color-fog);
}

/* 第一个内容 section 从深色过渡到浅色 */
.content-section:first-child {
  background: var(--color-snow);
}

/* 工作经历 / AI 项目：内容整体右移，拉开与左边框的距离 */
#expSection, #projectSection { padding-left: 140px; }

/* Section Header */
.section-header {
  margin-bottom: var(--sp-80);
}
.section-header.center { text-align: center; }
.section-tag {
  font-family: var(--font-text);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-16);
  font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--sp-24);
}

/* Reveal 动画（慢入缓出，更有质感） */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 图片占位符 */
.img-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  background: var(--color-fog);
  border: 1px dashed var(--color-mist);
  border-radius: var(--radius-card);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--color-graphite); font-size: 13px; gap: 4px;
}
.img-placeholder small {
  font-size: 11px; color: #999;
}

/* ===================== 个人信息 ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-80);
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
}
.about-image {
  aspect-ratio: 3/4;
  max-height: 500px;
}
/* 左侧栏：照片 + 座右铭 */
.about-left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
}
.about-quote {
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-graphite);
  padding-left: 16px;
  border-left: 3px solid var(--color-gold);
}
/* ===================== 个人照片：3D 挂绳工牌 ===================== */
.lanyard {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.lanyard-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.about-text .section-title {
  margin-bottom: var(--sp-20);
  font-size: var(--text-heading);
  letter-spacing: -0.015em;
}
.about-text .section-body {
  max-width: 480px;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-graphite);
  font-weight: 400;
  margin-bottom: var(--sp-32);
}

/* 关键数据行 */
.stats-row {
  display: flex; align-items: center;
  gap: var(--sp-40);
  margin-top: var(--sp-48);
}
.stat-item {
  display: flex; flex-direction: column; gap: 4px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-heading-lg);
  font-weight: 700; color: var(--color-gold);
  letter-spacing: -0.016em; line-height: 1.07;
}
.stat-label {
  font-family: var(--font-text);
  font-size: var(--text-body-sm);
  color: var(--color-graphite);
  letter-spacing: -0.003em;
}
.stat-divider {
  width: 1px; height: 48px;
  background: var(--color-mist);
}

/* 教育背景 */
.edu-row {
  max-width: var(--page-max); margin: 60px auto 0;
  padding-top: var(--sp-48);
  border-top: 1px solid var(--color-mist);
}
.edu-item { display: flex; gap: var(--sp-24); align-items: baseline; }
.edu-year {
  font-size: var(--text-body-sm); color: var(--color-gold);
  letter-spacing: 0.02em; white-space: nowrap;
}
.edu-school {
  font-size: var(--text-body); color: var(--color-ink); font-weight: 500;
}
.edu-major {
  font-size: var(--text-body-sm); color: var(--color-graphite); font-weight: 400;
}

/* ===================== 工作经验（Sticky Card Stack） ===================== */
#expSection .section-header { margin-bottom: var(--sp-40); }

.exp-stack-wrapper {
  height: 400vh;
  position: relative;
  margin-top: var(--sp-40);
}
.exp-stack-stage {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  background: var(--color-fog);
}

.exp-card {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 60px 80px;
  will-change: transform;
}
.exp-card[data-card="1"] { z-index: 1; background: var(--color-snow); }
.exp-card[data-card="2"] { z-index: 2; background: var(--color-snow); transform: translateY(100%); }
.exp-card[data-card="3"] { z-index: 3; background: var(--color-snow); transform: translateY(100%); }

/* 水印 */
.exp-card-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.exp-watermark {
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 700; color: var(--color-fog);
  white-space: nowrap; line-height: 1;
  pointer-events: none; user-select: none;
}

/* 卡片内容 */
.exp-card-content {
  position: relative; z-index: 2;
  max-width: 560px;
  background: var(--color-snow);
  border-radius: var(--radius-card);
  padding: var(--sp-40);
  box-shadow: none;
}
.exp-card-number {
  font-family: var(--font-display);
  font-size: 80px; font-weight: 700;
  color: var(--color-fog);
  line-height: 1; margin-bottom: -10px;
}
.exp-meta {
  display: flex; gap: var(--sp-20);
  align-items: baseline; margin-bottom: var(--sp-20);
}
.exp-period {
  font-family: var(--font-text);
  font-size: var(--text-body-sm);
  color: var(--color-gold); letter-spacing: 0.02em;
}
.exp-role {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  font-weight: 600; color: var(--color-ink);
  letter-spacing: -0.015em;
}
.exp-desc {
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.6; color: var(--color-graphite);
  font-weight: 400; margin-bottom: var(--sp-24);
}
.exp-desc em {
  font-style: normal; color: var(--color-ink); font-weight: 600;
}

/* ===================== 项目展示（横向滚动） ===================== */
.project-scroll-wrapper {
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab; padding-bottom: 20px;
  scrollbar-width: none;
}
.project-scroll-wrapper::-webkit-scrollbar { display: none; }
.project-scroll-wrapper:active { cursor: grabbing; }
.project-track {
  display: flex; gap: var(--sp-24);
  padding: 0 var(--sp-40);
  width: max-content;
}
.project-card {
  flex: 0 0 420px; scroll-snap-align: start;
  background: var(--color-snow);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.4s var(--ease-default);
}
.project-card:hover { transform: translateY(-6px); }
.project-image {
  width: 100%; height: 260px;
}
.project-info { padding: var(--sp-28); }
.project-tag {
  font-family: var(--font-text);
  font-size: var(--text-caption);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-gold); font-weight: 600;
}
.project-title {
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  font-weight: 600; color: var(--color-ink);
  letter-spacing: -0.01em;
  margin: var(--sp-8) 0; line-height: 1.2;
}
.project-desc {
  font-family: var(--font-text);
  font-size: var(--text-body-sm);
  line-height: 1.6; color: var(--color-graphite);
  font-weight: 400; margin-bottom: var(--sp-16);
}
.project-index {
  font-family: var(--font-text);
  font-size: var(--text-caption);
  color: #bbb; letter-spacing: 0.04em;
}
.project-progress-wrap {
  max-width: 400px; margin: var(--sp-32) auto 0;
  height: 2px; background: var(--color-mist);
  border-radius: 2px;
}
.project-progress-bar {
  height: 100%; width: 0%;
  background: var(--color-gold);
  border-radius: 2px;
  transition: width 0.15s ease;
}

/* ===================== 专业能力（点击互动） ===================== */
.capability-buttons {
  display: flex; justify-content: center;
  gap: var(--sp-12); flex-wrap: wrap;
  margin-bottom: var(--sp-48);
}
.cap-btn {
  padding: 12px 28px;
  background: var(--color-snow);
  color: var(--color-ink);
  border: 1px solid var(--color-mist);
  border-radius: var(--radius-button);
  font-family: var(--font-text);
  font-size: var(--text-body);
  font-weight: 400;
  cursor: pointer;
  letter-spacing: -0.006em;
  transition: all var(--ease-default);
  outline: none;
}
.cap-btn:hover {
  border-color: #ccc;
  background: var(--color-fog);
}
.cap-btn.active {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: #181512;
}
.capability-panel {
  max-width: 900px; margin: 0 auto;
  overflow: hidden;
}
.cap-detail { display: none; }
.cap-detail.active {
  display: block;
  animation: capFadeSlide 0.4s var(--ease-default);
}
@keyframes capFadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cap-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-48);
  align-items: center;
  background: var(--color-snow);
  border-radius: var(--radius-card);
  padding: var(--sp-48);
  box-shadow: none;
}
.cap-grid-single { grid-template-columns: 1fr; }
.cap-grid-single .cap-detail-text { max-width: 760px; }
.cap-detail-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  font-weight: 600; color: var(--color-ink);
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-16);
}
.cap-detail-desc {
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.6; color: var(--color-graphite);
  font-weight: 400; margin-bottom: var(--sp-24);
}
.cap-detail-list {
  list-style: none; margin-bottom: var(--sp-28);
}
.cap-detail-list li {
  position: relative; padding-left: 18px;
  font-family: var(--font-text);
  font-size: var(--text-body-sm);
  color: var(--color-slate); line-height: 2.2;
  font-weight: 400;
}
.cap-detail-list li::before {
  content: ''; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-gold); opacity: 0.6;
}
.cap-detail-stat {
  display: inline-flex; flex-direction: column; gap: 4px;
  padding: var(--sp-16) var(--sp-24);
  border: 1px solid var(--color-mist);
  border-radius: var(--radius-card);
}
.cap-detail-stat span {
  font-family: var(--font-text);
  font-size: var(--text-caption);
  color: var(--color-graphite); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cap-detail-stat strong {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 700; color: var(--color-gold);
  letter-spacing: -0.016em; line-height: 1;
}
.cap-detail-image {
  aspect-ratio: 4/3;
}

/* ===================== AI Vibe Coding ===================== */
#contactSection { text-align: center; }

.ai-tools-grid {
  display: flex; justify-content: center;
  gap: var(--sp-40); margin-bottom: var(--sp-40);
  flex-wrap: wrap;
}

.ai-tool-card {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--sp-12);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ai-tool-card:hover {
  transform: translateY(-6px);
}
.ai-tool-card:hover .ai-tool-name {
  color: var(--color-gold);
}

.ai-tool-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.4s ease;
  background: var(--color-fog);
  display: flex; align-items: center; justify-content: center;
}
/* 深色 logo（GPT、GitHub）用白底衬托 */
.ai-tool-icon.icon-white { background: #ffffff; }

.ai-tool-icon img {
  width: 80%; height: 80%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 图片加载失败时的文字兜底 */
.ai-tool-icon.fallback {
  background: var(--color-ink);
  color: var(--color-snow);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ai-tool-card:hover .ai-tool-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.ai-tool-card:hover .ai-tool-icon img {
  transform: scale(1.05);
}

.ai-tool-name {
  font-family: var(--font-text);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.003em;
  transition: color 0.3s ease;
}

.ai-subtitle {
  font-family: var(--font-text);
  font-size: var(--text-caption);
  color: var(--color-graphite);
  letter-spacing: 0.04em;
}

/* ===================== 联系方式 ===================== */
#contactSection2 { text-align: center; }

.contact-grid {
  display: flex; justify-content: center;
  gap: var(--sp-56); margin-bottom: var(--sp-48);
  flex-wrap: wrap;
}

.contact-item {
  display: flex; align-items: center;
  gap: var(--sp-16);
  padding: var(--sp-16) var(--sp-28);
  background: var(--color-snow);
  border-radius: var(--radius-card);
  transition: transform var(--ease-default);
  cursor: pointer;
}
.contact-item:hover {
  transform: translateY(-2px);
}
.contact-item:hover .contact-icon {
  background: rgba(201, 168, 76, 0.16);
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--color-fog);
  overflow: hidden;
  flex-shrink: 0;
}

.contact-icon img {
  width: 24px; height: 24px;
  object-fit: contain;
}

.contact-info {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 2px;
}

.contact-label {
  font-family: var(--font-text);
  font-size: var(--text-caption);
  letter-spacing: 0.05em;
  color: var(--color-graphite); font-weight: 500;
}

.contact-value {
  font-family: var(--font-text);
  font-size: var(--text-body);
  color: var(--color-ink); font-weight: 400;
  letter-spacing: -0.006em;
}

/* 点击复制提示 */
.contact-hint {
  font-family: var(--font-text);
  font-size: 11px;
  color: var(--color-gold);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.contact-hint.copied {
  opacity: 1;
  font-weight: 600;
}

/* ===================== 标签 ===================== */
.tag-row {
  display: flex; flex-wrap: wrap; gap: var(--sp-8);
}
.tag {
  padding: 6px 18px;
  border: 1px solid var(--color-mist);
  border-radius: var(--radius-button);
  font-family: var(--font-text);
  font-size: var(--text-body-sm);
  color: var(--color-slate);
  letter-spacing: -0.003em;
  background: var(--color-snow);
}

/* ===================== 按钮 ===================== */
.cta-row {
  display: flex; gap: var(--sp-16);
  justify-content: center; flex-wrap: wrap;
  margin-top: var(--sp-8);
}
.btn-primary {
  padding: 12px 28px;
  background: var(--color-gold);
  color: #fff;
  border: none;
  border-radius: var(--radius-button);
  font-family: var(--font-text);
  font-size: var(--text-body);
  font-weight: 500;
  letter-spacing: -0.006em;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--ease-quick), box-shadow var(--ease-default);
  display: inline-block;
}
.btn-primary:hover {
  opacity: 0.88;
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
}
.btn-ghost {
  padding: 12px 28px;
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-mist);
  border-radius: var(--radius-button);
  font-family: var(--font-text);
  font-size: var(--text-body);
  font-weight: 400;
  letter-spacing: -0.006em;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--ease-default), color var(--ease-default);
  display: inline-block;
}
.btn-ghost:hover { border-color: #bbb; color: var(--color-ink); }

/* ===================== 右下角 Token 老虎机计数器 ===================== */
#tokenWidget {
  position: fixed;
  right: -200px;
  bottom: 40px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  transition: right 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: pointer;
  user-select: none;
}
#tokenWidget.visible { right: 28px; }

/* 金币 */
.token-coin {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d87c 0%, #c9a84c 40%, #a8882e 70%, #c9a84c 100%);
  border: 2px solid #b8942e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.15s ease;
  will-change: transform;
}

/* 金币旋转（滚动时） */
.token-coin.rolling {
  animation: coinRoll 0.5s ease-in-out;
}

@keyframes coinRoll {
  0%   { transform: rotateY(0deg) scale(1); }
  40%  { transform: rotateY(180deg) scale(1.15); }
  70%  { transform: rotateY(320deg) scale(1.05); }
  100% { transform: rotateY(360deg) scale(1); }
}

/* 金币爆发（点击时更大特效） */
.token-coin.burst {
  animation: coinBurst 0.7s ease-out;
}

@keyframes coinBurst {
  0%   { transform: rotateY(0deg) scale(1); }
  30%  { transform: rotateY(360deg) scale(1.5); }
  60%  { transform: rotateY(540deg) scale(0.9); }
  100% { transform: rotateY(720deg) scale(1); }
}

/* 金币微光 */
.token-coin::after {
  content: '';
  position: absolute;
  top: 3px; left: 6px;
  width: 8px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: rotate(-30deg);
}

/* 老虎机滚轮容器 */
.token-reel {
  display: flex;
  gap: 1px;
  background: var(--color-fog);
  border-radius: 6px;
  padding: 3px 4px;
  border: 1px solid var(--color-mist);
}

/* 逗号分隔符 */
.token-sep {
  display: flex;
  align-items: flex-end;
  padding-bottom: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  opacity: 0.35;
}

/* 每个数字位 */
.token-digit-slot {
  position: relative;
  width: 20px;
  height: 32px;
  overflow: hidden;
  background: var(--color-snow);
  border-radius: 3px;
}

/* 数字列 */
.token-digit-col {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.token-digit-col.spin {
  transition: transform 0.8s cubic-bezier(0.08, 0.82, 0.28, 1);
}

.token-digit-col.fast {
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 每个数字 */
.token-digit-num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

.token-label {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 数字增长延伸线 */
.token-grow-line {
  position: absolute;
  right: 100%;
  bottom: 16px;
  height: 1px;
  width: 0px;
  background: var(--color-gold);
  transform-origin: right center;
  transition: width 0.5s cubic-bezier(0.16, 0.84, 0.44, 1);
  opacity: 0.5;
  pointer-events: none;
}
.token-grow-line.pulse {
  opacity: 0.9;
  transition: width 0.3s ease, opacity 0.15s ease;
}

/* ===================== 粒子系统 ===================== */

/* 小火花（数字增长时从计数器飞出） */
.token-spark {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-gold);
  pointer-events: none;
  z-index: 60;
  animation: sparkBurst 0.8s ease-out forwards;
}

@keyframes sparkBurst {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0); }
}

/* 大粒子（快速滚动时爆发） */
.token-burst-particle {
  position: fixed;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gold);
  pointer-events: none;
  z-index: 60;
  animation: burstFloat 1.5s ease-out forwards;
}

@keyframes burstFloat {
  0%   { opacity: 1; transform: translate(0, 0) scale(0.5) rotate(0deg); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(1.3) rotate(var(--br)); }
}

/* ===================== 自定义滚动条 ===================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.2);
}

/* ===================== 装饰元素 ===================== */
#decoTopLeft,
#decoBottomRight {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

#decoTopLeft {
  top: 40px; left: 40px;
  width: 60px; height: 60px;
  border-left: 1px solid var(--color-gold);
  border-top: 1px solid var(--color-gold);
}

#decoBottomRight {
  bottom: 40px; right: 120px;
  width: 40px; height: 80px;
  border-right: 1px solid var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
}

/* ===================== 响应式 ===================== */
@media (max-width: 768px) {
  #customCursor, #decoTopLeft, #decoBottomRight { display: none; }
  body { cursor: auto; }

  .content-section {
    padding: var(--sp-80) 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-40);
  }
  .about-image {
    max-height: 360px; order: -1;
  }
  .stats-row { gap: var(--sp-24); }

  .exp-stack-wrapper { height: 350vh; }
  .exp-card { padding: 40px 24px; }
  .exp-card-content { padding: var(--sp-28); }
  .exp-watermark { font-size: clamp(60px, 16vw, 120px); }
  .exp-card-number { font-size: 56px; margin-bottom: 0; }
  .exp-role { font-size: var(--text-subheading); }

  .project-card { flex: 0 0 320px; }
  .project-image { height: 200px; }
  .project-track { padding: 0 24px; }

  .cap-detail-grid {
    grid-template-columns: 1fr; gap: var(--sp-32);
  }
  .cap-detail-image { order: -1; aspect-ratio: 16/9; }

  #tokenWidget { display: none; }

  .ai-tools-grid { gap: var(--sp-24); }
  .contact-grid { gap: var(--sp-40); }
}

/* =====================================================
   散落画廊（项目展示区）
   ===================================================== */
.collage-wrap {
  position: relative;
  height: 1180px;
  margin-top: var(--sp-48, 48px);
}

.collage-item {
  position: absolute;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  border: 2px solid transparent;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s, border-color 0.5s;
  text-decoration: none;
}

.collage-item img {
  width: 100%;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.collage-item:hover {
  transform: rotate(0deg) translateY(-8px) !important;
  border-color: var(--color-gold);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.collage-item:hover img { transform: scale(1.04); }

/* 项目名字（图片正中间，白字黑描边） */
.collage-caption {
  position: absolute;
  inset: 0;
  padding: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  pointer-events: none;
}

.cc-name {
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
  font-family: 'Yuanti SC', 'YouYuan', '幼圆', '圆体-简', 'PingFang SC', sans-serif;
  text-shadow:
    -2px -2px 0 #000000, 2px -2px 0 #000000,
    -2px 2px 0 #000000, 2px 2px 0 #000000,
    0 4px 14px rgba(0, 0, 0, 0.75);
}

.cc-en {
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: 'Yuanti SC', 'YouYuan', '幼圆', '圆体-简', 'PingFang SC', sans-serif;
  text-shadow:
    -1.5px -1.5px 0 #000000, 1.5px -1.5px 0 #000000,
    -1.5px 1.5px 0 #000000, 1.5px 1.5px 0 #000000,
    0 2px 8px rgba(0, 0, 0, 0.7);
}

/* 每张卡片的散落位置（桌面端） */
.ci-1 { left: 0%;   top: 0;      width: 33%; transform: rotate(-2.5deg); }
.ci-2 { left: 39%;  top: 24px;   width: 27%; transform: rotate(2deg); }
.ci-3 { left: 72%;  top: 8px;    width: 23%; transform: rotate(-1.8deg); }
.ci-4 { left: 5%;   top: 400px;  width: 25%; transform: rotate(2.2deg); }
.ci-5 { left: 36%;  top: 448px;  width: 31%; transform: rotate(-2deg); }
.ci-6 { left: 71%;  top: 456px;  width: 26%; transform: rotate(1.6deg); }
.ci-7 { left: 11%;  top: 838px;  width: 29%; transform: rotate(-1.4deg); }
.ci-8 { left: 47%;  top: 866px;  width: 25%; transform: rotate(2deg); }

/* 手机端：散落变两列整齐排列 */
@media (max-width: 760px) {
  .collage-wrap {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
  }
  .collage-item {
    position: relative;
    width: auto !important;
    transform: none !important;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
  }
  .collage-item:hover { transform: translateY(-3px) !important; }
  .cc-name { font-size: 16px; letter-spacing: 1px; }
  .cc-en { font-size: 9px; letter-spacing: 2px; }
}

/* =====================================================
   AI 对话助手（右下角悬浮）
   ===================================================== */
#chatWidget {
  position: fixed;
  right: 72px;
  bottom: 44px;
  z-index: 300;
}

/* 悬浮按钮 */
#chatLauncher {
  width: 66px; height: 66px;
  border-radius: 50%;
  border: none;
  background: #0c0b0a;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
  position: relative;
}

#chatLauncher svg { width: 26px; height: 26px; }
#chatLauncher:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35); }

/* 对话面板 */
#chatPanel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--color-snow);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}

#chatPanel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* 头部 */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #0c0b0a;
  color: #ffffff;
}

.chat-header-info { display: flex; align-items: center; gap: 12px; }

.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #1d1b18;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-title { font-size: 15px; font-weight: 600; }
.chat-subtitle { font-size: 11px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }

#chatClose {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 6px;
  display: flex;
  transition: color 0.25s;
}
#chatClose:hover { color: #ffffff; }

/* 消息区 */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-fog);
}

.chat-msg { max-width: 86%; font-size: 14px; line-height: 1.7; }
.chat-msg p { margin: 0; }

.chat-msg.ai {
  align-self: flex-start;
  background: var(--color-snow);
  color: var(--color-ink);
  border-radius: 4px 16px 16px 16px;
  padding: 11px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-msg.user {
  align-self: flex-end;
  background: #2c2824;
  color: #f2ede6;
  border-radius: 16px 4px 16px 16px;
  padding: 11px 14px;
}

.chat-msg.typing { align-self: flex-start; padding: 14px 16px; }
.chat-msg.typing .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-graphite);
  margin-right: 5px;
  animation: chatTyping 1.2s ease-in-out infinite;
}
.chat-msg.typing .dot:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* 输入区 */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--color-snow);
  border-top: 1px solid var(--color-mist);
}

#chatInput {
  flex: 1;
  border: 1.5px solid var(--color-mist);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font-text);
  outline: none;
  transition: border-color 0.25s;
  color: var(--color-ink);
  background: var(--color-fog);
}
#chatInput:focus { border-color: var(--color-gold); }

#chatSend {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--color-gold);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
}
#chatSend:hover { transform: scale(1.06); }
#chatSend:disabled { opacity: 0.5; cursor: not-allowed; }

/* 手机端 */
@media (max-width: 640px) {
  #chatWidget { right: 16px; bottom: 16px; }
  #chatPanel { bottom: 68px; width: calc(100vw - 32px); height: min(480px, calc(100vh - 110px)); }
}

/* ---------- 能力板块案例图片 ---------- */
.cap-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.cap-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ---------- 工作经历职责清单 ---------- */
.exp-duty-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--sp-24);
}

.exp-duty {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-graphite);
  padding-left: 14px;
  position: relative;
}

.exp-duty::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
}

.exp-duty em {
  font-style: normal;
  color: var(--color-ink);
  font-weight: 600;
}

.duty-name {
  display: inline-block;
  color: var(--color-ink);
  font-weight: 700;
  margin-right: 8px;
  letter-spacing: 1px;
}

/* =====================================================
   工作经历交互卡片（苹果极简风）
   ===================================================== */
.exp-box {
  display: flex;
  border-radius: 28px;
  background: var(--color-snow);
  overflow: hidden;
  min-height: 420px;
  max-width: 1100px;
  margin: 0 auto;
}

.exp-nav {
  width: 300px;
  flex-shrink: 0;
  background: transparent;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-nav-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  position: relative;
  color: var(--color-graphite);
  font-family: var(--font-text);
  transition: background 0.3s ease, color 0.3s ease;
}

.exp-nav-item:hover { background: #26221e; }

.exp-nav-item.active {
  background: #2f2a25;
  color: #f2ede6;
}

.exp-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 58%;
  border-radius: 2px;
  background: var(--color-gold);
}

.eni-name { font-size: 17px; font-weight: 600; letter-spacing: 1px; }
.exp-nav-item.active .eni-name { font-weight: 700; }
.eni-period { font-size: 12px; }

.exp-panels { flex: 1; }

.exp-panel {
  display: none;
  padding: 48px 56px;
}

.exp-panel.active {
  display: block;
  animation: expFade 0.4s ease;
}

@keyframes expFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* =====================================================
   AI 项目手风琴画廊（hover 展开，展开比例 52%）
   ===================================================== */
.acc-wrap {
  display: flex;
  height: 460px;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.acc-item {
  position: relative;
  flex-grow: 1;
  min-width: 40px;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  text-decoration: none;
  transition: flex-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.acc-item.active { flex-grow: 7.6; } /* 7.6 : 7×1 → 展开项占 52% */

.acc-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(5px);        /* 截图模糊为柔和背景，突出项目名 */
  transform: scale(1.12);   /* 放大遮住模糊边缘 */
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.acc-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.14) 48%, rgba(0, 0, 0, 0.42) 100%);
}

.acc-item:hover img { transform: scale(1.18); }

.acc-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.acc-item.active .acc-caption { opacity: 1; }

/* =====================================================
   聊天按钮 StarBorder（原版组件移植 CSS）
   ===================================================== */
#chatLauncher.star-border {
  position: relative;
  isolation: isolate;
}

/* 轨道描边（已移除：圆形按钮上会形成压在图标上的圆圈） */

/* 光效画布（外扩 48px 出血区） */
.star-border__light {
  position: absolute;
  top: -48px;
  left: -48px;
  z-index: -1;
  width: calc(100% + 96px);
  height: calc(100% + 96px);
  pointer-events: none;
}

#chatLauncher.star-border:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.2);
  outline-offset: 3px;
}


/* =====================================================
   专业能力板块（网点显影特效已取消，板块为普通深色背景）
   ===================================================== */
