/* 字间 / TYPE MOSAIC
   公开作品页 + 拼字工作台。纯静态，纸感，黑字，红点。 */

:root {
  --paper: #f4f3ee;
  --sheet: #fffefa;
  --sheet-2: #ebe9e2;
  --ink: #111110;
  --ink-soft: #3a3a36;
  --muted: #78776f;
  --faint: #a5a49b;
  --line: rgba(17, 17, 17, .14);
  --line-strong: rgba(17, 17, 17, .3);
  --red: #ff2d55;
  --blue: #2d5bff;
  --orange: #ff9500;
  --green: #00a86b;
  --nav-h: 64px;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --sans: "MiSans", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --mono: "Consolas", "Courier New", monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow: 0 24px 60px -32px rgba(17, 17, 17, .38);
}

html[data-theme="dark"] {
  --paper: #0c0c0e;
  --sheet: #151518;
  --sheet-2: #1c1c20;
  --ink: #f2f1ec;
  --ink-soft: #d6d5cf;
  --muted: #96958e;
  --faint: #6f6e68;
  --line: rgba(242, 241, 236, .15);
  --line-strong: rgba(242, 241, 236, .32);
  --shadow: 0 28px 70px -30px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--red); color: #fff; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* 纸纹 */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.7'/></svg>");
  mix-blend-mode: multiply;
}
html[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: .045; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; }
.eyebrow.plain::before { display: none; }
.slash { color: var(--faint); margin: 0 4px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; background: var(--ink); color: var(--paper);
  display: grid; place-content: center;
  font-weight: 900; font-size: 21px; line-height: 1; letter-spacing: -.04em;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name b { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.brand-name span { font-size: 8px; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 12px; color: var(--ink-soft); position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ink);
  transition: right .3s var(--ease);
}
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border: 1px solid var(--line); background: transparent;
  display: grid; place-content: center; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--sheet); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.icon-btn .moon { display: block; }
.icon-btn .sun { display: none; }
html[data-theme="dark"] .icon-btn .moon { display: none; }
html[data-theme="dark"] .icon-btn .sun { display: block; }
.btn {
  height: 38px; padding: 0 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.small { height: 32px; padding: 0 12px; font-size: 11px; }
.btn.wide { width: 100%; }
.menu-btn { display: none; }

/* 移动菜单 */
.nav-links.is-open {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  position: absolute; left: 0; right: 0; top: var(--nav-h);
  min-height: calc(100svh - var(--nav-h));
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 10px var(--pad) 40px;
}
.nav-links.is-open a {
  font-size: 26px; font-weight: 600; padding: 18px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px;
}
.nav-links.is-open a::before {
  content: attr(data-no); font-size: 10px; letter-spacing: .16em; color: var(--red); font-weight: 600;
}

/* ---------------------------------------------------------------- hero */
.public-hero { padding-top: calc(var(--nav-h) + 44px); }
.hero-top {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: 30px; align-items: end; margin-bottom: 26px;
}
.hero-top h1 {
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: .98; letter-spacing: -.055em; font-weight: 900;
  margin-top: 14px;
}
.hero-top h1 em { font-style: normal; color: var(--red); }
.hero-top h1 .dot { color: var(--red); }
.hero-dot {
  display: inline-block; width: .19em; height: .19em; margin-left: .07em;
  background: var(--red); border-radius: 50%; vertical-align: baseline;
  transform: translateY(-.015em);
}
.hero-aside { padding-bottom: 8px; }
.hero-aside p { font-size: 13px; line-height: 1.85; color: var(--muted); max-width: 30ch; }
.hero-aside .meta-line {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.hero-aside .meta-line b { color: var(--ink); font-weight: 600; }

.wall-frame {
  position: relative; padding: 8px; background: var(--sheet);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.wall-stage { height: clamp(420px, 62svh, 700px); }
.wall-ui {
  position: absolute; z-index: 30; left: 20px; right: 20px; pointer-events: none;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
}
.wall-ui.top { top: 16px; color: var(--ink); }
.wall-ui.bottom { bottom: 14px; color: var(--muted); }
.wall-ui .chip {
  background: var(--ink); color: var(--paper); padding: 5px 8px; font-size: 8px; letter-spacing: .18em;
}
.wall-ui .ghost {
  background: color-mix(in srgb, var(--sheet) 78%, transparent); padding: 5px 8px;
  backdrop-filter: blur(6px);
}
.wall-caption {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 10px; font-size: 9px; letter-spacing: .12em; color: var(--faint);
}
.wall-caption b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- mosaic */
.mosaic-stage {
  position: relative; overflow: hidden; isolation: isolate;
  background: #f4f3ee;
}
.mosaic-stage[data-bg="ink"] { background: #111110; }
.mosaic-stage[data-bg="clear"] {
  background-color: #eeece5;
  background-image:
    linear-gradient(45deg, rgba(17,17,17,.055) 25%, transparent 25%, transparent 75%, rgba(17,17,17,.055) 75%),
    linear-gradient(45deg, rgba(17,17,17,.055) 25%, transparent 25%, transparent 75%, rgba(17,17,17,.055) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}
.mosaic-wall { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.mosaic-wall.is-ready { opacity: 1; }
.tile {
  position: absolute; background-size: cover; background-position: 50% 50%;
  will-change: transform;
  transform-origin: 50% 50%;
  transition: transform .48s var(--ease), opacity .3s ease;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .04);
}
.mosaic-wall.is-gray .tile { filter: grayscale(1) contrast(1.02); }
.tile.is-src { opacity: 0; }
.tile.is-picked {
  outline: 2px solid var(--red); outline-offset: 2px; z-index: 6;
  animation: pickPulse 1.4s ease-in-out infinite;
}
@keyframes pickPulse { 0%,100% { outline-offset: 2px; } 50% { outline-offset: 5px; } }
.mosaic-focus {
  position: absolute; z-index: 40; opacity: 0; pointer-events: none;
  padding: 5px; background: #fffefa; border-radius: 2px;
  box-shadow: 0 30px 70px -22px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .12);
  transition:
    left .4s var(--ease), top .4s var(--ease),
    width .4s var(--ease), height .4s var(--ease), opacity .2s ease;
}
.mosaic-focus img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic-wall.is-gray .mosaic-focus img { filter: grayscale(1) contrast(1.02); }
.mosaic-empty {
  position: absolute; inset: 0; z-index: 25; display: none;
  place-content: center; text-align: center; padding: 30px;
  background: color-mix(in srgb, var(--sheet) 70%, transparent);
  backdrop-filter: blur(2px);
}
.mosaic-stage.is-empty .mosaic-empty { display: grid; }
.mosaic-empty h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.mosaic-empty p { margin-top: 6px; font-size: 12px; color: var(--muted); }
.blocks-icon {
  width: 44px; height: 44px; margin: 0 auto 14px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
}
.blocks-icon i { background: var(--sheet-2); }
.blocks-icon i:nth-child(2), .blocks-icon i:nth-child(4) { background: var(--red); }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(70px, 9vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end;
  margin-bottom: clamp(34px, 4vw, 54px);
}
.section-head h2 {
  font-size: clamp(38px, 5.4vw, 78px); line-height: .98; letter-spacing: -.045em; font-weight: 900;
  margin-top: 12px;
}
.section-head .desc { max-width: 34ch; font-size: 13px; line-height: 1.9; color: var(--muted); padding-bottom: 6px; }
.section-head .desc b { color: var(--ink); font-weight: 600; }

/* 作品网格 */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.work-card { position: relative; display: block; width: 100%; text-align: left; border: 0; padding: 0; background: none; }
.work-card .frame {
  position: relative; display: block; overflow: hidden; background: var(--sheet-2); aspect-ratio: 4 / 5;
}
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .4s;
}
.work-card:hover img { transform: scale(1.06); }
.work-card .no {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 8px; letter-spacing: .18em; color: #fff; background: rgba(10,10,10,.5);
  padding: 4px 7px; backdrop-filter: blur(4px);
}
.work-card .view {
  position: absolute; inset: auto 10px 10px auto; z-index: 2;
  font-size: 8px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--sheet); color: var(--ink); padding: 5px 8px;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
}
.work-card:hover .view { opacity: 1; transform: none; }
.work-card .cap {
  display: flex; justify-content: space-between; gap: 12px; padding-top: 9px;
  font-size: 10px; letter-spacing: .06em; color: var(--muted);
}
.work-card .cap b { color: var(--ink); font-weight: 500; letter-spacing: 0; font-size: 12px; }
.work-card .cap span { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

/* 关于 */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.about-lead {
  font-size: clamp(27px, 3.4vw, 46px); line-height: 1.22; letter-spacing: -.035em; font-weight: 700;
}
.about-lead em { font-style: normal; color: var(--red); }
.about-body p { margin-top: 22px; font-size: 13px; line-height: 2; color: var(--muted); max-width: 44ch; }
.about-body p b { color: var(--ink); font-weight: 600; }
.about-facts { margin-top: 30px; border-top: 1px solid var(--line); }
.about-facts div {
  display: flex; justify-content: space-between; gap: 20px; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: 11px;
}
.about-facts span:first-child { color: var(--faint); letter-spacing: .1em; text-transform: uppercase; font-size: 9px; }
.about-facts span:last-child { color: var(--ink); }

/* 黑带 CTA */
.cta-band {
  background: var(--ink); color: var(--paper); position: relative; overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0;
}
.cta-band .eyebrow { color: rgba(244,243,238,.56); }
.cta-band .eyebrow::before { background: var(--red); }
.cta-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; }
.cta-band h2 {
  font-size: clamp(42px, 6.6vw, 92px); line-height: .96; letter-spacing: -.05em; font-weight: 900;
  margin-top: 16px;
}
.cta-band h2 em { font-style: normal; color: var(--red); }
.cta-side p { font-size: 13px; line-height: 1.9; color: rgba(244,243,238,.62); max-width: 34ch; }
.cta-side .btn { margin-top: 20px; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-side .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cta-orbit {
  position: absolute; right: -120px; top: 50%; width: 460px; height: 460px;
  border: 1px solid rgba(244,243,238,.16); border-radius: 50%;
  transform: translateY(-50%); pointer-events: none;
}

/* footer */
.footer { padding: 46px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, .5fr)); gap: 30px; }
.footer-brand p { margin-top: 10px; font-size: 12px; color: var(--muted); }
.footer-col h4 {
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
  font-weight: 600; margin-bottom: 12px;
}
.footer-col a, .footer-col p { display: block; font-size: 12px; color: var(--ink-soft); padding: 3px 0; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 42px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: #08080a; color: #f4f3ee;
  padding: 40px clamp(20px, 5vw, 80px);
}
html[data-theme="dark"] .lightbox { background: #000; }
.lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; }
.lb-top { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,243,238,.55); }
.lb-count b { color: #fff; font-weight: 600; }
.lb-close {
  width: 40px; height: 40px; border: 1px solid rgba(244,243,238,.25); background: transparent; color: #fff;
  display: grid; place-content: center; font-size: 22px; line-height: 1; transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.1); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lb-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: lbIn .35s var(--ease) both;
}
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 1px solid rgba(244,243,238,.25); background: rgba(0,0,0,.2);
  color: #fff; display: grid; place-content: center; font-size: 20px; transition: background .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.12); }
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11px; color: rgba(244,243,238,.7); }
.lb-bottom b { color: #fff; font-weight: 500; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  z-index: 400; background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: .04em; padding: 10px 16px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  max-width: min(88vw, 520px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- studio */
.studio-page { padding-top: calc(var(--nav-h) + 34px); }
.studio-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.studio-head h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; font-weight: 900; line-height: 1; margin-top: 10px; }
.studio-head .head-note { max-width: 38ch; font-size: 12px; line-height: 1.8; color: var(--muted); text-align: right; }
.studio-grid { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 24px; align-items: start; }

.panel { border: 1px solid var(--line); background: var(--sheet); }
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.panel-head span { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.panel-foot { padding: 12px 16px 14px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.7; color: var(--faint); }
.group { padding: 16px; border-bottom: 1px solid var(--line); }
.group:last-of-type { border-bottom: 0; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.group-head h3 { font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.group-head h3 i { font-style: normal; color: var(--red); font-size: 9px; letter-spacing: .14em; margin-right: 6px; }
.group-head span { font-size: 9px; letter-spacing: .1em; color: var(--faint); }

.drop {
  display: block; border: 1px dashed var(--line-strong); padding: 14px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop:hover, .stage-wrap.is-over .drop, .mosaic-stage.is-over { border-color: var(--red); }
.drop:hover, .stage-wrap.is-over .drop { background: color-mix(in srgb, var(--red) 4%, transparent); }
.drop-row { display: flex; align-items: center; gap: 12px; }
.drop-icon { width: 34px; height: 34px; border: 1px solid var(--line); display: grid; place-content: center; flex: none; }
.drop-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.drop b { display: block; font-size: 12px; font-weight: 600; }
.drop small { display: block; margin-top: 2px; font-size: 10px; color: var(--faint); letter-spacing: .02em; }
.drop input { display: none; }

.thumbs {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px;
  margin-top: 12px; max-height: 232px; overflow: auto; padding-right: 2px;
}
.thumb {
  position: relative; aspect-ratio: 1; overflow: hidden; background: var(--sheet-2); border: 1px solid var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb:hover img { transform: scale(1.08); }
.thumb button {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border: 0;
  background: rgba(10,10,10,.6); color: #fff; font-size: 10px; line-height: 1;
  display: none; place-content: center; padding: 0;
}
.thumb:hover button, .thumb button:focus-visible { display: grid; }
@media (hover: none) { .thumb button { display: grid; width: 20px; height: 20px; } }
.thumb-more { display: grid; place-content: center; font-size: 9px; color: var(--muted); letter-spacing: .08em; }

.field { margin-top: 12px; }
.field:first-child { margin-top: 0; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 10px; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.field label b { color: var(--ink); font-weight: 600; font-size: 10px; letter-spacing: .02em; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 9px 10px; font-size: 12px; line-height: 1.6; border-radius: 0;
  transition: border-color .2s;
}
html[data-theme="dark"] .input, html[data-theme="dark"] .select, html[data-theme="dark"] .textarea { background: #0f0f11; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.textarea { resize: vertical; min-height: 62px; font-size: 14px; letter-spacing: .01em; }
.select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hint { margin-top: 8px; font-size: 9px; line-height: 1.65; color: var(--faint); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--line-strong); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px; background: var(--ink); margin-top: -5px; border-radius: 0;
  transition: background .2s, transform .2s;
}
input[type="range"]:hover::-webkit-slider-thumb { background: var(--red); transform: scale(1.15); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--line-strong); }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 0; background: var(--ink); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); }
.seg button {
  border: 0; border-right: 1px solid var(--line); background: transparent;
  height: 32px; font-size: 10px; letter-spacing: .04em; color: var(--muted);
  transition: background .2s, color .2s;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--sheet-2); color: var(--ink); }
.seg button.is-on { background: var(--ink); color: var(--paper); }

.switch-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.switch { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i {
  width: 26px; height: 15px; border: 1px solid var(--line-strong); position: relative; transition: background .2s, border-color .2s;
}
.switch i::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 9px; height: 9px; background: var(--muted);
  transition: transform .2s, background .2s;
}
.switch input:checked + i { background: var(--ink); border-color: var(--ink); }
.switch input:checked + i::after { transform: translateX(11px); background: var(--paper); }
.switch input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 2px; }

.manual-bar {
  display: none; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; background: color-mix(in srgb, var(--red) 7%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--red) 30%, var(--line));
  font-size: 10px; line-height: 1.6; color: var(--ink-soft);
}
.manual-bar.is-on { display: flex; }
.manual-bar b { color: var(--red); }
.manual-bar .btn { flex: none; }

.stage-wrap { position: sticky; top: calc(var(--nav-h) + 18px); min-width: 0; }
.stage-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 8px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.stage-bar .led { width: 5px; height: 5px; background: var(--red); display: inline-block; margin-right: 7px; }
.stage-bar b { color: var(--ink); font-weight: 600; }
.stage-shell { border: 1px solid var(--line); background: var(--sheet); padding: 8px; box-shadow: var(--shadow); }
.studio-stage { aspect-ratio: 4 / 3; }
.stage-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; font-size: 9px; letter-spacing: .06em; color: var(--faint); }

.empty-action { margin-top: 14px; display: flex; gap: 8px; justify-content: center; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero-top h1, .hero-top .eyebrow, .hero-aside { animation: rise .8s var(--ease) both; }
.hero-top .eyebrow { animation-delay: .05s; }
.hero-top h1 { animation-delay: .12s; }
.hero-aside { animation-delay: .2s; }
.hero-top .hero-aside { animation-name: rise; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .studio-grid { grid-template-columns: 340px minmax(0, 1fr); }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-top { grid-template-columns: 1fr; gap: 18px; }
  .hero-aside { padding-bottom: 0; }
  .hero-aside p { max-width: 50ch; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .cta-inner { grid-template-columns: 1fr; gap: 30px; }
  .studio-grid { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
  .stage-wrap { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 20; order: -1; width: 100%; background: var(--paper); padding: 6px 0 4px; }
  .studio-stage { aspect-ratio: 1 / 1; max-height: 42svh; width: 100%; }
  .panel { width: 100%; }
  .studio-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .studio-head .head-note { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav-links.is-open { display: flex; }
}
@media (max-width: 620px) {
  .brand-name span { display: none; }
  .nav-actions .btn { white-space: nowrap; padding: 0 12px; }
  .nav-actions .btn.export-label { display: none; }
  .studio-head h1 { font-size: 32px; }
  .hero-top h1 { font-size: clamp(38px, 11.4vw, 60px); letter-spacing: -.06em; }
  .wall-stage { height: clamp(340px, 54svh, 520px); }
  .wall-ui { left: 14px; right: 14px; }
  .wall-ui.top { top: 12px; }
  .wall-ui.bottom { bottom: 10px; }
  .work-grid { gap: 10px; }
  .work-card .cap { display: block; padding-top: 7px; }
  .work-card .cap span { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-head .desc { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .studio-head h1 { font-size: 34px; }
  .thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); max-height: 180px; }
  .stage-wrap { top: calc(var(--nav-h) + 4px); }
  .studio-stage { max-height: 38svh; }
  .lb-nav { width: 38px; height: 38px; }
  .lb-prev { left: -8px; }
  .lb-next { right: -8px; }
  .lightbox { padding: 20px 14px; }
}
@media (max-width: 380px) {
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero-top h1 { font-size: 36px; }
}

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

/* --- v3: 联系区与后台入口（前台只做展示） --- */
.cta-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.cta-side .cta-contact .btn { margin-top: 0; }
.cta-wechat { font-size: 11px; letter-spacing: .06em; color: rgba(244,243,238,.55); }
.cta-wechat[hidden] { display: none; }
.nav-contact { white-space: nowrap; }
@media (max-width: 620px) {
  .cta-contact { align-items: flex-start; flex-direction: column; }
}
