/* One scene, with document UI kept outside the camera transform. */
.home-showcase .showcase { position:relative; isolation:isolate; display:block; width:100%; max-width:none; margin:0; padding:0; background:transparent; }
/* --- Compact Top Header & Tools for Home Showcase --- */
.home-showcase .site-header { height:48px; }
.home-showcase .brand { font-size:13px; gap:9px; }
.home-showcase .brand-mark { width:24px; height:24px; font-size:14px; }
/* --- Site Tools (搜索与反馈 · 胶囊圆角边框、统一样式与放大镜图标) --- */
.home-showcase .site-tools {
  min-height: 36px;
  gap: 0 8px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
}

/* 搜索胶囊圆角外框 */
.home-showcase .site-search {
  display: inline-flex;
  align-items: center;
  height: 28px;
  min-height: 28px;
  padding: 0 4px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 238, 227, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(10, 20, 23, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: all .2s cubic-bezier(.2, 0, 0, 1);
}

.home-showcase .site-search:hover,
.home-showcase .site-search:focus-within {
  border-color: var(--teal);
  background: rgba(244, 238, 227, 0.98);
  box-shadow: 0 2px 10px rgba(29, 107, 105, 0.18);
}

/* 放大镜图标 */
.home-showcase .search-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-right: 6px;
  color: var(--muted);
  transition: color .2s ease;
}

.home-showcase .site-search:hover .search-icon-wrap,
.home-showcase .site-search:focus-within .search-icon-wrap {
  color: var(--teal);
}

.home-showcase .search-icon {
  display: block;
  width: 12px;
  height: 12px;
}

/* 统一搜索输入框字体、高度与平滑展开 */
.home-showcase .site-search input {
  width: 82px;
  min-width: 0;
  height: 26px;
  min-height: 26px;
  line-height: 26px;
  padding: 0 4px 0 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans), -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .03em;
  opacity: 1;
  transition: width .45s cubic-bezier(.22, 1, .36, 1),
              padding .45s cubic-bezier(.22, 1, .36, 1),
              color .2s ease;
}

.home-showcase .site-search input::placeholder {
  color: var(--muted);
  font-family: inherit;
  font-size: 11.5px;
}

.home-showcase .site-search:hover input,
.home-showcase .site-search:focus-within input {
  width: 220px;
  padding: 0 12px;
}

/* 统一搜索提交按钮字体与内嵌药丸样式 */
.home-showcase .site-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-height: 20px;
  min-width: 36px;
  padding: 0 8px;
  margin: 0;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(29, 107, 105, 0.08);
  color: var(--teal);
  font-family: var(--sans), -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .2s cubic-bezier(.2, 0, 0, 1);
}

.home-showcase .site-search button:hover,
.home-showcase .site-search button:focus-visible {
  background: var(--teal);
  color: var(--paper);
  box-shadow: 0 2px 6px rgba(29, 107, 105, 0.25);
}

/* 统一反馈按钮胶囊圆角、字体与高度基准 */
.home-showcase .site-tools > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-height: 28px;
  line-height: 28px;
  padding: 0 13px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 238, 227, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(10, 20, 23, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  color: var(--ink);
  font-family: var(--sans), -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s cubic-bezier(.2, 0, 0, 1);
}

.home-showcase .site-tools > a:hover,
.home-showcase .site-tools > a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(10, 20, 23, 0.12);
}

/* --- Showcase Nav Dock (全局圆角边框美化工具条 · 字体统一样式与平齐基准线) --- */
.showcase-nav-dock-wrap { position:absolute; top:8px; left:0; right:0; display:flex; justify-content:center; z-index:10; pointer-events:auto; margin:0 auto; }
.showcase-nav-dock { display:inline-flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:2px; padding:3px 6px; border:1px solid var(--line); border-radius:999px; background:rgba(244,238,227,.92); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); box-shadow:0 4px 18px rgba(10,20,23,.07), 0 0 0 1px rgba(255,255,255,.5) inset; }
.dock-divider { width:1px; height:14px; background:var(--line); margin:0 5px; flex-shrink:0; align-self:center; }
.dock-pill { display:inline-flex; align-items:center; justify-content:center; height:28px; min-height:28px; line-height:28px; padding:0 12px; margin:0; border:0; outline:0; border-radius:999px; color:var(--ink); font-family:var(--sans),-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; font-size:11.5px; font-weight:500; letter-spacing:.03em; text-transform:none; text-decoration:none; cursor:pointer; background:transparent; box-sizing:border-box; vertical-align:middle; -webkit-appearance:none; appearance:none; transition:all .2s cubic-bezier(.2,0,0,1); }
.dock-pill:hover,.dock-pill:focus-visible { background:var(--ink); color:var(--paper); transform:translateY(-1px); box-shadow:0 2px 8px rgba(10,20,23,.12); }
.dock-pill-register:disabled { color:var(--muted); opacity:.65; cursor:default; background:transparent; border:0; }
.dock-pill-register:disabled:hover { background:transparent; color:var(--muted); transform:none; box-shadow:none; }
.showcase.is-focused .showcase-nav-dock-wrap { opacity:.45; transition:opacity .3s; }
.showcase.is-focused .showcase-nav-dock-wrap:hover { opacity:1; }

.showcase-heading { position:relative; z-index:1; padding:52px 20px 0; text-align:center; pointer-events:none; }
.showcase-heading .eyebrow { font-size:8px; letter-spacing:.16em; margin:0 0 6px; color:var(--teal); }
.showcase .hero-title { display:flex; flex-wrap:wrap; justify-content:center; gap:0 .22em; margin:0; font-size:clamp(34px,4.5vw,62px); font-weight:700; font-style:italic; line-height:1.04; letter-spacing:-.055em; transition:opacity .35s; }
/* 行内 span 用渐变文字（background-clip:text）。渐变只画在 span 自己的盒子范围内，
   而 letter-spacing:-.055em 会在最后一个字后面也扣掉一点宽度，斜体的 O / B 右边缘
   本来就超出字宽，于是最后那个字母右侧会缺一块。padding-right 把绘制范围放宽、
   负 margin 抵掉布局影响，字号和居中都不变。 */
.showcase .hero-title > span { display:inline-block; padding-right:.16em; margin-right:-.16em; color:var(--teal); background:linear-gradient(110deg,var(--ink),var(--teal)); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; text-shadow:2px 2px 0 rgba(216,244,92,.12); }
.home-showcase .showcase .hero-visual { position:relative; width:100%; height:560px; margin:0; border:0; background:none; overflow:clip; box-shadow:none; }
.showcase .hero-static { width:min(660px,88%); height:88%; left:50%; top:6%; transform:translateX(-50%); }
.showcase .hero-shadow { display:none; }
.showcase .hero-halo { width:60%; left:20%; top:20%; height:70%; background:radial-gradient(ellipse,rgba(216,244,92,.1),transparent 67%); }
.showcase-hotspots,.showcase-module-nav,.showcase-reset,.showcase-hint { display:none; }
.showcase-panels { position:relative; z-index:5; width:min(1160px,calc(100% - 56px)); margin:0 auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; padding-block:30px; }
.showcase-panel { min-width:0; padding:24px; border-top:1px solid var(--line); }
.showcase-panel-kicker { margin:0 0 16px; font:9px/1.6 var(--mono); letter-spacing:.12em; color:var(--muted); }
.showcase-panel-kicker span { color:var(--orange); margin-right:10px; }
.showcase-panel h2 { margin:0 0 16px; font-size:clamp(30px,3vw,46px); line-height:1.1; letter-spacing:-.055em; }
.showcase-summary { margin:0 0 22px; color:#626f68; font-size:13px; line-height:1.85; text-wrap:pretty; }
.showcase-entries { border-top:1px solid var(--line); }
.showcase-entry { display:flex; gap:14px; align-items:center; padding:15px 0; border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none; }
.showcase-entry > span { min-width:0; }
.showcase-entry h3 { margin:0; font-size:15px; line-height:1.5; font-weight:500; letter-spacing:-.02em; }
.showcase-entry p { font-size:11px; line-height:1.7; color:var(--muted); margin:6px 0 0; }
.showcase-entry i { display:none; }
.showcase-entry:hover h3 { color:var(--teal); }
.showcase-entry-photo { flex:0 0 68px; height:58px; overflow:hidden; }
.showcase-entry-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.showcase-enter { display:inline-flex; align-items:center; justify-content:center; min-height:38px; margin-top:24px; padding:9px 26px; border:1px solid var(--teal); border-radius:999px; color:var(--teal); font:500 11px/1.4 var(--mono); letter-spacing:.05em; text-transform:uppercase; text-decoration:none; transition:all .2s cubic-bezier(.2,0,0,1); }
.showcase-enter:hover,.showcase-enter:focus-visible { background:var(--teal); color:var(--paper); transform:translateY(-1px); box-shadow:0 2px 10px rgba(29,107,105,.25); }
.showcase-empty,.showcase-skills { margin:15px 0 0; font:10px/1.9 var(--mono); color:var(--muted); }
.showcase-facts { list-style:none; padding:0; margin:0; font:11px/1.8 var(--mono); color:var(--teal); }
.showcase-facts li { padding:9px 0; border-bottom:1px solid var(--line); }
.showcase-footer { display:flex; justify-content:space-between; gap:12px; padding:12px 0; font:8px/1.5 var(--mono); letter-spacing:.1em; color:var(--muted); }
html.showcase-enhanced .home-showcase { display:flex; flex-direction:column; height:100svh; min-height:740px; }
html.showcase-enhanced .home-showcase .site-header,html.showcase-enhanced .home-showcase .site-tools,html.showcase-enhanced .home-showcase .showcase-footer { flex-shrink:0; }
html.showcase-enhanced .home-showcase main { display:flex; flex:1; min-height:0; }
html.showcase-enhanced .home-showcase .showcase { flex:1; min-height:0; overflow:clip; }
html.showcase-enhanced .showcase-heading { position:absolute; inset:52px 0 auto; padding:0 20px; z-index:1; }
html.showcase-enhanced .home-showcase .showcase .hero-visual { position:absolute; inset:0; width:100%; height:100%; min-height:0; z-index:2; pointer-events:none; }
html.showcase-enhanced .showcase .hero-static { top:14%; height:76%; }
html.showcase-enhanced .showcase-hotspots { position:absolute; inset:0; display:block; pointer-events:none; }
.showcase-hotspot { position:absolute; display:flex; align-items:center; gap:10px; min-height:44px; padding:8px 12px; border:0; color:var(--teal); background:rgba(244,238,227,.9); font:11px/1.4 var(--sans); white-space:nowrap; cursor:pointer; pointer-events:auto; transform:translate(-50%,-50%); border-radius:3px; transition:background .2s,color .2s,opacity .2s; }
html.showcase-enhanced .showcase-hotspot,html.showcase-enhanced .showcase-hotspot[data-region] { left:0; top:0; will-change:transform; }
.hotspot-dot { flex:none; width:7px; height:7px; border-radius:50%; background:var(--orange); box-shadow:0 0 0 4px rgba(242,123,81,.1); }
.showcase-hotspot[data-region="projects"] { left:50%; top:26%; }
.showcase-hotspot[data-region="tutorials"] { left:26%; top:50%; }
.showcase-hotspot[data-region="notes"] { left:74%; top:50%; }
.showcase-hotspot[data-region="life"] { left:50%; top:74%; }
.showcase-hotspot small { color:var(--muted); font:8px var(--mono); }
.showcase-hotspot:hover,.showcase-hotspot:focus-visible,.showcase-hotspot[aria-expanded="true"] { background:var(--teal); color:var(--paper); }
.showcase-hotspot:hover small,.showcase-hotspot[aria-expanded="true"] small { color:inherit; }
html.showcase-enhanced .showcase-panels { position:absolute; inset:0; width:auto; margin:0; display:block; padding:0; pointer-events:none; }
html.showcase-enhanced .showcase-panel { position:absolute; top:28%; left:auto; right:max(42px,calc((100vw - 1160px)/2)); width:clamp(300px,29vw,420px); max-height:calc(72% - 42px); overflow-y:auto; padding:0 0 18px; border:0; visibility:hidden; opacity:0; transform:translateY(12px); pointer-events:none; transition:opacity .25s,transform .3s,visibility .3s; scrollbar-width:thin; }
html.showcase-enhanced .showcase-panel.is-active { visibility:visible; opacity:1; transform:none; pointer-events:auto; }
html.showcase-enhanced .showcase[data-model-side="right"] .showcase-panel { left:max(42px,calc((100vw - 1160px)/2)); right:auto; }
.showcase.is-focused .hero-title { opacity:.12; }
.showcase.is-focused .showcase-heading .eyebrow { font-size:8px; letter-spacing:.16em; margin:0 0 6px; color:var(--teal); }
.showcase.is-focused[data-model-side="left"] .hero-wireframe { mask-image:linear-gradient(90deg,#000 40%,transparent 65%); }
.showcase.is-focused[data-model-side="right"] .hero-wireframe { mask-image:linear-gradient(270deg,#000 40%,transparent 65%); }
.showcase.is-focused .showcase-hotspot { opacity:0; pointer-events:none; }
.showcase.is-focused .showcase-hotspot[aria-expanded="true"] { opacity:1; pointer-events:auto; }
html.showcase-enhanced .showcase-hint { display:block; position:absolute; left:max(28px,calc((100vw - 1160px)/2)); right:auto; bottom:24px; margin:0; z-index:3; text-align:left; pointer-events:none; font:10px var(--mono); letter-spacing:.06em; color:var(--muted); }
.showcase-hint span { margin-right:9px; color:var(--orange); font-size:17px; vertical-align:-1px; }
.showcase.is-focused .showcase-hint { visibility:hidden; }
html.showcase-enhanced .showcase-reset { display:none; position:absolute; left:max(28px,calc((100vw - 1160px)/2)); bottom:24px; z-index:7; min-height:44px; padding:9px 0; border:0; background:transparent; color:var(--teal); font:11px var(--sans); cursor:pointer; }
html.showcase-enhanced .showcase.is-focused .showcase-reset { display:block; }
.showcase-reset span { color:var(--muted); margin-left:18px; font:8px var(--mono); }
.showcase-reset:hover { color:var(--orange); }
@media (max-width:1100px) and (min-width:801px) {
  html.showcase-enhanced .showcase-panel { width:310px; right:28px; }
  html.showcase-enhanced .showcase[data-model-side="right"] .showcase-panel { left:28px; }
  .showcase-entry p { display:none; }
}
@media (max-width:800px) {
  html.showcase-enhanced .home-showcase { height:auto; min-height:100svh; }
  html.showcase-enhanced .home-showcase main { display:block; flex:1; }
  .home-showcase .showcase,html.showcase-enhanced .home-showcase .showcase { min-height:620px; padding-bottom:20px; overflow:clip; }
  .showcase-heading,html.showcase-enhanced .showcase-heading { position:relative; inset:auto; padding:44px 14px 0; z-index:1; }
  .showcase-nav-dock-wrap { position:absolute; top:8px; left:0; right:0; display:flex; justify-content:center; z-index:10; pointer-events:auto; margin:0 auto; }
  .showcase-nav-dock { gap:2px; padding:2px 4px; }
  .dock-pill { height:26px; min-height:26px; line-height:26px; padding:0 8px; font-size:9.5px; }
  .showcase-heading .eyebrow { font-size:8px; letter-spacing:.16em; margin:0 0 6px; color:var(--teal); }
  .showcase .hero-title { display:block; font-size:clamp(26px,6.8vw,38px); line-height:1.08; }
  .showcase .hero-title > span { display:block; }
  .home-showcase .showcase .hero-visual { height:330px; }
  html.showcase-enhanced .home-showcase .showcase .hero-visual { position:absolute; inset:90px 0 auto; height:370px; z-index:2; }
  html.showcase-enhanced .showcase-hotspots { display:none; }
  html.showcase-enhanced .showcase-module-nav { position:relative; z-index:4; display:flex; justify-content:center; flex-wrap:wrap; gap:8px; padding:0 18px; margin-top:372px; }
  .showcase-module-nav button { min-height:44px; padding:10px 15px; background:transparent; border:1px solid var(--line); color:var(--teal); font:11px var(--sans); cursor:pointer; }
  .showcase-module-nav button[aria-expanded="true"] { color:var(--paper); background:var(--teal); border-color:var(--teal); }
  html.showcase-enhanced .showcase-panels { position:relative; inset:auto; width:auto; padding:0 24px; margin-top:28px; }
  html.showcase-enhanced .showcase-panel,html.showcase-enhanced .showcase[data-model-side="right"] .showcase-panel { position:relative; display:none; inset:auto; width:auto; max-height:none; overflow:visible; padding:0 0 12px; }
  html.showcase-enhanced .showcase-panel.is-active,html.showcase-enhanced .showcase[data-model-side="right"] .showcase-panel.is-active { display:block; }
  .showcase.is-focused .hero-title { opacity:.3; }
  .showcase.is-focused .hero-wireframe { mask-image:none; }
  html.showcase-enhanced .showcase-reset { left:24px; bottom:auto; top:478px; }
  html.showcase-enhanced .showcase-hint { position:absolute; left:0; right:0; top:518px; bottom:auto; padding:0 20px; margin:0; font-size:9px; text-align:center; }
  html.showcase-enhanced .showcase.is-focused .showcase-hint { display:none; }
  .showcase-panels { grid-template-columns:1fr; gap:16px; }
  .showcase-footer { flex-wrap:wrap; font-size:7px; }
}
@media (prefers-reduced-motion:reduce) {
  .showcase *, .showcase *::before { transition:none!important; animation:none!important; }
}


/* ==========================================================================
   HOMEPAGE OPENING CINEMATIC (首次进入开场宏大动画 · 人机之手与动图爆发)
   ========================================================================== */

/* 1. WELCOME TO ASHERLAB: 变大跳出，再缩小平滑归位 */
/* 首页等待态与转场态：严密隐藏双手、火花与背景视觉，确保欢迎语绝对先行 */
body.home-intro-pending .showcase-hands,
body.home-intro-pending .showcase-hand,
body.home-intro-pending .showcase-hand-human,
body.home-intro-pending .showcase-hand-robot,
body.page-transitioning .showcase-hands,
body.page-transitioning .showcase-hand,
body.page-transitioning .showcase-hand-human,
body.page-transitioning .showcase-hand-robot {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.home-intro-pending .showcase-hand-human,
body.page-transitioning .showcase-hand-human {
  transform: translate3d(-105%, -50%, 0) !important;
}
body.home-intro-pending .showcase-hand-robot,
body.page-transitioning .showcase-hand-robot {
  transform: translate3d(105%, -50%, 0) !important;
}
body.home-intro-pending .showcase-heading,
body.page-transitioning .showcase-heading {
  opacity: 0 !important;
  transform: translate3d(0, clamp(110px, 20vh, 180px), 0) scale(0.62) !important;
}
body.home-intro-pending .hands-spark,
body.page-transitioning .hands-spark,
body.home-intro-pending .hero-visual,
body.page-transitioning .hero-visual {
  opacity: 0 !important;
  transform: scale(0) !important;
}

body.has-intro {
  overflow: hidden;
}

body.has-intro .showcase-heading {
  animation: introWelcome 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center center;
  pointer-events: none;
}

@keyframes introWelcome {
  0% {
    opacity: 0;
    transform: translate3d(0, clamp(110px, 20vh, 180px), 0) scale(0.62);
  }
  18% {
    opacity: 1;
  }
  38% {
    opacity: 1;
    transform: translate3d(0, clamp(100px, 18vh, 160px), 0) scale(1.68);
  }
  56% {
    opacity: 1;
    transform: translate3d(0, clamp(100px, 18vh, 160px), 0) scale(1.68);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

body.has-intro .showcase-heading .eyebrow {
  animation: introEyebrow 0.7s ease 1.45s backwards;
}

@keyframes introEyebrow {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Top Header, Dock, and Tools: 跟随 WELCOME 缩小归位后丝滑下坠出现 */
body.has-intro .site-header {
  animation: introHeader 0.85s cubic-bezier(0.16, 1, 0.3, 1) 1.45s backwards;
}

@keyframes introHeader {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

body.has-intro .showcase-nav-dock-wrap {
  animation: introDock 0.95s cubic-bezier(0.16, 1, 0.3, 1) 1.55s backwards;
}

@keyframes introDock {
  0% {
    opacity: 0;
    transform: translate3d(0, -28px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

body.has-intro .site-tools {
  animation: introTools 0.85s cubic-bezier(0.16, 1, 0.3, 1) 1.65s backwards;
}

@keyframes introTools {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 3. The Two Wireframe Hands (亚当创世 · 人机之手) */
.showcase-hands {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Rendered hand width: the spark is anchored to the fingertips, which sit
     this far above the images' vertical centre (0.0646 = 66 art px / 1024). */
  --hand-w: clamp(340px, 36vw, 560px);
  pointer-events: none;
  z-index: 1;
  overflow: clip;
}

.showcase-hand {
  position: absolute;
  top: 50%;
  opacity: var(--hand-rest-opacity);
  will-change: transform, opacity;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: opacity .4s ease;
}
.showcase-hand-human {
  --hand-rest-x: -14%;
  --hand-contact-x: calc(50vw - 100% + 6px);
  --hand-rest-opacity: .85;
  left: 0;
  width: clamp(340px, 36vw, 560px);
  transform: translate3d(-14%, -50%, 0);
  transform-origin: left center;
}

.showcase-hand-robot {
  --hand-rest-x: 14%;
  --hand-contact-x: calc(-50vw + 100% - 6px);
  --hand-rest-opacity: .85;
  right: 0;
  width: clamp(340px, 36vw, 560px);
  transform: translate3d(14%, -50%, 0);
  transform-origin: right center;
}

.showcase-hand .hand-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  /* Keep the glow on the static image; move its composited parent. */
  filter: drop-shadow(0 0 14px rgba(29, 107, 105, 0.2));
}

/* Hands Animation During Intro */
/* Human Hand (Left): 伸出向中间接触，快接触时被挤开回到正常位置 */
body.has-intro .showcase-hand-human {
  animation: introHandHuman 4.5s linear forwards;
}

@keyframes introHandHuman {
  0%, 36% {
    opacity: 0;
    transform: translate3d(-105%, -50%, 0);
    animation-timing-function: cubic-bezier(.32, 0, .3, 1);
  }
  44% {
    opacity: 1;
  }
  /* One continuous approach, then one retreat; no repeated near-still segments. */
  66% {
    opacity: 1;
    transform: translate3d(var(--hand-contact-x), -50%, 0);
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
  }
  85%, 100% {
    opacity: var(--hand-rest-opacity);
    transform: translate3d(var(--hand-rest-x), -50%, 0);
  }
}

/* Robot Hand (Right): 伸出向中间接触，快接触时被挤开回到正常位置 */
body.has-intro .showcase-hand-robot {
  animation: introHandRobot 4.5s linear forwards;
}

@keyframes introHandRobot {
  0%, 36% {
    opacity: 0;
    transform: translate3d(105%, -50%, 0);
    animation-timing-function: cubic-bezier(.32, 0, .3, 1);
  }
  44% {
    opacity: 1;
  }
  66% {
    opacity: 1;
    transform: translate3d(var(--hand-contact-x), -50%, 0);
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
  }
  85%, 100% {
    opacity: var(--hand-rest-opacity);
    transform: translate3d(var(--hand-rest-x), -50%, 0);
  }
}

/* Hands Nexus Spark - 量子触碰能量辉光 */
.hands-spark {
  position: absolute;
  left: 50%;
  /* Sit on the fingertip pinch, not on the box centre. */
  top: calc(50% - var(--hand-w) * 0.0646);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 20%, var(--acid) 50%, var(--orange) 80%, transparent 100%);
  box-shadow: 0 0 32px 10px rgba(242, 123, 81, 0.9), 0 0 60px 18px rgba(216, 244, 92, 0.65);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) scale(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  z-index: 4;
}

body.has-intro .hands-spark {
  animation: introSpark 4.5s ease forwards;
}

@keyframes introSpark {
  0%, 60% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0);
  }
  64% {
    opacity: 0.85;
    transform: translate3d(-50%, -50%, 0) scale(1.15);
  }
  68% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(2.1);
  }
  72% {
    opacity: 0.95;
    transform: translate3d(-50%, -50%, 0) scale(3.0);
  }
  78%, 100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0);
  }
}

/* 4. The 3D Wireframe Knot: 从极小爆发变大跳出，挤开双手并弹性质感就位 */
body.has-intro .hero-visual {
  animation: introKnot 4.5s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
  transform-origin: center center;
}

@keyframes introKnot {
  0%, 68% {
    opacity: 0;
    transform: scale(0.04);
    pointer-events: none;
  }
  71% {
    opacity: 1;
  }
  80% {
    opacity: 1;
    transform: scale(1.18);
  }
  88% {
    opacity: 1;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
}

/* Hotspots, Hints & Footer: 挤开就位后优雅浮现 */
body.has-intro .showcase-hotspots {
  animation: introHotspots 0.8s cubic-bezier(0.16, 1, 0.3, 1) 3.75s backwards;
}

@keyframes introHotspots {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

body.has-intro .showcase-hint,
body.has-intro .showcase-footer {
  animation: introFadeIn 0.9s ease 3.9s backwards;
}

@keyframes introFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 动画进行中禁用按钮误触 */
/* 动画进行中仅禁用热区与重播按钮误触，导航栏与工具栏始终允许点击 */
body.has-intro .showcase-hotspots,
body.has-intro .showcase-replay-btn {
  pointer-events: none !important;
}

/* 导航栏与工具栏在任何状态下始终保持最高交互优先级与点击性 */
.showcase-nav-dock-wrap,
.showcase-nav-dock,
.showcase-nav-dock .dock-pill,
.site-header,
.site-header a,
.site-tools,
.site-tools a,
.site-tools button {
  pointer-events: auto !important;
  z-index: 100;
}

/* 5. 动画完成后的常驻浮动质感 (Idle Breathing) */
body.intro-done .showcase-hand-human {
  animation: handIdleLeft 9s ease-in-out infinite alternate;
}

body.intro-done .showcase-hand-robot {
  animation: handIdleRight 9s ease-in-out infinite alternate;
}

@keyframes handIdleLeft {
  0% {
    transform: translate3d(var(--hand-rest-x), -50%, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(calc(var(--hand-rest-x) + 2%), -51.5%, 0) rotate(0.6deg);
  }
}

@keyframes handIdleRight {
  0% {
    transform: translate3d(var(--hand-rest-x), -50%, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(calc(var(--hand-rest-x) - 2%), -48.5%, 0) rotate(-0.6deg);
  }
}

/* 模块展开阅读时双手低调退后 */
.showcase.is-focused .showcase-hand {
  opacity: 0.12 !important;
}

/* 重播按钮样式 */
.showcase-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 14px;
  color: var(--muted);
  font: 9px/1 var(--mono);
  cursor: pointer;
  pointer-events: auto;
  vertical-align: middle;
  transition: all .2s ease;
}

.showcase-replay-btn:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: rgba(29, 107, 105, 0.08);
  transform: translateY(-1px);
}

.showcase-replay-btn span {
  font-size: 11px;
}

@media (max-width: 800px) {
  .showcase-hands {
    --hand-w: clamp(200px, 46vw, 300px);
  }
  .showcase-hand-human {
    --hand-rest-x: -26%;
    --hand-contact-x: calc(50vw - 100% + 4px);
    --hand-rest-opacity: .55;
    width: clamp(200px, 46vw, 300px);
    transform: translate3d(-26%, -50%, 0);
    opacity: 0.55;
  }
  .showcase-hand-robot {
    --hand-rest-x: 26%;
    --hand-contact-x: calc(-50vw + 100% - 4px);
    --hand-rest-opacity: .55;
    width: clamp(200px, 46vw, 300px);
    transform: translate3d(26%, -50%, 0);
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.has-intro .showcase-heading,
  body.has-intro .site-header,
  body.has-intro .showcase-nav-dock-wrap,
  body.has-intro .site-tools,
  body.has-intro .showcase-hand-human,
  body.has-intro .showcase-hand-robot,
  body.has-intro .hands-spark,
  body.has-intro .hero-visual,
  body.has-intro .showcase-hotspots {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .showcase-hand-human {
    transform: translate3d(var(--hand-rest-x), -50%, 0) !important;
  }
  .showcase-hand-robot {
    transform: translate3d(var(--hand-rest-x), -50%, 0) !important;
  }
  .hands-spark {
    display: none !important;
  }
}


/* ✦ 纳西妲 10.27 生日应援 · 首页神明圣树卡牌入口 ✦ */
.dendro-crystal-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: auto;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: transform, opacity;
}

.showcase.is-focused .dendro-crystal-core {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.7);
}

.core-glow-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 12px;
  background: radial-gradient(ellipse at center, rgba(139, 212, 90, 0.55) 0%, rgba(216, 244, 92, 0.22) 50%, transparent 75%);
  animation: dendroCorePulse 3s ease-in-out infinite;
  pointer-events: none;
}

.core-card-wrapper {
  position: relative;
  width: 48px;
  height: 82px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(216, 244, 92, 0.85);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(139, 212, 90, 0.55);
  background: #091a18;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.core-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.core-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 45%, rgba(216, 244, 92, 0.2) 100%);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dendro-crystal-core:hover {
  transform: translate(-50%, -50%) scale(1.15) rotate(-1.5deg);
}

.dendro-crystal-core:hover .core-card-wrapper {
  border-color: #d8f45c;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 24px rgba(139, 212, 90, 0.85), inset 0 0 12px rgba(216, 244, 92, 0.3);
}

.dendro-crystal-core:hover .core-card-img {
  transform: scale(1.08);
}

.dendro-crystal-core:hover .core-card-shine {
  opacity: 0.9;
}

/* 浮动提示药丸 */
.core-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 12px;
  border-radius: 12px;
  background: rgba(9, 22, 21, 0.94);
  border: 1px solid rgba(139, 212, 90, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(103, 179, 70, 0.3);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.92;
  transition: all 0.25s ease;
}

.dendro-crystal-core:hover .core-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  border-color: #d8f45c;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(139, 212, 90, 0.5);
}

.tooltip-badge {
  font-size: 11px;
  font-weight: 600;
  color: #f0db93;
  letter-spacing: 0.04em;
}

.tooltip-text {
  font-size: 10px;
  color: #8bd45a;
  letter-spacing: 0.08em;
  font-family: monospace;
}

@keyframes dendroCorePulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.22);
    opacity: 0.9;
  }
}
