/* ===========================================================
   Ink Studio — 前台样式
   基调：暗场 + 骨白 + 朱红。锐角、细发丝线、大字号排印。
   设计稿以「纸」的形式浮在暗色台面上，而不是反过来。
   =========================================================== */

:root {
  /* 底色 */
  --void: #08080a;
  --table: #0c0c0e;
  --card: #111113;
  --card-2: #16161a;

  /* 文字 */
  --bone: #efeae1;
  --bone-soft: #b9b2a6;
  --bone-mute: #7d776c;

  /* 线 */
  --hair: rgba(239, 234, 225, .13);
  --hair-soft: rgba(239, 234, 225, .07);

  /* 强调 */
  --ink-red: #b4341f;
  --ink-red-soft: #d2503a;
  --brass: #b99154;

  /* 状态 */
  --ok: #6f9f4a;
  --err: #d1574a;

  /* 纸（结果图衬底）*/
  --paper: #f2eee6;
  --paper-2: #e6e1d6;

  --radius: 2px;
  --radius-lg: 2px;

  /* 兼容旧变量名（HTML 内联样式在用）*/
  --ink: var(--bone);
  --ink-soft: var(--bone-soft);
  --ink-mute: var(--bone-mute);
  --line: var(--hair);
  --line-soft: var(--hair-soft);
  --accent: var(--ink-red);
  --accent-2: var(--ink-red-soft);

  --font-ui: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-display: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
}

* { box-sizing: border-box; }

html { background: var(--void); }

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #14141a 0%, var(--void) 55%),
    var(--void);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 极轻的胶片颗粒。用 overlay 而不是 screen：
   screen 会把近黑提亮成灰，overlay 在纯黑上仍然保持黑。 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

#app { position: relative; z-index: 1; }

a { color: var(--bone); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0;
  line-height: 1.1;
}

::selection { background: var(--ink-red); color: #fff; }

:focus-visible {
  outline: 1px solid var(--ink-red-soft);
  outline-offset: 2px;
}

/* 通用小标签：全大写 + 宽字距，工作室的「标签感」*/
.micro {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-mute);
  font-weight: 500;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- 顶栏 ---------- */
.topbar {
  border-bottom: 1px solid var(--hair);
  background: rgba(8, 8, 10, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--bone);
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 9px; height: 9px;
  background: var(--ink-red);
  transform: rotate(45deg);
  flex: none;
  box-shadow: 0 0 0 1px rgba(180, 52, 31, .35);
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}
.nav a, .nav button.linklike {
  color: var(--bone-soft);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  position: relative;
}
.nav a:hover, .nav button.linklike:hover { color: var(--bone); }
.nav a.active { color: var(--bone); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink-red);
}

.quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-mute);
}
.quota-pill b {
  color: var(--bone);
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0;
  font-weight: 600;
}

/* ---------- 邮箱验证提示条 ---------- */
.verify-bar {
  border-bottom: 1px solid rgba(185, 145, 84, .28);
  background: linear-gradient(180deg, rgba(185, 145, 84, .12), rgba(185, 145, 84, .04));
}
.verify-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 11px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--bone-soft);
  line-height: 1.5;
}
.verify-bar-inner .vb-text {
  flex: 1;
  min-width: 0;
}
.verify-bar-inner .vb-text b {
  color: var(--bone);
  font-weight: 600;
}
.verify-bar-inner .vb-text em {
  font-style: normal;
  color: var(--brass);
}
.vb-link {
  flex: none;
  background: none;
  border: 1px solid rgba(185, 145, 84, .45);
  color: var(--brass);
  font: inherit;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .16s, border-color .16s;
}
.vb-link:hover:not(:disabled) {
  background: rgba(185, 145, 84, .12);
  border-color: var(--brass);
}
.vb-link:disabled {
  opacity: .55;
  cursor: default;
}
.vb-x {
  flex: none;
  background: none;
  border: 0;
  color: var(--bone-mute);
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.vb-x:hover { color: var(--bone); }

@media (max-width: 640px) {
  .verify-bar-inner {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
  }
  .vb-link { padding: 5px 10px; }
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 72px;
  align-items: end;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--hair-soft);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.eyebrow .rule {
  width: 34px;
  height: 1px;
  background: var(--ink-red);
  flex: none;
}
.hero h1 {
  font-size: 60px;
  line-height: 1.02;
  margin-bottom: 24px;
  letter-spacing: -.035em;
}
.hero h1 em {
  font-style: normal;
  color: var(--ink-red-soft);
}
.hero p {
  font-size: 15px;
  color: var(--bone-soft);
  margin: 0;
  max-width: 480px;
  line-height: 1.75;
}

/* 首屏右侧：说明清单，像工作室价目牌 */
.hero-spec {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.hero-spec li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.hero-spec .n {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-red-soft);
  letter-spacing: .08em;
  padding-top: 2px;
  flex: none;
}
.hero-spec b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
  margin-bottom: 3px;
}
.hero-spec p {
  margin: 0;
  font-size: 12.5px;
  color: var(--bone-mute);
  line-height: 1.55;
}

/* ---------- 工作台 ---------- */
.studio {
  display: grid;
  grid-template-columns: 392px minmax(0, 1fr);
  gap: 26px;
  padding: 44px 0 96px;
  align-items: stretch;
}

.panel {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 26px;
}

.field { margin-bottom: 24px; }
.field:last-child { margin-bottom: 0; }
.label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  color: var(--bone-mute);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}
.label span.hint {
  font-weight: 400;
  color: var(--bone-mute);
  font-size: 11px;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

textarea, input[type="text"], input[type="email"], input[type="password"], select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--bone);
  background: #0a0a0c;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 12px 13px;
  outline: none;
  transition: border-color .16s, background .16s;
  resize: vertical;
}
textarea:focus, input:focus, select:focus {
  border-color: rgba(180, 52, 31, .65);
  background: #0d0d10;
}
textarea { min-height: 118px; line-height: 1.7; }
textarea::placeholder, input::placeholder { color: #5d584f; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--bone-soft);
  cursor: pointer;
  transition: all .14s;
  white-space: nowrap;
}
.chip:hover { border-color: rgba(239, 234, 225, .32); color: var(--bone); }
.chip.on {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--void);
  font-weight: 600;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #0a0a0c;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  cursor: pointer;
}
.switch-row .st {
  font-size: 13px;
  font-weight: 600;
  color: var(--bone);
}
.switch-row .sd {
  font-size: 11.5px;
  color: var(--bone-mute);
  margin-top: 3px;
}
.switch {
  width: 40px; height: 22px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--hair);
  position: relative;
  cursor: pointer;
  flex: none;
  transition: background .18s, border-color .18s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: var(--bone-mute);
  transition: transform .18s, background .18s;
}
.switch.on {
  background: rgba(180, 52, 31, .16);
  border-color: rgba(180, 52, 31, .75);
}
.switch.on::after {
  transform: translateX(17px);
  background: var(--ink-red-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--bone);
  background: var(--bone);
  color: #0a0a0b;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn:active { transform: translateY(1px); }
/* 禁用态不用半透明，否则在暗底上像「坏掉的灰块」 */
.btn:disabled {
  background: transparent;
  border-color: var(--hair);
  color: var(--bone-mute);
  cursor: not-allowed;
}
.btn.block { width: 100%; }
.btn.ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--hair);
}
.btn.ghost:hover {
  background: transparent;
  border-color: rgba(239, 234, 225, .4);
  color: #fff;
}
.btn.sm { padding: 9px 15px; font-size: 11px; }

.spinner {
  width: 13px; height: 13px;
  border: 1.5px solid rgba(10, 10, 11, .3);
  border-top-color: #0a0a0b;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 结果区（暗色台面）---------- */
.stage {
  background: var(--table);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
/* 四角的裁切标记：印刷 / 打样稿的暗示 */
.stage::before, .stage::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  pointer-events: none;
  border: 1px solid rgba(239, 234, 225, .18);
  z-index: 2;
}
.stage::before {
  top: 9px; left: 9px;
  border-right: 0;
  border-bottom: 0;
}
.stage::after {
  bottom: 9px; right: 9px;
  border-left: 0;
  border-top: 0;
}
.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--hair);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-mute);
  gap: 12px;
  flex-wrap: wrap;
}
.stage-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.empty {
  flex: 1;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bone-mute);
  gap: 14px;
}
/* 空状态：一根针的抽象 */
.empty-mark {
  width: 1px;
  height: 74px;
  background: linear-gradient(to bottom, transparent, rgba(239,234,225,.28) 30%, var(--ink-red) 50%, rgba(239,234,225,.28) 70%, transparent);
  position: relative;
  margin-bottom: 8px;
}
.empty-mark::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 7px; height: 7px;
  border: 1px solid var(--ink-red);
  transform: translateY(-50%) rotate(45deg);
}
.empty p {
  font-size: 13px;
  margin: 0;
  max-width: 300px;
  line-height: 1.8;
  color: var(--bone-mute);
}

.grid-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
/* 每张设计稿像一张放在暗桌上的纸 */
.shot {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 0, 0, .5);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
}
.shot img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
.shot-actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  gap: 6px;
  padding: 9px;
  background: linear-gradient(to top, rgba(8, 8, 10, .92), rgba(8, 8, 10, 0));
  opacity: 0;
  transition: opacity .18s;
}
.shot:hover .shot-actions { opacity: 1; }
.shot-actions a, .shot-actions button {
  font-family: inherit;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: var(--radius);
  border: 0;
  background: var(--bone);
  color: #0a0a0b;
  cursor: pointer;
  font-weight: 600;
}
.shot-actions a:hover, .shot-actions button:hover { background: #fff; }

.skeleton {
  aspect-ratio: 1;
  background: linear-gradient(100deg, #131316 30%, #1b1b20 50%, #131316 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite linear;
  border: 1px solid var(--hair-soft);
}
@keyframes shimmer { to { background-position: -220% 0; } }

.prompt-box {
  margin-top: 18px;
  padding: 14px 16px;
  background: #0a0a0c;
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--bone-soft);
  line-height: 1.7;
}
.prompt-box summary {
  cursor: pointer;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-mute);
  list-style: none;
}
.prompt-box summary::-webkit-details-marker { display: none; }
.prompt-box summary::before { content: "＋ "; }
.prompt-box[open] summary::before { content: "－ "; }
.prompt-box p { margin: 10px 0 0; }

.error-box {
  padding: 14px 16px;
  background: rgba(209, 87, 74, .1);
  border: 1px solid rgba(209, 87, 74, .35);
  color: #ef9c92;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 历史 ---------- */
.page-head {
  padding: 64px 0 34px;
  border-bottom: 1px solid var(--hair-soft);
  margin-bottom: 34px;
}
.page-head h1 { font-size: 40px; margin-bottom: 10px; }
.page-head p { color: var(--bone-soft); margin: 0; font-size: 14px; }

.hist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  padding-bottom: 80px;
}
.hist-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s;
}
.hist-card:hover { border-color: rgba(239, 234, 225, .26); }
.hist-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--void);
}
.hist-imgs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--paper);
  display: block;
}
.hist-imgs.single { grid-template-columns: 1fr; }
.hist-meta { padding: 15px 16px 17px; }
.hist-meta .p {
  font-size: 12.5px;
  color: var(--bone-soft);
  margin: 0 0 10px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hist-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone-mute);
}
.hist-tags span {
  border: 1px solid var(--hair);
  padding: 3px 7px;
  border-radius: var(--radius);
}

/* ---------- 模态 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 5, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 408px;
  position: relative;
  box-shadow: 0 40px 80px -30px #000;
}
.modal h2 { font-size: 26px; margin-bottom: 8px; letter-spacing: -.02em; }
.modal .sub {
  font-size: 13px;
  color: var(--bone-mute);
  margin: 0 0 24px;
  line-height: 1.7;
}
.modal .consent {
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--bone-mute);
  margin: 12px 0 0;
  text-align: center;
}
.modal .consent a {
  color: var(--bone-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}
.modal .consent a:hover { color: var(--ink-red-soft); border-bottom-color: var(--ink-red); }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: 0;
  font-size: 20px;
  color: var(--bone-mute);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--bone); }

.tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.tabs button {
  flex: 1;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--bone-mute);
  transition: background .16s, color .16s;
}
.tabs button.on { background: var(--bone); color: #0a0a0b; font-weight: 700; }

.form-msg {
  font-size: 12.5px;
  padding: 11px 13px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  line-height: 1.6;
}
.form-msg.err {
  background: rgba(209, 87, 74, .1);
  border: 1px solid rgba(209, 87, 74, .35);
  color: #ef9c92;
}
.form-msg.ok {
  background: rgba(111, 159, 74, .1);
  border: 1px solid rgba(111, 159, 74, .3);
  color: #a8c98a;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bone);
  color: #0a0a0b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 12px 20px;
  border-radius: var(--radius);
  z-index: 200;
  max-width: 88vw;
  box-shadow: 0 20px 40px -16px #000;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--hair);
  padding: 34px 0 40px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-mute);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { color: var(--bone-soft); }
.footer a:hover { color: var(--bone); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-links a { text-decoration: none; }

/* ---------- 响应式 ---------- */

/* ===========================================================
   模式切换 / 照片上传 / 案例
   =========================================================== */

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 24px;
}
.modes button {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 62px;
  padding: 11px 12px;
  background: transparent;
  color: var(--bone-soft);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  transition: border-color .16s, background .16s;
}
.modes button b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--bone);
  margin-bottom: 3px;
}
.modes button span {
  display: block;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--bone-mute);
}
.modes button:hover { border-color: rgba(239, 234, 225, .3); }
.modes button.on { border-color: var(--ink-red); background: rgba(180, 52, 31, .1); }
.modes button.on span { color: var(--bone-soft); }

.uploader {
  position: relative;
  display: block;
  min-height: 176px;
  border: 1px dashed var(--hair);
  border-radius: var(--radius);
  background: #0a0a0c;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .16s;
}
.uploader:hover { border-color: rgba(239, 234, 225, .3); }
.uploader input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.uploader img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}
.uploader.busy { opacity: .65; }
.up-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 18px;
  text-align: center;
}
.up-empty b { font-size: 13px; font-weight: 600; color: var(--bone); }
.up-empty em { font-size: 11.5px; font-style: normal; color: var(--bone-mute); }
.up-plus { width: 24px; height: 24px; position: relative; margin-bottom: 2px; }
.up-plus::before, .up-plus::after { content: ""; position: absolute; background: var(--ink-red); }
.up-plus::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.up-plus::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.up-retake {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 8px;
  background: rgba(8, 8, 10, .84);
  color: var(--bone);
  border-radius: var(--radius);
}
.up-note { font-size: 11px; color: var(--bone-mute); margin: 8px 0 0; }

/* ---------- 示例部位（没有照片时的替代方案） ---------- */
/* 上传 / 示例 二选一开关 */
.up-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  margin-bottom: 10px;
  background: #0a0a0c;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}
.up-switch button {
  padding: 8px 6px;
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--bone-mute);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .16s, color .16s;
}
.up-switch button:hover:not(.on):not(:disabled) { color: var(--bone-soft); }
.up-switch button.on { background: var(--card-2); color: var(--bone); }
.up-switch button:disabled { cursor: default; opacity: .55; }

.preset-pick { margin-top: 2px; }
.preset-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.preset-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: #0a0a0c;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .16s;
}
.preset-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: opacity .16s;
}
.preset-thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 3px 4px;
  background: linear-gradient(to top, rgba(6, 6, 8, .94) 35%, rgba(6, 6, 8, 0));
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  letter-spacing: .02em;
  color: var(--bone-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preset-thumb:hover { border-color: rgba(239, 234, 225, .3); }
.preset-thumb:hover img { opacity: 1; }
.preset-thumb.on { border-color: var(--ink-red); }
.preset-thumb.on img { opacity: 1; }
.preset-thumb.on span { color: var(--bone); }
.preset-thumb:disabled { cursor: default; opacity: .5; }
.preset-thumb.on:disabled { opacity: .85; }

/* 单张结果不必挤成两列 */
.grid-imgs.single { grid-template-columns: minmax(0, 1fr); max-width: 540px; }
.shot.photo { background: #0a0a0c; aspect-ratio: 3 / 4; }
.shot.photo img { mix-blend-mode: normal; }

/* ---------- 案例 ---------- */
.cases {
  margin-top: 18px;
  padding-bottom: 88px;
  border-top: 1px solid var(--hair-soft);
}
.cases-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 52px 0 26px;
}
.cases-head h2 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 8px 0 0;
}
.cases-head p {
  max-width: 380px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--bone-mute);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
}

/* 两排轮播：上身效果 / 设计稿 */
.case-rows { display: flex; flex-direction: column; gap: 34px; }
.case-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--hair-soft);
}
.row-title { display: flex; align-items: baseline; gap: 11px; }
.row-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--bone);
}
.row-title .micro { color: var(--bone-mute); }
.row-count {
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--bone-mute);
}
.row-nav { display: flex; gap: 6px; }
.row-nav button {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  color: var(--bone-soft);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .16s, color .16s;
}
.row-nav button:hover { border-color: rgba(239, 234, 225, .32); color: var(--bone); }
.row-nav button:active { background: var(--card-2); }

.rail {
  display: flex;
  gap: 16px;
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > .case {
  flex: 0 0 288px;
  scroll-snap-align: start;
}
.case {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hair-soft);
}
.case-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
}
.case-img img {
  width: 100%;
  height: 100%;
  /* 设计稿是白底单图，用 contain 才不会被裁掉头尾；白底与纸色衔接看不出边界 */
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
.case-img.photo { background: #0a0a0c; }
.case-img.photo img { mix-blend-mode: normal; object-fit: cover; }
.case-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 7px;
  background: rgba(8, 8, 10, .78);
  color: var(--bone);
}
.case-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 14px 15px 15px;
}
.case-body h3 { font-size: 14px; font-weight: 600; margin: 0; }
.case-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--bone-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}
.case-meta { font-size: 10.5px; letter-spacing: .04em; color: var(--bone-mute); }

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 0 52px;
    align-items: start;
  }
  .hero h1 { font-size: 46px; }
  .hero-spec { max-width: 520px; }
}

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; gap: 18px; padding: 32px 0 64px; }
  .stage { min-height: auto; }
  .empty { height: 300px; }
  .cases-head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 40px 0 22px; }
  .topbar-inner { gap: 16px; }
  .nav { gap: 18px; }
  .page-head { padding: 44px 0 26px; }
  .page-head h1 { font-size: 32px; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .hero h1 { font-size: 33px; letter-spacing: -.03em; }
  .hero { padding: 48px 0 40px; }
  .wrap, .topbar-inner { padding: 0 18px; }
  .panel { padding: 20px; }
  .nav .hide-sm { display: none; }
  .hero-spec li { padding: 14px 0; }
  .modal { padding: 26px 22px; }
  .modes { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rail > .case { flex: 0 0 236px; }
  .case-rows { gap: 26px; }
  .row-nav { display: none; }
  .row-title h3 { font-size: 15px; }
  .case-body p { display: none; }
  .cases-head h2 { font-size: 21px; }
  .footer { font-size: 10px; }
  /* 窄屏上结果区不必撑高，避免出现一大片空黑 */
  .stage { min-height: 340px; }
  .empty { min-height: 240px; }
}
