/* ==========================================================================
   AURORA STORE · 商城前台
   ========================================================================== */

[hidden] { display: none !important; }

.shop {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 26px 0;
}

/* ------------------------------ 顶部导航 ------------------------------ */

.topbar {
  position: sticky;
  top: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px 11px 18px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.brand-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.seg {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.seg-btn {
  height: 34px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.25s, box-shadow 0.25s;
}

.seg-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

.seg-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(99, 102, 241, 0.92));
  box-shadow:
    0 7px 18px -7px rgba(99, 102, 241, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.top-actions { display: flex; align-items: center; gap: 9px; }

.pages {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.page-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 19px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.page-link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

.page-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(99, 102, 241, 0.92));
  box-shadow:
    0 7px 18px -7px rgba(99, 102, 241, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.user-chip { cursor: pointer; }

.coin-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px 0 9px;
  border-radius: 13px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 26px -12px rgba(251, 191, 36, 0.75);
  overflow: hidden;
}

.coin-chip::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-18deg);
  animation: chipShine 4.5s ease-in-out infinite;
}

.coin-value { font-size: 13.5px; font-weight: 800; color: #fde68a; }
.coin-chip small { font-size: 9.5px; color: var(--faint); letter-spacing: 0.06em; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 4px 5px 4px 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 12px -4px rgba(99, 102, 241, 0.8);
}

.user-name {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
}

.icon-logout {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
  cursor: pointer;
  transition: 0.2s ease;
}
.icon-logout:hover { color: #fecdd3; border-color: rgba(244, 63, 94, 0.35); background: rgba(244, 63, 94, 0.1); }

/* ------------------------------ Hero ------------------------------ */

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 34px;
  padding: 66px 0 52px;
  min-height: 570px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero h1 {
  margin: 20px 0 20px;
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero h1 .grad {
  background: linear-gradient(100deg, #a78bfa 0%, #67e8f9 46%, #f0abfc 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(139, 92, 246, 0.28));
}

.hero-sub {
  max-width: 505px;
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions { display: flex; gap: 11px; margin-top: 30px; flex-wrap: wrap; }

.hero-meta { display: flex; align-items: center; gap: 19px; margin-top: 38px; }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-item b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.meta-item span {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.meta-divider { width: 1px; height: 30px; background: rgba(255, 255, 255, 0.09); }

/* 3D 展示台 */

.stage-wrap {
  position: relative;
  height: 520px;
  perspective: 1200px;
  perspective-origin: 50% 42%;
}

.stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stage-glow {
  position: absolute;
  inset: 8% 2%;
  border-radius: 44px;
  background: radial-gradient(
    ellipse at 48% 46%,
    rgba(124, 58, 237, 0.55),
    rgba(34, 211, 238, 0.18) 46%,
    transparent 72%
  );
  filter: blur(42px);
  transform: translateZ(-90px);
}

.stage-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 400px;
  height: 400px;
  margin: -200px 0 0 -200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: conic-gradient(
    from 210deg,
    rgba(139, 92, 246, 0.16),
    transparent 32%,
    rgba(34, 211, 238, 0.14),
    transparent 66%,
    rgba(244, 114, 182, 0.12)
  );
  transform: rotateX(64deg) translateZ(-30px);
  opacity: 0.85;
}

.stage-ring.ring-two {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  transform: rotateX(64deg) rotateZ(18deg) translateZ(-10px);
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.07);
}

.float { position: absolute; transform-style: preserve-3d; will-change: transform; }

.panel-main { left: 0; top: 17%; width: 300px; transform: rotateY(-15deg) rotateX(9deg); }
.panel-mini { right: -2%; bottom: 11%; width: 238px; transform: rotateY(12deg) rotateX(-5deg); }
.panel-chip { left: 9%; bottom: 2%; transform: rotateY(-9deg) rotateX(4deg); }

.float-inner {
  padding: 20px;
  border-radius: 22px;
  animation: floatY 7s ease-in-out infinite;
  will-change: transform;
}
.panel-main .float-inner { animation-delay: -1.6s; }
.panel-mini .float-inner { animation-delay: -3.6s; }

.wallet-panel { padding: 19px; }

.panel-row { display: flex; align-items: center; gap: 9px; }
.mini-orb {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff 4%, #a78bfa 32%, #4c1d95 74%, #0b1024 100%);
  box-shadow:
    inset -2px -3px 6px rgba(0, 0, 0, 0.6),
    inset 2px 2px 5px rgba(255, 255, 255, 0.35),
    0 4px 12px -3px rgba(124, 58, 237, 0.7);
}
.panel-brand { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); }
.panel-row .chip { margin-left: auto; height: 20px; padding: 0 7px; font-size: 9px; }

.panel-label {
  margin-top: 19px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.panel-balance {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.panel-bars { display: flex; align-items: flex-end; gap: 4px; height: 42px; margin-top: 17px; }
.panel-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.9), rgba(34, 211, 238, 0.28));
  box-shadow: 0 0 16px -6px rgba(139, 92, 246, 0.8);
  animation: barRise 1.2s var(--ease-out) both;
}
.panel-bars span:nth-child(1) { animation-delay: 0.06s; }
.panel-bars span:nth-child(2) { animation-delay: 0.12s; }
.panel-bars span:nth-child(3) { animation-delay: 0.18s; }
.panel-bars span:nth-child(4) { animation-delay: 0.24s; }
.panel-bars span:nth-child(5) { animation-delay: 0.3s; }
.panel-bars span:nth-child(6) { animation-delay: 0.36s; }
.panel-bars span:nth-child(7) { animation-delay: 0.42s; }

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9.5px;
  color: var(--faint);
}

.mini-panel { display: flex; align-items: center; gap: 12px; padding: 16px; }
.mini-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(150deg, rgba(251, 191, 36, 0.3), rgba(244, 114, 182, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  color: #fde68a;
  font-size: 20px;
}
.mini-panel strong { display: block; font-size: 12.5px; letter-spacing: -0.01em; }
.mini-panel span { display: block; margin-top: 2px; font-size: 10px; color: var(--faint); }

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 99px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stage-coin {
  position: absolute;
  right: 15%;
  top: 10%;
  width: 92px;
  height: 92px;
  transform: translateZ(95px);
  animation: coinFloat 5.5s ease-in-out infinite;
  isolation: isolate;
}
.stage-coin::before {
  content: "";
  position: absolute;
  inset: -38%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(251, 191, 36, 0.4),
    rgba(251, 191, 36, 0.14) 44%,
    transparent 70%
  );
  z-index: -1;
}
.stage-coin svg { width: 100%; height: 100%; filter: none; }

/* ------------------------------ 区块标题 ------------------------------ */

.eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 9px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 35px);
  letter-spacing: -0.035em;
}
.section-head p { margin: 7px 0 0; font-size: 12.5px; color: var(--faint); }

/* ------------------------------ 商品 ------------------------------ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 21px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  animation: cardIn 0.65s var(--ease-out) backwards;
  animation-delay: var(--d, 0s);
  will-change: transform;
}

.product-card:hover {
  box-shadow:
    0 32px 76px -26px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 40px -18px rgba(139, 92, 246, 0.55);
}

.product-visual {
  position: relative;
  height: 186px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 24%, rgba(139, 92, 246, 0.24), transparent 56%),
    radial-gradient(circle at 82% 84%, rgba(34, 211, 238, 0.16), transparent 52%),
    rgba(255, 255, 255, 0.015);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 6, 16, 0.5));
  pointer-events: none;
}

.product-orb {
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.38), rgba(139, 92, 246, 0.26) 36%, transparent 70%);
  filter: blur(2px);
  opacity: 0.7;
}

.product-emoji {
  position: relative;
  z-index: 1;
  font-size: 62px;
  line-height: 1;
  transform: translateZ(36px);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
  animation: floatY 6s ease-in-out infinite;
}

.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.tag-top { position: absolute; top: 14px; left: 14px; z-index: 2; }

.sales-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 20, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10px;
  color: var(--muted);
}

.product-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 18px 18px 0;
}
.product-body h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.product-body p {
  margin: 0;
  min-height: 42px;
  font-size: 12.5px;
  line-height: 1.66;
  color: var(--faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
}

.price { display: flex; align-items: baseline; gap: 5px; }
.price .coin-svg { align-self: center; }
.price b {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price small { font-size: 10px; color: var(--faint); }

.btn-buy {
  height: 39px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(255, 255, 255, 0.05));
  color: #fde68a;
  font-size: 12.5px;
  font-weight: 700;
}
.btn-buy:hover {
  background: linear-gradient(135deg, #fbbf24, #fde68a);
  color: #2a1500;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 30px -12px rgba(251, 191, 36, 0.85);
}

/* 空状态 */

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 66px;
  border-radius: 26px;
  text-align: center;
}

.glass-stack { position: relative; width: 130px; height: 130px; margin-bottom: 16px; }
.glass-stack .cube {
  position: absolute;
  inset: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 22px 44px -22px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.glass-stack .cube.c1 { transform: rotate(-14deg) translate(-16px, 6px); opacity: 0.45; animation: floatY 7s ease-in-out infinite; }
.glass-stack .cube.c2 { transform: rotate(10deg) translate(15px, 10px); opacity: 0.55; animation: floatY 8s ease-in-out infinite reverse; }
.glass-stack .cube.c3 { transform: rotate(4deg); animation: floatY 6s ease-in-out infinite; }
.glass-stack .spark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  color: #fde68a;
  text-shadow: 0 0 22px rgba(251, 191, 36, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
.empty-state h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.empty-state p { margin: 8px 0 0; max-width: 330px; font-size: 12.5px; line-height: 1.7; color: var(--faint); }
.empty-state .empty-actions { margin-top: 20px; display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }

/* ------------------------------ 订单中心 ------------------------------ */

.orders-summary { display: flex; gap: 8px; flex-wrap: wrap; }

.orders-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 21px;
  align-items: start;
}

.panel { padding: 23px; border-radius: 24px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-head h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }

.list { display: flex; flex-direction: column; gap: 9px; }

.order-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.032);
  transition: 0.22s ease;
  animation: cardIn 0.5s var(--ease-out) backwards;
  animation-delay: var(--d, 0s);
}
.order-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  transform: translateX(2px);
}

.order-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.26), rgba(34, 211, 238, 0.12));
  font-size: 22px;
  overflow: hidden;
}
.order-icon img { width: 100%; height: 100%; object-fit: cover; }

.order-main { flex: 1; min-width: 0; }
.order-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
}
.order-main span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--faint); }

.order-price {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fde68a;
  white-space: nowrap;
}

.tx-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.028);
  transition: 0.2s ease;
  animation: cardIn 0.5s var(--ease-out) backwards;
  animation-delay: var(--d, 0s);
}
.tx-item:hover { background: rgba(255, 255, 255, 0.05); }

.tx-type {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tx-type.plus {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
}
.tx-type.minus {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.26);
}

.tx-main { flex: 1; min-width: 0; }
.tx-main strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tx-main span { display: block; margin-top: 2px; font-size: 10px; color: var(--faint); }
.tx-amount { font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.tx-amount.plus { color: #6ee7b7; }
.tx-amount.minus { color: #fda4af; }

.panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 44px 18px;
  text-align: center;
}
.panel-empty .pe-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
}
.panel-empty strong { font-size: 13.5px; }
.panel-empty span { font-size: 11.5px; line-height: 1.7; color: var(--faint); max-width: 240px; }
.panel-empty .btn { margin-top: 8px; }

/* ------------------------------ 页脚 ------------------------------ */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 66px;
  padding: 22px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  color: var(--faint);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-orb { width: 24px; height: 24px; animation: none; }
.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
  transition: 0.2s;
}
.footer-links a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); }

/* ------------------------------ 登录 / 购买弹窗 ------------------------------ */

.login-panel { padding: 32px 30px 28px; }
.login-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; margin-bottom: 24px; }
.login-hero .orb { margin-bottom: 13px; }
.login-hero h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.login-hero p { margin: 0; font-size: 12px; color: var(--faint); }

.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-hint { margin-top: 18px; text-align: center; font-size: 11px; color: var(--faint); }
.login-hint strong { color: var(--muted); font-weight: 600; }

.purchase-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}
.purchase-visual {
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.12));
  font-size: 29px;
  overflow: hidden;
}
.purchase-visual img { width: 100%; height: 100%; object-fit: cover; }
.purchase-info { flex: 1; min-width: 0; }
.purchase-info strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.purchase-info span { display: block; margin-top: 4px; font-size: 11px; color: var(--faint); }

.purchase-lines { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.p-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.p-line .num { color: var(--ink); font-weight: 600; }
.p-line.total {
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.p-line.total .num { color: #fde68a; font-size: 17px; font-weight: 800; }

.warn-box {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid rgba(244, 63, 94, 0.28);
  background: rgba(244, 63, 94, 0.1);
  color: #fecdd3;
  font-size: 12px;
  line-height: 1.6;
}
.warn-box .w-ico { flex: none; color: #fb7185; margin-top: 1px; }

/* 骨架 */

.skeleton-card {
  position: relative;
  height: 372px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}
.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.075) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 1.7s ease-in-out infinite;
}

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

@media (max-width: 1120px) {
  .stage-wrap { height: 470px; }
  .panel-main { width: 282px; }
  .panel-mini { width: 222px; }
  .hero { gap: 20px; }
}

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding: 46px 0 36px; min-height: 0; gap: 8px; }
  .hero-sub { max-width: 640px; }
  .stage-wrap { width: 100%; max-width: 540px; height: 460px; margin: 0 auto; }
  .orders-grid { grid-template-columns: 1fr; }
  .hero-meta { margin-top: 30px; }
}

@media (max-width: 780px) {
  .shop { padding: 14px 16px 0; }
  .topbar { flex-wrap: wrap; padding: 11px 13px; gap: 10px; }
  .seg { order: 3; width: 100%; }
  .seg-btn { flex: 1; }
  .hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .stage-wrap { height: 420px; max-width: 480px; }
  .panel-main { width: 258px; top: 15%; }
  .panel-mini { width: 208px; }
  .panel-balance { font-size: 30px; }
  .panel-bars { height: 36px; }
  .section-head h2 { font-size: 27px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .product-visual { height: 168px; }
  .user-name { display: none; }
}

@media (max-width: 560px) {
  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 46px); }
  .hero-sub { font-size: 13.5px; line-height: 1.75; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .hero-meta { gap: 13px; }
  .meta-item b { font-size: 17px; }
  .stage-wrap { height: 350px; max-width: 380px; }
  .panel-main { width: 232px; top: 13%; }
  .panel-mini { width: 186px; bottom: 8%; }
  .panel-chip { display: none; }
  .stage-coin { width: 66px; right: 7%; top: 5%; }
  .panel-bars { height: 30px; }
  .panel-foot { display: none; }
  .wallet-panel { padding: 16px; }
  .coin-chip { padding: 0 10px 0 8px; height: 36px; }
  .coin-chip small { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { height: 200px; }
  .product-emoji { font-size: 70px; }
  .panel { padding: 18px; }
  .footer-links .faint { display: none; }
  .login-panel { padding: 28px 20px 24px; }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
  .stage-wrap { height: 310px; max-width: 320px; }
  .panel-main { width: 205px; }
  .panel-mini { width: 165px; }
  .panel-balance { font-size: 25px; }
  .stage-coin { display: none; }
  .hero-meta { flex-wrap: wrap; row-gap: 10px; }
  .meta-divider { display: none; }
  .hero-meta { column-gap: 24px; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes barRise {
  from { height: 0; opacity: 0; }
}

@keyframes chipShine {
  0%, 62% { left: -120%; }
  100% { left: 140%; }
}

@keyframes coinFloat {
  0%, 100% { transform: translateZ(95px) translateY(0) rotate(-4deg); }
  50% { transform: translateZ(95px) translateY(-14px) rotate(4deg); }
}
