/* ============================================================
   小兔梦 · 作品集
   浅蓝清爽主题 / 原生 CSS，无依赖
   配色改动只需调 :root 里的变量
   ============================================================ */

:root {
  /* 浅色（默认） */
  --bg: #F6FBFE;
  --bg-2: #EDF6FD;
  --surface: #FFFFFF;
  --surface-soft: rgba(255, 255, 255, .72);
  --surface-line: rgba(46, 144, 201, .14);

  --text: #10293D;
  --text-2: #4E7186;
  --text-3: #7C99AC;

  --brand: #2E90C9;
  --brand-deep: #1F6FA3;
  --brand-soft: #BFE0F5;
  --brand-softer: #D7EBFA;
  --brand-tint: #EAF4FC;

  --on-brand: #FFFFFF;
  --shadow-sm: 0 2px 10px -4px rgba(19, 84, 122, .18);
  --shadow: 0 18px 46px -22px rgba(19, 84, 122, .34), 0 2px 8px -4px rgba(19, 84, 122, .12);
  --shadow-lg: 0 34px 80px -36px rgba(19, 84, 122, .42);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --wrap: 1140px;
  --nav-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
          "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #071624;
  --bg-2: #0A1E2E;
  --surface: #0E2333;
  --surface-soft: rgba(18, 44, 63, .66);
  --surface-line: rgba(124, 195, 234, .16);

  --text: #E9F5FD;
  --text-2: #A5C3D6;
  --text-3: #7495AA;

  --brand: #7CC3EA;
  --brand-deep: #A9DBF5;
  --brand-soft: #1B4058;
  --brand-softer: #17344A;
  --brand-tint: #0F2A3D;

  --on-brand: #06131E;
  --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, .5);
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .75), 0 2px 8px -4px rgba(0, 0, 0, .5);
  --shadow-lg: 0 36px 84px -38px rgba(0, 0, 0, .8);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.22; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--brand-soft); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

/* ---------- 顶部进度条 ---------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
  z-index: 120; transition: width .08s linear;
}

/* ---------- 鼠标光晕 ---------- */
.spotlight {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px;
  margin: -260px 0 0 -260px; border-radius: 50%;
  pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(circle, rgba(124, 195, 234, .22), transparent 62%);
  transition: opacity .5s var(--ease);
  will-change: transform;
}
@media (pointer: fine) { .spotlight { opacity: 1; } }

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              backdrop-filter .35s var(--ease), height .3s var(--ease);
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--surface-line), 0 10px 30px -22px rgba(19, 84, 122, .5);
  height: 60px;
}
.nav-inner {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.01em; }
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--brand-soft));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.brand-name { font-size: 15.5px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 7px 13px; border-radius: var(--radius-pill);
  font-size: 14.5px; color: var(--text-2);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--brand-tint); }
.nav-links a.is-active { color: var(--brand-deep); background: var(--brand-tint); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--surface-line); background: var(--surface-soft);
  color: var(--text-2);
  transition: transform .25s var(--ease), color .25s, border-color .25s, background-color .25s;
}
.icon-btn:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 42%, transparent); transform: translateY(-1px); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.i-moon { display: none; fill: currentColor; stroke: none; }
html[data-theme="dark"] .i-sun { display: none; }
html[data-theme="dark"] .i-moon { display: block; }
.menu-btn { display: none; }
.menu-bars { display: grid; gap: 4px; }
.menu-bars i { width: 15px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.menu-btn[aria-expanded="true"] .menu-bars i:first-child { transform: translateY(2.8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars i:last-child { transform: translateY(-2.8px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; padding: calc(var(--nav-h) + 78px) 0 40px;
  /* 不裁切：让底部光晕自然过渡到下一区块，避免出现一条硬边 */
  overflow: visible;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0;
}
.blob-a {
  width: 620px; height: 620px; top: -220px; right: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(191, 224, 245, .95), rgba(215, 235, 250, .35) 60%, transparent 72%);
  animation: drift 22s ease-in-out infinite alternate;
}
.blob-b {
  width: 520px; height: 520px; bottom: -240px; left: -180px;
  background: radial-gradient(circle at 60% 40%, rgba(124, 195, 234, .5), transparent 68%);
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
html[data-theme="dark"] .blob-a { background: radial-gradient(circle at 30% 30%, rgba(46, 144, 201, .34), transparent 70%); }
html[data-theme="dark"] .blob-b { background: radial-gradient(circle at 60% 40%, rgba(124, 195, 234, .22), transparent 70%); }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-40px, 46px, 0) scale(1.08); }
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 56px; align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px; border-radius: var(--radius-pill);
  background: var(--surface-soft); border: 1px solid var(--surface-line);
  font-size: 13px; color: var(--text-2); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #3FBF8F;
  box-shadow: 0 0 0 0 rgba(63, 191, 143, .55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 191, 143, .5); }
  70% { box-shadow: 0 0 0 8px rgba(63, 191, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 191, 143, 0); }
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.4rem, 5.1vw, 4.1rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.14;
}
.grad-text {
  background: linear-gradient(100deg, #1B6698 0%, #2E90C9 55%, #4FA8D8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
html[data-theme="dark"] .grad-text {
  background: linear-gradient(100deg, #A9DBF5, #7CC3EA 55%, #56ACDC);
  -webkit-background-clip: text; background-clip: text;
}

.rotator {
  margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-2); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.rotator-slot { color: var(--brand-deep); font-weight: 700; }
.caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 2px;
  background: currentColor; vertical-align: -.12em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.lead {
  margin-top: 20px; max-width: 30em;
  color: var(--text-2); font-size: 1rem;
}
.lead strong { color: var(--text); font-weight: 600; }

.cta-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background-color .28s, border-color .28s, color .28s;
  border: 1px solid transparent;
}
.btn svg { stroke: currentColor; fill: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #4FA8D8 100%);
  color: var(--on-brand);
  box-shadow: 0 12px 26px -14px rgba(46, 144, 201, .85);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(46, 144, 201, .9); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary svg { transition: transform .28s var(--ease); }
.btn-ghost {
  background: var(--surface-soft); color: var(--text);
  border-color: var(--surface-line); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--brand-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }

.hero-meta {
  margin-top: 30px; display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--text-3);
}
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item svg { stroke: currentColor; fill: none; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---- 右侧漂浮卡片 ---- */
.hero-visual {
  position: relative; height: 430px;
  display: grid; place-items: center;
}
.float-card {
  position: absolute; background: var(--surface);
  border: 1px solid var(--surface-line); border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px; width: 200px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: float 7s ease-in-out infinite;
}
.fc-1 { top: 18px; left: 4%; width: 216px; z-index: 3; animation-delay: -.4s; }
.fc-2 { top: 118px; right: 0; width: 190px; z-index: 2; animation-delay: -2.6s; }
.fc-3 { bottom: 12px; left: 16%; width: 152px; z-index: 4; animation-delay: -4.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}
.fc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fc-tag { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.fc-num { font-family: var(--mono); font-size: 13px; color: var(--brand); font-weight: 700; }
.fc-bars { display: flex; align-items: flex-end; gap: 5px; height: 62px; }
.fc-bars i {
  flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-soft));
  opacity: .85; transform-origin: bottom;
  animation: grow .9s var(--ease) backwards;
}
.fc-bars i:nth-child(2) { animation-delay: .07s; }
.fc-bars i:nth-child(3) { animation-delay: .14s; }
.fc-bars i:nth-child(4) { animation-delay: .21s; }
.fc-bars i:nth-child(5) { animation-delay: .28s; }
.fc-bars i:nth-child(6) { animation-delay: .35s; }
@keyframes grow { from { transform: scaleY(.05); opacity: 0; } }
.fc-foot { margin-top: 10px; font-size: 12px; color: var(--text-3); }

.fc-avatar {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-soft), var(--brand-tint));
  color: var(--brand-deep); font-weight: 700; font-size: 17px;
  border: 1px solid var(--surface-line);
}
.fc-lines { margin-top: 12px; display: grid; gap: 7px; }
.fc-lines i { height: 6px; border-radius: 3px; background: var(--bg-2); display: block; width: var(--w); }
html[data-theme="dark"] .fc-lines i { background: rgba(124, 195, 234, .22); }
.fc-chips { margin-top: 14px; display: flex; gap: 5px; flex-wrap: wrap; }
.fc-chips span {
  font-size: 10.5px; padding: 3px 8px; border-radius: 6px;
  background: var(--brand-tint); color: var(--brand-deep); font-weight: 600;
}

.fc-3 { text-align: center; }
.fc-ring {
  width: 76px; height: 76px; margin: 2px auto 0; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--brand) 0 98%, var(--brand-tint) 98% 100%);
}
.fc-ring::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface);
}
.fc-ring span { position: relative; z-index: 1; font-family: var(--mono); font-weight: 700; font-size: 19px; color: var(--brand-deep); }

.hero-orbit { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-orbit i {
  position: absolute; inset: 34px 24px; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--brand) 26%, transparent);
  animation: spin 34s linear infinite;
}
.hero-orbit i:last-child { inset: 74px 66px; animation-direction: reverse; animation-duration: 26s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 数据条 ---- */
.stats {
  position: relative; z-index: 1;
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface-soft);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  overflow: hidden;
}
.stat { padding: 22px 20px; text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 26%; height: 48%;
  width: 1px; background: var(--surface-line);
}
.stat b {
  display: block; font-family: var(--mono); font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 700; color: var(--brand-deep); letter-spacing: -.03em;
}
.stat span { font-size: 12.5px; color: var(--text-3); }

/* ============================================================
   通用 section
   ============================================================ */
.section { position: relative; padding: 92px 0; }
.section-head { max-width: 620px; }
.kicker {
  display: inline-block; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.35rem); letter-spacing: -.03em;
}
.section-head + .grid { margin-top: 34px; }
.grid { display: grid; gap: 20px; }

/* ============================================================
   关于
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start;
}
.about-body { display: grid; gap: 18px; }
.about-body p { font-size: 1.02rem; color: var(--text-2); }
.about-body strong { color: var(--text); font-weight: 600; }
.now-list {
  margin-top: 8px; display: grid; gap: 1px;
  background: var(--surface-line); border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm); overflow: hidden;
}
.now-item {
  display: flex; gap: 16px; align-items: baseline;
  padding: 13px 16px; background: var(--surface); font-size: 14px;
}
.now-label { color: var(--text-3); min-width: 66px; font-size: 12.5px; }
.now-val { color: var(--text); font-weight: 500; }

/* ============================================================
   作品
   ============================================================ */
.works-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--surface-line); background: var(--surface-soft);
  transition: all .25s var(--ease);
}
.chip:hover { color: var(--brand-deep); border-color: color-mix(in srgb, var(--brand) 42%, transparent); }
.chip.is-active {
  background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600;
}
html[data-theme="dark"] .chip.is-active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.works-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--surface-line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.work { cursor: pointer; }
.work:hover, .work:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 34%, transparent);
}
.cover {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(140deg, var(--brand-softer), var(--brand-tint));
}
.cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.work:hover .cover img { transform: scale(1.05); }
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .42) 46%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.work:hover .cover::after { transform: translateX(120%); }

.card-body { padding: 18px 20px 20px; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.card-tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--brand-deep); background: var(--brand-tint);
  padding: 3px 9px; border-radius: 6px;
}
.card-year { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.card-body h3 { font-size: 1.06rem; margin-bottom: 7px; letter-spacing: -.015em; }
.card-body p { font-size: 13.6px; color: var(--text-2); line-height: 1.62; }
.card-foot { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.tech {
  font-size: 11px; font-family: var(--mono); color: var(--text-3);
  border: 1px solid var(--surface-line); border-radius: 5px; padding: 2px 7px;
}
.card-arrow {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .82); color: #1F6FA3;
  opacity: 0; transform: translate(-4px, 4px) scale(.9);
  transition: all .35s var(--ease);
  box-shadow: 0 4px 12px -4px rgba(19, 84, 122, .3);
}
.card-arrow svg { stroke: currentColor; fill: none; }
.work:hover .card-arrow { opacity: 1; transform: translate(0, 0) scale(1); }

.work.is-hidden { display: none; }
.works-empty { margin-top: 30px; text-align: center; color: var(--text-3); font-size: 14px; }

/* ============================================================
   能力
   ============================================================ */
.skills-grid { grid-template-columns: repeat(3, 1fr); }
.skill-card { padding: 26px 24px 24px; }
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.skill-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-deep);
  border: 1px solid var(--surface-line); margin-bottom: 16px;
}
.skill-icon svg { stroke: currentColor; fill: none; }
.skill-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.skill-card p { font-size: 13.4px; color: var(--text-2); }
.tag-row { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag-row span {
  font-size: 12px; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--bg-2); color: var(--text-2); border: 1px solid transparent;
  transition: all .25s var(--ease);
}
html[data-theme="dark"] .tag-row span { background: var(--brand-tint); }
.tag-row span:hover { color: var(--brand-deep); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }

/* ============================================================
   联系
   ============================================================ */
.contact-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--surface-line);
  border-radius: 26px; box-shadow: var(--shadow);
  padding: 54px 44px; text-align: center;
}
.contact-glow {
  position: absolute; width: 680px; height: 680px; border-radius: 50%;
  left: 50%; top: -420px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(191, 224, 245, .8), transparent 62%);
  pointer-events: none;
}
html[data-theme="dark"] .contact-glow { background: radial-gradient(circle, rgba(46, 144, 201, .3), transparent 62%); }
.contact-card > *:not(.contact-glow) { position: relative; z-index: 1; }
.contact-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.contact-sub { color: var(--text-2); max-width: 34em; margin-inline: auto; }
.contact-actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.copy-btn { position: relative; }
.copy-btn .copy-hint {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%) translateY(6px);
  font-size: 11px; font-weight: 500; padding: 4px 9px; border-radius: 6px;
  background: var(--text); color: var(--bg); white-space: nowrap;
  opacity: 0; transition: all .25s var(--ease); pointer-events: none;
}
.copy-btn:hover .copy-hint { opacity: 1; transform: translateX(-50%) translateY(0); }

.socials { margin-top: 30px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.socials a {
  font-size: 13.5px; color: var(--text-2); position: relative; padding-bottom: 2px;
}
.socials a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.socials a:hover { color: var(--brand); }
.socials a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--surface-line);
  padding: 26px 0 34px; margin-top: 40px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3);
}
.footer-mid { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; }
.to-top { display: inline-flex; align-items: center; gap: 6px; transition: color .25s; }
.to-top svg { stroke: currentColor; fill: none; }
.to-top:hover { color: var(--brand); }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg);
  font-size: 13.5px; font-weight: 500;
  padding: 11px 20px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); z-index: 150;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   滚动入场
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { height: 340px; margin-top: 8px; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 66px 0; }
  .nav-links {
    position: fixed; inset: 58px 12px auto 12px;
    flex-direction: column; gap: 2px;
    background: var(--surface); border: 1px solid var(--surface-line);
    border-radius: 16px; padding: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-10px) scale(.98);
    pointer-events: none;
    transition: all .3s var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 11px 14px; border-radius: 10px; font-size: 15px; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: grid; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--surface-line); }
  .works-grid, .skills-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 40px 22px; border-radius: 20px; }
  .hero { padding-top: calc(var(--nav-h) + 46px); }
  .hero-meta { font-size: 12.5px; }
  .footer-mid { display: none; }

  /* 窄屏下装饰卡片改为左右并排，避免堆叠成一团 */
  .hero-visual { height: 250px; }
  .hero-orbit { display: none; }
  .fc-1 { top: 0; left: 0; right: auto; width: 178px; padding: 13px; }
  .fc-2 { display: none; }
  .fc-3 { bottom: 0; right: 0; left: auto; width: 132px; padding: 13px; }
  .fc-bars { height: 46px; }
}

@media (max-width: 420px) {
  .hero-visual { height: 230px; }
  .fc-1 { width: 162px; }
  .fc-3 { width: 122px; }
  .btn { padding: 11px 18px; font-size: 14px; }
}

/* ============================================================
   首页 LIVE · 情绪云内嵌试玩
   ============================================================ */
.live-band { padding-top: 8px; }

.live-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
}
.live-head .section-head { max-width: 600px; }
.live-sub { margin-top: 12px; font-size: 14.5px; line-height: 1.85; color: var(--text-2); }

.live-dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  border-radius: 50%; background: #3FBF7F; vertical-align: 1px;
  animation: livePulse 2.4s var(--ease) infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 191, 127, .45); }
  70%  { box-shadow: 0 0 0 8px rgba(63, 191, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 191, 127, 0); }
}

.live-stage {
  position: relative; margin-top: 30px; aspect-ratio: 16 / 10;
  border-radius: 22px; overflow: hidden; isolation: isolate;
  background: #140B03;
  border: 1px solid var(--surface-line);
  box-shadow: var(--shadow-lg);
}

.live-facade {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  background: none; cursor: pointer; font: inherit; color: #fff;
  display: grid; place-items: center;
}
.live-facade img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.02);
  filter: saturate(1.06) brightness(1.04);
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.live-facade:hover img { transform: scale(1.05); filter: saturate(1.12) brightness(1.1); }
.live-facade:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: -5px; }

.live-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 58% at 50% 52%, rgba(10, 5, 1, 0) 30%, rgba(10, 5, 1, .5) 88%),
    linear-gradient(180deg, rgba(10, 5, 1, .34) 0%, rgba(10, 5, 1, 0) 34%);
}
.live-play {
  position: relative; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .64);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.live-play svg { margin-left: 3px; }
.live-facade:hover .live-play { transform: scale(1.08); background: rgba(255, 255, 255, .24); }

.live-tip {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  padding: 7px 15px; border-radius: var(--radius-pill);
  font-size: 12.5px; letter-spacing: .02em; white-space: nowrap;
  color: rgba(255, 255, 255, .88);
  background: rgba(12, 6, 1, .42);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

.live-slot { position: absolute; inset: 0; z-index: 1; }
.live-slot iframe { display: block; width: 100%; height: 100%; border: 0; background: #140B03; }

.live-badge {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: 11.5px; letter-spacing: .02em;
  color: rgba(255, 255, 255, .74);
  background: rgba(12, 6, 1, .4);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #7FD1FF; }

.live-close {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  padding: 7px 14px; border-radius: var(--radius-pill);
  font: inherit; font-size: 12px; color: #fff; cursor: pointer;
  background: rgba(12, 6, 1, .5); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .25s var(--ease);
}
.live-close:hover { background: rgba(12, 6, 1, .74); }

.live-stage.is-live .live-facade { display: none; }
.live-stage.is-live .live-badge { display: none; }

/* 加载中：播放按钮变成环形进度，封面继续压着，避免黑屏 */
.live-stage.is-loading .live-play {
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
  border-top-color: #fff;
  box-shadow: none;
  animation: liveSpin .9s linear infinite;
}
.live-stage.is-loading .live-play svg { opacity: 0; }
.live-stage.is-loading .live-facade { cursor: progress; }
@keyframes liveSpin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .live-band { padding-top: 0; }
  .live-stage { margin-top: 22px; aspect-ratio: 4 / 3; border-radius: 18px; }
  .live-play { width: 62px; height: 62px; }
  .live-tip { bottom: 16px; font-size: 11.5px; padding: 6px 12px; }
  .live-badge { top: 10px; right: 10px; font-size: 11px; }
  .live-close { bottom: 10px; right: 10px; }
}

/* ============================================================
   首页 FILM · 打开灯（深色影厅段）
   ============================================================ */
.film-band {
  position: relative;
  padding: 88px 0 78px;
  background:
    radial-gradient(ellipse 76% 58% at 50% -10%, rgba(107, 183, 232, .17), transparent 66%),
    linear-gradient(168deg, #0A1526 0%, #0C1A2C 54%, #08111D 100%);
  overflow: hidden;
}
html[data-theme="dark"] .film-band {
  background:
    radial-gradient(ellipse 76% 58% at 50% -10%, rgba(107, 183, 232, .2), transparent 66%),
    linear-gradient(168deg, #0F2036 0%, #112238 54%, #0C1929 100%);
}

.film-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.film-head .section-head { max-width: 660px; }
.film-band .kicker { color: #7CC4EC; }
.film-band h2 { color: #F2F8FD; }
.film-sub {
  margin-top: 14px; font-size: 14.5px; line-height: 1.9;
  color: rgba(205, 226, 242, .76);
}
.film-sub + .film-sub { margin-top: 7px; }
.film-band .btn-ghost {
  color: #DCEBF7; background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .18); box-shadow: none;
}
.film-band .btn-ghost:hover {
  color: #fff; background: rgba(255, 255, 255, .11);
  border-color: rgba(140, 200, 240, .62);
}

.film-figure { margin: 34px 0 0; }
.film-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px;
  overflow: hidden; isolation: isolate; background: #05080E;
  box-shadow: 0 44px 84px -44px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .07);
}
.film-stage video {
  display: block; width: 100%; height: 100%;
  object-fit: cover; background: #05080E;
}

.film-facade {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  background: none; cursor: pointer; font: inherit; color: #fff;
  display: grid; place-items: center;
}
.film-facade[hidden] { display: none; }
.film-facade:focus-visible { outline: 2px solid rgba(180, 220, 245, .8); outline-offset: -6px; }
.film-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 58% 54% at 50% 50%, rgba(8, 5, 2, 0) 24%, rgba(8, 5, 2, .44) 92%),
    linear-gradient(180deg, rgba(8, 5, 2, .18) 0%, transparent 30%);
  transition: opacity .45s var(--ease);
}
.film-play {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .9);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.film-play svg { margin-left: 4px; }
.film-facade:hover .film-play { transform: scale(1.07); background: rgba(255, 255, 255, .26); }

/* 点击后等首帧真的出来再撤封面，避免闪一下黑屏 */
.film-facade.is-loading { cursor: progress; }
.film-facade.is-loading .film-play {
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
  border-top-color: #fff;
  box-shadow: none;
  animation: liveSpin .9s linear infinite;
}
.film-facade.is-loading .film-play svg { opacity: 0; }
.film-facade.is-loading .film-tip { opacity: .6; }

.film-tip {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: 12.5px; letter-spacing: .02em; white-space: nowrap;
  color: rgba(255, 255, 255, .9);
  background: rgba(6, 10, 16, .5);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.film-cap {
  margin-top: 16px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: rgba(184, 210, 232, .74);
}

@media (max-width: 720px) {
  .film-band { padding: 62px 0 56px; }
  .film-figure { margin-top: 24px; }
  .film-br { display: none; }
  .film-stage { border-radius: 16px; }
  .film-play { width: 58px; height: 58px; }
  .film-play svg { width: 20px; height: 20px; }
  /* 小屏上按钮几乎占满高度，提示条会贴在按钮下方，直接去掉更干净 */
  .film-tip { display: none; }
  .film-cap { flex-direction: column; gap: 4px; margin-top: 12px; }
}

/* 尊重系统"减少动态效果" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
