/** ==========================================================================
   MuseForm 缪象商店｜styles.css（shop v1.00 · PC 独立站）
   视觉基调：延续官网 v6 星辉体系（浅紫渐变 + 月桂金 + 墨色 + 衬线标题），
             商店内容以白玻璃卡承载，商品图为视觉主角。
   结构：字体 → 令牌 → 基础 → 背景（渐变/网格/云团）→ 顶栏 → 壳层/区块 →
         按钮/标签/卡片 → 页脚 → toast/弹层 → 收银台 → 状态块 → 入场动效 →
         首页 → 商店/角色 → 抽赏/抽盒 → 订单/盲盒柜/搜索 → 响应式 → 无障碍
   ========================================================================== */

/* ---------- 自托管字体（子集化） ---------- */
@font-face {
  font-family: "MuseSans";
  src: url("../fonts/muse-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MuseSerif";
  src: url("../fonts/muse-serif-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MuseSerif";
  src: url("../fonts/muse-serif-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 设计令牌（与官网 v6 同源） ---------- */
:root {
  --bg-below: #FAFAFC;
  --bg-top: #EFE6FF;
  --bg-mid: #F6F0FF;
  --bg-bottom: #FAF8FE;
  --bg-dark: #14101E;

  --ink: #17101E;
  --ink-2: rgba(23, 16, 30, 0.62);
  --ink-3: rgba(23, 16, 30, 0.42);
  --ink-on-dark: #F6F3EC;

  --gold: #C9A227;
  --gold-deep: #8F6A15;
  --gold-bright: #E8C36A;
  --gold-soft: rgba(201, 162, 39, 0.52);

  --violet: #B990FF;
  --violet-deep: #7C5BD0;
  --violet-soft: rgba(185, 144, 255, 0.35);

  --line: rgba(23, 16, 30, 0.075);
  --line-gold: rgba(201, 162, 39, 0.42);
  --line-violet: rgba(185, 144, 255, 0.28);
  --card: rgba(255, 255, 255, 0.66);

  --radius: 24px;
  --radius-sm: 20px;
  --radius-pill: 999px;
  --nav-h: 72px;
  --shell: 1240px;

  --shadow-card: 0 30px 70px -34px rgba(41, 24, 68, 0.30), 0 2px 8px rgba(41, 24, 68, 0.04);
  --shadow-float: 0 18px 44px -18px rgba(41, 24, 68, 0.24);
  --shadow-toast: 0 20px 48px -20px rgba(23, 16, 30, 0.55);

  --font-serif: "MuseSerif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: "MuseSans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* html 不设背景色：body 背景传播至 canvas，z-index:-1 的 .backdrop 才不被盖住 */
body {
  position: relative;
  min-height: 100svh;
  font-family: var(--font-sans);
  background: var(--bg-below);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

::selection { background: rgba(201, 162, 39, 0.30); color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(23, 16, 30, 0.16);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(23, 16, 30, 0.28);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 背景：星辉紫长渐变 + 网格遮罩 + 云团缓漂（与官网同源，去掉 canvas 粒子） ---------- */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg-below);
  background-image:
    radial-gradient(92vw 48vh at 50% -6%, rgba(185, 144, 255, 0.12), rgba(185, 144, 255, 0) 72%),
    linear-gradient(180deg, var(--bg-top) 0%, #F2E9FF 12%, #EFE4FF 28%, var(--bg-mid) 48%, var(--bg-below) 68%, var(--bg-below) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 200svh;
}

/* 网格：全视口固定层，90px 大格，顶强底隐 */
.backdrop::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' shape-rendering='crispEdges'%3E%3Cpath d='M90 .5H0M.5 0V90' fill='none' stroke='%237C5BD0' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 90px 90px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.99) 0%, rgba(0, 0, 0, 0.91) 9%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.99) 0%, rgba(0, 0, 0, 0.91) 9%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.clouds {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100svh;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, rgba(0, 0, 0, 0.35) 90%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, rgba(0, 0, 0, 0.35) 90%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.clouds__spin {
  position: absolute;
  inset: 0;
  animation: cloudSpin 90s linear infinite;
}

.cloud {
  position: absolute;
  display: block;
  border-radius: 60% 40% 55% 45% / 50% 62% 38% 50%;
  filter: blur(70px);
  pointer-events: none;
  will-change: transform, border-radius;
}

.cloud--1 {
  top: -12%;
  left: 8%;
  width: min(780px, 70vw);
  height: min(520px, 48vw);
  opacity: 0.36;
  background:
    radial-gradient(54% 58% at 42% 42%, rgba(255, 148, 208, 0.58), rgba(255, 148, 208, 0) 72%),
    radial-gradient(58% 62% at 64% 60%, rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0) 76%);
  animation: cloudDriftA 108s ease-in-out -14s infinite alternate,
             cloudMorphA 76s ease-in-out -10s infinite alternate;
}

.cloud--2 {
  top: -18%;
  right: 4%;
  width: min(620px, 56vw);
  height: min(430px, 40vw);
  opacity: 0.32;
  background:
    radial-gradient(54% 58% at 52% 44%, rgba(132, 176, 255, 0.60), rgba(132, 176, 255, 0) 74%),
    radial-gradient(50% 54% at 34% 62%, rgba(255, 168, 220, 0.44), rgba(255, 168, 220, 0) 76%);
  animation: cloudDriftB 124s ease-in-out -30s infinite alternate,
             cloudMorphB 84s ease-in-out -18s infinite alternate;
}

.cloud--3 {
  top: 22.5%;
  left: -7%;
  width: min(710px, 64vw);
  height: min(480px, 42vw);
  opacity: 0.30;
  background:
    radial-gradient(56% 56% at 46% 46%, rgba(162, 122, 250, 0.56), rgba(162, 122, 250, 0) 74%),
    radial-gradient(50% 52% at 66% 38%, rgba(132, 176, 255, 0.42), rgba(132, 176, 255, 0) 76%);
  animation: cloudDriftB 100s ease-in-out -44s infinite alternate,
             cloudMorphA 68s ease-in-out -26s infinite alternate;
}

.cloud--4 {
  top: 50%;
  right: 6%;
  width: min(580px, 52vw);
  height: min(400px, 36vw);
  opacity: 0.26;
  background:
    radial-gradient(54% 56% at 46% 42%, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 78%),
    radial-gradient(52% 54% at 62% 64%, rgba(178, 142, 252, 0.48), rgba(178, 142, 252, 0) 78%);
  animation: cloudDriftC 132s ease-in-out -52s infinite alternate,
             cloudMorphB 92s ease-in-out -34s infinite alternate;
}

@keyframes cloudSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes cloudDriftA {
  from { transform: translate3d(-80px, 26px, 0); }
  to   { transform: translate3d(96px, -34px, 0); }
}
@keyframes cloudDriftB {
  from { transform: translate3d(72px, -20px, 0) scale(1.03); }
  to   { transform: translate3d(-92px, 32px, 0) scale(0.97); }
}
@keyframes cloudDriftC {
  from { transform: translate3d(-60px, -26px, 0) rotate(-2deg); }
  to   { transform: translate3d(76px, 30px, 0) rotate(2.5deg); }
}
@keyframes cloudMorphA {
  0%   { border-radius: 62% 38% 50% 50% / 45% 60% 40% 55%; }
  32%  { border-radius: 40% 60% 68% 32% / 62% 38% 58% 42%; }
  66%  { border-radius: 56% 44% 36% 64% / 38% 62% 44% 56%; }
  100% { border-radius: 62% 38% 50% 50% / 45% 60% 40% 55%; }
}
@keyframes cloudMorphB {
  0%   { border-radius: 48% 52% 44% 56% / 56% 44% 58% 42%; }
  30%  { border-radius: 66% 34% 58% 42% / 42% 62% 38% 60%; }
  64%  { border-radius: 38% 62% 50% 50% / 60% 40% 56% 44%; }
  100% { border-radius: 48% 52% 44% 56% / 56% 44% 58% 42%; }
}

/* ---------- 顶栏：常显导航（商店为功能性站点），滚动后收银胶囊 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(20px, 3vw, 44px);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 8px clamp(14px, 2.4vw, 32px);
  z-index: -1;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 14px 44px -20px rgba(41, 24, 68, 0.28);
  opacity: 0;
  transform: scaleX(0.72);
  transform-origin: center;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}

.nav.is-scrolled::before {
  opacity: 1;
  transform: scaleX(1);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.nav__emblem {
  width: 36px;
  height: 36px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #2A1F03;
  background: linear-gradient(150deg, var(--gold-bright), var(--gold) 60%, #B8912A);
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 50%;
  box-shadow: 0 6px 16px -8px rgba(201, 162, 39, 0.8);
}

.nav__name {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.nav__name em {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.nav__link {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--ink);
  background: rgba(124, 91, 208, 0.10);
}

.nav__link.is-on {
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 10px rgba(41, 24, 68, 0.06);
}

.nav__spacer { flex: 1; }

.nav__search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: clamp(180px, 18vw, 260px);
  height: 40px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 18px -10px rgba(41, 24, 68, 0.18);
  color: var(--ink-3);
  font-size: 13.5px;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav__search:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px -12px rgba(41, 24, 68, 0.26);
}

.nav__search svg { width: 15px; height: 15px; flex: none; }

.nav__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}

.nav__action:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
}

.nav__action svg { width: 16px; height: 16px; }
.nav__action:active { transform: scale(0.97); }

/* ---------- 壳层与区块 ---------- */
.page {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}

.shell {
  width: min(var(--shell), calc(100% - clamp(40px, 6vw, 96px)));
  margin: 0 auto;
}

.section {
  padding: clamp(44px, 6vw, 76px) 0;
}

.section--tight { padding-top: clamp(24px, 3vw, 40px); }

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-deep);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(20px, 2.6vw, 30px);
}

.section-title {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.section-desc {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 620px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.text-link:hover { color: var(--ink); background: rgba(124, 91, 208, 0.10); }
.text-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

.muted { color: var(--ink-3); font-size: 13px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.22s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
  user-select: none;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  color: var(--ink-on-dark);
  background: linear-gradient(135deg, #241A33, var(--ink) 55%, #100B16);
  box-shadow: 0 14px 34px -16px rgba(23, 16, 30, 0.6);
}

.btn--primary:hover {
  box-shadow: 0 18px 40px -16px rgba(23, 16, 30, 0.66);
  transform: translateY(-1px);
}

.btn--gold {
  color: #2A1F03;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 58%, #B8912A);
  box-shadow: 0 14px 32px -16px rgba(201, 162, 39, 0.75);
}

.btn--gold:hover {
  box-shadow: 0 18px 38px -16px rgba(201, 162, 39, 0.85);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 16, 30, 0.10);
  box-shadow: 0 8px 22px -16px rgba(41, 24, 68, 0.24);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.9); }

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn--sm { height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn--block { width: 100%; }

/* ---------- 标签 / 筛选 chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(23, 16, 30, 0.08);
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}

.chip:hover { color: var(--ink); background: rgba(255, 255, 255, 0.85); }

.chip.is-active {
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--line-gold);
  box-shadow: 0 6px 18px -10px rgba(201, 162, 39, 0.5);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-gold);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- 卡片 ---------- */
.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

/* 价格 */
.price {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.price-unit { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }

.price-original {
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: line-through;
  margin-left: 7px;
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid rgba(23, 16, 30, 0.08);
  padding: clamp(30px, 4vw, 46px) 0 34px;
}

.footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__brand { max-width: 340px; }

.footer__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.footer__name .nav__emblem { width: 30px; height: 30px; font-size: 15px; }

.footer__slogan {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.9;
}

.footer__cols {
  display: flex;
  gap: clamp(40px, 6vw, 90px);
  flex-wrap: wrap;
}

.footer__col { display: grid; gap: 10px; align-content: start; }

.footer__col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.footer__link {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.footer__link:hover { color: var(--ink); }

.footer__base {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 16, 30, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}

.footer__base a { color: var(--ink-3); }
.footer__base a:hover { color: var(--ink-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 44px;
  z-index: 90;
  transform: translate(-50%, 16px);
  max-width: min(520px, calc(100vw - 48px));
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: rgba(23, 16, 30, 0.92);
  color: var(--ink-on-dark);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  box-shadow: var(--shadow-toast);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 弹层（sheet） ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 14, 32, 0.44);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.sheet-mask.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: relative;
  width: min(480px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border-radius: 28px;
  background: rgba(252, 251, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 40px 90px -30px rgba(23, 16, 30, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  padding: clamp(24px, 3vw, 34px);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.32s var(--ease-out);
}

.sheet-mask.is-open .sheet { transform: translateY(0) scale(1); }

.sheet--wide { width: min(760px, 100%); }

.sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-3);
  background: rgba(23, 16, 30, 0.05);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  font-size: 15px;
}

.sheet__close:hover { background: rgba(23, 16, 30, 0.10); color: var(--ink); }

.sheet__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.sheet__desc {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
}

.sheet__actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.sheet__actions .btn { flex: 1; }

/* ---------- 收银台 ---------- */
.pay-amount {
  margin: 18px 0 4px;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}

.pay-amount small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 8px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 16, 30, 0.07);
}

.pay-method__icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #07c160;
  background: rgba(7, 193, 96, 0.10);
  font-weight: 700;
  font-size: 15px;
}

.pay-method__name { font-size: 14px; font-weight: 600; }
.pay-method__sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.pay-method__check { margin-left: auto; color: #07c160; font-size: 17px; }

.pay-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}

/* Native 二维码 */
.pay-qr {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 22px 0 6px;
}

.pay-qr__frame {
  width: 208px;
  height: 208px;
  padding: 12px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(23, 16, 30, 0.08);
  box-shadow: 0 18px 40px -22px rgba(23, 16, 30, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-qr__frame img,
.pay-qr__frame canvas { width: 100%; height: 100%; }

.pay-qr__hint { font-size: 13px; color: var(--ink-2); text-align: center; line-height: 1.8; }

.pay-qr__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.pay-qr__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: qrPulse 1.6s ease-in-out infinite;
}

@keyframes qrPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.pay-order-no {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ---------- 状态块 ---------- */
.state-block {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(48px, 8vw, 96px) 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.state-block__icon { font-size: 30px; opacity: 0.6; }

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid rgba(23, 16, 30, 0.12);
  border-top-color: var(--violet-deep);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 骨架微光 */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmer 1.6s var(--ease) infinite;
}

@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- 入场动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* 弹层打开时锁定页面滚动 */
body.is-locked { overflow: hidden; }

/* ==========================================================================
   首页（shop hero / 精选周边 / 抽赏条带 / 缪斯档案墙）
   ========================================================================== */
.shop-hero {
  position: relative;
  padding: clamp(54px, 7vw, 96px) 0 clamp(30px, 4vw, 52px);
}

.shop-hero__inner {
  width: min(var(--shell), calc(100% - clamp(40px, 6vw, 96px)));
  margin: 0 auto;
  text-align: center;
}

.shop-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line-gold);
  box-shadow: 0 8px 22px -14px rgba(201, 162, 39, 0.55);
}

.shop-hero__title {
  margin-top: clamp(20px, 2.6vw, 30px);
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.6vw, 76px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.shop-hero__title .ink-gold {
  background: linear-gradient(112deg, #8F6A15 4%, #C9A227 32%, #E8C36A 55%, #B8912A 78%, #8F6A15 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: inkFlow 12s ease-in-out infinite alternate;
}

.shop-hero__title .ink-violet {
  background: linear-gradient(112deg, #5B3AA6 4%, #7C5BD0 34%, #B990FF 56%, #8E68D8 80%, #5B3AA6 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: inkFlow 14s ease-in-out infinite alternate-reverse;
}

@keyframes inkFlow {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}

.shop-hero__sub {
  margin: 16px auto 0;
  max-width: 640px;
  font-size: 15.5px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

.shop-hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  margin: clamp(24px, 3vw, 34px) auto 0;
  padding: 8px 8px 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 26px 60px -30px rgba(41, 24, 68, 0.35);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.shop-hero__search:focus-within {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 66px -30px rgba(41, 24, 68, 0.42);
}

.shop-hero__search svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--ink-3);
}

.shop-hero__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.shop-hero__search input::placeholder { color: var(--ink-3); }

.shop-hero__search .btn { height: 42px; padding: 0 22px; flex: none; }

.shop-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(20px, 2.4vw, 28px);
}

.shop-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 44px);
  margin-top: clamp(26px, 3.2vw, 38px);
  color: var(--ink-3);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.shop-hero__stats b {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}

.shop-hero__stat-sep {
  width: 1px;
  height: 30px;
  background: rgba(23, 16, 30, 0.12);
}

/* ---------- 商品网格与卡片 ---------- */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.goods-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.goods-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 44px -28px rgba(41, 24, 68, 0.28);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), background 0.32s var(--ease);
}

.goods-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 32px 64px -30px rgba(41, 24, 68, 0.38);
}

.goods-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(185, 144, 255, 0.16), rgba(185, 144, 255, 0) 60%),
    #F4F0FA;
}

.goods-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.goods-card:hover .goods-card__media img { transform: scale(1.045); }

.goods-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
}

.goods-card__body {
  display: grid;
  gap: 3px;
  padding: 15px 17px 17px;
}

.goods-card__role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.goods-card__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goods-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}

.goods-card__buy {
  font-size: 12px;
  color: var(--violet-deep);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.goods-card:hover .goods-card__buy { opacity: 1; transform: none; }

/* ---------- 抽赏条带（深色区块） ---------- */
.draw-band {
  position: relative;
  margin: clamp(30px, 4vw, 50px) 0;
  border-radius: 34px;
  background:
    radial-gradient(90% 120% at 18% 0%, rgba(124, 91, 208, 0.34), rgba(124, 91, 208, 0) 55%),
    radial-gradient(80% 110% at 88% 10%, rgba(201, 162, 39, 0.16), rgba(201, 162, 39, 0) 52%),
    linear-gradient(160deg, #1B1428 0%, #14101E 55%, #100C18 100%);
  color: var(--ink-on-dark);
  padding: clamp(30px, 4.4vw, 52px);
  overflow: hidden;
}

.draw-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' shape-rendering='crispEdges'%3E%3Cpath d='M90 .5H0M.5 0V90' fill='none' stroke='%23B990FF' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 90px 90px;
  pointer-events: none;
}

.draw-band .eyebrow { color: var(--gold-bright); }
.draw-band .section-title { color: var(--ink-on-dark); }
.draw-band .text-link { color: rgba(246, 243, 236, 0.72); }
.draw-band .text-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.box-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.box-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), background 0.32s var(--ease);
}

.box-tile:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(201, 162, 39, 0.45);
}

.box-tile__figure {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.box-tile__figure::after {
  content: "";
  position: absolute;
  inset: 12% 12% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 144, 255, 0.35), rgba(185, 144, 255, 0) 68%);
  filter: blur(18px);
  pointer-events: none;
}

.box-tile__figure img {
  position: relative;
  z-index: 1;
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  transition: transform 0.5s var(--ease-out);
}

.box-tile:hover .box-tile__figure img { transform: translateY(-4px) scale(1.02); }

.box-tile__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  color: var(--gold-bright);
  background: rgba(20, 16, 30, 0.55);
  border-color: rgba(201, 162, 39, 0.5);
}

.box-tile__body {
  display: grid;
  gap: 4px;
  padding: 13px 15px 15px;
}

.box-tile__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-on-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-tile__price {
  font-size: 13px;
  color: rgba(246, 243, 236, 0.62);
}

.box-tile__price b {
  font-size: 16px;
  color: var(--gold-bright);
  font-weight: 700;
  margin-right: 2px;
}

/* ---------- 缪斯档案墙 ---------- */
.role-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.role-tile {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: #F4F0FA;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 40px -28px rgba(41, 24, 68, 0.3);
  cursor: pointer;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.role-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 56px -28px rgba(41, 24, 68, 0.42);
}

.role-tile__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.role-tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(20, 14, 32, 0.72) 100%);
  pointer-events: none;
}

.role-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.role-tile:hover .role-tile__media img { transform: scale(1.05); }

.role-tile__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 15px 15px;
  color: #FFF;
}

.role-tile__en {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.role-tile__name {
  display: block;
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.role-tile__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}

.role-tile__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}

/* ==========================================================================
   商店列表页
   ========================================================================== */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

.crumbs a { transition: color 0.2s var(--ease); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: 0.45; }

.store-head {
  position: relative;
  padding: clamp(34px, 4.6vw, 62px) 0 clamp(6px, 1.2vw, 12px);
}

.store-head__title {
  display: block;
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.14;
  color: var(--ink);
}

.store-head__sub {
  margin-top: 12px;
  max-width: 660px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.9;
}

.store-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(600px, 100%);
  margin-top: clamp(20px, 2.4vw, 28px);
  padding: 8px 8px 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 26px 60px -32px rgba(41, 24, 68, 0.35);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.store-search-bar:focus-within {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 66px -30px rgba(41, 24, 68, 0.44);
}

.store-search-bar svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--ink-3);
}

.store-search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
}

.store-search-bar input::placeholder { color: var(--ink-3); }
.store-search-bar .btn { height: 42px; padding: 0 22px; flex: none; }

.role-wall--store { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.brand-merch {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(22px, 2.6vw, 32px);
  padding: 20px 24px;
  border-radius: 22px;
  border: 1px dashed rgba(201, 162, 39, 0.45);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.32));
}

.brand-merch__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 17px;
  color: var(--gold-deep);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid var(--line-gold);
}

.brand-merch__copy { flex: 1; min-width: 0; }

.brand-merch__title {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
}

.brand-merch__desc {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.75;
}

.brand-merch__soon {
  flex: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-gold);
}

/* ==========================================================================
   角色档案页
   ========================================================================== */
.role-layout {
  display: grid;
  grid-template-columns: minmax(0, 310px) minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 48px);
  align-items: start;
  padding: clamp(16px, 2vw, 26px) 0 clamp(20px, 2.4vw, 32px);
}

.role-aside {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: 18px;
}

.role-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--role-color, #B990FF) 26%, transparent), transparent 62%),
    linear-gradient(165deg, #F7F2FF, #EFE7FB 55%, #E7DDF6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 34px 70px -38px rgba(41, 24, 68, 0.45);
}

.role-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(20, 14, 32, 0.42) 100%);
  pointer-events: none;
}

.role-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.role-portrait:hover img { transform: scale(1.03); }

.role-portrait__en {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.role-identity { padding: 0 4px; }

.role-title {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
}

.role-domain {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--violet-deep);
}

.role-quote {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
  padding-left: 14px;
  border-left: 2px solid var(--line-gold);
}

.role-main { min-width: 0; }

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px -22px rgba(41, 24, 68, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }

.tab.is-on {
  color: var(--ink-on-dark);
  background: linear-gradient(135deg, #241A33, var(--ink) 60%, #100B16);
  box-shadow: 0 10px 22px -14px rgba(23, 16, 30, 0.65);
}

.tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  background: rgba(23, 16, 30, 0.07);
}

.tab.is-on .tab__count { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.16); }

.tab-panel { margin-top: 22px; }
.tab-panel[hidden] { display: none; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-row:empty { display: none; }

.profile-card {
  padding: clamp(24px, 3vw, 38px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.profile-card__title {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.35;
}

.profile-card__desc {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.95;
}

.role-attrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.role-attrs dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.role-attrs dd {
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.profile-card__slogan {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 0 16px 16px 0;
  border-left: 2px solid var(--line-gold);
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.10), rgba(201, 162, 39, 0));
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}

.profile-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.wallpaper-note {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
  background: rgba(185, 144, 255, 0.10);
  border: 1px solid var(--line-violet);
}

.goods-card__media--wallpaper { aspect-ratio: 4 / 5; }

.goods-card__owned {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #0B7A3E;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(11, 122, 62, 0.35);
}

/* ==========================================================================
   商品 / 壁纸详情弹层
   ========================================================================== */
.product-sheet,
.wallpaper-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
  align-items: start;
  padding-top: 6px;
}

.product-sheet__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--role-color, #B990FF) 22%, transparent), transparent 60%),
    #F4F0FA;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.product-sheet__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-sheet__media .tag {
  position: absolute;
  top: 12px;
  left: 12px;
}

.product-sheet__info { padding-top: 2px; }

.product-sheet__price {
  display: flex;
  align-items: baseline;
  margin: 14px 0 2px;
}

.product-sheet__price .price {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 900;
}

.product-sheet__meta {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

.product-sheet .sheet__actions,
.wallpaper-sheet .sheet__actions { margin-top: 20px; }

.wallpaper-preview {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: #F4F0FA;
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: zoom-in;
}

.wallpaper-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallpaper-preview__note {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.purchase-modes {
  display: inline-flex;
  gap: 3px;
  margin-top: 14px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(23, 16, 30, 0.05);
}

.purchase-mode {
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}

.purchase-mode.is-on {
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px -6px rgba(41, 24, 68, 0.28);
}

.size-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.size-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(23, 16, 30, 0.09);
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.size-option:hover { background: rgba(255, 255, 255, 0.85); }

.size-option.is-on {
  color: var(--ink);
  border-color: var(--line-gold);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px -14px rgba(201, 162, 39, 0.6);
}

.size-option__price { font-size: 12.5px; font-weight: 600; color: var(--gold-deep); }

/* 成功弹层 */
.success-panel {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 4px 4px;
}

.success-panel__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border-radius: 50%;
  font-size: 24px;
  color: var(--gold-deep);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), rgba(232, 195, 106, 0.32));
  border: 1px solid var(--line-gold);
  box-shadow: 0 18px 36px -20px rgba(201, 162, 39, 0.7);
}

.success-panel .sheet__actions { width: 100%; }

/* ==========================================================================
   抽赏列表页
   ========================================================================== */
.draw-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(18px, 2.2vw, 26px);
}

.draw-facts > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 26px -22px rgba(41, 24, 68, 0.4);
}

.draw-facts b {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}

.draw-facts span { font-size: 12.5px; color: var(--ink-3); }

.series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.series-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px -30px rgba(41, 24, 68, 0.3);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), background 0.32s var(--ease);
}

.series-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 32px 64px -30px rgba(41, 24, 68, 0.38);
}

.series-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(185, 144, 255, 0.22), rgba(185, 144, 255, 0) 62%),
    #F4F0FA;
}

.series-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.series-card:hover .series-card__media img { transform: scale(1.05); }

.series-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
}

.series-card__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.series-card__body {
  display: grid;
  gap: 4px;
  padding: 15px 17px 17px;
}

.series-card__note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.series-card__name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.series-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.series-card__specs span {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  color: var(--ink-2);
  background: rgba(23, 16, 30, 0.045);
}

.series-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.series-card__go {
  font-size: 12px;
  color: var(--violet-deep);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.series-card:hover .series-card__go { opacity: 1; transform: none; }

.guide-band {
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: 30px;
  background:
    radial-gradient(70% 90% at 88% 0%, rgba(201, 162, 39, 0.10), rgba(201, 162, 39, 0) 60%),
    rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(20px, 2.4vw, 28px);
}

.guide-steps li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(23, 16, 30, 0.06);
}

.guide-steps__no {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: rgba(201, 162, 39, 0.7);
}

.guide-steps__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.guide-steps__desc {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

.fair-note {
  display: flex;
  gap: 14px;
  margin-top: clamp(18px, 2vw, 26px);
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px dashed rgba(201, 162, 39, 0.4);
  background: rgba(255, 255, 255, 0.38);
}

.fair-note__mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  color: var(--gold-deep);
  background: rgba(201, 162, 39, 0.12);
}

.fair-note__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.fair-note p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* ==========================================================================
   抽盒详情页
   ========================================================================== */
.box-layout {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 52px);
  align-items: start;
  padding: clamp(16px, 2vw, 26px) 0 clamp(24px, 3vw, 40px);
}

.box-stage {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: 14px;
  justify-items: center;
}

.box-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(72% 60% at 50% 24%, rgba(185, 144, 255, 0.26), rgba(185, 144, 255, 0) 68%),
    linear-gradient(160deg, #1B1428 0%, #14101E 58%, #100C18 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -40px rgba(23, 16, 30, 0.6);
}

.box-figure > img {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s var(--ease-out);
}

.box-figure:hover > img { transform: translateY(-4px) scale(1.02); }

.box-figure__halo {
  position: absolute;
  inset: 16% 16% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 195, 106, 0.28), rgba(232, 195, 106, 0) 68%);
  filter: blur(22px);
  pointer-events: none;
}

.box-figure__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  color: var(--gold-bright);
  background: rgba(20, 16, 30, 0.5);
  border: 1px solid rgba(201, 162, 39, 0.45);
}

.box-figure__serial {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(246, 243, 236, 0.72);
}

.box-figure.is-shaking > img { animation: boxShake 0.7s var(--ease) both; }

@keyframes boxShake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  12% { transform: translate(-7px, 2px) rotate(-2deg); }
  28% { transform: translate(6px, -3px) rotate(2.4deg); }
  44% { transform: translate(-5px, 3px) rotate(-1.8deg); }
  62% { transform: translate(4px, -2px) rotate(1.4deg); }
  80% { transform: translate(-2px, 1px) rotate(-0.8deg); }
}

.box-figure__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  background: rgba(16, 12, 24, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.box-figure.is-drawing .box-figure__veil { opacity: 1; }

.box-orb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(232, 195, 106, 0), rgba(232, 195, 106, 0.9), rgba(185, 144, 255, 0.2), rgba(232, 195, 106, 0));
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 58%);
  mask: radial-gradient(circle, transparent 56%, #000 58%);
  animation: orbSpin 1.1s linear infinite;
}

@keyframes orbSpin { to { transform: rotate(360deg); } }

.box-veil__text {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(246, 243, 236, 0.86);
}

.box-stage__actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.box-stage__actions .btn { flex: 1; }

.box-stage__hint { font-size: 12px; color: var(--ink-3); }

.box-title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
}

.box-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

.box-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.box-price .price { font-family: var(--font-serif); font-size: 32px; font-weight: 900; }

.box-promo {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  color: var(--gold-deep);
  background: rgba(201, 162, 39, 0.10);
  border: 1px solid var(--line-gold);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.spec-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid rgba(23, 16, 30, 0.09);
  background: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  color: var(--ink-2);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease), color 0.22s var(--ease);
}

.spec-option:hover { background: rgba(255, 255, 255, 0.85); color: var(--ink); }

.spec-option.is-on {
  color: var(--ink);
  font-weight: 600;
  border-color: var(--line-gold);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px -18px rgba(201, 162, 39, 0.65);
}

.spec-option__price { font-size: 13px; font-weight: 700; color: var(--gold-deep); }

.box-buybar {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.box-buybar .btn--block { flex: 1; height: 52px; font-size: 15.5px; }

.box-tip {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}

.box-section {
  margin-top: clamp(26px, 3vw, 38px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line);
}

.box-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.box-section__title {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.style-tile { display: grid; gap: 7px; }

.style-tile__media {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #F4F0FA;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.style-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.style-tile:hover img { transform: scale(1.06); }

.style-tile__name {
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.probability-card {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(185, 144, 255, 0.08);
  border: 1px solid var(--line-violet);
}

.probability-card__text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
}

.probability-figures {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 3vw, 46px);
  margin-top: 16px;
}

.probability-figures b {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
}

.probability-figures span { font-size: 11.5px; color: var(--ink-3); }

.box-detail__text {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-2);
}

/* ---------- 抽取结果 ---------- */
.draw-result { text-align: center; }
.draw-result .eyebrow { margin-bottom: 4px; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.result-grid--single { grid-template-columns: minmax(0, 220px); justify-content: center; }

.result-card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px -26px rgba(41, 24, 68, 0.42);
  animation: resultIn 0.55s var(--ease-out) both;
}

.result-card:nth-child(2) { animation-delay: 0.08s; }
.result-card:nth-child(3) { animation-delay: 0.16s; }
.result-card:nth-child(4) { animation-delay: 0.24s; }
.result-card:nth-child(5) { animation-delay: 0.32s; }
.result-card:nth-child(6) { animation-delay: 0.4s; }

@keyframes resultIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.result-card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.result-card__media {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #F4F0FA;
}

.result-card__media img { width: 100%; height: 100%; object-fit: cover; }

.result-card__name {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.result-card__serial {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
}

.result-card__note {
  font-size: 11px;
  color: var(--ink-3);
  word-break: break-all;
}

/* ==========================================================================
   列表工具条 / 盲盒柜
   ========================================================================== */
.list-toolbar,
.order-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.list-toolbar .filter-row,
.order-toolbar .filter-row { margin-bottom: 0; }

.list-toolbar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 17px;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: rgba(23, 16, 30, 0.07);
}

.chip.is-active .chip__count { color: var(--ink); background: rgba(201, 162, 39, 0.16); }

.box-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.box-item {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px -28px rgba(41, 24, 68, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.box-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 56px -28px rgba(41, 24, 68, 0.4);
}

.box-item__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(185, 144, 255, 0.2), rgba(185, 144, 255, 0) 62%),
    #F4F0FA;
}

.box-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.box-item:hover .box-item__media img { transform: scale(1.05); }

.box-item__tag { position: absolute; top: 10px; left: 10px; }

.box-item__body {
  display: grid;
  gap: 2px;
  padding: 12px 14px 14px;
}

.box-item__series {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.box-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-item__serial {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-deep);
  word-break: break-all;
}

.box-item__meta {
  font-size: 10.5px;
  color: var(--ink-3);
  word-break: break-all;
}

.box-gallery--empty { display: block; }

/* ==========================================================================
   订单中心
   ========================================================================== */
.order-list { display: grid; gap: 14px; }
.order-list--empty { display: block; }

.order-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px -30px rgba(41, 24, 68, 0.34);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.order-card:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 48px -30px rgba(41, 24, 68, 0.4);
}

.order-card__media {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F0FA;
}

.order-card__media img { width: 100%; height: 100%; object-fit: cover; }
.order-card__placeholder { font-size: 22px; color: var(--ink-3); }

.order-card__main { min-width: 0; display: grid; gap: 4px; }

.order-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(23, 16, 30, 0.06);
}

.order-status--pending { color: var(--gold-deep); background: rgba(201, 162, 39, 0.14); }
.order-status--shipped { color: var(--violet-deep); background: rgba(185, 144, 255, 0.16); }
.order-status--received { color: #1F6FB2; background: rgba(31, 111, 178, 0.12); }
.order-status--done { color: #0B7A3E; background: rgba(11, 122, 62, 0.1); }
.order-status--cancelled { color: var(--ink-3); }

.order-card__type {
  font-size: 11.5px;
  color: var(--ink-3);
}

.order-card__no {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  word-break: break-all;
}

.order-card__name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.order-card__spec,
.order-card__time { font-size: 12px; color: var(--ink-3); }

.order-card__side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.order-card__price {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}

.order-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.order-card__hint { font-size: 12px; color: var(--ink-3); }

.device-note {
  margin-top: 20px;
  font-size: 11.5px;
  color: var(--ink-3);
  word-break: break-all;
}

/* ==========================================================================
   全站搜索
   ========================================================================== */
.search-hot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.search-hot__word {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(23, 16, 30, 0.07);
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}

.search-hot__word:hover { color: var(--ink); background: rgba(255, 255, 255, 0.9); }

.search-summary {
  margin-bottom: 22px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.search-summary b { color: var(--ink); font-weight: 600; }

.search-group { margin-bottom: clamp(26px, 3vw, 38px); }

.search-group__head { margin-bottom: 14px; }

.search-group__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.search-group__count {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.search-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px -28px rgba(41, 24, 68, 0.4);
}

.search-card__media {
  width: 64px;
  height: 64px;
  border-radius: 13px;
  overflow: hidden;
  background: #F4F0FA;
}

.search-card__media img { width: 100%; height: 100%; object-fit: cover; }

.search-card__body { min-width: 0; display: grid; gap: 2px; }

.search-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-card__sub {
  font-size: 11.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-card__go {
  font-size: 14px;
  color: var(--violet-deep);
  opacity: 0;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.search-card:hover .search-card__go { opacity: 1; transform: translateX(2px); }

/* ==========================================================================
   响应式（以 PC 为主，逐步收敛到平板 / 窄屏）
   ========================================================================== */
@media (max-width: 1180px) {
  .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .role-wall--store { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .box-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box-layout { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
  .style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .nav__search { width: 40px; padding: 0; justify-content: center; }
  .nav__search span { display: none; }
  .role-layout { grid-template-columns: 1fr; }
  .role-aside {
    position: static;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    align-items: center;
    gap: 22px;
  }
  .box-layout { grid-template-columns: 1fr; }
  .box-stage { position: static; max-width: 520px; margin: 0 auto; }
  .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goods-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-sheet,
  .wallpaper-sheet { grid-template-columns: 1fr; }
  .product-sheet__media { max-height: 340px; }
  .wallpaper-preview { max-height: 400px; }
  .order-card { grid-template-columns: 84px minmax(0, 1fr); }
  .order-card__media { width: 84px; height: 84px; }
  .order-card__side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    display: flex;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .box-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .nav { gap: 10px; padding: 0 14px; }
  .nav__links { display: none; }
  .nav__name em { display: none; }
  .nav__action span { display: none; }
  .nav__action { width: 40px; padding: 0; }
  .goods-grid,
  .series-grid,
  .role-wall,
  .role-wall--store,
  .box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-steps { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr; }
  .sheet-mask { padding: 12px; }
  .sheet__actions { flex-wrap: wrap; }
  .box-buybar { flex-direction: column; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer__cols { gap: 28px; }
  .role-aside { grid-template-columns: 1fr; }
  .role-portrait { max-width: 280px; }
  .box-stage { max-width: 100%; }
  .draw-facts > div { flex: 1 1 auto; }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
