:root {
  --bg: #0f1419;
  --card: #1a222c;
  --text: #e8eef4;
  --muted: #8b9aab;
  --accent: #3d9cf0;
  --line: #2a3542;
}
* { box-sizing: border-box; }
body.shop {
  margin: 0;
  font-family: "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
body.shop.has-tabbar {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* 首页首屏 / 筛选加载遮罩 */
.shop-boot-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 25, 0.88);
  backdrop-filter: blur(6px);
}
.shop-boot-mask[hidden] {
  display: none !important;
}
.shop-boot-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.shop-boot-spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(61, 156, 240, 0.22);
  border-top-color: var(--accent);
  animation: shop-spin 0.75s linear infinite;
}
.shop-boot-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
@keyframes shop-spin {
  to { transform: rotate(360deg); }
}
body.is-list-booting .shop-wrap,
body.is-list-booting .shop-tabbar {
  visibility: hidden;
}
.shop-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.shop-top .brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.shop-top .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  min-width: 0;
}
.shop-top .brand-logo,
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--card);
}
.shop-top .visit-count {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.shop-top .visit-count b {
  color: var(--accent);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.shop-top .guide-link {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(61, 156, 240, 0.08);
}
.shop-top .guide-link:active { opacity: 0.85; }
.guide-inline {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}
.guide-page .guide-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.guide-page h1 {
  margin: 0 0 8px;
  font-size: 20px;
}
.guide-page h2 {
  margin: 0 0 8px;
  font-size: 16px;
}
.guide-page .guide-lead,
.guide-page p,
.guide-page li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
.guide-page ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
.guide-page b { color: var(--text); }
.guide-page .guide-vip {
  margin-top: 10px;
  color: var(--accent);
}
.guide-page .guide-note {
  margin-top: 8px;
  font-size: 12px;
}
.guide-page .guide-back {
  margin: 20px 0 8px;
  text-align: center;
}
.guide-page .guide-back .btn-ok {
  display: inline-block;
  text-decoration: none;
  line-height: 42px;
  padding: 0 24px;
}
.login-wrap .brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: block;
  margin: 0 auto 12px;
}
/* PC 右侧二维码；手机隐藏 */
.qr-panel { display: none; }
@media (min-width: 1100px) {
  .qr-panel {
    display: block;
    position: fixed;
    top: 72px;
    right: 24px;
    width: 176px;
    padding: 14px 12px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    z-index: 20;
  }
  .qr-panel img {
    display: block;
    width: 148px;
    height: 148px;
    margin: 0 auto;
    border-radius: 8px;
    background: #fff;
  }
  .qr-title {
    margin: 10px 0 4px;
    font-size: 13px;
    font-weight: 650;
  }
  .qr-url {
    margin: 0;
    font-size: 10px;
    color: var(--accent);
    word-break: break-all;
    line-height: 1.35;
  }
  .qr-tip {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--muted);
  }
  .shop-wrap {
    margin-right: 200px;
  }
}
@media (min-width: 1100px) and (max-width: 1280px) {
  .qr-panel {
    right: 12px;
    width: 156px;
    padding: 10px;
  }
  .qr-panel img { width: 128px; height: 128px; }
  .shop-wrap { margin-right: 176px; }
}

.shop-user { display: flex; gap: 8px; align-items: center; font-size: 12px; flex-wrap: wrap; justify-content: flex-end; }
.shop-user a { color: var(--accent); }
.btn-copy-account {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-copy-account:active { opacity: 0.7; }
.ucode {
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}
.credit-badge {
  font-size: 12px;
  font-weight: 600;
  color: #7ddea2;
  white-space: nowrap;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}
.credit-badge:hover { color: #a8f0c4; }
#credit-dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  background: var(--card);
  color: var(--text);
  width: min(92vw, 420px);
  max-height: min(80vh, 560px);
}
#credit-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.credit-box { padding: 16px; display: flex; flex-direction: column; max-height: min(80vh, 560px); }
.credit-box h3 { margin: 0 0 8px; font-size: 18px; }
.credit-balance { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.credit-balance b { color: #7ddea2; }
.credit-list {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}
.credit-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #101820;
  border: 1px solid var(--line);
}
.credit-item .ct { font-weight: 600; font-size: 14px; }
.credit-item .cd { color: var(--muted); font-size: 12px; grid-column: 1 / 2; word-break: break-all; }
.credit-item .ca { color: var(--muted); font-size: 11px; grid-column: 1 / -1; }
.credit-item .delta { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.credit-item .delta.plus { color: #7ddea2; }
.credit-item .delta.minus { color: #ff9b7d; }
.credit-empty { color: var(--muted); text-align: center; padding: 24px 8px; margin: 0; }
.btn-recharge, .btn-recharge-sm {
  background: #1e3a2f;
  color: #9ee4b8;
  border: 1px solid #2d5a45;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.btn-recharge-sm {
  padding: 4px 8px;
  font-size: 12px;
}
.btn-recharge {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
}
.shop-wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
.shop-search { display: flex; gap: 8px; margin-bottom: 10px; }
.shop-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
@media (min-width: 560px) {
  .shop-filters { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.shop-filters select {
  width: 100%;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
}
.shop-search input {
  flex: 1; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.shop-search button, .btn-one, .btn-all, .btn-ok, .btn-copy, .login-form button {
  border: 0; border-radius: 10px; padding: 10px 14px;
  background: var(--accent); color: #fff; font-weight: 600; cursor: pointer;
}
.shop-tip {
  color: #ffd166;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.35);
}
.tags, .ok-tip { color: var(--muted); font-size: 13px; }
.tags i {
  display: inline-block; margin: 2px 6px 2px 0; padding: 2px 8px;
  border-radius: 999px; background: #243040; font-style: normal; font-size: 12px;
}
.name-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  min-height: 200px;
  padding-bottom: 96px;
}
.vlist-status { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.vlist-more {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 16px 0 48px;
}
.pager {
  display: none;
}
.name-row {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border-radius: 14px; padding: 12px;
  border: 1px solid var(--line);
  box-sizing: border-box;
  overflow: hidden;
}
.name-row-wrap {
  position: relative;
  box-sizing: border-box;
}
.appeal-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(47, 111, 237, 0.18);
  border: 1px solid rgba(47, 111, 237, 0.45);
  color: #7eb6ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.appeal-link:active { opacity: 0.85; }
.btn-appeal {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(47, 111, 237, 0.16);
  border: 1px solid rgba(47, 111, 237, 0.4);
  color: #9ec5ff;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}
.appeal-pending-tip {
  margin: 4px 0 0;
  color: #f0c14b;
  font-size: 13px;
}
.appeal-page h1 { margin: 0 0 6px; font-size: 22px; }
.appeal-sub { margin: 0 0 12px; color: var(--muted); }
.appeal-err {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 107, 129, 0.14);
  color: #ff8fa0;
  font-size: 0.92rem;
}
.appeal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.appeal-form label { display: block; }
.appeal-form label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.appeal-form select,
.appeal-form textarea,
.appeal-form input[type="file"] {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1419;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}
.appeal-form textarea { min-height: 120px; resize: vertical; }
.post-new-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.name-meta .name { font-size: 18px; display: block; margin-bottom: 6px; }
.lock-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: -3px;
  opacity: 1;
}
.lock-icon.lock-closed { color: #ff5c5c; }
.lock-icon.lock-open { color: #3ddc84; }
.lock-icon svg { display: block; width: 100%; height: 100%; }
.jr-code {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 6px;
  background: #243040;
  color: var(--accent);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.85em;
  font-weight: 650;
  vertical-align: middle;
}
.name-head .jr-code { font-size: 16px; margin-right: 8px; }
.name-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: #3a4656 transparent;
}
.name-thumbs::-webkit-scrollbar {
  height: 4px;
}
.name-thumbs::-webkit-scrollbar-thumb {
  background: #3a4656;
  border-radius: 4px;
}
.name-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  pointer-events: none;
}
.thumb-slot {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #1a222c;
}
.thumb-slot.is-loading::after {
  content: none;
}
.thumb-slot.is-fetching::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid rgba(61, 156, 240, 0.22);
  border-top-color: var(--accent);
  animation: shop-spin 0.75s linear infinite;
  z-index: 1;
  pointer-events: none;
}
.thumb-slot.is-loading img {
  opacity: 0;
}
.thumb-slot:not(.is-loading) img {
  opacity: 1;
}
.name-head h1 { margin: 0 0 8px; font-size: 24px; }
.unlock-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.btn-all, .btn-one#btn-unlock-name { width: 100%; }
.contact-box .locked { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.post-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.post-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px;
}
.post-title { font-weight: 600; margin-bottom: 8px; }
.post-content-wrap {
  margin-top: 10px;
}
.post-content {
  margin: 0;
  color: #c5d0dc;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-content.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.post-content-toggle {
  display: inline-block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.post-content-toggle[hidden] {
  display: none !important;
}
.post-content-toggle:active {
  opacity: 0.75;
}
.shop-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0;
}
.shop-gallery a,
.shop-gallery .gallery-video {
  display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #111;
}
.shop-gallery img,
.shop-gallery video { width: 100%; height: 100%; object-fit: cover; }
.shop-gallery .gallery-video { aspect-ratio: 16 / 10; }
.contact { color: #7dffa5; word-break: break-all; }
.contact-box { margin-top: 8px; }
.btn-one { width: 100%; background: #2f6fed; }
#pay-dialog {
  border: 1px solid var(--line); border-radius: 16px; padding: 0;
  background: var(--card); color: var(--text); width: min(92vw, 420px);
}
.pay-form { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pay-form .addr {
  word-break: break-all; font-family: ui-monospace, monospace;
  background: #101820; padding: 10px; border-radius: 8px; font-size: 13px;
}
.pay-form input {
  width: 100%; margin-top: 4px; padding: 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #101820; color: var(--text);
}
.pay-actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn-cancel { background: #314154; color: #fff; border: 0; border-radius: 10px; padding: 10px 14px; }
.err { color: #ff7d7d; }
.login-wrap { max-width: 480px; padding-top: 40px; }
.login-form label { display: block; margin: 16px 0; }
.login-form input {
  width: 100%; margin-top: 6px; padding: 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* 欢迎弹窗 */
#welcome-dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  background: var(--card);
  color: var(--text);
  width: min(92vw, 420px);
}
#welcome-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.welcome-box { padding: 18px 16px 16px; }
.welcome-box h2 { margin: 0 0 10px; font-size: 20px; }
.welcome-box p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.welcome-code {
  word-break: break-all;
  font-family: ui-monospace, Menlo, monospace;
  background: #101820;
  padding: 12px;
  border-radius: 10px;
  color: var(--text) !important;
  font-size: 13px;
  margin: 12px 0 14px !important;
}
.welcome-actions { display: flex; flex-direction: column; gap: 8px; }
.welcome-actions .btn-ok,
.welcome-actions .btn-cancel,
.welcome-actions .btn-ghost {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line) !important;
}

/* 全屏图片预览（与加密端一致） */
body.lb-open {
  overflow: hidden;
  touch-action: none;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.96);
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
}
.lightbox[hidden] {
  display: none !important;
}
.lb-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.lb-counter {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}
.lb-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.lb-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lb-btn:active { opacity: 0.75; }
.lb-close { font-size: 28px; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 64px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.lb-prev { left: max(6px, env(safe-area-inset-left)); }
.lb-next { right: max(6px, env(safe-area-inset-right)); }
.lb-nav[hidden] { display: none !important; }
.lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.lb-img {
  display: block;
  width: 100vw;
  max-width: 100vw;
  height: auto;
  max-height: 100vh;
  max-height: 100dvh;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

@media (min-width: 720px) {
  .thumb-slot { width: 80px; height: 80px; }
  .name-thumbs-skel i { width: 80px; height: 80px; }
}

.fav-mark {
  display: inline-block;
  margin-left: 6px;
  color: #f0c14b;
  font-size: 0.95em;
  vertical-align: middle;
}

.name-thumbs-skel {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.name-thumbs-skel i {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(90deg, #1a222c 0%, #243040 50%, #1a222c 100%);
  background-size: 200% 100%;
  animation: skel 1.1s ease-in-out infinite;
  flex: 0 0 auto;
}
@keyframes skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* 底部导航 */
.shop-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  border-top: 1px solid var(--line);
  background: rgba(15, 20, 25, 0.96);
  backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.shop-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 650;
}
.shop-tab-ico {
  font-size: 18px;
  line-height: 1;
}
.shop-tab.is-active {
  color: var(--accent);
}

/* 赚积分 */
.earn-page { padding-bottom: 24px; }
.earn-ref {
  margin: 0 0 14px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.earn-qr-mobile {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}
.earn-qr-mobile img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
}
.earn-link {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.45;
}
.earn-tier {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 650;
}
.earn-tier.is-boost { color: #f0c14b; }
.earn-rate-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.earn-rate-list b { color: var(--accent); }
.earn-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.earn-stats > div {
  background: #121820;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.earn-stats b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.earn-stats span {
  color: var(--muted);
  font-size: 12px;
}
.earn-rules {
  margin: 0;
  padding-left: 18px;
  color: #c5d0dc;
  font-size: 13px;
  line-height: 1.65;
}
.earn-rules b { color: var(--accent); }
@media (min-width: 980px) {
  .earn-qr-mobile { display: none; }
}
.me-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.me-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.me-code {
  margin: 0 0 12px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px;
  word-break: break-all;
  line-height: 1.4;
}
.me-credit {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.me-credit b { font-weight: inherit; }
.me-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.me-actions .btn-ok,
.me-actions .btn-ghost {
  flex: 1;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border: 0;
}
.me-actions .btn-ghost {
  background: #243040;
  color: var(--text);
}
.me-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.me-stat { margin: 0 0 8px; font-size: 16px; }
.me-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.me-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.me-row-head .me-label { margin-bottom: 0; }
.me-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.me-fav-list {
  list-style: none;
  margin: 12px 0 8px;
  padding: 0;
}
.me-fav-list li {
  border-top: 1px solid var(--line);
}
.me-fav-list a {
  display: block;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.me-empty {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

/* 详情页右侧悬浮：上一条 / 下一条 / 收藏 */
.shop-fab {
  position: fixed;
  right: 12px;
  bottom: 88px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 72px;
}
.shop-fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(26, 34, 44, 0.94);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.shop-fab-btn:active { opacity: 0.85; }
.shop-fab-btn.is-disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}
.shop-fab-fav.is-on {
  background: rgba(240, 193, 75, 0.18);
  border-color: rgba(240, 193, 75, 0.5);
  color: #f0c14b;
}
@media (min-width: 1100px) {
  .shop-fab {
    right: 28px;
    bottom: 120px;
  }
}
