/* ============ 牢凌作品集 · 全站样式 ============ */
:root {
  --paper: #f4f2ee;
  --ink: #111112;
  --ink-soft: #55555a;
  --ink-faint: #9b9b9e;
  --dark: #0e0e10;
  --dark-panel: #161618;
  --dark-line: #2c2c2f;
  --paper-line: #d8d5cf;
  --accent: #e8420c;
  --code: ui-monospace, 'Cascadia Code', Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ============ NAV ============ */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px); height: 64px;
  transition: background .35s, box-shadow .35s;
}
nav#nav.scrolled { background: rgba(244,242,238,0.9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--paper-line); }
nav#nav .brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 15px; letter-spacing: 0.04em; }
nav#nav .brand .diamond { width: 11px; height: 11px; background: var(--ink); transform: rotate(45deg); transition: background .2s; }
nav#nav .brand:hover .diamond { background: var(--accent); }
nav#nav .links { display: flex; gap: clamp(16px, 2.6vw, 36px); align-items: center; }
nav#nav .links a {
  font-family: var(--code); font-size: 11.5px; letter-spacing: 0.22em;
  color: var(--ink-soft); text-transform: uppercase; position: relative; padding: 4px 0;
}
nav#nav .links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .28s;
}
nav#nav .links a:hover { color: var(--ink); }
nav#nav .links a:hover::after { width: 100%; }
nav#nav .links a.ext { border: 1px solid var(--paper-line); padding: 6px 14px; color: var(--ink); }
nav#nav .links a.ext::after { display: none; }
nav#nav .links a.ext:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* ============ HERO ============ */
.hero {
  min-height: 76svh; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(20px, 4vw, 56px);
  overflow: hidden;
}
.hero .ghost {
  position: absolute; top: 10vh; left: 50%; transform: translateX(-50%);
  font-family: 'Arial Black', 'Segoe UI', sans-serif;
  font-size: clamp(120px, 22vw, 300px); font-weight: 900; line-height: 1;
  letter-spacing: 0.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px #dcd9d2;
  user-select: none; pointer-events: none;
}
.hero .file {
  position: absolute; top: 92px; left: clamp(20px, 4vw, 56px);
  font-family: var(--code); font-size: 11px; letter-spacing: 0.26em;
  color: var(--ink-faint); display: flex; align-items: center; gap: 14px;
}
.hero .file b { color: var(--accent); font-weight: 700; }
.hero .file .rule { width: 54px; height: 1px; background: var(--ink-faint); }
.hero-inner { position: relative; padding-bottom: 42px; }
.hero h1 {
  font-size: clamp(38px, 6.6vw, 88px); font-weight: 900;
  line-height: 1.14; letter-spacing: 0.005em; margin-left: -0.04em;
}
.hero h1 .row { display: block; }
.hero h1 .thin { font-weight: 350; }
.hero h1 .em { color: var(--accent); white-space: nowrap; }
.hero .foot-row {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--ink);
}
.hero .foot-row p { max-width: 520px; color: var(--ink-soft); font-size: 15px; }
.hero .foot-row .scroll-cue {
  font-family: var(--code); font-size: 11px; letter-spacing: 0.3em; color: var(--ink-faint);
  display: flex; align-items: center; gap: 10px;
}
.hero .scroll-cue .bar { width: 1px; height: 34px; background: var(--ink-faint); position: relative; overflow: hidden; }
.hero .scroll-cue .bar::after {
  content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--accent); animation: drop 1.6s infinite cubic-bezier(.7,0,.2,1);
}
@keyframes drop { to { top: 100%; } }
.hero h1 .em::after {
  content: ''; position: absolute; left: 0; bottom: 0.08em; height: 0.045em; width: 100%;
  background: var(--accent); transform-origin: left; animation: underline 1s 0.5s both cubic-bezier(.7,0,.2,1);
}
.hero .em { position: relative; display: inline-block; }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============ TICKER ============ */
.ticker {
  background: var(--ink); color: var(--paper); overflow: hidden; height: 46px;
  display: flex; align-items: center; position: relative; z-index: 2;
}
.ticker .track { display: flex; white-space: nowrap; animation: marquee 26s linear infinite; }
.ticker span {
  font-family: var(--code); font-size: 12px; letter-spacing: 0.22em; padding: 0 34px;
  display: inline-flex; align-items: center; gap: 34px;
}
.ticker span::after { content: '◆'; font-size: 8px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 通用 section 头 ============ */
.sec-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: clamp(44px, 7vh, 76px); }
.sec-head .no { font-family: var(--code); font-size: 13px; color: var(--accent); letter-spacing: 0.2em; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: 0.04em; }
.sec-head .en { font-family: var(--code); font-size: 11px; letter-spacing: 0.3em; color: var(--ink-faint); text-transform: uppercase; }
.sec-head .rule { flex: 1; height: 1px; background: var(--dark-line); }
.about .sec-head .rule { background: var(--paper-line); }

/* ============ 首页作品网格 ============ */
.works { background: var(--dark); color: var(--paper); padding: clamp(70px, 10vh, 120px) 0 clamp(70px, 10vh, 120px); }
.works-inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(30px, 4vw, 56px); }
.group-head { display: flex; align-items: baseline; gap: 16px; margin: clamp(56px, 8vh, 84px) 0 clamp(26px, 4vw, 40px); }
.group-head:first-of-type { margin-top: 0; }
.group-head .g-tag { font-family: var(--code); font-size: 11px; color: var(--accent); letter-spacing: 0.14em; }
.group-head h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 850; letter-spacing: 0.04em; }
.group-head .en { font-family: var(--code); font-size: 10.5px; letter-spacing: 0.22em; color: var(--ink-faint); text-transform: uppercase; }
.group-head .rule { flex: 1; height: 1px; background: var(--dark-line); }
.gcard { display: block; }
.gthumb {
  position: relative; border: 1px solid var(--dark-line); overflow: hidden;
  aspect-ratio: 16 / 10.4; background: var(--dark-panel);
}
.gthumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.2,.6,.2,1), filter .7s; filter: saturate(0.92);
}
.gcard:hover .gthumb img { transform: scale(1.045); filter: saturate(1); }
.gthumb .cap {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  font-family: var(--code); font-size: 10.5px; letter-spacing: 0.18em;
  background: var(--accent); color: #fff; padding: 5px 14px;
}
.gthumb.typeset {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(20px, 3vw, 44px); gap: 3px;
  background: linear-gradient(rgba(244,242,238,0.025) 1px, transparent 1px) 0 0 / 100% 28px, var(--dark-panel);
  transition: background-color .4s;
}
.gcard:hover .gthumb.typeset { background-color: #1b1b1e; }
.gthumb.typeset .ln {
  font-family: var(--code); font-size: clamp(13px, 1.4vw, 17px); letter-spacing: 0.05em;
  color: #7c7c80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gthumb.typeset .ln b { color: var(--paper); font-weight: 700; }
.gthumb.typeset .ln i { color: var(--accent); font-style: normal; }
.gthumb.typeset .ln.dim { color: #4a4a4e; }
.gmeta {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding-top: 16px; border-top: 1px solid var(--dark-line); margin-top: 16px;
}
.gmeta .gno { font-family: var(--code); font-size: 12px; color: #6d6d70; letter-spacing: 0.1em; padding-top: 3px; }
.gmeta .gt { flex: 1; }
.gmeta .gcat { font-family: var(--code); font-size: 10.5px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 4px; }
.gmeta h3 { font-size: 20px; font-weight: 900; letter-spacing: 0.02em; line-height: 1.35; }
.gmeta .gsub { font-size: 13px; color: #a8a8ab; margin-top: 4px; }
.gmeta .garr {
  font-family: var(--code); font-size: 18px; color: var(--paper);
  transition: transform .3s, color .3s; padding-top: 4px;
}
.gcard:hover .garr { transform: translateX(6px); color: var(--accent); }

/* ============ 详情页 ============ */
.w-hero {
  background: var(--dark); color: var(--paper);
  padding: 150px clamp(20px, 4vw, 56px) clamp(40px, 6vh, 64px);
  position: relative; overflow: hidden;
}
.w-hero .inner { max-width: 1240px; margin: 0 auto; position: relative; }
.w-hero .bignum {
  position: absolute; right: 0; top: -30px;
  font-family: 'Arial Black', sans-serif; font-size: clamp(110px, 15vw, 210px);
  font-weight: 900; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px var(--dark-line); user-select: none; pointer-events: none;
}
.w-hero .cat {
  font-family: var(--code); font-size: 11.5px; letter-spacing: 0.2em;
  color: var(--accent); display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.w-hero .cat::before { content: ''; width: 26px; height: 1px; background: var(--accent); }
.w-hero h1 { font-size: clamp(34px, 5.4vw, 68px); font-weight: 900; line-height: 1.2; letter-spacing: 0.01em; }
.w-hero h1 .ver { font-family: var(--code); font-size: clamp(13px, 1.4vw, 16px); color: #6d6d70; font-weight: 400; margin-left: 14px; letter-spacing: 0.08em; }
.w-hero .lead { max-width: 640px; color: #a8a8ab; font-size: 15.5px; margin-top: 20px; }

.w-figure {
  max-width: 1240px; margin: clamp(36px, 6vh, 60px) auto 0;
  padding: 0 clamp(20px, 4vw, 56px);
}
.w-figure .frame { border: 1px solid var(--dark-line); overflow: hidden; background: var(--dark-panel); position: relative; }
.w-figure img { display: block; width: 100%; height: auto; }
.w-figure .frame::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--accent); }
.w-figure .figcap {
  font-family: var(--code); font-size: 11px; letter-spacing: 0.16em; color: #6d6d70;
  margin-top: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

.w-body { background: var(--dark); color: var(--paper); padding: clamp(56px, 9vh, 96px) clamp(20px, 4vw, 56px) clamp(70px, 10vh, 120px); }
.w-body .inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 7fr 4fr; gap: clamp(30px, 5vw, 72px); }
.w-body .col-l .blk-t {
  font-family: var(--code); font-size: 11px; letter-spacing: 0.24em; color: #6d6d70;
  text-transform: uppercase; margin-bottom: 18px;
}
.w-body .story { font-size: 15.5px; color: #c9c9cc; max-width: 640px; margin-bottom: 30px; }
.w-body ul.feat { list-style: none; border-top: 1px solid var(--dark-line); }
.w-body ul.feat li {
  font-size: 14px; color: #a8a8ab; padding: 13px 0 13px 20px; position: relative;
  border-bottom: 1px solid var(--dark-line);
}
.w-body ul.feat li::before { content: '◆'; position: absolute; left: 0; top: 15px; color: var(--accent); font-size: 8px; }
.w-body .side .blk-t { font-family: var(--code); font-size: 11px; letter-spacing: 0.24em; color: #6d6d70; text-transform: uppercase; margin: 0 0 16px; }
.w-body .side .blk + .blk { margin-top: 34px; }
.w-body .side .stack { display: flex; flex-wrap: wrap; gap: 8px; }
.w-body .side .stack span {
  font-family: var(--code); font-size: 11px; letter-spacing: 0.06em;
  color: #a8a8ab; border: 1px solid var(--dark-line); padding: 3px 11px;
}
.w-body .side .meta-t { font-size: 13px; }
.w-body .side .meta-t div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--dark-line); color: #a8a8ab;
}
.w-body .side .meta-t b { color: var(--paper); font-weight: 600; }
.w-body .side .btn-line { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.w-body .side .btn-line a {
  font-family: var(--code); font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--paper); padding: 13px 0 13px 18px; border: 1px solid var(--dark-line);
  transition: border-color .2s, background .2s, color .2s;
}
.w-body .side .btn-line a:hover { border-color: var(--accent); background: var(--accent); color: #0d0d0f; }
.w-body .side .btn-line span.dead {
  font-family: var(--code); font-size: 13px; letter-spacing: 0.1em;
  color: #6d6d70; padding: 13px 0 13px 18px; border: 1px dashed var(--dark-line);
}

/* 上/下一个作品 */
.w-next { border-top: 1px solid var(--dark-line); }
.w-next .inner {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr;
}
.w-next a {
  padding: clamp(34px, 6vh, 60px) clamp(20px, 4vw, 56px);
  transition: background .25s;
}
.w-next a:hover { background: var(--dark-panel); }
.w-next a.next { text-align: right; border-left: 1px solid var(--dark-line); }
.w-next .dir { font-family: var(--code); font-size: 11px; letter-spacing: 0.24em; color: #6d6d70; display: block; margin-bottom: 8px; }
.w-next .name { font-size: clamp(18px, 2.2vw, 26px); font-weight: 900; }
.w-next a:hover .dir { color: var(--accent); }

/* ============ ABOUT ============ */
.about { padding: clamp(76px, 12vh, 140px) 0; }
.about-inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.about .statement {
  font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.6;
  max-width: 880px; letter-spacing: 0.01em;
}
.about .statement em { font-style: normal; color: var(--accent); }
.about .statement .dim { color: var(--ink-faint); font-weight: 350; }
.skill-table { margin-top: clamp(44px, 7vh, 72px); border-top: 2px solid var(--ink); }
.skill-row {
  display: grid; grid-template-columns: 60px 1fr 2fr auto; gap: 18px; align-items: baseline;
  padding: 20px 8px; border-bottom: 1px solid var(--paper-line);
  transition: background .22s, color .22s, padding-left .22s;
}
.skill-row:hover { background: var(--ink); color: var(--paper); padding-left: 20px; }
.skill-row:hover .s-desc, .skill-row:hover .s-no { color: #8f8f93; }
.skill-row .s-no { font-family: var(--code); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.1em; }
.skill-row .s-name { font-weight: 850; font-size: 16.5px; letter-spacing: 0.02em; }
.skill-row .s-desc { font-size: 13px; color: var(--ink-soft); }
.skill-row .s-arrow { font-family: var(--code); color: var(--ink-faint); font-size: 13px; }
.skill-row:hover .s-arrow { color: var(--accent); }

/* ============ FOOTER ============ */
footer { background: var(--dark); color: var(--paper); overflow: hidden; }
.foot-cta {
  max-width: 1240px; margin: 0 auto; padding: clamp(60px, 10vh, 100px) clamp(20px, 4vw, 56px) 40px;
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 30px;
}
.foot-cta .cta-title { font-size: clamp(26px, 3.4vw, 42px); font-weight: 900; line-height: 1.3; }
.foot-cta .cta-title .dim { color: #6d6d70; font-weight: 350; }
.foot-cta a.big-link {
  font-family: var(--code); font-size: clamp(15px, 1.8vw, 19px); font-weight: 700;
  letter-spacing: 0.06em; color: var(--paper);
  border: 1px solid #3a3a3e; padding: 16px 30px;
  display: inline-flex; align-items: center; gap: 14px;
  transition: background .25s, color .25s, border-color .25s;
}
.foot-cta a.big-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.giant {
  font-family: 'Arial Black', 'Segoe UI', sans-serif; font-weight: 900;
  font-size: clamp(64px, 12.5vw, 190px); line-height: 0.95; letter-spacing: 0.01em;
  text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px #3a3a3e;
  padding: 0 10px; user-select: none;
  transition: color .5s;
}
.giant:hover { color: var(--dark-panel); -webkit-text-stroke: 1px #55555a; }
.foot-base {
  border-top: 1px solid var(--dark-line);
  max-width: 1240px; margin: 0 auto; padding: 20px clamp(20px, 4vw, 56px) 34px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--code); font-size: 11px; letter-spacing: 0.14em; color: #6d6d70;
}
.foot-base a:hover { color: var(--accent); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .w-body .inner { grid-template-columns: 1fr; }
  .w-next .inner { grid-template-columns: 1fr; }
  .w-next a.next { text-align: left; border-left: none; border-top: 1px solid var(--dark-line); }
  .skill-row { grid-template-columns: 40px 1fr auto; }
  .skill-row .s-desc { display: none; }
  .hero .ghost { font-size: 42vw; }
  .w-hero .bignum { font-size: 90px; top: -14px; }
}

/* ============ HERO 开始按钮（右侧空白处） ============ */
.start-btn {
  position: absolute; right: clamp(24px, 6vw, 96px); top: 46%;
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  z-index: 5;
}
.start-btn .s-top {
  font-family: var(--code); font-size: 11px; letter-spacing: 0.26em;
  color: var(--ink-faint); display: flex; align-items: center; gap: 12px;
}
.start-btn .s-top::before { content: ''; width: 30px; height: 1px; background: var(--accent); }
.start-btn .s-main {
  display: inline-flex; align-items: center; gap: 16px;
  font-weight: 900; font-size: clamp(17px, 1.8vw, 22px); letter-spacing: 0.08em;
  color: #0d0d0f; background: var(--accent);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  padding: 18px 34px;
  transition: transform .3s cubic-bezier(.2,.6,.2,1), background .3s, color .3s;
}
.start-btn .s-main .arr { font-family: var(--code); font-weight: 400; transition: transform .3s; }
.start-btn:hover .s-main { background: var(--ink); color: var(--paper); transform: translateX(6px); }
.start-btn:hover .s-main .arr { transform: translateX(6px); }
@media (max-width: 1180px) {
  .start-btn { position: static; margin: 26px 0 0; }
  .hero .foot-row { margin-top: 28px; }
}

/* ============ EXPLORE 分格浏览页 ============ */
.explore {
  min-height: 100svh; display: grid; grid-template-columns: minmax(300px, 360px) 1fr;
  padding-top: 64px; background: var(--dark);
}
.e-list {
  border-right: 1px solid var(--dark-line);
  position: sticky; top: 64px; height: calc(100svh - 64px); overflow-y: auto;
}
.e-list .e-head {
  padding: 26px 26px 16px; font-family: var(--code); font-size: 11px;
  letter-spacing: 0.24em; color: #6d6d70;
  display: flex; align-items: center; gap: 12px;
}
.e-list .e-head b { color: var(--accent); font-weight: 700; }
.e-group {
  padding: 20px 26px 6px; font-family: var(--code); font-size: 10.5px;
  letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase;
}
.e-group::before { content: '▸ '; opacity: .7; }
.e-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 18px 26px; border: none; border-bottom: 1px solid var(--dark-line);
  background: transparent; color: var(--paper); font-family: inherit;
  border-left: 3px solid transparent; transition: background .2s, border-color .2s;
}
.e-item .no { font-family: var(--code); font-size: 11px; color: #6d6d70; letter-spacing: 0.18em; display: block; margin-bottom: 3px; }
.e-item .name { font-size: 16.5px; font-weight: 850; letter-spacing: 0.02em; display: block; line-height: 1.4; transition: color .2s; }
.e-item .cat { font-family: var(--code); font-size: 10px; letter-spacing: 0.14em; color: #6d6d70; display: block; margin-top: 3px; }
.e-item:hover { background: var(--dark-panel); }
.e-item:hover .name { color: var(--accent); }
.e-item.active { background: var(--dark-panel); border-left-color: var(--accent); }
.e-item.active .no, .e-item.active .cat { color: var(--accent); }
.e-list .e-foot {
  padding: 22px 26px; font-family: var(--code); font-size: 10.5px;
  letter-spacing: 0.14em; color: #6d6d70; line-height: 2;
}
.e-list::-webkit-scrollbar { width: 4px; }
.e-list::-webkit-scrollbar-thumb { background: var(--dark-line); }

.e-stage { background: var(--paper); color: var(--ink); min-height: calc(100svh - 64px); padding: clamp(30px, 4.5vw, 60px) clamp(24px, 4.5vw, 64px) clamp(50px, 8vh, 90px); }
.e-stage .inner { max-width: 980px; }
.e-stage .cat {
  font-family: var(--code); font-size: 11.5px; letter-spacing: 0.2em;
  color: var(--accent); display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.e-stage .cat::before { content: ''; width: 26px; height: 1px; background: var(--accent); }
.e-stage h1 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 900; line-height: 1.2; letter-spacing: 0.01em; }
.e-stage h1 .ver { font-family: var(--code); font-size: clamp(12px, 1.3vw, 15px); color: var(--ink-faint); font-weight: 400; margin-left: 12px; letter-spacing: 0.08em; }
.e-stage .lead { max-width: 620px; color: var(--ink-soft); font-size: 15px; margin-top: 14px; }
.e-stage .frame { border: 1px solid var(--paper-line); overflow: hidden; background: var(--dark-panel); position: relative; margin: 28px 0 10px; }
.e-stage .frame img { display: block; width: 100%; height: auto; }
.e-stage .frame::after { content: ''; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--accent); }

/* ============ 详情页图库（多图翻页） ============ */
.gal { position: relative; margin: 28px 0 10px; }
.gal-frame {
  position: relative; border: 1px solid var(--paper-line); overflow: hidden;
  background: #fbf9f4; min-height: 320px; max-height: 70vh;
  height: clamp(320px, 58vh, 620px);
  display: flex; align-items: center; justify-content: center;
}
.gal-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center; opacity: 0;
  transition: opacity .28s ease; padding: 6px;
}
.gal-frame img.on { opacity: 1; }
.gal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 2px 0; gap: 12px;
}
.gal-cap { font-family: var(--code); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-soft); }
.gal-count { font-family: var(--code); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-faint); }
.gal-prev, .gal-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--paper-line);
  background: rgba(255,255,255,.88); color: var(--ink); font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; z-index: 2;
}
.gal-prev { left: 10px; }
.gal-next { right: 10px; }
.gal-prev:hover, .gal-next:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.e-stage .figcap {
  font-family: var(--code); font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 30px;
}
.e-stage .cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(26px, 4vw, 56px); margin-top: 10px; }
.e-stage .blk-t {
  font-family: var(--code); font-size: 10.5px; letter-spacing: 0.24em; color: var(--ink-faint);
  text-transform: uppercase; margin-bottom: 14px;
}
.e-stage .story { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 26px; }
.e-stage ul.feat { list-style: none; border-top: 1px solid var(--paper-line); }
.e-stage ul.feat li {
  font-size: 13.5px; color: var(--ink-soft); padding: 11px 0 11px 20px; position: relative;
  border-bottom: 1px solid var(--paper-line);
}
.e-stage ul.feat li::before { content: '◆'; position: absolute; left: 0; top: 13px; color: var(--accent); font-size: 8px; }
.e-stage .side .blk + .blk { margin-top: 28px; }
.e-stage .stack { display: flex; flex-wrap: wrap; gap: 8px; }
.e-stage .stack span {
  font-family: var(--code); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-soft); border: 1px solid var(--paper-line); padding: 3px 11px;
}
.e-stage .meta-t div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--paper-line); color: var(--ink-soft); font-size: 13px;
}
.e-stage .meta-t b { color: var(--ink); font-weight: 600; }
.e-stage .btn-line { display: flex; flex-direction: column; gap: 4px; }
.e-stage .btn-line a {
  font-family: var(--code); font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--ink); padding: 12px 0 12px 16px; border: 1px solid var(--ink);
  text-align: left; transition: background .2s, color .2s;
}
.e-stage .btn-line a:hover { background: var(--ink); color: var(--paper); }
.e-stage .btn-line a::after { content: ' ↗'; }
.e-stage .btn-line span.dead {
  font-family: var(--code); font-size: 13px; letter-spacing: 0.1em;
  color: var(--ink-faint); padding: 12px 0 12px 16px; border: 1px dashed var(--paper-line);
}
.e-stage .detail-link { margin-top: 26px; font-family: var(--code); font-size: 12px; letter-spacing: 0.12em; }
.e-stage .detail-link a { color: var(--ink-soft); border-bottom: 1px solid var(--ink-faint); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.e-stage .detail-link a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 860px) {
  .explore { grid-template-columns: 1fr; }
  .e-list { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--dark-line); }
  .e-stage { min-height: auto; }
  .e-stage .cols { grid-template-columns: 1fr; }
}

/* 深底页（explore）导航配色：未滚动时白字，滚动后白底深字 */
body.on-dark nav#nav:not(.scrolled) .brand { color: var(--paper); }
body.on-dark nav#nav:not(.scrolled) .brand .diamond { background: var(--paper); }
body.on-dark nav#nav:not(.scrolled) .links a { color: #a8a8ab; }
body.on-dark nav#nav:not(.scrolled) .links a:hover { color: var(--paper); }
body.on-dark nav#nav:not(.scrolled) .links a.ext { border-color: var(--dark-line); color: var(--paper); }
body.on-dark nav#nav:not(.scrolled) .links a.ext:hover { background: var(--paper); color: var(--ink); }

/* ============ EXPLORE 展示升级：stats / milestones / arch / workflow / prevnext ============ */
.e-stage .crumb {
  font-family: var(--code); font-size: 11px; letter-spacing: 0.22em;
  color: var(--ink-faint); margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.e-stage .crumb b { color: var(--accent); font-weight: 700; }
.e-stage .crumb .rule { width: 44px; height: 1px; background: var(--paper-line); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); margin: 30px 0 8px; }
.stats .stat { background: var(--paper); padding: 16px 18px 14px; }
.stats .stat b { display: block; font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; color: var(--accent); line-height: 1.2; letter-spacing: 0.01em; }
.stats .stat span { font-family: var(--code); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-faint); }

.miles { border-left: 2px solid var(--paper-line); margin-left: 5px; padding-left: 0; }
.miles .mi { position: relative; padding: 0 0 22px 26px; }
.miles .mi:last-child { padding-bottom: 4px; }
.miles .mi::before {
  content: ''; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px;
  background: var(--paper); border: 2px solid var(--accent); transform: rotate(45deg);
}
.miles .mi .mv { font-family: var(--code); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.miles .mi .mt { font-size: 14.5px; font-weight: 750; color: var(--ink); margin: 2px 0 3px; }
.miles .mi .md { font-size: 12.5px; color: var(--ink-soft); }

.arch2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.arch2 .acard { border: 1px solid var(--paper-line); padding: 18px 20px; background: #fff; }
.arch2 .acard h4 { font-size: 14.5px; font-weight: 850; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.arch2 .acard h4 i { font-style: normal; color: var(--accent); font-family: var(--code); font-size: 11px; }
.arch2 .acard p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; }
.arch2 .acard p b { color: var(--ink); font-weight: 650; }

.flow { display: flex; flex-wrap: wrap; gap: 8px; }
.flow .step {
  font-family: var(--code); font-size: 11.5px; letter-spacing: 0.06em;
  border: 1px solid var(--paper-line); background: #fff; color: var(--ink);
  padding: 8px 13px; display: inline-flex; align-items: center; gap: 9px;
}
.flow .step i { font-style: normal; color: var(--accent); font-weight: 700; font-size: 10px; }
.flow .step::after { content: '→'; color: var(--ink-faint); margin-left: 4px; font-size: 10px; }
.flow .step:last-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flow .step:last-child::after { content: '◆'; color: var(--accent); }

.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entries .ent { border: 1px solid var(--paper-line); background: #fff; padding: 14px 16px; }
.entries .ent b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 3px; }
.entries .ent b i { font-style: normal; color: var(--accent); font-family: var(--code); font-size: 11px; margin-right: 8px; }
.entries .ent span { font-size: 12px; color: var(--ink-soft); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; align-items: stretch; }
.duo .frame { margin: 0; }
.duo .frame img, .duo .gal-frame img { object-fit: contain; }
/* 固定主图与右侧翻页图等高 */
.duo .frame.main {
  border: 1px solid var(--paper-line); overflow: hidden; background: #fbf9f4;
  display: flex; flex-direction: column;
}
.duo .frame.main img {
  width: 100%; flex: 1; object-fit: contain; display: block; padding: 6px;
}
.duo .frame.main .img-cap { text-align: center; }
.duo .gal { margin: 0; display: flex; flex-direction: column; }
.duo .gal .gal-frame { flex: 1; min-height: 0; height: auto; }
/* 竖幅图在 duo 中的居中限宽（如包装正面、多面结构图竖向） */
.duo .frame.tall { max-width: 380px; margin: 0 auto; }
.duo .img-cap {
  display: block; font-family: var(--code); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--ink-faint); padding: 8px 2px 0;
}
.duo .frame .img-cap { text-align: center; }

.e-swap { animation: swapin .5s cubic-bezier(.2,.6,.2,1); }
@keyframes swapin { from { opacity: 0; transform: translateY(16px); } }

.w-pn { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--paper-line); margin-top: clamp(40px, 7vh, 70px); }
.w-pn button {
  font-family: inherit; text-align: left; cursor: pointer;
  background: transparent; border: none; color: var(--ink);
  padding: 22px 24px; transition: background .2s;
}
.w-pn button + button { border-left: 1px solid var(--paper-line); text-align: right; }
.w-pn button:hover { background: var(--ink); color: var(--paper); }
.w-pn .dir { font-family: var(--code); font-size: 10.5px; letter-spacing: 0.22em; color: var(--ink-faint); display: block; margin-bottom: 5px; transition: color .2s; }
.w-pn button:hover .dir { color: var(--accent); }
.w-pn .name { font-size: clamp(15px, 1.8vw, 19px); font-weight: 850; }
.w-pn button.next .name { color: var(--accent); }
.w-pn button.next:hover .name { color: var(--paper); }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .arch2, .entries { grid-template-columns: 1fr; }
  .w-pn { grid-template-columns: 1fr; }
  .w-pn button + button { border-left: none; border-top: 1px solid var(--paper-line); text-align: left; }
}
