:root {
  --bg: #0f172a;
  --bg-soft: #131d33;
  --surface: #ffffff;
  --surface-alt: #f4f6fb;
  --ink: #101828;
  --ink-soft: #475467;
  --ink-faint: #98a2b3;
  --line: #e4e7ec;
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --brand-soft: #e8efff;
  --accent: #0f9d6e;
  --warning: #b45309;
  --danger: #dc2626;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  overflow-wrap: anywhere;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(circle at 12% 8%, #1e3a8a 0%, transparent 42%),
    radial-gradient(circle at 88% 0%, #0f766e 0%, transparent 36%),
    linear-gradient(160deg, #0b1220 0%, #111c33 48%, #0b1220 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  min-width: 0;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: normal;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.order-activity {
  position: fixed;
  z-index: 40;
  top: 24px;
  right: 20px;
  width: min(310px, calc(100vw - 32px));
  max-height: min(60vh, 520px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(15, 23, 42, .92);
  color: #f8fafc;
  box-shadow: 0 18px 50px rgba(2, 6, 23, .3);
  backdrop-filter: blur(16px);
}

.order-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}

.order-activity-live {
  color: #6ee7b7;
  font-size: 11px;
}

.order-activity-live::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  content: '';
  vertical-align: 1px;
}

.order-activity-list {
  max-height: calc(min(60vh, 520px) - 46px);
  overflow-y: auto;
}

.order-activity-item {
  display: flex;
  gap: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.order-activity-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #60a5fa;
}

.order-activity-item p {
  margin: 0;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.55;
}

.order-activity-item time,
.order-activity-empty {
  display: block;
  margin-top: 4px;
  color: #aab6ca;
  font-size: 11px;
}

.order-activity-popup {
  position: fixed;
  z-index: 50;
  top: 24px;
  right: 20px;
  width: min(240px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  animation: order-activity-in .22s ease-out both;
  transition: opacity .2s ease, transform .2s ease;
}

.order-activity-popup strong {
  color: var(--brand-deep);
  font-size: 12px;
}

.order-activity-popup p {
  margin: 3px 0 2px;
  font-size: 12px;
  line-height: 1.5;
}

.order-activity-popup time {
  color: var(--ink-soft);
  font-size: 11px;
}

.order-activity-popup.is-leaving {
  opacity: 0;
  transform: translateX(14px);
}

@keyframes order-activity-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

.order-activity-empty {
  padding: 18px 16px;
  margin: 0;
}

@media (max-width: 700px) {
  .order-activity {
    top: auto;
    right: 10px;
    bottom: 76px;
    width: min(270px, calc(100vw - 20px));
    max-height: 34vh;
    border-radius: 13px;
  }

  .order-activity-list {
    max-height: calc(34vh - 46px);
  }

  .order-activity-popup {
    right: 10px;
    top: 10px;
    width: min(230px, calc(100vw - 20px));
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f8fafc;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0b1220;
  background: linear-gradient(135deg, #7dd3fc, #34d399);
  box-shadow: var(--shadow-md);
}

.brand-text strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.brand-text span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  color: #e2e8f0;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.35);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.ghost-link:hover {
  border-color: rgba(147, 197, 253, 0.6);
  background: rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel-head {
  padding: 30px 32px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.panel-head h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}

.panel-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.panel-body {
  padding: 28px 32px 32px;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: var(--surface-alt);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 24px;
}

.tab {
  border: 0;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tab.active {
  background: var(--surface);
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.field small {
  font-size: 12px;
  color: var(--ink-faint);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.input::placeholder {
  color: var(--ink-faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2f6ff0, #1e40af);
}

.btn-soft {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-color: #d4e2ff;
}

.btn-soft:hover {
  background: #dbe7ff;
}

.btn-ghost {
  color: var(--ink-soft);
  background: var(--surface-alt);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: #eaeef7;
}

.btn-danger {
  color: #fff;
  background: #dc2626;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.24);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.hint {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #d8dee9;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.empty {
  margin-top: 26px;
  padding: 40px 24px;
  border-radius: 14px;
  border: 1px dashed #d8dee9;
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
  background: #fbfcfe;
}

.cards {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.ship-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, #fcfdff);
  box-shadow: var(--shadow-sm);
}

.ship-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.order-no {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-pending {
  color: var(--warning);
  background: #fff6e6;
}

.badge-shipped {
  color: #0b7fbd;
  background: #e8f4ff;
}

.badge-done {
  color: var(--accent);
  background: #e7f8f0;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 12px 18px;
}

.meta-item dt {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

.meta-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-word;
}

.meta-item dd.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.note-line {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.timeline {
  display: flex;
  gap: 0;
  margin-top: 18px;
}

.timeline-step {
  flex: 1;
  position: relative;
  padding-top: 18px;
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e4e7ec;
  z-index: 2;
}

.timeline-step::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--line);
  z-index: 1;
}

.timeline-step:last-child::after {
  display: none;
}

.timeline-step.on {
  color: var(--brand-deep);
  font-weight: 600;
}

.timeline-step.on::before {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.notice {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 13px;
  line-height: 1.65;
}

.code-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  font-size: 12px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.code-line code {
  flex: 1 1 160px;
  min-width: 0;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #344054;
}

.toast-root {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 60;
  display: grid;
  gap: 10px;
  justify-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100% - 32px);
}

.toast {
  min-width: 0;
  max-width: 100%;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.92);
  color: #f8fafc;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: rgba(6, 95, 70, 0.96);
}

.toast-error {
  background: rgba(153, 27, 27, 0.96);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.section-title span {
  font-size: 12px;
  color: var(--ink-faint);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

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

.card-box h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.card-box .sub {
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--ink-faint);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}

thead th {
  text-align: left;
  padding: 12px 14px;
  background: #f8fafc;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f2f6;
  color: var(--ink);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fbfcff;
}

td.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  background: var(--surface);
  color: var(--ink);
}

.link-cell {
  max-width: 320px;
}

.link-cell code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  color: var(--ink-soft);
}

.config-card {
  margin-top: 20px;
}

.config-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.config-row .field {
  margin: 0;
  min-width: min(180px, 100%);
  max-width: 100%;
}

.lock-screen {
  max-width: 420px;
  margin: 60px auto 0;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.lock-screen h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.lock-screen p {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.lock-screen .field {
  text-align: left;
}

.order-view {
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .admin-grid,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 28px);
    padding-top: 22px;
  }

  .panel-head,
  .panel-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.photo-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.photo-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-item {
  position: relative;
  margin: 0;
  width: 104px;
  height: 104px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.photo-remove:hover {
  background: var(--danger);
}

.upload-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px dashed #cfd8e6;
  border-radius: 12px;
  background: #fbfcfe;
  margin-top: 6px;
}

.upload-zone small {
  color: var(--ink-faint);
  font-size: 12px;
}

.accept-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f0f7ff;
  border: 1px solid #cfe2ff;
}

.accept-text {
  font-size: 13px;
  color: #1e40af;
  line-height: 1.65;
  margin-bottom: 12px;
}

.accept-done {
  font-size: 13px;
  color: #0b7fbd;
  font-weight: 600;
}

.accept-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.accept-queue {
  margin-top: 20px;
}

.accept-queue .ship-card {
  border-color: #cfe2ff;
}

.receipt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.inline-hint {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.6;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 15, 28, 0.62);
  backdrop-filter: blur(3px);
}

.dialog[hidden] {
  display: none;
}

.dialog-card {
  width: min(460px, 100%);
  max-height: calc(100vh - 60px);
  overflow: auto;
  padding: 22px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 18px;
}

.dialog-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 16px;
  cursor: pointer;
}

.dialog-close:hover {
  background: #eaeef7;
}

.dialog-sub {
  margin: 10px 0 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.dialog-actions .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.upload-zone input[type="file"] {
  display: none;
}

#shipPreview .photo-item {
  width: 88px;
  height: 88px;
}

.input-lg {
  padding: 15px 16px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-lg {
  padding: 15px 20px;
  font-size: 15px;
  border-radius: 14px;
}

.select.input-lg {
  height: 52px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.tabs-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-scroll::-webkit-scrollbar {
  display: none;
}

.tabs-scroll .tab {
  white-space: nowrap;
  flex: 0 0 auto;
}

.order-cards {
  display: grid;
  gap: 14px;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.photo-grid-sm .photo-item {
  width: 72px;
  height: 72px;
}

.photo-grid-sm .photo-item img {
  cursor: zoom-in;
}

.admin-page .panel-head h1 {
  font-size: clamp(20px, 4vw, 27px);
}

@media (max-width: 640px) {
  .admin-page .shell {
    width: calc(100% - 20px);
    padding-top: 14px;
    padding-bottom: 32px;
  }

  .admin-page .panel {
    border-radius: 14px;
  }

  .admin-page .panel-head {
    padding: 18px 16px 14px;
  }

  .admin-page .panel-head p {
    font-size: 13px;
  }

  .admin-page .panel-body {
    padding: 16px 14px 22px;
  }

  .admin-page .card-box {
    padding: 16px;
    border-radius: 12px;
  }

  .admin-page .tabs {
    width: 100%;
    margin-bottom: 16px;
  }

  .admin-page .tabs-scroll .tab {
    padding: 9px 14px;
    font-size: 13px;
  }

  .admin-page .topbar {
    margin-bottom: 16px;
    gap: 12px;
  }

  .admin-page .ghost-link {
    padding: 8px 14px;
    font-size: 12px;
  }

  .admin-page .field {
    margin-bottom: 14px;
  }

  .admin-page .input,
  .admin-page .select,
  .admin-page .textarea {
    font-size: 16px;
  }

  .admin-page .grid-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .admin-page .upload-zone {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .admin-page .upload-zone .btn {
    width: 100%;
  }

  .admin-page .photo-grid-sm .photo-item {
    width: 64px;
    height: 64px;
  }

  .admin-page .code-line {
    flex-wrap: wrap;
  }

  .admin-page .card-foot .btn {
    flex: 1 1 auto;
  }

  .admin-page .dialog {
    padding: 0;
    align-items: end;
  }

  .admin-page .dialog-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .admin-page .dialog-actions {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    padding-top: 10px;
  }
}

.kind-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kind-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.kind-option strong {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}

.kind-option span {
  font-size: 12px;
  color: var(--ink-faint);
}

.kind-option:hover {
  border-color: #c7d4ea;
}

.kind-option.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.kind-option.active strong {
  color: var(--brand-deep);
}

.kind-option.active span {
  color: #3f6ecb;
}

.kind-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 6px;
}

.kind-tag-physical {
  color: #475467;
  background: #eef1f6;
}

.kind-tag-card {
  color: #7c3aed;
  background: #f2ebff;
}

.card-secret {
  border: 1px solid #e3d8ff;
  border-radius: 12px;
  background: #faf7ff;
  padding: 14px 16px;
}

.card-secret-locked {
  border-style: dashed;
  border-color: var(--line);
  background: #fbfcfe;
}

.card-secret-title {
  font-size: 12px;
  font-weight: 600;
  color: #6d28d9;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.card-secret-locked .card-secret-title {
  color: var(--ink-faint);
}

.card-secret-body {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #3b2f63;
  word-break: break-all;
  white-space: pre-wrap;
  user-select: all;
}

.card-secret-body code {
  font-family: inherit;
  font-size: inherit;
  display: block;
}

.card-secret .btn {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .kind-switch {
    gap: 8px;
  }

  .kind-option {
    padding: 11px 12px;
  }
}

/* ---------- 液态玻璃弹层 ---------- */
body.lg-locked {
  overflow: hidden;
}

.lg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(30, 58, 138, 0.42), rgba(4, 9, 18, 0.62));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  animation: lgFade 0.22s ease both;
}

.lg-card {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px 24px 20px;
  border-radius: 26px;
  color: #eef3ff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.16));
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 30px 70px rgba(2, 6, 16, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  animation: lgPop 0.28s cubic-bezier(0.18, 0.9, 0.22, 1.12) both;
}

.lg-card::before {
  content: "";
  position: absolute;
  inset: -45% -12% auto -12%;
  height: 62%;
  background: radial-gradient(62% 100% at 32% 0%, rgba(255, 255, 255, 0.46), transparent 72%);
  pointer-events: none;
}

.lg-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 60%;
  background: radial-gradient(58% 100% at 68% 100%, rgba(96, 165, 250, 0.34), transparent 74%);
  pointer-events: none;
}

.lg-content {
  position: relative;
  z-index: 1;
}

.lg-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #f7faff;
}

.lg-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: rgba(238, 243, 255, 0.82);
}

.lg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.lg-actions .btn {
  min-width: 92px;
}

.lg-actions .btn-ghost {
  color: #eef3ff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.lg-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lg-actions .btn-primary {
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.lg-news {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(238, 243, 255, 0.86);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lg-lightbox {
  width: min(760px, 100%);
  padding: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0.12));
}

.lg-lightbox img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(4, 9, 18, 0.35);
}

.lg-lightbox .lg-actions {
  margin-top: 14px;
}

.lg-leaving {
  animation: lgOut 0.18s ease both;
}

@keyframes lgFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lgPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lgOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

.toast {
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #f4f7ff;
  box-shadow: 0 16px 40px rgba(2, 6, 16, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.toast-success {
  background: rgba(16, 185, 129, 0.26);
  border-color: rgba(167, 243, 208, 0.45);
}

.toast-error {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(254, 202, 202, 0.42);
}

.photo-item[data-photo-open] {
  padding: 0;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.photo-item[data-photo-open]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .lg-backdrop {
    padding: 0;
    align-items: end;
  }

  .lg-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 26px 26px 0 0;
    padding: 24px 18px calc(20px + env(safe-area-inset-bottom));
  }

  .lg-actions {
    position: sticky;
    bottom: 0;
    padding-top: 8px;
  }

  .lg-actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-backdrop,
  .lg-card,
  .lg-leaving {
    animation: none;
  }
}

/* ---------- 商城 ---------- */
.cart-link {
  position: relative;
}

.cart-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #34d399, #0f9d6e);
  color: #04231a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.chip:hover {
  border-color: #c7d4ea;
}

.chip.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-deep);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #eef2f8, #e3ebf7);
  overflow: hidden;
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-cover .kind-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
}

.product-cover-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}

.product-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.45;
}

.product-summary {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #c2410c;
  font-variant-numeric: tabular-nums;
}

.product-stock {
  font-size: 12px;
  color: var(--ink-faint);
}

.product-stock.off {
  color: var(--danger);
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-actions .btn {
  flex: 1 1 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
  cursor: zoom-in;
}

.gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-empty {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px dashed #d8dee9;
  background: #fbfcfe;
  color: var(--ink-faint);
  font-size: 14px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.product-tags .kind-tag {
  margin: 0;
}

.inline-hint {
  font-size: 12px;
  color: var(--ink-faint);
}

.product-detail-title {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.product-detail-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.product-detail-price {
  font-size: 28px;
  font-weight: 750;
  color: #c2410c;
  font-variant-numeric: tabular-nums;
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-alt);
  font-size: 13px;
  color: var(--ink-soft);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stepper {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.stepper:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.qty-control span,
.cart-qty {
  min-width: 34px;
  text-align: center;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.product-detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.product-detail-body {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.product-detail-body h2 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.product-detail-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  word-break: break-word;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fcfdff);
}

.cart-thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f4f9;
  display: grid;
  place-items: center;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-main strong {
  font-size: 14px;
  color: var(--ink);
  font-weight: 650;
  word-break: break-word;
}

.cart-main span {
  font-size: 12px;
  color: var(--ink-faint);
}

.cart-kind {
  color: #7c3aed !important;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-remove {
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 4px;
}

.cart-remove:hover {
  color: var(--danger);
}

.cart-subtotal {
  font-size: 15px;
  font-weight: 700;
  color: #c2410c;
  font-variant-numeric: tabular-nums;
  min-width: 72px;
  text-align: right;
}

.cart-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.cart-summary strong {
  font-size: 24px;
  color: #c2410c;
  font-variant-numeric: tabular-nums;
}

.order-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.order-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-alt);
}

.order-items img,
.order-thumb-empty {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
  background: #e6ebf3;
}

.order-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.order-item-main strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

.order-item-main span {
  font-size: 12px;
  color: var(--ink-faint);
}

.order-item-total {
  margin-left: auto;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.shop-order-card .meta-grid {
  margin-top: 14px;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pay-box {
  margin-top: 18px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #dbe7ff;
  background: linear-gradient(180deg, #f8faff, #eef3ff);
}

.pay-box h2 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink);
}

.pay-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-chip {
  flex: 1 1 120px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.pay-chip:hover {
  border-color: #c7d4ea;
}

.pay-chip.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.merchant-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.merchant-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.merchant-stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.merchant-stat dt {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--ink-faint);
}

.merchant-stat dd {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.merchant-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .product-cover {
    aspect-ratio: 1 / 1;
  }

  .cart-row {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      "thumb main"
      "controls controls"
      "subtotal subtotal";
    gap: 10px;
  }

  .cart-thumb { grid-area: thumb; width: 56px; height: 56px; }
  .cart-main { grid-area: main; }
  .cart-controls { grid-area: controls; justify-content: space-between; }
  .cart-subtotal { grid-area: subtotal; text-align: right; }
}

/* ---------- 商城 · 白色主题 ---------- */
.shop-page {
  background: #ffffff;
  background-image:
    radial-gradient(90% 340px at 50% -140px, rgba(37, 99, 235, 0.09), transparent 70%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 260px);
  background-repeat: no-repeat;
}

.shop-page .shell {
  width: min(1080px, calc(100% - 40px));
  padding: 0 0 72px;
}

.shop-page .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-bottom: 0;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid #eff1f5;
}

.shop-page .brand {
  color: var(--ink);
}

.shop-page .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
  color: #ffffff;
  background: linear-gradient(140deg, #1f2937, #0b1220);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.shop-page .brand-text strong {
  font-size: 16px;
  font-weight: 650;
  color: #0b1220;
  letter-spacing: -0.01em;
}

.shop-page .brand-text span {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #98a2b3;
}

.shop-page .ghost-link {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #e7eaf1;
  background: #ffffff;
  color: #475467;
  font-size: 13px;
  font-weight: 500;
}

.shop-page .ghost-link:hover {
  border-color: #0b1220;
  color: #0b1220;
  background: #ffffff;
  transform: none;
}

.shop-page .cart-badge {
  background: #0b1220;
  color: #ffffff;
  font-weight: 650;
}

.shop-page .panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.shop-page .panel-head {
  position: relative;
  padding: 44px 0 26px;
  border-bottom: 0;
  background: transparent;
}

.shop-page .panel-head h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #0b1220;
}

.shop-page .panel-head p {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.7;
  color: #667085;
}

.shop-page .panel-body {
  padding: 0 0 8px;
}

.shop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #e7eaf1;
  background: #ffffff;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.shop-hero-meta span {
  padding: 6px 12px;
  border-radius: 8px;
  background: #f5f7fb;
  color: #475467;
  font-size: 12px;
  font-weight: 500;
}

.shop-page .shop-filters {
  gap: 6px;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 12px;
  background: #f5f7fb;
  width: fit-content;
}

.shop-page .chip {
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #667085;
  font-size: 13px;
  font-weight: 550;
}

.shop-page .chip:hover {
  color: #0b1220;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.7);
}

.shop-page .chip.active {
  background: #ffffff;
  border-color: #eef0f4;
  color: #0b1220;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.shop-page .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 18px;
}

.shop-page .product-card {
  border: 1px solid #eff1f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

.shop-page .product-card:hover {
  transform: translateY(-4px);
  border-color: #e2e6ee;
  box-shadow: 0 18px 40px -18px rgba(16, 24, 40, 0.22);
}

.shop-page .product-cover {
  aspect-ratio: 1 / 1;
  background: linear-gradient(150deg, #f6f8fc, #eef2f9);
}

.shop-page .product-cover .kind-tag {
  top: 12px;
  left: 12px;
  backdrop-filter: blur(8px);
}

.shop-page .kind-tag {
  padding: 4px 9px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.shop-page .kind-tag-physical {
  color: #475467;
  background: rgba(255, 255, 255, 0.86);
}

.shop-page .kind-tag-card {
  color: #6d28d9;
  background: rgba(244, 238, 255, 0.9);
}

.shop-page .product-body {
  padding: 16px 18px 18px;
  gap: 8px;
}

.shop-page .product-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0b1220;
}

.shop-page .product-summary {
  color: #98a2b3;
}

.shop-page .product-price {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1220;
}

.shop-page .product-stock {
  color: #98a2b3;
  font-size: 11.5px;
}

.shop-page .product-actions .btn {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
}

.shop-page .panel-body .btn-primary {
  background: #0b1220;
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(11, 18, 32, 0.5);
}

.shop-page .panel-body .btn-primary:hover {
  background: #000000;
}

.shop-page .panel-body .btn-primary:disabled {
  background: #e5e8ef;
  color: #98a2b3;
  box-shadow: none;
  cursor: not-allowed;
}

.shop-page .panel-body .btn-ghost {
  background: #ffffff;
  border-color: #e7eaf1;
  color: #344054;
}

.shop-page .panel-body .btn-ghost:hover {
  background: #f8fafc;
  border-color: #d0d5dd;
}

.shop-page .product-detail {
  gap: 36px;
  padding-top: 26px;
}

.shop-page .gallery-item {
  border-color: #eff1f5;
  border-radius: 16px;
  background: #f6f8fc;
}

.shop-page .gallery-empty {
  border-color: #e7eaf1;
  background: #fafbfd;
  border-radius: 16px;
  color: #98a2b3;
}

.shop-page .product-info {
  gap: 14px;
}

.shop-page .product-detail-title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.shop-page .product-detail-summary {
  color: #667085;
}

.shop-page .product-detail-price {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: #0b1220;
}

.shop-page .qty-row {
  padding: 12px 16px;
  border-radius: 12px;
  background: #f5f7fb;
  color: #667085;
}

.shop-page .stepper {
  border-color: #e7eaf1;
  background: #ffffff;
  border-radius: 8px;
  color: #0b1220;
}

.shop-page .stepper:hover {
  border-color: #0b1220;
  color: #0b1220;
}

.shop-page .product-detail-actions .btn {
  border-radius: 12px;
}

.shop-page .product-detail-actions .btn-primary {
  box-shadow: 0 12px 26px -12px rgba(11, 18, 32, 0.55);
}

.shop-page .product-detail-body {
  border-top-color: #eff1f5;
}

.shop-page .product-detail-body h2 {
  color: #98a2b3;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-page .product-detail-body p {
  color: #667085;
}

.shop-page .cart-list {
  gap: 10px;
}

.shop-page .cart-row {
  padding: 16px;
  border-color: #eff1f5;
  border-radius: 14px;
  background: #ffffff;
}

.shop-page .cart-thumb {
  border-radius: 11px;
  background: #f5f7fb;
}

.shop-page .cart-main strong {
  font-weight: 600;
  color: #0b1220;
}

.shop-page .cart-main span {
  color: #98a2b3;
}

.shop-page .cart-kind {
  color: #6d28d9 !important;
}

.shop-page .cart-remove {
  color: #98a2b3;
}

.shop-page .cart-remove:hover {
  color: #b42318;
}

.shop-page .cart-subtotal {
  color: #0b1220;
  font-weight: 650;
}

.shop-page .cart-summary {
  margin-top: 20px;
  padding: 18px 2px 0;
  border-top-color: #eff1f5;
}

.shop-page .cart-summary strong {
  font-size: 26px;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.shop-page .card-box {
  border: 1px solid #eff1f5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.shop-page .card-box h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #0b1220;
}

.shop-page .card-box .sub {
  color: #98a2b3;
}

.shop-page .input,
.shop-page .select,
.shop-page .textarea {
  border-color: #e7eaf1;
  background: #ffffff;
  border-radius: 10px;
}

.shop-page .input:focus,
.shop-page .select:focus,
.shop-page .textarea:focus {
  border-color: #0b1220;
  box-shadow: 0 0 0 3px rgba(11, 18, 32, 0.08);
}

.shop-page .field label {
  color: #475467;
  font-size: 12.5px;
  font-weight: 550;
}

.shop-page .hint {
  border-color: #e7eaf1;
  border-style: solid;
  background: #f9fafc;
  color: #667085;
}

.shop-page .order-items li {
  background: #f8fafc;
  border-radius: 12px;
}

.shop-page .order-items img,
.shop-page .order-thumb-empty {
  background: #eef1f6;
}

.shop-page .order-item-main strong {
  color: #0b1220;
}

.shop-page .order-item-main span {
  color: #98a2b3;
}

.shop-page .order-item-total {
  color: #0b1220;
}

.shop-page .ship-card {
  border-color: #eff1f5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.shop-page .ship-card-head {
  margin-bottom: 16px;
}

.shop-page .order-no {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #0b1220;
}

.shop-page .meta-item dt {
  color: #98a2b3;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-page .meta-item dd {
  color: #344054;
  font-weight: 500;
}

.shop-page .note-line {
  border-radius: 10px;
  background: #f9fafc;
  color: #667085;
}

.shop-page .pay-box {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #eff1f5;
  border-radius: 16px;
  background: #fafbfd;
}

.shop-page .pay-box h2 {
  font-size: 14px;
  font-weight: 650;
  color: #0b1220;
}

.shop-page .pay-chip {
  border-color: #e7eaf1;
  border-radius: 10px;
  background: #ffffff;
  color: #475467;
  font-weight: 550;
}

.shop-page .pay-chip:hover {
  border-color: #d0d5dd;
}

.shop-page .pay-chip.active {
  border-color: #0b1220;
  background: #0b1220;
  color: #ffffff;
  box-shadow: none;
}

.shop-page .order-actions .btn {
  border-radius: 10px;
}

.shop-page .merchant-stat {
  border-color: #eff1f5;
  background: #fafbfd;
  border-radius: 14px;
}

.shop-page .merchant-stat dt {
  color: #98a2b3;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-page .merchant-stat dd {
  font-size: 24px;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.shop-page .merchant-note {
  border-color: #f2e3bd;
  background: #fffbf0;
  color: #8a6100;
}

.shop-page .empty {
  margin-top: 22px;
  padding: 56px 24px;
  border-color: #e7eaf1;
  border-radius: 16px;
  background: #fafbfd;
  color: #98a2b3;
}

.shop-page .section-title span,
.shop-page .inline-hint {
  color: #98a2b3;
}

@media (max-width: 640px) {
  .shop-page .shell {
    width: calc(100% - 28px);
    padding-bottom: 48px;
  }

  .shop-page .topbar {
    padding: 12px 0;
  }

  .shop-page .topbar-actions {
    width: auto;
    justify-content: flex-end;
  }

  .shop-page .panel-head {
    padding: 30px 0 20px;
  }

  .shop-page .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 12px;
  }

  .shop-page .product-body {
    padding: 12px 13px 14px;
  }
}

.shop-page a {
  color: #0b1220;
}

.shop-page a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-page .brand {
  text-decoration: none;
}

.shop-page .brand:hover,
.shop-page .ghost-link:hover,
.shop-page .btn:hover,
.shop-page .chip:hover,
.shop-page .pay-chip:hover {
  text-decoration: none;
}

.shop-page .card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eff1f5;
}

.shop-page .card-foot .btn {
  border-radius: 10px;
}

.shop-page .product-cover img {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.shop-page .product-card:hover .product-cover img {
  transform: scale(1.03);
}

/* ---------- 商城 / 接单端 · 液态玻璃 ---------- */
.shop-page {
  background-color: #eaf0fb;
  background-image:
    radial-gradient(62% 46% at 6% 0%, rgba(99, 102, 241, 0.30), transparent 64%),
    radial-gradient(56% 44% at 94% 4%, rgba(56, 189, 248, 0.32), transparent 62%),
    radial-gradient(48% 42% at 84% 72%, rgba(16, 185, 129, 0.24), transparent 64%),
    radial-gradient(54% 44% at 4% 82%, rgba(251, 146, 60, 0.20), transparent 64%),
    linear-gradient(180deg, #f8faff 0%, #edf2fb 58%, #e7effa 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.shop-page .shell {
  width: min(1080px, calc(100% - 40px));
  padding: 0 0 76px;
}

.shop-page .topbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 18px 38px -24px rgba(31, 41, 55, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}

.shop-page .brand {
  color: #0b1220;
}

.shop-page .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 13px;
  color: #ffffff;
  background: linear-gradient(150deg, #334155, #0b1220);
  box-shadow:
    0 8px 18px -8px rgba(11, 18, 32, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.shop-page .brand-text strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #0b1220;
}

.shop-page .brand-text span {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #8b95a5;
}

.shop-page .ghost-link {
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.38));
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  color: #334155;
  font-weight: 550;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.shop-page .ghost-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52));
  color: #0b1220;
  box-shadow:
    0 12px 24px -16px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.shop-page .cart-badge {
  background: linear-gradient(150deg, #1f2937, #0b1220);
  color: #ffffff;
  font-weight: 650;
  box-shadow: 0 6px 14px -8px rgba(11, 18, 32, 0.65);
}

.shop-page .panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.shop-page .panel-head {
  position: relative;
  margin: 0;
  padding: 34px 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.40) 52%, rgba(255, 255, 255, 0.62));
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  box-shadow:
    0 26px 54px -30px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.shop-page .panel-head::before {
  content: "";
  position: absolute;
  inset: -60% -14% auto -14%;
  height: 78%;
  background: radial-gradient(58% 100% at 26% 8%, rgba(255, 255, 255, 0.72), transparent 72%);
  pointer-events: none;
}

.shop-page .panel-head::after {
  content: "";
  position: absolute;
  inset: auto -18% -62% -18%;
  height: 70%;
  background: radial-gradient(52% 100% at 74% 100%, rgba(99, 102, 241, 0.18), transparent 74%);
  pointer-events: none;
}

.shop-page .panel-head > * {
  position: relative;
  z-index: 1;
}

.shop-page .panel-head h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #0b1220;
}

.shop-page .panel-head p {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.72;
  color: #55607a;
}

.shop-page .panel-body {
  padding: 22px 0 0;
}

.shop-page .shop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46));
  -webkit-backdrop-filter: blur(10px) saturate(170%);
  backdrop-filter: blur(10px) saturate(170%);
  color: #5b6579;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.shop-page .shop-hero-meta span {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(10px) saturate(170%);
  backdrop-filter: blur(10px) saturate(170%);
  color: #46536b;
  font-size: 11.5px;
  font-weight: 550;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .shop-filters {
  gap: 4px;
  margin-bottom: 20px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.34));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  width: fit-content;
  box-shadow:
    0 14px 28px -22px rgba(31, 41, 55, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .chip {
  padding: 8px 17px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #5b6579;
  font-size: 13px;
  font-weight: 550;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.shop-page .chip:hover {
  color: #0b1220;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.55);
}

.shop-page .chip.active {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
  border-color: rgba(255, 255, 255, 0.9);
  color: #0b1220;
  box-shadow:
    0 8px 18px -12px rgba(31, 41, 55, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.shop-page .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.shop-page .product-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42) 58%, rgba(255, 255, 255, 0.6));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 22px 44px -30px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}

.shop-page .product-card::before {
  content: "";
  position: absolute;
  inset: -40% -18% auto -18%;
  height: 62%;
  background: radial-gradient(56% 100% at 32% 0%, rgba(255, 255, 255, 0.62), transparent 74%);
  pointer-events: none;
}

.shop-page .product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 34px 60px -32px rgba(31, 41, 55, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.shop-page .product-cover {
  position: relative;
  aspect-ratio: 1.2 / 1;
  margin: 8px 8px 0;
  border-radius: 13px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(241, 245, 253, 0.95), rgba(226, 234, 247, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .product-cover img {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.shop-page .product-card:hover .product-cover img {
  transform: scale(1.04);
}

.shop-page .product-cover .kind-tag {
  top: 10px;
  left: 10px;
}

.shop-page .kind-tag {
  padding: 4px 9px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px) saturate(170%);
  backdrop-filter: blur(10px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .kind-tag-physical {
  color: #46536b;
  background: rgba(255, 255, 255, 0.72);
}

.shop-page .kind-tag-card {
  color: #6d28d9;
  background: rgba(246, 240, 255, 0.78);
}

.shop-page .product-body {
  position: relative;
  z-index: 1;
  padding: 10px 12px 12px;
  gap: 5px;
}

.shop-page .product-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0b1220;
}

.shop-page .product-summary {
  color: #7b8497;
}

.shop-page .product-price {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0b1220;
}

.shop-page .product-stock {
  color: #8b95a5;
  font-size: 11.5px;
}

.shop-page .product-actions .btn {
  border-radius: 9px;
  font-size: 12px;
  font-weight: 550;
  padding: 7px 10px;
}

.shop-page .btn-primary {
  color: #ffffff;
  background: linear-gradient(150deg, #26334a, #0b1220 58%, #1a2437);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 14px 28px -16px rgba(11, 18, 32, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.shop-page .btn-primary:hover {
  background: linear-gradient(150deg, #33435e, #0f1729 58%, #22304a);
  box-shadow:
    0 18px 34px -16px rgba(11, 18, 32, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.shop-page .btn-primary:disabled {
  background: linear-gradient(150deg, rgba(226, 232, 240, 0.9), rgba(203, 213, 225, 0.8));
  color: #98a2b3;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  cursor: not-allowed;
}

.shop-page .btn-ghost {
  color: #334155;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.42));
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .btn-ghost:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
  border-color: rgba(255, 255, 255, 0.92);
}

.shop-page .btn-soft {
  color: #344054;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.shop-page .product-detail {
  gap: 30px;
  padding-top: 6px;
}

.shop-page .product-gallery {
  gap: 12px;
}

.shop-page .gallery-item {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    0 18px 36px -28px rgba(31, 41, 55, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 6px;
}

.shop-page .gallery-item img {
  border-radius: 13px;
}

.shop-page .gallery-empty {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.36));
  border-radius: 18px;
  color: #8b95a5;
}

.shop-page .product-info {
  gap: 13px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42) 56%, rgba(255, 255, 255, 0.62));
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  backdrop-filter: blur(24px) saturate(185%);
  box-shadow:
    0 26px 52px -30px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.shop-page .product-detail-title {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.shop-page .product-detail-summary {
  color: #5b6579;
}

.shop-page .product-detail-price {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.045em;
  color: #0b1220;
}

.shop-page .qty-row {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.36));
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  color: #5b6579;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .stepper {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border-radius: 9px;
  color: #0b1220;
  box-shadow:
    0 6px 14px -10px rgba(31, 41, 55, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.shop-page .stepper:hover {
  border-color: rgba(255, 255, 255, 0.95);
  color: #0b1220;
  box-shadow:
    0 10px 20px -12px rgba(31, 41, 55, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.shop-page .product-detail-actions .btn {
  border-radius: 13px;
}

.shop-page .product-detail-body {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.shop-page .product-detail-body h2 {
  color: #8b95a5;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.shop-page .product-detail-body p {
  color: #5b6579;
}

.shop-page .cart-list {
  gap: 12px;
}

.shop-page .cart-row {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0.6));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 20px 40px -30px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.shop-page .cart-thumb {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .cart-main strong {
  font-weight: 600;
  color: #0b1220;
}

.shop-page .cart-main span {
  color: #8b95a5;
}

.shop-page .cart-kind {
  color: #6d28d9 !important;
}

.shop-page .cart-remove {
  color: #8b95a5;
  border-radius: 8px;
  transition: color 0.16s ease, background 0.16s ease;
}

.shop-page .cart-remove:hover {
  color: #b42318;
  background: rgba(255, 255, 255, 0.6);
}

.shop-page .cart-subtotal {
  color: #0b1220;
  font-weight: 650;
}

.shop-page .cart-summary {
  align-items: center;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42) 58%, rgba(255, 255, 255, 0.62));
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  backdrop-filter: blur(22px) saturate(185%);
  box-shadow:
    0 22px 44px -30px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.shop-page .cart-summary strong {
  font-size: 26px;
  letter-spacing: -0.035em;
  color: #0b1220;
}

.shop-page .card-box {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4) 56%, rgba(255, 255, 255, 0.62));
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  backdrop-filter: blur(24px) saturate(185%);
  box-shadow:
    0 24px 48px -32px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 24px;
}

.shop-page .card-box h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #0b1220;
}

.shop-page .card-box .sub {
  color: #7b8497;
}

.shop-page .input,
.shop-page .select,
.shop-page .textarea {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  border-radius: 12px;
  color: #0b1220;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 6px 16px -14px rgba(31, 41, 55, 0.45);
}

.shop-page .input::placeholder,
.shop-page .textarea::placeholder {
  color: #98a2b3;
}

.shop-page .input:focus,
.shop-page .select:focus,
.shop-page .textarea:focus {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
}

.shop-page .field label {
  color: #55607a;
  font-size: 12.5px;
  font-weight: 550;
}

.shop-page .field small {
  color: #8b95a5;
}

.shop-page .hint {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-style: solid;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.36));
  color: #5b6579;
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
}

.shop-page .empty {
  margin-top: 18px;
  padding: 54px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.36));
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  backdrop-filter: blur(18px) saturate(175%);
  color: #8b95a5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.shop-page .order-items li {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.44));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .order-items img,
.shop-page .order-thumb-empty {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
}

.shop-page .order-item-main strong {
  color: #0b1220;
}

.shop-page .order-item-main span {
  color: #8b95a5;
}

.shop-page .order-item-total {
  color: #0b1220;
}

.shop-page .ship-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4) 58%, rgba(255, 255, 255, 0.6));
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  backdrop-filter: blur(22px) saturate(185%);
  box-shadow:
    0 24px 48px -32px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 20px;
}

.shop-page .order-no {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #0b1220;
}

.shop-page .meta-item dt {
  color: #8b95a5;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.shop-page .meta-item dd {
  color: #334155;
  font-weight: 500;
}

.shop-page .note-line {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.4));
  color: #5b6579;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .pay-box {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4) 58%, rgba(255, 255, 255, 0.6));
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  backdrop-filter: blur(22px) saturate(185%);
  box-shadow:
    0 22px 44px -32px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.shop-page .pay-box h2 {
  font-size: 14px;
  font-weight: 650;
  color: #0b1220;
}

.shop-page .pay-chip {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 13px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  color: #334155;
  font-weight: 550;
  box-shadow:
    0 10px 22px -18px rgba(31, 41, 55, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.shop-page .pay-chip:hover {
  border-color: rgba(255, 255, 255, 0.92);
}

.shop-page .pay-chip.active {
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(150deg, #2a3752, #0b1220 60%, #1c2740);
  color: #ffffff;
  box-shadow:
    0 16px 30px -18px rgba(11, 18, 32, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.shop-page .order-actions .btn {
  border-radius: 12px;
}

.shop-page .merchant-head {
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 18px 36px -28px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.shop-page .merchant-stat {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.42) 58%, rgba(255, 255, 255, 0.6));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 18px 36px -28px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.shop-page .merchant-stat dt {
  color: #8b95a5;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.shop-page .merchant-stat dd {
  font-size: 24px;
  letter-spacing: -0.035em;
  color: #0b1220;
}

.shop-page .merchant-note {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 251, 235, 0.82), rgba(255, 247, 222, 0.6));
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  color: #8a6100;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .tabs {
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.34));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 14px 28px -22px rgba(31, 41, 55, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .tab {
  border-radius: 10px;
  color: #5b6579;
  font-weight: 550;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.shop-page .tab:hover {
  color: #0b1220;
  background: rgba(255, 255, 255, 0.5);
}

.shop-page .tab.active {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  color: #0b1220;
  box-shadow:
    0 8px 18px -12px rgba(31, 41, 55, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.shop-page .kind-switch {
  gap: 10px;
}

.shop-page .kind-option {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(14px) saturate(175%);
  backdrop-filter: blur(14px) saturate(175%);
  box-shadow:
    0 12px 24px -20px rgba(31, 41, 55, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .kind-option strong {
  color: #0b1220;
  font-weight: 600;
}

.shop-page .kind-option span {
  color: #8b95a5;
}

.shop-page .kind-option:hover {
  border-color: rgba(255, 255, 255, 0.92);
}

.shop-page .kind-option.active {
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(150deg, #2a3752, #0b1220 62%, #1c2740);
  box-shadow:
    0 16px 30px -20px rgba(11, 18, 32, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.shop-page .kind-option.active strong {
  color: #ffffff;
}

.shop-page .kind-option.active span {
  color: rgba(255, 255, 255, 0.72);
}

.shop-page .card-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.shop-page .card-secret {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(250, 247, 255, 0.82), rgba(244, 238, 255, 0.6));
  -webkit-backdrop-filter: blur(14px) saturate(175%);
  backdrop-filter: blur(14px) saturate(175%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.shop-page .card-secret-body {
  color: #3b2f63;
}

.shop-page .photo-item {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 24px -20px rgba(31, 41, 55, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .section-title span,
.shop-page .inline-hint {
  color: #8b95a5;
}

.shop-page .section-title h2 {
  color: #0b1220;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.shop-page .code-line {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  color: #55607a;
}

.shop-page .code-line code {
  color: #37415a;
}

.shop-page .badge {
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px) saturate(170%);
  backdrop-filter: blur(10px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-page .badge-pending {
  background: rgba(255, 246, 230, 0.78);
}

.shop-page .badge-shipped {
  background: rgba(232, 244, 255, 0.78);
}

.shop-page .badge-done {
  background: rgba(231, 248, 240, 0.78);
}

.shop-page .upload-zone {
  border: 1px dashed rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.36));
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .shop-page .panel-head,
  .shop-page .product-card,
  .shop-page .cart-row,
  .shop-page .card-box,
  .shop-page .ship-card,
  .shop-page .product-info,
  .shop-page .pay-box,
  .shop-page .topbar,
  .shop-page .cart-summary {
    background: rgba(255, 255, 255, 0.9);
  }
}

@media (max-width: 640px) {
  .shop-page .shell {
    width: calc(100% - 26px);
    padding-bottom: 48px;
  }

  .shop-page .topbar {
    top: 8px;
    padding: 10px 12px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .shop-page .topbar-actions {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .shop-page .ghost-link {
    padding: 8px 12px;
    font-size: 12px;
  }

  .shop-page .panel-head {
    padding: 24px 20px 20px;
    border-radius: 22px;
  }

  .shop-page .panel-head h1 {
    font-size: clamp(22px, 7vw, 28px);
  }

  .shop-page .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
    gap: 12px;
  }

  .shop-page .product-body {
    padding: 12px 13px 14px;
  }

  .shop-page .product-card {
    border-radius: 18px;
  }

  .shop-page .product-info,
  .shop-page .card-box {
    padding: 18px;
    border-radius: 20px;
  }

  .shop-page .cart-row {
    border-radius: 18px;
  }

  .shop-page .merchant-stat {
    border-radius: 16px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .shop-page .panel-head,
  .shop-page .product-card,
  .shop-page .cart-row,
  .shop-page .card-box,
  .shop-page .ship-card,
  .shop-page .product-info,
  .shop-page .pay-box,
  .shop-page .topbar {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- 商城 · 底部导航栏 ---------- */
.shop-nav {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  width: min(430px, calc(100% - 28px));
  pointer-events: none;
}

.shop-nav-inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  padding: 9px 12px 8px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.44));
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  box-shadow:
    0 26px 52px -26px rgba(15, 23, 42, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}

.shop-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 6px;
  border-radius: 14px;
  color: #7b8697;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.18s ease, transform 0.18s ease;
}

.shop-nav-item:hover {
  color: #334155;
  transform: translateY(-1px);
}

.shop-nav-item.is-active {
  color: #0b1220;
}

.shop-nav-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 26px;
}

.shop-ico {
  width: 22px;
  height: 22px;
}

.shop-nav-label {
  line-height: 1;
}

.shop-nav-item.is-active .shop-nav-icon {
  color: #0b1220;
}

.shop-nav-item.shop-nav-cart {
  gap: 5px;
  padding-bottom: 2px;
}

.shop-nav-cart .shop-nav-icon {
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(150deg, #334155 0%, #0b1220 62%, #1c2740 100%);
  box-shadow:
    0 18px 30px -14px rgba(11, 18, 32, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-nav-cart .shop-ico {
  width: 24px;
  height: 24px;
}

.shop-nav-cart.is-active .shop-nav-icon,
.shop-nav-item.shop-nav-cart:hover .shop-nav-icon {
  transform: translateY(-2px);
  box-shadow:
    0 22px 34px -14px rgba(11, 18, 32, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.shop-nav-cart .shop-nav-label {
  color: #0b1220;
}

.shop-nav-cart .cart-badge {
  position: absolute;
  top: -30px;
  right: calc(50% - 32px);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(150deg, #f97316, #dc2626);
  box-shadow: 0 8px 18px -8px rgba(220, 38, 38, 0.7);
}

.shop-page .shell {
  padding-bottom: 120px;
}

/* ---------- 商城 · 我的 ---------- */
.me-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42) 56%, rgba(255, 255, 255, 0.62));
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  box-shadow:
    0 26px 54px -32px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  overflow: hidden;
  position: relative;
}

.me-hero::before {
  content: "";
  position: absolute;
  inset: -60% -10% auto -10%;
  height: 80%;
  background: radial-gradient(55% 100% at 22% 8%, rgba(255, 255, 255, 0.7), transparent 72%);
  pointer-events: none;
}

.me-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.me-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(150deg, #334155, #0b1220);
  box-shadow: 0 14px 26px -14px rgba(11, 18, 32, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.me-hero-text strong {
  display: block;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.015em;
  color: #0b1220;
}

.me-hero-text span {
  font-size: 12px;
  color: #7b8697;
}

.me-hero-tag {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.46));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #5b6579;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.me-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.me-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 18px 36px -28px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: #0b1220;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.me-tile:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 40px -26px rgba(31, 41, 55, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.me-tile-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(150deg, #334155, #0b1220);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  flex: none;
}

.me-tile-ico .shop-ico {
  width: 21px;
  height: 21px;
}

.me-tile-text strong {
  display: block;
  font-size: 14px;
  font-weight: 640;
}

.me-tile-text span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: #7b8697;
}

.me-section {
  margin-top: 22px;
}

.me-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.me-section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 660;
  letter-spacing: -0.01em;
  color: #0b1220;
}

.me-orders {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.me-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 16px 32px -28px rgba(31, 41, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: #0b1220;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.me-order:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 38px -26px rgba(31, 41, 55, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.me-order-main strong {
  display: block;
  font-size: 13.5px;
  font-weight: 620;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.me-order-main span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: #8b95a5;
}

.me-order-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.me-order-side strong {
  font-size: 13.5px;
  font-weight: 660;
}

.me-links {
  margin-top: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.38));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.me-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 560;
  color: #334155;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.me-link:last-child {
  border-bottom: 0;
}

.me-link:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #0b1220;
}

.me-link-arrow {
  color: #94a3b8;
}

@media (max-width: 640px) {
  .shop-nav {
    width: calc(100% - 22px);
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .shop-page .shell {
    padding-bottom: 104px;
  }

  .me-hero {
    padding: 18px 18px;
    border-radius: 20px;
  }

  .me-tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .me-order {
    padding: 13px 15px;
  }
}

/* ---------- 接单端 · 侧边栏工作台 ---------- */
.wk-page {
  background-color: #e9eef6;
  background-image:
    radial-gradient(50% 40% at 0% 0%, rgba(30, 64, 175, 0.16), transparent 62%),
    radial-gradient(46% 38% at 100% 0%, rgba(14, 116, 144, 0.14), transparent 60%),
    linear-gradient(180deg, #f6f8fc 0%, #eef2f8 60%, #e8eef7 100%);
  background-attachment: fixed;
}

.wk-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.wk-auth-card {
  width: min(420px, 100%);
  padding: 28px 28px 26px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  box-shadow:
    0 34px 68px -34px rgba(15, 23, 42, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.wk-auth-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.wk-auth-head strong {
  display: block;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.015em;
  color: #0b1220;
}

.wk-auth-head > div > span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #97a2b3;
}

.wk-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(150deg, #334155, #0b1220);
  box-shadow: 0 12px 24px -12px rgba(11, 18, 32, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  flex: none;
  overflow: hidden;
  min-width: 40px;
  max-width: 40px;
  min-height: 40px;
  max-height: 40px;
}

.wk-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
}

.wk-seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(15, 23, 42, 0.05);
}

.wk-seg-btn {
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.wk-seg-btn.is-active {
  background: #ffffff;
  color: #0b1220;
  box-shadow: 0 6px 14px -8px rgba(15, 23, 42, 0.35);
}

.wk-auth-hint {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #7b8697;
  text-align: center;
}

.wk-app {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  min-height: 100vh;
  align-items: stretch;
}

.wk-side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 18px 20px;
  background: linear-gradient(180deg, #0b1220 0%, #111c33 62%, #0b1220 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 24px 0 48px -36px rgba(0, 0, 0, 0.8);
  color: #cbd5e1;
  overflow-y: auto;
}

.wk-side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wk-side-brand-text strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

.wk-side-brand-text span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.wk-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wk-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 560;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.wk-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.wk-nav-item.is-active {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.wk-nav-ico {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  opacity: 0.9;
}

.wk-ico {
  width: 19px;
  height: 19px;
}

.wk-nav-label {
  flex: 1;
}

.wk-nav-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
}

.wk-nav-item.is-active .wk-nav-count {
  background: #ffffff;
  color: #0b1220;
}

.wk-side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wk-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.wk-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 680;
  color: #0b1220;
  background: linear-gradient(150deg, #e2e8f0, #94a3b8);
  flex: none;
}

.wk-user-meta strong {
  display: block;
  font-size: 12.5px;
  font-weight: 620;
  color: #f1f5f9;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wk-user-meta span {
  display: block;
  font-size: 10.5px;
  color: #64748b;
}

.wk-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.wk-side-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.wk-side-logout:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.wk-main {
  min-width: 0;
  padding: 26px 30px 64px;
  max-width: 1120px;
}

.wk-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.wk-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #97a2b3;
}

.wk-top h1 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.wk-top p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.64;
  color: #64748b;
}

.wk-top-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.wk-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 560;
  color: #64748b;
}

.wk-sync .wk-ico {
  width: 14px;
  height: 14px;
}

.wk-top-shop {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.wk-top-shop:hover {
  color: #0b1220;
}

.wk-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.wk-stat {
  position: relative;
  padding: 16px 18px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.56) 62%, rgba(255, 255, 255, 0.72));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 20px 40px -30px rgba(15, 23, 42, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.wk-stat::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 70%;
  background: radial-gradient(60% 100% at 70% 100%, rgba(37, 99, 235, 0.14), transparent 72%);
  pointer-events: none;
}

.wk-stat-label {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b95a5;
}

.wk-stat-value {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px 0 4px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #0b1220;
}

.wk-stat-foot {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 11px;
  color: #97a2b3;
}

.wk-orders-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.wk-orders-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 660;
  letter-spacing: -0.01em;
  color: #0b1220;
}

.merchant-hero {
  align-items: center;
  margin-bottom: 16px;
}

.merchant-hero p {
  margin-bottom: 0;
}

.merchant-presence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.8);
  color: #047857;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.wk-list-subtitle {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.wk-refresh-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  color: #64748b;
  cursor: pointer;
}

.wk-refresh-button:hover { color: #2563eb; border-color: rgba(37, 99, 235, 0.32); }
.wk-refresh-button.is-loading .wk-ico { animation: merchantSpin 0.8s linear infinite; }

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

.merchant-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.merchant-filter {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
}

.merchant-filter.is-active {
  border-color: rgba(37, 99, 235, 0.3);
  background: #2563eb;
  color: #fff;
}

.merchant-game-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
}

.merchant-game-filter .select { min-height: 34px; width: auto; min-width: 118px; padding-top: 5px; padding-bottom: 5px; font-size: 12px; }

.merchant-order-card-head,
.merchant-order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px 0;
}

.merchant-order-card-head time { color: #94a3b8; font-size: 11px; }
.merchant-source-tag { padding: 4px 8px; border-radius: 6px; background: #eff6ff; color: #2563eb; font-size: 11px; font-weight: 700; }
.merchant-source-tag.is-boss { background: #fff7ed; color: #c2410c; }
.merchant-order-card-meta { grid-column: 1 / -1; color: #64748b; font-size: 12px; }
.merchant-order-note { margin: 0 16px; padding: 10px 0; border-top: 1px dashed rgba(148, 163, 184, 0.25); color: #64748b; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.merchant-order-card-foot { padding-top: 11px; padding-bottom: 13px; border-top: 1px solid rgba(226, 232, 240, 0.7); }
.merchant-order-requirement, .merchant-order-state { color: #94a3b8; font-size: 11px; }
.merchant-claim-button { min-width: 88px; }

.wk-list-hint {
  font-size: 11.5px;
  color: #8b95a5;
}

.wk-order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wk-order-card {
  margin: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.6) 58%, rgba(255, 255, 255, 0.74));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 22px 44px -32px rgba(15, 23, 42, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.wk-order-card .card-foot {
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}

@media (max-width: 900px) {
  .wk-app {
    grid-template-columns: minmax(0, 1fr);
  }

  .wk-side {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.8);
    overflow: visible;
  }

  .wk-side-brand {
    padding: 0;
    border-bottom: 0;
  }

  .wk-side-brand-text span {
    display: none;
  }

  .wk-nav {
    flex-direction: row;
    margin-left: auto;
  }

  .wk-nav-item {
    padding: 8px 11px;
    font-size: 12px;
  }

  .wk-nav-label {
    display: none;
  }

  .wk-nav-count {
    display: none;
  }

  .wk-side-foot {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .wk-user {
    padding: 6px 8px;
  }

  .wk-user-meta,
  .wk-avatar {
    display: none;
  }

  .wk-side-link span:last-child {
    display: none;
  }

  .wk-side-link {
    padding: 8px;
  }

  .wk-main {
    padding: 18px 16px 48px;
  }

  .wk-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .wk-stat {
    padding: 13px 15px 12px;
    border-radius: 16px;
  }

  .wk-stat-value {
    font-size: 22px;
  }

  .wk-user-meta strong {
    display: none;
  }
}

@media (max-width: 560px) {
  .wk-top-side {
    width: 100%;
    justify-content: flex-start;
  }

  .wk-stats {
    gap: 8px;
  }

  .wk-order-card {
    border-radius: 16px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .shop-nav-inner,
  .me-hero,
  .me-tile,
  .me-order,
  .me-links,
  .wk-auth-card,
  .wk-stat,
  .wk-order-card,
  .wk-sync,
  .wk-top-shop {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- 接单端 · 登录/注册动态切换 + 全局动态液态玻璃 ---------- */
.wk-shell[hidden],
.wk-app[hidden],
.wk-auth-card form[hidden] {
  display: none !important;
}

.wk-page {
  --wk-glass-anim: 22s;
  position: relative;
}

.wk-page::before,
.wk-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(46px);
  pointer-events: none;
  opacity: 0.55;
}

.wk-page::before {
  width: 46vmax;
  height: 46vmax;
  top: -18vmax;
  left: -14vmax;
  background: radial-gradient(circle at 38% 38%, rgba(59, 130, 246, 0.42), transparent 68%);
  animation: wkBlobA var(--wk-glass-anim) ease-in-out infinite alternate;
}

.wk-page::after {
  width: 40vmax;
  height: 40vmax;
  right: -12vmax;
  bottom: -16vmax;
  background: radial-gradient(circle at 60% 40%, rgba(45, 212, 191, 0.34), transparent 68%);
  animation: wkBlobB calc(var(--wk-glass-anim) * 1.25) ease-in-out infinite alternate;
}

@keyframes wkBlobA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vmax, 5vmax, 0) scale(1.12); }
  100% { transform: translate3d(-3vmax, 8vmax, 0) scale(0.96); }
}

@keyframes wkBlobB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-7vmax, -4vmax, 0) scale(1.1); }
  100% { transform: translate3d(4vmax, -7vmax, 0) scale(0.94); }
}

.wk-shell,
.wk-app {
  position: relative;
  z-index: 1;
}

.wk-auth-card {
  position: relative;
  overflow: hidden;
  animation: wkCardFloat 9s ease-in-out infinite alternate;
}

.wk-auth-card::before {
  content: "";
  position: absolute;
  inset: -40% -60% auto -60%;
  height: 140%;
  background: conic-gradient(
    from 0deg at 50% 0%,
    rgba(255, 255, 255, 0) 0deg,
    rgba(255, 255, 255, 0.62) 70deg,
    rgba(255, 255, 255, 0) 150deg,
    rgba(191, 219, 254, 0.42) 230deg,
    rgba(255, 255, 255, 0) 320deg
  );
  opacity: 0.45;
  animation: wkSheen 12s linear infinite;
  pointer-events: none;
}

.wk-auth-card > * {
  position: relative;
  z-index: 1;
}

@keyframes wkCardFloat {
  0% { transform: translateY(0) scale(1); box-shadow: 0 34px 68px -34px rgba(15, 23, 42, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.96); }
  100% { transform: translateY(-6px) scale(1.006); box-shadow: 0 46px 84px -34px rgba(15, 23, 42, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.98); }
}

@keyframes wkSheen {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.wk-seg {
  position: relative;
  isolation: isolate;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.wk-seg::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4px;
  left: 4px;
  width: calc(50% - 6px);
  height: calc(100% - 8px);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 18px -10px rgba(15, 23, 42, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1), background 0.3s ease;
}

.wk-seg.is-register::before {
  transform: translateX(calc(100% + 2px));
}

.wk-seg-btn {
  position: relative;
  z-index: 1;
}

.wk-seg-btn.is-active {
  background: transparent;
  box-shadow: none;
}

.wk-auth-card > form {
  animation: wkFormIn 0.42s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes wkFormIn {
  0% { opacity: 0; transform: translateY(10px) scale(0.985); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.wk-side,
.wk-main {
  position: relative;
}

.wk-side {
  background: linear-gradient(180deg, #0b1220 0%, #111c33 62%, #0b1220 100%);
  overflow: hidden;
}

.wk-side::after {
  content: "";
  position: absolute;
  inset: -30% -40% auto -40%;
  height: 90%;
  background: radial-gradient(48% 100% at 40% 0%, rgba(59, 130, 246, 0.22), transparent 70%);
  animation: wkSideGlow 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes wkSideGlow {
  0% { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(3%) scale(1.08); opacity: 1; }
}

.wk-side > *,
.wk-main > * {
  position: relative;
  z-index: 1;
}

.wk-stat,
.wk-order-card,
.wk-top-shop,
.wk-sync {
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.24s ease;
}

.wk-stat:hover {
  transform: translateY(-3px);
  box-shadow:
    0 30px 54px -30px rgba(15, 23, 42, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.wk-order-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 32px 58px -32px rgba(15, 23, 42, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.wk-nav-item.is-active {
  position: relative;
}

.wk-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 18px;
  margin-top: -9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #93c5fd, #34d399);
  box-shadow: 0 0 12px rgba(147, 197, 253, 0.9);
  animation: wkRailPulse 2.6s ease-in-out infinite;
}

@keyframes wkRailPulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.wk-side-brand .wk-logo {
  animation: wkLogoGlow 6s ease-in-out infinite alternate;
}

@keyframes wkLogoGlow {
  0% { box-shadow: 0 12px 24px -12px rgba(11, 18, 32, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
  100% { box-shadow: 0 16px 30px -10px rgba(59, 130, 246, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
}

@media (max-width: 900px) {
  .wk-nav-item.is-active::before {
    left: 50%;
    top: auto;
    bottom: 2px;
    width: 18px;
    height: 3px;
    margin: 0 0 0 -9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wk-page::before,
  .wk-page::after,
  .wk-auth-card,
  .wk-auth-card::before,
  .wk-side::after,
  .wk-nav-item.is-active::before,
  .wk-side-brand .wk-logo {
    animation: none !important;
  }

  .wk-auth-card > form {
    animation: none;
  }
}

/* ==========================================================================
   全局液态玻璃美化层 Global Liquid Glass
   只追加视觉，不改变既有布局结构
   ========================================================================== */

:root {
  --lg-blur: 22px;
  --lg-saturate: 180%;
  --lg-stroke: rgba(255, 255, 255, 0.55);
  --lg-stroke-soft: rgba(255, 255, 255, 0.28);
  --lg-glass: rgba(255, 255, 255, 0.72);
  --lg-glass-deep: rgba(255, 255, 255, 0.58);
  --lg-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 42%);
  --lg-glow: 0 24px 70px rgba(15, 23, 42, 0.16), 0 2px 10px rgba(15, 23, 42, 0.06);
  --lg-glow-hover: 0 30px 80px rgba(37, 99, 235, 0.22), 0 4px 16px rgba(15, 23, 42, 0.08);
}

body {
  background-attachment: fixed;
  position: relative;
}

/* 全局漂浮光斑 */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

body::before {
  width: 46vw;
  height: 46vw;
  min-width: 340px;
  min-height: 340px;
  top: -12vh;
  left: -10vw;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.55), rgba(59, 130, 246, 0.12) 60%, transparent 72%);
  animation: lgDriftA 26s ease-in-out infinite alternate;
}

body::after {
  width: 42vw;
  height: 42vw;
  min-width: 320px;
  min-height: 320px;
  right: -12vw;
  bottom: -14vh;
  background: radial-gradient(circle at 60% 40%, rgba(45, 212, 191, 0.5), rgba(56, 189, 248, 0.14) 58%, transparent 74%);
  animation: lgDriftB 32s ease-in-out infinite alternate;
}

@keyframes lgDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(6vw, 5vh, 0) scale(1.12); }
}

@keyframes lgDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1.05); }
  100% { transform: translate3d(-5vw, -6vh, 0) scale(0.94); }
}

/* 玻璃面板：查询页 / 后台主面板 */
.panel,
.card-box,
.pay-box,
.lock-screen {
  position: relative;
  background: var(--lg-glass);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-stroke);
  box-shadow: var(--lg-glow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.panel::before,
.card-box::before,
.lock-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--lg-shine);
  opacity: 0.5;
  pointer-events: none;
}

.panel-head {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32));
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.card-box {
  border-radius: 20px;
  overflow: hidden;
}

.pay-box {
  border-color: rgba(191, 219, 254, 0.8);
  background: linear-gradient(160deg, rgba(239, 246, 255, 0.85), rgba(224, 242, 254, 0.6));
}

/* 页签：液态胶囊 */
.tabs {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--lg-stroke-soft);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tab {
  position: relative;
  transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.tab:hover {
  color: var(--brand-deep);
}

.tab.active {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16), inset 0 1px 0 #fff;
}

/* 输入控件 */
.input,
.select,
.textarea {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(226, 232, 240, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(96, 165, 250, 0.85);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16), 0 10px 24px rgba(37, 99, 235, 0.1);
}

/* 按钮：液态高光与扫光 */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn:hover::after {
  left: 125%;
}

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

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:disabled,
.btn-primary[disabled] {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  box-shadow: none;
  color: #f1f5f9;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(226, 232, 240, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* 卡片浮起 */
.ship-card,
.product-card,
.wk-stat,
.wk-order-card {
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}

.ship-card:hover,
.product-card:hover,
.wk-order-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lg-glow-hover);
}

.ship-card,
.product-card {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid var(--lg-stroke);
}

/* 支付选项与未开启提示 */
.pay-chip {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease, background 0.2s ease;
}

.pay-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.14);
}

.pay-chip.active {
  background: linear-gradient(150deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.75));
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 10px 24px rgba(37, 99, 235, 0.18);
}

.pay-off-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  margin-right: 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(253, 230, 138, 0.75));
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pay-off-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

/* 商城底部导航：液态玻璃 */
.shop-nav {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border-top: 1px solid var(--lg-stroke);
  box-shadow: 0 -14px 40px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.shop-nav-item.is-active .shop-nav-icon {
  background: linear-gradient(150deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.6));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2), inset 0 1px 0 #fff;
}

.shop-nav-cart .shop-nav-icon {
  background: linear-gradient(145deg, #60a5fa, #2563eb 60%, #1e40af);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.42), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* 商城顶部品牌头像 */
.brand-mark {
  width: 46px;
  height: 46px;
  min-width: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #1e293b, #0f172a 70%);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.me-avatar .brand-mark {
  width: 52px;
  height: 52px;
  min-width: 52px;
  flex-basis: 52px;
  border-radius: 18px;
}

.me-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ==========================================================================
   接单端钱包组件
   ========================================================================== */

.wk-wallet {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wk-wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.wk-stat-balance {
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.92), rgba(29, 78, 216, 0.82));
  border-color: rgba(191, 219, 254, 0.5);
  color: #eff6ff;
}

.wk-stat-balance .wk-stat-label,
.wk-stat-balance .wk-stat-foot {
  color: rgba(224, 242, 254, 0.85);
}

.wk-stat-balance .wk-stat-value {
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(2, 6, 23, 0.25);
}

.wk-wallet-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
}

.wk-panel {
  position: relative;
  padding: 20px;
  border-radius: 22px;
  background: var(--lg-glass-deep);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-stroke);
  box-shadow: var(--lg-glow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.wk-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lg-shine);
  opacity: 0.4;
  pointer-events: none;
}

.wk-panel-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.wk-panel-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.wk-panel-head span {
  font-size: 12px;
  color: var(--ink-faint);
}

.wk-panel-hint {
  position: relative;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.wk-qr-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 14px;
}

.wk-qr-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.26s ease;
}

.wk-qr-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff, 0 16px 34px rgba(37, 99, 235, 0.14);
}

.wk-qr-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.wk-qr-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(241, 245, 249, 0.6));
  border: 1px dashed rgba(148, 163, 184, 0.55);
}

.wk-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.wk-qr-empty {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.wk-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wk-qr-upload {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wk-payout-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wk-payout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 #fff;
}

.wk-payout-item > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wk-payout-item strong {
  font-size: 17px;
  color: var(--accent);
}

.wk-payout-item span {
  font-size: 12px;
  color: var(--ink-soft);
}

.wk-payout-item time {
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* 接单端底部导航（移动端） */
.wk-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border-top: 1px solid var(--lg-stroke);
  box-shadow: 0 -14px 40px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.boss-bottom-nav {
  grid-template-columns: repeat(3, 1fr);
}

.boss-shell {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.boss-page {
  background: #fff;
}

.boss-page .panel,
.boss-page .wk-auth-card {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.boss-page .boss-home-summary {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  backdrop-filter: blur(8px) saturate(115%);
}

.boss-page .ship-card {
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e4e7ec;
  border-radius: 0;
  box-shadow: none;
}

.boss-page .ship-card:hover {
  transform: none;
  box-shadow: none;
}

.boss-page .boss-bottom-nav {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-top: 1px solid #e4e7ec;
  box-shadow: none;
}

.boss-profile-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #e4e7ec;
}

.boss-profile-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.boss-profile-info strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-profile-status {
  color: var(--ink-soft);
  font-size: 12px;
}

.boss-profile-panel .btn {
  flex: 0 0 auto;
}

.boss-home-caption {
  margin: 20px 0 4px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.boss-create-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.wk-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.22s ease, transform 0.2s ease;
}

.wk-bottom-item .wk-ico {
  width: 22px;
  height: 22px;
}

.wk-bottom-item.is-active {
  color: var(--brand-deep);
  background: linear-gradient(150deg, rgba(219, 234, 254, 0.9), rgba(191, 219, 254, 0.5));
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(37, 99, 235, 0.14);
}

.wk-bottom-item:active {
  transform: scale(0.95);
}

.wk-side,
.wk-head {
  display: none !important;
}

.wk-app {
  display: block;
  min-height: 100vh;
}

.wk-main {
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

@media (min-width: 901px) {
  .wk-main {
    padding: 30px 36px calc(112px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 900px) {
  .wk-main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .wk-wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 后台打款二维码槽位 */
.payout-qr-slot {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-bottom: 10px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(241, 245, 249, 0.55));
  border: 1px dashed rgba(148, 163, 184, 0.55);
  box-shadow: inset 0 1px 0 #fff;
}

.payout-qr-slot img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #fff;
}

.payout-qr-slot .payout-qr-empty {
  padding: 26px 10px;
  font-size: 12px;
  color: var(--ink-faint);
}

/* 顶栏与侧栏玻璃质感 */
.wk-side {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid var(--lg-stroke);
}

.wk-nav-item.is-active {
  background: linear-gradient(150deg, rgba(219, 234, 254, 0.92), rgba(191, 219, 254, 0.55));
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px rgba(37, 99, 235, 0.14);
}

.wk-stat {
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--lg-stroke);
  box-shadow: var(--lg-glow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wk-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--lg-glow-hover);
}

.wk-auth-card {
  border: 1px solid var(--lg-stroke);
  box-shadow: var(--lg-glow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* 隐藏属性保险：任何显式 display 的容器都必须服从 hidden */
.wk-wallet[hidden],
.wk-orders[hidden],
.wk-stats[hidden],
#shop-payout[hidden],
.pay-box[hidden],
[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }

  .btn::after {
    display: none;
  }

  .ship-card:hover,
  .product-card:hover,
  .wk-order-card:hover,
  .wk-stat:hover,
  .wk-qr-card:hover,
  .pay-chip:hover,
  .btn:hover {
    transform: none;
  }
}

/* ---------- 接单端：简洁标题 + 提现弹层 ---------- */

.wk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.wk-head h1 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1220;
}

.wk-withdraw-panel {
  position: relative;
  overflow: visible;
}

.wk-withdraw-panel .wk-panel-hint {
  margin-bottom: 18px;
}

.wk-withdraw-sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.wk-withdraw-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.92), rgba(29, 78, 216, 0.8));
  color: #eff6ff;
  box-shadow: 0 18px 36px -18px rgba(37, 99, 235, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.wk-withdraw-sum span {
  font-size: 12.5px;
  color: rgba(224, 242, 254, 0.9);
}

.wk-withdraw-sum strong {
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.wk-withdraw-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wk-withdraw-label {
  font-size: 12.5px;
  font-weight: 650;
  color: #475467;
}

.lg-card .wk-qr-card {
  background: rgba(255, 255, 255, 0.82);
}

.lg-card .wk-withdraw-sheet .wk-qr-frame {
  max-height: 180px;
}

/* ==========================================================================
   底部导航单行约束：商城 / 接单端 / 老板端
   所有底部导航项必须保持单行排列，窄屏下按可用宽度收缩
   ========================================================================== */
.shop-nav-inner,
.wk-bottom-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 4px;
}

.shop-nav-item,
.wk-bottom-item {
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.shop-nav-label,
.wk-bottom-item > span:last-child {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.shop-nav-cart,
.wk-bottom-item {
  flex-shrink: 1;
}

@media (max-width: 360px) {
  .shop-nav-inner,
  .wk-bottom-nav {
    gap: 2px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .shop-nav-item,
  .wk-bottom-item {
    font-size: 10px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .shop-nav-label,
  .wk-bottom-item > span:last-child {
    font-size: 10px;
    letter-spacing: 0;
  }
}

/* Compact merchant order list: only title, price and quantity remain in the list. */
.wk-order-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.wk-sort-control { display: inline-flex; align-items: center; gap: 7px; color: #64748b; font-size: 12px; white-space: nowrap; }
.wk-sort-control .select { width: auto; min-width: 132px; min-height: 36px; padding: 6px 30px 6px 10px; font-size: 12px; }
body.shop-page .wk-order-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.shop-page .wk-order-list .wk-order-card { min-width: 0; margin: 0; padding: 0; overflow: hidden; border-radius: 14px; }
.wk-order-card-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; color: #0f172a; text-decoration: none; }
.wk-order-card-link strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.wk-order-card-price { color: #2563eb; font-weight: 700; white-space: nowrap; }
.wk-order-card-quantity { color: #64748b; font-size: 13px; white-space: nowrap; }
.wk-order-card-link:focus-visible { outline: 3px solid #2563eb; outline-offset: -3px; }
.merchant-order-shell { max-width: 900px; }
.merchant-order-detail { display: grid; gap: 14px; }
.merchant-order-detail .shop-order-card { margin: 0; }
.merchant-order-extra { padding: 20px; border: 1px solid rgba(226,232,240,.9); border-radius: 16px; background: rgba(255,255,255,.82); }
.merchant-order-extra h2 { margin: 0 0 14px; font-size: 17px; }
.merchant-order-extra p { margin: 10px 0; overflow-wrap: anywhere; }
.merchant-order-note { white-space: pre-wrap; }
.merchant-order-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.merchant-order-times div { min-width: 0; padding: 10px; border-radius: 10px; background: #f8fafc; }
.merchant-order-times dt { color: #64748b; font-size: 12px; }
.merchant-order-times dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.merchant-order-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 640px) {
  .merchant-hero { align-items: flex-start; }
  .merchant-presence { margin-top: 4px; }
  .merchant-game-filter { width: 100%; margin-left: 0; justify-content: space-between; }
  .merchant-game-filter .select { flex: 1; }
  .wk-orders-head { align-items: flex-start; }
  .wk-order-tools { align-items: flex-end; flex-direction: column; gap: 5px; }
  body.shop-page .wk-order-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wk-order-card-link { min-height: 56px; padding: 12px 14px; }
  .merchant-order-times { grid-template-columns: minmax(0, 1fr); }
  .merchant-order-actions .btn { width: 100%; }
}

/* Let content columns shrink before wrapping long identifiers and links. */
:where(.shell, .panel, .panel-body, .card-box, .ship-card, .order-view,
  .wk-main, .wk-panel, .wk-auth-card, .product-info, .table-wrap),
:where(.topbar, .brand, .ship-card-head, .section-title, .search-row,
  .receipt-row, .admin-grid, .two-col, .grid-2, .meta-grid, .cards,
  .order-cards, .product-grid, .product-detail, .product-gallery,
  .product-body, .product-foot, .product-actions, .cart-row, .cart-controls,
  .cart-summary, .order-items li, .dialog-head, .wk-auth-head,
  .me-hero, .me-hero-main, .me-tiles, .me-tile, .me-order,
  .me-order-side, .me-section-head, .me-link,
  .wk-top, .wk-top-side, .wk-stats, .wk-wallet-grid, .wk-wallet-cols,
  .wk-panel-head, .wk-qr-grid, .wk-payout-item, .wk-withdraw-sum,
  .boss-profile-panel, .field) > * {
  min-width: 0;
}

img, video, canvas {
  max-width: 100%;
}

pre, code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

pre {
  min-width: 0;
  max-width: 100%;
}

.topbar-actions, .section-title, .product-foot, .product-actions,
.cart-controls, .cart-summary, .order-items li, .dialog-head,
.dialog-actions, .lg-actions, .wk-top-side, .wk-orders-head,
.me-hero, .me-order, .me-order-side, .me-section-head,
.wk-panel-head, .wk-payout-item, .wk-withdraw-sum, .boss-profile-panel {
  flex-wrap: wrap;
}

.btn, .ghost-link, .chip, .pay-chip, .kind-option, .badge {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.wk-top-side, .me-order-side {
  max-width: 100%;
}

.tabs {
  max-width: 100%;
}

.tabs:not(.tabs-scroll) {
  flex-wrap: wrap;
}

.table-wrap {
  max-width: 100%;
}

/* Keep ambient glass lighting inside the viewport without clipping page content. */
:is(body, body.wk-page)::before, :is(body, body.wk-page)::after {
  inset: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  clip-path: inset(0);
  animation-name: glass-ambient;
}

@keyframes glass-ambient {
  from { opacity: .4; }
  to { opacity: .6; }
}

@media (max-width: 640px) {
  .shop-page .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 8px;
  }

  .shop-page .product-cover {
    aspect-ratio: 1.15 / 1;
  }

  .shop-page .product-body {
    padding: 8px 9px 10px;
    gap: 4px;
  }

  .shop-page .product-title { font-size: 12px; }
  .shop-page .product-price { font-size: 15px; }

  .shop-page .product-actions .btn {
    padding: 6px 8px;
    font-size: 11px;
  }

  .receipt-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep shared notifications readable across page themes. */
body :is(.toast, .lg-card, .dialog-card, .announcement-popup),
body :is(.toast, .lg-card, .dialog-card, .announcement-popup) * {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  text-shadow: none !important;
}

body :is(.lg-card, .dialog-card, .announcement-popup) ::placeholder {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  opacity: 1;
}

body .toast {
  background: #fff;
}

/* Shared copyright stays in document flow and never covers page content. */
.site-footer {
  position: static;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  margin-top: 28px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(128, 145, 165, 0.2);
  color: #78879a;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.site-footer p { margin: 0; }
