/* =====================================================
   stage.css · 圆环舞台（唯一的页面布局，所有屏幕尺寸通用）
   圆环固定在屏幕正中央；滚动一次翻一页：
   指针转向对应颜色 → 亮区顺时针扫过圆环 → 环周围出现这一页的信息。
   宽屏：信息在圆环左右两侧；窄屏 / 竖屏：信息在圆环上下两侧。
   遵循原站"描边代替阴影"的规则：不使用 box-shadow。
   ===================================================== */

:root {
  --live: #ff4b4b;                                  /* 随滚动在五种颜色间渐变（stage.js 写入） */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 自由滚动（不吸附）：滚轮每转一格，加载进度就连续推进一点 */

/* 滚动骨架：每一页对应一屏高的滚动距离，提供真实的滚动条与滚动距离 */
#stageSpacer { position: relative; z-index: 0; }
.st-snap { height: 100vh; height: 100svh; }

/* ---------- 舞台 ---------- */
#stage {
  --D: min(74vh, 40vw, 760px);                                   /* 圆环直径 */
  --M: clamp(36px, 7vw, 130px);                                  /* 页面左右边距 */
  --ZT: clamp(130px, 19vh, 210px);                               /* 信息栏上边距（给左上角标签留位置） */
  --ZB: clamp(120px, 17vh, 170px);                               /* 信息栏下边距（避开右下角聊天按钮） */
  --G: 36px;                                                     /* 圆环与信息栏的间距 */
  --PW: calc((100vw - var(--D)) / 2 - var(--M) - var(--G));       /* 两侧信息栏宽度 */
  --sec: #ff4b4b;
  --sec-rgb: 255, 75, 75;
  --color-gold: var(--sec);

  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background-color: #252423;
  background-image:
    linear-gradient(rgba(180, 177, 175, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 177, 175, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
#stage::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.6) 100%);
}
#stageStars { position: absolute; inset: 0; pointer-events: none; }

/* ---------- 圆环 ---------- */
.st-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--D); height: var(--D);
  transform: translate(-50%, -50%);
  z-index: 2;
}
/* 绕环缓慢旋转的光谱光晕 */
.st-ring::before {
  content: '';
  position: absolute;
  inset: -9%;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, #ff4b4b, #ffa828, #00ffaa, #4d9cff, #05dbe9, #ff4b4b);
  filter: blur(54px);
  opacity: 0.2;
  -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 79%, transparent 96%);
          mask: radial-gradient(closest-side, transparent 62%, #000 79%, transparent 96%);
  animation: haloSpin 30s linear infinite;
}
@keyframes haloSpin { to { transform: rotate(360deg); } }

/* 环中心随页面变色的柔光 */
.st-ring::after {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--sec-rgb), 0.14) 0%, rgba(var(--sec-rgb), 0.05) 45%, transparent 72%);
  transition: background 0.6s ease;
}

#stageDial {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
#stageDial .dial-ring { fill: rgba(37, 36, 35, 0.55); stroke: #353433; stroke-width: 0.8; }

/* 刻度环：指针附近的刻度点亮（亮度由 stage.js 写入） */
#stageDial .tick { stroke: #ff4b4b; stroke-width: 0.55; stroke-linecap: round; opacity: 0; }
#stageDial .tick-l { stroke-width: 0.9; }

/* 内圈：两圈细环 + 一段缓慢旋转的亮弧 */
#stageDial .orbit-ring { fill: none; stroke: rgba(180, 177, 175, 0.16); stroke-width: 0.35; }
#stageDial .orbit-ring-2 { stroke: rgba(180, 177, 175, 0.08); }
#stageDial .orbit-arc {
  fill: none;
  stroke: var(--live, #ff4b4b);
  stroke-opacity: 0.7;
  stroke-width: 0.8;
  stroke-linecap: round;
  transform-origin: 100px 100px;
  transform-box: view-box;
  animation: orbitSpin 36s linear infinite;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* 外圈五段弧：底层常暗；.dial-lit 层随滚动顺时针逐步"充满"（累积式加载进度） */
#stageDial .dial-arcs path { fill: none; stroke-width: 5; stroke-linecap: butt; opacity: 0.22; }
#stageDial .dial-lit path { fill: none; stroke-width: 6.2; stroke-linecap: butt; pointer-events: none; }



/* ---------- 每一页 ---------- */
/* 页面的显隐 / 位移 / 透明度全部由 stage.js 按滚动进度连续写入（transform / opacity / filter / clip-path），
   不再是"整页淡入淡出"，而是文字随滚轮一格一格地过渡；每个板块一套不同的动画（见 stage.js 的 STYLES）。 */
.sp {
  position: absolute; inset: 0;
  z-index: 3;
  visibility: hidden;
  pointer-events: none;
}
.sp-in { will-change: transform, opacity; }
.sp.live .sp-left,
.sp.live .sp-right,
.sp.live .sp-corner { pointer-events: auto; }
.st-hint { pointer-events: auto; }

/* 动画进行中暂时关闭元素自带 transition，避免和 anime.js 打架 */
.fx-run { transition: none !important; }

/* 环中心文字 */
.sp-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--D) * 0.6);
  text-align: center;
  pointer-events: none;
}
.c-kicker { font-size: 11px; letter-spacing: 0.22em; color: var(--sec); margin-bottom: 12px; text-transform: uppercase; }
.c-line { width: 40px; height: 1px; background: var(--sec); opacity: 0.6; margin: 0 auto 18px; }
.c-name {
  font-family: var(--font-display);
  font-size: calc(var(--D) * 0.2);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.022em;
  color: #f6f4f2; margin-bottom: 10px;
}
.c-name span:first-child { color: var(--sec); }
.c-title {
  font-family: var(--font-display);
  font-size: calc(var(--D) * 0.105);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  color: #f6f4f2; margin-bottom: 12px;
}
.c-sub { font-size: 13px; letter-spacing: 0.16em; color: #8b8885; }

/* ---------- 两侧信息栏：整列向上下延伸，信息分成上、下两组，中间留白 ---------- */
.sp-left, .sp-right {
  position: absolute;
  top: var(--ZT);
  bottom: var(--ZB);
  width: var(--PW);
}
.sp-left  { left: var(--M); }
.sp-right { left: calc(50vw + var(--D) / 2 + var(--G, 36px)); }
.sp-left > .sp-in,
.sp-right > .sp-in {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;     /* 第一组贴上、第二组贴下 */
}
.zone.fill {                           /* 列表 / 联系方式：整列铺开，占满上下延伸的高度 */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.zone.fill > .st-list { flex: 1; justify-content: space-around; }
.zone.fill > .st-contact { margin-bottom: 0; }

.lead { font-size: 15px; line-height: 1.85; color: #b4b1af; margin-bottom: 24px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.st-actions .btn-primary, .st-actions .btn-ghost { padding: 11px 24px; font-size: 14px; cursor: pointer; }
#stage .btn-primary:hover, #stage .btn-ghost:hover { border-color: var(--sec); color: var(--sec); }

/* 数据 / 教育 */
.st-stat { display: flex; flex-direction: column; margin-bottom: 20px; }
.st-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.016em;
  color: var(--sec);
}
.st-label { font-size: 13px; color: #b4b1af; margin-top: 2px; }
.st-edu { margin-top: 6px; padding-top: 16px; border-top: 1px solid #353433; }
.st-edu p { font-size: 13px; line-height: 1.7; color: #b4b1af; margin-bottom: 4px; }
.st-edu .y { color: var(--sec); margin-right: 10px; white-space: nowrap; }

/* 第一页：About me（左）/ 个人照片 + 个人观点（右） */
.ab-label { font-size: 12px; letter-spacing: 0.18em; color: var(--sec); margin-bottom: 12px; text-transform: uppercase; }
.ab-text { font-size: 15px; line-height: 1.85; color: #d5d3d1; margin-bottom: 22px; }
.ab-stats { display: flex; gap: 20px; margin-bottom: 20px; }
.ab-stats .st-stat { margin: 0; }
.ab-stats .st-num { font-size: clamp(26px, 2.4vw, 34px); }
.ab-stats .st-label { font-size: 11px; line-height: 1.4; }

/* 照片翻转卡：正面是照片，点击后绕竖轴翻转，背面是名字 */
.ab-photo {
  position: relative;
  display: block;
  height: min(280px, 34vh);
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  padding: 0;
  border: none;
  background: none;
  perspective: 900px;
  cursor: pointer;
  font-family: var(--font-text);
}
.flip-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.85s var(--ease-out-expo);
}
.ab-photo:hover .flip-inner { transform: rotateY(9deg); }                       /* 悬停时微微侧转，提示可点击 */
.ab-photo.flipped .flip-inner { transform: rotateY(180deg); }
.ab-photo.flipped:hover .flip-inner { transform: rotateY(171deg); }
.ab-photo:focus-visible { outline: 2px solid var(--sec); outline-offset: 4px; border-radius: 18px; }

.flip-face {
  position: absolute; inset: 0;
  display: block;
  border: 1px solid #353433;
  border-radius: 18px;
  overflow: hidden;
  background: #2f2e2d;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.flip-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-front .ph {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 56px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--sec);
  background: linear-gradient(160deg, rgba(var(--sec-rgb), 0.16), transparent 70%);
}
.flip-front.nophoto img { display: none; }
.flip-front.nophoto .ph { display: flex; }

.flip-back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center;
  background: linear-gradient(160deg, rgba(var(--sec-rgb), 0.22), #2a2928 72%);
  border-color: rgba(var(--sec-rgb), 0.5);
}
.fb-role { padding: 0 12px; font-size: 9.5px; letter-spacing: 0.14em; line-height: 1.5; text-transform: uppercase; color: var(--sec); }
.fb-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 5.4vw, 76px);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: #f6f4f2;
}
.fb-cn { font-size: 20px; font-weight: 600; letter-spacing: 0.3em; color: #f6f4f2; }

.flip-hint {
  position: absolute; right: 10px; bottom: 10px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #f6f4f2;
  font-style: normal; font-size: 16px; line-height: 1;
}

.ab-view { font-size: 15px; line-height: 1.75; color: #f6f4f2; margin-bottom: 12px; }
.ab-quote {
  font-size: 13px; line-height: 1.7; color: #8b8885;
  padding-left: 12px;
  border-left: 2px solid var(--sec);
}
.ab-quote cite { display: block; margin-top: 4px; font-style: normal; color: #b4b1af; }

/* 右侧详情：标题和介绍收成一组，垂直居中在水平线上；
   从圆环伸出一条细引线指向这组文字；次要信息（标签 / 数据卡片）单独放在列底，与主组保持距离 */
.sp-right.mid { bottom: var(--ZT); }                 /* 上下边距对称，列的中心 = 圆环水平线 */
.sp-right.mid > .sp-in { position: relative; justify-content: center; }
.zone.sec { position: absolute; left: 0; right: 0; bottom: 0; }
.leader {
  position: absolute;
  top: 50%; height: 1px;
  left: calc(-1 * var(--G, 36px) - var(--D) * 0.03);
  width: calc(var(--G, 36px) + var(--D) * 0.03 - 12px);
  background: linear-gradient(90deg, var(--sec), rgba(var(--sec-rgb), 0.12));
}
.leader::before {
  content: '';
  position: absolute; left: 0; top: -2.5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sec);
}
.d-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.d-tags .tag {
  padding: 4px 14px;
  border: 1px solid #353433;
  border-radius: 999px;
  font-size: 12px;
  color: #d5d3d1;
  background: rgba(47, 46, 45, 0.6);
}
.zone > div + div { margin-top: 16px; }
.d-stat { margin-top: 6px; }

/* 工作经历：时间轴 */
.tl { position: relative; }
.zone.fill > .tl { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.tl-line, .tl-fill { position: absolute; left: 5px; width: 1px; top: 0; height: 0; background: #353433; }
.tl-fill { left: 4.5px; width: 2px; background: var(--sec); transition: height 0.6s var(--ease-out-expo); }
.tl-item {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  padding: 6px 0;
  border: none; background: none;
  text-align: left;
  color: #8b8885;
  font-family: var(--font-text);
  cursor: pointer;
  transition: color 0.3s ease;
}
.tl-node {
  position: relative; z-index: 1;
  flex: 0 0 11px; width: 11px; height: 11px;
  border-radius: 50%;
  background: #252423;
  border: 2px solid #4a4846;
  transition: transform 0.45s var(--ease-out-expo), background 0.3s ease, border-color 0.3s ease;
}
.tl-text { display: flex; flex-direction: column; gap: 2px; }
.tl-text .n { font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.tl-text small { font-size: 12px; color: #6f6c69; transition: color 0.3s ease; }
.tl-item:hover { color: #f6f4f2; }
.tl-item.on { color: #f6f4f2; }
.tl-item.on .tl-node { background: var(--sec); border-color: var(--sec); transform: scale(1.5); }
.tl-item.on small { color: var(--sec); }

/* AI 项目：弧形滚轮（原点 = 圆环中心；位置由 stage.js 计算） */
.wheel {
  position: absolute;
  left: calc(50vw - var(--M));
  top: calc(50vh - var(--ZT));
  width: 0; height: 0;
  pointer-events: none;
}
.wheel-arc { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.wheel-arc path { fill: none; stroke: #353433; stroke-width: 1; }
.wheel-item {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 20px 8px 0;
  border: none; background: none;
  white-space: nowrap;
  color: #b4b1af;
  font-family: var(--font-text);
  transform-origin: 100% 50%;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.45s ease, color 0.3s ease;
}
.wheel-item .n { font-size: clamp(18px, 1.55vw, 22px); font-weight: 600; }
.wheel-item::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%;
  background: #4a4846;
  transition: background 0.3s ease, transform 0.45s var(--ease-out-expo);
}
.wheel-item.on { color: #f6f4f2; }
.wheel-item.on::after { background: var(--sec); transform: scale(1.7); }
.st-list.chips { display: none; }       /* 手机宽度才显示的胶囊列表 */

/* 专业能力：大序号 */
.nums { display: flex; flex-direction: column; justify-content: space-around; flex: 1; }
.num-item {
  display: flex; align-items: baseline; gap: 20px;
  padding: 0;
  border: none; background: none;
  text-align: left;
  color: #8b8885;
  font-family: var(--font-text);
  cursor: pointer;
  transition: color 0.35s ease;
}
.num-item .num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: #3a3836;
  transition: color 0.35s ease;
}
.num-item .n { font-size: 20px; font-weight: 600; }
.num-item:hover .num { color: #5a5754; }
.num-item:hover .n { color: #f6f4f2; }
.num-item.on .num { color: var(--sec); }
.num-item.on .n { color: #f6f4f2; }

/* 左侧选项列表（手机宽度的胶囊） */
.st-list { display: flex; flex-direction: column; gap: 4px; }
.st-item {
  display: flex; flex-direction: column; gap: 2px;
  text-align: left;
  padding: 12px 16px;
  border: none;
  border-left: 2px solid #353433;
  background: none;
  color: #b4b1af;
  font-family: var(--font-text);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.st-item .n { font-size: 16px; font-weight: 600; letter-spacing: 0.02em; }
.st-item small { font-size: 12px; color: #8b8885; }
.st-item:hover { color: #f6f4f2; }
.st-item.on {
  color: #f6f4f2;
  border-left-color: var(--sec);
  background: linear-gradient(90deg, rgba(var(--sec-rgb), 0.12), transparent);
}
.st-list.compact .st-item { padding: 8px 14px; flex-direction: row; align-items: baseline; gap: 10px; }
.st-list.compact .n { font-size: 15px; }

/* 右侧详情 */
.d-meta { font-size: 13px; letter-spacing: 0.04em; color: var(--sec); }
.d-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  color: #f6f4f2; margin: 6px 0 12px;
}
.d-desc { font-size: 14px; line-height: 1.75; color: #b4b1af; margin-bottom: 14px; }
.d-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.d-list { list-style: none; margin-bottom: 6px; }
.d-list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.7; color: #d5d3d1; margin: 8px 0; }
.d-list li::before {
  content: '';
  position: absolute; left: 0; top: 0.72em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sec);
}
.d-stat {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 10px 18px;
  border: 1px solid #353433;
  border-radius: 16px;
}
.d-stat span { font-size: 12px; color: #b4b1af; }
.d-stat strong { font-family: var(--font-display); font-size: 30px; line-height: 1.1; color: var(--sec); }
.d-more { margin-top: 16px; }

/* 联系方式 */
.st-contact {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  margin-bottom: 12px;
  border: 1px solid #353433;
  border-radius: 16px;
  background: rgba(47, 46, 45, 0.6);
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.st-contact:hover { border-color: var(--sec); }
.st-contact .ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #252423;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; overflow: hidden; flex-shrink: 0;
}
.st-contact .ic img { width: 22px; height: 22px; object-fit: contain; }
.st-contact .t { display: flex; flex-direction: column; gap: 1px; }
.st-contact .k { font-size: 12px; color: #8b8885; }
.st-contact .v { font-size: 16px; color: #f6f4f2; }
.st-contact .h { font-size: 11px; color: var(--sec); }

/* ---------- 左上角：只显示当前板块的标题（随各页的过渡动画一起进出） ---------- */
.sp-title {
  position: absolute;
  left: var(--M);
  top: 26px;
  pointer-events: none;
}
.sp-title .t-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--sec);
  white-space: nowrap;
}

/* ---------- 页码圆点 / 翻页提示 / 提示条 ---------- */
.st-dots {
  position: absolute;
  right: 26px; top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex; flex-direction: column; gap: 14px;
}
.st-dots button {
  width: 8px; height: 8px; padding: 0;
  border: none; border-radius: 50%;
  background: #4a4846;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.4s ease;
}
.st-dots button.on { background: var(--c, #ff4b4b); transform: scale(1.6); }
.st-dots button:hover { background: #8b8885; }
.st-dots button.on:hover { background: var(--c, #ff4b4b); }

.st-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.2em;
  color: #8b8885;
  transition: opacity 0.4s ease;
}
.st-hint i {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: hintBob 1.8s ease-in-out infinite;
}
@keyframes hintBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }
.st-hint.off { opacity: 0; pointer-events: none; }

.st-toast {
  position: fixed;
  left: 50%; bottom: 70px;
  transform: translate(-50%, 10px);
  padding: 8px 18px;
  border: 1px solid var(--sec);
  border-radius: 999px;
  background: #252423;
  color: #f6f4f2;
  font-size: 13px;
  opacity: 0; pointer-events: none;
  z-index: 40;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.st-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 全局：进度条 / 光标 / 弹层随光谱色 ---------- */
#scrollProgress {
  height: 2px;
  background: linear-gradient(90deg, #ff4b4b, #ffa828, #00ffaa, #4d9cff, #05dbe9);
  background-size: 100vw 100%;
  background-repeat: no-repeat;
}
#customCursor { --color-gold: var(--live, #ff4b4b); }
#customCursor.hover .reticle-ring {
  fill: rgba(255, 75, 75, 0.4);
  fill: color-mix(in srgb, var(--live, #ff4b4b) 40%, transparent);
}

#detailOverlay { --sec: #00ffaa; --color-gold: #00ffaa; }
.overlay-nav { position: relative; }
.overlay-nav::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #ff4b4b, #ffa828, #00ffaa, #4d9cff, #05dbe9);
  opacity: 0.85;
}
.ability-chip { color: var(--color-gold); }
.detail-gold-line { transform-origin: left center; }

/* =====================================================
   中等宽度（700–1099px，如窄窗口、预览窗格、平板）：仍是左右布局，
   只是圆环和文字整体缩小
   ===================================================== */
@media (min-width: 700px) and (max-width: 1099px) {
  #stage {
    --D: min(66vh, 36vw, 560px);
    --M: clamp(28px, 5vw, 48px);
    --G: 26px;
  }
    .c-kicker { font-size: 9px; }
  .c-sub { font-size: 11px; letter-spacing: 0.1em; }

  .ab-text { font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
  .ab-stats { gap: 14px; margin-bottom: 0; }
  .ab-stats .st-num { font-size: 24px; }
  .ab-stats .st-label { font-size: 10px; }
  .st-edu { display: none; }
  .ab-photo { height: min(200px, 26vh); margin-bottom: 14px; }
  .fb-name { font-size: 44px; }
  .fb-cn { font-size: 16px; }
  .ab-view { font-size: 13px; margin-bottom: 8px; }
  .ab-quote { font-size: 12px; line-height: 1.6; }

  .tl-text .n { font-size: 15px; }
  .tl-text small { font-size: 11px; }
  .wheel-item .n { font-size: 17px; }
  .num-item .num { font-size: clamp(34px, 5vw, 48px); }
  .num-item .n { font-size: 16px; }
  .st-item { padding: 9px 12px; }
  .st-item .n { font-size: 14px; }
  .st-item small { font-size: 11px; }
  .st-list.compact .st-item { padding: 6px 10px; }
  .st-list.compact .n { font-size: 13px; }
  .st-list.compact small { display: none; }

  .d-title { font-size: 22px; margin: 4px 0 8px; }
  .d-desc, .d-list li { font-size: 13px; line-height: 1.65; }
  .d-clamp { -webkit-line-clamp: 6; }
  .d-stat strong { font-size: 24px; }
  .st-contact { padding: 10px 12px; gap: 10px; }
  .st-contact .v { font-size: 14px; }
  .st-dots { right: 10px; }
}

/* =====================================================
   手机宽度（< 700px）：左右放不下，信息栏移到圆环上下两侧，圆环依然在正中央
   ===================================================== */
@media (max-width: 699px) {
  #stage {
    --D: min(62vw, 44vh, 560px);
    --M: 24px;
  }
    .c-kicker { font-size: 9px; margin-bottom: 8px; }
  .c-line { margin-bottom: 10px; }
  .c-sub { font-size: 11px; letter-spacing: 0.1em; }

  .sp-left, .sp-right {
    left: var(--M); right: var(--M);
    width: auto;
    transform: none;
    display: flex; flex-direction: column;
  }
  /* 上半区：贴着圆环上沿往上排 */
  .sp-left {
    top: auto;
    bottom: calc(50% + var(--D) / 2 + 24px);
    max-height: calc(50vh - var(--D) / 2 - 84px);
    justify-content: flex-end;
  }
  /* 下半区：贴着圆环下沿往下排 */
  .sp-right {
    top: calc(50% + var(--D) / 2 + 24px);
    bottom: auto;
    max-height: calc(50vh - var(--D) / 2 - 56px);
  }
  .sp-left > .sp-in, .sp-right > .sp-in { height: auto; display: block; }
  .ab-r > .sp-in { display: flex; flex-direction: row; justify-content: flex-start; gap: 14px; align-items: flex-start; }
  .sp-right { right: 88px; }                 /* 给右下角的聊天按钮留出位置 */
  .ab-photo-zone { flex-shrink: 0; }
  .zone.fill { display: block; flex: none; }
  .zone.fill > .st-list { flex: none; justify-content: flex-start; }
  .zone + .zone { margin-top: 12px; }
  .zone.fill > .tools { flex: none; flex-direction: row; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
  .tool-row { gap: 8px; }
  .tool-row .ai-tool-icon { width: 36px; height: 36px; border-radius: 10px; }
  .tool-name { font-size: 13px; }
  .zone.sec { position: static; }
  .sec-proj { display: none; }               /* 手机上空间紧：项目的技术标签不显示 */
  .leader { display: none; }
  /* 手机宽度：时间轴 / 滚轮 / 大序号都退回成一排胶囊 */
  .wheel { display: none; }
  .st-list.chips { display: flex; }
  .tl, .nums { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; flex: none; justify-content: flex-start; }
  .zone.fill > .tl { flex: none; justify-content: flex-start; }
  .tl-line, .tl-fill, .tl-node { display: none; }
  .tl-item, .num-item {
    padding: 6px 12px; gap: 6px;
    border: 1px solid #353433; border-radius: 999px;
  }
  .tl-item.on, .num-item.on { border-color: var(--sec); background: rgba(var(--sec-rgb), 0.12); }
  .tl-text { flex-direction: row; align-items: baseline; gap: 6px; }
  .tl-text small, .num-item .num { display: none; }
  .tl-text .n, .num-item .n { font-size: 13px; }
  .sp-title { left: var(--M); top: 16px; }
  .sp-title .t-text { font-size: 22px; }

  .lead { font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
  .st-actions .btn-primary, .st-actions .btn-ghost { padding: 9px 18px; font-size: 13px; }

  .ab-label { font-size: 10px; margin-bottom: 8px; }
  .ab-text { font-size: 12.5px; line-height: 1.65; margin-bottom: 12px; }
  .ab-stats { gap: 16px; margin-bottom: 0; }
  .ab-stats .st-num { font-size: 22px; }
  .ab-stats .st-label { font-size: 10px; }
  .ab-right { display: flex; gap: 14px; align-items: flex-start; }
  .ab-photo { height: auto; width: 88px; margin-bottom: 0; flex-shrink: 0; }
  .flip-face { border-radius: 14px; }
  .flip-front .ph { font-size: 22px; }
  .fb-name { font-size: 26px; }
  .fb-cn { font-size: 11px; letter-spacing: 0.2em; }
  .fb-role { display: none; }
  .flip-hint { width: 20px; height: 20px; font-size: 11px; right: 5px; bottom: 5px; }
  .ab-words { min-width: 0; }
  .ab-view { font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
  .ab-quote { font-size: 11.5px; line-height: 1.55; }
  .st-stats { display: flex; gap: 20px; }
  .st-stat { margin-bottom: 0; }
  .st-num { font-size: clamp(26px, 8vw, 40px); }
  .st-label { font-size: 11px; }
  .st-edu { display: none; }

  /* 列表变成一排小胶囊 */
  .st-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .st-item, .st-list.compact .st-item {
    flex-direction: row; align-items: baseline; gap: 6px;
    padding: 6px 12px;
    border: 1px solid #353433; border-radius: 999px;
  }
  .st-item .n, .st-list.compact .n { font-size: 13px; }
  .st-item small { display: none; }
  .st-item.on { border-color: var(--sec); background: rgba(var(--sec-rgb), 0.12); }

  .d-title { font-size: 20px; margin: 4px 0 8px; }
  .d-desc, .d-list li { font-size: 13px; line-height: 1.6; }
  .d-list li { margin: 5px 0; }
  .d-clamp { -webkit-line-clamp: 4; }
  .d-stat strong { font-size: 24px; }

  .st-contact { padding: 10px 14px; margin-bottom: 8px; }
  .st-contact .v { font-size: 14px; }

  .st-dots { right: 12px; gap: 12px; }
  .st-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .st-ring::before, #stageDial .orbit-arc, .st-hint i { animation: none; }
  .flip-inner { transition: none; }
}

/* ---------- 开场特效：扫圈亮点 / 收尾光环 / 中心闪光 ---------- */
#stageDial .boot-sweep { opacity: 0; pointer-events: none; }
#stageDial .boot-glow { opacity: 0.35; }
#stageDial .boot-dot { fill: #f6f4f2; }
#stageDial .boot-pulse { fill: none; stroke: #f6f4f2; stroke-width: 2; opacity: 0; pointer-events: none; }
.st-flash {
  position: absolute; inset: 6%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(var(--sec-rgb), 0.18) 38%, transparent 66%);
}

/* ---------- Vibe Coding 页：工具图标 ---------- */
.zone.fill > .tools { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.tool-row { display: flex; align-items: center; gap: 20px; }
.tool-row .ai-tool-icon { width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0; }
.tool-name { font-size: 20px; font-weight: 600; color: #f6f4f2; letter-spacing: 0.02em; }

/* ---------- 首页右上角：下载简历 ---------- */
.sp-corner { position: absolute; top: 22px; right: var(--M); pointer-events: none; }
.sp-corner .btn-primary { display: inline-block; padding: 10px 24px; font-size: 14px; cursor: pointer; }

/* ---------- 右下角聊天按钮：呼吸灯 ----------
   光晕放在按钮下层（不盖住星点轨道和图标），不使用 box-shadow（沿用原站"描边代替阴影"）。 */
#chatLauncher { isolation: isolate; }
#chatLauncher::before {
  content: '';
  position: absolute;
  inset: -16px;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 75, 75, 0.5) 0%, rgba(255, 75, 75, 0.18) 44%, transparent 70%);
  animation: chatBreath 3.2s ease-in-out infinite;
}
#chatLauncher::after {                      /* 向外扩散的细环，像呼吸时的涟漪 */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 50%;
  border: 1px solid rgba(255, 75, 75, 0.7);
  pointer-events: none;
  animation: chatRipple 3.2s ease-out infinite;
}
@keyframes chatBreath {
  0%, 100% { opacity: 0.2; transform: scale(0.86); }
  50%      { opacity: 1;   transform: scale(1.16); }
}
@keyframes chatRipple {
  0%       { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0;  transform: scale(1.6); }
}
/* 对话面板打开时不再呼吸 */
#chatWidget:has(#chatPanel.open) #chatLauncher::before,
#chatWidget:has(#chatPanel.open) #chatLauncher::after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #chatLauncher::before { animation: none; opacity: 0.45; }
  #chatLauncher::after { animation: none; opacity: 0; }
}
