/* 自托管字体 —— CSP 是 default-src 'self'，不能引 Google Fonts。
   仅 latin 子集，中文走系统 PingFang SC。 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Bril Lab — 浅色液态玻璃
   配色「晴空」· 焦散动态背景 · 自托管字体
   ============================================================ */

/* ── 设计令牌 ── */
:root {
  /* 底：必须比玻璃暗一档且偏冷，白玻璃才浮得起来 */
  --gnd: #edf3fb;
  --o1: #4da3ff;
  --o2: #7ad4ff;
  --o3: #22d3ee;
  --o4: #6f9bff;
  --orb-op: .44;
  --orb-mul: .62;          /* 有背景图时压低极光，避免两层色彩打架 */

  --ac: #0a84ff;
  --ac-rgb: 10, 132, 255;
  --grid-rgb: 16, 60, 130;

  --ink: #0a1424;
  --ink-2: #46566e;
  --ink-3: #75849b;

  --sans: "Schibsted Grotesk";
  --mono: "JetBrains Mono";
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei";

  /* 字号：1.25 模数，12px 是硬地板（模拟界面除外） */
  --f1: 12px;  --f2: 13.5px; --f3: 15px;  --f4: 17px;  --f5: 21px;
  --f6: 26px;  --f7: 33px;   --f8: 42px;  --f9: 53px;

  /* 间距：8px 基准 */
  --s1: 4px; --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --r-lg: 26px; --r-md: 18px; --r-sm: 10px;
  --content: 1200px;

  /* 分层阴影 —— 浅色玻璃的体积全靠它，不是靠边缘高光 */
  --lift-1: 0 1px 2px rgba(14,32,66,.06), 0 10px 24px rgba(14,32,66,.07), 0 30px 60px rgba(14,32,66,.06);
  --lift-2: 0 2px 4px rgba(14,32,66,.07), 0 16px 34px rgba(14,32,66,.10), 0 42px 80px rgba(14,32,66,.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--gnd);
  color: var(--ink);
  font-family: var(--sans), var(--cjk), sans-serif;
  font-size: var(--f4);
  line-height: 1.62;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; letter-spacing: 0; }
button { padding: 0; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }

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

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

.skip-link {
  position: fixed; top: 8px; left: 12px; z-index: 300;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: white;
  transform: translateY(-160%); transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.mask-icon {
  display: inline-block; width: 16px; height: 16px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--mask) center / contain no-repeat;
  mask: var(--mask) center / contain no-repeat;
}

/* ── 背景四层：极光 → 焦散照片 → 蓝晒网格 → 颗粒 ── */
.bg {
  position: fixed; inset: 0; z-index: -4;
  background: var(--gnd); overflow: hidden;
}
.bg i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(96px);
  opacity: calc(var(--orb-op) * var(--orb-mul));
}
.bg .i1 { width: 54vw; height: 54vw; left: -10vw; top: -12vw; background: var(--o1); }
.bg .i2 { width: 48vw; height: 48vw; left: 54vw;  top: 0;     background: var(--o2); }
.bg .i3 { width: 42vw; height: 42vw; left: 20vw;  top: 36vw;  background: var(--o3); }
.bg .i4 { width: 34vw; height: 34vw; left: 68vw;  top: 48vw;  background: var(--o4); }

/* 顶部提亮，让固定导航条永远有对比 */
.bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.72), transparent 24%, transparent 76%, rgba(255,255,255,.62));
}

/* 焦散照片：给玻璃提供可折射的锐利细节。
   极光是 blur(96px) 的平滑渐变，玻璃采样后只能是「磨砂」；
   这层的细亮线被玻璃推开、弯折，才读作「透镜」。 */
.photo {
  position: fixed; inset: 0; z-index: -3;
  pointer-events: none; overflow: hidden;
  opacity: .72;
  filter: brightness(1.13) saturate(.82) contrast(.96);
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 30%, rgba(0,0,0,.30) 58%, transparent 84%);
  mask-image: linear-gradient(to left, #000 0%, #000 30%, rgba(0,0,0,.30) 58%, transparent 84%);
}

/* 双层错速漂移 —— 同图叠两份，一份镜像、异速异缩放，lighten 混合。
   两层丝线相对移动产生干涉，读作「流动」。纯 transform，GPU 合成，零额外字节。 */
.photo i {
  position: absolute; inset: -9%; display: block;
  background: url('/assets/caustics.webp') right top / cover no-repeat;
  will-change: transform;
}
.photo i:nth-child(2) { transform: scaleX(-1); opacity: .52; mix-blend-mode: lighten; }

/* 蓝晒双层网格 —— 浅色的「科技感」主要来自这层结构，不是色相 */
.grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .9;
  background-image:
    linear-gradient(rgba(var(--grid-rgb), .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--grid-rgb), .055) 1px, transparent 1px),
    linear-gradient(rgba(var(--grid-rgb), .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--grid-rgb), .028) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(130% 95% at 50% 0%, #000 18%, transparent 80%);
  mask-image: radial-gradient(130% 95% at 50% 0%, #000 18%, transparent 80%);
}

/* 颗粒：消除大面积渐变的色带 */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.5'/></svg>");
}

/* ── 玻璃基元 ── */
.glass, .site-header, .overview-row, .project-list-item, .product-preview, .contact-strip-inner,
.stat-cell, .career-item {
  position: relative;
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(14,32,66,.05),
    var(--lift-1);
  transition: box-shadow .28s ease, background .28s ease, transform .24s cubic-bezier(.2,.8,.2,1);
}

/* 渐变描边：浅色版「上白下暗」，符合光从上方来 */
.glass::before, .site-header::before, .overview-row::before,
.project-list-item::before, .product-preview::before, .contact-strip-inner::before,
.stat-cell::before, .career-item::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(142deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,.55) 34%,
    rgba(14,32,66,.07) 66%,
    rgba(14,32,66,.13) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* 指针跟随的镜面反光 —— 液态玻璃最标志性的交互。
   浅色下用「加白提亮」实现（玻璃本就是半透明白）。 */
.glass::after, .site-header::after, .overview-row::after,
.project-list-item::after, .contact-strip-inner::after,
.stat-cell::after, .career-item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,.75), rgba(255,255,255,.24) 40%, transparent 66%);
  opacity: 0; transition: opacity .38s ease;
}
.glass:hover::after, .site-header:hover::after, .overview-row:hover::after,
.project-list-item:hover::after, .contact-strip-inner:hover::after,
.stat-cell:hover::after, .career-item:hover::after { opacity: 1; }

/* ── 导航 ── */
.site-header {
  position: fixed; top: 18px; left: 50%; z-index: 200;
  display: flex; align-items: center; gap: 28px;
  width: min(100% - 40px, var(--content));
  height: 56px; padding: 0 10px 0 20px;
  border-radius: 16px;
  transform: translateX(-50%);
  transition: height .3s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s, top .3s;
}
.site-header.is-scrolled { height: 48px; top: 12px; background: rgba(255,255,255,.78); }

.brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--f3); font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
}
.brand-mark {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ac); box-shadow: 0 0 12px rgba(var(--ac-rgb), .7);
}

.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 38px;
  color: var(--ink-2); font-size: var(--f2); white-space: nowrap;
  transition: color .16s;
}
.site-nav a::after {
  content: ""; position: absolute; right: 0; bottom: 4px; left: 0; height: 2px;
  background: var(--ac); transform: scaleX(0); transform-origin: left;
  transition: transform 170ms ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ac); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.language-switcher {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid rgba(14,32,66,.08); border-radius: 9px;
  background: rgba(14,32,66,.05);
}
.language-switcher button {
  min-width: 34px; height: 30px; padding: 0 8px; border-radius: 6px; cursor: pointer;
  color: var(--ink-3); font-size: var(--f1); font-weight: 500;
}
.language-switcher button[aria-pressed="true"] {
  background: #fff; color: var(--ac); box-shadow: 0 1px 3px rgba(14,32,66,.14);
}

/* ── 按钮 ── */
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: 14px;
  font-size: var(--f2); font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,.66); color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(14,32,66,.10), 0 2px 8px rgba(14,32,66,.07);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s, box-shadow .18s;
}
.button:hover {
  transform: translateY(-2px); background: #fff;
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(14,32,66,.16), 0 8px 20px rgba(14,32,66,.11);
}
.button.primary {
  background: var(--ac); color: #fff;
  box-shadow: 0 4px 14px rgba(var(--ac-rgb), .32);
}
.button.primary:hover { background: var(--ac); box-shadow: 0 10px 26px rgba(var(--ac-rgb), .4); }
.button:active { transform: translateY(0) scale(.975); }

/* ── 首页 HERO ── */
.home-main { overflow: hidden; }
.home-hero { position: relative; }
.home-hero-inner {
  display: grid; align-content: center;
  min-height: 100svh; padding: 130px 0 80px;
}
.hero-copy { max-width: 62ch; }
.hero-copy h1 {
  margin: 0; font-size: clamp(46px, 7.4vw, 88px);
  font-weight: 700; line-height: .96; letter-spacing: -.042em;
}
.hero-role {
  margin: var(--s4) 0 0; color: var(--ink);
  font-size: clamp(20px, 2.6vw, var(--f7)); font-weight: 500; letter-spacing: -.02em;
}
.hero-summary {
  max-width: 50ch; margin: var(--s5) 0 0;
  color: var(--ink-2); font-size: var(--f4); line-height: 1.76;
}
.hero-copy .button-row { margin-top: var(--s6); }

/* ── 区块标题 ── */
.section-heading, .portfolio-group-heading { margin-bottom: var(--s6); }
.section-heading h2, .portfolio-group-heading h2 {
  margin: 0; font-size: clamp(28px, 4.4vw, var(--f8));
  font-weight: 600; letter-spacing: -.032em; line-height: 1.06;
}
.section-heading p, .portfolio-group-heading p {
  max-width: 56ch; margin: var(--s3) 0 0; color: var(--ink-2); font-size: var(--f3);
}
.portfolio-kicker {
  display: block; margin-bottom: var(--s2);
  color: var(--ac); font-family: var(--mono), monospace;
  font-size: var(--f1); font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}

/* ── 概览：三块玻璃卡（容器退化为栅格） ── */
.overview-section { position: relative; padding: var(--s9) 0 0; }
.overview-panel {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4);
  background: none; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.overview-row {
  display: block; padding: 28px 26px; border: 0; border-radius: var(--r-lg);
}
.overview-row:hover {
  transform: translateY(-4px); background: rgba(255,255,255,.76);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(14,32,66,.05), var(--lift-2);
}
.overview-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(var(--ac-rgb), .10); border: 1px solid rgba(var(--ac-rgb), .24);
  color: var(--ac);
}
.overview-row h3 {
  margin: var(--s5) 0 var(--s3); font-size: var(--f5);
  font-weight: 600; letter-spacing: -.018em; line-height: 1.3;
}
.overview-row p { margin: 0; color: var(--ink-2); font-size: var(--f2); line-height: 1.72; }

/* ── 数据条：硬指标前置 ── */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4); margin-top: var(--s7);
}
.stat-cell { padding: 22px 22px; border-radius: var(--r-md); }
.stat-cell b {
  display: block; color: var(--ac);
  font-size: var(--f7); font-weight: 700; line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: var(--f4); font-weight: 600; }
.stat-cell > span {
  display: block; margin-top: var(--s2);
  color: var(--ink-2); font-size: var(--f2); line-height: 1.5;
}

/* ── 工作经历：左侧垂直时间轴 ──
   轴线自下（过去）向上（现在）收窄并变亮，顶端箭头指向「现在」。
   节点圆点画在卡片外的沟槽里，靠 .career-when 的伪元素定位到 .career-item 上。 */
.career-section { position: relative; padding: var(--s9) 0 0; }

.career-list {
  position: relative;
  display: grid; gap: 10px;
  padding-left: 40px;                 /* 让出时间轴沟槽 */
}
/* 轴线 */
.career-list::before {
  content: ""; position: absolute;
  left: 12px; top: 15px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(to top, rgba(var(--ac-rgb), .10), rgba(var(--ac-rgb), .55) 42%, var(--ac));
}
/* 顶端箭头，指向「现在」 */
.career-list::after {
  content: ""; position: absolute;
  left: 6px; top: 1px; width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 11px solid var(--ac);
}

.career-now {
  margin: 0 0 2px; height: 16px;
  display: flex; align-items: center;
  color: var(--ac); font-family: var(--mono), monospace;
  font-size: var(--f1); letter-spacing: .14em; text-transform: uppercase;
}

.career-item {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--s6); align-items: center;
  padding: 22px 28px; border-radius: var(--r-md);
}
/* 轴上的节点圆点 —— .career-when 保持 static，伪元素才会落在 .career-item 上 */
.career-when::before {
  content: ""; position: absolute;
  left: -36px; top: 50%; margin-top: -9px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gnd); border: 2.5px solid var(--ac);
}
.career-item:first-of-type .career-when::before {
  box-shadow: 0 0 0 4px rgba(var(--ac-rgb), .16);
}

.career-when { display: flex; flex-direction: column; gap: 4px; }
.career-date {
  color: var(--ink); font-family: var(--mono), monospace;
  font-size: var(--f3); font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.career-span { color: var(--ink-3); font-size: var(--f1); }

.career-what h3 {
  margin: 0; font-size: var(--f4); font-weight: 600;
  letter-spacing: -.014em; line-height: 1.34;
}
.career-role {
  display: inline-block; margin-top: 4px;
  color: var(--ac); font-size: var(--f2);
}
.career-item.edu .career-role { color: var(--ink-3); }

.career-item:hover, .stat-cell:hover {
  transform: translateY(-3px); background: rgba(255,255,255,.76);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(14,32,66,.05), var(--lift-2);
}

/* ── 求职意向 ── */
.avail { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.avail span {
  padding: 6px 13px; border-radius: 999px;
  background: rgba(var(--ac-rgb), .09); border: 1px solid rgba(var(--ac-rgb), .22);
  color: var(--ac); font-size: var(--f1); letter-spacing: .02em;
}

@media (max-width: 1060px) {
  .stat-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-section, .career-section { padding-top: var(--s8); }
}
@media (max-width: 760px) {
  .stat-bar { gap: 10px; margin-top: var(--s6); }
  .stat-cell { padding: 18px 18px; }
  .overview-section, .career-section { padding-top: var(--s7); }
  .section-heading, .portfolio-group-heading { margin-bottom: var(--s5); }
  .section-heading p, .portfolio-group-heading p { margin-top: var(--s2); }
  .career-list { padding-left: 26px; }
  .career-list::before { left: 6px; }
  .career-list::after { left: 0; border-left-width: 6px; border-right-width: 6px; border-bottom-width: 9px; }
  .career-item { grid-template-columns: 1fr; gap: 6px; padding: 18px 18px; align-items: start; }
  .career-when { flex-direction: row; align-items: baseline; gap: var(--s3); }
  .career-when::before { left: -27px; top: 26px; margin-top: 0; width: 11px; height: 11px; border-width: 2px; }
}

/* ── 联系区 ── */
.contact-strip { position: relative; padding: var(--s9) 0 var(--s7); border: 0; background: none; }
.contact-strip-inner {
  display: grid; grid-template-columns: minmax(320px, 1fr) auto; gap: var(--s7);
  align-items: center; padding: 56px 48px; border-radius: var(--r-lg);
}
.contact-strip h2 {
  max-width: 18ch; margin: 0; color: var(--ink);
  font-size: clamp(28px, 5vw, var(--f9)); font-weight: 600;
  letter-spacing: -.035em; line-height: 1.06;
}
.contact-strip p { max-width: 54ch; margin: var(--s4) 0 0; color: var(--ink-2); line-height: 1.72; }

.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s3);
  margin-top: var(--s7); padding: var(--s5) 4px var(--s7);
  color: var(--ink-3); font-family: var(--mono), monospace; font-size: var(--f1);
  letter-spacing: .06em;
}

/* ── 内页 ── */
.inner-main { min-height: 100svh; padding-top: 136px; padding-bottom: var(--s8); }
.detail-main { min-height: 100svh; padding-top: 118px; padding-bottom: var(--s8); }

.page-intro { max-width: 780px; margin-bottom: var(--s7); }
.page-intro h1 {
  margin: 0; font-size: clamp(40px, 6vw, var(--f9));
  font-weight: 700; line-height: 1.0; letter-spacing: -.038em;
}
.page-intro p { max-width: 60ch; margin: var(--s5) 0 0; color: var(--ink-2); font-size: var(--f4); line-height: 1.7; }

.portfolio-groups { display: grid; gap: var(--s9); }
.portfolio-group-heading { margin-bottom: var(--s5); padding-bottom: var(--s4); }

/* ── 作品列表：玻璃行 ── */
.project-list { display: grid; gap: 10px; }
.project-list-item {
  --project-accent: var(--ac);
  display: grid; grid-template-columns: 52px minmax(240px, 1fr) 176px 84px 24px;
  gap: 20px; align-items: center;
  min-height: 0; padding: 20px 24px; border: 0; border-radius: var(--r-md);
}
.project-list-item:hover {
  transform: translateX(6px); background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(14,32,66,.05), var(--lift-2);
}
.project-list-item:active { transform: translateX(6px) scale(.995); }
.project-list-item.accent-mint { --project-accent: #0e9f8a; }
.project-list-item.accent-coral { --project-accent: #e2603f; }
.project-list-item.accent-violet { --project-accent: #6758d9; }

.project-index {
  color: var(--project-accent); font-family: var(--mono), monospace;
  font-size: var(--f2); font-weight: 500; font-variant-numeric: tabular-nums;
}
.project-list-copy { padding: 0; border: 0; }
.project-list-copy h2, .project-list-copy h3 {
  margin: 0; font-size: var(--f5); font-weight: 600; letter-spacing: -.018em; line-height: 1.2;
}
.project-list-item:hover .project-list-copy h2,
.project-list-item:hover .project-list-copy h3 { color: var(--ac); }
.project-list-copy p { max-width: 62ch; margin: var(--s2) 0 0; color: var(--ink-2); font-size: var(--f2); line-height: 1.6; }
.project-meta { color: var(--ink-3); font-size: var(--f2); font-weight: 400; }
.project-arrow { justify-self: end; color: var(--ink-3); transition: transform .2s, color .2s; }
.project-list-item:hover .project-arrow { transform: translateX(4px); color: var(--ac); }

/* ── 详情页 ── */
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s5);
  color: var(--ac); font-size: var(--f2); font-weight: 500;
}
.detail-heading { max-width: 900px; }
.detail-heading h1 {
  margin: 0; font-size: clamp(38px, 5.6vw, var(--f9));
  font-weight: 700; line-height: 1.0; letter-spacing: -.038em;
}
.detail-heading h1.detail-long-title { font-size: clamp(30px, 4.4vw, var(--f8)); overflow-wrap: anywhere; }
.detail-heading > p { max-width: 66ch; margin: var(--s4) 0 0; color: var(--ink-2); font-size: var(--f4); line-height: 1.7; }
.detail-heading .button-row { margin-top: var(--s5); }
.detail-heading > .project-status { margin-top: var(--s5); }

.project-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(var(--ac-rgb), .10); border: 1px solid rgba(var(--ac-rgb), .24);
  color: var(--ac); font-family: var(--mono), monospace; font-size: var(--f1); letter-spacing: .04em;
}
.project-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

.detail-layout {
  display: grid; grid-template-columns: minmax(520px, 1.28fr) minmax(320px, .72fr);
  gap: var(--s7); align-items: start; margin-top: var(--s6);
}
.product-preview {
  position: relative; min-height: 470px; margin: 0;
  overflow: hidden; border: 0; border-radius: var(--r-lg);
}
.preview-media { display: grid; place-items: center; background: #0b1827; }
.preview-media > img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.preview-healthbinder { background: #edf6f4; }
.preview-healthbinder > img { object-position: center 31%; }
.preview-pulsecard { padding: 42px; background: #10161d; }
.preview-pulsecard > img { width: min(100%, 650px); height: auto; min-height: 0; border-radius: var(--r-sm); box-shadow: 0 24px 70px rgba(0,0,0,.42); }
.preview-rail > img { object-position: center; }
.preview-caption {
  position: absolute; right: 14px; bottom: 12px; z-index: 5;
  padding: 5px 9px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(7,20,34,.54);
  color: rgba(255,255,255,.82); font-family: var(--mono), monospace; font-size: var(--f1);
}

.detail-info { border: 0; }
.detail-section { padding: var(--s5) 0; border-bottom: 1px solid rgba(14,32,66,.10); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h2 { margin: 0; font-size: var(--f5); font-weight: 600; letter-spacing: -.018em; }
.detail-section > p { margin: var(--s3) 0 0; color: var(--ink-2); font-size: var(--f2); line-height: 1.75; }

.capability-list { margin-top: var(--s2); }
.capability-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; }
.capability-item + .capability-item { border-top: 1px solid rgba(14,32,66,.09); }
.capability-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: rgba(var(--ac-rgb), .10); border: 1px solid rgba(var(--ac-rgb), .22); color: var(--ac);
}
.capability-item strong { display: block; font-size: var(--f3); font-weight: 600; }
.capability-item p { margin: var(--s1) 0 0; color: var(--ink-2); font-size: var(--f2); line-height: 1.6; }

.back-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: var(--s6);
  color: var(--ink-3); font-size: var(--f2); font-weight: 500; transition: color .16s;
}
.back-link:hover { color: var(--ac); }

/* ── 动效 ── */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js .lift { opacity: 0; }
.js .lift.go { animation: rise .72s cubic-bezier(.16,.84,.28,1) forwards; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .66s ease, transform .66s cubic-bezier(.16,.84,.28,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .bg .i1 { animation: d1 26s ease-in-out infinite alternate; }
  .bg .i2 { animation: d2 31s ease-in-out infinite alternate; }
  .bg .i3 { animation: d3 37s ease-in-out infinite alternate; }
  .bg .i4 { animation: d2 43s ease-in-out infinite alternate; }
  .photo i:nth-child(1) { animation: flowA 44s ease-in-out infinite alternate; }
  .photo i:nth-child(2) { animation: flowB 61s ease-in-out infinite alternate; }
  .brand-mark { animation: pulse 2.8s ease-in-out infinite; }
}
@keyframes d1 { to { transform: translate3d(7vw, 6vw, 0) scale(1.18); } }
@keyframes d2 { to { transform: translate3d(-8vw, 5vw, 0) scale(1.12); } }
@keyframes d3 { to { transform: translate3d(6vw, -7vw, 0) scale(1.22); } }
@keyframes flowA {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.10) translate3d(-1.8%, 1.2%, 0); }
}
@keyframes flowB {
  from { transform: scaleX(-1) scale(1.08) translate3d(0, 0, 0) rotate(.6deg); }
  to   { transform: scaleX(-1) scale(1) translate3d(2.4%, -1.6%, 0) rotate(-.5deg); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(var(--ac-rgb), .7); opacity: 1; }
  50%      { box-shadow: 0 0 20px rgba(var(--ac-rgb), .9), 0 0 32px rgba(var(--ac-rgb), .45); opacity: .8; }
}

/* ── 响应式 ── */
@media (max-width: 1060px) {
  .detail-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .contact-strip { padding: var(--s8) 0 var(--s7); }
  .product-preview { min-height: 0; }
  .preview-media > img { min-height: 340px; }
  .overview-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .shell { width: min(100% - 32px, var(--content)); }
  .site-header { top: 10px; width: calc(100% - 24px); height: 50px; padding: 0 8px 0 14px; gap: 14px; }
  .site-header.is-scrolled { height: 46px; top: 8px; }
  .site-nav { gap: 15px; }
  .site-nav a { min-height: 34px; font-size: var(--f1); }
  /* 手机端统一保留 3 个入口。首页有 5 项（多「经历」），内页 4 项：
     :not(:last-child) 让第 4 项只在它不是最后一个时才隐藏，两种结构共用一条规则。 */
  .site-nav a:nth-child(3) { display: none; }
  .site-nav a:nth-child(4):not(:last-child) { display: none; }
  .language-switcher { margin-left: 6px; }
  .language-switcher button { min-width: 30px; height: 28px; padding: 0 6px; }
  .button { height: 44px; padding: 0 16px; font-size: var(--f1); }
  .home-hero-inner { padding: 108px 0 64px; min-height: 0; }
  .contact-strip { padding: var(--s7) 0 var(--s6); }
  .contact-strip-inner { grid-template-columns: 1fr; gap: var(--s5); padding: 34px 24px; }
  .inner-main, .detail-main { padding-top: 104px; }
  .project-list-item { grid-template-columns: 40px minmax(0, 1fr) auto 20px; gap: 12px; padding: 18px 16px; }
  .project-meta { display: none; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal, .js .lift { opacity: 1; transform: none; }
}

/* 不支持 backdrop-filter 时退化成近实心白，依然成立 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .site-header, .overview-row, .project-list-item, .contact-strip-inner, .button,
  .stat-cell, .career-item {
    background: rgba(255, 255, 255, .94);
  }
}

/* ============================================================
   模拟界面（详情页里的 App 截图仿真）—— 原样保留。
   这里的 7-11px 是刻意的：它们在模拟缩小的界面，抬高会撑破容器。
   ============================================================ */
.preview-cli { display: grid; grid-template-columns: 180px minmax(0, 1fr); background: #0b1827; color: white; }
.preview-sidebar { padding: 24px 18px; border-right: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); }
.preview-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 34px; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.preview-brand .mask-icon { color: #53e392; }
.preview-nav-item { display: block; padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.5); font-size: 10px; }
.preview-nav-item.active { color: #8fc1ff; background: rgba(11,108,255,.12); }
.preview-main { padding: 28px 24px 52px; }
.preview-main h2 { margin: 0 0 24px; font-size: 18px; }
.preview-group-label { margin: 20px 0 9px; color: rgba(255,255,255,.45); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.preview-status-row { display: grid; grid-template-columns: minmax(0,1fr) 82px 56px; gap: 12px; align-items: center; min-height: 64px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.preview-status-row:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.preview-status-row strong { display: block; margin-bottom: 4px; }
.preview-status-row small { color: rgba(255,255,255,.44); }
.status-ready { color: #59e69a; font-family: var(--mono); font-size: 9px; }
.status-time { color: rgba(255,255,255,.42); font-family: var(--mono); font-size: 9px; text-align: right; }

.preview-arcora { display: grid; grid-template-columns: 170px minmax(0,1fr); background: #f7faff; color: #12243e; }
.arcora-sidebar { padding: 26px 18px; background: #0b6cff; color: white; }
.arcora-mark { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 28px; border: 1px solid rgba(255,255,255,.55); border-radius: 7px; font-size: 18px; }
.arcora-sidebar span:not(.arcora-mark) { display: block; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 10px; }
.arcora-content { padding: 30px 26px 50px; }
.arcora-content h2 { margin: 0 0 20px; font-size: 21px; }
.arcora-search { padding: 12px 14px; border: 1px solid #c7d7ed; border-radius: 5px; color: #7d8ca1; font-size: 10px; }
.archive-item { display: grid; grid-template-columns: 68px minmax(0,1fr) 52px; gap: 14px; align-items: center; min-height: 70px; border-bottom: 1px solid #d8e2ef; font-size: 10px; }
.archive-item span { color: #7d8ca1; }
.archive-item span:last-child { text-align: right; }

.preview-checker { display: grid; grid-template-columns: 210px minmax(0,1fr); padding: 34px; background: #0a1928; color: white; }
.checker-gauge-wrap { display: grid; place-items: center; border-right: 1px solid rgba(255,255,255,.12); }
.checker-gauge { display: grid; width: 146px; height: 146px; place-items: center; border: 18px solid #126fff; border-right-color: #68e3b0; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.checker-gauge strong { display: block; font-size: 27px; text-align: center; }
.checker-gauge span { display: block; margin-top: 5px; color: rgba(255,255,255,.52); font-size: 9px; text-align: center; }
.checker-report { padding: 12px 0 40px 32px; }
.checker-report h2 { margin: 0 0 26px; font-size: 19px; }
.checker-row { display: grid; grid-template-columns: minmax(0,1fr) 86px; align-items: center; min-height: 68px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.checker-row:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.checker-row span:last-child { color: #62e5a1; font-family: var(--mono); font-size: 9px; text-align: right; }

.preview-batch { background: #f8fbfc; color: #102035; }
.batch-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 24px; border-bottom: 1px solid #d6e0e7; background: rgba(255,255,255,.74); }
.batch-toolbar strong { font-size: 15px; }
.batch-toolbar span { color: var(--coral); font-family: var(--mono); font-size: 9px; }
.batch-content { padding: 22px 24px 52px; }
.batch-row { display: grid; grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr); gap: 12px; align-items: center; min-height: 72px; border-bottom: 1px solid #dbe3e9; font-family: var(--mono); font-size: 10px; }
.batch-row span:nth-child(2) { color: var(--coral); text-align: center; }
.batch-row span:last-child { color: var(--blue); }

.preview-smi { display: grid; grid-template-rows: 62px minmax(0, 1fr); background: #111927; color: white; }
.smi-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.035); }
.smi-toolbar strong { font-size: 15px; }
.smi-toolbar span { color: #9f93ff; font-family: var(--mono); font-size: 9px; }
.smi-content { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 28px; padding: 28px 24px 48px; }
.smi-score { display: grid; align-content: center; justify-items: center; border-right: 1px solid rgba(255,255,255,.11); }
.smi-score strong { font-size: 58px; line-height: 1; color: #ff8b7f; }
.smi-score span { margin-top: 9px; color: rgba(255,255,255,.52); font-family: var(--mono); font-size: 9px; }
.smi-hotspots h2 { margin: 0 0 18px; font-size: 18px; }
.smi-row { display: grid; grid-template-columns: minmax(0,1fr) 54px; align-items: center; min-height: 68px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.smi-row:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.smi-row small { display: block; margin-top: 4px; color: rgba(255,255,255,.42); }
.smi-row span:last-child { color: #ff8b7f; font-family: var(--mono); font-size: 9px; text-align: right; }

.preview-two-pane { display: grid; grid-template-rows: 62px minmax(0, 1fr); background: #101a27; color: white; }
.two-pane-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.035); }
.two-pane-toolbar strong { font-size: 15px; }
.two-pane-toolbar span { color: #65dfb0; font-family: var(--mono); font-size: 9px; }
.two-pane-stage { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); min-height: 408px; }
.two-pane-column { min-width: 0; padding: 28px 24px 50px; }
.two-pane-column > small { display: block; margin-bottom: 20px; color: rgba(255,255,255,.42); font-family: var(--mono); font-size: 9px; }
.two-pane-primary { border-right: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.025); }
.two-pane-route { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; min-height: 62px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.52); font-size: 11px; }
.two-pane-route:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.two-pane-route span { color: rgba(255,255,255,.32); font-family: var(--mono); font-size: 9px; }
.two-pane-route.active { color: white; }
.two-pane-route.active span { color: #65dfb0; }
.two-pane-detail-card { padding: 20px; border: 1px solid rgba(101,223,176,.33); border-radius: 6px; background: rgba(101,223,176,.08); }
.two-pane-detail-kicker { display: block; margin-bottom: 12px; color: #65dfb0; font-family: var(--mono); font-size: 8px; }
.two-pane-detail-card strong { overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; }
.two-pane-detail-card p { margin: 14px 0 0; color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.65; }
.two-pane-stack { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.48); font-family: var(--mono); font-size: 8px; }
.two-pane-stack strong { color: #8fb9ff; font-size: 9px; }

.preview-lanhu { display: grid; grid-template-rows: 62px minmax(0, 1fr); background: #f7fbfc; color: #102035; }
.lanhu-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid #d7e2e7; background: rgba(255,255,255,.78); }
.lanhu-toolbar strong { font-size: 15px; }
.lanhu-toolbar span { color: var(--violet); font-family: var(--mono); font-size: 9px; }
.lanhu-pipeline { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); grid-template-rows: minmax(210px,1fr) auto; min-height: 408px; padding: 26px 24px 50px; }
.lanhu-input, .lanhu-engine { min-width: 0; padding: 22px; }
.lanhu-input { border: 1px solid #d4dfe7; border-right: 0; background: white; }
.lanhu-input small, .lanhu-engine small { display: block; margin-bottom: 30px; color: var(--violet); font-family: var(--mono); font-size: 8px; }
.lanhu-input strong { display: block; overflow-wrap: anywhere; color: #36516d; font-family: var(--mono); font-size: 10px; line-height: 1.6; }
.lanhu-input p { margin: 18px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.lanhu-engine { border: 1px solid #24364b; background: #142234; color: white; }
.lanhu-engine small { color: #9f93ff; }
.lanhu-engine strong { display: block; margin-top: 24px; font-size: 12px; }
.lanhu-code-line { width: 70%; height: 7px; margin-top: 11px; background: rgba(159,147,255,.58); }
.lanhu-code-line.wide { width: 92%; margin-top: 0; background: rgba(101,223,176,.66); }
.lanhu-code-line.short { width: 48%; background: rgba(143,185,255,.62); }
.lanhu-targets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-right: 1px solid #d4dfe7; border-bottom: 1px solid #d4dfe7; border-left: 1px solid #d4dfe7; background: rgba(255,255,255,.72); }
.lanhu-targets > div { min-width: 0; padding: 16px 12px; }
.lanhu-targets > div + div { border-left: 1px solid #d4dfe7; }
.lanhu-targets span { display: block; margin-bottom: 8px; color: var(--violet); font-family: var(--mono); font-size: 8px; }
.lanhu-targets strong { font-size: 10px; }

/* ── 作品集右侧垂直概览 ──
   sticky 常驻，滚动时用 IntersectionObserver 高亮当前分类。 */
.works-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 232px;
  gap: var(--s8); align-items: start;
}
.works-rail { position: sticky; top: 104px; }
.rail-card { padding: 22px 20px; border-radius: var(--r-md); }
.rail-total { display: flex; align-items: baseline; gap: 8px; padding-bottom: var(--s4); border-bottom: 1px solid rgba(14,32,66,.10); }
.rail-total b { color: var(--ac); font-size: var(--f8); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rail-total span { color: var(--ink-2); font-size: var(--f2); }
.rail-list { display: grid; gap: 2px; margin-top: var(--s3); }
.rail-item {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px;
  align-items: center; padding: 9px 8px; border-radius: 9px;
  color: var(--ink-2); font-size: var(--f2);
  transition: background .18s, color .18s;
}
.rail-item:hover { background: rgba(var(--ac-rgb), .07); color: var(--ink); }
.rail-item.is-current { background: rgba(var(--ac-rgb), .11); color: var(--ac); }
.rail-item .n { color: var(--ink-3); font-family: var(--mono), monospace; font-size: var(--f1); font-variant-numeric: tabular-nums; }
.rail-item.is-current .n { color: var(--ac); }
.rail-item .c {
  min-width: 22px; padding: 1px 6px; border-radius: 999px; text-align: center;
  background: rgba(14,32,66,.06); color: var(--ink-3);
  font-family: var(--mono), monospace; font-size: var(--f1); font-variant-numeric: tabular-nums;
}
.rail-item.is-current .c { background: rgba(var(--ac-rgb), .18); color: var(--ac); }

/* ── 作品状态芯片：语义色，与强调色分开 ── */
.project-state {
  justify-self: start; padding: 4px 11px; border-radius: 999px;
  font-family: var(--mono), monospace; font-size: var(--f1); letter-spacing: .03em;
  white-space: nowrap;
}
.project-state.is-live { background: rgba(7,112,75,.10);  border: 1px solid rgba(7,112,75,.26);  color: #07704b; }
.project-state.is-wip  { background: rgba(154,91,0,.12);  border: 1px solid rgba(154,91,0,.30);  color: #8a5200; }
.detail-heading > .project-state { display: inline-block; margin-top: var(--s4); }

@media (max-width: 1060px) {
  .works-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .works-rail { position: static; order: -1; }
  .rail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rail-list { grid-template-columns: 1fr; }
}

/* ── 上架截图画廊：横向滚动，卡片本身不做玻璃（素材自带版式） ── */
.shot-title { margin: 0 0 var(--s4); font-size: var(--f5); font-weight: 600; letter-spacing: -.018em; }
.shot-note { max-width: 62ch; margin: 0 0 var(--s5); color: var(--ink-2); font-size: var(--f2); line-height: 1.7; }
.shot-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 208px;
  gap: var(--s4); overflow-x: auto; overscroll-behavior-x: contain;
  padding: 4px 4px var(--s4); margin: 0;
  scroll-snap-type: x proximity;
}
.shot-gallery .shot { margin: 0; scroll-snap-align: start; }
.shot-gallery img {
  width: 100%; height: auto; border-radius: 14px;
  border: 1px solid rgba(14,32,66,.10);
  box-shadow: var(--lift-1);
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease;
}
.shot-gallery .shot:hover img { transform: translateY(-4px); box-shadow: var(--lift-2); }
.shot-gallery figcaption {
  margin-top: var(--s3); color: var(--ink-2); font-size: var(--f2); line-height: 1.5;
}
@media (max-width: 760px) {
  .shot-gallery { grid-auto-columns: 168px; gap: var(--s3); }
}

/* ── 中国象棋 3D：模拟界面 ── */
.preview-xiangqi { display: grid; grid-template-rows: 62px minmax(0, 1fr); background: #14202f; color: white; }
.xq-hud { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.035); }
.xq-hud strong { font-size: 15px; }
.xq-hud span { color: #9f93ff; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.xq-stage { position: relative; display: grid; place-items: center; min-height: 408px; padding: 26px; background: radial-gradient(120% 90% at 50% 12%, #1d3049 0%, #101a27 68%); }
.xq-board {
  position: relative; width: min(100%, 300px); aspect-ratio: 9 / 10;
  border: 1px solid rgba(214,178,116,.5); border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(214,178,116,.34) 0 1px, transparent 1px calc(100% / 8)),
    repeating-linear-gradient(180deg, rgba(214,178,116,.34) 0 1px, transparent 1px calc(100% / 9)),
    linear-gradient(160deg, #2b3d52, #1b2a3c);
  transform: perspective(760px) rotateX(26deg) rotateZ(-2deg);
  box-shadow: 0 34px 60px rgba(0,0,0,.5);
}
.xq-river { position: absolute; left: 0; right: 0; top: 45%; height: 10%; display: flex; align-items: center; justify-content: space-around; background: rgba(16,26,39,.62); color: rgba(214,178,116,.72); font-size: 9px; letter-spacing: .3em; }
.xq-piece { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; font-size: 12px; font-weight: 700; box-shadow: 0 5px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.5); }
.xq-piece.red { background: #f4ede0; border: 2px solid #c8402f; color: #c8402f; }
.xq-piece.black { background: #f4ede0; border: 2px solid #1f2a37; color: #1f2a37; }
.xq-piece.sel { box-shadow: 0 0 0 3px rgba(212,175,55,.66), 0 5px 10px rgba(0,0,0,.5); }
.xq-legend { position: absolute; right: 16px; bottom: 14px; display: grid; gap: 5px; font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,.5); text-align: right; }
.xq-legend b { color: #65dfb0; font-weight: 500; }

@media (max-width: 760px) {
  .preview-media > img { min-height: 380px; }
  .preview-pulsecard { padding: 24px 18px; }
  .preview-pulsecard > img { min-height: 0; }
  .preview-cli, .preview-arcora, .preview-checker { grid-template-columns: 1fr; }
  .preview-sidebar, .arcora-sidebar, .checker-gauge-wrap { display: none; }
  .preview-main, .arcora-content { padding: 22px 16px 48px; }
  .preview-status-row { grid-template-columns: minmax(0,1fr) 66px; min-height: 60px; }
  .status-time { display: none; }
  .archive-item { grid-template-columns: minmax(0,1fr) 42px; }
  .archive-item span:first-child { display: none; }
  .preview-checker { display: block; padding: 20px 17px; }
  .checker-report { padding: 8px 0 44px; }
  .checker-row { grid-template-columns: minmax(0,1fr) 72px; }
  .batch-toolbar { padding: 0 16px; }
  .batch-content { padding: 12px 15px 48px; }
  .batch-row { grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); gap: 6px; min-height: 66px; font-size: 8px; }
  .smi-content { grid-template-columns: 1fr; padding: 24px 17px 48px; }
  .smi-score { display: none; }
  .two-pane-stage { grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); }
  .two-pane-column { padding: 22px 14px 46px; }
  .two-pane-column > small { margin-bottom: 14px; font-size: 7px; }
  .two-pane-route { grid-template-columns: 22px minmax(0,1fr); min-height: 54px; font-size: 9px; }
  .two-pane-detail-card { padding: 14px 12px; }
  .two-pane-detail-card strong { font-size: 9px; }
  .two-pane-detail-card p { font-size: 9px; }
  .two-pane-stack { align-items: flex-start; flex-direction: column; padding: 12px; }
  .lanhu-pipeline { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 18px 16px 46px; }
  .lanhu-input, .lanhu-engine { padding: 17px; }
  .lanhu-input { border-right: 1px solid #d4dfe7; border-bottom: 0; }
  .lanhu-input small, .lanhu-engine small { margin-bottom: 18px; }
  .lanhu-targets { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .lanhu-targets > div:nth-child(3) { border-top: 1px solid #d4dfe7; border-left: 0; }
  .lanhu-targets > div:nth-child(4) { border-top: 1px solid #d4dfe7; }
}
