/* ===================================================
   OPENCLAW 龙虾协议 — Stylesheet  (OPENCLRW Dark Theme)
   =================================================== */

:root {
  --bg-deep: #000000;
  --bg-mid: #0a0c14;
  --bg-panel: linear-gradient(180deg, rgba(20, 22, 38, 0.97), rgba(14, 16, 30, 0.98));
  --bg-panel-2: rgba(14, 18, 36, 0.95);
  --cyan: #2ed7ff;
  --cyan-dim: rgba(46, 215, 255, 0.14);
  --cyan-glow: 0 0 18px rgba(46, 215, 255, 0.2), 0 0 40px rgba(46, 215, 255, 0.08);
  --blue: #48a3ff;
  --orange: #ff9f6b;
  --gold: #ffd36c;
  --white: #f4f7ff;
  --white-dim: rgba(203, 215, 245, 0.72);
  --border: rgba(60, 80, 160, 0.35);
  --border-bright: rgba(46, 215, 255, 0.52);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
  --font-cn: 'Noto Sans SC', sans-serif;
  --nav-h: 72px;
  --header-h: 70px;
  --radius: 14px;
  --radius-sm: 10px;
}

input, button, textarea, select { font: inherit; }
.plan-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.plan-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 58px; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(60, 100, 200, 0.4); background: rgba(12, 18, 40, 0.92); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.02); cursor: pointer; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease, opacity .22s ease; }
.plan-card-title { font-family: var(--font-display); font-size: 13px; letter-spacing: .06em; color: #d7f6ff; }
.plan-card-status { font-family: var(--font-cn); font-size: 10px; color: var(--white-dim); margin-top: 4px; }
.plan-card.active { border-color: rgba(60, 230, 255, 0.8); background: linear-gradient(135deg, rgba(60, 126, 255, 0.26), rgba(46, 215, 255, 0.24)); box-shadow: 0 0 0 1px rgba(46, 215, 255, 0.16), 0 0 18px rgba(46, 215, 255, 0.12); transform: translateY(-1px); }
.plan-card.active .plan-card-title, .plan-card.active .plan-card-status { color: #ffffff; }
.plan-card.locked { background: rgba(10, 14, 28, 0.94); border-color: rgba(60, 75, 120, 0.28); box-shadow: none; }
.plan-card.locked .plan-card-title { color: rgba(195,205,231,.5); }
.plan-card.locked .plan-card-status { color: rgba(164,173,197,.38); }
.plan-card:disabled { cursor: not-allowed; }
.plan-card:not(:disabled):active { transform: scale(.985); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #000000; color: var(--white); font-family: var(--font-body); -webkit-tap-highlight-color: transparent; }
#bgCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .06; }

/* Header */
.top-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: rgba(0, 0, 0, 0.96); border-bottom: 1px solid rgba(40, 60, 120, 0.4); backdrop-filter: blur(14px); z-index: 100; }
.header-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.logo-area, .logo-text { display: flex; align-items: center; }
.logo-area { gap: 8px; }
.logo-text { flex-direction: column; line-height: 1; }
.logo-main { font-family: var(--font-display); font-size: 15px; font-weight: 900; letter-spacing: .02em; color: var(--white); }
.logo-sub { font-family: var(--font-cn); font-size: 10px; color: var(--white-dim); letter-spacing: 0; margin-top: 3px; }
.wallet-btn { display: flex; align-items: center; gap: 6px; background: #0b0e16; border: none; border-radius: 4px; padding: 8px 10px; color: #6fdcff; font-family: var(--font-display); font-size: 11px; cursor: pointer; transition: .25s; box-shadow: inset 0 0 0 1px rgba(106, 198, 255, 0.36); }
.wallet-btn.connected { color: #8be9ff; background: #121522; box-shadow: inset 0 0 0 1px rgba(96, 214, 255, 0.56); }

/* Layout */
.main-content { position: fixed; top: var(--header-h); bottom: var(--nav-h); left: 0; right: 0; overflow: hidden; z-index: 10; }
.page { position: absolute; inset: 0; overflow-y: auto; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; scrollbar-width: none; background: #000000; }
.page.active { opacity: 1; pointer-events: all; transform: translateY(0); }
.page-inner { padding: 14px 12px 24px; display: flex; flex-direction: column; gap: 14px; }
.home-shell, .participate-shell { padding-top: 0; background-color: #000000; }
.hero-banner, .panel-card, .coming-soon-panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden; box-shadow: 0 14px 28px rgba(0,0,0,.3); }
.hero-stage { padding: 0; border: none; border-radius: 0; background: #000000; box-shadow: none; position: relative; }
.home-brand-row { display: none; }
.hero-stage-brand { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #ffffff; }

/* Hero Video */
.hero-video-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 350 / 238;
  border-radius: 0;
  overflow: hidden;
  background: #000000;
  display: block;
  position: relative;
}
.hero-video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(100, 50, 220, 0.25) 0%, rgba(30, 70, 200, 0.15) 40%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}
.hero-video-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(0deg, #000000 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}
.hero-video {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  display: block; filter: saturate(1.1) contrast(1.05); background: #000;
  position: relative; z-index: 1;
}

/* Hero copy */
.hero-copy { padding: 10px 14px 6px; text-align: center; background: #000000; position: relative; }
.hero-copy::before { content: ''; position: absolute; top: -28px; left: 0; right: 0; height: 28px; background: linear-gradient(0deg, #000000 0%, transparent 100%); pointer-events: none; }
.hero-copy-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 900; line-height: 1;
  margin-bottom: 8px;
  color: #4a7fff;
  text-shadow: 0 0 28px rgba(74, 127, 255, 0.45), 0 0 56px rgba(74, 127, 255, 0.18);
  letter-spacing: 0.05em;
}
.hero-copy-text { font-family: var(--font-cn); font-size: 15px; font-weight: 700; line-height: 1.45; color: #ffffff; }

/* Stat cards grid */
.hero-metrics-grid, .team-stats, .portfolio-grid, .admin-form-grid, .position-console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#page-home .hero-metrics-grid {
  gap: 10px;
  padding: 0;
}
.position-actions-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.position-actions-bar.single { grid-template-columns: 1fr; }
.admin-switch-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }

.hero-metric-card {
  position: relative;
  min-height: 108px;
  padding: 14px 12px 14px;
  overflow: hidden;
  border-radius: 14px;
  border: none;
  box-shadow: none;
}
.hero-metric-card::after,
.hero-metric-card::before { content: none; }

.home-stat-card { display: flex; flex-direction: column; justify-content: space-between; }


.hero-metric-label { display: block; font-family: var(--font-cn); font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.9); margin-bottom: 0; position: relative; z-index: 1; }
.hero-metric-value {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  word-break: break-word;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.22);
  margin-top: auto;
  margin-bottom: 6px;
}
.hero-metric-value span { display: inline-block; margin-left: 6px; font-size: 11px; opacity: .94; font-weight: 400; }

/* 参与用户卡片，长地址缩小避免挤爆 */
#stat-users { font-size: 18px; line-height: 1.15; }

/* Position Console */
.position-console { padding: 12px 12px 0; background: rgba(12, 14, 26, 0.96); border: 1px solid rgba(36, 56, 130, 0.45); border-radius: 12px; box-shadow: none; }
.position-console-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.position-console-title-wrap { display: flex; flex-direction: column; gap: 6px; }
.position-console-title { font-family: var(--font-cn); font-size: 16px; font-weight: 700; color: #ffffff; }
.position-console-line { width: 22px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, #1dddf6, #4a7fff); }
.position-console-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 60px; height: 26px; padding: 0 12px; border-radius: 4px; background: rgba(20, 8, 36, 0.92); border: 1px solid rgba(200, 80, 160, 0.48); color: #ff7fcd; font-family: var(--font-cn); font-size: 11px; }
.position-empty, .binding-status { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 0 8px; }
.hidden { display: none !important; }
.position-console-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.position-console-card { padding: 12px 12px 10px; min-height: 78px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(18, 22, 42, 0.93); border: 1px solid rgba(44, 195, 255, 0.38); border-radius: 8px; }
.home-position-card { background: rgba(16, 20, 40, 0.95); border: 1px solid rgba(44, 195, 255, 0.48); position: relative; }
.home-position-card::after { content: ''; position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(135deg, rgba(44, 215, 255, 0.05), transparent 50%); pointer-events: none; }
.card-order, .card-principal, .card-static, .card-dynamic { background-image: none; }
.position-card-top { display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.position-card-icon { width: 14px; height: 14px; object-fit: contain; flex-shrink: 0; }
.position-console-card strong { font-family: var(--font-display); font-size: 13px; color: #dff7ff; position: relative; z-index: 1; margin-top: 6px; display: block; }
.position-console-label { display: block; font-family: var(--font-cn); font-size: 12px; color: rgba(175, 210, 255, 0.9); }
.portfolio-note { font-size: 9px; color: rgba(150, 185, 220, 0.58); position: relative; z-index: 1; display: block; margin-top: 2px; }

/* Action buttons */
.home-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.home-action-btn { min-height: 46px; padding: 0 12px; border-radius: 8px; border: none; background: linear-gradient(135deg, #18d6a6 0%, #1b8cff 100%); box-shadow: 0 4px 16px rgba(24, 214, 166, 0.2); justify-content: center; gap: 6px; }
.home-action-btn:last-child { background: linear-gradient(135deg, #18c8d8 0%, #2e5eff 100%); box-shadow: 0 4px 16px rgba(24, 200, 216, 0.2); }
.home-action-icon { width: 16px; height: 16px; object-fit: contain; }
.home-action-btn span { font-size: 11px; white-space: nowrap; color: #ffffff; font-family: var(--font-cn); }
.home-redeem-row { margin-top: 10px; }
.home-redeem-btn { min-height: 46px; border-radius: 8px; border: 1px solid rgba(70, 100, 180, 0.5); background: rgba(8, 10, 22, 0.9); color: rgba(215, 225, 250, 0.78); font-family: var(--font-cn); font-size: 14px; }

/* Orders panel */
.home-orders-panel { margin-top: 14px; padding: 14px 12px; min-height: 80px; background: rgba(8, 10, 20, 0.92); border-top: 1px solid rgba(36, 56, 120, 0.4); border-radius: 0 0 12px 12px; }
.home-orders-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.home-history-btn { padding: 6px 10px; font-size: 11px; border-radius: 8px; }
.record-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; position: sticky; top: 0; z-index: 2; background: linear-gradient(180deg, rgba(14, 18, 42, 0.98), rgba(14, 18, 42, 0.82)); padding-bottom: 8px; }
.record-filter-btn { flex: 1 1 calc(33.333% - 8px); min-width: 72px; padding: 8px 0; font-size: 11px; border-radius: 8px; }
.record-filter-btn.active { border-color: rgba(65, 230, 255, 0.9); color: #b6f6ff; background: rgba(18, 54, 95, 0.55); }
.home-orders-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.home-history-btn { padding: 6px 10px; font-size: 11px; border-radius: 8px; }
.home-orders-title { font-family: var(--font-cn); font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #ffffff; }
.home-order-list { margin-top: 0; }
.home-order-empty { font-family: var(--font-cn); font-size: 12px; color: rgba(170, 190, 230, 0.55); }
.home-order-card { background: rgba(18, 22, 44, 0.95); border: 1px solid rgba(55, 85, 165, 0.4); border-radius: 6px; padding: 12px; }

/* Participate page */
.overview-stack { display: flex; flex-direction: column; gap: 12px; }
.market-overview-card { padding: 14px 14px 16px; background: linear-gradient(180deg, rgba(22, 24, 46, 0.98), rgba(16, 18, 38, 0.98)); border: 1px solid rgba(55, 76, 155, 0.45); border-bottom: 2px solid rgba(28, 218, 255, 0.8); border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }
.overview-card-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.market-overview-card h3 { font-family: var(--font-cn); font-size: 14px; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.market-overview-card strong { display: block; font-family: var(--font-display); font-size: 24px; color: #ffffff; line-height: 1.1; }
.market-overview-card > .overview-card-main span, .overview-card-main span { display: block; margin-top: 4px; font-size: 12px; color: rgba(170, 205, 240, 0.78); }
.overview-coin-art { width: 104px; height: 74px; border-radius: 14px; position: relative; flex-shrink: 0; }
.coin-art-burn::before, .coin-art-burn::after, .coin-art-growth::before, .coin-art-growth::after { content: ''; position: absolute; }
.coin-art-burn::before { width: 66px; height: 66px; right: 16px; top: 0; border-radius: 50%; background: radial-gradient(circle at 32% 32%, #fff9d1 0, #f6d987 28%, #c99839 62%, #7d5a18 100%); box-shadow: -20px 14px 0 -8px rgba(243, 214, 121, 0.9), -36px 26px 0 -16px rgba(245, 217, 128, 0.78); }
.coin-art-burn::after { width: 82px; height: 28px; right: 8px; bottom: 8px; border-radius: 50%; border: 3px solid rgba(255, 242, 186, 0.92); transform: rotate(15deg); opacity: .92; }
.coin-art-growth::before { width: 74px; height: 74px; right: 10px; top: 0; background: linear-gradient(145deg, #fff3c8, #e0b860 52%, #8c6521); clip-path: polygon(14% 84%, 42% 84%, 42% 54%, 67% 54%, 67% 20%, 90% 20%, 90% 54%, 100% 54%, 55% 100%, 55% 70%, 14% 70%); }
.coin-art-growth::after { width: 46px; height: 46px; left: 8px; bottom: 4px; border-radius: 50%; background: radial-gradient(circle at 32% 32%, #fff9d1 0, #f6d987 28%, #c99839 62%, #7d5a18 100%); box-shadow: 18px 10px 0 -8px rgba(243, 214, 121, 0.92), 36px 18px 0 -16px rgba(245, 217, 128, 0.8); }
.overview-card-split { margin-top: 14px; padding: 12px 10px; background: rgba(12, 14, 28, 0.92); display: grid; grid-template-columns: 1fr 1px 1fr; align-items: stretch; gap: 10px; border-radius: 8px; }
.overview-divider { width: 1px; background: linear-gradient(180deg, transparent, #1de4ff, transparent); }
.overview-mini-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 70px; }
.overview-mini-stat span { font-family: var(--font-cn); font-size: 12px; color: #2ee5ff; }
.overview-mini-stat strong { font-family: var(--font-display); font-size: 16px; color: #ffffff; }

/* Subscribe panel */
.subscribe-panel { padding: 16px 16px 18px; background: linear-gradient(180deg, rgba(16, 18, 38, 0.98), rgba(12, 14, 32, 0.98)); }
.subscribe-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.subscribe-title { font-family: var(--font-cn); font-size: 28px; font-weight: 700; color: #ffffff; }
.subscribe-subtitle { font-family: var(--font-cn); font-size: 12px; color: rgba(130, 205, 255, 0.76); margin-top: 4px; }
.subscribe-link { background: none; border: none; color: #58e3ff; font-family: var(--font-cn); font-size: 12px; cursor: pointer; }
.subscribe-product-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(55, 78, 155, 0.36); }
.subscribe-product-media { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(55, 95, 185, 0.4); background: rgba(8, 14, 32, 0.94); }
.subscribe-product-meta { min-width: 0; }
.subscribe-product-name { font-family: var(--font-cn); font-size: 15px; color: #fff; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.subscribe-product-name span { font-size: 12px; color: rgba(140, 205, 255, 0.76); }
.subscribe-product-tip { font-family: var(--font-cn); font-size: 11px; line-height: 1.55; color: rgba(175, 198, 232, 0.7); margin-top: 4px; }
.subscribe-plan-switcher { display: none; }
.product-lobster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qty-row-box, .entry-row, .balance-row, .bind-addr-row, .my-addr-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qty-label { font-family: var(--font-cn); font-size: 16px; font-weight: 700; }
.qty-stepper { display: inline-flex; align-items: center; gap: 10px; background: rgba(8, 14, 32, 0.98); border: 1px solid rgba(55, 95, 185, 0.42); border-radius: 10px; padding: 4px; }
.qty-btn, .copy-btn { border: none; cursor: pointer; transition: .2s; }
.qty-btn { width: 28px; height: 28px; border-radius: 6px; background: transparent; color: #72ecff; font-size: 22px; }
.qty-value { min-width: 24px; text-align: center; font-family: var(--font-display); font-size: 16px; color: #ffffff; }
.entry-rows { display: flex; flex-direction: column; gap: 0; }
.subscribe-summary { margin-top: 12px; }
.entry-row { font-size: 13px; color: rgba(175, 198, 232, 0.74); padding: 12px 0; border-bottom: 1px solid rgba(55, 78, 148, 0.28); }
.entry-row:last-child { border-bottom: none; }
.entry-val { font-family: var(--font-display); color: #ffffff; }
.entry-val.highlight { color: #8ef0ff; }
.btn-primary, .btn-secondary { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 14px 18px; font-family: var(--font-display); font-size: 12px; cursor: pointer; transition: .25s; }
.btn-primary { background: linear-gradient(135deg, #1ac8d6 0%, #1b6fff 100%); border: 1px solid rgba(44, 205, 255, 0.5); color: #ffffff; box-shadow: 0 8px 20px rgba(26, 110, 255, 0.22); }
.btn-secondary { background: transparent; border: 1px solid rgba(55, 88, 168, 0.42); color: rgba(195, 212, 243, 0.78); }
.dark-secondary { background: rgba(6, 8, 20, 0.86); }
.btn-full { width: 100%; justify-content: space-between; }
.subscribe-action { margin-top: 18px; min-height: 42px; }
.bind-action-grid { display: flex; flex-direction: column; gap: 12px; }
.bind-input { width: 100%; border: 1px solid var(--border-bright); background: rgba(8, 12, 28, 0.95); color: var(--white); border-radius: 10px; padding: 12px 14px; font-family: var(--font-cn); outline: none; }
.bind-input::placeholder { color: var(--white-dim); }
.bind-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bind-tip { font-family: var(--font-cn); color: var(--white-dim); line-height: 1.7; font-size: 12px; }
.copy-btn { background: var(--cyan-dim); border: 1px solid var(--border-bright); border-radius: 4px; padding: 5px 10px; color: var(--cyan); }
.relation-refresh-btn { margin-left: auto; padding: 6px 10px; font-size: 10px; }
.token-relation-row { width: 100%; justify-content: space-between; }
.ba-label, .invitee-label { flex-shrink: 0; color: var(--white-dim); }
.ba-val, .address-val { font-family: var(--font-display); color: #8ad7ff; word-break: break-all; }
#bind-upline-full { max-width: 58%; text-align: right; }
#my-addr-display { display: block; max-width: calc(100% - 86px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); color: #8ad7ff; }
.invitee-card { gap: 10px; }
.invitee-address-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.invitee-copy-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 68%; justify-content: flex-end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch-line { display: flex; align-items: center; gap: 8px; font-family: var(--font-cn); color: var(--white); }
.top-gap { margin-top: 12px; }
.coming-soon-panel { padding: 60px 20px; text-align: center; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(0, 0, 6, 0.97); border-top: 1px solid rgba(36, 56, 125, 0.38); backdrop-filter: blur(16px); z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: transparent; border: none; color: rgba(155, 175, 220, 0.5); cursor: pointer; }
.nav-icon { font-size: 14px; }
.nav-label { font-family: var(--font-cn); font-size: 12px; }
.nav-item.active .nav-icon, .nav-item.active .nav-label { color: #4a80ff; }
.toast { position: fixed; top: 84px; left: 50%; transform: translateX(-50%) translateY(-20px); background: rgba(8, 12, 26, 0.98); border: 1px solid rgba(46, 215, 255, 0.24); border-radius: 8px; padding: 10px 20px; color: #9cefff; opacity: 0; pointer-events: none; z-index: 999; transition: .3s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 2, 12, 0.6); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: linear-gradient(180deg, rgba(14, 18, 42, 0.98), rgba(10, 14, 34, 0.98)); border: 1px solid rgba(55, 96, 196, 0.32); border-radius: var(--radius); padding: 20px; width: min(92vw, 380px); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-title { font-family: var(--font-display); font-size: 14px; color: #8eefff; margin-bottom: 12px; flex-shrink: 0; }
.modal-body { font-family: var(--font-cn); font-size: 13px; color: var(--white-dim); line-height: 1.7; margin-bottom: 14px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; padding-right: 4px; flex: 1 1 auto; min-height: 0; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex-shrink: 0; }
.entry-rows, .position-list { display: flex; flex-direction: column; gap: 12px; }
.home-order-list { margin-top: 14px; }
.product-top, .position-order-head { display: flex; gap: 12px; }
.page-title-bar { display: flex; align-items: baseline; gap: 12px; padding: 4px 0 2px; }
.page-title-bar h2 { font-family: var(--font-display); font-size: 20px; letter-spacing: .08em; }
.page-subtitle { font-family: var(--font-cn); font-size: 13px; color: rgba(140, 175, 235, 0.7); }
.panel-header { font-family: var(--font-cn); font-size: 14px; font-weight: 700; color: #ffffff; display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.panel-dot { width: 6px; height: 6px; border-radius: 50%; background: #2ee5ff; flex-shrink: 0; }
.panel-badge { font-family: var(--font-cn); font-size: 11px; color: rgba(140, 195, 255, 0.7); background: rgba(24, 42, 95, 0.5); border-radius: 10px; padding: 2px 8px; }
.bind-icon { font-size: 28px; color: rgba(70, 110, 195, 0.5); }
.bind-icon.unbind { color: rgba(65, 96, 175, 0.4); }
.bind-text { font-family: var(--font-cn); font-size: 13px; color: rgba(175, 195, 235, 0.7); }
.my-addr-box { padding: 10px 14px; background: rgba(8, 12, 26, 0.9); border-radius: 8px; margin: 0 14px 14px; }
.home-empty-btn { min-width: 120px; border-radius: 6px; background-image: url("icon/组 20.png"); background-size: cover; background-position: center; background-repeat: no-repeat; border: none; box-shadow: none; }
.empty-icon { font-size: 28px; color: rgba(55, 95, 195, 0.4); }
.team-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ts-item { background: rgba(12, 16, 32, 0.92); border: 1px solid rgba(44, 195, 255, 0.26); border-radius: 10px; padding: 14px 12px; }
.ts-val { font-family: var(--font-display); font-size: 20px; color: #ffffff; margin-top: 6px; }
.fi-label { font-family: var(--font-cn); font-size: 12px; color: rgba(140, 185, 235, 0.8); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.portfolio-card { background: rgba(12, 16, 32, 0.92); border: 1px solid rgba(44, 175, 255, 0.26); border-radius: 10px; padding: 14px 12px; }
.portfolio-card.accent { border-color: rgba(44, 215, 255, 0.48); }
.portfolio-label { font-family: var(--font-cn); font-size: 12px; color: rgba(140, 185, 235, 0.8); display: block; margin-bottom: 6px; }
.portfolio-card strong { font-family: var(--font-display); font-size: 18px; color: #ffffff; display: block; }
.bind-entry-panel { padding: 0; }
.bind-entry-panel .bind-action-grid { padding: 0 14px 14px; }
.binding-panel .binding-status { padding: 0 14px 14px; align-items: flex-start; gap: 8px; }

@media (max-width: 420px) {
  .modal-box { width: min(94vw, 380px); max-height: 88vh; padding: 16px; }
  .modal-body { font-size: 12px; margin-bottom: 12px; }
  .record-filter-btn { flex: 1 1 calc(50% - 8px); min-width: 0; font-size: 10px; padding: 7px 0; }
}

  .logo-sub { font-size: 9px; margin-top: 1px; }
  .wallet-btn { padding: 7px 10px; font-size: 10px; border-radius: 4px; max-width: 112px; overflow: hidden; }
  .main-content { top: 62px; }
  .page-inner { padding: 10px 8px 20px; gap: 12px; }
  .hero-video-wrap { width: 100vw; margin-left: calc(50% - 50vw); aspect-ratio: 350 / 238; }
  .hero-copy-title { font-size: 26px; }
  .hero-copy-text { font-size: 15px; }
  .hero-metrics-grid, .position-console-grid, .team-stats, .portfolio-grid, .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #page-home .hero-metrics-grid { gap: 8px; }
  #page-home .hero-metric-card { min-height: 108px; padding: 12px 10px 12px; border-radius: 14px; }
  #page-home .hero-metric-label { font-size: 11px; margin-bottom: 0; }
  #page-home .hero-metric-value { font-size: 13px; margin-bottom: 4px; }
  #page-home .hero-metric-value span { font-size: 10px; }
  .position-console-card { min-height: 78px; padding: 10px 10px; }
  .position-console-card strong { font-size: 12px; }
  .position-console-label { font-size: 11px; }
  .home-action-btn span { font-size: 10px; }
  .home-orders-head { margin-bottom: 8px; }
  .home-history-btn { padding: 5px 8px; font-size: 10px; }
  .home-orders-head { margin-bottom: 8px; }
  .home-history-btn { padding: 5px 8px; font-size: 10px; }
  .overview-card-main { align-items: center; }
  .overview-coin-art { width: 90px; height: 66px; }
  .subscribe-product-row { grid-template-columns: 52px 1fr; }
  .subscribe-stepper { grid-column: 1 / -1; justify-self: start; }
  .plan-switcher { grid-template-columns: 1fr; }
}

/* ===================================================
   参与 / 团队 / 商城 页面专属样式
   =================================================== */

/* ── 参与页 — overview cards ── */
.overview-mini-sub { font-family: var(--font-cn); font-size: 11px; color: rgba(150,190,240,0.6); margin-top: 2px; }
.overview-mini-stat { min-height: 64px; }

/* ── 参与页 — subscribe panel ── */
.subscribe-record-link { background: none; border: none; color: #1de4ff; font-family: var(--font-cn); font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.subscribe-record-link:hover { opacity: .8; }

/* ── 授权并认购 — 全宽青绿按钮 ── */
.btn-authorize {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; margin-top: 20px;
  border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(90deg, #18d8d8 0%, #1af0ff 35%, #18b8ff 70%, #1060ff 100%);
  color: #ffffff; font-family: var(--font-cn); font-size: 17px; font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 28px rgba(24, 200, 255, 0.35), 0 2px 8px rgba(16, 96, 255, 0.2);
  transition: opacity .2s, transform .15s;
}
.btn-authorize:active { opacity: .88; transform: scale(.99); }

/* ── 团队页 — 页面整体 ── */
#page-team .page-inner { padding: 10px 8px 18px; gap: 10px; }
#page-team .panel-card {
  background: linear-gradient(180deg, rgba(32, 36, 68, 0.98), rgba(27, 31, 60, 0.98));
  border: 1px solid rgba(76, 120, 205, 0.5);
  border-radius: 4px;
  box-shadow: none;
  overflow: hidden;
}

/* ── 团队页 — 页面标题 ── */
.team-page-title { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0; margin-bottom: 2px; }
.team-title-text { font-family: var(--font-cn); font-size: 20px; font-weight: 700; color: #ffffff; letter-spacing: .02em; }
.team-infinity { font-family: serif; margin: 0 2px; color: #56dfff; }
.team-title-line { width: 26px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, #31e8ff, #3f7bff); }

/* ── 团队页 — 统计卡片 ── */
.team-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ts-item {
  min-height: 86px;
  background: linear-gradient(180deg, rgba(35, 40, 74, 0.98), rgba(30, 34, 64, 0.98));
  border: 1px solid rgba(66, 214, 255, 0.52);
  border-radius: 3px;
  padding: 10px 10px 8px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ts-item-top { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ts-item-top img { width: 13px; height: 13px; object-fit: contain; }
.fi-label { font-family: var(--font-cn); font-size: 12px; color: rgba(196, 225, 255, 0.9); }
.ts-val { font-family: var(--font-display); font-size: 16px; color: #f5fcff; text-align: center; line-height: 1; margin-top: 2px; }
.ts-unit { font-size: 11px; font-weight: 400; color: rgba(196, 216, 255, 0.8); margin-left: 3px; }

/* ── 团队页 — panel 标题行 ── */
.panel-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(64, 102, 180, 0.45);
  margin-bottom: 10px;
}
.panel-header-title {
  font-family: var(--font-cn); font-size: 14px; font-weight: 700; color: #ffffff;
  position: relative; padding-bottom: 6px;
}
.panel-header-title::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 20px; height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, #2cf0ff, #4b7dff);
}
.relation-refresh-btn-top {
  background: transparent; border: none;
  padding: 0; color: #49dfff; font-family: var(--font-cn); font-size: 11px; cursor: pointer;
}

/* ── 团队页 — 链接关系 ── */
.bind-entry-panel { padding-bottom: 2px; }
.bind-entry-panel .bind-action-grid { padding: 0 12px 12px; gap: 10px; }
.bind-input {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(66, 214, 255, 0.56);
  background: rgba(22, 26, 52, 0.95);
  color: #cbefff;
  border-radius: 2px;
  padding: 0 10px;
  font-family: var(--font-cn);
}
.bind-input::placeholder { color: rgba(170, 196, 235, 0.62); }
.bind-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-bind-teal {
  min-height: 36px;
  border: 1px solid rgba(52, 210, 255, 0.58);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(44, 217, 255, 0.92), rgba(62, 131, 255, 0.92));
  color: #ffffff;
  font-family: var(--font-cn); font-size: 13px; font-weight: 700;
  box-shadow: none;
}
.bind-tip { font-family: var(--font-cn); color: rgba(170, 190, 228, 0.72); line-height: 1.5; font-size: 10px; }

/* ── 团队页 — 绑定状态 ── */
.binding-panel .binding-status { padding: 2px 12px 12px; align-items: center; gap: 10px; }
.bind-icon.unbind { color: rgba(156, 176, 220, 0.55); font-size: 20px; }
.bind-text { font-family: var(--font-cn); font-size: 12px; color: rgba(186, 202, 236, 0.78); }
.bind-addr-row {
  width: 100%;
  padding: 7px 0;
  border-bottom: 1px solid rgba(57, 92, 165, 0.35);
}
.bind-addr-row:last-child { border-bottom: none; }
.red-val { color: #ff5a86 !important; }

/* ── 团队页 — 团队数据卡片 ── */
.team-data-grid { padding: 0 12px 12px; gap: 8px; }
.team-data-card {
  background: rgba(26, 31, 60, 0.98);
  border: 1px solid rgba(66, 214, 255, 0.45);
  border-radius: 3px;
  padding: 10px 10px 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.team-data-card.accent { border-color: rgba(66, 214, 255, 0.62); }
.portfolio-card-top { display: flex; align-items: center; gap: 6px; }
.portfolio-card-top img { width: 13px; height: 13px; object-fit: contain; }
.portfolio-label { font-family: var(--font-cn); font-size: 11px; color: rgba(188, 220, 255, 0.9); }
.portfolio-unit { font-size: 10px; font-weight: 400; color: rgba(184, 210, 255, 0.7); margin-left: 3px; }
.team-data-card strong { font-family: var(--font-display); font-size: 14px; color: #ffffff; line-height: 1.1; }

/* ── 团队页 — 我的地址 ── */
.panel-card .my-addr-box {
  padding: 0 12px 12px;
  background: transparent;
  margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
#my-addr-display {
  flex: 1;
  max-width: none;
  height: 34px;
  border: 1px solid rgba(72, 114, 198, 0.6);
  border-radius: 2px;
  background: rgba(21, 25, 49, 0.95);
  display: flex; align-items: center;
  padding: 0 10px;
  font-family: var(--font-display);
  font-size: 11px;
  color: #9fd3ff;
}
.copy-btn-teal {
  flex-shrink: 0;
  min-width: 56px;
  height: 34px;
  border: 1px solid rgba(52, 210, 255, 0.62);
  border-radius: 2px;
  padding: 0 14px;
  background: linear-gradient(90deg, #24d8ff 0%, #2f86ff 100%);
  color: #ffffff;
  font-family: var(--font-cn);
  font-size: 13px;
  font-weight: 700;
}

/* ── 团队页 — 直推列表 ── */
.team-invitee-list { padding: 0 12px 12px; gap: 0; }
.team-empty-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 10px;
  background: rgba(24, 28, 56, 0.92);
  border: 1px solid rgba(62, 98, 170, 0.45);
  border-radius: 2px;
}
.team-empty-text { font-family: var(--font-cn); font-size: 12px; color: rgba(186, 208, 244, 0.75); }
.team-empty-sub { font-family: var(--font-cn); font-size: 10px; color: rgba(140,165,220,0.55); text-align: right; }

/* ── 团队页 — 二次细节优化（贴近参考图） ── */
#page-team .page-inner { padding: 7px 6px 14px; gap: 7px; }
#page-team .team-page-title { gap: 5px; padding: 0 2px; margin-bottom: 0; }
#page-team .team-title-text { font-size: 15px; }
#page-team .team-infinity { font-size: 12px; margin: 0 1px; }
#page-team .team-title-line { width: 14px; height: 2px; }

#page-team .panel-card { border-radius: 3px; }
#page-team .team-stats { gap: 6px; }
#page-team .ts-item {
  min-height: 72px;
  padding: 7px 7px 6px;
  border-color: rgba(62, 214, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(126, 244, 255, 0.2);
}
#page-team .ts-item-top { gap: 5px; }
#page-team .ts-item-top img { width: 11px; height: 11px; }
#page-team .fi-label { font-size: 10px; }
#page-team .ts-val { font-size: 14px; margin-top: 1px; }
#page-team .ts-unit { font-size: 10px; }

#page-team .panel-header-bar {
  padding: 8px 9px 6px;
  margin-bottom: 7px;
  background: linear-gradient(180deg, rgba(34, 40, 72, 0.62), rgba(32, 38, 68, 0));
}
#page-team .panel-header-title { font-size: 12px; padding-bottom: 4px; }
#page-team .panel-header-title::after { width: 14px; }
#page-team .panel-badge {
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: #4be5ff;
  font-size: 10px;
}

#page-team .bind-entry-panel .bind-action-grid { padding: 0 9px 9px; gap: 7px; }
#page-team .bind-input { height: 30px; font-size: 11px; border-radius: 1px; }
#page-team .btn-bind-teal { min-height: 32px; font-size: 11px; border-radius: 1px; }
#page-team .bind-tip { font-size: 9px; line-height: 1.4; }

#page-team .binding-panel .binding-status { padding: 0 9px 9px; gap: 7px; }
#page-team .bind-icon.unbind { font-size: 16px; }
#page-team .bind-text { font-size: 11px; }
#page-team .bind-addr-row { padding: 5px 0; }
#page-team .ba-label { font-size: 10px; }
#page-team .ba-val { font-size: 10px; }

#page-team .team-data-grid { padding: 0 9px 9px; gap: 6px; }
#page-team .team-data-card { padding: 7px 7px 6px; gap: 5px; border-radius: 2px; }
#page-team .portfolio-card-top img { width: 11px; height: 11px; }
#page-team .portfolio-label { font-size: 10px; }
#page-team .team-data-card strong { font-size: 13px; }
#page-team .portfolio-unit { font-size: 9px; }

#page-team .panel-card .my-addr-box { padding: 0 9px 9px; gap: 6px; }
#page-team #my-addr-display { height: 30px; font-size: 9px; border-radius: 1px; }
#page-team .copy-btn-teal { min-width: 50px; height: 30px; font-size: 11px; padding: 0 10px; border-radius: 1px; }

#page-team .team-invitee-list { padding: 0 9px 9px; }
#page-team .team-empty-row { padding: 7px; border-radius: 1px; }
#page-team .team-empty-text { font-size: 10px; }
#page-team .team-empty-sub { font-size: 9px; }

/* ── 参与页 — 终版贴图优化（接近参考图） ── */
#page-participate .page-inner { padding: 8px 8px 16px; gap: 8px; }
#page-participate .overview-stack { gap: 6px; }

#page-participate .market-overview-card {
  position: relative;
  overflow: visible;
  padding: 10px 10px 9px;
  background: #262b4f;
  border: 1pt solid #18FAFE;
  border-radius: 2px;
  box-shadow: none;
}
#page-participate .overview-card-main { align-items: center; gap: 10px; }
#page-participate .market-overview-card::after,
#page-participate .subscribe-panel::after {
  content: '';
  position: absolute;
  top: -0.67pt;
  right: -0.67pt;
  bottom: -0.67pt;
  left: -0.67pt;
  border-radius: 2px;
  pointer-events: none;
  box-sizing: border-box;
  border-top: 0.67pt solid #2396DF;
  border-right: 0.67pt solid #2396DF;
  border-bottom: 0.67pt solid #18FAFE;
  border-left: 0.67pt solid #18FAFE;
}
#page-participate .market-overview-card h3 {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 700;
  color: #f5fbff;
  margin-bottom: 6px;
}
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: #ffffff;
}
#page-participate .market-overview-card > .overview-card-main span,
#page-participate .overview-card-main span {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(182, 208, 244, 0.8);
}
#page-participate .overview-card-main img {
  width: 92px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}
#page-participate .overview-card-split {
  margin-top: 8px;
  padding: 8px 8px;
  background: rgba(26, 30, 56, 0.96);
  border: 1px solid rgba(66, 92, 150, 0.35);
  border-radius: 1px;
  gap: 8px;
}
#page-participate .overview-mini-stat { min-height: 52px; gap: 4px; }
#page-participate .overview-mini-stat span { font-size: 12px; color: #4ce8ff; }
#page-participate .overview-mini-stat strong { font-size: 20px; }
#page-participate .overview-mini-sub { font-size: 11px; color: rgba(166, 194, 236, 0.72); }

#page-participate .subscribe-panel {
  position: relative;
  overflow: visible;
  padding: 10px 10px 12px;
  background: #262b4f;
  border: 1pt solid #18FAFE;
  border-radius: 2px;
  box-shadow: none;
}
#page-participate .subscribe-head { margin-bottom: 8px; }
#page-participate .subscribe-title {
  font-family: var(--font-cn);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}
#page-participate .subscribe-record-link { font-size: 12px; color: #47e6ff; }

#page-participate .subscribe-product-row {
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(94, 124, 190, 0.36);
}
#page-participate .subscribe-product-meta { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
#page-participate .subscribe-stepper {
  grid-column: auto;
  justify-self: end;
  align-self: center;
  margin-left: 8px;
}
#page-participate .subscribe-product-media {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  border: 1px solid rgba(70, 210, 255, 0.45);
}
#page-participate .subscribe-product-name {
  font-family: var(--font-cn);
  font-size: 16px;
  color: #f7fbff;
  gap: 6px;
}
#page-participate .subscribe-product-name span { font-size: 12px; color: rgba(160, 198, 243, 0.9); }
#page-participate .subscribe-product-tip { font-size: 10px; margin-top: 2px; color: rgba(162, 186, 226, 0.72); }

#page-participate .qty-stepper {
  gap: 8px;
  border-radius: 2px;
  border: 1px solid rgba(66, 214, 255, 0.62);
  background: rgba(20, 24, 48, 0.96);
  padding: 1px 4px;
}
#page-participate .qty-btn {
  width: 24px;
  height: 24px;
  font-size: 20px;
  color: #4de7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#page-participate .qty-value { min-width: 20px; font-size: 14px; }

#page-participate .subscribe-summary { margin-top: 6px; }
#page-participate .entry-row {
  padding: 8px 0;
  font-size: 13px;
  color: rgba(174, 194, 229, 0.9);
  border-bottom: 1px solid rgba(120, 142, 190, 0.46);
}
#page-participate .entry-val { font-size: 18px; line-height: 1; color: #ffffff; }
#page-participate .entry-val em { font-style: normal; font-size: 13px; margin-left: 4px; color: rgba(224, 238, 255, 0.92); }
#page-participate #summary-cycle,
#page-participate #summary-stock,
#page-participate #summary-shares,
#page-participate #summary-usdc,
#page-participate #summary-fomo,
#page-participate #summary-total-reward,
#page-participate #wallet-balance { font-size: 16px; }

#page-participate .btn-authorize {
  min-height: 42px;
  margin-top: 10px;
  border-radius: 3px;
  border: 1px solid rgba(82, 245, 255, 0.55);
  background: linear-gradient(90deg, #3dcfff 0%, #3db7ff 52%, #2d7eff 100%);
  color: #ffffff;
  font-size: 17px;
  letter-spacing: 0;
  box-shadow: none;
}

@media (max-width: 420px) {
  #page-participate .page-inner { padding: 7px 6px 14px; gap: 7px; }
  #page-participate .market-overview-card { padding: 9px 9px 8px; }
  #page-participate .market-overview-card h3 { font-size: 14px; }
  #page-participate .market-overview-card strong { font-size: 23px; }
  #page-participate .overview-card-main img { width: 78px; height: 54px; }
  #page-participate .overview-card-split { margin-top: 7px; padding: 7px 7px; }
  #page-participate .overview-mini-stat { min-height: 48px; }
  #page-participate .overview-mini-stat span { font-size: 11px; }
  #page-participate .overview-mini-stat strong { font-size: 15px; }
  #page-participate .overview-mini-sub { font-size: 10px; }

  #page-participate .subscribe-panel { padding: 9px 9px 10px; }
  #page-participate .subscribe-title { font-size: 26px; }
  #page-participate .subscribe-record-link { font-size: 11px; }
  #page-participate .subscribe-product-row { grid-template-columns: 40px 1fr auto; gap: 7px; padding-bottom: 7px; }
  #page-participate .subscribe-product-media { width: 40px; height: 40px; }
  #page-participate .subscribe-product-name { font-size: 14px; }
  #page-participate .subscribe-product-name span { font-size: 11px; }
  #page-participate .subscribe-product-tip { font-size: 9px; }
  #page-participate .subscribe-stepper { grid-column: auto; justify-self: end; margin-left: 6px; }
  #page-participate .qty-stepper { gap: 6px; }
  #page-participate .qty-btn { width: 22px; height: 22px; font-size: 18px; }
  #page-participate .qty-value { font-size: 13px; }

  #page-participate .subscribe-summary { margin-top: 5px; }
  #page-participate .entry-row { padding: 7px 0; font-size: 12px; }
  #page-participate .entry-val { font-size: 14px; }
  #page-participate .entry-val em { font-size: 11px; }
  #page-participate #summary-cycle,
  #page-participate #summary-stock,
  #page-participate #summary-shares,
  #page-participate #summary-usdc,
  #page-participate #summary-fomo,
  #page-participate #summary-total-reward,
  #page-participate #wallet-balance { font-size: 13px; }

  #page-participate .btn-authorize { min-height: 40px; font-size: 16px; margin-top: 8px; }
}

/* ── 商城页 ── */
#page-mall { background: #000; }
.mall-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.mall-notice {
  position: absolute;
  top: 36px;
  left: 20px;
  right: 20px;
  z-index: 2;
  text-align: center;
  background: transparent;
}
.mall-notice-title {
  font-family: var(--font-cn); font-size: 22px; font-weight: 700; color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 4px 14px rgba(0,0,0,0.65);
}
.mall-notice-sub {
  font-family: var(--font-cn); font-size: 14px; color: rgba(220,235,255,0.9); line-height: 1.6;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.mall-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.mall-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

/* ── 参与页 — qty stepper 样式细调 ── */
.subscribe-stepper .qty-btn { color: #1de4ff; }
.qty-stepper { border-color: rgba(44, 195, 255, 0.5); }

/* ── 数字更新闪光过渡动画 ── */
@keyframes numFlashUp {
  0%   { background-color: rgba(46, 215, 130, 0.55); border-radius: 3px; }
  100% { background-color: transparent; }
}
@keyframes numFlashDown {
  0%   { background-color: rgba(255, 100, 80, 0.45); border-radius: 3px; }
  100% { background-color: transparent; }
}
@keyframes numFlashNeu {
  0%   { background-color: rgba(46, 215, 255, 0.35); border-radius: 3px; }
  100% { background-color: transparent; }
}
.num-flash-up   { animation: numFlashUp   0.8s ease-out forwards; }
.num-flash-down { animation: numFlashDown 0.8s ease-out forwards; }
.num-flash-neu  { animation: numFlashNeu  0.8s ease-out forwards; }

/* 轮询状态指示点 */
.poll-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(46, 215, 130, 0.4);
  margin-left: 6px;
  vertical-align: middle;
  transition: background 0.3s;
}
.poll-dot.active { background: #2ed782; box-shadow: 0 0 6px #2ed782; animation: pollPulse 0.6s ease-out; }
@keyframes pollPulse {
  0%   { transform: scale(1.8); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}