/* ==========================================================================
   社区店 · 会员制 H5 样式（深色高级视觉）
   --------------------------------------------------------------------------
   设计语言对齐参考稿：深色底 #04070c / 面板 rgba(255,255,255,.04) /
   细边框 rgba(255,255,255,.08) / emerald #2DD4A7 / cyan #22D3EE / 金色 #E8C98A，
   大圆角卡片、胶囊标签与按钮、柔和光晕。移动端 375 优先，适配 320~430。
   纯 CSS，无外部字体 / CDN 依赖。
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --bg: #04070c;
  --bg-raise: #071018;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.06);
  --emerald: #2dd4a7;
  --emerald-soft: rgba(45, 212, 167, 0.13);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.13);
  --gold: #e8c98a;
  --gold-deep: #d9b86b;
  --gold-soft: rgba(232, 201, 138, 0.16);
  --rose: #ff9e7a;
  --danger: #ff7a7a;
  --white: #ffffff;
  --text-primary: #e6f0f2;
  --text-secondary: #a6b8c6;
  --text-muted: #8fa3b5;
  --text-dim: #5b6b7a;
  --radius-xl: 20px;
  --radius-lg: 18px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-num: "Outfit", "Inter", "SF Pro Display", "PingFang SC", -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.58;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(560px 340px at 50% -120px, rgba(45, 212, 167, 0.16), transparent 72%),
    radial-gradient(420px 300px at 96% 12%, rgba(34, 211, 238, 0.07), transparent 72%),
    radial-gradient(480px 320px at 0% 42%, rgba(232, 201, 138, 0.045), transparent 72%);
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: inline-block;
  vertical-align: middle;
}

button {
  color: inherit;
}

/* ---------- 页面骨架 ---------- */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: transparent;
  overflow-x: hidden;
}

.page-main {
  position: relative;
  padding: 4px 20px calc(112px + env(safe-area-inset-bottom, 0px));
}

.app--plain .page-main {
  padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
}

body[data-page="purchase"] .page-main {
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

body[data-page="member"] .page-main,
body[data-page="orders"] .page-main {
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

body[data-page="login"] .app {
  min-height: 100vh;
}

/* ---------- 字体层级 ---------- */
.h1 {
  font-size: clamp(29px, 8.6vw, 34px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
}

.h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--emerald) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h2 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
}

.muted {
  color: var(--text-muted);
}

.mono,
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--border);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.card-title .field-hint {
  font-weight: 400;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
  transition: filter 0.18s ease, transform 0.12s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

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

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #35e0b2 0%, var(--emerald) 100%);
  color: #071018;
  box-shadow: 0 14px 32px -16px rgba(45, 212, 167, 0.85);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #0a121a;
  box-shadow: 0 14px 32px -18px rgba(232, 201, 138, 0.8);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-code {
  flex-shrink: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--emerald-soft);
  border: 1px solid rgba(45, 212, 167, 0.26);
  color: var(--emerald);
  font-size: 13px;
  font-weight: 600;
}

.btn-code:disabled {
  opacity: 0.5;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

/* ---------- 标签 / 徽标 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--emerald-soft);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--emerald);
  white-space: nowrap;
}

.tag-gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.tag-soft {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.badge-green {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.badge-blue {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.badge-gray {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.badge-red {
  background: rgba(255, 158, 122, 0.14);
  color: var(--rose);
}

/* ---------- 底部胶囊导航 ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: stretch;
  width: min(calc(100% - 36px), 394px);
  height: 62px;
  padding: 5px;
  border-radius: 36px;
  background: rgba(5, 10, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 26px;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-item .tab-icon {
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.tab-item .tab-icon svg {
  width: 19px;
  height: 19px;
}

.tab-item .tab-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.tab-item.active {
  background: linear-gradient(135deg, #35e0b2 0%, var(--emerald) 100%);
  color: #071018;
  box-shadow: 0 10px 22px -12px rgba(45, 212, 167, 0.95);
}

.tab-item.active .tab-label {
  font-weight: 600;
}

/* ---------- 页头 / 子页导航 ---------- */
.page-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 20px;
}

.page-head-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.page-head-note {
  min-width: 36px;
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  padding-bottom: 3px;
}

.back-link:active {
  background: rgba(255, 255, 255, 0.12);
}

.back-link--light {
  color: var(--text-secondary);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 17px;
  cursor: pointer;
  padding: 0;
}

.icon-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn:disabled {
  opacity: 0.5;
}

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

.field:last-child {
  margin-bottom: 0;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field label em {
  color: var(--rose);
  font-style: normal;
}

.field label .optional {
  color: var(--text-dim);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
  font-size: 14px;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(45, 212, 167, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 167, 0.12);
}

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

.field.invalid input,
.field.invalid textarea {
  border-color: rgba(255, 122, 122, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 122, 122, 0.1);
}

.field-hint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-dim);
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-label-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 122, 122, 0.1);
  border: 1px solid rgba(255, 122, 122, 0.22);
  color: #ffb3b3;
  font-size: 12px;
  line-height: 1.55;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-row input {
  flex: 1;
  min-width: 0;
}

.amount-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.amount-input:focus-within {
  border-color: rgba(45, 212, 167, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 167, 0.12);
}

.amount-input .amount-prefix {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
}

.amount-input input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.amount-input input:focus {
  box-shadow: none;
  border: 0;
}

.field.invalid .amount-input {
  border-color: rgba(255, 122, 122, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 122, 122, 0.1);
}

.channel-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.channel-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.channel-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channel-option:has(input:checked) {
  background: var(--emerald-soft);
  border-color: rgba(45, 212, 167, 0.5);
  color: var(--emerald);
  font-weight: 600;
}

.channel-option input:checked + span {
  color: var(--emerald);
  font-weight: 600;
}

.form-submit {
  margin-top: 16px;
}

/* ---------- 数量步进器 ---------- */
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-label {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
}

.stepper button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.stepper button:disabled {
  opacity: 0.35;
}

.stepper span {
  min-width: 38px;
  text-align: center;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.qty-fixed {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald);
}

/* ---------- 加载 / 空态 ---------- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.loading.compact {
  padding: 22px 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(45, 212, 167, 0.22);
  border-top-color: var(--emerald);
  animation: spin 0.8s linear infinite;
}

.spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}

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

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 46px 22px;
  text-align: center;
}

.empty-state.compact {
  padding: 26px 16px;
}

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  font-size: 26px;
}

.empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.empty-sub {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
}

.empty-state .btn {
  margin-top: 10px;
  height: 42px;
  font-size: 13px;
}

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(calc(100% - 48px), 360px);
  pointer-events: none;
}

.toast {
  max-width: 100%;
  padding: 11px 18px;
  border-radius: 22px;
  background: rgba(7, 16, 24, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

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

.toast-success {
  border-color: rgba(45, 212, 167, 0.35);
  color: var(--emerald);
}

.toast-error {
  border-color: rgba(255, 122, 122, 0.35);
  color: #ffb3b3;
}

/* ---------- 客服电话 ---------- */
.service-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  font-size: 13px;
}

.service-phone-label {
  color: var(--text-muted);
}

.service-phone-tel {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   首页
   ========================================================================== */

.home-hero {
  position: relative;
  padding: 10px 20px 0;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #35e0b2 0%, var(--emerald) 100%);
  color: #04130f;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 20px -10px rgba(45, 212, 167, 0.9);
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark--lg {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 30px;
  box-shadow: 0 18px 44px -18px rgba(45, 212, 167, 0.9);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vip-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  background: var(--emerald-soft);
}

.vip-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(45, 212, 167, 0.9);
}

.vip-tag span {
  font-size: 11px;
  font-weight: 500;
  color: var(--emerald);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.user-chip.is-logged {
  background: var(--emerald-soft);
  border-color: rgba(45, 212, 167, 0.28);
  color: var(--emerald);
}

.invite-banner {
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--emerald-soft);
  border: 1px solid rgba(45, 212, 167, 0.24);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.6;
}

.invite-banner strong {
  color: var(--emerald);
  font-family: var(--font-num);
  letter-spacing: 0.4px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 18px;
}

.hero-sub {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--text-secondary);
}

/* 品牌故事视频卡 */
.video {
  position: relative;
  display: block;
  height: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #071018;
}

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

.video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 12, 0) 42%, rgba(4, 7, 12, 0.72) 100%);
}

.video .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.8);
}

.video .play svg {
  margin-left: 3px;
}

.video .label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  background: rgba(4, 7, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
}

.video .label .dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--emerald);
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 20px calc(116px + env(safe-area-inset-bottom, 0px));
}

/* 关于我们 */
.intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

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

.intro-body {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.intro-body p + p {
  margin-top: 6px;
}

.stats {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stat .v {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.stat .v.gold {
  color: var(--gold);
}

.stat .l {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 区块标题 */
.section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.section-head .more {
  font-size: 12px;
  font-weight: 500;
  color: var(--emerald);
}

.section-head p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* 核心功能 */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feat-grid > .feat:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.feature-list > .feature-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.feat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border-soft);
}

.feat .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 18px;
  background: var(--emerald-soft);
}

.feat .ic img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
}

.feat .ic.ic-b {
  background: var(--cyan-soft);
}

.feat .ic.ic-c {
  background: var(--gold-soft);
}

.feat .ic.ic-d {
  background: rgba(255, 158, 122, 0.14);
}

.feat h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.feat p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 加入社区店招募卡 */
.join-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(45, 212, 167, 0.22) 0%, transparent 58%),
    linear-gradient(180deg, #1c735c 0%, #0d1f2e 100%);
  border: 1px solid rgba(45, 212, 167, 0.3);
  overflow: hidden;
}

.join-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 167, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.join-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(232, 201, 138, 0.18);
  border: 1px solid rgba(232, 201, 138, 0.28);
}

.join-badge span {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
}

.join-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
}

.join-card .desc {
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-row .p {
  font-family: var(--font-num);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.price-row .u {
  font-size: 12px;
  color: var(--text-muted);
}

.rights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.right svg {
  flex-shrink: 0;
}

.right span {
  font-size: 11px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.join-card .btn-primary {
  margin-top: 2px;
}

/* 资质证书 */
.cert-row {
  display: flex;
  gap: 12px;
}

.cert {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 13px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  min-width: 0;
}

.cert .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 20px;
}

.cert .ic img,
.cert > img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  border-radius: 9px;
}

.cert span {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-primary);
  white-space: pre-line;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 购买方式小卡 */
.buy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.buy-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.buy-mini:active {
  background: rgba(255, 255, 255, 0.07);
}

.buy-mini .buy-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--emerald-soft);
  font-size: 16px;
}

.buy-mini .buy-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.buy-mini .buy-price {
  font-family: var(--font-num);
  font-size: 21px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.buy-mini .buy-sub {
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-muted);
}

.buy-mini .buy-go {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
}

/* 了解社区店入口 */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border-soft);
}

.explore-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
  border-radius: 10px;
  background: var(--cyan-soft);
  font-size: 17px;
}

.explore-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.explore-desc {
  font-size: 10px;
  line-height: 1.55;
  color: var(--text-muted);
}

.explore-arrow {
  position: absolute;
  right: 14px;
  top: 16px;
  color: var(--text-dim);
  font-size: 18px;
}

/* 购买说明 */
.home-note h3 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.home-note ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: note;
}

.home-note li {
  position: relative;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  counter-increment: note;
}

.home-note li::before {
  content: counter(note);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 7px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
}

/* 页脚 */
.site-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 0 6px;
  text-align: center;
}

.site-foot-brand {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.site-foot-note {
  font-size: 10px;
  color: var(--text-dim);
}

.site-foot .service-phone {
  margin-top: 8px;
  width: 100%;
}

/* ==========================================================================
   下单 / 加入社区店页
   ========================================================================== */

.join-hero {
  position: relative;
  height: 190px;
  margin: 4px 0 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #071018;
}

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

.join-hero .grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 12, 0) 30%, rgba(4, 7, 12, 0.94) 100%);
}

.join-hero .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  background: rgba(232, 201, 138, 0.2);
  border: 1px solid rgba(232, 201, 138, 0.3);
  color: var(--gold);
  font-size: 11px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.join-hero .hero-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.join-hero .hero-caption .t {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.join-hero .hero-caption .s {
  font-size: 11px;
  color: var(--text-secondary);
}

.join-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(110% 90% at 92% 0%, rgba(45, 212, 167, 0.24) 0%, transparent 60%),
    linear-gradient(180deg, #1c735c 0%, #0d1f2e 100%);
  border: 1px solid rgba(45, 212, 167, 0.3);
}

.price-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.price-card-head .p-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 15px;
}

.price-card .pr {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-card .pr .a {
  font-family: var(--font-num);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold);
  letter-spacing: -0.5px;
}

.price-card .pr .u {
  font-size: 12px;
  color: var(--text-secondary);
}

.price-card .note {
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-muted);
}

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

.right-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  min-width: 0;
}

.right-card .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--emerald-soft);
  font-size: 17px;
}

.right-card .ic.ic-cyan {
  background: var(--cyan-soft);
}

.right-card .ic.ic-gold {
  background: var(--gold-soft);
}

.right-card .ic.ic-rose {
  background: rgba(255, 158, 122, 0.14);
}

.right-card .ic img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.right-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.right-card p {
  font-size: 10px;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 底部支付栏 */
.purchase-foot {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 430px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 10, 16, 0.96);
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.foot-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.foot-total span {
  font-size: 10px;
  color: var(--text-muted);
}

.foot-total strong {
  font-family: var(--font-num);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold);
  white-space: nowrap;
}

.purchase-foot .btn-primary {
  flex: 1;
  height: 50px;
  border-radius: 25px;
}

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

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.summary-row strong {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--text-primary);
}

.summary-row.total {
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text-primary);
}

.summary-row.total strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.summary .field-hint {
  padding-top: 2px;
}

/* 会员门槛 */
.gate-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.gate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gold-soft);
  font-size: 22px;
}

.gate-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.gate-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

.gate-card p strong {
  color: var(--gold);
  font-family: var(--font-num);
}

.gate-card .btn {
  width: 100%;
  margin-top: 4px;
}

/* 下单成功 */
.success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 0 8px;
  text-align: center;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--emerald-soft);
  border: 1px solid rgba(45, 212, 167, 0.4);
  color: var(--emerald);
  font-size: 36px;
  box-shadow: 0 0 0 10px rgba(45, 212, 167, 0.05), 0 20px 40px -18px rgba(45, 212, 167, 0.6);
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.success-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.success-card {
  width: 100%;
  margin-top: 12px;
  text-align: left;
}

.kv {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.kv > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.kv dt {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.kv dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-all;
}

.kv dd.strong {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.success-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.success-actions .btn {
  flex: 1;
  height: 46px;
  font-size: 14px;
}

/* ==========================================================================
   订单管理
   ========================================================================== */

.filter-row {
  display: flex;
  gap: 9px;
  padding: 2px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 15px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.chip.active {
  background: linear-gradient(135deg, #35e0b2 0%, var(--emerald) 100%);
  border-color: transparent;
  color: #071018;
  font-weight: 600;
  box-shadow: 0 10px 22px -14px rgba(45, 212, 167, 0.9);
}

.list-summary {
  padding: 0 2px 12px;
  font-size: 11px;
  color: var(--text-muted);
}

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

.order-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border-soft);
}

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

.order-mid {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
}

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

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

.order-info .n {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-info .s {
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-type {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.order-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--emerald-soft);
  font-size: 16px;
}

.order-type-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.order-amount {
  font-family: var(--font-num);
  font-size: 23px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.3px;
}

.order-qty {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-muted);
}

.order-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.order-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  line-height: 1.55;
}

.order-meta-row .k {
  flex-shrink: 0;
  color: var(--text-dim);
}

.order-meta-row .v {
  text-align: right;
  color: var(--text-secondary);
  word-break: break-all;
}

/* ==========================================================================
   我的 / 会员中心
   ========================================================================== */

.user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 18px;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, #46e9bd 0%, #14806a 100%);
  color: #04130f;
  font-size: 24px;
  font-weight: 800;
  box-shadow:
    0 0 0 2px rgba(45, 212, 167, 0.25),
    0 12px 28px -14px rgba(45, 212, 167, 0.8);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.user-info .name {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, #d9b86b 0%, #c29448 100%);
  color: #0a121a;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.shop-tag.plain {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.uid {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.asset-bar {
  display: flex;
  align-items: center;
  margin: 0 20px;
  padding: 15px 8px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
}

.asset {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.asset .v {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.asset .v.gold {
  color: var(--gold);
}

.asset .l {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.divider {
  width: 1px;
  height: 30px;
  background: var(--border);
  flex-shrink: 0;
}

/* 我的页面内容容器 */
.member-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
}

.menu-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border-soft);
}

.menu-item .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--emerald-soft);
  font-size: 17px;
}

.menu-item .ic.ic-cyan {
  background: var(--cyan-soft);
}

.menu-item .ic.ic-gold {
  background: var(--gold-soft);
}

.menu-item .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.menu-item .col h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.menu-item .col p {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-item .arr {
  flex-shrink: 0;
  color: var(--text-dim);
  font-size: 18px;
}

.group {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  cursor: pointer;
  border: 0;
  background: none;
  text-align: left;
  font-family: inherit;
  width: 100%;
}

.group-row + .group-row {
  border-top: 1px solid var(--border-soft);
}

.group-row .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 16px;
  color: var(--text-muted);
}

.group-row span {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
}

.group-row .arr {
  color: var(--text-dim);
  font-size: 16px;
}

/* 身份 / 职级卡 */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--border);
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

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

.meta-item span {
  font-size: 10px;
  color: var(--text-muted);
}

.meta-item strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.invite-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.invite-label {
  font-size: 10px;
  color: var(--text-muted);
}

.invite-code {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 15px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid rgba(45, 212, 167, 0.3);
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.copy-btn:disabled {
  opacity: 0.45;
}

/* 推广二维码 */
.invite-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--border);
}

.invite-qr-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.invite-qr-tip {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
}

.invite-qr-img {
  width: 168px;
  height: 168px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
}

.invite-link {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  font-family: var(--font-num);
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  word-break: break-all;
}

.invite-qr-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.invite-qr-actions .copy-btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-primary);
}

/* 钱包（我的 / 提现共用） */
.wallet-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(110% 90% at 90% 0%, rgba(45, 212, 167, 0.24) 0%, transparent 58%),
    linear-gradient(180deg, #1c735c 0%, #0d1f2e 100%);
  border: 1px solid rgba(45, 212, 167, 0.3);
}

.wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.wallet-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  color: var(--text-primary);
}

.wallet-balance {
  font-family: var(--font-num);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--white);
}

.wallet-grid {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-grid > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wallet-grid span {
  font-size: 10px;
  color: var(--text-muted);
}

.wallet-grid strong {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.wallet-withdraw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--gold);
  color: #0a121a;
  font-size: 13px;
  font-weight: 600;
}

.wallet-withdraw-arrow {
  font-size: 17px;
}

/* 团队 */
.team-card,
.records-card {
  padding: 16px;
}

.seg-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.team-summary {
  margin: -2px 0 12px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-muted);
}

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

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
}

.team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(45, 212, 167, 0.3), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(45, 212, 167, 0.3);
  color: var(--emerald);
  font-size: 15px;
  font-weight: 700;
}

.team-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.team-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.team-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-rank {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  background: var(--gold-soft);
  font-size: 9px;
  color: var(--gold);
  white-space: nowrap;
}

.team-phone {
  font-family: var(--font-num);
  font-size: 10px;
  color: var(--text-muted);
}

.team-side {
  flex-shrink: 0;
}

.team-join {
  font-size: 9px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* 收益明细（补贴 / 佣金 / 提现共用） */
.seg-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
}

.seg-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.seg-tab.active {
  background: rgba(45, 212, 167, 0.16);
  color: var(--emerald);
  font-weight: 600;
}

.seg-tab.active .seg-count {
  background: rgba(45, 212, 167, 0.2);
  color: var(--emerald);
}

.record-list {
  display: flex;
  flex-direction: column;
}

.record {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--border-soft);
}

.record-list > .record:first-child {
  border-top: 0;
}

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

.record-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.record-sub {
  font-size: 10px;
  line-height: 1.55;
  color: var(--text-muted);
  word-break: break-all;
}

.record-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.record-amount {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald);
  white-space: nowrap;
}

.record-amount.out {
  color: var(--text-primary);
}

.record-remark {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.55;
  color: #ffb3b3;
}

.record-remark--info {
  color: var(--text-muted);
}

.member-service {
  margin-top: 2px;
}

.member-service:empty {
  display: none;
}

/* ==========================================================================
   提现管理
   ========================================================================== */

.withdraw-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.balance-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(110% 90% at 90% 0%, rgba(45, 212, 167, 0.24) 0%, transparent 58%),
    linear-gradient(180deg, #1c735c 0%, #0d1f2e 100%);
  border: 1px solid rgba(45, 212, 167, 0.3);
}

.balance-card .l {
  font-size: 12px;
  color: var(--text-secondary);
}

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

.balance-row .a {
  font-family: var(--font-num);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--white);
}

.withdraw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  flex-shrink: 0;
  border: 0;
  border-radius: 19px;
  background: var(--gold);
  color: #0a121a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.balance-card .note {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   产品介绍 / 权益
   ========================================================================== */

.intro-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 120% at 88% 0%, rgba(45, 212, 167, 0.22) 0%, transparent 58%),
    linear-gradient(180deg, #1c735c 0%, #0d1f2e 100%);
  border: 1px solid rgba(45, 212, 167, 0.3);
  margin-bottom: 16px;
  overflow: hidden;
}

.intro-hero > .tag {
  align-self: flex-start;
}

.intro-hero h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.intro-hero p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.intro-hero .hero-tags span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.content-section {
  margin-bottom: 14px;
}

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

.content-section-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.section-count {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.about-paras {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-paras p {
  font-size: 12px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.video-player {
  display: block;
  width: 100%;
  border-radius: 14px;
  background: #000;
}

.video-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  text-align: center;
}

.video-fallback-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--emerald-soft);
  font-size: 22px;
}

.video-fallback p {
  font-size: 12px;
  color: var(--text-muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  min-width: 0;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--emerald-soft);
  font-size: 17px;
}

.feature-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 5px;
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
}

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

.feature-main h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-body p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cert-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.cert-item img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.cert-name {
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cert-item--empty {
  cursor: default;
  align-items: flex-start;
}

.cert-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 22px;
}

.cert-placeholder-note {
  font-size: 9px;
  color: var(--text-dim);
}

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

/* 权益页 */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(45, 212, 167, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, #1c735c 0%, #0d1f2e 100%);
  border: 1px solid rgba(45, 212, 167, 0.3);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.notice strong {
  color: var(--white);
  font-size: 13px;
}

.notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 19px;
}

.benefit-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefit-group {
  padding: 16px;
}

.benefit-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.group-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(45, 212, 167, 0.8);
}

.benefit-group-head h2 {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  min-width: 0;
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--emerald-soft);
  font-size: 16px;
}

.benefit-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

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

.benefit-main h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.benefit-desc {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.benefit-desc p {
  font-size: 10px;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.benefit-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(110% 90% at 90% 0%, rgba(232, 201, 138, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, #103728 0%, #0d1f2e 100%);
  border: 1px solid rgba(232, 201, 138, 0.2);
  text-align: center;
}

.benefit-cta-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.benefit-cta-sub {
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.benefit-cta-sub strong {
  font-family: var(--font-num);
  color: var(--gold);
}

/* ==========================================================================
   登录
   ========================================================================== */

.login-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 20px calc(30px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(560px 380px at 50% 0%, rgba(45, 212, 167, 0.18), transparent 70%),
    radial-gradient(420px 300px at 100% 46%, rgba(34, 211, 238, 0.08), transparent 70%);
}

.login-top {
  display: flex;
  align-items: center;
  height: 60px;
}

.login-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  padding: 16px 0 0;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  padding-bottom: 4px;
}

.login-brand h1 {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.login-brand p {
  font-size: 12px;
  color: var(--text-muted);
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px;
  border-radius: var(--radius-xl);
}

.login-card .btn-primary {
  margin-top: 8px;
}

.demo-hint {
  margin: 4px 0 8px;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--emerald-soft);
  border: 1px solid rgba(45, 212, 167, 0.22);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.6;
}

.demo-hint strong {
  color: var(--emerald);
  font-family: var(--font-num);
}

.login-error {
  margin: 4px 0 8px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 122, 122, 0.1);
  border: 1px solid rgba(255, 122, 122, 0.24);
  color: #ffb3b3;
  font-size: 11px;
  line-height: 1.6;
}

.agree {
  margin-top: 12px;
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
  color: var(--text-dim);
}

.link-muted {
  color: var(--text-muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.login-note {
  padding: 14px 16px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-muted);
}

.login-note strong {
  color: var(--emerald);
  font-family: var(--font-num);
}

/* ==========================================================================
   证书预览
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 4, 7, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox-close {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.lightbox-figure figcaption {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

body.lightbox-open {
  overflow: hidden;
}

/* ==========================================================================
   兼容：旧版首页购买卡（若仍被引用）
   ========================================================================== */

.hero-title {
  font-size: clamp(29px, 8.6vw, 34px);
  line-height: 1.24;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.hero-title em {
  font-style: normal;
  color: var(--emerald);
}

.home-main > .section-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.home-main > .section-head p {
  font-size: 12px;
  color: var(--text-muted);
}

.purchase-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--border);
}

.purchase-card .card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--emerald-soft);
  font-size: 19px;
}

.purchase-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.card-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.purchase-card .card-top > div {
  flex: 1;
  min-width: 0;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.4px;
}

.price-unit {
  font-size: 11px;
  color: var(--text-muted);
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.benefits li {
  position: relative;
  padding-left: 16px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-muted);
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: var(--emerald);
}

.card-featured {
  background:
    radial-gradient(110% 90% at 90% 0%, rgba(45, 212, 167, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, #1c735c 0%, #0d1f2e 100%);
  border-color: rgba(45, 212, 167, 0.3);
}

.card-featured .benefits li::before {
  background: var(--gold);
}

/* ==========================================================================
   小屏适配（320 / 360）
   ========================================================================== */

@media (max-width: 359px) {
  .page-main,
  .home-main,
  .home-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .vip-tag {
    display: none;
  }

  .brand-name {
    font-size: 15px;
  }

  .user-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .asset-bar {
    margin-left: 16px;
    margin-right: 16px;
  }

  .page-head {
    padding: 0 16px;
  }

  .wallet-balance,
  .balance-row .a {
    font-size: 32px;
  }

  .feat h3,
  .right-card h3 {
    font-size: 12px;
  }

  .stat .v {
    font-size: 17px;
  }

  .avatar {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }
}

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
