:root {
  --ink: #2b211a;
  --muted: #8b7a68;
  --paper: #f4eee3;
  --card: #fffdf8;
  --line: #e7dccb;
  --gold: #c9a05a;
  --primary: #9e1f1f;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(70, 45, 20, 0.10);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --tpl-primary: #9e1f1f;
  --tpl-accent: #c9a05a;
  --tpl-bg: #fff6ec;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  overflow-y: auto;
}

.hidden { display: none !important; }

.shell {
  display: flex;
  height: 100dvh;
  min-height: 0;
}

/* ---------------- 左侧面板 ---------------- */
.panel {
  flex: 0 0 430px;
  width: 430px;
  height: 100%;
  overflow-y: auto;
  padding: 24px 24px 16px;
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--tpl-primary), #6d1414);
  color: var(--tpl-accent);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(110, 20, 20, 0.22);
  flex: 0 0 46px;
}

.brand-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.brand-copy p {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.step { display: block; }

.step-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.step-head .num {
  font-family: var(--serif);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.step-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.step-head .tip {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--muted);
}

/* 模板卡片 */
.template-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.tpl-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.tpl-card:hover { border-color: #d6c3a4; transform: translateY(-1px); }

.tpl-card.active {
  border-color: var(--tpl-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tpl-primary) 16%, transparent), var(--shadow);
  background: linear-gradient(180deg, #fff, var(--tpl-bg));
}

.tpl-swatch {
  flex: 0 0 36px;
  width: 36px;
  height: 46px;
  border-radius: 7px;
  background: linear-gradient(155deg, var(--p), #2a0d0d);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.tpl-swatch i {
  font-style: normal;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--a);
  border: 1px solid var(--a);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.12);
}

.tpl-text { min-width: 0; }

.tpl-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpl-text small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 上传 */
.upload-zone {
  position: relative;
  border: 1.5px dashed #d9cbb5;
  border-radius: var(--radius);
  background: #fffaf1;
  min-height: 116px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.upload-zone:hover,
.upload-zone.drag {
  border-color: var(--gold);
  background: #fff6e8;
}

.upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.upload-hint {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 14px;
}

.upload-hint svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  margin-bottom: 2px;
}

.upload-hint strong {
  font-size: 13px;
  font-weight: 600;
}

.upload-hint small {
  font-size: 10.5px;
  color: var(--muted);
}

.photo-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.upload-badge {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 4;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 12, 8, 0.55);
  color: #fff;
  font-size: 10.5px;
  pointer-events: none;
  display: none;
  backdrop-filter: blur(4px);
}

.upload-zone:has(.photo-thumb:not(.hidden)) .upload-badge { display: block; }

.text-btn {
  margin-top: 7px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-btn:hover { color: var(--primary); }

/* 表单 */
.fields { display: flex; flex-direction: column; gap: 9px; }

.field { display: block; }

.field > span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 160, 90, 0.14);
}

/* 按钮 */
.btn {
  border-radius: 11px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--tpl-primary);
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tpl-primary) 28%, transparent);
}

.btn.primary:hover { filter: brightness(1.06); }

.btn.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn.ghost:hover { border-color: var(--gold); }

.btn.wide { width: 100%; }

.btn:disabled { opacity: 0.6; cursor: default; }

.panel-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--card) 55%, rgba(255, 253, 248, 0));
}

.panel-actions .btn { flex: 1; }

.panel-foot {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.foot-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

#footerBrand { color: var(--ink); font-family: var(--serif); letter-spacing: 0.05em; }

.admin-link {
  color: #b6a48e;
  text-decoration: none;
  align-self: flex-start;
}

.admin-link:hover { color: var(--primary); }

/* ---------------- 3D 舞台 ---------------- */
.stage {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #efe7d9;
  overflow: hidden;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
  outline: none;
}

#scene:active { cursor: grabbing; }

.stage-top {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 2;
}

.badge {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(70, 50, 30, 0.07);
}

.view-switch {
  margin-left: auto;
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(70, 50, 30, 0.07);
}

.view-switch button {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  white-space: nowrap;
}

.view-switch button.active {
  background: var(--ink);
  color: #fff;
}

.stage-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.62);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  color: #7c6b58;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
}

.loading,
.busy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(244, 238, 227, 0.9);
  z-index: 6;
}

.loading p { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgba(201, 160, 90, 0.25);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.busy {
  position: fixed;
  background: rgba(28, 18, 12, 0.45);
  backdrop-filter: blur(3px);
  z-index: 40;
}

.busy-card {
  background: var(--card);
  border-radius: 16px;
  padding: 26px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.busy-card p { margin: 0; font-size: 12.5px; color: var(--muted); }

.webgl-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  background: var(--tpl-bg);
}

.webgl-fallback img {
  max-width: min(92%, 640px);
  max-height: 80%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.webgl-fallback p { margin: 0; font-size: 11.5px; color: var(--muted); }

/* ---------------- 弹窗 / 提示 ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(28, 18, 12, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  width: min(94vw, 430px);
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 20px;
  padding: 30px 28px 26px;
  box-shadow: 0 30px 80px rgba(30, 18, 8, 0.3);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f3ecdf;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { background: #eadfcc; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.modal-card h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.modal-sub {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.modal-card .field { margin-bottom: 11px; }

.modal-card .btn { margin-top: 4px; }

.privacy {
  margin: 10px 0 0;
  font-size: 10.5px;
  color: #a79783;
  text-align: center;
}

.done-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(201, 160, 90, 0.16);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin: 6px auto 14px;
}

#leadDone { text-align: center; }

.lead-contact {
  margin: 4px 0 16px;
  font-size: 13px;
  color: var(--ink);
}

.qr-wrap {
  margin: 4px auto 18px;
  max-width: 220px;
}

.qr-wrap img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.qr-wrap p { margin: 8px 0 0; font-size: 11px; color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(43, 33, 26, 0.92);
  color: #fff;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  max-width: 80vw;
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.toast.ok { background: rgba(37, 92, 63, 0.94); }

/* ---------------- 后台 ---------------- */
.admin-page {
  min-height: 100dvh;
  height: auto;
  overflow: auto;
  background: var(--paper);
  padding: 30px 20px 60px;
}

.admin-wrap { max-width: 1100px; margin: 0 auto; }

.admin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.05em;
}

.admin-head .spacer { flex: 1; }

.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.login-card { max-width: 380px; margin: 9vh auto 0; }

.login-card h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 20px;
}

.login-card p { margin: 0 0 18px; font-size: 12px; color: var(--muted); }

.tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
}

.tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--muted);
}

.tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.lead-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lead-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f3ece0;
  cursor: zoom-in;
}

.lead-body { padding: 13px 15px 15px; font-size: 12.5px; }

.lead-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.lead-top strong { font-size: 15px; }

.lead-tel {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lead-meta { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.lead-film { color: #B3141C; font-weight: 600; }

.lead-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.lead-fields span {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f6f0e4;
  color: #6d5a46;
}

.lead-story {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
  font-size: 11.5px;
}
.lead-story summary {
  padding: 7px 10px;
  cursor: pointer;
  color: #7a6449;
  letter-spacing: 0.05em;
}
.lead-story .story-row {
  display: flex;
  gap: 8px;
  padding: 5px 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: #5e4c3a;
}
.lead-story .story-row span {
  flex: 0 0 62px;
  color: #a08b6e;
  font-size: 10.5px;
}
.lead-story .story-row p {
  margin: 0;
  line-height: 1.65;
  word-break: break-word;
  white-space: pre-wrap;
}

.lead-note {
  font-size: 11.5px;
  color: #6d5a46;
  background: #fbf6ec;
  border-left: 2px solid var(--gold);
  padding: 7px 10px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.lead-actions { display: flex; gap: 8px; margin-top: auto; }

.lead-actions .btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 11.5px;
  border-radius: 8px;
}

.empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.settings-grid .field.full { grid-column: 1 / -1; }

.settings-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

.qr-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.qr-preview img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: rgba(43, 33, 26, 0.92);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 30;
}

.admin-toast.show { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 14, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 760px) {
  body { overflow: auto; }

  .shell {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
  }

  .stage {
    order: 1;
    position: sticky;
    top: 0;
    z-index: 8;
    height: 50dvh;
    min-height: 330px;
    flex: none;
    border-bottom: 1px solid var(--line);
  }

  .panel {
    order: 2;
    flex: none;
    width: 100%;
    height: auto;
    overflow: visible;
    border-right: 0;
    padding: 16px 16px 10px;
    gap: 16px;
  }

  .stage-top { top: 10px; left: 10px; right: 10px; gap: 6px; }

  .badge { padding: 5px 11px; font-size: 11.5px; }

  .view-switch button { padding: 5px 9px; font-size: 10.5px; }

  .stage-hint { bottom: 8px; font-size: 9.5px; padding: 4px 10px; }

  .template-cards { grid-template-columns: 1fr 1fr; }

  .panel-actions {
    position: sticky;
    bottom: 0;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    background: linear-gradient(to top, var(--card) 62%, rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0));
    z-index: 7;
  }

  .panel-foot { padding-bottom: 8px; }

  .settings-grid { grid-template-columns: 1fr; }

  .admin-page { padding: 18px 12px 50px; }
  .admin-card { padding: 16px; }
}

@media (max-height: 520px) and (min-width: 761px) {
  .stage-hint { display: none; }
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.search-bar input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  font-family: inherit;
  font-size: 12.5px;
  outline: none;
  background: #fff;
}

.search-bar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 160, 90, 0.13);
}

.search-bar .btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
}

.admin-link-btn {
  text-decoration: none;
  padding: 9px 14px;
  font-size: 12px;
}

.tip-card {
  margin-top: 16px;
}

.tip-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.tip-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.9;
  color: #6d5a46;
}

.tip-card code {
  background: #f4ede0;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

@media (max-width: 760px) {
  .admin-head { flex-wrap: wrap; }
  .lead-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: row; }
}

/* ============ 高端夜宴皮肤 · 精修版（仅前台 body.lounge） ============ */
body.lounge {
  --ink: #EFE6D6;
  --muted: #A08F78;
  --paper: #0A0706;
  --card: #14100E;
  --line: rgba(203, 170, 114, 0.16);
  --gold: #CBAA72;
  --primary: #CBAA72;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --tpl-stage: #150C0B;
  --tpl-glow: #3A1A16;
  color: var(--ink);
  background:
    radial-gradient(120% 85% at 84% 0%, rgba(122, 35, 31, 0.14), transparent 58%),
    radial-gradient(90% 60% at 0% 100%, rgba(203, 170, 114, 0.05), transparent 55%),
    #0A0706;
}

body.lounge ::selection { background: rgba(203, 170, 114, 0.3); color: #fff; }

body.lounge :focus-visible {
  outline: 1px solid rgba(203, 170, 114, 0.7);
  outline-offset: 2px;
}

/* ---------------- 左侧面板 ---------------- */
body.lounge .panel {
  flex: 0 0 452px;
  width: 452px;
  padding: 24px 26px 12px;
  gap: 13px;
  /* 底层纸纹压住纯黑，模仿印刷品 */
  background-color: #0B0807;
  background-image:
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.11'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #191311 0%, #110D0B 52%, #0B0807 100%);
  background-repeat: repeat, no-repeat;
  background-size: 200px 200px, 100% 100%;
  border-right: 1px solid rgba(203, 170, 114, 0.14);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02), 28px 0 80px rgba(0, 0, 0, 0.55);
  scrollbar-color: rgba(203, 170, 114, 0.28) transparent;
}

body.lounge .panel::-webkit-scrollbar { width: 6px; }
body.lounge .panel::-webkit-scrollbar-thumb { background: rgba(203, 170, 114, 0.2); border-radius: 99px; }
body.lounge .panel::-webkit-scrollbar-track { background: transparent; }

body.lounge .brand-head {
  position: relative;
  align-items: center;
  gap: 14px;
  padding: 0 0 14px;
  border-bottom: 0;
}
body.lounge .brand-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(203, 170, 114, 0.55), rgba(203, 170, 114, 0.14) 42%, transparent 78%);
}

body.lounge .brand-mark {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #4C2320, #1A0D0C 70%, #0C0706 100%);
  border: 1px solid rgba(203, 170, 114, 0.42);
  color: #E6C88E;
  font-size: 24px;
  box-shadow:
    inset 0 0 0 4px rgba(9, 6, 5, 0.6),
    inset 0 0 0 5px rgba(203, 170, 114, 0.18),
    inset 0 0 24px rgba(0, 0, 0, 0.65),
    0 10px 26px rgba(0, 0, 0, 0.55);
}

body.lounge .brand-copy h1 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #F6EEDE;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

body.lounge .brand-copy p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: #A18E75;
}
body.lounge .brand-copy p::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 170, 114, 0.7));
}

body.lounge .brand-latin {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(203, 170, 114, 0.38);
}

/* ---------------- 步骤标题 ---------------- */
body.lounge .step { position: relative; }

body.lounge .step-head {
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(203, 170, 114, 0.09);
}
body.lounge .step-head .num {
  font-family: var(--serif);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.14em;
  padding: 4px 7px 3px;
  color: rgba(230, 200, 145, 0.95);
  border: 1px solid rgba(203, 170, 114, 0.28);
  border-radius: 999px;
}
body.lounge .step-head h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: #EAE0CE;
}
body.lounge .step-head .tip { font-size: 9.5px; letter-spacing: 0.06em; color: #87755F; }

/* ---------------- 模板卡 ---------------- */
body.lounge .template-cards { gap: 8px; }

body.lounge .tpl-card {
  position: relative;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(203, 170, 114, 0.14);
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 62%);
  transition: border-color 0.22s, background 0.22s, transform 0.22s, box-shadow 0.22s;
}
body.lounge .tpl-card:hover {
  border-color: rgba(203, 170, 114, 0.4);
  background: linear-gradient(158deg, rgba(203, 170, 114, 0.08), rgba(255, 255, 255, 0.015) 62%);
  transform: translateY(-1px);
}
body.lounge .tpl-card.active {
  border-color: rgba(203, 170, 114, 0.62);
  background: linear-gradient(158deg, rgba(203, 170, 114, 0.14), rgba(203, 170, 114, 0.025) 68%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(203, 170, 114, 0.1);
}
body.lounge .tpl-card.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #E7CB95, rgba(203, 170, 114, 0.12));
}
body.lounge .tpl-card.active::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-top: 1px solid rgba(231, 203, 149, 0.85);
  border-right: 1px solid rgba(231, 203, 149, 0.85);
}
body.lounge .tpl-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-content: center;
  padding: 8px 16px;
}

body.lounge .tpl-swatch {
  position: relative;
  width: 54px;
  height: 56px;
  flex: 0 0 54px;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(203, 170, 114, 0.18), #0A0605 70%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
body.lounge .tpl-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.lounge .tpl-swatch i {
  position: relative;
  z-index: 0;
  font-size: 15px;
  border-color: rgba(255, 255, 255, 0.35);
}

body.lounge .tpl-text strong {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #F1E8D8;
}
body.lounge .tpl-text small {
  margin-top: 5px;
  font-size: 9.5px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #9A8768;
  white-space: normal;
  overflow: hidden;
}
body.lounge .tpl-text small span { display: block; }

/* ---------------- 上传 ---------------- */
body.lounge .upload-zone {
  min-height: 88px;
  border: 1px solid rgba(203, 170, 114, 0.18);
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.014);
  background-image:
    linear-gradient(rgba(226, 196, 141, 0.5), rgba(226, 196, 141, 0.5)),
    linear-gradient(rgba(226, 196, 141, 0.5), rgba(226, 196, 141, 0.5)),
    linear-gradient(rgba(226, 196, 141, 0.5), rgba(226, 196, 141, 0.5)),
    linear-gradient(rgba(226, 196, 141, 0.5), rgba(226, 196, 141, 0.5)),
    linear-gradient(rgba(226, 196, 141, 0.5), rgba(226, 196, 141, 0.5)),
    linear-gradient(rgba(226, 196, 141, 0.5), rgba(226, 196, 141, 0.5)),
    linear-gradient(rgba(226, 196, 141, 0.5), rgba(226, 196, 141, 0.5)),
    linear-gradient(rgba(226, 196, 141, 0.5), rgba(226, 196, 141, 0.5)),
    radial-gradient(130% 120% at 50% 0%, rgba(203, 170, 114, 0.05), transparent 62%);
  background-repeat: no-repeat;
  background-size:
    13px 1px, 1px 13px,
    13px 1px, 1px 13px,
    13px 1px, 1px 13px,
    13px 1px, 1px 13px,
    100% 100%;
  background-position:
    11px 11px, 11px 11px,
    calc(100% - 11px) 11px, calc(100% - 11px) 11px,
    11px calc(100% - 11px), 11px calc(100% - 11px),
    calc(100% - 11px) calc(100% - 11px), calc(100% - 11px) calc(100% - 11px),
    0 0;
}
body.lounge .upload-zone:hover,
body.lounge .upload-zone.drag {
  border-color: rgba(203, 170, 114, 0.45);
  background-color: rgba(203, 170, 114, 0.05);
}
body.lounge .upload-zone:has(.photo-thumb:not(.hidden)) {
  border-color: rgba(203, 170, 114, 0.4);
  background-image: none;
}
body.lounge .photo-thumb { object-position: center 32%; }
body.lounge .upload-hint { min-height: 88px; gap: 2px; }
body.lounge .upload-hint svg { width: 24px; height: 24px; stroke: rgba(203, 170, 114, 0.75); margin-bottom: 0; }
body.lounge .upload-hint strong { font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; color: #DFD2BB; }
body.lounge .upload-hint small { font-size: 9.5px; letter-spacing: 0.05em; color: #85735C; }
body.lounge .upload-badge {
  background: rgba(10, 7, 6, 0.7);
  border: 1px solid rgba(203, 170, 114, 0.3);
  letter-spacing: 0.1em;
}
body.lounge .text-btn { margin-top: 3px; font-size: 10px; letter-spacing: 0.08em; color: #7E6D58; }
body.lounge .text-btn:hover { color: var(--gold); }

/* ---------------- 表单 ---------------- */
body.lounge .fields { gap: 7px; }
body.lounge .field > span {
  margin-bottom: 5px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #8B7A62;
}
body.lounge .field input,
body.lounge .field textarea {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(203, 170, 114, 0.15);
  border-radius: 3px;
  padding: 9px 12px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #F3EADA;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
body.lounge .field input::placeholder,
body.lounge .field textarea::placeholder { color: #6E5F4D; }
body.lounge .field input:focus,
body.lounge .field textarea:focus {
  border-color: rgba(203, 170, 114, 0.6);
  background: rgba(203, 170, 114, 0.04);
  box-shadow: 0 0 0 3px rgba(203, 170, 114, 0.07);
}

/* ---------------- 按钮 ---------------- */
body.lounge .btn { border-radius: 3px; padding: 11px 16px; font-size: 12.5px; }
body.lounge .btn.primary {
  background: linear-gradient(135deg, #E6C894 0%, #C9A468 48%, #B58C4C 100%);
  color: #1B1008;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
body.lounge .btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.lounge .btn.ghost {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(203, 170, 114, 0.28);
  color: #E4D7C1;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}
body.lounge .btn.ghost:hover { border-color: rgba(203, 170, 114, 0.65); background: rgba(203, 170, 114, 0.07); }

body.lounge .panel-actions {
  padding: 10px 26px 2px;
  margin: 0 -26px;
  background: linear-gradient(to top, #0E0A08 62%, rgba(14, 10, 8, 0.9), rgba(14, 10, 8, 0));
}
body.lounge .panel-actions::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 170, 114, 0.2), transparent);
}

body.lounge .panel-foot {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(203, 170, 114, 0.1);
  color: #82715B;
  font-size: 10px;
  letter-spacing: 0.04em;
}
body.lounge #footerBrand { color: #E8DCC7; font-size: 11px; letter-spacing: 0.16em; }
body.lounge .admin-link { color: #6B5D4D; font-size: 9.5px; letter-spacing: 0.1em; white-space: nowrap; }
body.lounge .admin-link:hover { color: var(--gold); }

/* ---------------- 舞台 ---------------- */
body.lounge .stage { background: #0A0706; }
body.lounge .stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(115% 88% at 50% 46%, transparent 50%, rgba(0, 0, 0, 0.36) 100%);
}

body.lounge .badge {
  padding: 8px 16px;
  background: rgba(12, 9, 8, 0.5);
  border: 1px solid rgba(203, 170, 114, 0.24);
  color: #EADFCB;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
body.lounge .view-switch {
  padding: 3px;
  background: rgba(12, 9, 8, 0.5);
  border: 1px solid rgba(203, 170, 114, 0.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
body.lounge .view-switch button {
  padding: 6px 13px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: #9B8A72;
}
body.lounge .view-switch button.active {
  background: linear-gradient(135deg, #E2C48D, #BE9655);
  color: #1B1008;
  font-weight: 600;
}

body.lounge .stage-hint {
  z-index: 2;
  padding: 7px 16px;
  background: rgba(12, 9, 8, 0.4);
  border: 1px solid rgba(203, 170, 114, 0.12);
  color: #9A8870;
  font-size: 10px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
}

body.lounge .loading { background: rgba(10, 7, 6, 0.96); }
body.lounge .loading p { color: #A5937A; letter-spacing: 0.16em; }
body.lounge .busy { background: rgba(6, 4, 3, 0.66); }
body.lounge .busy-card {
  background: #17110F;
  border: 1px solid rgba(203, 170, 114, 0.2);
  border-radius: 3px;
}
body.lounge .busy-card p { color: #A5937A; letter-spacing: 0.1em; }
body.lounge .webgl-fallback { background: #0A0706; }
body.lounge .webgl-fallback p { color: #A5937A; }

/* ---------------- 弹窗与提示 ---------------- */
body.lounge .modal { background: rgba(5, 3, 3, 0.78); backdrop-filter: blur(8px); }
body.lounge .modal-card {
  border-radius: 3px;
  background: linear-gradient(180deg, #1B1512, #100C0A);
  border: 1px solid rgba(203, 170, 114, 0.22);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.lounge .modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 170, 114, 0.45), transparent);
}
body.lounge .modal-close { background: rgba(255, 255, 255, 0.05); color: #A5937A; border-radius: 50%; }
body.lounge .modal-close:hover { background: rgba(203, 170, 114, 0.16); color: #EADFCB; }
body.lounge .eyebrow { color: var(--gold); letter-spacing: 0.32em; }
body.lounge .modal-card h3 { color: #F1E7D5; letter-spacing: 0.12em; font-weight: 500; }
body.lounge .modal-sub { color: #9C8B74; }
body.lounge .privacy { color: #6E6152; letter-spacing: 0.04em; }
body.lounge .done-mark {
  background: rgba(203, 170, 114, 0.12);
  border: 1px solid rgba(203, 170, 114, 0.32);
  color: var(--gold);
}
body.lounge .lead-contact { color: #EFE4D1; letter-spacing: 0.06em; }
body.lounge .qr-wrap img { border: 1px solid rgba(203, 170, 114, 0.28); background: #fff; }
body.lounge .qr-wrap p { color: #8E7D66; }

body.lounge .toast {
  background: rgba(24, 18, 15, 0.96);
  border: 1px solid rgba(203, 170, 114, 0.26);
  color: #F2E8D7;
  letter-spacing: 0.06em;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
body.lounge .toast.ok { background: rgba(26, 58, 40, 0.96); border-color: rgba(120, 200, 150, 0.25); }

@media (max-width: 760px) {
  body.lounge .panel {
    width: 100%;
    flex: none;
    padding: 20px 18px 10px;
    gap: 22px;
    border-right: 0;
  }
  body.lounge .brand-head { padding: 2px 0 18px; }
  body.lounge .brand-copy h1 { font-size: 20px; }
  body.lounge .upload-zone,
  body.lounge .upload-hint { min-height: 124px; }

  body.lounge .panel-actions {
    margin: 0 -18px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, #0E0A08 62%, rgba(14, 10, 8, 0.92), rgba(14, 10, 8, 0));
  }
  body.lounge .panel-actions::before { left: 18px; right: 18px; }

  body.lounge .stage { border-bottom: 1px solid rgba(203, 170, 114, 0.16); }
  body.lounge .badge { letter-spacing: 0.16em; text-indent: 0.16em; }
}

/* ---------------- 定制礼遇 · AI 短片 ---------------- */
.gift-chip {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(203, 170, 114, 0.48);
  background: linear-gradient(135deg, rgba(203, 170, 114, 0.2), rgba(203, 170, 114, 0.05));
  color: #EBD9B7;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.gift-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(231, 203, 149, 0.8);
  background: linear-gradient(135deg, rgba(203, 170, 114, 0.3), rgba(203, 170, 114, 0.08));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.gift-star { color: #E7CB95; font-size: 10px; line-height: 1; }

.film {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 90% at 50% 0%, #17100C 0%, #070504 68%);
}

.film[hidden] { display: none; }

.film canvas {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.film-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: linear-gradient(to top, rgba(4, 3, 2, 0.9), rgba(4, 3, 2, 0));
  pointer-events: none;
}

.film-bar {
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.film-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #E7CB95, #B58C4C);
  transition: width 0.08s linear;
}

.film-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.film-btn {
  pointer-events: auto;
  border: 1px solid rgba(203, 170, 114, 0.28);
  background: rgba(12, 9, 8, 0.5);
  color: #E4D7C1;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}

.film-btn:hover {
  border-color: rgba(231, 203, 149, 0.7);
  color: #F6EEDE;
  background: rgba(30, 22, 18, 0.7);
}

.film-time {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #A08F78;
  font-variant-numeric: tabular-nums;
}

.film-note {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(160, 143, 120, 0.72);
}

.gift-note {
  margin: 2px 0 -4px;
  text-align: center;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #C9A468;
}

@media (max-width: 760px) {
  .gift-chip { display: none; }
  .film { position: fixed; inset: 0; z-index: 12; }
  .film-note { display: none; }
  .film-ui { padding: 20px 12px calc(12px + env(safe-area-inset-bottom)); }
  .film-row { gap: 8px; }
  .film-btn { font-size: 10px; padding: 5px 10px; }
  .gift-note { font-size: 11px; }
}

.film-head {
  position: absolute;
  top: 22px;
  left: 26px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: rgba(203, 170, 114, 0.62);
  pointer-events: none;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .film-head { top: calc(14px + env(safe-area-inset-top)); left: 16px; font-size: 9px; letter-spacing: 0.24em; }
}

/* ================= 落地页下段：礼遇 / 案例 / 故事采集 ================= */
.site {
  position: relative;
  background:
    radial-gradient(90% 60% at 88% 0%, rgba(122, 35, 31, 0.10), transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(203, 170, 114, 0.045), transparent 62%),
    #0A0706;
}

.wrap { width: min(1160px, 100% - 56px); margin: 0 auto; }

.sect {
  position: relative;
  padding: clamp(56px, 7.5vw, 104px) 0;
}
.sect + .sect { border-top: 1px solid rgba(203, 170, 114, 0.10); }

.sect-head { max-width: 720px; }
.sect-head.center { margin: 0 auto; text-align: center; }

/* 标题与导语左右分栏，导语压到基线 */
.sect-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.8fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
}
.sect-head.split .sect-lead {
  margin-bottom: 7px;
  padding-left: clamp(16px, 2.2vw, 30px);
  border-left: 1px solid rgba(203, 170, 114, 0.18);
}
/* 分栏标题按意群断成两行，避免单行挤到折行 */
.sect-head.split .br-m { display: inline; }
.sect-head.split h2 { font-size: clamp(27px, 3.5vw, 41px); }

.sect-head .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(203, 170, 114, 0.85);
}
.sect-head .eyebrow::after {
  content: "";
  flex: 0 0 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(203, 170, 114, 0.55), transparent);
}
.sect-head.center .eyebrow { justify-content: center; }
.sect-head.center .eyebrow::before {
  content: "";
  flex: 0 0 46px;
  height: 1px;
  background: linear-gradient(270deg, rgba(203, 170, 114, 0.55), transparent);
}

.sect-head h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(27px, 3.9vw, 44px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0.06em;
  color: #F6EEDE;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.sect-lead {
  margin: 0;
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: #A08F78;
}

.br-m { display: none; }

/* ---------- 案例 ---------- */
.case { margin: clamp(28px, 3.4vw, 44px) 0 0; }

.case-frame {
  position: relative;
  border: 1px solid rgba(203, 170, 114, 0.3);
  background: #000;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.62), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.case-frame::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(203, 170, 114, 0.09);
  pointer-events: none;
}

.case-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.case-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 2px 0;
}
.case-cap-main strong {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #EFE4D1;
}
.case-cap-main small {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #87755F;
}
.case-src {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #6E6152;
  border: 1px solid rgba(203, 170, 114, 0.16);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}

.case-info {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.3fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(24px, 2.8vw, 34px);
  padding-top: clamp(22px, 2.6vw, 32px);
  border-top: 1px solid rgba(203, 170, 114, 0.12);
}

.case-quote {
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(203, 170, 114, 0.42);
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 2;
  letter-spacing: 0.08em;
  color: #DCC9A6;
}

.case-body {
  margin: 0;
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.03em;
  color: #95846D;
}
.case-body b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #EFE4D1;
}

.case-steps {
  list-style: none;
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(203, 170, 114, 0.12);
  border-bottom: 1px solid rgba(203, 170, 114, 0.12);
}
.case-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(12px, 1.6vw, 26px);
}
.case-steps li + li { border-left: 1px solid rgba(203, 170, 114, 0.12); }
.case-steps span {
  flex: 0 0 28px;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(230, 200, 145, 0.9);
  border: 1px solid rgba(203, 170, 114, 0.26);
  border-radius: 999px;
  padding: 3px 0;
  text-align: center;
}
.case-steps b {
  display: block;
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #EAE0CE;
}
.case-steps small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #7E6D58;
}

.case-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: clamp(22px, 2.6vw, 30px);
}
.case-actions .btn { flex: 0 0 auto; min-width: 200px; }

.br-d { display: none; }

/* ---------- 故事采集卡 ---------- */
.sect-story .wrap { max-width: 1120px; }

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4.4vw, 72px);
  align-items: start;
}

.story-side { position: sticky; top: 44px; }
.story-side .sect-head h2 { font-size: clamp(24px, 2.9vw, 34px); }
.story-side .br-m { display: inline; }

.story-notes {
  list-style: none;
  margin: clamp(26px, 3vw, 40px) 0 0;
  padding: 0;
  border-top: 1px solid rgba(203, 170, 114, 0.12);
}
.story-notes li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(203, 170, 114, 0.08);
}
.story-notes b {
  flex: 0 0 26px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(230, 200, 145, 0.9);
}
.story-notes span {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #8B7A62;
}

.story-card {
  position: relative;
  margin-top: 0;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid rgba(203, 170, 114, 0.18);
  background:
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.09'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006));
  background-repeat: repeat, no-repeat;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(22px, 3vw, 42px);
  right: clamp(22px, 3vw, 42px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 170, 114, 0.45), transparent);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 34px;
}

.story-field { display: block; position: relative; }
.story-field.wide { grid-column: 1 / -1; }

.story-field b {
  display: block;
  margin: 0 0 9px;
  padding-right: 34px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: #EFE4D1;
}

.story-idx {
  position: absolute;
  top: 1px;
  right: 0;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(203, 170, 114, 0.6);
}

.story-field textarea {
  width: 100%;
  min-height: 82px;
  padding: 11px 13px;
  border: 1px solid rgba(203, 170, 114, 0.16);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.022);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: #F3EADA;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.story-field textarea::placeholder { color: #6E5F4D; }
.story-field textarea:focus {
  border-color: rgba(203, 170, 114, 0.6);
  background: rgba(203, 170, 114, 0.04);
  box-shadow: 0 0 0 3px rgba(203, 170, 114, 0.07);
}

.story-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(203, 170, 114, 0.12);
}

.story-style-label {
  display: block;
  margin-bottom: 10px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: #8B7A62;
}

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  border: 1px solid rgba(203, 170, 114, 0.22);
  background: rgba(255, 255, 255, 0.02);
  color: #9B8A72;
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.chip:hover { border-color: rgba(203, 170, 114, 0.5); color: #E4D7C1; }
.chip.active {
  border-color: rgba(231, 203, 149, 0.85);
  background: linear-gradient(135deg, rgba(226, 196, 141, 0.9), rgba(190, 150, 85, 0.85));
  color: #1B1008;
  font-weight: 600;
}

.story-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.story-count {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #80705C;
}
.story-count.on { color: rgba(230, 200, 145, 0.9); }

/* ---------- 站点页脚 ---------- */
.site-foot {
  border-top: 1px solid rgba(203, 170, 114, 0.12);
  padding: 30px 0 38px;
}
.foot-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .brand-mark { width: 40px; height: 40px; flex: 0 0 40px; font-size: 18px; }
.foot-brand b {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #E8DCC7;
}
.foot-brand small {
  display: block;
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(203, 170, 114, 0.36);
}
.foot-contact {
  margin: 0 0 0 auto;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #8B7A62;
}
.site-foot .admin-link { font-size: 10px; }

/* ---------- 舞台滚动提示 ---------- */
.scroll-cue {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(203, 170, 114, 0.24);
  background: rgba(12, 9, 8, 0.45);
  color: #C3B195;
  font-family: var(--serif);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.scroll-cue:hover {
  border-color: rgba(231, 203, 149, 0.7);
  color: #F6EEDE;
  background: rgba(30, 22, 18, 0.7);
}
.scroll-cue svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  animation: cueBounce 2.2s ease-in-out infinite;
}
@keyframes cueBounce {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(2px); }
}

.gift-note.sub {
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #8B7A62;
}

@media (max-width: 900px) {
  .sect-head.split { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .sect-head.split .sect-lead { margin-bottom: 0; padding-left: 0; border-left: 0; }
  .case-info { grid-template-columns: 1fr; gap: 22px; }
  .br-d { display: inline; }
  .story-layout { grid-template-columns: 1fr; gap: 26px; }
  .story-side { position: static; }
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .sect { padding: 46px 0; }
  .sect-head h2 { font-size: 25px; letter-spacing: 0.04em; }
  .sect-lead { font-size: 12.5px; line-height: 1.95; }
  .br-m { display: inline; }
  .scroll-cue { display: none; }
  .case-quote { font-size: 14px; line-height: 1.9; padding-left: 15px; }
  .case-body { font-size: 12.4px; line-height: 2; }
  .case-body b { font-size: 13.5px; }
  .case-steps { grid-template-columns: 1fr; }
  .case-steps li { padding: 14px 4px; }
  .case-steps li + li { border-left: 0; border-top: 1px solid rgba(203, 170, 114, 0.12); }
  .case-actions { justify-content: stretch; }
  .case-actions .btn { flex: 1 1 100%; min-width: 0; }
  .story-card { padding: 20px 16px 22px; }
  .story-foot { flex-direction: column; align-items: stretch; }
  .story-actions { justify-content: space-between; }
  .story-actions .btn { flex: 1 1 auto; }
  .foot-inner { gap: 14px; }
  .foot-contact { margin-left: 0; width: 100%; }
}

/* ================= 手机端：底部操作条 / 长按存图 / iOS 细节 ================= */

/* 深色页滚到顶/底时 iOS 会露白，html 也要跟着深 */
html:has(body.lounge) { background: #0A0706; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(10, 7, 6, 0.94);
  border-top: 1px solid rgba(203, 170, 114, 0.2);
  backdrop-filter: blur(16px);
  transform: translateY(120%);
  transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.24, 1);
  pointer-events: none;
}

.dock.show {
  transform: translateY(0);
  pointer-events: auto;
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 46px;
  padding: 6px 4px;
  border: 1px solid rgba(203, 170, 114, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  color: #C9B79B;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}

.dock-btn:active { background: rgba(203, 170, 114, 0.1); }

.dock-ico { font-size: 13px; line-height: 1; color: rgba(231, 203, 149, 0.85); }

.dock-btn.primary {
  border-color: rgba(231, 203, 149, 0.7);
  background: linear-gradient(135deg, #E6C894 0%, #C9A468 48%, #B58C4C 100%);
  color: #1B1008;
  font-weight: 600;
}
.dock-btn.primary .dock-ico { color: #1B1008; }

@media (max-width: 760px) {
  .dock { display: grid; }

  /* iOS 输入框字号小于 16px 会在聚焦时自动放大整页 */
  body.lounge .field input,
  body.lounge .field textarea,
  .story-field textarea,
  .modal-card input,
  .modal-card textarea { font-size: 16px; }

  .story-field textarea { min-height: 96px; line-height: 1.7; }

  /* 底部操作条不压住页脚 */
  .site-foot { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

  /* 触摸设备上没有 hover，把悬停态换成常亮，避免看起来像禁用 */
  .chip, .btn.ghost, .film-btn { border-color: rgba(203, 170, 114, 0.34); }
}

/* 定制说明：起订量 / 报价 / 交期 / 交付（后台可改） */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(10px, 2vw, 28px);
  margin: clamp(30px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(203, 170, 114, 0.14);
}

.notice-grid li { padding: 20px 0 4px; }

.notice-grid span {
  display: block;
  margin-bottom: 9px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: #8B7A62;
}

.notice-grid b {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: #EFE4D1;
}

@media (max-width: 760px) {
  .notice-grid { grid-template-columns: 1fr 1fr; }
  .notice-grid li { padding: 18px 0 2px; }
  .notice-grid b { font-size: 13.5px; }
}

/* 长按存图（微信 / iOS 走这条，不依赖 <a download>） */
.poster-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 3, 2, 0.94);
  backdrop-filter: blur(6px);
  -webkit-overflow-scrolling: touch;
}

.poster-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.poster-overlay img {
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
  touch-action: manipulation;
}

.poster-overlay p {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: #C9A468;
  text-align: center;
}

.poster-overlay .btn {
  min-width: 132px;
  border-color: rgba(203, 170, 114, 0.4);
  color: #E4D7C1;
}
