/* Cupid love — 深色烫金移动端 */
:root {
  --bg: #121212;
  --bg-elevated: #1a1a1a;
  --bg-card: #222222;
  --gold: #d4af37;
  --gold-soft: #c9a227;
  --gold-bright: #f0d78c;
  --gold-grad: linear-gradient(135deg, #f5e6b8 0%, #d4af37 45%, #a67c00 100%);
  --gold-grad-btn: linear-gradient(180deg, #e8c86a 0%, #b8860b 100%);
  --text: #f5f0e6;
  --muted: #9a9080;
  --line: rgba(212, 175, 55, 0.22);
  --danger: #c45c5c;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-brand: "Cinzel", "Noto Serif SC", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--gold-bright); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* 全局表单控件：深底亮字，保证输入清晰 */
.page input[type="text"],
.page input[type="number"],
.page input[type="password"],
.page input[type="email"],
.page input[type="tel"],
.page input[type="search"],
.page input:not([type]),
.page select,
.page textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212,175,55,0.35);
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  color: #f5f0e6 !important;
  caret-color: var(--gold-bright);
  -webkit-text-fill-color: #f5f0e6;
  font-size: 16px; /* 避免 iOS 自动放大导致错位 */
  line-height: 1.4;
}
.page input::placeholder,
.page textarea::placeholder {
  color: #8a8070 !important;
  -webkit-text-fill-color: #8a8070 !important;
  opacity: 1;
  line-height: 1.4;
}
.page input:focus,
.page select:focus,
.page textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.18);
}
/* 浏览器自动填充 / 粘贴记录：禁止变白 */
.page input:-webkit-autofill,
.page input:-webkit-autofill:hover,
.page input:-webkit-autofill:focus,
.page input:-webkit-autofill:active,
.page textarea:-webkit-autofill,
.page select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  -webkit-text-fill-color: #f5f0e6 !important;
  caret-color: var(--gold-bright);
  transition: background-color 99999s ease-out 0s;
  background-color: #1a1a1a !important;
}

.app-shell {
  width: min(480px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 120% 40% at 50% -10%, rgba(212,175,55,0.12), transparent 55%),
    var(--bg);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
  position: relative;
}
body.no-tab .app-shell { padding-bottom: 16px; }
body.admin-page .app-shell { width: min(1100px, 100%); padding-bottom: 24px; }

/* Top bar */
.app-top {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px 8px;
  position: sticky; top: 0; z-index: 40;
  background: rgba(18,18,18,0.92);
  backdrop-filter: blur(10px);
}
.app-top .top-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-bright); border: 1px solid rgba(212,175,55,0.45);
  background: rgba(0,0,0,0.25); flex-shrink: 0;
}
.back-btn:active { opacity: 0.75; }
.top-page-title {
  flex: 1; text-align: center; color: var(--gold-bright);
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.03em;
  margin-right: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-lockup {
  display: flex; align-items: center; gap: 8px; color: var(--text);
  margin-right: auto;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--gold-grad);
  display: grid; place-items: center;
  color: #1a1200; font-size: 16px; box-shadow: 0 0 16px rgba(212,175,55,0.35);
}
.brand-name {
  font-family: var(--font-brand);
  font-size: 1.15rem; letter-spacing: 0.04em;
  background: var(--gold-grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; font-weight: 600;
}
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-card);
  color: var(--gold); display: grid; place-items: center;
  cursor: pointer; font-size: 1.05rem;
}
.icon-btn.active { box-shadow: 0 0 12px rgba(212,175,55,0.45); border-color: var(--gold); }

/* Page pad */
.page { padding: 0 14px 8px; }
.flash {
  margin: 8px 14px; padding: 10px 12px; border-radius: 10px; font-size: 0.9rem;
}
.flash-success { background: rgba(61,107,92,0.35); color: #b8e0d0; border: 1px solid rgba(120,180,150,0.3); }
.flash-error { background: rgba(196,92,92,0.25); color: #f0c0c0; border: 1px solid rgba(196,92,92,0.35); }

/* Hero banner */
.cupid-banner {
  margin: 6px 0 12px;
  border-radius: 14px;
  padding: 22px 18px;
  background: var(--gold-grad);
  color: #2a1c00;
  box-shadow: 0 10px 28px rgba(212,175,55,0.25);
  position: relative; overflow: hidden;
  animation: riseIn 0.7s ease both;
}
.cupid-banner::after {
  content: ""; position: absolute; right: -20px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.cupid-banner h1 {
  margin: 0 0 6px; font-size: 1.35rem; font-weight: 700; position: relative; z-index: 1;
}
.cupid-banner p { margin: 0; font-size: 0.88rem; opacity: 0.85; position: relative; z-index: 1; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Notice — 单行滚动 */
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; margin-bottom: 14px;
  font-size: 0.85rem; color: var(--muted);
  overflow: hidden;
}
.notice-bar .speaker { color: var(--gold); flex-shrink: 0; cursor: pointer; }
.notice-track {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  height: 1.35em;
  line-height: 1.35em;
  white-space: nowrap;
}
.notice-marquee {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: noticeScroll 18s linear infinite;
  will-change: transform;
}
.notice-marquee span {
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes noticeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Quick entries */
.quick-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 18px;
}
.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 12px;
  text-align: center; color: var(--text);
  box-shadow: 0 0 20px rgba(212,175,55,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: riseIn 0.75s ease both;
}
.quick-card:nth-child(2) { animation-delay: 0.08s; }
.quick-card:active { transform: scale(0.98); }
.quick-card .qi {
  width: 42px; height: 42px; margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(212,175,55,0.12);
  display: grid; place-items: center;
  color: var(--gold); font-size: 1.25rem;
  border: 1px solid var(--line);
}
.quick-card strong { display: block; font-size: 0.95rem; font-weight: 600; }

/* Section title */
.sec-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 8px 0 12px;
}
.sec-title h2 {
  margin: 0; font-size: 1.05rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.sec-title h2::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: var(--gold-grad);
}
.sec-title a { font-size: 0.82rem; color: var(--muted); }

/* 当前地区 — 大气纯文字 */
.region-hero {
  display: block;
  width: 100%;
  margin: 4px 0 22px;
  padding: 30px 22px 26px;
  border: none;
  border-radius: 0;
  text-align: center;
  cursor: pointer;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% -10%, rgba(212,175,55,0.22), transparent 60%),
    linear-gradient(180deg, #1c1812 0%, #141210 55%, #121212 100%);
  border-top: 1px solid rgba(212,175,55,0.5);
  border-bottom: 1px solid rgba(212,175,55,0.22);
  box-shadow: inset 0 1px 0 rgba(255,230,160,0.08);
  animation: riseIn 0.75s ease both;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.region-hero::before,
.region-hero::after {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212,175,55,0.45), transparent);
  opacity: 0.7;
  pointer-events: none;
}
.region-hero::before { left: 14px; }
.region-hero::after { right: 14px; }
.region-hero:active {
  background:
    radial-gradient(90% 70% at 50% -10%, rgba(212,175,55,0.28), transparent 60%),
    linear-gradient(180deg, #221c14 0%, #161310 100%);
}
.region-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #a89878;
  margin-bottom: 12px;
  font-weight: 500;
}
.region-name {
  display: block;
  font-family: var(--font-brand);
  font-size: clamp(1.65rem, 7vw, 2.15rem);
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  line-height: 1.15;
  text-shadow: 0 0 28px rgba(212,175,55,0.18);
}
.region-rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: 16px auto 12px;
  background: linear-gradient(90deg, transparent, #e6c86a, transparent);
}
.region-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

/* 旧地图样式保留兼容 */
.region-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 18px;
}
.map-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid rgba(212,175,55,0.35);
  min-height: 160px;
  display: grid; place-items: center;
  cursor: pointer;
}
.map-frame svg { width: 92%; height: auto; opacity: 0.9; }
.map-frame .map-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px;
  text-align: center; font-size: 0.85rem; color: var(--gold-bright);
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

/* 热门用户：向左慢速循环滚动 */
.mm-marquee {
  overflow: hidden;
  padding-bottom: 6px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.mm-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: mmSlide var(--mm-duration, 36s) linear infinite;
  will-change: transform;
}
.mm-marquee:hover .mm-track,
.mm-marquee:focus-within .mm-track {
  animation-play-state: paused;
}
@keyframes mmSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mm-track { animation: none; }
  .mm-marquee { overflow-x: auto; }
}
.mm-card {
  flex: 0 0 120px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
}
.mm-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #333; }
.mm-card .mm-info { padding: 8px; font-size: 0.8rem; }
.mm-card .mm-info strong { display: block; color: var(--gold-bright); }

/* 首页精选推荐卡片 */
.reco-list { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.reco-card {
  background: var(--bg-card, var(--bg-elevated));
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 16px;
  padding: 14px;
  animation: riseIn 0.55s ease both;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.reco-card:nth-child(2) { animation-delay: 0.05s; }
.reco-card:nth-child(3) { animation-delay: 0.1s; }
.reco-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  margin-bottom: 12px;
}
.reco-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.reco-gender { font-weight: 700; font-size: 0.95rem; color: var(--gold-bright); }
.reco-gender.m { color: #7eb6ff; }
.reco-gender.f { color: #f0a0b8; }
.reco-badge {
  font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; font-weight: 600;
}
.reco-badge.ok { background: rgba(90,160,220,0.2); color: #9fd0ff; border: 1px solid rgba(120,180,230,0.35); }
.reco-badge.vip { background: rgba(212,175,55,0.18); color: var(--gold-bright); border: 1px solid rgba(212,175,55,0.4); }
.reco-idx {
  font-size: 0.75rem; color: #c9b8e8; background: rgba(120,90,180,0.35);
  padding: 2px 8px; border-radius: 8px; font-weight: 700;
}
.reco-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px;
  margin-bottom: 12px;
}
.reco-grid span {
  display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 2px;
}
.reco-grid strong { color: #eee; font-size: 0.9rem; font-weight: 600; }
.reco-body {
  display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start;
}
.reco-bio {
  flex: 1; margin: 0; font-size: 0.85rem; color: #c8c8c8; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.reco-thumb {
  width: 72px; flex-shrink: 0; position: relative; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
}
.reco-thumb img { width: 72px; height: 72px; object-fit: cover; display: block; filter: blur(1.5px); }
.reco-thumb span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55); color: #ddd; font-size: 0.65rem;
  text-align: center; padding: 2px 0;
}
.reco-actions {
  display: flex; align-items: center; gap: 8px;
}
.reco-mini-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(212,175,55,0.45); flex-shrink: 0;
}
.reco-btn-ghost, .reco-btn-solid {
  flex: 1; text-align: center; padding: 10px 8px; font-size: 0.82rem;
  border-radius: 10px; font-weight: 600;
}
.reco-btn-ghost {
  background: transparent; color: var(--gold-bright);
  border: 1px solid var(--gold);
}
.reco-btn-solid {
  background: var(--gold-grad); color: #1a1200; border: none;
}
.contact-lock-box {
  margin-top: 10px; padding: 16px 14px;
  border: 1px dashed rgba(212,175,55,0.4); border-radius: 12px;
  background: rgba(212,175,55,0.06);
  text-align: center;
}
.contact-lock-box p { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.contact-lock-box .btn { margin: 4px auto 0; min-width: 140px; }
.contact-lock-progress {
  color: var(--gold-bright) !important; font-size: 1.2rem !important; font-weight: 700 !important;
}

/* Bottom tab — 三栏均分居中 */
.tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(480px, 100%);
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding: 0 4px;
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  justify-items: stretch;
  background: rgba(20,20,20,0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 50;
  box-sizing: border-box;
}
body.no-tab .tabbar, body.admin-page .tabbar { display: none; }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 0.72rem;
  padding: 6px 4px 4px;
  min-width: 0;
  text-align: center;
}
.tabbar a .ti { font-size: 1.25rem; line-height: 1; display:flex; align-items:center; justify-content:center; height:24px; width: 100%; }
.tabbar a .ti svg { display:block; margin: 0 auto; }
.tabbar a span[data-i18n] { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar a.active { color: var(--gold-bright); }
.tabbar a.active .ti { text-shadow: 0 0 10px rgba(212,175,55,0.5); }

.sheet .close-x {
  border: 0; background: none; color: var(--muted);
  width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%;
  flex-shrink: 0;
}
.sheet .close-x:active { background: rgba(255,255,255,0.06); color: var(--text); }
.sheet .close-x svg { display: block; }

/* Sheets */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72);
  z-index: 99999; display: none; align-items: flex-end; justify-content: center;
}
.sheet-mask.open {
  display: flex !important;
}
.sheet {
  width: min(480px, 100%);
  background: #1e1e1e;
  border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--line);
  padding: 16px 16px calc(20px + var(--safe-bottom));
  max-height: 82vh; overflow-y: auto;
  animation: sheetUp 0.28s ease;
  pointer-events: auto;
}
.cs-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cs-phone-line { margin: 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.cs-phone-line strong { color: var(--gold-bright); font-size: 1.05rem; }

/* 在线客服弹层：居中 + 联系方式 + 发送图标 */
.sheet-cs { text-align: center; }
.sheet-cs .cs-sheet-title {
  justify-content: center;
  position: relative;
  padding-right: 36px;
}
.sheet-cs .cs-sheet-title .close-x {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.sheet-cs .cs-chat-title {
  justify-content: center;
  margin-top: 16px;
}
.sheet-cs .cs-chat-title h2 {
  justify-content: center;
  width: 100%;
}
.sheet-cs .cs-chat-title h2::before {
  display: none;
}
.cs-contact-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 2px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
  overflow: hidden;
}
.cs-contact-platform {
  font-size: 0.78rem;
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.cs-contact-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(212,175,55,0.55);
  flex-shrink: 0;
}
.cs-contact-value {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.cs-copy-btn {
  border: none;
  background: transparent;
  color: rgba(232,212,139,0.85);
  padding: 0;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.9;
  border-bottom: 1px solid rgba(212,175,55,0.35);
  border-radius: 0;
  line-height: 1.2;
}
.cs-copy-btn:active { opacity: 0.6; }
.sheet-cs .chat-form {
  align-items: center;
}
.cs-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-grad);
  color: #1a1200;
  cursor: pointer;
  flex-shrink: 0;
}
.cs-send-btn:active { opacity: 0.9; transform: scale(0.96); }
.cs-send-btn svg { display: block; }
.sheet-cs .cs-chat-box .cs-welcome-bubble {
  text-align: center;
  align-self: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.sheet-cs .cs-chat-box .empty {
  text-align: center;
  margin: auto 0;
}
.map-svg-wrap { width: 100%; padding: 12px 8px 28px; }
.map-svg-wrap svg { width: 100%; height: auto; display: block; }
.icon-btn { position: relative; z-index: 60; cursor: pointer; }
.region-box { cursor: pointer; }
@keyframes sheetUp {
  from { transform: translateY(40px); opacity: 0.5; }
  to { transform: none; opacity: 1; }
}
.sheet h3 {
  margin: 0 0 12px; font-size: 1.05rem; color: var(--gold-bright);
  display: flex; justify-content: space-between; align-items: center;
}
.lang-grid, .region-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.lang-grid button, .region-grid button {
  padding: 12px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-card);
  color: var(--text); cursor: pointer; text-align: left;
}
.lang-grid button.active, .region-grid button.active {
  border-color: var(--gold); color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* Forms / lists reuse */
.auth-wrap { padding: 24px 14px; }
.auth-panel {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px;
}
.auth-panel h1 { margin: 0 0 4px; font-size: 1.4rem; color: var(--gold-bright); }
.auth-panel .sub { color: var(--muted); margin: 0 0 16px; font-size: 0.9rem; }

/* —— 未登录：登录/注册切换（布局参照截图，颜色跟全站烫金） —— */
body.auth-page .page { padding-top: 8px; }

.auth-gate {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px 28px;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(212, 175, 55, 0.08);
  padding: 26px 22px 24px;
  color: var(--text);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.auth-tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 10px 8px 12px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  position: relative;
}
.auth-tab.active {
  color: var(--gold-bright);
  font-weight: 700;
}
.auth-tab.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--gold-grad);
}
.auth-pane { display: none; }
.auth-pane.show { display: block; animation: authFade .22s ease; }
@keyframes authFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.auth-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(196, 92, 92, 0.15);
  color: #e8a0a0;
  font-size: 0.88rem;
  border: 1px solid rgba(196, 92, 92, 0.35);
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-field {
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
}
.auth-field input,
.auth-field select {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  color: #f5f0e6 !important;
  -webkit-text-fill-color: #f5f0e6 !important;
  caret-color: var(--gold-bright);
  font-size: 16px;
  line-height: 48px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.auth-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a8070' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  color-scheme: dark;
}
.auth-field.has-eye input {
  padding-right: 44px;
}
.auth-field input::placeholder {
  color: #8a8070 !important;
  -webkit-text-fill-color: #8a8070 !important;
  opacity: 1;
  line-height: normal;
  font-size: 16px;
  position: relative;
  top: 0;
  transform: none;
}
.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.18);
}
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus,
.auth-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  -webkit-text-fill-color: #f5f0e6 !important;
  caret-color: var(--gold-bright);
  transition: background-color 99999s ease-out 0s;
  background-color: #1a1a1a !important;
}
.auth-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9080' stroke-width='1.8'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/18px no-repeat;
  cursor: pointer;
  z-index: 2;
}
.auth-eye.on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d78c' stroke-width='1.8'%3E%3Cpath d='M17.94 17.94A10.94 10.94 0 0 1 12 19c-7 0-11-7-11-7a21.8 21.8 0 0 1 5.06-5.94M9.9 4.24A10.9 10.9 0 0 1 12 4c7 0 11 7 11 7a21.9 21.9 0 0 1-2.16 3.19M1 1l22 22M9.88 9.88A3 3 0 0 0 14.12 14'/%3E%3C/svg%3E");
}
.auth-submit {
  margin-top: 6px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--gold-grad-btn);
  color: #1a1408;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.28);
  transition: opacity .15s, transform .1s;
}
.auth-submit:hover { opacity: 0.94; }
.auth-submit:active { transform: translateY(0.5px); }

@media (max-width: 420px) {
  .auth-card { padding: 22px 16px 20px; border-radius: 16px; }
  .auth-tab { font-size: 0.95rem; }
  .auth-row { grid-template-columns: 1fr; }
  .auth-field input,
  .auth-field select {
    height: 46px;
    line-height: 46px;
    font-size: 16px;
  }
}
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px;
  border: 1px solid rgba(212,175,55,0.35); background: #1a1a1a; color: #f5f0e6;
  -webkit-text-fill-color: #f5f0e6;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-hint { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; font-weight: 600; font-size: 0.95rem;
  text-align: center;
}
.btn-block {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  text-align: center;
}
/* 页面内独立按钮默认通栏居中 */
.page > .btn,
.page > a.btn,
.auth-panel > .btn,
.auth-panel > a.btn,
.mine-list-card > .btn,
.mine-list-card form > .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.btn-primary {
  background: var(--gold-grad-btn); color: #1a1200 !important; border: 0;
  box-shadow: 0 6px 18px rgba(212,175,55,0.28);
}
.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--gold-bright) !important;
}
.btn-sage { background: #3d6b5c; color: #fff !important; }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; }

.member-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.member-tile {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 3/4; background: #2a2a2a; border: 1px solid var(--line);
  color: #fff;
}
.member-tile img { width: 100%; height: 100%; object-fit: cover; }
.member-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 8px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.member-meta h3 { margin: 0; font-size: 0.92rem; }
.member-meta span { font-size: 0.72rem; opacity: 0.85; }

.list-panel {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-bottom: 1px solid var(--line); color: inherit;
}
.list-item:last-child { border-bottom: 0; }
.list-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; border: 1px solid var(--line); background: #333;
}
.list-avatar img { width: 100%; height: 100%; object-fit: cover; }
.list-body { flex: 1; min-width: 0; }
.list-body h3 { margin: 0; font-size: 0.95rem; }
.list-body p { margin: 2px 0 0; color: var(--muted); font-size: 0.8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-time { color: var(--muted); font-size: 0.75rem; }
.badge {
  display: inline-flex; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--gold); color: #1a1200;
  font-size: 0.65rem; align-items: center; justify-content: center; margin-left: 4px;
}

.profile-hero { padding: 8px 0 16px; }
.profile-photo {
  border-radius: 14px; overflow: hidden; aspect-ratio: 3/4;
  max-width: 280px; margin: 0 auto 14px; border: 1px solid var(--line);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { text-align: center; }
.profile-info h1 {
  margin: 0 0 6px; font-size: 1.5rem; color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.profile-sub { color: var(--muted); margin: 0 0 14px; font-size: 0.88rem; }
.dating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
  text-align: center;
}
.dating-cell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 8px;
}
.dating-cell span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.dating-cell strong {
  color: var(--gold-bright);
  font-size: 1rem;
  font-weight: 700;
}
.dating-cell strong small { font-size: 0.78rem; font-weight: 500; margin-left: 2px; color: var(--muted); }
.dating-block {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.dating-block h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--gold-bright);
  text-align: center;
  letter-spacing: 0.08em;
}
.dating-block p {
  margin: 0;
  color: #ddd;
  font-size: 0.9rem;
  line-height: 1.55;
}
.dating-mate-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.dating-mate-meta strong { color: var(--gold-bright); }
.dating-contact { margin: 4px 0 8px; text-align: center; }
.dating-contact h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}
.dating-muted { color: var(--muted); font-size: 0.9rem; margin: 0; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.profile-tags-center { justify-content: center; }
.tag {
  padding: 4px 10px; border-radius: 999px; font-size: 0.78rem;
  background: rgba(212,175,55,0.12); color: var(--gold-bright); border: 1px solid var(--line);
}
.profile-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}
.profile-actions .btn { width: 100%; justify-content: center; }
.empty { text-align: center; padding: 40px 12px; color: var(--muted); }

.chat-wrap { padding-bottom: 8px; }
.chat-box {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; display: flex; flex-direction: column; min-height: 420px;
}
.chat-messages {
  flex: 1; padding: 12px; overflow-y: auto; max-height: 52vh;
  display: flex; flex-direction: column; gap: 8px;
}
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 14px; font-size: 0.9rem; color: var(--text); word-break: break-word; }
.bubble.me { align-self: flex-end; background: var(--gold-grad); color: #1a1200; }
.bubble.them { align-self: flex-start; background: #2a2a2a; border: 1px solid var(--line); color: #f0ebe0; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; padding: 10px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #151515;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: end; }
.filters .form-group { margin: 0; min-width: 100px; flex: 1; }

/* 约会大厅 */
.hall-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.12em;
  padding: 6px 0 14px;
}
.hall-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hall-chips::-webkit-scrollbar { display: none; }
.hall-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: #2a2a2a;
  color: #bdb7a8;
  font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.hall-chip.active {
  background: linear-gradient(180deg, #f0d78c, #d4af37);
  color: #1a1200;
  font-weight: 700;
  border-color: transparent;
}
.hall-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.hall-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
  border: 1px solid rgba(212,175,55,0.18);
  color: #f5f0e6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: riseIn 0.45s ease both;
}
.hall-card:nth-child(2) { animation-delay: 0.05s; }
.hall-card:nth-child(3) { animation-delay: 0.1s; }
.hall-card-main { flex: 1; min-width: 0; }
.hall-name {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0d78c, #d4af37);
  color: #1a1200;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.hall-rows {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(245,240,230,0.92);
}
.hall-stats {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #9a9080;
}
.hall-avatar-wrap {
  position: relative;
  width: 92px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}
.hall-avatar-box {
  position: relative;
  width: 84px;
  height: 84px;
}
.hall-avatar-box.is-locked .hall-avatar {
  filter: blur(8px);
  transform: scale(1.08);
}
.hall-lock-tip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin: auto;
  width: max-content;
  max-width: 78px;
  height: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}
.hall-guest-tip {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.hall-card.is-locked .is-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.hall-verified {
  position: static;
  z-index: 2;
  font-size: 0.7rem;
  color: #1a1200;
  background: linear-gradient(180deg, #f0d78c, #d4af37);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.3;
  max-width: 100%;
}
.hall-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.55);
  background: #333;
  margin-top: 0;
  display: block;
}
.hall-avatar-box .hall-avatar {
  width: 100%;
  height: 100%;
}
.hall-pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 8px;
}

.verify-card, .mine-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; margin-bottom: 12px;
}
.verify-card h3, .mine-card h3 { margin: 0 0 8px; color: var(--gold-bright); font-size: 1rem; }
.mine-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text);
}
.mine-menu a:last-child { border-bottom: 0; }
.mine-menu a span { color: var(--muted); }

.mine-page-title {
  text-align: center;
  color: var(--gold-bright);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 4px 0 16px;
  letter-spacing: 0.04em;
}
.mine-profile-card {
  background: var(--bg-card);
  border: 1px solid rgba(212,175,55,0.55);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.mine-profile-top { display: flex; gap: 14px; align-items: center; }
.locale-sec {
  color: var(--gold-bright);
  font-size: 0.9rem;
  margin: 0 0 8px;
  font-weight: 600;
}
.mine-avatar {
  position: relative;
  cursor: pointer;
  width: 64px; height: 64px; border-radius: 50%; overflow: visible;
  border: 2px solid rgba(212,175,55,0.6); flex-shrink: 0;
}
.mine-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}
.mine-avatar::after {
  content: '✎';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a1a1a;
}
.mine-nick-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mine-nick { color: #fff; font-size: 1.15rem; }
.mine-badge {
  font-size: 0.72rem; color: #bbb; background: #2a2a2a;
  border: 1px solid #444; border-radius: 999px; padding: 2px 8px;
}
.mine-id { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.mine-invite-box {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 12px; padding: 10px 12px;
  background: rgba(0,0,0,0.25);
}
.mine-invite-label { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 2px; }
.mine-invite-left strong { color: var(--gold-bright); letter-spacing: 0.06em; }
.mine-copy-btn {
  border: 1px solid var(--gold);
  background: transparent; color: var(--gold-bright);
  border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; cursor: pointer;
}
.mine-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px;
}
.mine-grid-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 12px; padding: 14px 6px;
  color: #eee; font-size: 0.78rem; text-align: center;
  background: var(--bg-card); min-height: 84px;
}
.mine-grid-ico { font-size: 1.35rem; line-height: 1; }
.mine-section-label {
  color: var(--muted); font-size: 0.82rem; margin: 6px 2px 8px;
}
.mine-list-card {
  background: var(--bg-card);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 14px; margin-bottom: 14px; overflow: hidden;
}
.mine-list-card a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px; color: #eee; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mine-list-card a:last-child { border-bottom: 0; }
.mine-list-ico {
  width: 22px; text-align: center; color: var(--gold-bright); flex-shrink: 0;
}
.mine-list-card .chev { margin-left: auto; color: #777; }
.mine-static-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px; border-bottom: 1px solid rgba(255,255,255,0.06); color: #ddd;
}
.mine-static-row:last-child { border-bottom: 0; }
.mine-static-row strong { color: var(--gold-bright); }
.wallet-card {
  background: linear-gradient(145deg, #2a2418, #1a1a1a);
  border: 1px solid rgba(212,175,55,0.55);
  border-radius: 16px; padding: 28px 20px; text-align: center; margin-bottom: 14px;
}
.wallet-label { color: var(--muted); font-size: 0.9rem; }
.wallet-amount { color: var(--gold-bright); font-size: 2.4rem; font-weight: 700; margin-top: 8px; }
.order-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; color: #eee;
}
.order-card-row {
  display: flex; align-items: stretch; gap: 12px; padding: 12px;
}
.order-thumb {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.order-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.order-thumb-ph {
  font-size: 1.1rem; color: var(--gold-bright); font-weight: 700;
}
.order-body { flex: 1; min-width: 0; }
.order-card .muted { color: var(--muted); font-size: 0.82rem; margin: 4px 0 8px; }
.order-meta { display: flex; justify-content: space-between; align-items: center; color: var(--gold-bright); font-size: 0.9rem; gap: 8px; }
.order-st { font-weight: 700; }
.order-st-completed {
  color: #16a34a !important;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
}
.order-st-paid { color: var(--gold-bright); }
.order-st-pending { color: #eab308; }
.order-st-cancelled,
.order-st-refunded { color: #9a9080; }

/* 会员卡 */
.mcard-page { padding-bottom: 20px; }
.mcard {
  position: relative; overflow: hidden;
  margin: 8px 0 16px; padding: 28px 22px 20px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(245,230,184,0.16), transparent 40%),
    linear-gradient(165deg, #2a2214 0%, #12100c 55%, #0c0b09 100%);
  border: 1px solid rgba(212,175,55,0.42);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 0 40px rgba(212,175,55,0.08);
  min-height: 180px;
}
.mcard-glow {
  pointer-events: none;
  position: absolute; top: -30%; right: -10%; width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(240,215,140,0.22), transparent 70%);
}
.mcard-brand {
  position: relative;
  font-family: var(--font-brand);
  font-size: 1.15rem; letter-spacing: 0.06em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.mcard-sub {
  position: relative;
  font-size: 0.75rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #8a8070; margin-bottom: 8px;
}
.mcard-no {
  position: relative;
  font-family: var(--font-brand);
  font-size: 2.4rem; font-weight: 600; letter-spacing: 0.28em;
  color: var(--gold-bright);
  text-shadow: 0 2px 20px rgba(212,175,55,0.35);
  margin-bottom: 22px;
}
.mcard-foot {
  position: relative;
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 0.82rem; color: #b8a888;
  border-top: 1px solid rgba(212,175,55,0.2);
  padding-top: 12px;
}
.mcard-tip {
  text-align: center; color: var(--muted); font-size: 0.82rem; margin: 0 0 14px;
}
.mcard-tip-warn { color: #e8a0a0; }
.mcard-status {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 999px;
}
.mcard-status.off {
  color: #e8a0a0;
  background: rgba(196,92,92,0.12);
  border: 1px solid rgba(196,92,92,0.35);
}
.mcard-status.on {
  color: #1a1200;
  background: var(--gold-grad);
  border: 1px solid rgba(212,175,55,0.5);
}
.mcard.is-off .mcard-no { opacity: 0.72; }
.auth-pay-hint {
  margin: -4px 0 12px;
  font-size: 0.75rem; color: #8a8070; line-height: 1.4;
  text-align: left;
}

/* 情感故事 · 列表 */
.article-feed { display: flex; flex-direction: column; gap: 12px; }
a.article-card {
  display: flex; gap: 12px; align-items: flex-start;
  text-decoration: none; color: inherit;
  background:
    linear-gradient(165deg, rgba(212,175,55,0.08), transparent 40%),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  animation: riseIn 0.45s ease both;
  transition: border-color .2s, transform .2s;
}
a.article-card:active { transform: scale(0.985); }
a.article-card:hover { border-color: rgba(212,175,55,0.45); }
.article-card-row { display: flex; }
.article-thumb {
  width: 76px; height: 76px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.article-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-thumb-ph {
  color: var(--gold); font-size: 1.25rem; opacity: 0.7;
}
.article-main { flex: 1; min-width: 0; }
.article-title {
  margin: 0 0 6px;
  font-size: 1rem; font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.35;
}
.article-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 0.72rem; color: var(--muted);
}
.article-excerpt {
  color: var(--muted);
  font-size: 0.84rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-go {
  display: inline-block; margin-top: 8px;
  font-size: 0.78rem; color: var(--gold-bright); font-weight: 600;
}

/* 情感故事 · 新闻详情 */
.news-article {
  max-width: 720px;
  margin: 0 auto 24px;
  animation: riseIn 0.4s ease both;
}
.news-head { margin-bottom: 16px; }
.news-title {
  margin: 0 0 12px;
  font-family: var(--font-brand);
  font-size: 1.45rem; font-weight: 600;
  line-height: 1.4; letter-spacing: 0.02em;
  color: var(--text);
}
.news-meta {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  font-size: 0.8rem; color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.news-author { color: var(--gold-bright); }
.news-cover {
  margin: 16px 0 20px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0c;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}
.news-cover img {
  width: 100%; height: auto; max-height: 420px;
  object-fit: cover; display: block;
}
.news-content {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
.news-content p {
  margin: 0 0 1.15em;
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: break-word;
}
.news-content p:first-child::first-letter {
  font-size: 1.35em;
  font-weight: 600;
  color: var(--gold-bright);
  margin-right: 1px;
}
.news-foot { margin-top: 28px; padding-top: 8px; }
.wheel-card {
  text-align: center; padding: 40px 20px;
  border: 1px solid rgba(212,175,55,0.45); border-radius: 16px;
  background: var(--bg-card);
}
.wheel-visual { font-size: 4rem; margin-bottom: 12px; }
.wheel-card h3 { color: var(--gold-bright); margin: 0 0 8px; }
.wheel-card p { color: var(--muted); margin: 0 0 20px; }
.cs-tip-banner {
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  color: #e8d48b; border-radius: 10px; padding: 10px 12px;
  font-size: 0.85rem; margin-bottom: 10px; line-height: 1.45;
  text-align: center;
}
.cs-welcome-bubble {
  background: rgba(255,255,255,0.08); color: #ddd;
  border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
  font-size: 0.88rem; line-height: 1.45;
}
@media (max-width: 380px) {
  .mine-grid { gap: 6px; }
  .mine-grid-item { font-size: 0.7rem; padding: 12px 4px; }
}

/* VIP 我的页（图二） */
.vip-bal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 14px; padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.04));
  border: 1px solid rgba(212,175,55,0.28);
}
.vip-bal-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 2px; }
.vip-bal-num {
  font-size: 1.25rem; font-weight: 700; color: var(--gold-bright);
  font-family: var(--font-brand);
}
.vip-bal-num span { font-size: 0.75rem; font-weight: 600; opacity: 0.85; margin-left: 2px; }
.vip-pay-hint {
  margin: 0 0 12px; text-align: center;
  font-size: 0.82rem; color: var(--muted);
}
.vip-need-box {
  margin-top: 14px; padding: 16px 14px;
  border-radius: 14px;
  background: rgba(196,92,92,0.08);
  border: 1px solid rgba(196,92,92,0.3);
  text-align: center;
  animation: riseIn 0.35s ease both;
}
.vip-need-box p {
  margin: 0 0 12px; color: #e8a0a0; font-size: 0.92rem; font-weight: 600;
}
.vip-pkg-list {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px;
}
.vip-pkg-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-card);
}
.vip-pkg-row:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.25);
}
.vip-pkg-row input { flex-shrink: 0; accent-color: var(--gold); }
.vip-pkg-main { flex: 1; min-width: 0; }
.vip-pkg-main strong { color: var(--gold-bright); font-size: 0.92rem; }
.vip-pkg-main .tag { margin-left: 6px; vertical-align: middle; }
.vip-pkg-desc {
  display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px;
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.vip-pkg-days {
  display: inline-block; margin-top: 4px;
  font-size: 0.72rem; color: #8a8070;
}
.vip-pkg-price {
  flex-shrink: 0; font-weight: 700; color: var(--gold-bright); font-size: 0.95rem;
}

.vip-mine { padding-bottom: 8px; }
.vip-hello {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.vip-hello-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(212,175,55,0.65); cursor: pointer; flex-shrink: 0;
}
.vip-hello-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vip-hello-name { color: #fff; font-size: 1.05rem; font-weight: 600; }
.vip-level { color: var(--gold-bright); font-size: 0.85rem; margin-top: 2px; }
.vip-cs-btn { margin-left: auto; }
.vip-earn-box {
  display: flex; align-items: stretch;
  border: 1px solid rgba(212,175,55,0.55);
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #2a2418, #161616);
  margin-bottom: 12px;
}
.vip-earn-col { flex: 1; text-align: center; padding: 18px 10px; }
.vip-earn-num { color: var(--gold-bright); font-size: 1.45rem; font-weight: 700; }
.vip-earn-label { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.vip-earn-divider { width: 1px; background: rgba(212,175,55,0.35); }

/* 开始接单页 */
.task-page { padding-bottom: 8px; }
.task-stat-box { margin-bottom: 12px; }
.task-status-ok,
.task-status-wait {
  text-align: center;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.task-status-ok {
  background: rgba(125, 206, 160, 0.12);
  border: 1px solid rgba(125, 206, 160, 0.35);
  color: #9ad4b0;
}
.task-status-wait {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-bright);
  font-weight: 500;
}
.task-hint {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0 0 16px;
  padding: 0 2px;
  text-align: center;
}
.task-section-title {
  color: var(--gold-bright);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.task-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 36px 16px;
  border: 1px dashed rgba(212,175,55,0.25);
  border-radius: 12px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.02);
}
.task-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.task-card { margin: 0; }
.task-card-link {
  display: flex; gap: 12px; width: 100%;
  color: inherit; text-decoration: none;
  background: none; border: 0; padding: 0; margin: 0;
  text-align: left; cursor: pointer; font: inherit;
}
.task-card-cover {
  width: 72px; height: 72px; border-radius: 10px; object-fit: cover;
  flex-shrink: 0; border: 1px solid var(--line); background: #1a1a1a;
}
.task-card-cover-name {
  display: flex; align-items: center; justify-content: center;
  padding: 6px; text-align: center; font-size: 0.68rem; font-weight: 700;
  line-height: 1.25; color: var(--gold-bright);
  background: linear-gradient(180deg, #2a2214, #1a1a1a);
  overflow: hidden;
}
.task-card-body { flex: 1; min-width: 0; }
.task-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.task-card-head strong { color: var(--gold-bright); font-size: 0.95rem; }
.task-card-id { color: var(--muted); font-size: 0.78rem; }
.task-card-note { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.task-card-more { margin-top: 8px; font-size: 0.78rem; color: var(--gold); }
.task-reward { color: #7dcea0 !important; }
.task-card-form { margin-top: 12px; }
.task-detail-sheet { max-height: 88vh; }
.td-gallery {
  display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px;
  -webkit-overflow-scrolling: touch;
}
.td-gallery img {
  width: 160px; height: 160px; object-fit: cover; border-radius: 10px;
  flex-shrink: 0; border: 1px solid var(--line);
}
.td-nameplate {
  min-height: 140px; margin-bottom: 12px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  background: linear-gradient(180deg, #2a2214, #1a1a1a);
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--gold-bright); font-size: 1.15rem; font-weight: 700; line-height: 1.4;
}
.td-nameplate-sm { min-height: 88px; font-size: 1rem; }
.td-price { color: #ff4d4f; font-size: 1.45rem; font-weight: 700; }
.td-market { margin-left: 8px; color: #888; font-size: 0.9rem; text-decoration: line-through; font-weight: 500; }
.td-reward { margin-top: 4px; color: #7dcea0; font-size: 0.85rem; }
.td-title { margin: 10px 0 6px; font-size: 1.05rem; font-weight: 600; color: #f2f2f2; }
.td-note { color: var(--muted); font-size: 0.82rem; margin-bottom: 8px; }
.td-sec {
  margin: 14px 0 8px; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--gold-bright); font-weight: 600; font-size: 0.92rem;
}
.td-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin-bottom: 10px; }
.td-details { display: flex; flex-direction: column; margin: 0 -16px; }
.td-details img { width: 100%; display: block; }
.task-detail-buy { margin-top: 14px; position: sticky; bottom: 0; padding-top: 8px; background: #1e1e1e; }
.task-card-done { opacity: 0.92; }
.task-done-tag {
  font-size: 0.75rem; color: #7dcea0;
  border: 1px solid rgba(125,206,160,0.4);
  border-radius: 999px; padding: 2px 8px;
}
.vip-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.vip-action-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid rgba(212,175,55,0.45); border-radius: 12px;
  background: var(--bg-card); color: #eee; padding: 16px 8px; min-height: 88px;
  font-size: 0.9rem;
}
.vip-action-btn small { color: var(--gold-bright); font-size: 0.8rem; }
.vip-action-ico { font-size: 1.4rem; }
.vip-bar {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(212,175,55,0.5); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px;
  background: linear-gradient(90deg, #2c2416, #1a1a1a); color: #eee;
}
.vip-bar-ico { font-size: 1.4rem; }
.vip-bar strong { color: var(--gold-bright); display: block; }
.vip-bar div { font-size: 0.78rem; color: var(--muted); }
.vip-bar-pill {
  margin-left: auto; border: 1px solid var(--gold); color: var(--gold-bright);
  border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; white-space: nowrap;
}
.vip-bar-expire {
  font-size: 0.62rem;
  white-space: normal;
  text-align: right;
  max-width: 7.2rem;
  line-height: 1.25;
  border-radius: 10px;
  padding: 5px 8px;
  flex-shrink: 0;
}
.vip-menu { margin-bottom: 14px; }

.admin-layout { display: block; padding: 16px; }
.admin-side { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-side a {
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line);
  color: var(--text); background: var(--bg-card);
}
.admin-side a.active { border-color: var(--gold); color: var(--gold-bright); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px;
}
.stat strong { display: block; font-size: 1.4rem; color: var(--gold-bright); }
.stat span { font-size: 0.8rem; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #1a1a1a; color: var(--gold-bright); }

@media (min-width: 481px) {
  body:not(.admin-page) {
    background: #0a0a0a;
  }
  body:not(.admin-page) .app-shell {
    width: min(520px, 100%);
    box-shadow: 0 0 0 1px rgba(212,175,55,0.08), 0 20px 60px rgba(0,0,0,0.45);
    min-height: 100vh;
  }
  body:not(.admin-page) .tabbar,
  body:not(.admin-page) .sheet-mask .sheet {
    width: min(520px, 100%);
  }
}

@media (min-width: 768px) {
  body:not(.admin-page) .app-shell {
    width: min(640px, 100%);
  }
  body:not(.admin-page) .tabbar,
  body:not(.admin-page) .sheet-mask .sheet {
    width: min(640px, 100%);
  }
  .page { padding-left: 18px; padding-right: 18px; }
  .dating-grid { grid-template-columns: repeat(4, 1fr); }
  .reco-grid { gap: 12px 18px; }
  .hall-list { gap: 12px; }
  .profile-photo { max-width: 320px; }
  .quick-grid { gap: 14px; }
  .mine-grid { gap: 12px; }
}

@media (min-width: 1024px) {
  body:not(.admin-page) .app-shell {
    width: min(720px, 92vw);
  }
  body:not(.admin-page) .tabbar,
  body:not(.admin-page) .sheet-mask .sheet {
    width: min(720px, 92vw);
  }
  .cupid-banner h1 { font-size: 1.65rem; }
  .sec-title h2 { font-size: 1.15rem; }
}

/* 小屏手机紧凑适配 */
@media (max-width: 380px) {
  .mine-grid { gap: 6px; }
  .mine-grid-item { font-size: 0.7rem; padding: 12px 4px; }
  .dating-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dating-cell { padding: 10px 6px; }
  .reco-actions { flex-wrap: wrap; }
  .reco-btn-ghost, .reco-btn-solid { font-size: 0.78rem; padding: 9px 6px; }
  .page { padding-left: 12px; padding-right: 12px; }
  .btn { font-size: 0.9rem; }
}

/* 横屏手机：减少顶部浪费 */
@media (max-height: 500px) and (orientation: landscape) {
  .cupid-banner { padding: 18px 16px; }
  .profile-photo { max-width: 160px; aspect-ratio: 1; }
  .sheet { max-height: 88vh; }
}

/* 防止超宽内容撑破布局 */
img, video, svg, canvas { max-width: 100%; height: auto; }
.table-wrap, .ad-table, .hall-list, .reco-list { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }


.usdt-pay-box {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 12px;
  background: rgba(212,175,55,0.06);
}
.usdt-pay-row {
  display: flex; justify-content: space-between; gap: 8px;
  margin-bottom: 8px; color: var(--muted); font-size: 0.9rem;
}
.usdt-address {
  word-break: break-all;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--gold-bright);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 6px 0 10px;
  padding: 10px;
  background: #0d0d0d;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* —— 支付订单 · 奢华唤起层 —— */
body.pay-page .app-top,
body.pay-page .tabbar { display: none !important; }
body.pay-page .page {
  padding: 0 !important;
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(212,175,55,0.18), transparent 55%),
    radial-gradient(80% 50% at 100% 100%, rgba(120,80,20,0.12), transparent 50%),
    #0a0a0c;
}
.pay-summon {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  box-sizing: border-box;
}
.pay-summon.is-open { opacity: 1; pointer-events: auto; }
.pay-summon-mask {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(40,30,10,0.35), transparent 55%),
    rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pay-sheet {
  position: relative; z-index: 1;
  width: min(400px, 100%);
  max-height: min(92dvh, 820px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(255,230,170,0.06) 0%, transparent 28%),
    linear-gradient(180deg, #1c1812 0%, #0e0d0b 55%, #0a0908 100%);
  border: 1px solid rgba(212,175,55,0.38);
  box-shadow:
    0 0 0 1px rgba(255,220,140,0.06) inset,
    0 24px 56px rgba(0,0,0,0.55),
    0 0 60px rgba(212,175,55,0.08);
  transform: translateY(22px) scale(0.97);
  transition: transform .36s cubic-bezier(.22,.9,.3,1);
  text-align: center;
  box-sizing: border-box;
  animation: paySheetIn .45s ease both;
}
.pay-summon.is-open .pay-sheet { transform: none; }
@keyframes paySheetIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.pay-sheet-glow {
  pointer-events: none;
  position: absolute; top: -40%; left: 10%; right: 10%; height: 55%;
  background: radial-gradient(ellipse at center, rgba(240,215,140,0.16), transparent 70%);
  animation: payGlow 4.5s ease-in-out infinite alternate;
}
@keyframes payGlow {
  from { opacity: 0.55; transform: translateY(0); }
  to { opacity: 1; transform: translateY(8px); }
}
.pay-sheet-static {
  margin: 24px auto; border-radius: 22px;
  padding: 28px 20px; max-width: 400px;
  background: linear-gradient(180deg, #1c1812, #0e0d0b);
  border: 1px solid rgba(212,175,55,0.35);
  text-align: center;
}
.pay-done-mark {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.5rem; color: #1a1200; font-weight: 700;
  background: var(--gold-grad);
  box-shadow: 0 8px 24px rgba(212,175,55,0.35);
  animation: paySheetIn .5s ease both;
}
.pay-sheet-x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: #a89878;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.pay-sheet-x:hover { background: rgba(212,175,55,0.15); color: var(--gold-bright); }
.pay-brand {
  position: relative;
  margin: 4px 36px 8px;
  font-family: var(--font-brand);
  font-size: 1.45rem; font-weight: 600; letter-spacing: 0.04em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1.3;
  animation: payFadeUp .5s .05s ease both;
}
.pay-order-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.18);
  font-size: 0.72rem; color: #8a8070;
  animation: payFadeUp .5s .1s ease both;
}
.pay-order-val {
  color: #c8b896;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.02em;
}
@keyframes payFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.pay-hero {
  margin: 0 0 14px; padding: 16px 14px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(212,175,55,0.1), rgba(212,175,55,0.02));
  border: 1px solid rgba(212,175,55,0.28);
  animation: payFadeUp .5s .15s ease both;
}
.pay-hero-label {
  font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #9a9080; margin-bottom: 6px;
}
.pay-hero-row {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.pay-hero-num {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-brand);
}
.pay-hero-num strong {
  font-size: 2.15rem; font-weight: 600; line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0 2px 24px rgba(212,175,55,0.35);
}
.pay-hero-unit {
  font-size: 0.95rem; color: #d4af37; letter-spacing: 0.08em; font-weight: 600;
}
.pay-net-pill {
  display: inline-block; margin-top: 10px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.7rem; letter-spacing: 0.08em;
  color: #c9b88a;
  border: 1px solid rgba(212,175,55,0.3);
  background: rgba(0,0,0,0.25);
}
.pay-copy-sm {
  appearance: none; cursor: pointer;
  border: 1px solid rgba(212,175,55,0.45);
  background: rgba(212,175,55,0.08);
  color: var(--gold-bright); border-radius: 8px;
  padding: 5px 12px; font-size: 0.78rem; font-family: inherit;
  transition: background .2s, border-color .2s;
}
.pay-copy-sm:active { background: rgba(212,175,55,0.2); }
.pay-addr-bar {
  display: flex; align-items: stretch; gap: 0;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(212,175,55,0.4);
  background: #f7f2e8;
  margin-bottom: 12px;
  animation: payFadeUp .5s .2s ease both;
}
.pay-addr-bar input {
  flex: 1; min-width: 0; border: 0; margin: 0 !important;
  padding: 12px 12px !important;
  font-size: 0.76rem; color: #1a1510; background: #f7f2e8;
  font-family: ui-monospace, Consolas, monospace;
  text-align: left;
}
.pay-copy-btn {
  flex-shrink: 0; border: 0; cursor: pointer;
  padding: 0 14px;
  background: var(--gold-grad-btn); color: #1a1200;
  font-size: 0.84rem; font-weight: 700; font-family: inherit;
  white-space: nowrap;
}
.pay-timer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 12px;
  color: #b8a888; font-size: 0.88rem;
  animation: payFadeUp .5s .18s ease both;
}
.pay-timer-label { opacity: 0.85; }
.pay-timer strong {
  color: #f0d78c; font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.pay-timer.is-over strong { color: #e07070; }
.pay-warn {
  display: flex; gap: 8px; justify-content: center; align-items: flex-start;
  margin: 0 0 14px; padding: 10px 12px;
  border-radius: 10px;
  background: rgba(196,92,92,0.08);
  border: 1px solid rgba(196,92,92,0.28);
  color: #e8a0a0; font-size: 0.78rem; line-height: 1.45; text-align: left;
}
.pay-warn-dot {
  flex-shrink: 0; width: 7px; height: 7px; margin-top: 5px;
  border-radius: 50%; background: #c45c5c;
  box-shadow: 0 0 0 3px rgba(196,92,92,0.2);
}
.pay-qr-wrap {
  display: flex; flex-direction: column; align-items: center;
  margin: 0 0 8px;
  animation: payFadeUp .55s .25s ease both;
}
.pay-qr-ring {
  padding: 3px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(245,230,184,0.85), rgba(166,124,0,0.55), rgba(245,230,184,0.4));
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.pay-qrcode {
  width: 196px; height: 196px; padding: 10px;
  background: #fff; border-radius: 15px;
  display: grid; place-items: center;
}
.pay-qrcode img, .pay-qrcode canvas {
  width: 176px !important; height: 176px !important;
  display: block; margin: 0 auto;
}
.pay-qr-hint {
  margin-top: 8px;
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8a8070;
}
.pay-addr-foot {
  margin: 0 0 16px;
  font-size: 0.7rem; color: #7a7060;
  word-break: break-all; line-height: 1.45;
  font-family: ui-monospace, Consolas, monospace;
}
.pay-meta {
  text-align: left;
  margin: 0 0 14px; padding: 4px 2px;
  border-top: 1px solid rgba(212,175,55,0.18);
  border-bottom: 1px solid rgba(212,175,55,0.18);
  animation: payFadeUp .5s .3s ease both;
}
.pay-meta > div {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 11px 4px;
  color: #8a8070; font-size: 0.86rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pay-meta > div:last-child { border-bottom: 0; }
.pay-meta strong { color: #f0ebe0; font-weight: 600; }
.pay-meta-total strong,
.pay-meta-amt { color: var(--gold-bright) !important; font-family: var(--font-brand); }
.pay-center-tip {
  margin: 0 0 12px; padding: 0 4px;
  color: #8a8070; font-size: 0.82rem; line-height: 1.55;
  text-align: center;
}
.pay-status {
  margin: 0 auto 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(212,175,55,0.12), rgba(212,175,55,0.05));
  border: 1px solid rgba(212,175,55,0.32);
  color: var(--gold-bright);
  font-size: 0.86rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pay-cs-btn {
  margin-top: 0 !important;
  box-shadow: 0 10px 28px rgba(184,134,11,0.28);
}
.pay-back-btn { margin-top: 8px !important; opacity: 0.9; }
.pay-sheet .btn { text-align: center; }
.rc-form label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.88rem; }
.rc-amount-input {
  font-size: 1.35rem !important; font-weight: 700 !important;
  text-align: center; letter-spacing: 0.04em;
}
.rc-min-tip {
  margin: 8px 0 0; font-size: 0.78rem; color: var(--muted); text-align: center;
}
.rc-presets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
}
.rc-chip {
  appearance: none; cursor: pointer; font-family: inherit;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 0.9rem; font-weight: 600;
  transition: border-color .2s, background .2s, color .2s;
}
.rc-chip.is-on,
.rc-chip:active {
  border-color: rgba(212,175,55,0.55);
  background: rgba(212,175,55,0.14);
  color: var(--gold-bright);
}

/* 情感故事 · 朋友圈 */
.story-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.story-login-tip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(212,175,55,0.06);
  color: var(--muted); font-size: 0.85rem;
}
.story-login-tip .btn { margin-left: auto; }
.story-feed { display: flex; flex-direction: column; gap: 12px; }
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  animation: riseIn 0.55s ease both;
}
.story-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.story-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line); flex-shrink: 0;
}
.story-meta { min-width: 0; }
.story-name { display: block; color: var(--gold-bright); font-size: 0.95rem; }
.story-time { color: var(--muted); font-size: 0.75rem; }
.story-body {
  color: var(--text); font-size: 0.95rem; line-height: 1.65;
  margin-bottom: 12px; white-space: pre-wrap; word-break: break-word;
}
.story-actions { margin-bottom: 10px; }
.story-like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.2);
  color: var(--muted); border-radius: 999px; padding: 6px 12px;
  cursor: pointer; font-size: 0.82rem;
}
.story-like-btn.on { color: #e8a0a0; border-color: rgba(196,92,92,0.45); }
.story-like-ico { font-size: 0.95rem; line-height: 1; }
.story-comments {
  background: rgba(255,255,255,0.03);
  border-radius: 10px; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.story-cmt { font-size: 0.86rem; color: var(--text); line-height: 1.45; }
.story-cmt strong { color: var(--gold-bright); margin-right: 6px; font-weight: 600; }
.story-cmt-form {
  display: flex; gap: 8px; margin-top: 10px; align-items: center;
}
.story-cmt-form input {
  flex: 1; margin: 0 !important;
  padding: 9px 12px !important;
}
.story-cmt-form .btn { flex-shrink: 0; }
@media (max-width: 380px) {
  .story-login-tip .btn { margin-left: 0; }
  .tabbar a { font-size: 0.68rem; }
}

/* —— 淘宝风格商品详情 —— */
.tb-product {
  margin: -12px -14px 0;
  padding-bottom: 88px;
  background: #0f0f0f;
}
.tb-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1a1a1a;
  overflow: hidden;
}
.tb-gallery-track { width: 100%; height: 100%; }
.tb-gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
}
.tb-gallery-slide.is-active { display: block; }
.tb-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tb-gallery-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.tb-gallery-name {
  padding: 24px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gold-bright);
  background: linear-gradient(180deg, #2a2214, #141414);
}
.tb-detail-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-bright);
}
.tb-gallery-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.tb-dot {
  width: 6px; height: 6px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.35);
}
.tb-dot.is-active { background: var(--gold-bright); }
.tb-gallery-count {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
}
.tb-price-block {
  padding: 14px 16px 8px;
  background: linear-gradient(180deg, #2a2214, #141414);
}
.tb-price {
  color: #ff4d4f;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.tb-price-sym { font-size: 1rem; font-weight: 700; }
.tb-price strong { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.tb-market {
  margin-left: 8px;
  color: #8a8a8a;
  font-size: 0.85rem;
  text-decoration: line-through;
}
.tb-task-tag {
  margin-top: 8px;
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold-bright);
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 6px;
  padding: 3px 8px;
  background: rgba(212,175,55,0.08);
}
.tb-title-block {
  padding: 12px 16px 16px;
  border-bottom: 8px solid #0a0a0a;
  background: #141414;
}
.tb-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: #f2f2f2;
}
.tb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.78rem;
  color: var(--muted);
}
.tb-detail-sec { background: #141414; }
.tb-detail-head {
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--line);
}
.tb-detail-text {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.tb-detail-imgs { display: flex; flex-direction: column; }
.tb-detail-imgs img {
  width: 100%;
  display: block;
  vertical-align: top;
}
.tb-detail-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.tb-buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #1a1a1a;
  border-top: 1px solid var(--line);
  max-width: 480px;
  margin: 0 auto;
}
.tb-buybar-info { flex: 1; min-width: 0; font-size: 0.82rem; color: #ddd; }
.tb-buybar-info strong { color: #ff4d4f; }
.tb-buybar-sub { color: var(--gold-bright); font-size: 0.75rem; margin-top: 2px; }
.tb-buy-btn {
  flex-shrink: 0;
  min-width: 140px;
  margin: 0 !important;
}
body:has(.tb-buybar) .tabbar { display: none; }
