:root {
  --bg: #050a10;
  --panel: rgba(6, 16, 28, 0.78);
  --ink: #f4fbff;
  --ink-soft: #8aa4b8;
  --rose: #00e5ff;
  --rose-bright: #67f6ff;
  --cta-ink: #041018;
  --line: rgba(0, 229, 255, 0.18);
  --line-strong: rgba(0, 229, 255, 0.42);
  --shadow: 0 24px 60px rgba(0, 8, 18, 0.55);
  --sider-w: 168px;
  --topbar-h: 64px;
  --radius: 18px;
  --cyan: #00e5ff;
  --navy: #071018;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-en: Palatino, "Palatino Linotype", "Iowan Old Style", "Times New Roman", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(0,229,255,.12), transparent 55%),
    linear-gradient(165deg, #050a10, #08141e 50%, #04080d);
}
body { overflow-x: hidden; }
/* 桌面：整页不滚，右侧内容区内部滚 */
@media (min-width: 761px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }
  body {
    display: flex;
    flex-direction: column;
  }
}
body.view-create { overflow: hidden; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .06;
  z-index: 0;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  pointer-events: none;
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .2;
  z-index: 0;
}
.glow-a { top: 0; left: 180px; background: #00e5ff; }
.glow-b { bottom: 0; right: -40px; background: #0a6b78; }

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 16, 0.92);
  backdrop-filter: blur(16px);
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar-left { flex: 1; }
.topbar-right { flex-shrink: 0; }

.top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  background: rgba(255,255,255,.04);
}
.top-brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--ink);
  white-space: nowrap;
}
.top-brand-text em {
  font-family: var(--font-en);
  font-style: normal;
  font-weight: 700;
  color: var(--rose-bright);
  margin-left: 4px;
  letter-spacing: .08em;
  font-size: .92em;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 520px;
  height: 40px;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.search-ico {
  color: var(--ink-soft);
  font-size: 1rem;
}
.search-pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .84rem;
}
.search-pill input::placeholder { color: rgba(138,164,184,.55); }
.search-btn {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #67f6ff, #00e5ff);
  color: var(--cta-ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pill-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink-soft);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pill-btn.accent {
  color: var(--rose-bright);
  border-color: rgba(0,229,255,.35);
  background: rgba(0,229,255,.1);
}

.credits-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  white-space: nowrap;
  font-size: .78rem;
}
.credits-wrap {
  position: relative;
  z-index: 70;
}
.credits-ad-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  /* 宽度跟广告图走，避免左右黑边比底边更厚 */
  width: fit-content;
  max-width: min(720px, 92vw);
  padding-top: 6px;
  z-index: 80;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5));
}
.credits-ad-pop[hidden] { display: none !important; }
.credits-ad-pop::before {
  content: "";
  position: absolute;
  top: 0;
  right: 36px;
  width: 12px;
  height: 12px;
  background: #0a161e;
  border-left: 1px solid rgba(0, 229, 255, 0.28);
  border-top: 1px solid rgba(0, 229, 255, 0.28);
  transform: rotate(45deg);
  z-index: 1;
}
.credits-ad-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
}
.credits-ad-link.is-nolink:not(.is-action) {
  pointer-events: none;
  cursor: default;
}
.credits-ad-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(720px, 92vw);
  max-height: min(640px, 78vh);
  object-fit: contain;
  background: transparent;
  vertical-align: top;
}
.credits-bolt { font-size: .9rem; }
.credits-pill strong {
  color: var(--rose-bright);
  font-size: .95rem;
}
.credits-unit { color: var(--ink-soft); }
.credits-split {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
  margin: 0 4px;
}
.credits-cta { color: var(--ink-soft); }
.credits-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  font-size: .58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: #c45c4a;
  color: #fff;
}

.icon-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: .9rem;
}
.bell-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c45c4a;
  color: #fff;
  font-style: normal;
  font-size: .62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.user-menu-wrap { position: relative; }
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #67f6ff, #00c4d8);
  color: var(--cta-ink);
  font-size: .72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.avatar.lg { width: 42px; height: 42px; font-size: .95rem; }
.avatar.xl { width: 64px; height: 64px; font-size: 1.35rem; }
.chev { color: var(--ink-soft); font-size: .7rem; }
.chev-right { color: var(--ink-soft); font-size: 1.1rem; }

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #221c18, #15110e);
  box-shadow: 0 24px 50px rgba(0,0,0,.45);
  z-index: 80;
  animation: userMenuIn .2s ease both;
}
.user-menu[hidden] { display: none !important; }
@keyframes userMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.user-menu-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.user-menu-head:hover { background: rgba(255,255,255,.06); }
.user-menu-meta strong {
  display: block;
  font-size: .95rem;
}
.user-menu-meta em {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-style: normal;
  font-size: .72rem;
  color: var(--ink-soft);
}
.copy-ico {
  font-style: normal;
  cursor: pointer;
  opacity: .8;
}
.user-menu-vip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,229,255,.28);
  background: linear-gradient(135deg, rgba(0,229,255,.16), rgba(0,0,0,.2));
}
.user-menu-vip strong { display: block; font-size: .9rem; }
.user-menu-vip p {
  margin: 4px 0 0;
  font-size: .72rem;
  color: var(--ink-soft);
}
.btn.sm {
  height: 34px;
  padding: 0 12px;
  font-size: .78rem;
  white-space: nowrap;
}
.user-menu-list {
  display: grid;
  gap: 2px;
  padding: 4px 0 8px;
  border-top: 1px solid rgba(0,229,255,.1);
}
.user-menu-list button {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}
.user-menu-list button:hover { background: rgba(255,255,255,.05); }
.user-menu-logout {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(0,229,255,.1);
  background: transparent;
  color: var(--ink-soft);
  padding: 12px;
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}
.user-menu-logout:hover { color: var(--rose-bright); }

/* 我的 · 个人中心 */
.me-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
}
.me-modal[hidden] { display: none !important; }
.me-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}
.me-sheet {
  position: relative;
  width: min(860px, 100%);
  min-height: min(560px, 90vh);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(0,229,255,.12), transparent 55%),
    linear-gradient(165deg, #241e19, #14110e);
  box-shadow: var(--shadow);
  color: var(--ink);
  animation: vipSheetIn .35s ease both;
}
.me-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: inherit;
  max-height: 92vh;
}
.me-side {
  padding: 28px 16px 20px;
  border-right: 1px solid rgba(0,229,255,.12);
  background: rgba(0,0,0,.18);
}
.me-side h2 {
  margin: 0 40px 18px 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
}
.me-nav { display: grid; gap: 4px; }
.me-nav button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  padding: 12px 12px;
  border-radius: 12px;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.me-nav button.on,
.me-nav button:hover {
  color: var(--ink);
  background: rgba(255,255,255,.06);
}
.me-main {
  padding: 28px 28px 24px;
  overflow: auto;
  max-height: 92vh;
}
.me-panel { display: none; }
.me-panel.on { display: block; animation: userMenuIn .25s ease both; }
.me-panel h3 {
  margin: 0 0 18px;
  /* 黄油体部分汉字左轴承为负，在 overflow 容器里会被切成「卩」状 */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  padding-left: 1px;
  overflow: visible;
}
.me-avatar-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.me-avatar-row > div {
  flex: 1;
  min-width: 0;
}
.me-hint {
  margin: 0 0 10px;
  font-size: .84rem;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.me-hint.soft { color: var(--ink-soft); font-size: .78rem; margin-top: 4px; }
.me-field {
  display: block;
  margin-bottom: 16px;
  position: relative;
}
.me-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: .8rem;
  color: var(--ink-soft);
}
.me-field input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--ink);
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px; /* 避免手机聚焦整页放大 */
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
}
.me-field em {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-style: normal;
  font-size: .72rem;
  color: var(--ink-soft);
}
.me-readonly {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.ghost-btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
  white-space: nowrap;
}
.me-sex { display: flex; gap: 8px; flex-wrap: wrap; }
.me-sex button {
  min-width: 72px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
}
.me-sex button.on {
  color: var(--cta-ink);
  background: linear-gradient(135deg, #67f6ff, #00e5ff);
  border-color: transparent;
}
.me-orders { display: grid; gap: 10px; }
.me-order {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
}
.me-order strong { display: block; margin-bottom: 4px; }
.me-order p { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.me-order em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: .72rem;
  color: var(--ink-soft);
  opacity: .8;
}
.me-order time {
  font-size: .75rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.me-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 12px;
}
@media (max-width: 720px) {
  .me-modal {
    padding: 10px;
    align-items: stretch;
  }
  .me-sheet {
    width: 100%;
    min-height: 0;
    max-height: min(92dvh, 92vh);
    display: flex;
    flex-direction: column;
  }
  .me-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .me-side {
    border-right: 0;
    border-bottom: 1px solid rgba(0,229,255,.12);
    padding: 18px 14px 12px;
    flex-shrink: 0;
  }
  .me-side h2 {
    margin: 0 44px 12px 0;
    font-size: 1.35rem;
  }
  .me-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .me-nav button {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 12px;
  }
  .me-main {
    padding: 16px 16px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: none;
    flex: 1;
    min-height: 0;
  }
  .me-avatar-row {
    gap: 12px;
  }
  .me-avatar-row .avatar.xl {
    flex-shrink: 0;
  }
}

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sider-w) 1fr;
  flex: 1;
  min-height: 0;
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
}

.sider {
  position: relative;
  z-index: 30;
  grid-column: 1;
  height: 100%;
  min-height: 0;
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  background: rgba(14, 12, 10, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sider-nav { display: grid; gap: 8px; }

.sider-mine {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.sider-mine-head {
  display: grid;
  gap: 2px;
  padding: 0 12px 2px;
}
.sider-mine-kicker {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
}
.sider-mine-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.sider-mine-nav {
  display: grid;
  gap: 6px;
}
.sider-bottom {
  margin-top: auto;
}
.sider-user {
  display: none;
}
.sider-user-links {
  display: none;
}

.coming-soon {
  width: min(520px, 100%);
  margin: 24px auto 40px;
  padding: 36px 28px;
  text-align: center;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.coming-soon-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--rose-bright);
}
.coming-soon-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 12px;
  padding: 11px 10px;
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 400;
  letter-spacing: .06em;
  cursor: pointer;
  text-align: left;
  transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.nav-item:hover { color: var(--ink); background: rgba(255,255,255,.03); }
.nav-item.on {
  color: var(--rose-bright);
  background: rgba(0,229,255,.12);
  border-color: var(--line);
}
.nav-label {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  display: inline-block;
}
.nav-ico {
  width: 1.35em;
  font-family: var(--font-en);
  font-size: .92rem;
  opacity: .9;
  letter-spacing: 0;
}
.nav-item-hot {
  /* 热门只靠气泡提示，不额外做成选中底，避免和 .on 混淆 */
  color: var(--ink-soft);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.nav-item-hot:hover {
  color: var(--ink);
  background: rgba(255,255,255,.03);
}
.nav-item-hot.on {
  color: var(--rose-bright);
  background: rgba(0,229,255,.12);
  border-color: var(--line);
  box-shadow: none;
}
.nav-hot {
  position: absolute;
  top: -10px;
  left: calc(100% - 2px);
  padding: 1px 6px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #1a120c;
  background: linear-gradient(135deg, #f0d2b0, #d4a574);
  box-shadow: 0 3px 8px rgba(180,120,70,.35);
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  animation: hot-bob 2.4s ease-in-out infinite;
}
@keyframes hot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.plaza-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: -4px 0 16px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.filter-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.filter-chip.on {
  color: var(--cta-ink);
  background: linear-gradient(135deg, #67f6ff, #00e5ff);
  border-color: transparent;
}

.sider-bottom {
  margin-top: auto;
  display: grid;
  gap: 0;
}
.sider-contact {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 0; /* 只要底色，不要描边 */
  background: rgba(255, 255, 255, 0.03);
}
.sider-contact-title {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-align: center;
}
.sider-contact-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sider-contact-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #cfc3b6;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.sider-contact-btn:hover,
.sider-contact-btn.is-on {
  color: var(--rose-bright);
  border-color: var(--line-strong);
  background: rgba(0, 229, 255, 0.12);
}
.sider-contact-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.sider-contact-pop {
  position: fixed;
  z-index: 140;
  min-width: 168px;
  max-width: min(220px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: rgba(28, 22, 18, 0.97);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  color: #f0e6da;
  pointer-events: auto;
}
.sider-contact-pop[hidden] { display: none !important; }
.sider-contact-pop-arrow {
  position: absolute;
  left: -6px;
  right: auto;
  top: var(--arrow-top, 50%);
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: rgba(28, 22, 18, 0.97);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-right: none;
  border-top: none;
  transform: rotate(45deg);
  box-sizing: border-box;
}
/* 气泡在图标左侧时，箭头改到右侧指向图标 */
.sider-contact-pop.is-arrow-right .sider-contact-pop-arrow {
  left: auto;
  right: -6px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-left: none;
  border-bottom: none;
}
.sider-contact-pop-title {
  margin: 0 0 8px;
  font-size: .78rem;
  color: var(--rose-bright);
  letter-spacing: .04em;
}
.sider-contact-pop-qr {
  width: 148px;
  height: 148px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: block;
  margin: 0 auto;
}
.sider-contact-pop-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sider-contact-pop-tip {
  margin: 8px 0 0;
  font-size: .72rem;
  line-height: 1.45;
  color: rgba(240, 230, 218, 0.78);
  text-align: center;
}
.sider-contact-pop-meta {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: .84rem;
  line-height: 1.5;
}
.sider-contact-pop-meta dt {
  margin: 0;
  font-size: .72rem;
  color: var(--ink-soft);
}
.sider-contact-pop-meta dd {
  margin: 2px 0 0;
  color: #f0e6da;
}
.sider-contact-pop-meta a,
.sider-contact-pop-meta a[href^="tel:"],
.sider-contact-pop a[href^="tel:"] {
  color: #f0e6da !important;
  text-decoration: none;
  -webkit-text-fill-color: #f0e6da;
}
.sider-contact-pop-meta a:hover {
  color: var(--rose-bright) !important;
  -webkit-text-fill-color: var(--rose-bright);
}
.sider-contact-pop-empty {
  margin: 0;
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.sider-beian {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  text-align: left;
  color: rgba(168, 152, 136, 0.55);
  font-size: 0.58rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.sider-beian-company,
.sider-beian-icp {
  margin: 0;
  word-break: break-all;
}
.sider-beian-icp {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}
.sider-beian a {
  color: inherit;
  text-decoration: none;
}
.sider-beian a:hover {
  color: rgba(0, 229, 255, 0.85);
}

.sider-foot {
  display: none !important;
}

.main {
  grid-column: 2;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.main-views {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.view {
  display: none;
}
.view.on {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  padding: 22px 24px 0;
  overflow: hidden;
  animation: fade .25s ease;
}
.view-sticky {
  flex-shrink: 0;
}
.view-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 28px;
}

/* 广场：整区滚动；标题滚走，分类吸顶（贴顶、不透底） */
#viewPlaza.on.view-flow {
  padding: 0;
  overflow: hidden;
}
#viewPlaza .view-flow-scroll {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* 顶部分给标题，避免 padding 导致 sticky 分类下方镂空透出卡牌 */
  padding: 0 24px 8px;
}
#viewPlaza .view-head {
  padding-top: 10px;
  margin-bottom: 10px;
  align-items: center;
}
.plaza-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.plaza-head-text {
  min-width: 0;
  flex: 1 1 auto;
}

.ad-splash {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px;
}
.ad-splash[hidden] { display: none !important; }
.ad-splash-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.ad-splash-sheet {
  position: relative;
  z-index: 1;
  width: min(980px, 90vw);
  max-height: min(86vh, 820px);
}
.ad-splash-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: rgba(28, 22, 18, 0.96);
  color: #f0e6da;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.ad-splash-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: #0a161e;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  line-height: 0;
  cursor: pointer;
}
.ad-splash-link.is-nolink {
  cursor: default;
}
.ad-splash-link.is-nolink:not(.is-action) {
  pointer-events: none;
}
.ad-splash-link.is-action {
  pointer-events: auto;
  cursor: pointer;
}
.ad-splash-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(82vh, 760px);
  object-fit: contain;
  background: #111;
}
@media (max-width: 760px) {
  .ad-splash {
    padding: 12px;
    touch-action: none;
  }
  .ad-splash-sheet {
    /* 宽度跟广告图走，关闭按钮才能贴在图的右上角 */
    width: fit-content;
    max-width: 92vw;
    max-height: min(78vh, 640px);
    margin: 0 auto;
  }
  .ad-splash-link {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    width: fit-content;
    max-width: 100%;
  }
  .ad-splash-link img {
    width: auto;
    max-width: 92vw;
    max-height: min(78vh, 640px);
    height: auto;
    background: transparent;
  }
  .ad-splash-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.72);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }
}
#viewPlaza .plaza-filters {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 0 -24px 14px;
  padding: 6px 24px 10px;
  background: #050a10;
  box-shadow: 0 1px 0 rgba(0, 229, 255, 0.12);
  overflow: hidden;
}
.plaza-filters .filter-chip-pin {
  flex: 0 0 auto;
  z-index: 1;
}
.plaza-filters-marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
  cursor: grab;
}
.plaza-filters-marquee:active {
  cursor: grabbing;
}
.plaza-filters-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: max-content;
  will-change: transform;
  padding-right: 8px;
}
.plaza-filters-track .filter-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}
/* 版权跟内容滚动，不再钉在主栏底部 */
.site-beian-inflow {
  margin-top: 48px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: transparent;
}
#viewMine .site-beian-inflow {
  margin-top: 56px;
}

.load-sentinel {
  margin: 12px 0 8px;
  text-align: center;
  color: var(--ink-soft);
  font-size: .8rem;
}
.load-sentinel[hidden] { display: none !important; }
#viewCreate.on {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 14px 20px 0;
  animation: fade .25s ease;
}
#viewCreate .create-wizard {
  flex: 1 1 auto;
  min-height: 0;
}
#viewCreate .site-beian-inflow {
  flex-shrink: 0;
  padding: 6px 0 10px;
  font-size: 0.68rem;
  opacity: 0.65;
}
#viewCreate .view-head {
  flex-shrink: 0;
  margin-bottom: 8px;
  align-items: flex-end;
}
#viewCreate .view-head h1 {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
#viewCreate .view-head p {
  font-size: .78rem;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.view-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.95rem;
  letter-spacing: .06em;
}
.view-head p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: .86rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.masonry-item {
  margin-bottom: 0;
  border-radius: 16px;
  overflow: visible;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  cursor: pointer;
  transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .2s ease, box-shadow .28s ease;
  will-change: transform;
}
.masonry-item:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 22px 48px rgba(0,0,0,.45);
  z-index: 2;
}
.masonry-item img,
.masonry-item .card-fx-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.4,0,.2,1), filter .3s ease;
}
.masonry-item:hover .card-fx-frame img {
  transform: scale(1.05);
  filter: brightness(1.08) saturate(1.06);
}
.masonry-item .card-fx-frame {
  aspect-ratio: 5 / 7;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(45deg, #2a2420 25%, transparent 25%),
    linear-gradient(-45deg, #2a2420 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2420 75%),
    linear-gradient(-45deg, transparent 75%, #2a2420 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #1a1613;
}
.masonry-item .card-fx-frame.card-fx--cosmos,
.mine-card .card-fx-frame.card-fx--cosmos,
.detail-stage.card-fx--cosmos,
.lightbox-frame.card-fx--cosmos {
  background-image:
    linear-gradient(#1a1613, #1a1613),
    linear-gradient(
      135deg,
      #ff6b9d,
      #a371f7,
      #58a6ff,
      #3fb950,
      #f4d875,
      #ff6b9d
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 400% 400%;
  background-color: transparent;
  background-position: 0 0, 0 0;
}
.masonry-cap {
  padding: 8px 10px 10px;
  font-size: .75rem;
  color: var(--ink-soft);
}
.masonry-cap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  min-width: 0;
}
.masonry-cap-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.masonry-cap strong {
  display: block;
  color: var(--ink);
  font-size: .84rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.masonry-cap-meta {
  margin: 0;
  font-size: .72rem;
  line-height: 1.35;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-story-btn,
.lightbox-story {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(20, 16, 12, 0.55);
  color: rgba(240, 230, 218, 0.88);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.72rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.card-story-btn:hover,
.lightbox-story:hover {
  color: var(--rose-bright);
  border-color: rgba(0, 229, 255, 0.7);
}
.lightbox-story[hidden] { display: none !important; }
.story-popover {
  position: fixed;
  z-index: 120;
  width: min(320px, calc(100vw - 24px));
  max-height: min(240px, 40vh);
  overflow: visible;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: rgba(28, 22, 18, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  color: #f0e6da;
  pointer-events: none;
}
.story-popover[hidden] { display: none !important; }
.story-popover-arrow {
  position: absolute;
  left: var(--arrow-left, 50%);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: rgba(28, 22, 18, 0.96);
  border: 1px solid rgba(0, 229, 255, 0.45);
  transform: rotate(45deg);
  box-sizing: border-box;
}
.story-popover.is-above .story-popover-arrow {
  bottom: -7px;
  border-top: none;
  border-left: none;
}
.story-popover.is-below .story-popover-arrow {
  top: -7px;
  border-bottom: none;
  border-right: none;
}
.story-popover-name {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  color: var(--rose-bright);
}
.story-popover-body {
  white-space: pre-wrap;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(240, 230, 218, 0.92);
  max-height: min(200px, 34vh);
  overflow: auto;
}
@media (max-width: 760px) {
  .story-popover { display: none !important; }
}
.story-sheet {
  max-width: 440px;
}
.story-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.story-card-name {
  margin: 0 0 14px;
  color: var(--rose-bright);
  font-size: 0.92rem;
}
.story-body {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 0.92rem;
  color: var(--ink);
  min-height: 80px;
}
.story-sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.story-sample-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}
.story-sample-chip:hover {
  color: var(--ink);
  border-color: rgba(0, 229, 255, 0.55);
}
.me-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.me-order-actions .btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  margin: 0;
  line-height: 1.2;
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .me-order {
    flex-direction: column;
    align-items: stretch;
  }
  .me-order time {
    order: -1;
    margin-bottom: 4px;
  }
  .me-order-actions {
    width: 100%;
  }
  .me-order-actions .btn {
    flex: 1 1 0;
  }
}
.btn.danger,
.ghost-btn.danger {
  color: #e8a0a0;
}
.card-like-btn,
.lightbox-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(20, 16, 12, 0.55);
  color: rgba(240, 230, 218, 0.78);
  border-radius: 999px;
  padding: 3px 8px 3px 7px;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.card-like-btn .card-like-ico,
.lightbox-like .card-like-ico {
  font-style: normal;
  font-size: 0.85rem;
  opacity: 0.85;
}
.card-like-btn .card-like-num,
.lightbox-like .card-like-num {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  min-width: 0.8em;
}
.card-like-btn:hover,
.lightbox-like:hover {
  color: var(--rose-bright);
  border-color: rgba(0, 229, 255, 0.7);
}
.card-like-btn.on,
.lightbox-like.on {
  color: #f3a6b5;
  border-color: rgba(243, 166, 181, 0.55);
  background: rgba(90, 36, 48, 0.45);
}
.card-like-btn.on .card-like-ico,
.lightbox-like.on .card-like-ico {
  opacity: 1;
}

.empty-block {
  text-align: center;
  color: var(--ink-soft);
  padding: 48px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.create-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 16px;
  align-items: stretch;
}
/* 单栏创作向导 */
.create-wizard {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}
.create-step {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.create-step[hidden] {
  display: none !important;
}
.create-step-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0 12px;
  -webkit-overflow-scrolling: touch;
}
.create-step-body > .block,
.create-step-body > .create-field,
.create-step-body > .prompt-wrap,
.create-step-body > .check-public {
  margin-left: 18px;
  margin-right: 18px;
}
.create-style-block {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* 第 1 步：上传 + 风格不滚动，按钮贴底 */
#createStep1 > .create-step-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
#createStep1 .create-photo-uploader {
  flex: 1 1 auto;
  min-height: 140px;
  height: auto;
  max-height: none;
  margin: 0 0 12px;
}
#createStep1 .create-style-block {
  flex: 0 0 auto;
  margin: 0 16px 10px;
}
#createStep1 > .create-form-cta {
  margin-top: auto;
}
.create-step-indicator {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.create-step-indicator span {
  font-size: .74rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.create-step-indicator span.on {
  color: var(--ink);
  border-color: rgba(0,229,255,.55);
  background: rgba(0,229,255,.12);
}
.create-photo-uploader {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  min-height: 180px;
  height: auto;
  position: relative;
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
}
.create-photo-uploader:not(.has-image) {
  overflow: visible;
  border: none;
  background:
    linear-gradient(180deg, rgba(0,229,255,.06), rgba(255,255,255,.02) 42%, rgba(0,0,0,.18)),
    rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .16);
}
.create-photo-uploader:not(.has-image):hover {
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .38);
}
.create-photo-uploader.has-image {
  border: none;
  background: #0a0908;
  cursor: default;
  box-shadow: none;
  overflow: hidden;
}
.create-photo-uploader.need-photo {
  box-shadow: inset 0 0 0 1px #e08a6a;
  background: rgba(224, 138, 106, .1);
}
.create-photo-uploader .uploader-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px 20px;
}
.create-photo-uploader .uploader-inner[hidden] {
  display: none !important;
}
.create-photo-uploader .uploader-icon {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 8px;
  border-width: 1.5px;
}
.create-photo-uploader.is-dragover:not(.has-image) {
  box-shadow: inset 0 0 0 2px rgba(0, 229, 255, .7);
  background:
    linear-gradient(180deg, rgba(0,229,255,.14), rgba(255,255,255,.04) 42%, rgba(0,0,0,.18)),
    rgba(255, 255, 255, .04);
}
.create-photo-uploader.is-dragover.has-image {
  box-shadow: inset 0 0 0 2px rgba(0, 229, 255, .55);
}
.create-photo-uploader .uploader-title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--ink);
  line-height: 1.35;
}
.create-photo-uploader .uploader-desc {
  font-size: .98rem;
  font-weight: 600;
  color: rgba(245, 236, 224, .88);
  line-height: 1.45;
}
.create-photo-uploader .uploader-formats {
  margin-top: 4px;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.create-photo-uploader .preview-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0908;
}
.create-photo-uploader .photo-preview {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.create-photo-uploader .upload-actions {
  top: 12px;
  right: 12px;
}
.create-photo-uploader .zoom-fab {
  right: 12px;
  bottom: 12px;
}
.create-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.create-field-label {
  font-size: .88rem;
  font-weight: 600;
}
.create-field input[type="text"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--ink);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
}
.create-field-hint {
  font-size: .74rem;
  color: var(--ink-soft);
}
.create-field-hint.is-error {
  color: #e08a6a;
}
.hint-soft {
  margin-left: 6px;
  font-size: .72rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.create-step2-cta {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  padding: 12px 18px 8px;
}
.create-wizard > .generate-cost-tip {
  padding: 0 18px 16px;
  margin: 0;
  text-align: center;
}
.create-gen-mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: rgba(12, 10, 8, .84);
  backdrop-filter: blur(8px);
  border-radius: inherit;
}
.create-gen-mask[hidden] {
  display: none !important;
}
.create-gen-mask .gen-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  letter-spacing: .08em;
  color: var(--rose-bright);
}
.create-gen-mask .gen-sub {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(245, 236, 224, .82);
}
.create-gen-mask .gen-notify {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 280px;
  margin: 4px auto 0;
}
.create-gen-mask .gen-notify-qr {
  width: 148px;
  height: 148px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}
.create-gen-mask .gen-notify-tip {
  margin: 0;
  font-size: .86rem;
  line-height: 1.5;
  color: rgba(245, 236, 224, .72);
  text-align: center;
}
.create-gen-mask .gen-notify-bind-ok {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: #9fd4a8;
}
.create-gen-mask .gen-notify-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: .9rem;
  color: rgba(245, 236, 224, .9);
  cursor: pointer;
  user-select: none;
}
.create-gen-mask .gen-notify-check input {
  margin-top: 3px;
  flex-shrink: 0;
}
.create-gen-mask .gen-leave-btn {
  appearance: none;
  border: 1px solid rgba(245, 236, 224, .35);
  background: transparent;
  color: rgba(245, 236, 224, .92);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .86rem;
  cursor: pointer;
}
.create-gen-mask .gen-leave-btn:hover {
  border-color: var(--rose-bright);
  color: #fff;
}
.create-style-block .block-head {
  align-items: baseline;
  margin-bottom: 12px;
}
.create-style-block .block-head h2 {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.create-style-block .hint {
  font-size: .86rem;
}
.create-style-grid {
  gap: 10px;
}
.create-style-grid .style-chip {
  padding: 10px 16px;
  font-size: .92rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.create-style-grid .style-chip.is-hot {
  border-color: rgba(0, 229, 255, .42);
  background: rgba(0, 229, 255, .1);
}
.create-style-grid .style-hot {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #1a120c;
  background: linear-gradient(135deg, #f0d2b0, #d4a574);
}
#detailAgain {
  margin-top: 8px;
}
.create-form {
  padding: 0;
  position: relative;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.create-form-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.create-result {
  padding: 18px;
  min-height: 0;
  height: 100%;
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.create-result.is-guide {
  justify-content: flex-start;
  overflow: auto;
}
.create-result.is-result {
  justify-content: stretch;
}
.guide {
  flex: 0 1 auto;
  max-width: 520px;
}
.guide[hidden],
.result-box[hidden] {
  display: none !important;
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
  align-items: start;
}
.upload-row .uploader {
  margin-bottom: 0;
  height: 132px;
  min-height: 132px;
  max-height: 132px;
  position: relative;
  overflow: hidden;
}
.upload-row .uploader-inner {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  text-align: center;
  font-size: .82rem;
  gap: 6px;
  padding: 12px;
}
.upload-row .uploader-inner small {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.upload-row .preview-wrap {
  position: absolute;
  inset: 0;
  height: auto !important;
  width: auto !important;
  background: #0e0c0b;
}
.upload-row .photo-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ref-clear {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font: inherit;
  font-size: .68rem;
  padding: 4px 8px;
  cursor: pointer;
}
.upload-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.upload-actions[hidden] {
  display: none !important;
}
.upload-actions .ref-clear {
  position: static;
}
.upload-actions .photo-clear-del {
  background: rgba(120, 40, 40, .85);
}

.style-skip-tip {
  margin: 8px 0 0;
  font-size: .76rem;
  color: var(--rose-bright);
}

.prompt-wrap { margin-bottom: 12px; }
.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.prompt-wrap textarea {
  width: 100%;
  min-height: 88px;
  max-height: 160px;
  font: inherit;
  font-size: .8rem;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,.28);
  outline: none;
  resize: vertical;
  line-height: 1.35;
}
.prompt-wrap textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(0,229,255,.14);
}

.create-form-cta {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #161210;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, .28);
}
.btn-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.btn-generate-label {
  font-weight: 800;
}
.btn-generate-cost {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: rgba(26, 21, 17, 0.18);
  border: 1px solid rgba(26, 21, 17, 0.22);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.btn-generate-bolt {
  font-size: 0.95rem;
  line-height: 1;
}
.btn-generate-cost strong {
  font-weight: 800;
}
.generate-cost-tip {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.generate-cost-tip strong {
  color: var(--rose-bright);
  font-weight: 700;
}
.btn-generate.is-busy .btn-generate-cost {
  opacity: 0.55;
}

.result-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.result-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  max-height: min(58vh, 520px);
  height: min(58vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0e0c0b;
  overflow: hidden;
}
.result-actions {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  background: #161210;
  border-top: 1px solid var(--line);
}
.result-actions[hidden] { display: none !important; }

.uploader {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  background: rgba(255,255,255,.03);
  min-height: 120px;
  cursor: pointer;
  margin-bottom: 8px;
}
.uploader:hover { border-color: var(--rose); }
.uploader.has-image { border-style: solid; }
.uploader.need-photo {
  border-color: #e08a6a;
  background: rgba(224, 138, 106, .1);
  animation: photo-shake .35s ease;
}
@keyframes photo-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.req-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #1a120c;
  background: linear-gradient(135deg, #f0d2b0, #d4a574);
  vertical-align: middle;
}
.uploader-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
}
.uploader-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(0,229,255,.12);
  color: var(--rose-bright);
}
.photo-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0e0c0b;
}
.preview-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  background: #0e0c0b;
}
.preview-wrap[hidden] { display: none !important; }
.zoom-fab {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(20, 16, 12, .88);
  color: var(--rose-bright);
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.zoom-fab:hover { background: rgba(40, 32, 24, .95); }
.zoom-fab[hidden] { display: none !important; }
.linkish {
  border: 0;
  background: none;
  color: var(--rose-bright);
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 0 12px;
  padding: 0;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,.28);
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(0,229,255,.14);
}

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg-btn {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  border-radius: 12px;
  padding: 10px 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-soft);
}
.seg-btn.on {
  background: linear-gradient(135deg, #67f6ff, #00e5ff);
  color: var(--cta-ink);
  border-color: transparent;
}

.block { margin-bottom: 10px; }
.block-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.block-head h2 { margin: 0; font-size: .84rem; color: var(--ink); }
.hint { font-size: .7rem; color: var(--ink-soft); }

.style-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding-bottom: 2px;
}
.style-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.style-chip.on {
  background: rgba(0,229,255,.2);
  border-color: var(--rose);
  color: var(--rose-bright);
}

.advanced {
  margin: 4px 0 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
  padding: 2px 12px 10px;
}
.advanced summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .8rem;
  color: var(--ink-soft);
  padding: 10px 2px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
}
.chip.on {
  background: rgba(0,229,255,.18);
  border-color: var(--rose);
  color: var(--rose-bright);
}

.check-public {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: .8rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.check-public.is-locked {
  opacity: .55;
  cursor: not-allowed;
}
.check-public.is-locked input {
  cursor: not-allowed;
}
.check-public-vip {
  margin-left: 4px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--rose-bright, #c45c4a);
  letter-spacing: .02em;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: .78rem; }
.btn.primary {
  background: linear-gradient(180deg, #67f6ff, #00e5ff);
  color: var(--cta-ink);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.btn.secondary {
  background: rgba(255,255,255,.05);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.is-locked {
  opacity: .55;
  filter: grayscale(.15);
}

.guide h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
}
.ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  color: var(--rose);
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.guide-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: .9rem;
}
.guide-tip {
  margin: 18px 0 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,229,255,.08);
  color: var(--rose-bright);
  font-size: .8rem;
}
.guide-tip strong {
  color: var(--ink);
}

.result-stage img,
.result-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  /* 透明 PNG：浅色棋盘底，方便看出已抠掉的卡外边缘 */
  background-color: #d8d2c8;
  background-image:
    linear-gradient(45deg, #c4bdb2 25%, transparent 25%),
    linear-gradient(-45deg, #c4bdb2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #c4bdb2 75%),
    linear-gradient(-45deg, transparent 75%, #c4bdb2 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  cursor: zoom-in;
}
.result-img[hidden],
.result-placeholder[hidden],
#resultZoom[hidden] {
  display: none !important;
}
.result-stage .zoom-fab {
  right: 12px;
  bottom: 12px;
}
.result-placeholder { color: var(--ink-soft); }
.result-meta { margin: 0; color: var(--ink-soft); font-size: .84rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 36px 64px 48px;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
  user-select: none;
}
.lightbox[hidden] { display: none !important; }
.lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: min(920px, 96vw);
  max-height: 88vh;
  min-width: 0;
  width: 100%;
}
.lightbox-viewer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
  order: 1;
}
.lightbox-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(88vh - 56px);
  overflow: visible;
  min-width: 0;
  touch-action: none;
}
.lightbox-frame.card-fx {
  overflow: hidden;
  border-radius: 12px;
  will-change: transform;
}
.lightbox-frame.card-fx.is-fx-active .fx-hover-light {
  opacity: 1;
}
.lightbox img,
.lightbox-stage img,
.lightbox-frame img {
  display: block;
  max-width: min(860px, 92vw);
  max-height: calc(88vh - 56px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  background: #111;
  transition: opacity .15s ease;
}
.lightbox.is-switching img { opacity: .35; }
.lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  color: #f0e6da;
  font-size: .86rem;
  text-align: center;
  max-width: min(920px, 94vw);
  order: 2;
}
.lightbox-meta-main {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 12px;
}
.lightbox-meta[hidden] { display: none !important; }
.lightbox-meta strong { font-size: .95rem; }
.lightbox-meta span { color: rgba(240,230,218,.72); }
.lightbox-meta em {
  font-style: normal;
  color: var(--rose-bright);
  font-weight: 700;
}
.lightbox-like {
  background: rgba(20, 16, 12, 0.72);
}
.lightbox-like[hidden] { display: none !important; }
.lightbox-hint {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(420px, 100%);
  margin: 4px 0 0;
  padding: 0 4px;
  font-size: .76rem;
  color: rgba(240,230,218,.55);
  text-align: center;
  box-sizing: border-box;
}
.lightbox-hint[hidden] { display: none !important; }
.lightbox-hint-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  letter-spacing: 0.04em;
}
.lightbox-hint-btn {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(20, 16, 12, 0.62);
  color: rgba(240, 230, 218, 0.92);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 42px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.lightbox-hint-btn:hover {
  color: var(--rose-bright);
  border-color: rgba(0, 229, 255, 0.7);
}
.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,229,255,.45);
  border-radius: 50%;
  background: rgba(20,16,12,.92);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
/* PC：去掉关闭钮，点空白处或 Esc 关闭 */
@media (min-width: 761px) {
  .lightbox-close {
    display: none !important;
  }
}
.lightbox-close:hover {
  background: rgba(60, 48, 36, .98);
  border-color: var(--rose-bright);
}
.lightbox-nav {
  position: relative;
  top: auto;
  transform: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,229,255,.5);
  border-radius: 50%;
  background: rgba(20, 16, 12, .92);
  color: var(--rose-bright);
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
  display: grid;
  place-items: center;
  padding: 0;
}
.lightbox-nav:hover {
  background: rgba(60, 48, 36, .98);
  border-color: var(--rose-bright);
}
.lightbox-nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.lightbox-nav[hidden] { display: none !important; }
.lightbox-prev,
.lightbox-next {
  left: auto;
  right: auto;
}
@media (max-width: 760px) {
  .lightbox {
    padding: 18px 12px 20px;
    align-content: stretch;
    place-items: stretch;
  }
  .lightbox-stage {
    max-height: none;
    height: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  /* 手机：信息在上，卡牌居中，底部滑动引导 */
  .lightbox-meta {
    order: 1;
    flex-shrink: 0;
    width: 100%;
    max-width: none;
    padding: 4px 8px 0;
    justify-content: center;
    text-align: center;
  }
  .lightbox-meta-main {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .lightbox-viewer {
    order: 2;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }
  .lightbox-hint {
    order: 3;
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 8px 0 4px;
    gap: 8px;
  }
  .lightbox-hint-btn {
    padding: 12px 18px;
    min-height: 46px;
    font-size: 0.92rem;
  }
  /* 手机端靠左右滑动 / 底部按钮切换，隐藏箭头 */
  .lightbox-nav {
    display: none !important;
  }
  /* 关闭钮独立在卡牌上方，不叠在卡面上，避免挡旋转 */
  .lightbox-close {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    order: 0;
    margin: 0 2px 2px 0;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    z-index: 2;
  }
  .lightbox-frame {
    max-height: min(72vh, calc(100dvh - 220px));
  }
  .lightbox img,
  .lightbox-stage img,
  .lightbox-frame img {
    max-width: min(920px, 94vw);
    max-height: min(72vh, calc(100dvh - 220px));
  }
  .lightbox-frame.card-fx {
    transform: perspective(720px) rotateX(var(--fx-py)) rotateY(var(--fx-px));
  }
}

.gen-mask {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  align-content: center;
  gap: 6px;
  background: rgba(8,7,6,.72);
  backdrop-filter: blur(6px);
  text-align: center;
}
.gen-mask.is-on { display: grid; }
.gen-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(0,229,255,.25);
  border-top-color: var(--rose-bright);
  animation: spin .8s linear infinite;
  margin: 0 auto 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gen-title {
  margin: 0;
  font-family: var(--font-display);
  color: var(--rose-bright);
}
.gen-sub { margin: 0; font-size: .78rem; color: var(--ink-soft); }

.mine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.mine-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  flex-shrink: 0;
}
.mine-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  cursor: pointer;
}
.mine-selected-count {
  font-size: .78rem;
  color: var(--ink-soft);
}
.mine-toolbar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mine-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: visible;
  background: rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .2s ease, box-shadow .28s ease;
}
.mine-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 18px 40px rgba(0,0,0,.42);
  z-index: 2;
}
.mine-card.is-selected {
  border-color: rgba(0,229,255,.65);
  box-shadow: 0 0 0 1px rgba(0,229,255,.35);
}
.mine-check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0,0,0,.55);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.mine-check input { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.mine-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: .68rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.55);
  color: var(--ink-soft);
}
.mine-badge.is-public {
  color: #b7e9f4;
  border-color: rgba(0,229,255,.45);
}
.mine-card .card-fx-frame.mine-card-art {
  width: 100%;
  aspect-ratio: 5 / 7;
  cursor: pointer;
  background-color: #1a1613;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.mine-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
  transition: transform .5s cubic-bezier(.4,0,.2,1), filter .3s ease;
  background:
    linear-gradient(45deg, #2a2420 25%, transparent 25%),
    linear-gradient(-45deg, #2a2420 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2420 75%),
    linear-gradient(-45deg, transparent 75%, #2a2420 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #1a1613;
}
.mine-card:hover .card-fx-frame img {
  transform: scale(1.05);
  filter: brightness(1.08) saturate(1.06);
}
.mine-body {
  padding: 10px;
  display: grid;
  gap: 8px;
  border-radius: 0 0 16px 16px;
  background: rgba(0,0,0,.28);
}
.mine-body strong { font-size: .88rem; }
.mine-body span { font-size: .72rem; color: var(--ink-soft); }
.mine-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mine-actions .btn { padding: 8px 4px; font-size: .72rem; width: 100%; }

.refine-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  display: grid;
  gap: 10px;
}
/* display:grid 会盖掉原生 hidden，必须强制隐藏 */
.refine-box[hidden],
#resultRefineBox[hidden] {
  display: none !important;
}
.result-box.is-generating #resultRefineBox,
.result-box.is-generating .result-actions {
  display: none !important;
}
.refine-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}
.refine-head strong {
  font-size: .92rem;
  font-family: var(--font-display);
}
.refine-head .hint {
  font-size: .72rem;
  color: var(--ink-soft);
}
.refine-box textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  line-height: 1.45;
}
.refine-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.refine-public { margin: 0; }
.detail-public {
  margin: 0;
}
.detail-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.35);
  min-height: 200px;
}
.detail-stage .detail-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0;
  background:
    linear-gradient(45deg, #2a2420 25%, transparent 25%),
    linear-gradient(-45deg, #2a2420 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2420 75%),
    linear-gradient(-45deg, transparent 75%, #2a2420 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #1a1613;
}
.detail-gen-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background: rgba(12, 10, 8, .72);
  backdrop-filter: blur(4px);
}
.detail-gen-mask[hidden] { display: none !important; }
.detail-gen-mask .gen-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  letter-spacing: .06em;
  color: var(--rose-bright);
}
.detail-gen-mask .gen-sub {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(245, 236, 224, .82);
}
.btn-refine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-refine.block {
  width: 100%;
}
.refine-cost-tip {
  margin: 0;
  font-size: .74rem;
  color: var(--ink-soft);
  text-align: right;
}
.detail-refine .refine-cost-tip {
  text-align: left;
}

/* 详情：左卡面 + 右操作栏 */
.modal-sheet.detail-sheet {
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}
.detail-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.detail-side-block {
  display: grid;
  gap: 8px;
}
.detail-side-title {
  margin: 0;
  font-size: .88rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.detail-side-hint {
  margin: 0;
  font-size: .74rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.detail-side-ta,
.detail-refine textarea,
#detailStory,
#detailRefinePrompt {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  max-height: 140px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-size: .84rem;
  line-height: 1.45;
  box-sizing: border-box;
}
.detail-side-actions .modal-actions {
  margin-top: 2px;
}
@media (max-width: 820px) {
  .modal:has(.detail-sheet) {
    padding: 8px;
    align-items: end;
  }
  .modal-sheet.detail-sheet {
    width: 100%;
    max-width: 100%;
    max-height: min(94vh, 100dvh);
    /* 标题区不滚、内容区滚，避免 sticky 圆角缝隙 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: 18px 18px 12px 12px;
  }
  .detail-sheet .modal-head {
    position: relative;
    top: auto;
    z-index: 6;
    flex-shrink: 0;
    margin: 0;
    padding: 14px 12px 12px;
    background: #221c18;
    border-bottom: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 18px 18px 0 0;
    box-shadow: none;
  }
  .detail-sheet .modal-head h2 {
    font-size: 1.05rem;
  }
  .detail-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 12px 18px;
  }
  .detail-main {
    overflow: visible;
    gap: 6px;
  }
  .detail-stage {
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
  }
  .detail-stage .detail-img {
    width: auto;
    max-width: 100%;
    height: auto;
    /* 优先完整露出卡面，可再往下滚看表单 */
    max-height: min(62vh, 520px);
    object-fit: contain;
  }
  .detail-side {
    overflow: visible;
    padding: 12px;
    gap: 14px;
  }
  .detail-side-ta,
  .detail-refine textarea,
  #detailStory,
  #detailRefinePrompt {
    min-height: 64px;
    max-height: 110px;
    font-size: 16px;
  }
  .modal-desc {
    font-size: .78rem;
  }
}

.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.66);
  backdrop-filter: blur(6px);
}
.modal-sheet {
  position: relative;
  width: min(420px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(180deg, #221c18, #161210);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
}
.icon-x {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}
.detail-img {
  width: 100%;
  border-radius: 14px;
  display: block;
}
.modal-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: .82rem;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}
.fineprint {
  margin: 10px 0 0;
  font-size: .76rem;
  color: var(--rose-bright);
  background: rgba(0,229,255,.1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(10px);
  background: #1a1511;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 11px 16px;
  border-radius: 999px;
  font-size: .82rem;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 120;
  max-width: min(90vw, 420px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .create-grid { grid-template-columns: 1fr; }
  .create-form {
    height: auto;
    max-height: min(70vh, 720px);
  }
  .create-result {
    position: static;
    height: auto;
    min-height: 420px;
    overflow: visible;
  }
  .result-stage {
    height: min(52vh, 480px);
    max-height: min(52vh, 480px);
    min-height: 240px;
  }
  .masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .pill-btn:not(.accent) { display: none; }
  .credits-cta { display: none; }
  .credits-split { display: none; }
}
.sider-drawer-head {
  display: none;
}
.sider-drawer-search {
  display: none;
}
.sider-bell-item {
  display: none !important;
}
.icon-menu {
  display: none;
}
.mobile-nav-backdrop {
  display: none;
}

@media (max-width: 760px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }
  body {
    display: flex;
    flex-direction: column;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
    height: 56px;
    min-height: 56px;
    flex-wrap: nowrap;
    padding: 0 12px;
    gap: 8px;
    /* 实色吸顶，避免毛玻璃透出下方内容形成缝 */
    background: #050a10;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 0 rgba(0, 229, 255, 0.14);
  }
  .topbar-left {
    width: auto;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .topbar-left .search-pill {
    display: none;
  }
  /* 手机端去掉品牌「AI」，避免挡住侧滑菜单边缘 */
  .top-brand-text em {
    display: none;
  }
  .topbar-right {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 6px;
    padding-bottom: 0;
  }
  .search-pill { max-width: none; }
  .user-chip span:nth-child(2) { display: none; }
  #btnInvite { display: none; }
  .credits-pill {
    padding: 0 10px 0 8px;
  }
  .credits-cta,
  .credits-split {
    display: none;
  }
  .icon-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
  }
  .icon-menu span,
  .icon-menu span::before,
  .icon-menu span::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
  }
  .icon-menu span::before,
  .icon-menu span::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .icon-menu span::before { top: -5px; }
  .icon-menu span::after { top: 5px; }
  body.mobile-nav-open .icon-menu {
    border-color: var(--line-strong);
    background: rgba(0, 229, 255, 0.14);
    color: var(--rose-bright);
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.62);
    /* 不要用 backdrop-filter，会连菜单一起糊掉 */
    backdrop-filter: none;
  }
  .mobile-nav-backdrop[hidden] {
    display: none !important;
  }

  .app {
    display: block;
    flex: 1;
    min-height: 0;
    height: auto;
    overflow: hidden;
    position: relative;
    /* 必须取消 stacking，否则 fixed 菜单会被挡在蒙层下面发朦胧 */
    z-index: auto;
  }

  .sider {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(300px, 86vw);
    height: 100dvh;
    z-index: 80;
    grid-column: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 16px 14px 24px;
    gap: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 0;
    border-left: 1px solid var(--line-strong);
    border-bottom: 0;
    /* 实色不透明，去掉毛玻璃，菜单文字才清晰 */
    background: #16120f;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    pointer-events: none;
  }
  body.mobile-nav-open .sider {
    transform: translateX(0);
    pointer-events: auto;
  }
  .sider-drawer-search {
    display: block;
    padding: 0 0 4px;
  }
  .search-pill--drawer {
    width: 100%;
    max-width: none;
  }
  .sider-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 8px;
    border-bottom: 1px solid var(--line);
  }
  .sider-drawer-head strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.08em;
  }
  .sider-drawer-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }
  .sider-nav {
    display: grid;
    width: 100%;
    gap: 6px;
    overflow: visible;
    padding: 0;
  }
  .sider-mine {
    display: none !important;
  }
  /* 只藏顶栏铃铛按钮，消息面板仍在 .bell-wrap 内，不能整块 display:none */
  .bell-wrap {
    position: static;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    pointer-events: none;
  }
  .bell-wrap > .icon-bell {
    display: none !important;
  }
  .bell-wrap > .msg-panel {
    pointer-events: auto;
  }
  .sider-bell-item {
    display: flex !important;
    position: relative;
  }
  .sider-bell-dot {
    position: absolute;
    top: 8px;
    right: 10px;
    margin: 0;
  }
  .user-menu-wrap {
    display: none !important;
  }
  .sider-user {
    display: grid;
    gap: 8px;
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .sider-user-links {
    display: grid;
    gap: 6px;
  }
  .sider-user-links .nav-item {
    padding: 11px 12px;
  }
  .sider-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    font: inherit;
  }
  .sider-user-meta {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
  }
  .sider-user-meta strong {
    font-size: 0.92rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sider-user-meta em {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--ink-soft);
  }
  .sider-user-chip .chev-right {
    color: var(--ink-soft);
    font-size: 1.1rem;
  }
  .sider-user-logout {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(232, 160, 160, 0.92);
    padding: 10px 12px;
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
  }
  .sider-contact {
    display: none !important;
  }
  .sider-bottom {
    /* 紧跟消息中心，分隔线上移；头像区靠 padding 下移 */
    margin-top: 6px;
  }
  .nav-item {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 12px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .nav-label {
    display: inline;
    flex: none;
    white-space: nowrap;
  }
  .nav-ico {
    flex-shrink: 0;
    width: 1.35em;
  }
  .nav-hot {
    top: -8px;
    left: calc(100% + 2px);
    font-size: 0.58rem;
  }
  .sider-foot {
    display: none !important;
  }

  .plaza-filters {
    margin-bottom: 12px;
    padding-bottom: 0;
    overflow: hidden;
  }
  .plaza-filters-track {
    flex-wrap: nowrap;
    overflow: visible;
  }
  .filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 11px;
    font-size: .78rem;
  }
  .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mine-card:hover {
    transform: none;
  }
  .masonry-item:hover {
    transform: none;
  }
  .masonry-item .card-fx-frame,
  .mine-card .card-fx-frame {
    transform: none !important;
    touch-action: manipulation;
  }
  .masonry-cap {
    padding: 8px 8px 9px;
    text-align: center;
  }
  /* 手机：标题独占一行，按钮与副文案分层，整体居中 */
  .masonry-cap-row {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
  }
  .masonry-cap strong {
    width: 100%;
    font-size: .8rem;
    text-align: center;
  }
  .masonry-cap-actions {
    width: 100%;
    justify-content: center;
    gap: 5px;
  }
  .card-story-btn {
    padding: 4px 8px;
    font-size: 0.66rem;
  }
  .masonry-item .card-like-btn {
    padding: 4px 7px 4px 6px;
    font-size: 0.66rem;
  }
  .masonry-cap-meta {
    font-size: .66rem;
    text-align: center;
  }

  .main {
    grid-column: auto;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: block;
  }
  .main-views {
    position: static;
    overflow: visible;
    height: auto;
    min-height: 100%;
  }
  body.view-create .main {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body.view-create .main-views {
    flex: 1;
    min-height: 0;
    height: auto;
    overflow: hidden;
    position: relative;
  }
  .view.on {
    position: static;
    inset: auto;
    display: block;
    overflow: visible;
    padding: 14px;
    height: auto;
    min-height: 100%;
  }
  .view-body {
    overflow: visible;
    height: auto;
    padding-bottom: 16px;
  }
  #viewPlaza.on.view-flow {
    padding: 8px 14px 14px;
    overflow: visible;
  }
  #viewPlaza .view-flow-scroll {
    height: auto;
    overflow: visible;
    padding: 0;
  }
  #viewPlaza .view-head {
    padding-top: 0;
    margin-bottom: 8px;
  }
  /* 手机：分类吸顶在主内容滚动容器顶部 */
  #viewPlaza .plaza-filters {
    position: sticky;
    top: 0;
    z-index: 8;
    margin: 0 -14px 12px;
    padding: 8px 14px 10px;
    background: #050a10;
    box-shadow: 0 1px 0 rgba(0, 229, 255, 0.12);
    overflow: hidden;
  }
  #viewCreate.on {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    position: absolute;
    inset: 0;
    padding: 10px 12px 0;
  }
  #viewCreate .view-head {
    margin-bottom: 8px;
    flex-shrink: 0;
  }
  #viewCreate .view-head h1 {
    font-size: 1.35rem;
  }
  #viewCreate .create-step-indicator {
    display: none;
  }
  /* 上传区高度不够时不要裁切「＋」图标 */
  #createStep1 > .create-step-body {
    overflow-x: hidden;
    overflow-y: auto;
  }
  #createStep1 .create-photo-uploader {
    min-height: 210px;
    overflow: visible;
  }
  #createStep1 .create-photo-uploader .uploader-inner {
    padding: 28px 16px 18px;
    justify-content: center;
  }
  #createStep1 .create-photo-uploader .uploader-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.85rem;
    margin-bottom: 4px;
    flex-shrink: 0;
  }
  #createStep1 .create-style-grid {
    gap: 8px;
  }
  #createStep1 .create-style-grid .style-chip {
    padding: 8px 12px;
    font-size: .86rem;
  }
  .view-head h1 {
    font-size: 1.45rem;
    letter-spacing: 0.04em;
  }
  .plaza-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .plaza-ad-banner {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
  .plaza-ad-banner-link img {
    height: 48px;
  }
  .auth-sheet {
    width: min(100%, 420px);
    max-height: 88vh;
    padding: 18px 14px 14px;
  }
  .wechat-qr-container {
    width: 240px;
    height: 248px;
  }
  .wechat-qr-container iframe {
    transform: scale(0.8);
  }
}

/* ===== 登录 / 套餐弹窗 ===== */
.auth-modal,
.vip-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
}
.auth-modal[hidden],
.vip-modal[hidden] { display: none !important; }
.auth-backdrop,
.vip-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}
.auth-sheet,
.vip-sheet {
  position: relative;
  width: min(420px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, #241e19, #14110e 60%, #1a1511);
  box-shadow: var(--shadow);
  padding: 22px 20px 18px;
  color: var(--ink);
}
.vip-sheet {
  width: min(1080px, 100%);
  min-height: min(760px, 92vh);
  max-height: 94vh;
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(720px 280px at 50% -10%, rgba(0,229,255,.18), transparent 60%),
    radial-gradient(480px 240px at 100% 100%, rgba(120,70,40,.12), transparent 55%),
    linear-gradient(165deg, #2a221c 0%, #16120f 42%, #12100e 100%);
  animation: vipSheetIn .42s ease both;
}
.vip-sheet.vip-sheet--solo {
  width: min(520px, 100%);
  min-height: 0;
  padding: 28px 24px 22px;
}
@keyframes vipSheetIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.vip-hero {
  text-align: center;
  padding: 8px 48px 18px;
  margin-bottom: 0;
}
.vip-sheet--solo .vip-hero {
  padding: 4px 40px 14px;
}
.vip-kicker {
  margin: 0 0 10px;
  font-family: var(--font-en);
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--rose);
  opacity: .9;
}
.vip-hero h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  letter-spacing: .08em;
  line-height: 1.15;
}
.vip-sheet--solo .vip-hero h2 {
  font-size: clamp(1.65rem, 4vw, 2rem);
}
.vip-lead {
  margin: 0 auto;
  max-width: 28em;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.55;
}
.vip-sheet--solo .vip-lead {
  font-size: .88rem;
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}
.auth-panel { display: none; }
.auth-panel.on { display: block; }
.auth-panel h2 {
  margin: 0 36px 6px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: .04em;
}
.auth-sub {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: .86rem;
}
.auth-sub.warn { color: var(--rose-bright); }
.auth-gift {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--rose-bright);
  font-weight: 700;
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.auth-tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink-soft);
  border-radius: 12px;
  padding: 10px 6px;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.auth-tab.on {
  color: var(--cta-ink);
  background: linear-gradient(135deg, #67f6ff, #00e5ff);
  border-color: transparent;
}
.auth-pane { display: none; }
.auth-pane.on { display: block; }
.auth-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.auth-subtab {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.auth-subtab.on {
  color: var(--rose-bright);
  border-bottom-color: var(--rose);
}
.auth-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: .78rem;
  color: var(--ink-soft);
  font-weight: 700;
}
.auth-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  color: var(--ink);
  /* 勿用 font:inherit 继承 .78rem：iOS 会在聚焦时整页放大 */
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  padding: 11px 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.auth-field input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(0,229,255,.14);
}
.auth-code-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.auth-hint {
  margin: -4px 0 10px;
  font-size: .76rem;
  color: var(--rose-bright);
}
.auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.auth-benefits div {
  text-align: center;
  font-size: .72rem;
  color: var(--ink-soft);
}
.auth-benefits strong {
  display: block;
  color: var(--ink);
  font-size: .8rem;
  margin-bottom: 2px;
}
.auth-legal {
  margin: 0;
  font-size: .7rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}
.auth-back {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  margin-bottom: 8px;
}
.wechat-box {
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
}
.wechat-qr-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  gap: 0;
}
/* 高度需完整露出二维码底部；过矮会裁切 */
.wechat-qr-container {
  width: 270px;
  height: 278px;
  overflow: hidden;
  margin: 0 auto;
  background: transparent;
  position: relative;
}
.wechat-qr-container iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 300px !important;
  height: 400px !important;
  border: 0 !important;
  background: transparent !important;
  transform: scale(0.9);
  transform-origin: top left;
}
.wechat-qr-status {
  margin: 0;
  min-height: 0;
  font-size: .78rem;
  color: var(--ink-soft);
}
.wechat-qr-status:empty {
  display: none;
}
.wechat-qr-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.wechat-qr-container--mobile {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  background: transparent;
}
.wechat-qr-container--mobile iframe {
  display: none !important;
}
.wechat-mobile-auth {
  width: 100%;
  padding: 8px 4px 4px;
  text-align: center;
}
.wechat-mobile-lead {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.wechat-mobile-hint {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.45;
  opacity: 0.9;
}
.wechat-qr-wrap.is-mobile-auth .wechat-qr-container {
  width: 100%;
  height: auto;
}

.pay-sheet {
  width: min(420px, 100%);
  margin: auto;
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: var(--panel, #0a161e);
  border: 1px solid var(--line);
  position: relative;
}
.pay-sheet h2 {
  margin: 0 36px 8px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
}
.pay-amount {
  margin: 4px 0 6px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent, #00e5ff);
  line-height: 1.2;
}
.pay-sub {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: .85rem;
  text-align: center;
}
.pay-qr-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.pay-qr-img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
}
.pay-status {
  text-align: center;
  margin: 0 0 14px;
  font-size: .85rem;
  color: var(--ink-soft);
}

.vip-sheet h2 {
  margin: 0 40px 14px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
}
.vip-periods {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-self: center;
  gap: 4px;
  margin: 0 auto 22px;
  padding: 5px;
  border: 1px solid rgba(0,229,255,.18);
  border-radius: 16px;
  background: rgba(0,0,0,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.vip-sheet--solo .vip-periods {
  margin-bottom: 18px;
  width: 100%;
  max-width: 100%;
}
.vip-period {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 12px;
  padding: 11px 16px;
  min-height: 42px;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
  white-space: nowrap;
}
.vip-period:hover {
  color: var(--ink);
  background: rgba(255,255,255,.04);
}
.vip-period-name { display: inline; }
.vip-period em {
  font-style: normal;
  margin-left: 6px;
  color: var(--rose-bright);
  font-size: .7rem;
  font-weight: 700;
  opacity: .9;
}
.vip-period.on {
  color: var(--cta-ink);
  background: linear-gradient(135deg, #67f6ff, #00e5ff);
  box-shadow: 0 6px 16px rgba(0,229,255,.22);
}
.vip-period.on em { color: rgba(26,18,12,.72); }
.vip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  flex: 1;
  min-height: 420px;
}
.vip-grid.vip-grid--solo {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex: 0 1 auto;
  min-height: 0;
}
.vip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 28%),
    rgba(0,0,0,.28);
  animation: vipCardIn .45s ease both;
  animation-delay: calc(var(--i, 0) * .06s);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.vip-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,210,176,.35), transparent);
  pointer-events: none;
}
@keyframes vipCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.vip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,.45);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.vip-grid--solo .vip-card:hover {
  transform: translateY(-2px);
}
.vip-card.code-vvip,
.vip-card.vip-card--featured {
  border-color: rgba(0,229,255,.5);
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(0,229,255,.28), transparent 55%),
    linear-gradient(180deg, rgba(0,229,255,.14), rgba(0,229,255,.03) 40%, rgba(0,0,0,.28));
  box-shadow:
    inset 0 1px 0 rgba(240,210,176,.22),
    0 16px 40px rgba(0,0,0,.22);
}
.vip-card--featured {
  width: 100%;
  max-width: 440px;
  min-height: 0;
  padding: 32px 26px 24px;
}
.vip-card-top {
  margin-bottom: 4px;
  padding-top: 28px; /* 给左上角「当前套餐」徽章留空，避免压住标题 */
}
.vip-card--featured .vip-card-top {
  text-align: center;
  padding-top: 30px;
}
.vip-hot {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  color: #1a120c;
  background: linear-gradient(135deg, #f0d2b0, #d4a574);
}
.vip-current {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  color: var(--rose-bright);
  border: 1px solid rgba(0,229,255,.45);
  background: rgba(20,16,12,.88);
}
.vip-card--featured .vip-current {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.vip-card.is-current {
  border-color: rgba(0,229,255,.65);
}
.vip-card h3 {
  margin: 0 0 8px;
  padding-right: 72px; /* 给右上角角标留空 */
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: .04em;
}
.vip-card--featured h3 {
  padding-right: 0;
  font-size: 1.7rem;
  letter-spacing: .06em;
}
.vip-day {
  margin: 0;
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.45;
  min-height: 2.3em;
}
.vip-card--featured .vip-day {
  min-height: 0;
  margin-bottom: 4px;
}
.vip-price {
  margin: 18px 0 6px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.vip-card--featured .vip-price {
  margin: 14px 0 4px;
}
.vip-price strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--rose-bright);
  margin-right: 10px;
  letter-spacing: .02em;
}
.vip-card--featured .vip-price strong {
  font-size: 2.55rem;
  letter-spacing: .03em;
}
.vip-price s { opacity: .65; font-size: .85rem; }
.vip-badge {
  margin: 0 0 16px;
  min-height: 1.2em;
  font-size: .78rem;
  color: var(--rose-bright);
}
.vip-card--featured .vip-badge {
  margin-bottom: 8px;
}
.vip-card ul,
.vip-perks {
  list-style: none;
  margin: 0 0 20px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(0,229,255,.12);
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.75;
  flex: 1;
}
.vip-perks {
  display: grid;
  gap: 10px;
}
.vip-card--featured .vip-perks {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 22px;
  padding-top: 16px;
}
.vip-perks li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(0,229,255,.1);
  line-height: 1.35;
}
.vip-perks li span {
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  opacity: .85;
}
.vip-perks li b {
  font-weight: 700;
  font-size: .82rem;
  color: var(--ink);
}
.vip-card .btn.block {
  margin-top: auto;
  min-height: 46px;
  font-size: .92rem;
}
.vip-card--featured .btn.block {
  min-height: 50px;
  font-size: .95rem;
  letter-spacing: .04em;
}
.vip-note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(0,229,255,.1);
  font-size: .78rem;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: .04em;
}
.vip-sheet--solo .vip-note {
  margin-top: 16px;
  padding-top: 14px;
}
.vip-loading {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  color: var(--ink-soft);
  padding: 72px 24px;
  font-size: .95rem;
}
.credits-pill { cursor: pointer; }
@media (max-width: 960px) {
  .vip-modal {
    padding: 10px;
    align-items: end;
  }
  .vip-sheet {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    max-height: min(94vh, 100dvh);
    padding: 18px 14px 14px;
    border-radius: 18px 18px 12px 12px;
    /* 手机改普通文档流，避免 flex 把顶部 tab 压扁裁切 */
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .vip-hero {
    padding: 2px 36px 10px;
    margin-bottom: 0;
  }
  .vip-kicker {
    font-size: .64rem;
    letter-spacing: .16em;
  }
  .vip-hero h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
  }
  .vip-lead {
    font-size: .84rem;
    line-height: 1.45;
  }
  .vip-periods {
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    align-items: stretch;
    align-self: stretch;
    gap: 4px;
    width: 100%;
    margin: 0 0 14px;
    padding: 4px;
    overflow: visible;
  }
  .vip-period {
    flex: 1 1 calc(33.33% - 4px);
    min-width: 0;
    max-width: none;
    min-height: 44px;
    padding: 8px 6px;
    font-size: .72rem;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    box-sizing: border-box;
  }
  .vip-period em {
    display: block;
    margin: 2px 0 0;
    font-size: .62rem;
  }
  /* 手机：勿再 flex:1 均分高度，否则三张卡被压扁、文字叠在一起 */
  .vip-grid,
  .vip-grid.vip-grid--solo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-height: 0;
    height: auto;
  }
  .vip-card,
  .vip-card--featured {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    padding: 18px 14px 14px;
    animation: none;
    transform: none;
    box-sizing: border-box;
  }
  .vip-card:hover,
  .vip-grid--solo .vip-card:hover {
    transform: none;
    box-shadow: none;
  }
  .vip-card-top,
  .vip-card--featured .vip-card-top {
    padding-top: 22px;
    margin-bottom: 4px;
    text-align: left;
  }
  .vip-card--featured .vip-current {
    left: 10px;
    transform: none;
  }
  .vip-card h3,
  .vip-card--featured h3 {
    font-size: 1.2rem;
    padding-right: 68px;
    margin-bottom: 4px;
  }
  .vip-day {
    min-height: 0;
    font-size: .76rem;
  }
  .vip-price {
    margin: 10px 0 4px;
  }
  .vip-price strong,
  .vip-card--featured .vip-price strong {
    font-size: 1.75rem;
  }
  .vip-badge {
    margin-bottom: 10px;
    min-height: 0;
    font-size: .74rem;
  }
  .vip-card ul,
  .vip-perks,
  .vip-card--featured .vip-perks {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 0 0;
    font-size: .8rem;
    line-height: 1.4;
  }
  .vip-perks li {
    padding: 8px 10px;
  }
  .vip-perks li b {
    font-size: .78rem;
  }
  .vip-card .btn.block {
    margin-top: 0;
    min-height: 44px;
    font-size: .88rem;
  }
  .vip-hot,
  .vip-current {
    top: 10px;
  }
  .vip-hot { right: 10px; }
  .vip-current { left: 10px; }
  .vip-note {
    margin-top: 14px;
    padding-top: 12px;
    font-size: .72rem;
  }
  .vip-loading {
    padding: 40px 16px;
  }
}


/* 网站底部备案：手机端主栏内保留；PC 改到左侧栏联系客服下方 */
.site-beian {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  margin-top: 0;
  padding: 16px 16px 18px;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.5;
  letter-spacing: .02em;
  text-align: center;
  border-top: 1px solid rgba(0, 229, 255, 0.16);
  background: rgba(5, 10, 16, 0.96);
}
.site-beian a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-beian a:hover {
  color: var(--rose-bright);
  border-bottom-color: rgba(0, 229, 255, .45);
}
@media (min-width: 761px) {
  .site-beian-inflow {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .site-beian {
    margin-top: 24px;
    padding: 22px 12px calc(20px + env(safe-area-inset-bottom, 0px));
    font-size: .68rem;
    gap: 6px 10px;
  }
}

/* —— extras: 消息 / 邀新 / 反馈 / 头像 —— */
.bell-wrap { position: relative; }
.msg-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 480px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(28, 24, 20, .96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  z-index: 80;
  padding: 0 0 8px;
  box-sizing: border-box;
}
.msg-panel-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 44px 12px 14px;
  font-size: .85rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  background: rgba(28, 24, 20, .98);
  z-index: 1;
}
.msg-panel-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.msg-panel-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--rose-bright, #e8a0a0);
}
.msg-list { padding: 6px; }
.msg-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  box-sizing: border-box;
}
.msg-item:hover { background: rgba(255,255,255,.04); }
.msg-item.unread { background: rgba(196, 140, 74, .12); }
.msg-item strong {
  display: block;
  font-size: .82rem;
  margin-bottom: 4px;
  word-break: break-word;
}
.msg-item p {
  margin: 0;
  font-size: .75rem;
  color: var(--ink-soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.msg-item time {
  display: block;
  margin-top: 6px;
  font-size: .68rem;
  color: rgba(138,164,184,.7);
}
@media (max-width: 760px) {
  .msg-panel {
    position: fixed;
    top: calc(56px + env(safe-area-inset-top, 0px) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: min(72vh, calc(100dvh - 80px));
    border-radius: 16px;
    z-index: 120;
    overscroll-behavior: contain;
  }
  .msg-panel-head {
    position: relative;
    padding: 14px 44px 14px 16px;
    font-size: .9rem;
    text-align: center;
  }
  .msg-panel-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }
  .msg-list {
    padding: 8px 10px 12px;
  }
  .msg-item {
    padding: 12px 12px;
  }
  .msg-item strong {
    font-size: .88rem;
  }
  .msg-item p {
    font-size: .78rem;
    -webkit-line-clamp: 4;
  }
}
.avatar.has-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}
.menu-sub {
  display: block;
  font-style: normal;
  font-size: .72rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.file-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-top: 6px;
}
.invite-sheet, .feedback-sheet { max-width: 440px; }
.invite-rule {
  margin: 0 0 14px;
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.invite-stat {
  margin: 12px 0 0;
  font-size: .82rem;
  color: var(--ink-soft);
}
.invite-stat strong { color: var(--ink); }
.me-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}
.auth-legal a {
  color: #c49a6c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 统一确认弹窗 */
.confirm-sheet {
  width: min(380px, 100%);
  text-align: left;
}
.confirm-sheet h2 {
  margin-bottom: 6px;
}
.confirm-sheet .pay-sub {
  text-align: left;
  margin-bottom: 22px;
  line-height: 1.55;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.confirm-actions .btn {
  min-width: 96px;
}

/* 头像裁切 */
.avatar-crop-sheet {
  width: min(420px, 100%);
}
.avatar-crop-stage {
  position: relative;
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: #12100e;
  border: 1px solid var(--line);
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.avatar-crop-stage:active { cursor: grabbing; }
.avatar-crop-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.avatar-crop-mask {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .35);
  pointer-events: none;
}
.avatar-crop-zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: .82rem;
}
.avatar-crop-zoom input[type="range"] {
  flex: 1;
  accent-color: #c49a6c;
}

/* 头像裁切 / 确认框需盖过「我的」弹窗 */
#avatarCropModal,
#confirmModal {
  z-index: 110;
}

/* —— 稀有度前端特效（参考闪卡扫光/彩虹边思路，原创命名） —— */
.card-fx-frame,
.detail-stage.card-fx,
.lightbox-frame.card-fx {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --fx-x: 0.5;
  --fx-y: 0.5;
  --fx-px: 0deg;
  --fx-py: 0deg;
  --rarity-glow: transparent;
  transform: perspective(900px) rotateX(var(--fx-py)) rotateY(var(--fx-px));
  transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .28s ease, filter .28s ease;
}
.masonry-item:hover .card-fx-frame,
.mine-card:hover .card-fx-frame {
  box-shadow: 0 14px 36px rgba(0,0,0,.4), 0 0 28px var(--rarity-glow);
  filter: brightness(1.06);
}
.masonry-item:hover .card-fx-frame.card-fx--prism,
.masonry-item:hover .card-fx-frame.card-fx--cosmos,
.mine-card:hover .card-fx-frame.card-fx--prism,
.mine-card:hover .card-fx-frame.card-fx--cosmos {
  box-shadow: 0 16px 40px rgba(0,0,0,.42), 0 0 32px var(--rarity-glow);
}
.card-fx-layers {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.card-fx-layers i {
  position: absolute;
  inset: 0;
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  border-radius: inherit;
}
/* 悬停提亮光晕（跟随鼠标） */
.card-fx-layers .fx-hover-light {
  display: block;
  opacity: 0;
  z-index: 5;
  background: radial-gradient(
    circle at calc(var(--fx-x) * 100%) calc(var(--fx-y) * 100%),
    rgba(255, 248, 235, 0.38) 0%,
    rgba(184, 212, 240, 0.16) 32%,
    transparent 68%
  );
  transition: opacity .3s ease;
  mix-blend-mode: soft-light;
}
.masonry-item:hover .fx-hover-light,
.mine-card:hover .fx-hover-light,
.card-fx-frame.is-fx-active .fx-hover-light,
.detail-stage.card-fx.is-fx-active .fx-hover-light {
  opacity: 1;
}
.card-fx-frame > img,
.detail-stage.card-fx > img,
.lightbox-frame.card-fx > img {
  position: relative;
  z-index: 1;
}

/* 稀有度角标 */
.rarity-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.18);
  color: #f3ebe2;
  background: rgba(20,16,12,.55);
}
.rarity-pill--plain {
  color: #c9c2b8;
  border-color: rgba(201,194,184,.35);
  background: rgba(40,36,32,.55);
}
.rarity-pill--sheen {
  color: #d7e6ff;
  border-color: rgba(160,190,255,.4);
  background: rgba(70,100,160,.28);
}
.rarity-pill--glow {
  color: #e4d4ff;
  border-color: rgba(180,140,255,.45);
  background: rgba(110,70,180,.3);
}
.rarity-pill--prism {
  color: #f0d9ff;
  border-color: rgba(192,132,252,.5);
  background: rgba(192,132,252,.22);
}
.rarity-pill--cosmos {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, rgba(255,107,157,.92), rgba(163,113,247,.92), rgba(88,166,255,.92));
  background-size: 200% 200%;
  animation: fx-mac-shimmer 3s linear infinite;
}
.mine-card .rarity-pill { top: 42px; } /* 避开勾选/公开角标 */

/* 普通：干净，无叠加 */
.card-fx--plain { --rarity-glow: transparent; }

/* 精良：细白扫光 */
.card-fx--sheen { --rarity-glow: rgba(180,200,230,.25); }
.card-fx--sheen .fx-sheen {
  display: block;
  background: linear-gradient(
    105deg,
    transparent 18%,
    rgba(255,255,255,.08) 28%,
    rgba(255,255,255,.28) 36%,
    rgba(255,255,255,.08) 44%,
    transparent 55%
  );
  background-size: 300% 300%;
  animation: fx-mac-shimmer 5s linear infinite;
  mix-blend-mode: soft-light;
  opacity: .85;
}

/* 稀有：冷色金属扫光 + 指针高光 */
.card-fx--glow { --rarity-glow: rgba(140,170,255,.35); }
.card-fx--glow .fx-sheen {
  display: block;
  background: linear-gradient(
    105deg,
    transparent 16%,
    rgba(180,210,255,.16) 26%,
    rgba(255,255,255,.32) 34%,
    rgba(200,170,255,.16) 42%,
    transparent 54%
  );
  background-size: 300% 300%;
  animation: fx-mac-shimmer 4.2s linear infinite;
  mix-blend-mode: soft-light;
}
.card-fx--glow .fx-glare {
  display: block;
  background: radial-gradient(
    circle at calc(var(--fx-x) * 100%) calc(var(--fx-y) * 100%),
    rgba(255,255,255,.28) 0%,
    transparent 42%
  );
  mix-blend-mode: soft-light;
  opacity: .75;
}

/* 炫彩：全息色带扫光（color-dodge + 持续 shimmer） */
.card-fx--prism { --rarity-glow: rgba(192,132,252,.4); }
.card-fx--prism .fx-holo {
  display: block;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,219,112,.22) 25%,
    rgba(132,50,255,.22) 30%,
    rgba(0,255,255,.22) 35%,
    rgba(76,255,0,.14) 40%,
    transparent 50%
  );
  background-size: 300% 300%;
  animation: fx-mac-shimmer 4s linear infinite;
  mix-blend-mode: color-dodge;
  opacity: 1;
}
.card-fx--prism .fx-glare {
  display: block;
  background:
    radial-gradient(
      circle at calc(var(--fx-x) * 100%) calc(var(--fx-y) * 100%),
      rgba(255,255,255,.35) 0%,
      transparent 40%
    );
  mix-blend-mode: soft-light;
  transform: perspective(700px) rotateX(var(--fx-py)) rotateY(var(--fx-px));
}

/* 珍藏：彩虹边 + 全息扫光 + 彩虹光栅 */
.card-fx--cosmos {
  --rarity-glow: rgba(255,203,5,.4);
  border: 2px solid transparent;
  background-image:
    linear-gradient(#1a1613, #1a1613),
    linear-gradient(
      135deg,
      #ff6b9d,
      #a371f7,
      #58a6ff,
      #3fb950,
      #f4d875,
      #ff6b9d
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 400% 400%;
  animation: fx-rainbow-shift 8s linear infinite;
}
.card-fx--cosmos .fx-holo {
  display: block;
  background: linear-gradient(
    105deg,
    transparent 18%,
    rgba(255,219,112,.26) 24%,
    rgba(132,50,255,.26) 30%,
    rgba(0,255,255,.26) 36%,
    rgba(76,255,0,.16) 42%,
    transparent 52%
  );
  background-size: 300% 300%;
  animation: fx-mac-shimmer 3.6s linear infinite;
  mix-blend-mode: color-dodge;
}
.card-fx--cosmos .fx-grating {
  display: block;
  background: repeating-linear-gradient(
    135deg,
    transparent 0%,
    rgba(255,0,0,.05) 2%,
    rgba(255,154,0,.05) 4%,
    rgba(208,222,33,.05) 6%,
    rgba(79,220,74,.05) 8%,
    rgba(63,218,216,.05) 10%,
    rgba(47,201,226,.05) 12%,
    rgba(28,127,238,.05) 14%,
    rgba(95,21,242,.05) 16%,
    rgba(186,12,248,.05) 18%,
    transparent 20%
  );
  background-size: 200% 200%;
  animation: fx-mac-shimmer 3s linear infinite;
  mix-blend-mode: overlay;
  opacity: .95;
}
.card-fx--cosmos .fx-glare {
  display: block;
  background: radial-gradient(
    circle at calc(var(--fx-x) * 100%) calc(var(--fx-y) * 100%),
    rgba(255,255,255,.4) 0%,
    transparent 38%
  );
  mix-blend-mode: soft-light;
  transform: perspective(700px) rotateX(var(--fx-py)) rotateY(var(--fx-px));
}
.card-fx--cosmos .fx-ring {
  display: none; /* 彩虹边已由 border 双背景实现 */
}

/* MakeACard 同款关键帧思路：横向扫光 / 彩虹边位移 */
@keyframes fx-mac-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes fx-rainbow-shift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 0, 400% 400%; }
}

@media (prefers-reduced-motion: reduce) {
  .card-fx-layers i,
  .card-fx--cosmos,
  .rarity-pill--cosmos {
    animation: none !important;
  }
  .masonry-item,
  .mine-card,
  .card-fx-frame,
  .masonry-item .card-fx-frame img,
  .mine-card .card-fx-frame img {
    transition: none !important;
    transform: none !important;
  }
  .masonry-item:hover,
  .mine-card:hover {
    transform: none !important;
  }
  .fx-hover-light {
    display: none !important;
  }
}

/* —— 杂货铺 / Q&A / 关于 —— */
#viewShop .view-head {
  text-align: center;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 20px;
}
#viewShop .view-head > div {
  margin-inline: auto;
}
.shop-body {
  width: min(980px, 100%);
  margin: 0 auto;
}
.shop-cats {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 18px;
  padding: 8px 4px 12px;
  background: #050a10;
  box-shadow: 0 1px 0 rgba(0, 229, 255, 0.12);
}
.shop-cat {
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  padding: 10px 20px;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.shop-cat:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.shop-cat.on {
  border-color: rgba(196, 140, 74, 0.7);
  background: rgba(196, 140, 74, 0.16);
  color: var(--ink);
  font-weight: 700;
}
.shop-flow {
  list-style: none;
  margin: 0 auto 22px;
  padding: 14px 16px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-flow::-webkit-scrollbar {
  display: none;
}
.shop-flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 64px;
  max-width: 96px;
  text-align: center;
}
.shop-flow-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(196, 140, 74, 0.22);
  color: #7fd4e8;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.shop-flow-text {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--ink-soft);
  word-break: break-word;
}
.shop-flow-arrow {
  flex: 0 0 auto;
  color: rgba(196, 140, 74, 0.75);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 2px;
  align-self: center;
  margin-top: -14px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0 auto;
  padding: 4px 4px 40px;
  justify-content: center;
}
#viewShop .empty-block {
  width: 100%;
  margin: 24px auto 0;
  text-align: center;
}
.shop-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.shop-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.shop-card-cover {
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.shop-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.shop-card-placeholder {
  font-size: 2rem;
  color: var(--ink-soft);
  opacity: 0.5;
}
.shop-card-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 6px;
}
.shop-card-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.shop-card-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rose-bright);
}
.shop-card-summary {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.shop-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.shop-card-actions .btn {
  flex: 1;
}
.shop-card-btn {
  width: 100%;
}
.shop-card-stock {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(232, 196, 154, 0.9);
}
.shop-card.is-soldout {
  opacity: 0.78;
}
.shop-soldout-badge {
  position: absolute;
  inset: auto 10px 10px auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.82);
  color: #f0e6da;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.shop-card-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.shop-detail-sheet {
  width: min(720px, calc(100vw - 32px));
  max-width: min(720px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 0;
  box-sizing: border-box;
}
.shop-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 2px;
  padding-bottom: 8px;
}
.shop-detail-foot {
  flex-shrink: 0;
  margin: 0 -28px;
  padding: 12px 28px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(0, 229, 255, 0.18);
  background: linear-gradient(180deg, rgba(26, 22, 18, 0.92), #0a161e 40%);
}
.shop-detail-cover {
  width: 100%;
  min-height: 160px;
  max-height: min(48vh, 420px);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
}
.shop-detail-cover img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(48vh, 420px);
  object-fit: contain;
  object-position: center;
  background: transparent;
  cursor: zoom-in;
}
.shop-detail-price {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rose-bright);
}
.shop-detail-sub {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}
.shop-detail-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink);
  word-break: break-word;
}
@media (max-width: 760px) {
  .shop-detail-sheet {
    width: min(520px, calc(100vw - 24px));
    max-width: min(520px, calc(100vw - 24px));
    padding: 20px 18px 0;
  }
  .shop-detail-foot {
    margin: 0 -18px;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

.faq-list {
  display: grid;
  gap: 12px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding-bottom: 32px;
}
#viewFaq .view-head {
  text-align: center;
  justify-content: center;
}
#viewFaq .view-head > div {
  margin-inline: auto;
}
#viewFaq .empty-block {
  width: min(760px, 100%);
  margin-inline: auto;
}
.faq-item {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: left;
}
.faq-item[open] {
  border-color: var(--line-strong);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q-text { flex: 1; line-height: 1.45; }
.faq-chevron {
  flex-shrink: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.faq-item[open] .faq-chevron { transform: rotate(90deg); }
.faq-a {
  padding: 0 18px 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 0 18px 16px;
}

#viewAbout .view-head { display: none; }
.about-wrap {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 8px 0 40px;
}
.about-hero {
  text-align: center;
  margin-bottom: 22px;
  padding: 8px 12px 4px;
}
.about-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(0, 229, 255, 0.72);
}
.about-title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.about-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.about-intro {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(0, 229, 255, 0.1), transparent 42%),
    rgba(0, 0, 0, 0.28);
  line-height: 1.75;
  color: var(--ink);
  font-size: 0.96rem;
  margin-bottom: 16px;
}
.about-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.about-feature {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.about-feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #b7e9f4;
}
.about-feature p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.about-contact {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}
.about-qr { text-align: center; }
.about-qr img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  display: block;
  margin: 0 auto 10px;
  border: 1px solid var(--line);
  padding: 6px;
}
.about-qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 10px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 229, 255, 0.35);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
}
.about-qr-tip {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.about-meta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 4px 8px 8px;
}
.about-meta-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
}
.about-meta {
  margin: 0;
  display: grid;
  gap: 12px;
}
.about-meta-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: baseline;
}
.about-meta-row dt {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}
.about-meta-row dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.about-meta-row dd a {
  color: var(--rose-bright, #67f6ff);
  text-decoration: none;
}
.about-meta-row dd a:hover { text-decoration: underline; }

.shop-order-sheet {
  max-width: 420px;
  max-height: min(92vh, 760px);
  overflow-y: auto;
}
.shop-order-price {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rose-bright);
}
.shop-order-form {
  display: grid;
  gap: 12px;
}
.shop-order-form textarea {
  resize: vertical;
  min-height: 72px;
}
.shop-addr-box {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}
.shop-custom-photo {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.shop-custom-photo[hidden] {
  display: none !important;
}
.shop-custom-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shop-custom-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.shop-custom-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-custom-thumb-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}
.me-order-custom-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
.me-order-custom-photos img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.shop-addr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.shop-addr-select-wrap {
  margin-bottom: 0;
  position: relative;
}
.shop-addr-select-wrap select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background-color: rgba(5, 10, 16, 0.72);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a888' d='M1.2 1.2L6 6l4.8-4.8' stroke='%23c9a888' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  color: var(--ink);
  padding: 12px 40px 12px 14px;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.shop-addr-select-wrap select:hover {
  border-color: rgba(0, 229, 255, 0.45);
  background-color: rgba(18, 14, 12, 0.88);
}
.shop-addr-select-wrap select:focus {
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16);
}
.shop-addr-select-wrap select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.shop-addr-select-wrap select option {
  background: #1c1713;
  color: var(--ink);
  padding: 10px;
}
.addr-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  color: #f3d2b0;
  background: rgba(140, 90, 50, 0.45);
  border: 1px solid rgba(0, 229, 255, 0.35);
}
.addr-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.addr-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.addr-card.is-default {
  border-color: rgba(0, 229, 255, 0.55);
}
.addr-card-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}
.addr-card-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.addr-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.addr-form {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.addr-form-title {
  margin: 4px 0 0;
  font-size: 0.95rem;
}
.addr-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.me-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.me-check input {
  width: 16px;
  height: 16px;
  accent-color: #c48a5a;
}
.ghost-btn.sm {
  padding: 4px 10px;
  font-size: 0.78rem;
}
.ghost-btn.danger {
  color: #e8a0a0;
}

.me-order-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.me-order-tabs button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.me-order-tabs button.on {
  color: var(--cta-ink);
  background: linear-gradient(135deg, #67f6ff, #00e5ff);
  border-color: transparent;
}
.me-order-shop p.me-order-logistics {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.me-order-shop .me-order-status {
  color: var(--rose-bright);
}

#viewOrders .view-head {
  text-align: center;
  justify-content: center;
}
#viewOrders .view-head > div {
  margin-inline: auto;
}
#viewOrders .orders-page-tabs {
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
#viewOrders .orders-page-list {
  width: min(720px, 100%);
  margin: 0 auto;
  min-height: 160px;
}
.orders-page-list .me-order {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.orders-page-list .me-empty,
.orders-page-list .me-hint {
  text-align: center;
  padding: 28px 12px;
}
#viewOrders .site-beian-inflow {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 900px) {
  .about-features {
    grid-template-columns: 1fr;
  }
  .about-contact {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .about-meta-card {
    width: 100%;
    padding: 4px 0 0;
  }
  .about-meta-row {
    grid-template-columns: 64px 1fr;
    text-align: left;
  }
  #viewShop .shop-cats {
    margin: 0 -14px 16px;
    padding: 8px 14px 12px;
  }
}
@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .shop-cats {
    gap: 8px;
  }
  .shop-cat {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    font-size: 0.88rem;
  }
  .shop-flow {
    padding: 12px 10px;
    justify-content: flex-start;
    gap: 4px;
  }
  .shop-flow-item {
    min-width: 56px;
    max-width: 72px;
  }
  .shop-flow-text {
    font-size: 0.66rem;
  }
  .shop-flow-arrow {
    margin-top: -12px;
    font-size: 0.85rem;
  }
  .shop-card-actions {
    flex-direction: column;
  }
}

/* ===== 幻居AI 出图台：左图右参 + 底部固定生成栏 ===== */
.top-brand-text em {
  color: var(--cyan);
  font-style: normal;
}
.brand-logo {
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.45));
}
.facade-wizard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.facade-wizard .create-step {
  overflow: hidden;
  min-height: 0;
  flex: none;
  display: flex;
  flex-direction: column;
}
.facade-wizard .create-step-body {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  padding: 0 4px 16px 0;
  margin: 0;
}
.facade-wizard .create-step-body > .block,
.facade-wizard .create-step-body > .create-field,
.facade-wizard .create-step-body > .prompt-wrap,
.facade-wizard .create-step-body > .check-public {
  margin-left: 0;
  margin-right: 0;
}
.facade-wizard #createStep1 > .create-step-body {
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0 12px 12px 0;
}
.facade-studio {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.facade-studio-work {
  display: grid;
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
  gap: 18px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}
.facade-col-stage,
.facade-col-params {
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.facade-col-stage {
  padding-right: 4px;
  border-right: 1px solid var(--line);
}
.facade-wizard #createStep1 .create-photo-uploader {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: min(42vh, 360px);
  min-height: 180px;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
}
.facade-wizard #createStep1 .create-photo-uploader .uploader-inner {
  padding: 16px 14px;
  gap: 6px;
}
.facade-wizard #createStep1 .create-photo-uploader .uploader-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.8rem;
  margin-bottom: 0;
}
.facade-wizard #createStep1 .create-photo-uploader .uploader-title {
  font-size: 1rem;
}
.facade-wizard #createStep1 .create-photo-uploader .uploader-desc,
.facade-wizard #createStep1 .create-photo-uploader .uploader-formats {
  font-size: 0.72rem;
}
.facade-wizard #createStep1 .create-photo-uploader.has-image {
  max-height: min(46vh, 400px);
  background: #05080c;
}
.facade-wizard #createStep1 .create-photo-uploader .photo-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.facade-col-params .create-step-body {
  padding: 0 2px 18px 4px;
}

/* 底部固定操作栏：始终可见、按钮不随内容拉伸 */
.facade-dock {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -4px 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.08), rgba(5, 10, 16, 0.94));
  box-shadow: 0 -12px 32px rgba(0, 8, 18, 0.45);
  z-index: 6;
}
.facade-dock-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-width: 0;
  flex: 1;
}
.facade-dock-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.facade-dock-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 600;
}
.facade-dock .facade-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-template-columns: none;
}
.facade-dock .facade-choice-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 52px;
  min-height: 36px;
  max-height: 40px;
  padding: 4px 10px;
  border-radius: 10px;
  height: auto;
}
.facade-dock .facade-choice-count .facade-choice-btn {
  min-width: 36px;
  padding: 4px 8px;
}
.facade-dock .check-public {
  margin: 0;
  white-space: nowrap;
  font-size: 0.78rem;
}
.facade-dock-tip {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.facade-dock-cta,
.facade-dock-cta.create-step2-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  grid-template-columns: none;
}
.facade-dock .btn-generate {
  width: auto;
  min-width: 220px;
  height: 48px;
  max-height: 48px;
  min-height: 48px;
  padding: 0 22px;
  writing-mode: horizontal-tb;
  white-space: nowrap;
  flex-direction: row;
}
.facade-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.facade-choice-count {
  grid-template-columns: repeat(4, 1fr);
}
.facade-choice-btn {
  display: grid;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 16, 0.55);
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}
.facade-choice-btn span {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.facade-choice-btn.on {
  border-color: var(--cyan);
  color: var(--ink);
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.22);
}
.facade-advanced {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 8px;
}
.facade-advanced summary {
  cursor: pointer;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  list-style: none;
}
.facade-advanced summary::-webkit-details-marker { display: none; }
.facade-advanced summary::after {
  content: " ▾";
  opacity: 0.7;
}
.facade-adv-field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.facade-adv-field textarea,
.prompt-preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 16, 0.85);
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
}
.prompt-preview {
  min-height: 88px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #c6e8f2;
  margin: 0;
}
.facade-reset,
.facade-copy {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cyan);
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}
#attrBlock .block-head {
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
}
.swatch-item {
  display: grid;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.04);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.68rem;
}
.swatch-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.swatch-item.on {
  border-color: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.28);
}
.facade-attrs {
  display: grid;
  gap: 16px;
}
.facade-group h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-family: var(--font-display);
}
.facade-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.facade-field {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.facade-field-chips {
  grid-column: 1 / -1;
}
.facade-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.facade-chip {
  border: 1px solid var(--line);
  background: rgba(5, 10, 16, 0.55);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}
.facade-chip.on {
  border-color: var(--cyan);
  color: var(--ink);
  background: rgba(0, 229, 255, 0.14);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.18);
}
.facade-field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 16, 0.85);
  color: var(--ink);
  padding: 8px 10px;
}

@media (max-width: 1080px) {
  .facade-studio-work {
    grid-template-columns: minmax(240px, 32%) minmax(0, 1fr);
  }
  .facade-dock .btn-generate {
    min-width: 180px;
  }
}
@media (max-width: 960px) {
  .facade-studio-work {
    grid-template-columns: 1fr;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
  }
  .facade-col-stage {
    border-right: 0;
    height: auto;
    flex: none;
  }
  .facade-col-params {
    height: auto;
    flex: none;
  }
  .facade-wizard .create-step {
    overflow: visible;
    height: auto;
  }
  .facade-wizard .create-step-body,
  .facade-wizard #createStep1 > .create-step-body {
    overflow: visible;
    flex: none;
    padding-right: 0;
  }
  .facade-wizard #createStep1 .create-photo-uploader {
    max-height: 260px;
    min-height: 168px;
  }
  .facade-dock {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border-radius: 16px 16px 0 0;
  }
  .facade-dock-cta {
    width: 100%;
  }
  .facade-dock .btn-generate {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .facade-group-grid { grid-template-columns: 1fr; }
  .facade-dock-controls {
    gap: 8px 10px;
  }
  .facade-dock-tip {
    display: none;
  }
  .facade-dock .facade-choice-btn span {
    display: none;
  }
  #viewCreate .site-beian-inflow {
    display: none;
  }
}
.card-story-btn,
.rarity-badge,
.rarity-fx,
#detailOrder,
.mine-toolbar [data-mine-print] {
  display: none !important;
}

