/* ============================================================
   作品集样式 —— 与简历同一套「赛博粉蓝」视觉语言
   配色变量集中在 :root，想换色调改这里即可
   ============================================================ */

:root {
  --bg: #080b16;
  --bg2: #121a2e;
  --bg3: #1a2440;
  --pink: #ff5c9e;
  --pink-d: #e63d80;
  --blue: #5aa9ff;
  --gold: #f9d77e;
  --txt: #eef2ff;
  --sub: #96a8cc;
  --line: rgba(122, 158, 230, 0.28);
  --surface: rgba(18, 26, 46, 0.92);
  --surface-hover: rgba(26, 36, 64, 0.95);
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: Consolas, "Courier New", monospace; }

/* ---------- 背景：径向光晕 + 网格 + 缓慢扫描线 ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 11, 22, 0.45), rgba(8, 11, 22, 0.7)),
    url("images/tavern-bg.webp") center top / cover no-repeat,
    radial-gradient(ellipse at 10% 6%, rgba(255, 92, 158, 0.13), transparent 44%),
    linear-gradient(160deg, #0c1120, #080b16);
}
.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 170, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 235, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: linear-gradient(180deg, transparent 0%, rgba(90, 169, 255, 0.16) 48%, rgba(90, 169, 255, 0.16) 52%, transparent 100%);
  background-size: 100% 260px;
  background-repeat: no-repeat;
  animation: fxScan 12s linear infinite;
}
@keyframes fxScan {
  0% { background-position: 0 -260px; }
  100% { background-position: 0 1400px; }
}

.wrap { width: min(100% - 48px, var(--wrap)); margin: 0 auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: clamp(36px, 5.4vw, 58px); font-weight: 900; letter-spacing: 0.04em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }

.muted { color: var(--sub); }

.eyebrow {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 12px;
}

/* ---------- Header：简历同款顶栏与页签 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, rgba(13, 18, 32, 0.95), rgba(21, 30, 52, 0.92));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 92, 158, 0.55);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--pink) 0 9%, transparent 9% 14%, var(--blue) 14% 21%, transparent 21%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.brand::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--pink);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--pink), 11px 0 0 rgba(90, 169, 255, 0.9);
  margin-right: 9px;
}
.brand span { color: var(--pink); }

.nav { display: flex; gap: 6px; font-size: 13px; }
.nav a {
  position: relative;
  padding: 8px 30px;
  background: rgba(27, 36, 60, 0.9);
  border: 1px solid rgba(90, 169, 255, 0.35);
  color: var(--txt);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: filter 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav a.on {
  background: linear-gradient(135deg, var(--pink), #ff86bd);
  color: #1a0a16;
  font-weight: 900;
  border-color: var(--pink);
  filter: drop-shadow(3px 3px 0 var(--blue));
}
.nav a:hover { color: #fff; border-color: var(--pink); filter: brightness(1.2); transform: translateY(-2px); }
.nav a.on:hover { color: #1a0a16; filter: drop-shadow(3px 3px 0 var(--blue)) brightness(1.12); }

/* ---------- Hero：斜切角色卡 ---------- */
.hero { padding: 84px 0 60px; }
.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  background: linear-gradient(100deg, rgba(28, 38, 68, 0.96), rgba(12, 17, 32, 0.94));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.hero-panel::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--pink), var(--blue));
  z-index: 2;
}
.hero-badge {
  grid-row: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--pink), var(--pink-d));
}
.hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 5px, transparent 5px 20px);
}
.hero-badge::after {
  content: "";
  position: absolute;
  right: -14px; bottom: -14px;
  width: 44px; height: 44px;
  border: 1px solid rgba(90, 169, 255, 0.85);
  transform: rotate(45deg);
}

.hero-main { padding: 36px 40px 32px; }
.hero-main h1 { color: #fff; animation: fxBreathe 4.5s ease-in-out infinite; }
.hero-tagline { margin-top: 14px; font-size: 17px; color: var(--sub); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@keyframes fxBreathe {
  0%, 100% { filter: none; }
  50% { filter: drop-shadow(0 0 12px rgba(255, 92, 158, 0.75)); }
}

.hero-stats { grid-column: 2; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; padding: 16px 40px 18px; border-right: 1px solid var(--line); }
.hero-stats strong { font-family: Consolas, monospace; font-size: 25px; line-height: 1.2; color: var(--blue); text-shadow: 0 0 16px rgba(90, 169, 255, 0.5); }
.hero-stats span { margin-top: 4px; font-size: 12px; letter-spacing: 0.1em; color: var(--sub); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--txt);
  background: rgba(27, 36, 60, 0.9);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.2); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), #ff86bd);
  border-color: var(--pink);
  color: #1a0a16;
  box-shadow: 3px 3px 0 var(--blue);
}

/* ---------- 章节标题：编号 + 中英标题 + 渐变横线 ---------- */
.section { position: relative; padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 32px; }
.section-head > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.sec-no {
  background: var(--pink);
  color: #160a14;
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
  box-shadow: inset -6px 0 0 var(--blue);
  animation: fxNoPulse 3.8s ease-in-out infinite;
}
@keyframes fxNoPulse {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.25); }
}
.sec-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; letter-spacing: 0.08em; color: #fff; }
.sec-en { font-family: Consolas, monospace; font-size: 11px; letter-spacing: 0.16em; color: var(--sub); }
.section-head .line { flex: 1; min-width: 40px; height: 1px; background: linear-gradient(90deg, var(--pink), var(--line), transparent); }
.section-note { color: var(--sub); font-size: 14px; line-height: 1.7; max-width: 100%; text-align: left; overflow-wrap: break-word; word-break: break-word; }
.section-note:hover { color: var(--pink); }

/* ---------- 作品卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.card::before {
  content: "";
  position: absolute; left: -1px; top: -1px; width: 14px; height: 14px;
  border-left: 2px solid var(--pink); border-top: 2px solid var(--pink);
  z-index: 3;
}
.card::after {
  content: "";
  position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  z-index: 3;
}
.card:hover { transform: translateY(-4px); filter: brightness(1.08); box-shadow: 0 0 26px rgba(90, 169, 255, 0.35); }

.card-cover {
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.card-cover::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(140, 170, 235, 0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(140, 170, 235, 0.05) 0 1px, transparent 1px 26px);
}
.cover-monogram { font-family: Consolas, monospace; font-size: 58px; font-weight: 900; color: rgba(255, 255, 255, 0.16); }
.card-badges { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 1; display: flex; justify-content: space-between; gap: 8px; }
.badge {
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  color: var(--sub);
  background: rgba(8, 12, 24, 0.85);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.badge-play { background: var(--pink); border-color: var(--pink); color: #1a0a16; }

.card-body { padding: 20px 22px 24px; }
.card-cat { font-family: Consolas, monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--blue); margin-bottom: 8px; }
.card-body h3 { font-size: 20px; font-weight: 900; letter-spacing: 0.04em; color: #fff; margin-bottom: 10px; }
.card-summary { font-size: 14px; color: var(--sub); min-height: 48px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  position: relative;
  font-family: Consolas, monospace;
  font-size: 11px;
  padding: 3px 8px;
  color: var(--sub);
  background: rgba(26, 36, 64, 0.65);
  border: 1px solid var(--line);
}
.tag::before { content: ""; position: absolute; left: -1px; top: -1px; width: 4px; height: 4px; border-left: 1px solid var(--pink); border-top: 1px solid var(--pink); }

/* ---------- 工作经历：菱形节点时间线 ---------- */
.experience-list { position: relative; padding-left: 22px; }
.experience-list::before {
  content: "";
  position: absolute; left: 3px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, var(--pink), var(--blue));
}
.job-item {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.job-item::before {
  content: "";
  position: absolute; left: -26px; top: 28px;
  width: 8px; height: 8px;
  background: var(--pink);
  border: 1px solid var(--blue);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 92, 158, 0.7);
}
.job-period {
  height: fit-content;
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-d));
  padding: 6px 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.job-content h3 { font-size: 17px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.job-role { font-family: Consolas, monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 10px; }
.job-content p:last-child { font-size: 14px; color: var(--sub); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; }
.about-text { color: var(--sub); font-size: 17px; max-width: 640px; }
.about-side h3 { font-size: 14px; font-weight: 900; letter-spacing: 0.08em; color: #fff; border-left: 3px solid var(--pink); padding-left: 10px; margin-bottom: 10px; }
.about-side h3:nth-of-type(2) { margin-top: 28px; }
.about-side p { margin-top: 8px; font-size: 14px; }
.subhead { margin: 30px 0 14px; font-size: 16px; font-weight: 900; letter-spacing: 0.06em; color: #fff; }
.advantage-list { list-style: none; margin: 0; padding: 0; color: var(--sub); font-size: 15px; }
.advantage-list li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.advantage-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--pink); transform: rotate(45deg); box-shadow: 0 0 8px var(--pink); }
.education { margin-top: 28px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.education h3 { font-size: 17px; font-weight: 900; color: #fff; }
.education p { margin-top: 8px; color: var(--sub); font-size: 14px; }
.inline-link { color: var(--pink); border-bottom: 1px solid var(--blue); }
.inline-link:hover { filter: brightness(1.2); }

/* ---------- 媒体与详情 ---------- */
.video-list { display: grid; gap: 10px; }
.video-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-size: 15px;
  transition: border-color 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}
.video-link:hover { border-color: var(--pink); filter: brightness(1.15); transform: translateX(3px); }
.video-link .play { color: var(--pink); font-size: 13px; }
.video-link .vtitle { flex: 1; color: #fff; }
.video-link .src { color: var(--blue); font-family: Consolas, monospace; font-size: 12px; white-space: nowrap; }

.resume-frame { display: block; width: 100%; min-height: calc(100vh - 64px); border: 0; background: #080b16; }
.hint { font-size: 13px; line-height: 1.6; color: var(--sub); }
.attachment-list { display: grid; gap: 10px; }
.attachment {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-size: 14px;
  transition: filter 0.18s ease, border-color 0.18s ease;
}
.attachment:hover { border-color: var(--pink); filter: brightness(1.15); }
.file-icon { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 92, 158, 0.14); color: var(--pink); border: 1px solid var(--line); }
.clip-list { margin: 14px 0 0; padding-left: 20px; color: var(--sub); font-size: 14px; }
.clip-list li { margin-bottom: 6px; }
.download-list { display: grid; gap: 10px; }
.download-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-size: 14px;
  transition: border-color 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}
.download-link:hover { border-color: var(--blue); filter: brightness(1.15); transform: translateX(3px); }
.download-link .dtitle, .attachment .dtitle { flex: 1; color: #fff; }
.download-link .dsize, .attachment .dsize { color: var(--sub); font-family: Consolas, monospace; font-size: 12px; white-space: nowrap; }
.download-link .daction, .attachment .daction { color: var(--blue); font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) {
  .download-link, .attachment { flex-wrap: wrap; gap: 8px 10px; }
  .download-link .dtitle, .attachment .dtitle { flex-basis: calc(100% - 40px); }
  .download-link .dsize, .attachment .dsize { margin-left: 36px; }
}

.detail-wrap { padding: 48px 0 96px; min-height: 70vh; }
.back-link { display: inline-block; color: var(--blue); font-size: 13px; letter-spacing: 0.06em; margin-bottom: 24px; }
.back-link:hover { color: var(--pink); }
.detail-head { position: relative; border-bottom: 1px solid var(--line); border: 1px solid var(--line); border-left: 3px solid var(--pink); padding: 20px 22px 22px; margin-bottom: 24px; background: var(--surface); border-radius: 0; }
.detail-head h1 { font-size: clamp(26px, 3.8vw, 40px); color: #fff; text-shadow: 0 0 18px rgba(255, 92, 158, 0.35); margin-bottom: 10px; }
.detail-head .eyebrow { border-left: 3px solid var(--blue); padding-left: 10px; }
.detail-head .summary { font-size: 16px; color: var(--sub); max-width: 700px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.detail-meta div { display: flex; flex-direction: column; }
.detail-meta dt { font-family: Consolas, monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--blue); }
.detail-meta dd { margin: 2px 0 0; font-size: 14px; }

.detail-body { max-width: 780px; }
.detail-body p { margin-bottom: 18px; color: var(--sub); font-size: 17px; }
.detail-block { margin-top: 52px; }
.detail-block h2 { font-size: 22px; margin-bottom: 18px; padding-left: 12px; border-left: 3px solid var(--pink); color: #fff; }

.embed-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #050810; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(90, 169, 255, 0.12); overflow: hidden; }
.embed-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.embed-bar .hint { font-size: 13px; color: var(--sub); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gallery img { width: 100%; border: 1px solid var(--line); display: block; }

.detail-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 72px; padding-top: 28px; font-size: 14px; }
.detail-nav a { color: var(--sub); }
.detail-nav a:hover { color: var(--pink); }
.empty-state { padding: 80px 0; text-align: center; color: var(--sub); }

/* ---------- 联系与页脚 ---------- */
.contact-section { text-align: center; padding: 80px 0; }
.contact-section .sec-title { margin-bottom: 12px; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 28px; }
.wechat-panel {
  position: relative;
  width: min(100%, 340px);
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--pink);
  box-shadow: inset 4px 0 0 rgba(90, 169, 255, 0.6);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  text-align: center;
}
.wechat-panel .qr-title { font-size: 11px; letter-spacing: 0.14em; color: var(--blue); margin-bottom: 12px; }
.wechat-panel img { width: 100%; display: block; background: #fff; border: 1px solid var(--line); }
.wechat-panel .hint { margin-top: 12px; font-size: 12px; }
.site-footer { background: linear-gradient(90deg, #0d1220, #151e34); border-top: 1px solid rgba(255, 92, 158, 0.5); padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: Consolas, monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--sub); }
.footer-inner span:first-child::before { content: "◆"; color: var(--pink); margin-right: 10px; text-shadow: 0 0 10px var(--pink); }

/* ---------- 页签视图切换 ---------- */
/* 锚点跳转时给 sticky 顶栏留出空间，避免视图顶部（含简历内页签）被盖住 */
html { scroll-padding-top: 76px; }
.view { display: none; scroll-margin-top: 76px; }
.view.active { display: block; animation: viewIn 0.35s ease both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 赛博小酒馆场景首页 ---------- */
.stage {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px 16px 64px;
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute;
  left: 50%; top: 48%;
  width: min(900px, 96vw); height: min(700px, 90vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 158, 0.16), transparent 64%);
  pointer-events: none;
}
/* 角色与酒吧在同一张图里（16:9 横向） */
.stage-scene-wrap {
  position: relative;
  width: min(96vw, 1160px);
  z-index: 1;
}
.stage-scene {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 92, 158, 0.55);
  box-shadow: inset 0 0 0 1px rgba(90, 169, 255, 0.3), 0 0 42px rgba(255, 92, 158, 0.25);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.stage-scene img { display: block; }
.scene-bg { width: 100%; height: auto; }
/* 角色层：站在吧台后，露出完整上半身 */
.scene-char {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 90%;
  width: auto;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 18px rgba(255, 92, 158, 0.35));
}
/* 霓虹光晕闪烁 */
/* 吧台前景：盖住角色下半身，营造站在吧台后的层次 */
.scene-counter {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.scene-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 46%, rgba(255, 92, 158, 0.14), transparent 42%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: neonPulse 3.2s ease-in-out infinite;
}
@keyframes neonPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
/* 缓慢下移的 CRT 扫描线 */
.scene-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(90, 169, 255, 0.05) 0 1px, transparent 1px 4px);
  pointer-events: none;
  animation: scanDrift 8s linear infinite;
}
@keyframes scanDrift { from { background-position: 0 0; } to { background-position: 0 32px; } }
@media (prefers-reduced-motion: reduce) {
  .scene-char, .scene-glow, .scene-scanlines { animation: none !important; }
}

/* 电脑版：对话框压在背景图底部，允许挡住一部分吧台 */
.speech-bubble {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(86%, 820px);
  z-index: 5;
  padding: 16px 18px 14px;
  background: rgba(8, 12, 24, 0.92);
  border: 1px solid var(--pink);
  box-shadow: inset 4px 0 0 var(--blue);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.bubble-tag { display: block; font-size: 10px; letter-spacing: 0.16em; color: var(--blue); }
.speech-bubble p { margin-top: 8px; font-size: clamp(14px, 2.6vw, 19px); font-weight: 700; line-height: 1.5; color: #fff; min-height: 2.6em; white-space: pre-line; }
.bubble-caret { display: inline-block; width: 8px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--pink); animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.stage-hint { position: relative; margin: 0; text-align: center; white-space: nowrap; font-size: 11px; letter-spacing: 0.12em; color: var(--sub); }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .header-inner { height: auto; min-height: 60px; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 0; }
  .nav { gap: 5px; flex-wrap: wrap; }
  .nav a { padding: 6px 18px; font-size: 12px; }
  .hero { padding: 48px 0 40px; }
  .hero-panel { grid-template-columns: 66px 1fr; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .hero-badge b { font-size: 26px; }
  .hero-badge small { font-size: 8px; }
  .hero-main { padding: 24px 20px; }
  .hero-stats { grid-column: 1 / 3; }
  .hero-stats div { padding: 14px 20px; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: stretch; }
  .section-head .line { display: none; }
  .section-note { text-align: left; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .job-item { grid-template-columns: 1fr; gap: 10px; }
  .job-item::before { left: -24px; }
  .detail-head { padding: 16px 14px 18px; margin-bottom: 20px; }
  .detail-meta { gap: 14px; margin-top: 12px; }
  .detail-head h1 { font-size: clamp(24px, 6vw, 32px); margin-bottom: 8px; }
  .detail-head .summary { font-size: 15px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stage { min-height: calc(100vh - 116px); padding: 20px 12px 56px; gap: 14px; }
  /* 手机版：对话框保持在图片下方，不遮挡吧台 */
  .stage-scene-wrap { width: 96vw; }
  .speech-bubble { position: static; transform: none; width: min(92%, 760px); margin: 0 auto; }
  .stage-hint { font-size: 10px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
