/* ============================================================
 *  杨佩玲个人求职网站 · 牵牛花 × 蓝紫 × 暖底 × 复古TV开场
 *  视觉：温暖可靠的梦境蓝紫调，复古电视开机，衬线大字欢迎语
 * ============================================================ */

:root {
  /* ── 底色（暖白/奶油，承接米白温度） ── */
  --bg:        #FBF7F2;        /* 主背景：暖米白（更柔） */
  --bg-soft:   #F4ECDF;        /* 奶油浅卡 */
  --bg-deep:   #E8DFD0;        /* 略深米 */
  --bg-card:   #FFFFFF;        /* 卡片白 */
  --paper:     #F8F0E5;        /* 纸感米 */

  /* ── 文字（暖靛主导） ── */
  --ink:       #2E2A6E;        /* 主文字：深紫靛 */
  --ink-soft:  #4A4A8C;        /* 次文字：中等紫 */
  --muted:     #8A85C0;        /* 弱化文字：淡紫 */

  /* ── 描边 ── */
  --line:      #E8DFD0;
  --line-soft: #F0E6D4;

  /* ── 蓝紫主调（牵牛花光谱） ── */
  --primary:        #5C5CBF;   /* 蓝紫主色 */
  --primary-soft:   #4A7AFF;   /* 矢车菊蓝（强调） */
  --primary-tint:   #D4D4F0;   /* 雾蓝紫 */
  --primary-deep:   #2E2A6E;   /* 深夜紫（标题深底） */

  /* ── 腮粉点缀 ── */
  --pink:        #E8B5C5;
  --pink-soft:   #F5DCE3;
  --pink-tint:   #FBEFEF;
  --pink-deep:   #C99AAA;

  /* ── 语义 ── */
  --accent:      var(--primary);
  --accent-2:    var(--pink-deep);
  --accent-soft: var(--primary-tint);

  /* ── 兼容旧 var 名（重定向到新调色板） ── */
  --mem-orange: var(--primary);
  --mem-pink:   var(--pink);
  --mem-purple: var(--primary-deep);
  --mem-sky:    var(--primary-soft);
  --mem-mint:   var(--primary-tint);
  --mem-yellow: var(--pink-tint);
  --mem-coral:  var(--pink-deep);
  --ink-2:      var(--primary);
  --ink-deep:   var(--primary-deep);

  /* ── 形（更软更暖，圆角加大） ── */
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* ── 字体：衬线主导（人文温度） ── */
  --serif:   "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans:    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono:    "DM Mono", monospace;
  --retro:   "VT323", monospace;

  /* ── 阴影（偏暖靛） ── */
  --shadow-xs: 0 2px 6px rgba(46, 42, 110, 0.06);
  --shadow:    0 6px 18px rgba(46, 42, 110, 0.10);
  --shadow-lg: 0 16px 40px rgba(46, 42, 110, 0.16);

  /* ── 弹性 ── */
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.intro-pending { overflow: hidden; }
body.intro-pending main,
body.intro-pending header.nav,
body.intro-pending footer.footer { visibility: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
 *  复古电视加载序列（开场动画）
 * ============================================================ */
.tv-intro {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at center, #1a1d24 0%, #0a0c10 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
.tv-intro.fade-out { opacity: 0; pointer-events: none; }

.tv-stage {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  perspective: 1200px;
}

/* ===== TV 主体 ===== */
.tv {
  position: relative;
  width: clamp(320px, 60vw, 560px);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.84, 0),
              opacity 0.8s ease;
  transform-origin: center 80%;
}
.tv.leaving {
  transform: translateY(75vh) scale(0.55) rotate(-3deg);
  opacity: 0;
}

.tv-frame {
  position: relative;
  background: linear-gradient(160deg, #D5C8B3 0%, #C2B49B 50%, #B0A188 100%);
  border-radius: 24px;
  padding: 28px 28px 22px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.15),
    inset 8px 0 16px rgba(0, 0, 0, 0.18),
    inset -8px 0 16px rgba(0, 0, 0, 0.18);
}

/* 屏幕（圆角 CRT） */
.tv-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #1a1535;        /* 暖深紫底（牵牛花夜色） */
  border-radius: 18% / 22%;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 8px #3a3068,
    inset 0 0 0 12px #150f30,
    inset 0 0 30px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(92, 92, 191, 0.30);
}

/* 屏幕里的内容层 */
.tv-content {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--retro);
  letter-spacing: 1px;
}

/* 测试条（开机时短暂显示）——牵牛花配色 */
.tv-bars {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    #E8B5C5 0%, #E8B5C5 7.7%,   /* 腮粉 */
    #D4D4F0 7.7%, #D4D4F0 15.4%, /* 雾紫 */
    #A8B0E8 15.4%, #A8B0E8 23.1%, /* 雾蓝紫 */
    #5C5CBF 23.1%, #5C5CBF 30.8%, /* 主蓝紫 */
    #4A7AFF 30.8%, #4A7AFF 38.5%, /* 矢车菊蓝 */
    #2E2A6E 38.5%, #2E2A6E 46.2%, /* 深夜紫 */
    #150f30 46.2%, #150f30 53.8%, /* 黑紫底 */
    #2E2A6E 53.8%, #2E2A6E 61.5%,
    #4A7AFF 61.5%, #4A7AFF 69.2%,
    #5C5CBF 69.2%, #5C5CBF 76.9%,
    #A8B0E8 76.9%, #A8B0E8 84.6%,
    #D4D4F0 84.6%, #D4D4F0 92.3%,
    #E8B5C5 92.3%, #E8B5C5 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tv-bars.show { opacity: 1; }

/* 屏幕文字（打字机） */
.tv-text {
  position: relative; z-index: 3;
  font-size: clamp(20px, 3vw, 34px);
  color: #F4ECDF;
  text-shadow: 0 0 8px rgba(232, 181, 197, 0.65),
               0 0 16px rgba(92, 92, 191, 0.45);
  white-space: nowrap;
  letter-spacing: 2px;
  opacity: 0;
}
.tv-text.show { opacity: 1; }

/* 打字光标 */
.tv-cursor {
  position: absolute; left: 50%; top: 50%;
  width: 0.45em; height: 1em;
  background: #c8d8e0;
  box-shadow: 0 0 6px rgba(184, 90, 122, 0.5);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: tvBlink 0.5s steps(2) infinite;
}
.tv-cursor.show { opacity: 1; }
@keyframes tvBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* CRT 扫描线（屏幕表面） */
.tv-scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

/* CRT 玻璃反光 */
.tv-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 35%),
    radial-gradient(ellipse at 75% 85%, rgba(184, 90, 122, 0.05) 0%, transparent 40%);
  border-radius: inherit;
}

/* 静态噪点（轻微） */
.tv-static {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  opacity: 0;
  background-image:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0, rgba(0,0,0,0.05) 1px, transparent 2px),
    repeating-radial-gradient(circle at 30% 70%, rgba(255,255,255,0.03) 0, rgba(0,0,0,0.04) 1px, transparent 2px);
  background-size: 3px 3px, 5px 5px;
  animation: tvStaticMove 0.4s steps(4) infinite;
  mix-blend-mode: overlay;
}
.tv-static.show { opacity: 0.6; }
@keyframes tvStaticMove {
  0%   { background-position: 0 0, 0 0; }
  25%  { background-position: 5px -3px, -3px 4px; }
  50%  { background-position: -4px 5px, 5px -2px; }
  75%  { background-position: 3px 4px, -5px -4px; }
  100% { background-position: 0 0, 0 0; }
}

/* 屏幕底部 chin */
.tv-chin {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px;
}
.tv-brand {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  color: #5a4d3a;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #e8dcc4 0%, #c9b994 100%);
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 旋钮 */
.tv-knob {
  position: absolute;
  right: -22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8dcc4 0%, #b0a188 70%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.3);
}
.tv-knob::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 14px;
  background: #5a4d3a;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.tv-knob-1 { top: 22%; }
.tv-knob-2 { top: 50%; }

/* 支架 */
.tv-stand {
  position: absolute;
  bottom: -22px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  background: linear-gradient(to bottom, #B0A188 0%, #8e8168 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}
.tv-stand-bar {
  position: absolute;
  bottom: -38px; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 14px;
  background: linear-gradient(to bottom, #A89B81 0%, #8e8168 100%);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* 提示文字 */
.tv-hint {
  font-family: var(--mono);
  font-size: 13px;
  color: #7a8590;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 36px;
  display: flex; align-items: center; gap: 8px;
}
.tv-hint-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink);
  animation: tvDotBlink 1.2s ease-in-out infinite;
}
@keyframes tvDotBlink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* 跳过按钮 */
.tv-skip {
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(122, 133, 144, 0.4);
  color: #7a8590;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  transition: all 0.2s var(--bounce);
}
.tv-skip:hover { border-color: var(--pink); color: var(--pink); }

/* ============================================================
 *  导航
 * ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(244, 242, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--cosmic-line);
  box-shadow: 0 4px 18px rgba(46, 59, 170, 0.06);
}
.nav.scrolled .nav-inner { height: 64px; }
/* v5：整条 nav-inner 居中在视口，logo 隐藏到桌面，tabs 绝对居中 */
.nav-inner {
  position: relative;
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  height: 70px; display: flex; align-items: center;
  transition: height 0.35s ease;
}
.nav-progress {
  position: absolute; left: 0; bottom: -2px; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--cosmic-flower));
  border-radius: 0 3px 3px 0;
  transition: width 0.08s linear;
}
/* v5：logo 缩小并定位到左边，桌面 tabs 居中，简历按钮靠右 */
.nav-logo {
  position: absolute; left: 28px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
}
.logo-en {
  font-family: var(--serif); font-weight: 700; font-size: 14px;
  letter-spacing: 3px;
  color: var(--cosmic-3);
  transition: color 0.25s var(--bounce);
  white-space: nowrap;
}

/* v5:tabs 绝对居中 */
.nav-tabs {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 2px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--cosmic-line);
  border-radius: 999px;
  padding: 5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(46, 59, 170, 0.05);
}
.nav-tabs a {
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px;
  color: var(--cosmic-ink-soft); transition: all 0.25s var(--bounce);
  position: relative; white-space: nowrap;
}
.nav-tabs a:hover { color: var(--cosmic-ink); background: rgba(84, 112, 255, 0.10); }
.nav-tabs a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  box-shadow: 0 4px 12px rgba(84, 112, 255, 0.35);
}
.nav-tabs a.active::before { display: none; }
/* v5：简历按钮定位到最右 —— 必须用 !important，否则会被后面的 .btn { position: relative } 覆盖 */
.nav-resume {
  position: absolute !important; right: 28px; top: 50%; transform: translateY(-50%);
}
.nav-burger { display: none; background: none; border: none; font-size: 22px; color: var(--cosmic-ink); margin-left: auto; }

/* ============================================================
 *  按钮
 * ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1.5px solid transparent; transition: all 0.25s var(--bounce);
  position: relative;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover {
  background: var(--primary-deep); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 85, 102, 0.25);
}
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ============================================================
 *  Section 通用
 * ============================================================ */
.page-section {
  scroll-margin-top: 78px;
  position: relative;
}
.page-section > .section { position: relative; z-index: 1; }

/* 章节切换处的牵牛花装饰（由 js/flowers.js 注入） */
.section-flowers {
  display: block;
  width: 100%; height: 110px;
  pointer-events: none; user-select: none;
  opacity: 0.85;
  margin-bottom: -10px;
}

.section { max-width: 1100px; margin: 0 auto; padding: 72px 24px 88px; }
.section-eyebrow {
  font-family: var(--mono); color: var(--primary);
  font-size: 13px; letter-spacing: 5px; font-weight: 500;
  margin-bottom: 10px; text-transform: uppercase;
}
.section-title {
  font-family: var(--serif); font-size: 32px; font-weight: 900;
  color: var(--ink); margin-bottom: 32px; letter-spacing: 0.5px;
  position: relative; display: inline-block;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -10px;
  width: 56px; height: 3px; background: var(--pink);
  border-radius: 2px;
}
.sub-title {
  font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink);
  margin: 48px 0 20px; display: flex; align-items: center; gap: 12px;
}
.sub-title::before {
  content: ""; flex: 0 0 28px; height: 3px; background: var(--primary);
  border-radius: 2px;
}

/* ============================================================
 *  首页 Hero（晨花版 · 欢迎语 + 个人卡 + 牵牛花背景）
 * ============================================================ */
#home { position: relative; overflow: hidden; }
.home-flowers {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.85;
}
/* ---------- 首页花园背景层（v8：柔焦叶 + 藤茎 + 散花） ---------- */
.home-flowers .home-garden {
  opacity: 0.42;
  filter: blur(1.6px) saturate(0.85);
}
.home-flowers .home-garden .mg-leaf {
  animation: mgLeafSway 9s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 10%;
}
.home-flowers .home-garden .mg-leaf:nth-of-type(2n) { animation-delay: -3s; }
.home-flowers .home-garden .mg-leaf:nth-of-type(3n) { animation-delay: -5.5s; }
@keyframes mgLeafSway {
  0%, 100% { rotate: -2.5deg; }
  50%      { rotate: 2.5deg; }
}
.home-flowers .mg-anim,
.section-flowers .mg-anim {
  animation: mgFloat 7s ease-in-out infinite;
}
.home-flowers .mg-anim:nth-of-type(2n),
.section-flowers .mg-anim:nth-of-type(2n) { animation-delay: -2s; }
.section-flowers circle { animation: mgSparkle 3.2s ease-in-out infinite; }
.section-flowers circle:nth-of-type(2n) { animation-delay: -1.4s; }
@keyframes mgFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes mgSparkle {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

.hero {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 140px 24px 72px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 6px; color: var(--primary);
  margin-bottom: 22px;
}
.hero-welcome {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(40px, 5.6vw, 64px); color: var(--ink);
  line-height: 1.18; margin-bottom: 30px; letter-spacing: 2px;
}
.hero-welcome-em {
  position: relative; color: var(--primary); display: inline-block;
}
.hero-welcome-em::after {
  content: ""; position: absolute;
  left: -4px; right: -4px; bottom: 8%;
  height: 32%;
  background: linear-gradient(180deg, transparent 0%, var(--pink-tint) 30%, var(--pink-tint) 100%);
  z-index: -1; border-radius: 4px;
  transform: skewX(-6deg);
}
.hero-sub {
  color: var(--ink-soft); margin-bottom: 12px; font-size: 14.5px;
}
.hero-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0;
}
.hero-tag {
  padding: 4px 12px; border-radius: 999px; font-size: 12.5px;
  background: var(--paper); color: var(--primary);
  border: 1px solid var(--line); font-weight: 500;
}
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* 个人卡（右侧） */
.hero-side { display: flex; justify-content: center; }
.hero-card {
  width: 100%; max-width: 320px;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 0.4s var(--bounce);
}
.hero-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.hero-card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.hero-card-hi {
  font-size: 13px; color: var(--muted); margin-bottom: 6px;
  font-family: var(--mono); letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-card-name {
  font-family: var(--serif); font-weight: 900;
  font-size: 30px; color: var(--ink); letter-spacing: 4px;
  margin-bottom: 4px;
}
.hero-card-en {
  font-family: var(--mono); font-size: 12px;
  color: var(--primary); letter-spacing: 3px;
  margin-bottom: 18px;
}
.hero-card-meta {
  list-style: none; padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}
.hero-card-meta li {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 5px 0;
  color: var(--ink-soft);
}
.hero-card-meta li span:first-child { color: var(--muted); }
.hero-card-meta li span:last-child {
  color: var(--ink); font-weight: 500;
}
.hero-card-quote {
  font-family: var(--serif); font-size: 15px;
  font-style: italic; color: var(--ink-soft); line-height: 1.7;
  text-align: center;
  padding: 8px 0 0;
}

/* ============================================================
 *  数据成就带
 * ============================================================ */
.stats-band {
  max-width: 1100px; margin: 8px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat {
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 22px 18px;
  text-align: center; box-shadow: var(--shadow-xs);
  transition: all 0.3s var(--bounce);
  position: relative; overflow: hidden;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  opacity: 0.4;
}
.stat:nth-child(2)::before { background: linear-gradient(90deg, var(--pink), var(--pink-soft)); }
.stat:nth-child(3)::before { background: linear-gradient(90deg, var(--primary-soft), var(--primary)); }
.stat:nth-child(4)::before { background: linear-gradient(90deg, var(--pink), var(--primary)); }
.stat-num {
  font-family: var(--serif); font-size: 32px; font-weight: 900; color: var(--ink);
  display: block; line-height: 1.1;
}
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: block; }

/* ============================================================
 *  能力速览卡
 * ============================================================ */
.ability-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.ability-card {
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 24px 20px;
  transition: all 0.3s var(--bounce); box-shadow: var(--shadow-xs);
  display: block; position: relative; overflow: hidden;
}
.ability-card::before {
  content: ""; position: absolute; right: -20px; top: -20px;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--bg-soft); opacity: 0; transition: all 0.4s var(--bounce);
}
.ability-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.ability-card:hover::before { opacity: 1; transform: scale(2); }
.ability-icon {
  font-size: 26px; color: var(--primary); display: block; margin-bottom: 12px;
  font-family: var(--serif); font-weight: 700;
}
.ability-card:nth-child(2) .ability-icon { color: var(--pink); }
.ability-card:nth-child(3) .ability-icon { color: var(--primary-soft); }
.ability-card:nth-child(4) .ability-icon { color: var(--pink-soft); }
.ability-card h3 { font-size: 15.5px; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.ability-card p { font-size: 12.5px; color: var(--muted); }

/* ============================================================
 *  卡片通用
 * ============================================================ */
.card {
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-xs);
  transition: all 0.3s var(--bounce);
}

/* ============================================================
 *  关于我（晨花版 · 个人宣言块作为开场）
 * ============================================================ */
.about-lead {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.85;
  margin: 8px 0 30px; max-width: 860px;
}
.about-lead strong { color: var(--primary); font-weight: 700; }

/* 个人宣言块（首页挪到这里作为开场） */
.manifesto-block {
  position: relative;
  margin: 12px 0 32px; padding: 36px 38px 32px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-tint) 100%);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.manifesto-block::before {
  content: ""; position: absolute;
  right: -20px; top: -20px; width: 220px; height: 220px;
  background: radial-gradient(circle, var(--pink-tint) 0%, transparent 70%);
  pointer-events: none;
}
.manifesto-text {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 36px); color: var(--ink);
  line-height: 1.4; letter-spacing: 1px;
  position: relative; z-index: 1;
}
.manifesto-text em {
  font-style: normal; font-family: var(--mono); font-weight: 500;
  color: var(--primary); background: var(--bg-card);
  padding: 0 12px; border-radius: 6px; display: inline-block;
  font-size: 0.85em; letter-spacing: 1px;
  box-shadow: inset 0 -2px 0 var(--primary), 0 2px 8px rgba(92, 92, 191, 0.2);
  margin: 0 3px;
}
.manifesto-zh {
  display: inline-block;
  color: var(--primary-deep);
  position: relative;
}
.manifesto-zh::after {
  content: ""; position: absolute;
  left: -2px; right: -2px; bottom: 6%;
  height: 28%;
  background: linear-gradient(90deg, transparent, var(--pink-tint), transparent);
  z-index: -1; border-radius: 4px;
}
.manifesto-mark {
  position: absolute; right: 28px; bottom: 24px;
  font-family: var(--serif); font-size: 18px;
  color: var(--primary); opacity: 0.45;
  letter-spacing: 4px;
  writing-mode: vertical-rl;
}

.radar-duo {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  margin-bottom: 34px;
}
.radar-card {
  background: linear-gradient(160deg, var(--bg-card), var(--paper));
  border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 26px 20px;
  display: flex; flex-direction: column; align-items: center;
  transition: all 0.35s var(--bounce);
}
.radar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.radar-card svg { width: 100%; height: auto; max-width: 380px; }
.radar-chip {
  align-self: flex-start;
  display: inline-block; padding: 5px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; color: #fff;
  margin-bottom: 8px;
}
.radar-chip.c1 { background: var(--primary); }
.radar-chip.c2 { background: var(--pink); }
.radar-caption {
  margin-top: 8px; font-size: 12.5px; color: var(--muted);
  line-height: 1.7; text-align: center; opacity: 0.85;
}

/* 四宫格 */
.quad-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.quad-item {
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 26px;
  position: relative; transition: all 0.35s var(--bounce);
  overflow: hidden;
}
.quad-item::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%; opacity: 0.08;
  transition: all 0.4s var(--bounce);
}
.quad-item:nth-child(1)::before { background: var(--pink); }
.quad-item:nth-child(2)::before { background: var(--primary); }
.quad-item:nth-child(3)::before { background: var(--pink-soft); }
.quad-item:nth-child(4)::before { background: var(--primary-soft); }
.quad-item:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.quad-item:hover::before { transform: scale(2.5); opacity: 0.12; }

.quad-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 36px; border-radius: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 16px;
  color: #fff; margin-bottom: 16px; letter-spacing: 1px;
}
.quad-no.q1 { background: var(--primary); }
.quad-no.q2 { background: var(--pink); }
.quad-no.q3 { background: var(--primary-soft); }
.quad-no.q4 { background: var(--pink-soft); color: var(--ink); }

.quad-item h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  color: var(--ink); margin-bottom: 4px; letter-spacing: 0.5px;
}
.quad-tag {
  font-size: 13px; color: var(--primary); font-weight: 500;
  font-family: var(--serif); font-style: italic; margin-bottom: 14px;
}
.quad-desc {
  font-size: 13.5px; color: var(--muted); line-height: 1.75;
  padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 12px;
}
.quad-item ul { list-style: none; }
.quad-item ul li {
  font-size: 13px; color: var(--ink-soft); padding: 6px 0 6px 18px;
  position: relative; line-height: 1.6;
}
.quad-item .dot {
  position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.quad-item:nth-child(2) .dot { background: var(--pink); }
.quad-item:nth-child(3) .dot { background: var(--primary-soft); }
.quad-item:nth-child(4) .dot { background: var(--pink-soft); }
.quad-item ul li strong { color: var(--ink); }

/* 标签墙 */
.tag-wall {
  margin-top: 36px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow-xs);
}
.tag-wall-title { font-family: var(--serif); font-weight: 700; color: var(--ink); margin-right: 6px; }
.tag-wall-tip { margin-left: auto; font-size: 12px; color: var(--muted); }

.tag {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(44, 85, 102, 0.06); color: var(--ink);
  font-size: 13px; border: none; transition: all 0.2s var(--bounce);
}
.tag:hover, .tag.active {
  background: var(--primary); color: #fff;
  transform: translateY(-2px);
}
.tag-lg { padding: 8px 18px; font-size: 13.5px; }

/* ============================================================
 *  作品集
 * ============================================================ */
.works-cats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-bottom: 8px;
}
.work-cat {
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 24px 22px; text-align: left;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.32s var(--bounce); box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--sans);
}
.work-cat::before {
  content: ""; position: absolute; top: -34px; right: -34px;
  width: 100px; height: 100px; border-radius: 50%; opacity: 0.08;
  transition: all 0.4s var(--bounce);
}
.work-cat:nth-child(1)::before { background: var(--pink); }
.work-cat:nth-child(2)::before { background: var(--primary); }
.work-cat:nth-child(3)::before { background: var(--pink-soft); }
.work-cat:nth-child(4)::before { background: var(--primary-soft); }
.work-cat:nth-child(5)::before { background: var(--pink); }
.work-cat:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.work-cat:hover::before { transform: scale(2.1); opacity: 0.15; }
.work-cat-icon {
  font-size: 22px; width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; color: #fff; font-family: var(--mono); font-weight: 700;
}
.work-cat:nth-child(1) .work-cat-icon { background: var(--primary); }
.work-cat:nth-child(2) .work-cat-icon { background: var(--pink); }
.work-cat:nth-child(3) .work-cat-icon { background: var(--primary-soft); }
.work-cat:nth-child(4) .work-cat-icon { background: var(--pink-soft); color: var(--ink); }
.work-cat:nth-child(5) .work-cat-icon { background: var(--primary); }
.work-cat h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--ink);
  display: flex; align-items: baseline; gap: 10px;
}
.work-cat-count {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--primary); background: var(--primary-tint);
  padding: 1px 10px; border-radius: 999px;
}
.work-cat p { font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.work-cat .work-cat-enter {
  margin-top: 10px; font-size: 13px; color: var(--primary); font-weight: 500;
  transition: transform 0.25s var(--bounce);
}
.work-cat:hover .work-cat-enter { transform: translateX(6px); }

.works-listview { animation: fadeIn 0.35s ease; }
.works-back { margin-bottom: 18px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.works-count {
  font-family: var(--sans); font-size: 14px; font-weight: 400;
  color: var(--muted); margin-left: 10px;
}
.works-toolbar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.works-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.works-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort-btn { border: none; background: none; font-size: 13px; color: var(--muted); padding: 5px 10px; border-radius: 8px; transition: all 0.2s; }
.sort-btn.active { background: var(--primary-tint); color: var(--primary); font-weight: 500; }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card {
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: all 0.3s var(--bounce); box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
}
.work-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.work-cover { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); position: relative; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.work-card:hover .work-cover img { transform: scale(1.06); }
.work-type {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px;
  color: #fff; background: var(--primary); letter-spacing: 1px;
}
.work-type.t-ai { background: var(--primary); }
.work-type.t-copy { background: var(--pink); }
.work-type.t-video { background: var(--primary-soft); }
.work-type.t-event { background: var(--pink-soft); color: var(--ink); }
.work-type.t-design { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.work-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.work-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.work-metrics { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.work-metric {
  font-size: 11.5px; color: var(--primary); background: var(--primary-tint);
  padding: 2px 8px; border-radius: 6px; font-weight: 500;
}
.work-tags { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.work-tag {
  font-size: 11.5px; color: var(--muted);
  background: rgba(31, 39, 51, 0.05); padding: 2px 8px; border-radius: 6px;
}
.work-detail-btn {
  margin-top: 12px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 500; color: var(--primary);
  background: var(--primary-tint); border: none;
  padding: 5px 13px; border-radius: 999px;
  transition: all 0.25s var(--bounce);
}
.work-card:hover .work-detail-btn {
  background: var(--primary); color: #fff;
  transform: translateX(3px);
}
.works-empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ============================================================
 *  作品详情弹层
 * ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(44, 85, 102, 0.45);
  backdrop-filter: blur(6px);
}
.modal-body {
  position: relative; max-width: 880px; margin: 4vh auto; max-height: 92vh;
  display: flex; flex-direction: column; background: var(--bg);
  animation: modalIn 0.35s var(--bounce);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; font-size: 20px;
  transition: all 0.25s var(--bounce);
}
.modal-close:hover { background: var(--pink); transform: rotate(90deg) scale(1.1); }
.modal-scroll { overflow-y: auto; padding: 32px 36px 36px; }
.modal-type {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; color: #fff; background: var(--primary);
  margin-bottom: 12px; letter-spacing: 1px;
}
.modal-title {
  font-family: var(--serif); font-size: 24px; font-weight: 900;
  color: var(--ink); margin-bottom: 18px; padding-right: 40px;
}
.modal-gallery { margin-top: 8px; }
.modal-gallery-title {
  font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink);
  margin: 22px 0 14px; display: flex; align-items: center; gap: 10px;
}
.modal-gallery-title::before {
  content: ""; flex: 0 0 24px; height: 3px; background: var(--primary); border-radius: 2px;
}
.g-item {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 14px 18px 14px 14px;
  margin-bottom: 12px; transition: all 0.28s var(--bounce);
}
.g-item:hover { border-color: var(--primary); transform: translateX(4px); }
.g-item .g-media {
  flex: 0 0 300px; max-width: 300px;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-soft);
}
.g-item .g-media img { width: 100%; display: block; }
.g-item .g-media video { width: 100%; display: block; background: #000; }
/* v9+ 视频项：封面预览按钮，点击弹 lightbox（不内嵌 video） */
.g-video-thumb {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: #0b0e2a; cursor: pointer;
}
.g-video-thumb img { width: 100%; display: block; opacity: 0.92; transition: opacity 0.25s ease; }
.g-video-thumb:hover img { opacity: 1; }
.g-video-thumb .rb-work-play { pointer-events: none; }
.g-video-thumb:hover .rb-work-play { transform: translate(-50%, -50%) scale(1.1); }
.g-item.is-video-item:hover { border-color: #9A8CF2; }
.g-item .g-cap { flex: 1; font-size: 13px; color: var(--ink-soft); line-height: 1.75; }
.g-item .g-cap::before {
  content: "▣"; color: var(--primary); margin-right: 7px; font-size: 12px;
}
.modal a.modal-link {
  display: inline-block; margin-top: 6px; padding: 10px 18px; border-radius: 10px;
  background: var(--primary-tint); color: var(--primary); font-weight: 500; font-size: 14px;
  transition: all 0.25s var(--bounce);
}
.modal a.modal-link:hover { background: var(--primary); color: #fff; transform: translateX(4px); }
.psr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.psr-item { padding: 16px; border-radius: 10px; background: var(--bg-card); border: 1.5px solid var(--line); }
.psr-item h4 { font-size: 13px; margin-bottom: 8px; letter-spacing: 1px; }
.psr-item.p h4 { color: var(--pink-deep); }
.psr-item.s h4 { color: var(--primary); }
.psr-item.r { background: var(--primary-tint); border-color: var(--primary); }
.psr-item.r h4 { color: var(--primary); }
.psr-item p { font-size: 13px; color: var(--ink-soft); }
.modal-meta {
  display: flex; gap: 24px; flex-wrap: wrap; padding: 14px 0;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.modal-meta strong { color: var(--ink); }
.modal-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

/* ============================================================
 *  经历时间线
 * ============================================================ */
/* ============================================================
 *  v9+ 经历时间线——板块随滚动阶梯式弹出
 *  - tl-item 的小圆点默认 scale(0) + opacity:0
 *  - reveal.shown 时小圆点 scale(1) opacity:1（弹入）
 *  - tl-card.reveal 已有 fade + translateY 过渡；本节追加阶梯 transition-delay
 * ============================================================ */
.journey-filters { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.timeline { position: relative; padding-left: 38px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2.5px; background: linear-gradient(var(--primary), var(--pink));
  border-radius: 2px;
}
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -38px; top: 24px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--primary);
  z-index: 2;
  transform: scale(0); opacity: 0;
  transition: transform 0.45s var(--bounce) calc(0.08s * var(--ti, 0)),
              opacity 0.4s ease calc(0.08s * var(--ti, 0));
}
/* tl-card.reveal 的 fade+translateY 由 .reveal.shown 触发；本处用 --ti 控制阶梯延迟 */
.tl-item .tl-card.reveal { transition-delay: calc(0.12s * var(--ti, 0)); }
/* 当 item 上的 tl-card 触发 .shown，IO 在 JS 同步给父 .tl-item 加 .is-revealed，激活小圆点弹入 */
.tl-item.is-revealed::before {
  transform: scale(1); opacity: 1;
}
.tl-card {
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 22px 26px; box-shadow: var(--shadow-xs);
  transition: all 0.3s var(--bounce);
}
.tl-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.tl-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tl-date { font-family: var(--mono); font-weight: 700; color: var(--primary); font-size: 14px; }
.tl-org { font-size: 16px; font-weight: 700; color: var(--ink); }
.tl-role { font-size: 13px; color: var(--muted); }
.tl-tag {
  font-size: 11px; padding: 2px 10px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary);
}
.tl-card ul { list-style: none; margin-bottom: 6px; }
.tl-card li {
  font-size: 13.5px; color: var(--ink-soft); padding: 4px 0 4px 18px;
  position: relative; line-height: 1.7;
}
.tl-card li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--pink);
}
.tl-link {
  font-size: 13px; color: var(--primary); font-weight: 500;
  display: inline-block; margin-top: 4px;
}
.tl-link:hover { color: var(--pink); text-decoration: underline; }

.honor-band { display: flex; gap: 12px; flex-wrap: wrap; }
.honor {
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 10px 18px; font-size: 13px;
  color: var(--ink); box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--bounce);
}
.honor:hover { transform: translateY(-2px); border-color: var(--primary); }

/* ============================================================
 *  职业规划
 * ============================================================ */
.plan-intro {
  font-size: 14.5px; color: var(--ink-soft); background: var(--bg-card);
  border: 1.5px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--r); padding: 18px 22px; margin-bottom: 32px; line-height: 1.85;
}
.plan-intro strong { color: var(--primary); }
.plan-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-stage {
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 24px; position: relative;
  overflow: hidden; transition: all 0.35s var(--bounce);
}
.plan-stage::before {
  content: ""; position: absolute; bottom: -50px; right: -50px;
  width: 140px; height: 140px; border-radius: 50%; opacity: 0.08;
}
.plan-stage:nth-child(1)::before { background: var(--primary); }
.plan-stage:nth-child(2)::before { background: var(--pink); }
.plan-stage:nth-child(3)::before { background: var(--primary-soft); }
.plan-stage:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.plan-stage:hover::before { transform: scale(2); opacity: 0.14; }
.plan-stage-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--serif); font-weight: 900; font-size: 20px;
  margin-bottom: 14px; color: #fff;
}
.plan-stage:nth-child(1) .plan-stage-no { background: var(--primary); }
.plan-stage:nth-child(2) .plan-stage-no { background: var(--pink); }
.plan-stage:nth-child(3) .plan-stage-no { background: var(--primary-soft); }
.plan-stage h3 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.plan-tagline { font-size: 13px; color: var(--primary); margin-bottom: 12px; font-style: italic; }
.plan-stage ul { list-style: none; }
.plan-stage ul li {
  font-size: 13px; color: var(--ink-soft); padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.plan-stage ul li:last-child { border: none; }
.plan-stage ul li strong { color: var(--ink); margin-right: 4px; }
.plan-anchor {
  margin-top: 36px; padding: 22px 26px; text-align: center;
  background: var(--bg-card); color: var(--ink);
  border: 1.5px solid var(--primary); border-radius: var(--r-lg);
  font-size: 14.5px; font-family: var(--serif); font-weight: 500; letter-spacing: 0.5px;
  position: relative;
}
.plan-anchor::before {
  content: ""; position: absolute; top: -3px; left: 16px; right: 16px;
  height: 3px; background: linear-gradient(90deg, var(--primary), var(--pink));
  border-radius: 2px;
}

/* ============================================================
 *  联系
 * ============================================================ */
.contact-stack { display: flex; flex-direction: column; gap: 24px; }
.contact-hero {
  text-align: center; padding: 48px 36px;
  background: var(--bg-card); border: 1.5px solid var(--primary);
  border-radius: var(--r-lg); color: var(--ink);
  position: relative; overflow: hidden;
}
.contact-hero::before, .contact-hero::after {
  content: ""; position: absolute; border-radius: 50%; opacity: 0.15;
}
.contact-hero::before { top: -40px; left: -40px; width: 140px; height: 140px; background: var(--pink); }
.contact-hero::after { bottom: -50px; right: -30px; width: 120px; height: 120px; background: var(--primary-soft); }
.contact-serif {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--ink); line-height: 1.8; margin: 0; position: relative;
}
.contact-serif::after {
  content: ""; display: block; width: 60px; height: 3px; background: var(--primary);
  margin: 16px auto 0; border-radius: 2px;
}

.contact-info {
  display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: stretch;
}
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  transition: all 0.3s var(--bounce); background: var(--bg-card);
  border: 1.5px solid var(--line); border-radius: var(--r);
}
.contact-item:hover { transform: translateY(-2px); border-color: var(--primary); }
.contact-label { font-size: 13px; color: var(--muted); width: 60px; font-weight: 500; }
.contact-value { font-size: 16px; font-weight: 500; color: var(--ink); flex: 1; font-family: var(--mono); }

.contact-card {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 24px;
  background: var(--bg-card); border: 1.5px solid var(--line); border-radius: var(--r);
  transition: all 0.3s var(--bounce);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.contact-card img { width: 160px; border-radius: 12px; border: 1px solid var(--line); }
.contact-card span { font-size: 13px; color: var(--muted); }

/* ============================================================
 *  页脚
 * ============================================================ */
.footer {
  border-top: 1px solid var(--line); text-align: center;
  padding: 36px 24px 44px; color: var(--muted); font-size: 13px;
  background: var(--bg-card);
}
.footer-meta {
  margin-top: 6px; font-size: 12px; color: var(--primary);
  font-family: var(--serif); font-style: italic;
}

/* ============================================================
 *  Toast
 * ============================================================ */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--primary); color: #fff; padding: 11px 24px; border-radius: 999px;
  font-size: 14px; z-index: 300; opacity: 0;
  transition: all 0.3s var(--bounce); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ============================================================
 *  回到顶部
 * ============================================================ */
.back-top {
  position: fixed; right: 26px; bottom: 32px; z-index: 150;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--primary); background: var(--bg-card);
  color: var(--primary); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(0.8);
  transition: all 0.35s var(--bounce);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover {
  background: var(--primary); border-color: var(--primary);
  color: #fff; transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.back-top::after {
  content: ""; position: absolute; top: -5px; right: -5px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--pink);
  border: 2px solid var(--bg);
}

/* ============================================================
 *  滚动揭示
 * ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s var(--bounce); }
.reveal.shown { opacity: 1; transform: none; }

/* ============================================================
 *  响应式
 * ============================================================ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 40px; }
  .hero-side { max-width: 320px; margin: 0 auto; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .ability-cards { grid-template-columns: repeat(2, 1fr); }
  .radar-duo { grid-template-columns: 1fr; }
  .quad-grid { grid-template-columns: 1fr; }
  .plan-stages { grid-template-columns: 1fr; }
  .works-cats { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info { grid-template-columns: 1fr; }
  .g-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .g-item .g-media { flex: none; width: 100%; max-width: 100%; }
}
@media (max-width: 640px) {
  /* v5：移动端 nav-tabs 改为下拉 */
  .nav-logo { display: none; }
  .nav-tabs {
    position: absolute;
    left: 50%; top: 60px; transform: translateX(-50%);
    flex-direction: column; gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--cosmic-line);
    border-radius: 20px;
    padding: 12px;
    width: calc(100vw - 40px);
    display: none;
  }
  .nav-tabs.open { display: flex; }
  .nav-burger { display: block; }
  .nav-resume { display: none; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ability-cards { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .works-sort { margin-left: 0; }
  .modal-body { margin: 0 12px; }
  .modal-scroll { padding: 24px 20px; }
  .section { padding: 48px 18px 64px; }
  .hero-cta .btn { flex: 1; }
  .psr { grid-template-columns: 1fr; }
  .works-cats { grid-template-columns: 1fr; }
  .back-top { right: 16px; bottom: 20px; width: 42px; height: 42px; font-size: 17px; }
  .tv-frame { padding: 18px 18px 12px; border-radius: 18px; }
  .tv-screen { border-radius: 12% / 16%; }

  /* v5：移动端 variant 轨道卡改为 2 列网格（圆周定位在 375 宽上溢出） */
  .ability-circular { height: auto; padding: 16px 4px 32px; }
  .variant-stage { padding: 32px 14px 40px; border-radius: 22px; }
  .variant-center { position: relative; left: auto; top: auto; transform: none; margin: 0 auto 18px; }
  #variantOrbit {
    position: relative !important; display: grid !important;
    grid-template-columns: 1fr 1fr; gap: 12px;
    width: 100%; height: auto !important; min-height: 0;
  }
  .orbit-card {
    position: relative !important; top: auto !important; left: auto !important;
    width: 100% !important; height: auto !important;
    transform: none !important; animation: none !important;
    padding: 14px 12px;
  }
  .orbit-card .oc-icon { font-size: 22px; margin-bottom: 4px; }
  .orbit-card .oc-title { font-size: 13.5px; }
  .orbit-card .oc-short { font-size: 11.5px; }
  .orbit-card .oc-desc { display: block !important; font-size: 11px; margin-top: 6px; padding-top: 6px; }

  /* v5：移动端 4 关键能力 横向滚动改为垂直堆叠（触屏无 hover 触发区） */
  .quad-hscroll-stage { height: auto; }
  .quad-hscroll-sticky { position: static; height: auto; padding: 0; }
  .quad-hscroll-hint { display: none; }
  .quad-hscroll-track { flex-direction: column; padding: 0; gap: 16px; transform: none !important; }
  .quad-card { flex: none; width: 100%; max-width: 100%; height: auto; min-height: 0; padding: 22px 18px; }
  .quad-card .qc-icon { font-size: 38px; margin-bottom: 10px; }
  .quad-card .qc-title { font-size: 18px; }
  .quad-detail { width: calc(100% - 16px); margin: 12px auto; padding: 18px 16px; }

  /* v5：移动端作品集文件夹：直接显示展开态 + "点击查看"提示 */
  .works-folder { cursor: default; }
  .works-folder::after {
    content: "点击下方卡片查看详情";
    display: block; text-align: center; margin-top: 18px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
    color: var(--cosmic-ink-soft);
  }
  .works-folder .folder-papers .fp-card { transform: none !important; }
  .works-folder .folder-papers {
    display: grid; grid-template-columns: 1fr; gap: 12px;
    position: relative; top: auto; left: auto; width: 100%;
    margin-top: 20px;
  }

  /* v5：移动端 30秒认识我 中央卡 / 作品集说明 字号缩放 */
  .variant-center { font-size: 13px; }
  .works-cats { grid-template-columns: 1fr; }
  .plan-stages { grid-template-columns: 1fr; }
  .timeline { padding-left: 24px; }
  .tl-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tl-item .tl-date { min-width: 0; }
}

/* ============================================================
 *  v4 新增：蓝紫渐变首页（cosmic） + 光标追随作品卡
 *  参考 codepen.io/thingbynemanja/pen/ogjaaNE 的光标 trail 思路
 *  色板从牵牛花参考图延伸：深夜靛→矢车菊蓝→浅紫雾
 * ============================================================ */
:root {
  /* 蓝紫渐变（页面顶部蓝紫渐变区专用） */
  --cosmic-1: #0A0E2A;       /* 顶部深夜蓝 */
  --cosmic-2: #181E55;       /* 蓝紫过渡 */
  --cosmic-3: #2E3BAA;       /* 矢车菊蓝 */
  --cosmic-4: #5470FF;       /* 亮蓝高光 */
  --cosmic-glow: #A8B0FF;    /* 雾蓝紫光晕 */
  --cosmic-mist: #D4D4F0;    /* 浅紫雾 */
  --cosmic-flower: #E8B5C5;  /* 牵牛花粉 */
  --cosmic-flower-2: #C7D9FF;/* 牵牛花浅蓝 */
  --cosmic-text: #F2F3FF;    /* 主文字 */
  --cosmic-muted: #8E94D9;   /* 弱化文字 */

  /* v5：非 home 区背景：浅蓝紫雾（保持与首页调和，但浅） */
  --cosmic-paper: #F4F2FF;
  --cosmic-paper-2: #ECE9FF;
  --cosmic-ink: #1A1F4A;
  --cosmic-ink-soft: #4D5299;
  --cosmic-line: rgba(84, 112, 255, 0.18);
  --cosmic-line-soft: rgba(84, 112, 255, 0.10);
  --cosmic-shadow: 0 18px 50px rgba(46, 59, 170, 0.10);
  --cosmic-shadow-lg: 0 30px 80px rgba(46, 59, 170, 0.18);

  /* 蓝紫主色（按钮 / 链接 / 焦点） */
  --primary: #5470FF;
  --primary-deep: #3A52E0;
  --primary-tint: rgba(84, 112, 255, 0.14);
  --pink: #E8B5C5;
  --pink-tint: rgba(232, 181, 197, 0.16);

  /* 现有色板（米色保留为兼容 fallback，避免破坏细节） */
  --bg: var(--cosmic-paper);
  --bg-card: #FFFFFF;
  --ink: var(--cosmic-ink);
  --ink-soft: var(--cosmic-ink-soft);
  --muted: #767AB3;
  --line: var(--cosmic-line);
  --line-soft: var(--cosmic-line-soft);
  --paper: var(--cosmic-paper-2);
  --shadow: var(--cosmic-shadow);
  --shadow-lg: var(--cosmic-shadow-lg);
  --bounce: cubic-bezier(.22,.61,.36,1);
  --serif: "Noto Serif SC", "DM Serif Display", serif;
  --sans: "Noto Sans SC", -apple-system, "PingFang SC", sans-serif;
  --mono: "DM Mono", "JetBrains Mono", ui-monospace, monospace;
}

/* 首页背景：蓝紫渐变 + 星点 */
#home.home-cosmic {
  position: relative !important;
  min-height: 100vh !important;
  background: linear-gradient(180deg, #0A0E2A 0%, #181E55 40%, #2E3BAA 100%) !important;
  color: #F2F3FF !important;
  overflow: hidden !important;
  display: block !important;
  visibility: visible !important;
  z-index: 1;
}

/* 星点层（纯 CSS，多层 radial-gradient 模拟星尘） */
#home.home-cosmic::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 8%,  #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 22%, var(--cosmic-mist), transparent),
    radial-gradient(1px 1px at 73% 12%, #fff, transparent),
    radial-gradient(1px 1px at 88% 28%, var(--cosmic-glow), transparent),
    radial-gradient(1.5px 1.5px at 18% 42%, #fff, transparent),
    radial-gradient(1px 1px at 42% 55%, var(--cosmic-mist), transparent),
    radial-gradient(1px 1px at 62% 48%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 82% 65%, var(--cosmic-flower), transparent),
    radial-gradient(1px 1px at 8% 75%, #fff, transparent),
    radial-gradient(1px 1px at 38% 82%, var(--cosmic-glow), transparent),
    radial-gradient(1.5px 1.5px at 68% 88%, #fff, transparent),
    radial-gradient(1px 1px at 92% 78%, var(--cosmic-mist), transparent);
  background-size: 100% 100%;
  opacity: 0.85;
  pointer-events: none;
  animation: starTwinkle 6s ease-in-out infinite alternate;
}
@keyframes starTwinkle {
  0% { opacity: 0.55; }
  100% { opacity: 0.95; }
}

/* 牵牛花装饰层（v3 flowers.js 注入到 .home-flowers，但 cosmic 下换色） */
#home.home-cosmic .home-flowers { opacity: 0.5; }

/* 蓝紫下的花朵颜色覆盖（用 CSS filter 让原本暖调变冷调） */
#home.home-cosmic .home-flowers .mg-petal path {
  filter: hue-rotate(180deg) saturate(1.1) brightness(1.15);
}

/* Hero 文字居中 */
.cosmic-hero {
  position: relative;
  z-index: 50;
  text-align: center;
  padding: 22vh 24px 4vh;
  max-width: 1100px;
  margin: 0 auto;
  isolation: isolate;
}
.cosmic-hero > * { position: relative; z-index: 2; }
.cosmic-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 8px;
  color: var(--cosmic-glow);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.cosmic-welcome {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.06;
  letter-spacing: 2px;
  color: var(--cosmic-text);
  text-shadow:
    0 0 30px rgba(168, 176, 255, 0.4),
    0 2px 0 rgba(0, 0, 0, 0.2);
}
.cosmic-welcome .em {
  position: relative;
  display: inline-block;
  font-style: italic;
  background: linear-gradient(120deg, var(--cosmic-flower) 0%, var(--cosmic-flower-2) 50%, var(--cosmic-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(232, 181, 197, 0.35));
}
.cosmic-sub {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--cosmic-muted);
}
.cosmic-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--cosmic-muted);
  opacity: 0.85;
  animation: scrollPulse 2.4s ease-in-out infinite;
}
.cosmic-scroll-hint::after {
  content: "↓";
  display: block;
  margin-top: 6px;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--cosmic-glow);
}
@keyframes scrollPulse {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50%      { transform: translate(-50%, 4px); opacity: 0.95; }
}

/* ============================================================
 *  v5：联系 —— 三列（手机 / 邮箱 / 微信）
 * ============================================================ */
.contact-section .section {
  padding-top: 96px;
}
.contact-hint {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--cosmic-ink-soft);
  text-align: center;
  margin-top: -16px;
  margin-bottom: 36px;
}
.contact-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.contact-col {
  position: relative;
  padding: 32px 24px 26px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(155deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(168, 176, 255, 0.10) 100%);
  border: 1px solid var(--cosmic-line);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all 0.35s var(--bounce);
}
.contact-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(46, 59, 170, 0.18);
  border-color: var(--cosmic-3);
}
.contact-col .cc-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--cosmic-paper-2) 0%, var(--cosmic-3) 100%);
  color: var(--cosmic-2);
  box-shadow: 0 8px 20px rgba(84, 112, 255, 0.20);
  margin-bottom: 6px;
}
.contact-col .cc-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--cosmic-3);
  text-transform: uppercase;
}
.contact-col .cc-value {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--cosmic-ink);
  letter-spacing: 1px;
  margin-bottom: 12px;
  word-break: break-all;
}
.contact-col .cc-value.cc-value-img {
  background: var(--cosmic-paper-2);
  border-radius: 14px;
  padding: 8px;
  border: 1px solid var(--cosmic-line);
  margin-bottom: 6px;
}
.contact-col .cc-value.cc-value-img img {
  width: 144px;
  height: 144px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.contact-col .cc-tip {
  font-size: 11px;
  color: var(--cosmic-ink-soft);
  letter-spacing: 1px;
}
.contact-col .copy-btn {
  margin-top: auto;
}
.contact-bottom {
  text-align: center;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--cosmic-ink-soft);
  letter-spacing: 1.5px;
}
.contact-link {
  color: var(--cosmic-3);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--cosmic-flower);
  padding-bottom: 1px;
}
.contact-link:hover {
  color: var(--cosmic-flower);
}
@media (max-width: 768px) {
  .contact-trio { grid-template-columns: 1fr; }
}

/* ============================================================
 *  v5：作品集 —— reactbits 文件夹
 * ============================================================ */
.works-folder-section .folder-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: 40px 0 60px;
}

.folder {
  --folder-back: #4A77FF;
  --folder-front: #6E97FF;
  --folder-tab: #5C84F2;
  --folder-line: #91B3FE;
  position: relative;
  width: 220px;
  height: 160px;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.4s var(--bounce);
  filter: drop-shadow(0 30px 40px rgba(46, 59, 170, 0.25));
}
.folder:hover { transform: translateY(-6px); }
.folder-back {
  position: absolute; inset: 0;
  background: var(--folder-back);
  border-radius: 0 12px 12px 12px;
}
.folder-tab {
  position: absolute; top: 0; left: 0;
  width: 80px; height: 22px;
  background: var(--folder-tab);
  border-radius: 12px 12px 0 0;
}
.folder-front {
  position: absolute; left: 8px; right: 8px; bottom: 0;
  height: 138px;
  background: var(--folder-front);
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 2px 0 var(--folder-line), inset 0 -3px 0 rgba(0, 0, 0, 0.10);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 8px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
.folder-front::before {
  content: "";
  position: absolute; left: 18px; right: 18px; top: 50%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  pointer-events: none;
}
.folder-stage.is-open .folder-front { transform: rotateX(-50deg); transform-origin: top; }
.folder-stage.is-open .folder-front::after {
  /* 折叠翻开效果 */
  content: "";
  position: absolute; left: 0; right: 0; top: 100%;
  height: 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), transparent);
}

/* 纸件（作品卡）从文件夹里散出 */
.folder-papers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.fp-card {
  position: absolute;
  left: 50%; top: 50%;
  width: 180px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--cosmic-line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(46, 59, 170, 0.18);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(.5,0,.15,1);
  cursor: pointer;
  pointer-events: auto;
}
.fp-card .fp-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cosmic-3), var(--cosmic-flower));
  margin-bottom: 8px;
  overflow: hidden;
}
.fp-card .fp-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.fp-card .fp-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--cosmic-ink);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-card .fp-metric {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cosmic-3);
}
.fp-card .fp-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.folder-stage.is-open .fp-card {
  opacity: 1;
}
.fp-card:hover {
  transform: scale(1.05) translate(0, -2px) !important;
  box-shadow: 0 22px 50px rgba(46, 59, 170, 0.30);
  z-index: 6;
}
.fp-card[data-idx="0"] { transform: translate(calc(-50% - 200px), -50%) rotate(-9deg); transition-delay: 0.05s; }
.fp-card[data-idx="1"] { transform: translate(calc(-50% - 100px), calc(-50% - 80px)) rotate(-4deg); transition-delay: 0.10s; }
.fp-card[data-idx="2"] { transform: translate(-50%, -50%) rotate(0deg); transition-delay: 0.15s; }
.fp-card[data-idx="3"] { transform: translate(calc(-50% + 100px), calc(-50% - 80px)) rotate(4deg); transition-delay: 0.20s; }
.fp-card[data-idx="4"] { transform: translate(calc(-50% + 200px), -50%) rotate(9deg); transition-delay: 0.25s; }
.fp-card[data-idx="5"] { transform: translate(calc(-50% + 300px), calc(-50% + 20px)) rotate(15deg); transition-delay: 0.30s; }
.fp-card[data-idx="6"] { transform: translate(calc(-50% + 350px), calc(-50% + 100px)) rotate(20deg); transition-delay: 0.35s; }
.fp-card[data-idx="7"] { transform: translate(calc(-50% - 300px), calc(-50% + 100px)) rotate(-15deg); transition-delay: 0.30s; }
.fp-card[data-idx="8"] { transform: translate(calc(-50% - 350px), calc(-50% + 20px)) rotate(-20deg); transition-delay: 0.35s; }
.folder-stage.is-open .fp-card[data-idx="0"] { transform: translate(calc(-50% - 200px), -50%) rotate(-9deg); }
.folder-stage.is-open .fp-card[data-idx="1"] { transform: translate(calc(-50% - 100px), calc(-50% - 80px)) rotate(-4deg); }
.folder-stage.is-open .fp-card[data-idx="2"] { transform: translate(-50%, -50%) rotate(0deg); }
.folder-stage.is-open .fp-card[data-idx="3"] { transform: translate(calc(-50% + 100px), calc(-50% - 80px)) rotate(4deg); }
.folder-stage.is-open .fp-card[data-idx="4"] { transform: translate(calc(-50% + 200px), -50%) rotate(9deg); }
.folder-stage.is-open .fp-card[data-idx="5"] { transform: translate(calc(-50% + 320px), calc(-50% + 30px)) rotate(13deg); }
.folder-stage.is-open .fp-card[data-idx="6"] { transform: translate(calc(-50% + 420px), calc(-50% + 130px)) rotate(18deg); }
.folder-stage.is-open .fp-card[data-idx="7"] { transform: translate(calc(-50% - 320px), calc(-50% + 30px)) rotate(-13deg); }
.folder-stage.is-open .fp-card[data-idx="8"] { transform: translate(calc(-50% - 420px), calc(-50% + 130px)) rotate(-18deg); }

.folder-stage .fp-card.fp-pop {
  animation: popHighlight 0.7s var(--bounce);
}
/* 进入视口时文件夹跳动提示 */
.folder-stage.in-view .folder {
  animation: folderBounce 1.6s var(--bounce) 0.4s 2;
}
@keyframes folderBounce {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-14px) rotate(-1.2deg); }
  70%      { transform: translateY(-4px) rotate(0.8deg); }
}
/* 详情浮层底部「查看完整图文」按钮 */
.fp-detail .fpd-more {
  display: inline-block;
  margin-top: 14px;
}
/* 响应式：小屏外圈纸件收拢间距 */
@media (max-width: 768px) {
  .folder-stage.is-open .fp-card[data-idx="0"] { transform: translate(calc(-50% - 110px), -50%) rotate(-9deg); }
  .folder-stage.is-open .fp-card[data-idx="1"] { transform: translate(calc(-50% - 55px), calc(-50% - 110px)) rotate(-4deg); }
  .folder-stage.is-open .fp-card[data-idx="2"] { transform: translate(-50%, -50%) rotate(0deg); }
  .folder-stage.is-open .fp-card[data-idx="3"] { transform: translate(calc(-50% + 55px), calc(-50% - 110px)) rotate(4deg); }
  .folder-stage.is-open .fp-card[data-idx="4"] { transform: translate(calc(-50% + 110px), -50%) rotate(9deg); }
  .folder-stage.is-open .fp-card[data-idx="5"] { transform: translate(calc(-50% + 150px), calc(-50% + 130px)) rotate(13deg); }
  .folder-stage.is-open .fp-card[data-idx="6"] { transform: translate(calc(-50% + 60px), calc(-50% + 150px)) rotate(18deg); }
  .folder-stage.is-open .fp-card[data-idx="7"] { transform: translate(calc(-50% - 150px), calc(-50% + 130px)) rotate(-13deg); }
  .folder-stage.is-open .fp-card[data-idx="8"] { transform: translate(calc(-50% - 60px), calc(-50% + 150px)) rotate(-18deg); }
  .works-folder-section .folder-stage { min-height: 680px; }
  .fp-card { width: 150px; }
}
@keyframes popHighlight {
  0%, 100% { box-shadow: 0 12px 30px rgba(46, 59, 170, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(232, 181, 197, 0.45), 0 18px 50px rgba(46, 59, 170, 0.30); }
}

.folder-hint {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--cosmic-ink-soft);
  text-transform: uppercase;
  opacity: 0.7;
  pointer-events: none;
}
.folder-stage.is-open .folder-hint {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 详情浮层（点纸件后展示作品详情） */
.fp-detail {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: min(720px, 92vw);
  max-height: 80vh;
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid var(--cosmic-3);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(46, 59, 170, 0.30);
  padding: 32px 28px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.32s ease, transform 0.32s var(--bounce);
}
.fp-detail.shown {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.fp-detail .fpd-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--cosmic-paper-2);
  color: var(--cosmic-3);
  font-size: 18px;
  cursor: pointer;
}
.fp-detail .fpd-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  background: var(--cosmic-paper-2);
  color: var(--cosmic-3);
  margin-bottom: 10px;
}
.fp-detail h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--cosmic-ink);
  margin-bottom: 14px;
}
.fp-detail .fpd-psr {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.fp-detail .fpd-step {
  padding: 14px 16px;
  border-left: 3px solid var(--cosmic-3);
  background: var(--cosmic-paper-2);
  border-radius: 0 10px 10px 0;
}
.fp-detail .fpd-step h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--cosmic-3);
  margin-bottom: 4px;
}
.fp-detail .fpd-step p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--cosmic-ink-soft);
}
.fp-detail .fpd-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--cosmic-line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cosmic-ink-soft);
}

/* ============================================================
 *  v5：规划 → 线性时间轴（horizontal linear timeline）
 * ============================================================ */
.line-stage {
  position: relative;
  margin: 56px auto;
  padding: 24px 8vw 32px;
}
.line-rail {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg,
    var(--cosmic-3) 0%,
    var(--cosmic-flower) 50%,
    var(--cosmic-2) 100%);
  border-radius: 4px;
  margin-bottom: 56px;
}
.line-rail::before {
  content: "";
  position: absolute; left: 0; top: -8px;
  width: var(--glow, 0%);
  height: 4px;
  background: linear-gradient(90deg, #fff, var(--cosmic-glow));
  border-radius: 4px;
  box-shadow: 0 0 16px var(--cosmic-glow);
  /* 宽度由 js/plan-line.js 通过 --glow 变量驱动 */
  transition: width 0.25s ease-out;
}
.line-marker {
  position: absolute; top: -10px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cosmic-3);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 4px 12px rgba(84, 112, 255, 0.30);
  transition: all 0.4s ease;
}
.line-marker.is-lit {
  background: var(--cosmic-flower);
  border-color: var(--cosmic-flower);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6), 0 0 24px var(--cosmic-flower);
}
.line-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.line-card {
  background: linear-gradient(155deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(168, 176, 255, 0.16) 100%);
  border: 1px solid var(--cosmic-line);
  border-radius: 22px;
  padding: 24px 22px 22px;
  position: relative;
  box-shadow: 0 16px 40px rgba(46, 59, 170, 0.14);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s var(--bounce), box-shadow 0.35s ease;
}
.line-card.is-shown {
  opacity: 1;
  transform: translateY(0);
}
.line-card:hover {
  box-shadow: 0 26px 60px rgba(46, 59, 170, 0.22);
  transform: translateY(-4px);
}
/* v6+ · hover 晃动动画（鼠标进入时左右轻晃） */
.line-card.is-shaking {
  animation: line-card-shake 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(46, 59, 170, 0.22);
}
@keyframes line-card-shake {
  0%   { transform: translateY(-4px) rotate(0deg); }
  15%  { transform: translateY(-6px) rotate(-2.2deg); }
  30%  { transform: translateY(-6px) rotate(2.2deg); }
  45%  { transform: translateY(-6px) rotate(-1.5deg); }
  60%  { transform: translateY(-6px) rotate(1.5deg); }
  75%  { transform: translateY(-6px) rotate(-0.8deg); }
  90%  { transform: translateY(-6px) rotate(0.4deg); }
  100% { transform: translateY(-4px) rotate(0deg); }
}
.line-card .lc-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cosmic-3), var(--cosmic-flower));
  color: #fff;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(84, 112, 255, 0.30);
}
.line-card .lc-stage {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--cosmic-3);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.line-card h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--cosmic-ink);
  margin-bottom: 8px;
}
.line-card .lc-tagline {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cosmic-flower);
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.line-card ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.line-card li {
  font-size: 13px;
  color: var(--cosmic-ink-soft);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.line-card li::before {
  content: "▸";
  position: absolute; left: 0; top: 0;
  color: var(--cosmic-3);
}
.line-card li strong {
  color: var(--cosmic-ink);
  font-weight: 700;
  margin-right: 4px;
}
@media (max-width: 768px) {
  .line-cards { grid-template-columns: 1fr; }
}
.slogan-marquee {
  position: relative;
  margin: 32px 0 12px;
  padding: 22px 0;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cosmic-paper-2) 12%,
    var(--cosmic-paper-2) 88%,
    transparent 100%);
  border-top: 1px solid var(--cosmic-line);
  border-bottom: 1px solid var(--cosmic-line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.slogan-track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  width: max-content;
  animation: sloganScroll 32s linear infinite;
}
@keyframes sloganScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.slogan-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 36px);
  letter-spacing: 6px;
  background: linear-gradient(120deg, var(--cosmic-3) 0%, var(--cosmic-flower) 50%, var(--cosmic-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(84, 112, 255, 0.18));
}
.slogan-dot {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--cosmic-flower);
  flex: 0 0 auto;
}

/* ============================================================
 *  v5：双雷达图（3D 倾斜随指针，参考 GreenSock qBzaNQy）
 * ============================================================ */
.radar-tilt {
  position: relative;
  perspective: 800px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}
.radar-3d-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 320 / 300;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
.radar-3d-wrap::after {
  /* 顶部高光层，让雷达有立体感 */
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 30%, transparent 70%, rgba(84, 112, 255, 0.10) 100%);
  pointer-events: none;
}
.radar-tilt::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}
.cosmic-cta {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 0 24px;
}
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1.5px solid rgba(168, 176, 255, 0.3);
  color: var(--cosmic-text);
  text-decoration: none;
  transition: all 0.35s var(--bounce);
  cursor: pointer;
  overflow: hidden;
}
.cta-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--cosmic-flower) 0%, var(--cosmic-flower-2) 50%, var(--cosmic-glow) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.cta-btn:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(84, 112, 255, 0.35);
}
.cta-btn:hover::before { opacity: 1; }
.cta-btn .cta-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cosmic-glow);
  opacity: 0.85;
  transition: color 0.35s ease;
}
.cta-btn:hover .cta-no { color: rgba(0, 0, 0, 0.7); opacity: 1; }
.cta-btn .cta-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 3px;
  padding-left: 14px;
  border-left: 1px solid rgba(168, 176, 255, 0.35);
  transition: border-color 0.35s ease;
}
.cta-btn:hover .cta-title { border-color: rgba(0, 0, 0, 0.25); }
.cta-btn .cta-arrow {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--cosmic-flower);
  transform: translateX(0);
  transition: transform 0.3s var(--bounce), color 0.35s ease;
}
.cta-btn:hover .cta-arrow { transform: translateX(4px); color: rgba(0, 0, 0, 0.7); }

/* 光标追随作品卡（参考 codepen thingbynemanja） */
.cosmic-cards {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.work-trail-card {
  position: absolute;
  width: 200px;
  padding: 12px;
  background: rgba(20, 24, 60, 0.35);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(168, 176, 255, 0.18);
  border-radius: 12px;
  color: var(--cosmic-text);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
  opacity: 0;
  filter: blur(3px) saturate(0.6);
  pointer-events: none;
}
.work-trail-card.is-near {
  opacity: 0.55;
  filter: blur(0) saturate(1);
  z-index: 4;
  pointer-events: auto;
}
.work-trail-card .wtc-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--cosmic-3), var(--cosmic-4));
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.work-trail-card .wtc-cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.work-trail-card .wtc-cover-fallback {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.7);
  position: absolute;
}
.work-trail-card .wtc-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 4px;
}
.work-trail-card .wtc-sentence {
  font-size: 11.5px;
  color: var(--cosmic-muted);
  line-height: 1.5;
}

/* ============================================================
 *  v5：核心能力（variant.com/community 风格）
 *  中央文案 + 围绕悬浮的 7 张能力卡
 * ============================================================ */
.abilities-variant { padding: 80px 0 0; }

.variant-stage {
  position: relative;
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 80px 24px 100px;
  border-radius: 32px;
  background: linear-gradient(180deg,
    rgba(168, 176, 255, 0.18) 0%,
    rgba(84, 112, 255, 0.10) 50%,
    rgba(232, 181, 197, 0.12) 100%);
  border: 1px solid var(--cosmic-line);
  overflow: hidden;
  isolation: isolate;
  --mx: 0; --my: 0;
}
.variant-stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(168, 176, 255, 0.30), transparent 28%),
    radial-gradient(circle at 82% 88%, rgba(232, 181, 197, 0.30), transparent 32%);
  z-index: -1;
}

.variant-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 26px;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 20px 60px rgba(46, 59, 170, 0.18);
  transform: translate(
    calc(var(--mx) * -8px),
    calc(var(--my) * -8px)
  );
  transition: transform 0.3s ease;
}
.variant-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--cosmic-3);
  margin-bottom: 14px;
}
.variant-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 4px;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--cosmic-3) 0%, var(--cosmic-flower) 60%, var(--cosmic-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.variant-sub {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.85;
  color: var(--cosmic-ink-soft);
  max-width: 480px;
  margin: 0 auto;
}
.variant-pulse {
  position: absolute;
  left: 50%; bottom: -26px;
  transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cosmic-flower) 0%, var(--cosmic-3) 100%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.6), 0 0 24px rgba(84, 112, 255, 0.5);
}
.variant-pulse::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  background: inherit;
  animation: pulseRipple 2.6s ease-out infinite;
}
@keyframes pulseRipple {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* 周围悬浮卡：用 grid + 圆形分布 + 公转 */
.variant-orbit {
  position: relative;
  height: 460px;
  margin: 40px -24px -100px;
  z-index: 1;
}
.orbit-card {
  position: absolute;
  width: 200px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 16px 40px rgba(46, 59, 170, 0.16);
  transition: all 0.35s var(--bounce);
  text-align: left;
  cursor: default;
  /* 默认按 i 摆位（圆周） */
  top: 50%; left: 50%;
  transform-origin: 0 0;
  /* 公转 + 微微浮动 */
  animation: orbitFloat 8s ease-in-out infinite;
  transform: translate(-50%, -50%) rotate(calc((360deg / var(--n)) * var(--i))) translateY(-220px) rotate(calc((360deg / var(--n)) * var(--i) * -1)) translate(calc(var(--mx) * 12px), calc(var(--my) * 12px));
}
@keyframes orbitFloat {
  0%, 100% { margin-top: 0; }
  50%      { margin-top: -10px; }
}
.orbit-card:hover {
  z-index: 9;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 60px rgba(46, 59, 170, 0.30);
  transform: translate(-50%, -50%) rotate(calc((360deg / var(--n)) * var(--i))) translateY(-220px) rotate(calc((360deg / var(--n)) * var(--i) * -1)) scale(1.10) translate(calc(var(--mx) * 18px), calc(var(--my) * 18px));
}
.orbit-card .oc-no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--cosmic-3);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.orbit-card .oc-icon {
  font-size: 28px;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(84, 112, 255, 0.30));
}
.orbit-card .oc-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--cosmic-ink);
  margin-bottom: 6px;
}
.orbit-card .oc-short {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--cosmic-ink-soft);
  line-height: 1.6;
  margin-bottom: 4px;
}
.orbit-card .oc-desc {
  display: none;
  font-size: 11.5px;
  color: var(--cosmic-ink-soft);
  line-height: 1.7;
  margin-top: 8px;
  border-top: 1px dashed var(--cosmic-line);
  padding-top: 8px;
}
.orbit-card:hover .oc-desc { display: block; }
.orbit-card.o-tone-a { border-color: rgba(84, 112, 255, 0.35); }
.orbit-card.o-tone-b { border-color: rgba(232, 181, 197, 0.55); }
.orbit-card.o-tone-c { border-color: rgba(168, 176, 255, 0.50); }

/* ============================================================
 *  v5：4 关键能力 → 横向滚动（codepen moussamamadou raNBjqz）
 *  sticky pinned + 4 卡
 * ============================================================ */
.quad-hscroll-stage {
  position: relative;
  height: 360vh;  /* 4 卡各占一屏+触发区 */
  background: linear-gradient(180deg, transparent 0%, rgba(232, 181, 197, 0.08) 100%);
}
.quad-hscroll-sticky {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow: hidden;
  padding: 24px 0 48px;
  display: flex; flex-direction: column;
}
.quad-hscroll-hint {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--cosmic-ink-soft);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.quad-hscroll-track {
  display: flex;
  gap: 28px;
  padding: 0 8vw;
  align-items: center;
  height: 100%;
  will-change: transform;
  transition: transform 0.4s ease;
}
.quad-card {
  flex: 0 0 min(440px, 78vw);
  height: 70%;
  max-height: 580px;
  padding: 32px 28px;
  border-radius: 26px;
  background: linear-gradient(155deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(232, 181, 197, 0.20) 60%,
    rgba(168, 176, 255, 0.20) 100%);
  border: 1px solid var(--cosmic-line);
  box-shadow: 0 20px 60px rgba(46, 59, 170, 0.14);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 0.4s var(--bounce), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}
.quad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(46, 59, 170, 0.24);
}
.quad-card .qc-no {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--cosmic-3);
  margin-bottom: 14px;
}
.quad-card .qc-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 10px rgba(84, 112, 255, 0.30));
}
.quad-card .qc-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--cosmic-ink);
  margin-bottom: 8px;
}
.quad-card .qc-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cosmic-flower);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.quad-card .qc-desc {
  font-size: 13.5px;
  color: var(--cosmic-ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}
.quad-card .qc-bullets {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: grid; gap: 10px;
}
.quad-card .qc-bullets li {
  font-size: 12.5px;
  color: var(--cosmic-ink-soft);
  display: flex; gap: 8px; align-items: flex-start;
  line-height: 1.6;
}
.quad-card .qc-bullets .dot {
  flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cosmic-3);
  margin-top: 7px;
  box-shadow: 0 0 6px var(--cosmic-glow);
}
.quad-card .qc-more {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--cosmic-3);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.quad-card:hover .qc-more { color: var(--cosmic-flower); }

/* 详情面板（在轨道中展开） */
.quad-detail {
  flex: 0 0 min(820px, 92vw);
  height: 80%;
  max-height: 620px;
  padding: 36px 32px 28px;
  border-radius: 26px;
  background: linear-gradient(155deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(168, 176, 255, 0.18) 100%);
  border: 1.5px solid var(--cosmic-3);
  box-shadow: 0 30px 80px rgba(46, 59, 170, 0.30);
  position: relative;
  transform: translateX(-12px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s var(--bounce);
}
.quad-detail.shown { opacity: 1; transform: translateX(0); }
.quad-detail.closing { opacity: 0; transform: translateX(-20px); }
.quad-detail .qd-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--cosmic-paper-2);
  color: var(--cosmic-3);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.quad-detail .qd-close:hover {
  background: var(--cosmic-3);
  color: #fff;
}
.quad-detail .qd-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  color: var(--cosmic-ink);
  margin-bottom: 4px;
  padding-right: 40px;
}
.quad-detail .qd-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cosmic-3);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.quad-detail .qd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  overflow-y: auto;
  max-height: calc(100% - 110px);
  padding-right: 4px;
}
.qd-item {
  cursor: pointer;
  background: var(--cosmic-paper-2);
  border: 1px solid var(--cosmic-line);
  border-radius: 14px;
  padding: 12px;
  display: flex; flex-direction: column;
  gap: 6px;
  transition: all 0.25s var(--bounce);
}
.qd-item:hover {
  border-color: var(--cosmic-3);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}
.qd-item .qd-item-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cosmic-3), var(--cosmic-flower));
  margin-bottom: 6px;
  overflow: hidden;
}
.qd-item .qd-item-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.qd-item h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--cosmic-ink);
  line-height: 1.4;
}
.qd-item .qd-item-metric {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cosmic-3);
  letter-spacing: 1px;
}

/* ============================================================
 *  v4 新增：作品集 → 水平滚动交互
 *  参考 codepen.io/moussamamadou/full/raNBjqz 的 sticky + 水平滚动思路
 * ============================================================ */
.works-hscroll-section {
  position: relative;
}
.works-hscroll-stage {
  position: relative;
  height: 480vh; /* 5 屏滚动驱动水平移动 */
}
.works-hscroll {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(168, 176, 255, 0.10) 0%, transparent 50%),
    var(--bg);
}
.works-track {
  display: flex;
  height: 100%;
  padding: 80px 60px;
  gap: 32px;
  align-items: center;
  will-change: transform;
}
.works-cat-card {
  flex: 0 0 380px;
  height: 460px;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 28px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--bounce), box-shadow 0.4s ease;
  display: flex; flex-direction: column;
}
.works-cat-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--pink));
}
.works-cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.works-cat-card .wc-no {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 12px;
}
.works-cat-card .wc-icon {
  font-size: 56px;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 12px rgba(92, 92, 191, 0.2));
}
.works-cat-card .wc-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.works-cat-card .wc-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  flex: 1;
}
.works-cat-card .wc-count {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  background: var(--paper);
  color: var(--primary);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.works-cat-card .wc-enter {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.works-cat-card .wc-enter::after {
  content: "→";
  transition: transform 0.3s ease;
}
.works-cat-card:hover .wc-enter::after { transform: translateX(6px); }

/* 展开后的作品列表（在水平轨道内） */
.works-cat-list {
  flex: 0 0 calc(100vw - 120px - 380px - 32px - 60px);
  height: 460px;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  overflow: hidden;
}
.works-list-item {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.3s var(--bounce);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.works-list-item:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.works-list-item .wli-cover {
  width: 100%;
  height: 50%;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-tint), var(--pink-tint));
  margin-bottom: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.works-list-item .wli-cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.works-list-item .wli-cover-fallback {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--primary);
}
.works-list-item .wli-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.works-list-item .wli-metric {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--primary);
  margin-top: auto;
}

/* 水平滚动提示 */
.works-hscroll-hint {
  position: absolute;
  left: 50%; top: 28px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--muted);
  opacity: 0.7;
}
.works-hscroll-progress {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 3px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
}
.works-hscroll-progress span {
  display: block; height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  transition: width 0.08s linear;
}

/* ============================================================
 *  v5：TV 开场 → "portfolio" 飞入 hero 过渡
 * ============================================================ */
.tv-intro { transition: opacity 0.55s ease, filter 0.55s ease; }
.tv-intro.fade-out { opacity: 0; filter: blur(8px); }
.tv-intro.tv-ready { animation: tvFlicker 4s ease-in-out infinite; }

/* ===== v7：滚动后「聚焦进入」动画 =====
 * TV 向观众推近（模拟镜头对焦屏幕）→ 屏幕发光 → 整体 fade-out 进 morph */
.tv-intro.tv-focus { animation: none; overflow: hidden; }
.tv-intro.tv-focus .tv {
  /* 屏幕中心为缩放原点（屏幕在 TV 偏上部） */
  transform-origin: 50% 38%;
  transform: scale(2.75) translateY(2%);
  filter: drop-shadow(0 0 70px rgba(140, 150, 255, 0.45));
  transition: transform 0.55s cubic-bezier(0.5, 0, 0.2, 1),
              filter 0.55s ease;
}
.tv-intro.tv-focus .tv-screen {
  box-shadow: inset 0 0 90px rgba(160, 170, 255, 0.5),
              0 0 110px rgba(150, 160, 255, 0.55);
  transition: box-shadow 0.55s ease;
}
/* 聚焦时四周暗角收拢，突出屏幕 */
.tv-intro.tv-focus::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 26%, rgba(5, 6, 12, 0.85) 78%);
  animation: focusVignette 0.55s ease forwards;
}
@keyframes focusVignette { from { opacity: 0; } to { opacity: 1; } }

@keyframes tvFlicker {
  0%, 100% { filter: brightness(1); }
  3% { filter: brightness(1.1) saturate(1.1); }
  7% { filter: brightness(1); }
  52% { filter: brightness(1.05); }
  54% { filter: brightness(1); }
}

/* morph 元素（飞入 portfolio 的占位） */
.tv-morph {
  position: fixed;
  z-index: 200;
  font-family: var(--retro), "DM Mono", ui-monospace, monospace;
  font-weight: 700;
  color: var(--cosmic-glow);
  text-shadow: 0 0 18px rgba(168, 176, 255, 0.6);
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap;
  border-radius: 6px;
  letter-spacing: 6px;
  filter: drop-shadow(0 0 12px rgba(232, 181, 197, 0.5));
  transition: top 0.7s cubic-bezier(.5, 0, .15, 1),
              left 0.7s cubic-bezier(.5, 0, .15, 1),
              width 0.7s cubic-bezier(.5, 0, .15, 1),
              height 0.7s cubic-bezier(.5, 0, .15, 1),
              font-size 0.7s cubic-bezier(.5, 0, .15, 1),
              letter-spacing 0.7s cubic-bezier(.5, 0, .15, 1),
              opacity 0.25s ease 0.55s;
  pointer-events: none;
  will-change: top, left, width, height, font-size;
}
.tv-morph.go {
  font-style: italic;
  background: linear-gradient(120deg, var(--cosmic-flower) 0%, var(--cosmic-flower-2) 50%, var(--cosmic-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(232, 181, 197, 0.5);
  color: transparent;
}
.tv-morph.land { opacity: 0; }

/* hero.portfolio 在 morph 期间隐藏（占位 0 宽），morph 完恢复 */
.cosmic-welcome .em.hold-until-morph {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease 0.65s;
}
.cosmic-welcome .em {
  transition: opacity 0.3s ease;
}

/* 响应式 */
@media (max-width: 900px) {
  .personal-chips { grid-template-columns: repeat(2, 1fr); }
  .ability-card-3d { width: 220px; height: 320px; }
  .works-cat-card { flex: 0 0 300px; }
  .works-cat-list { display: none; }
}
@media (max-width: 560px) {
  .personal-chips { grid-template-columns: 1fr 1fr; }
  .chip-value { font-size: 16px; }
  .chip.chip-name .chip-value { font-size: 18px; }
  /* v5：移动端轨道卡改 2 列网格，560 以下单列更紧凑 */
  #variantOrbit { grid-template-columns: 1fr; }
}


/* ============================================================
 *  v6 增量：弹跳色块过渡 + 四角浮卡 + 流畅横向滚动 + 雷达 3D
 *  —— 追加在文件末尾以便覆盖之前的规则
 * ============================================================ */

/* ---------- 1. 弹跳色块过渡（首页 → 核心能力之间） ---------- */
.bounce-transition {
  position: relative;
  height: 80vh;
  min-height: 560px;
  background: linear-gradient(180deg, #0A0E2A 0%, #181E55 60%, #2E3BAA 100%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  isolation: isolate;
}
.bounce-transition::before {
  /* 背景曲线装饰（参考 codepen bGeZvpO 风格的曲线色块） */
  content: "";
  position: absolute;
  left: -10%; bottom: -20%;
  width: 120%; height: 80%;
  background: radial-gradient(ellipse at 50% 100%, rgba(168, 176, 255, 0.18) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.bounce-transition::after {
  /* 顶部柔光，让画面更有层次；不喧宾夺主 */
  content: "";
  position: absolute;
  left: -10%; top: -10%;
  width: 120%; height: 40%;
  background: radial-gradient(ellipse at 50% 0%, rgba(120, 130, 220, 0.10) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}
/* ---------- v8+ · bouncy 曲线（GSAP bGeZvpO 风格：粉→青渐变，scroll 驱动弹跳升起，覆盖黑色 hero） ----------
 * 设计思路：
 *   - 让曲线高度占满整个 bounce-transition 段（100%），这样 translateY(0) 时能完全覆盖上方深蓝区
 *   - 用 CSS 变量 --bv 控制纵向偏移：--bv: 100% → 色块在底部；--bv: 0% → 完全覆盖
 *   - transition 用 cubic-bezier(0.34, 1.4, 0.6, 1) 弹跳
 *   - 由 js/bounce-transition.js 的 scroll 监听器实时更新 --bv
 */
.bt-curve {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  --bv: 100%;
  transform: translateY(var(--bv));
  transition: transform 0.18s cubic-bezier(0.34, 1.4, 0.6, 1);
  will-change: transform;
  pointer-events: none;
}
/* 类 .bt-play 已不再控制曲线，仅保留作为"已通过阈值"语义标志 */
.bounce-transition.bt-play { /* 标记位：标记该 section 的滚动过渡已激活 */ }
/* scroll down 提示（参考源码的 <p>scroll down</p>）：
   由 .bt-scroll-op JS 控制其 opacity 淡入淡出（滚动接近底部时淡出） */
.bt-scroll {
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 7px;
  color: rgba(255, 255, 255, 0.78);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  --op: 1;
  opacity: var(--op);
  transition: opacity 0.2s ease-out;
}

/* ---------- 2. 核心能力：四角浮卡 + 中央标题（v6） ---------- */
.abilities-floating { padding: 60px 0 80px; }
.abilities-floating .section { position: relative; z-index: 1; }

.float-stage {
  position: relative;
  max-width: 1200px;
  margin: 40px auto 0;
  height: 580px;
  border-radius: 32px;
  background: linear-gradient(180deg,
    rgba(168, 176, 255, 0.18) 0%,
    rgba(84, 112, 255, 0.10) 50%,
    rgba(232, 181, 197, 0.12) 100%);
  border: 1px solid var(--cosmic-line);
  overflow: hidden;
  isolation: isolate;
}
.float-stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(168, 176, 255, 0.32), transparent 30%),
    radial-gradient(circle at 82% 86%, rgba(232, 181, 197, 0.30), transparent 34%);
  z-index: -1;
}
.float-stage::after {
  /* 棋盘格淡纹 */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: -1;
}

/* 装饰弧线 */
.float-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(84, 112, 255, 0.18);
  pointer-events: none;
  z-index: 0;
}
.float-ring-1 {
  left: 50%; top: 50%;
  width: 480px; height: 480px;
  transform: translate(-50%, -50%);
  animation: ring-spin 28s linear infinite;
}
.float-ring-2 {
  left: 50%; top: 50%;
  width: 720px; height: 720px;
  transform: translate(-50%, -50%);
  border-color: rgba(232, 181, 197, 0.18);
  animation: ring-spin 40s linear infinite reverse;
}
@keyframes ring-spin {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 四角浮卡 */
.float-card {
  position: absolute;
  width: 280px;
  padding: 22px 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 18px 50px rgba(46, 59, 170, 0.18);
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: float-card-in 0.8s var(--bounce) forwards;
  transition: transform 0.4s var(--bounce), box-shadow 0.4s ease;
}
.float-card:hover {
  transform: translateY(-6px) scale(1.03) !important;
  box-shadow: 0 28px 70px rgba(46, 59, 170, 0.30);
}
@keyframes float-card-in {
  0%   { opacity: 0; transform: translateY(20px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.float-tl { left: 5%;  top: 6%;  animation-delay: 0.15s; }
.float-tr { right: 5%; top: 6%;  animation-delay: 0.30s; }
.float-bl { left: 5%;  bottom: 6%; animation-delay: 0.45s; }
.float-br { right: 5%; bottom: 6%; animation-delay: 0.60s; }

.float-tl { background: linear-gradient(155deg, rgba(220, 230, 255, 0.92) 0%, rgba(168, 200, 255, 0.78) 100%); }
.float-tr { background: linear-gradient(155deg, rgba(255, 230, 220, 0.92) 0%, rgba(255, 200, 190, 0.78) 100%); }
.float-bl { background: linear-gradient(155deg, rgba(220, 245, 230, 0.92) 0%, rgba(190, 235, 210, 0.78) 100%); }
.float-br { background: linear-gradient(155deg, rgba(238, 222, 250, 0.92) 0%, rgba(220, 200, 245, 0.78) 100%); }

/* 浮卡内的图标 */
.fc-icon {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 24px;
  color: var(--card-tone, var(--cosmic-3));
  opacity: 0.85;
  pointer-events: none;
}

/* 浮卡详情（默认折叠，点击 .is-open 时展开） */
.fc-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.4s ease 0.1s, margin-top 0.4s ease;
  margin-top: 0;
}
.float-card.is-open .fc-detail {
  max-height: 460px;
  opacity: 1;
  margin-top: 14px;
}
.fc-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cosmic-3);
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.85;
}
.fc-bullets {
  list-style: none;
  padding: 0; margin: 12px 0 14px;
  display: grid;
  gap: 9px;
}
.fc-bullets li {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--cosmic-ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.fc-bullets .dot {
  flex-shrink: 0;
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-top: 7px;
}
.fc-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  cursor: pointer;
  padding: 8px 0;
  transition: transform 0.3s var(--bounce);
}
.fc-link:hover {
  transform: translateX(4px);
}

/* 展开态：浮卡尺寸扩大、其它卡淡出 */
.float-card.is-open {
  width: 360px;
  z-index: 5;
  box-shadow: 0 32px 90px rgba(46, 59, 170, 0.36);
  border-color: var(--card-tone, var(--cosmic-3));
}
.float-card.is-open .fc-icon { opacity: 1; }
.float-stage.has-open .float-card:not(.is-open) {
  opacity: 0.35;
  filter: blur(1px);
  transform: scale(0.92);
}
/* 中央标题在有卡展开时淡出 */
.float-stage.has-open .float-center {
  opacity: 0.25;
  filter: blur(2px);
}
.float-center {
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* 点击提示（替换原 CTA） */
.float-tip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cosmic-3);
  padding: 9px 22px;
  border: 1px solid var(--cosmic-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: default;
  animation: float-tip-pulse 2.4s ease-in-out infinite;
}
@keyframes float-tip-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(84, 112, 255, 0.32); }
  50%      { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(84, 112, 255, 0); }
}

.fc-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--cosmic-3);
  margin-bottom: 12px;
  font-weight: 600;
}
.fc-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 18px;
  color: var(--cosmic-ink);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.fc-short {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cosmic-3);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.fc-desc {
  font-size: 12.5px;
  color: var(--cosmic-ink-soft);
  line-height: 1.7;
}

/* 中央：核心能力 + 英文 */
.float-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  width: 320px;
  pointer-events: none;  /* 让卡片可点 */
}
.float-center > * { pointer-events: auto; }
.float-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 8px;
  color: var(--cosmic-3);
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.85;
}
.float-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: 4px;
  line-height: 1.05;
  background: linear-gradient(120deg, var(--cosmic-3) 0%, var(--cosmic-flower) 50%, var(--cosmic-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.float-sub {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--cosmic-ink-soft);
  margin-bottom: 22px;
  max-width: 320px;
  margin-left: auto; margin-right: auto;
}
.float-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--cosmic-ink);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-decoration: none;
  font-family: var(--mono);
  box-shadow: 0 8px 20px rgba(46, 59, 170, 0.30);
  transition: transform 0.3s var(--bounce), box-shadow 0.3s ease;
}
.float-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(46, 59, 170, 0.40);
}

/* ---------- 3. 已移除 quad-hscroll（v6+：4 张浮卡可点击展开详情） ---------- */

/* ---------- 4. 雷达图 3D（v6：更强的立体感 + 平面回落） ---------- */
.radar-tilt { perspective: 1200px; perspective-origin: 50% 40%; }
.radar-3d-wrap {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: transform;
}
.radar-3d-wrap::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, transparent 30%, transparent 70%, rgba(84, 112, 255, 0.12) 100%);
  pointer-events: none;
}
/* 雷达内 SVG 也跟随 3D */
.radar-3d-wrap svg { transform: translateZ(40px); transform-style: preserve-3d; }

/* ---------- 5. 作品集：分类卡 → 作品卡（v6：重构 folder） ---------- */
.works-folder-section { padding: 60px 0 80px; }
.works-folder-section .folder-stage {
  position: relative;
  min-height: 720px;
  margin: 30px 0 0;
  display: flex; align-items: center; justify-content: center;
}
/* 分类网格（文件夹打开后显示） */
.fp-categories {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1080px;
  padding: 0 24px;
  margin: 0 auto;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s var(--bounce);
  pointer-events: none;
}
.fp-categories.shown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fp-cat {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background: var(--cosmic-paper-2);
  border: 1px solid var(--cosmic-line);
  box-shadow: 0 10px 30px rgba(46, 59, 170, 0.10);
  cursor: pointer;
  transition: transform 0.3s var(--bounce), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.fp-cat::before {
  content: ""; position: absolute; top: -50px; right: -50px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--cat-color, rgba(84, 112, 255, 0.10));
  filter: blur(8px);
  opacity: 0.5;
  transition: transform 0.4s var(--bounce);
}
.fp-cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(46, 59, 170, 0.20);
  border-color: var(--cat-color, var(--cosmic-3));
}
.fp-cat:hover::before { transform: scale(1.2); }
.fp-cat-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.fp-cat-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--cat-color, var(--cosmic-3));
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}
.fp-cat-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 18px;
  color: var(--cosmic-ink);
  margin: 0;
}
.fp-cat-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cat-color, var(--cosmic-3));
  background: rgba(255, 255, 255, 0.6);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--cat-color, var(--cosmic-3));
}
.fp-cat-desc {
  font-size: 12.5px;
  color: var(--cosmic-ink-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}
.fp-cat-link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cat-color, var(--cosmic-3));
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.fp-cat-link::after { content: "→"; transition: transform 0.3s var(--bounce); }
.fp-cat:hover .fp-cat-link::after { transform: translateX(4px); }

/* 分类内的作品网格（点击分类后展开） */
.fp-works-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: none;
}
.fp-works-panel.shown { display: block; animation: fp-fade-up 0.4s ease forwards; }
@keyframes fp-fade-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.fp-works-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cosmic-line);
}
.fp-works-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cosmic-paper-2);
  border: 1px solid var(--cosmic-line);
  color: var(--cosmic-ink-soft);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--mono);
  letter-spacing: 1px;
  transition: all 0.25s ease;
}
.fp-works-back:hover { background: var(--cosmic-3); color: #fff; border-color: var(--cosmic-3); }
.fp-works-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 20px;
  color: var(--cosmic-ink);
  flex: 1;
}
.fp-works-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cosmic-3);
}
.fp-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fp-work-item {
  cursor: pointer;
  border-radius: 16px;
  background: var(--cosmic-paper-2);
  border: 1px solid var(--cosmic-line);
  overflow: hidden;
  transition: transform 0.3s var(--bounce), box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.fp-work-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(46, 59, 170, 0.20);
}
.fp-work-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(84, 112, 255, 0.08), rgba(232, 181, 197, 0.08));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.fp-work-cover img { width: 100%; height: 100%; object-fit: cover; }
.fp-work-body { padding: 12px 14px 14px; }
.fp-work-title { font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--cosmic-ink); margin-bottom: 4px; }
.fp-work-metric { font-family: var(--mono); font-size: 10.5px; color: var(--cosmic-3); letter-spacing: 1px; }

/* 隐藏原来的散开纸件 */
.folder-papers { display: none !important; }

/* ---------- 6. 移动端适配（v6） ---------- */
@media (max-width: 960px) {
  .float-stage { height: auto; padding: 28px 18px; }
  .float-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; margin-bottom: 12px; opacity: 1; transform: none; animation: none; }
  .float-tl, .float-tr, .float-bl, .float-br { all: unset; }
  .float-card { all: unset; }
  .float-card { display: block; width: 100%; padding: 18px; margin-bottom: 12px; border-radius: 20px; background: rgba(255,255,255,0.82); border: 1px solid var(--cosmic-line); box-shadow: 0 10px 30px rgba(46, 59, 170, 0.12); }
  .float-center { position: relative; left: auto; top: auto; transform: none; width: 100%; padding: 24px 0; }
  .float-title { font-size: 44px; }
  .float-ring { display: none; }

  /* 作品集分类网格：移动端 2 列 → 1 列 */
  .fp-categories { grid-template-columns: 1fr; gap: 12px; }
  .fp-works-grid { grid-template-columns: 1fr; }

  /* 4 关键能力卡移动端竖排 */
  .quad-hscroll-stage { display: none; }  /* 移动端暂隐藏 4 关键能力，避免横向滚动在小屏体验差 */
}
@media (max-width: 640px) {
  .bounce-transition { height: 60vh; min-height: 420px; }
  .bt-curve { height: 100%; }
  .bt-scroll { top: 18px; font-size: 11px; letter-spacing: 5px; }
  .float-stage { padding: 20px 14px; }
  .float-title { font-size: 36px; }
}

/* ============================================================
 *  v9+ 视频作品角标 + lightbox 弹层
 * ============================================================ */

/* ---- 视频作品封面叠加 ▶ play 角标 ---- */
.rb-work-cover { position: relative; }
.rb-cover-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: rgba(255,255,255,0.6);
  font-family: var(--serif);
}
.rb-work-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(46, 59, 170, 0.32);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: transform 0.35s var(--bounce);
}
.rb-work-play-tri {
  display: inline-block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--primary);
  margin-left: 4px; /* 让三角视觉居中 */
}
.rb-work.is-video:hover .rb-work-play { transform: translate(-50%, -50%) scale(1.1); }

/* ---- 视频 lightbox ---- */
.vl-box {
  position: fixed; inset: 0; z-index: 500;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  animation: vl-fadein 0.28s ease-out;
}
.vl-box.shown { display: flex; }
@keyframes vl-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.vl-mask {
  position: absolute; inset: 0;
  background: rgba(15, 18, 40, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.vl-dialog {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #ffffff 0%, #f6f4ff 100%);
  border: 1.5px solid rgba(168, 176, 255, 0.32);
  border-radius: 18px;
  padding: 28px 28px 24px;
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(10, 14, 42, 0.4);
  animation: vl-popin 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes vl-popin {
  0%   { opacity: 0; transform: scale(0.92) translateY(12px); }
  60%  { opacity: 1; transform: scale(1.02) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.vl-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%; border: none;
  background: var(--primary); color: #fff;
  font-size: 22px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--bounce), background 0.25s ease;
  z-index: 2;
}
.vl-close:hover { background: var(--pink); transform: rotate(90deg) scale(1.08); }
.vl-title {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--ink); margin: 0 0 14px;
  padding-right: 48px;
}
.vl-stage {
  display: flex; flex-direction: column; gap: 12px;
  background: #0a0e1a;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.vl-video, .vl-stage video {
  width: 100%; max-height: 60vh;
  display: block; border-radius: 8px;
  background: #000;
}
.vl-stage video { background: #000; }
.vl-video-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.vl-vitem {
  background: #000; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
}
.vl-vitem video { width: 100%; display: block; }
.vl-vitem figcaption {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85);
  padding: 8px 12px; font-size: 12px;
}
.vl-thumbs {
  display: flex; gap: 8px;
  background: rgba(168, 176, 255, 0.08);
  padding: 8px; border-radius: 8px;
  overflow-x: auto;
}
.vl-thumb {
  display: inline-flex; width: 96px; height: 60px;
  border-radius: 6px; overflow: hidden; flex-shrink: 0;
  background: #1a1f3a;
}
.vl-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vl-cap {
  font-size: 13px; color: var(--ink-soft);
  margin: 4px 0 6px; line-height: 1.7;
}
.vl-tip {
  font-size: 11px; color: var(--muted);
  margin: 0; letter-spacing: 0.5px;
  font-family: var(--mono);
}
.vl-err {
  font-size: 12.5px; color: #ffcdcd;
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.4);
  border-radius: 6px; padding: 10px 14px;
  margin: 10px 0 0;
  line-height: 1.7;
}
.vl-err a { color: #ffd380; text-decoration: underline; }
.vl-fallback {
  padding: 60px 20px; text-align: center;
  color: rgba(255,255,255,0.6); font-size: 14px;
}
@media (max-width: 640px) {
  .vl-box { padding: 12px; }
  .vl-dialog { padding: 20px 18px 16px; max-height: 92vh; }
  .vl-title { font-size: 18px; }
  .vl-video, .vl-stage video { max-height: 50vh; }
  .rb-work-play { width: 50px; height: 50px; }
  .rb-work-play-tri { border-width: 10px 0 10px 16px; }
}

/* ============================================================
 *  v6+ · 作品集 —— reactbits Folder 风格
 *  - 文件夹居中，点击后一级分类卡浮现在上方
 *  - 点击一级卡 → 二级作品网格浮现在上方
 *  - 点击空白处 → 二级消失 → 一级消失 → 文件夹合上（三阶段回退）
 * ============================================================ */
.works-folder-section .folder-stage {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* 文件夹本体 */
.rb-folder {
  position: relative;
  width: 320px; height: 240px;
  border: 0; padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  margin: 0 auto;
  flex-shrink: 0;
  z-index: 5;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
  display: block;
}
.rb-folder:hover { transform: translateY(-6px) scale(1.02); }
.rb-folder:active { transform: translateY(-2px) scale(0.99); }
.rb-folder-back {
  position: absolute; left: 0; right: 0; top: 24px; bottom: 0;
  background: linear-gradient(180deg, #5470FF 0%, #3D5BE0 100%);
  border-radius: 12px 12px 16px 16px;
  box-shadow: 0 24px 60px rgba(46, 59, 170, 0.40);
}
.rb-folder-tab {
  position: absolute; left: 24px; top: 0;
  width: 100px; height: 28px;
  background: linear-gradient(180deg, #7C6CF0 0%, #5470FF 100%);
  border-radius: 12px 12px 4px 4px;
}
.rb-folder-front {
  position: absolute; left: 0; right: 0; top: 24px; bottom: 0;
  background: linear-gradient(180deg, #6E97FF 0%, #5470FF 100%);
  border-radius: 12px 12px 16px 16px;
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.4s ease;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.15), 0 8px 24px rgba(46, 59, 170, 0.30);
}
.folder-stage[data-state="level1"] .rb-folder-front,
.folder-stage[data-state="level2"] .rb-folder-front {
  transform: rotateX(-58deg);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.15);
}
.rb-folder-label {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* 文件夹提示文字 */
.rb-hint {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cosmic-ink-soft);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
  position: relative;
  z-index: 4;
}

/* 一级分类卡层（5 张卡浮在文件夹上方） */
.rb-layer {
  position: absolute;
  left: 50%;
  width: min(1100px, 92vw);
  pointer-events: none;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, 30px) scale(0.92);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.rb-layer.shown {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}
.rb-layer-1 {
  top: 60px;     /* 浮在文件夹上方 */
  bottom: auto;
  gap: 18px;
}
.rb-layer-2 {
  top: 30px;     /* 二级作品网格靠上一点 */
  bottom: auto;
}

/* 一级分类卡 */
.rb-card {
  flex: 1 1 0;
  min-width: 180px;
  max-width: 240px;
  padding: 20px 18px 22px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 240, 255, 0.85) 100%);
  border: 1px solid var(--cosmic-line);
  border-top: 3px solid var(--tone, var(--cosmic-3));
  box-shadow: 0 14px 40px rgba(46, 59, 170, 0.18);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(40px) scale(0.85);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rb-layer-1.shown .rb-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.rb-layer-1.shown .rb-card:nth-child(1) { transition-delay: 0.05s; }
.rb-layer-1.shown .rb-card:nth-child(2) { transition-delay: 0.12s; }
.rb-layer-1.shown .rb-card:nth-child(3) { transition-delay: 0.19s; }
.rb-layer-1.shown .rb-card:nth-child(4) { transition-delay: 0.26s; }
.rb-layer-1.shown .rb-card:nth-child(5) { transition-delay: 0.33s; }
.rb-card:hover {
  transform: translateY(-8px) scale(1.04) !important;
  box-shadow: 0 24px 60px rgba(46, 59, 170, 0.28);
}
.rb-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: #fff;
  font-size: 22px;
  margin-bottom: 4px;
}
.rb-card-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 17px;
  color: var(--cosmic-ink);
  margin: 0;
}
.rb-card-desc {
  font-size: 12px;
  color: var(--cosmic-ink-soft);
  line-height: 1.65;
  flex: 1;
}
.rb-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}

/* 二级作品网格 */
.rb-l2-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 0 4px;
}
.rb-l2-back {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--cosmic-line);
  color: var(--cosmic-3);
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--bounce);
}
.rb-l2-back:hover {
  background: var(--cosmic-3);
  color: #fff;
  transform: translateX(-4px);
}
.rb-l2-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 20px;
  color: var(--cosmic-ink);
  margin: 0;
  flex: 1;
}
.rb-l2-count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
}
.rb-l2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.rb-work {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--cosmic-line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.rb-work:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(46, 59, 170, 0.22);
}
.rb-work-cover {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(168, 176, 255, 0.18), rgba(232, 181, 197, 0.18));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.rb-work-cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.rb-work-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cosmic-ink);
  margin: 10px 14px 4px;
  line-height: 1.45;
}
.rb-work-metric {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cosmic-ink-soft);
  margin: 0 14px 14px;
  letter-spacing: 1px;
}

/* 详情浮层（保留） */
.works-folder-section .fp-detail.shown {
  display: block;
  /* 详情浮层规则沿用旧版 fp-detail */
}

/* 移动端适配 */
@media (max-width: 960px) {
  .rb-folder { width: 280px; height: 200px; }
  .rb-folder-label { font-size: 18px; }
  .rb-layer-1 { flex-wrap: wrap; top: 40px; gap: 12px; }
  .rb-card { min-width: 140px; flex-basis: calc(50% - 6px); max-width: none; }
  .rb-layer-1.shown .rb-card:nth-child(n) { transition-delay: calc(0.05s * var(--i, 0)); }
}
@media (max-width: 640px) {
  .rb-folder { width: 240px; height: 180px; }
  .rb-layer-1 { top: 30px; }
  .rb-card { flex-basis: 100%; min-width: 0; }
  .rb-l2-grid { grid-template-columns: 1fr; }
}

/* ===================== 玻璃雨滴层（js/rain.js） ===================== */
#rainGlass {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;            /* 内容之上、导航(100)之下 */
  opacity: 0;
  transition: opacity 1.4s ease;
}
#rainGlass.is-on { opacity: 0.9; }
@media (max-width: 640px) {
  #rainGlass.is-on { opacity: 0.6; }
}

/* ===================== 简历下载二次确认弹窗（js/resume-confirm.js） ===================== */
.resume-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  pointer-events: none;
}
.resume-modal.is-open { display: flex; pointer-events: auto; }
.rm-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 30, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  animation: rmFadeIn 0.32s ease-out forwards;
}
.rm-dialog {
  position: relative;
  width: min(420px, 92vw);
  padding: 32px 28px 24px;
  background: linear-gradient(160deg, #ffffff 0%, #f4f0fb 100%);
  border: 1px solid rgba(120, 100, 200, 0.18);
  border-radius: 20px;
  box-shadow:
    0 30px 80px rgba(40, 30, 100, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  color: #2a2050;
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  animation: rmPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.06s;
}
.rm-mark {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0%, #d6ccff 35%, #a8a0ff 80%);
  box-shadow:
    0 6px 20px rgba(124, 108, 240, 0.35),
    0 0 0 6px rgba(168, 160, 255, 0.10);
  position: relative;
}
.rm-mark::after {
  /* 简历"下箭头" */
  content: "";
  position: absolute;
  left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -30%) rotate(45deg);
}
.rm-title {
  font-family: var(--serif, 'Source Han Serif SC', serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #1d1838;
  letter-spacing: 0.05em;
}
.rm-hint {
  margin: 0 0 24px;
  font-size: 13px;
  color: #6a6088;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.04em;
}
.rm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.rm-btn {
  flex: 1;
  max-width: 120px;
  padding: 11px 0;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.25s ease;
}
.rm-btn--no {
  background: transparent;
  border: 1px solid rgba(120, 100, 200, 0.3);
  color: #6a6088;
}
.rm-btn--no:hover {
  background: rgba(120, 100, 200, 0.06);
  color: #2a2050;
}
.rm-btn--yes {
  background: linear-gradient(135deg, #7c6cf0 0%, #5470ff 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(84, 112, 255, 0.35);
}
.rm-btn--yes:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(84, 112, 255, 0.45);
}
.rm-btn--yes:active {
  transform: translateY(0);
}
@keyframes rmFadeIn { to { opacity: 1; } }
@keyframes rmPop { to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 480px) {
  .rm-dialog { padding: 26px 22px 20px; }
  .rm-title { font-size: 17px; }
  .rm-btn { padding: 10px 0; font-size: 13px; }
}
