/* ============================================================
   GMC 功能应用 · 样式（沿用 styles.css 黑金变量，新增交互态）
   ============================================================ */
.app-body { margin:0; background:#070709; }
.app-device {
  position:relative; width:100%; max-width:480px; height:100dvh; margin:0 auto;
  display:flex; flex-direction:column; overflow:hidden;
  background:var(--bg,#0b0b0e); color:var(--text,#f2ede2);
  border-left:1px solid rgba(255,255,255,.05); border-right:1px solid rgba(255,255,255,.05);
}
.app-statusbar {
  flex:none; height:32px; padding:0 16px; display:flex; align-items:center; justify-content:space-between;
  font-size:12px; font-weight:600; color:var(--muted,#9c968a);
  padding-top:env(safe-area-inset-top); box-sizing:content-box;
}
.app-statusbar .sb-right { display:flex; align-items:center; gap:5px; }
.db-badge { font-size:9px; padding:2px 6px; border-radius:8px; border:1px solid rgba(216,180,92,.35); color:#d8b45c; letter-spacing:.04em; }
.db-badge.on { background:rgba(216,180,92,.14); }
.db-badge.off { color:#c98d8d; border-color:rgba(201,141,141,.4); }
.app-screen { flex:1; overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling:touch; padding-bottom:8px; }
.app-screen::-webkit-scrollbar { display:none; }
.app-tabbar {
  flex:none; display:flex; background:rgba(14,14,17,.96); border-top:1px solid rgba(255,255,255,.07);
  padding-bottom:env(safe-area-inset-bottom); backdrop-filter:blur(6px);
}
.app-tabbar button {
  flex:1; background:none; border:0; color:var(--muted,#9c968a); padding:8px 2px 9px;
  display:flex; flex-direction:column; align-items:center; gap:3px; font-size:10.5px; cursor:pointer;
}
.app-tabbar button iconify-icon { font-size:19px; }
.app-tabbar button.on { color:var(--gold,#d8b45c); }
.app-tabbar button:active { opacity:.65; }

/* ---------- 通用页面区块 ---------- */
.ap { padding:14px 14px 8px; }
.ap-sec { margin:16px 0 8px; display:flex; align-items:center; justify-content:space-between; }
.ap-sec h3 { margin:0; font-size:13px; font-weight:600; color:var(--gold,#d8b45c); letter-spacing:.05em; }
.ap-sec .link { font-size:11px; color:var(--muted,#9c968a); background:none; border:0; cursor:pointer; }

.card2 { background:linear-gradient(145deg,rgba(28,27,24,.9),rgba(18,18,20,.9)); border:1px solid rgba(216,180,92,.16); border-radius:var(--r-lg); padding:14px; margin-bottom:10px; }
.card2.gold { border-color:rgba(216,180,92,.42); background:linear-gradient(145deg,rgba(52,43,25,.65),rgba(20,19,17,.9)); }
.card2.flat { background:rgba(255,255,255,.025); border-color:rgba(255,255,255,.06); }
.label2 { font-size:11px; color:var(--muted,#9c968a); letter-spacing:.05em; }
/* 余额显隐图标：视觉尺寸保持 12px，但提供 28px 触控热区与按压反馈 */
.balance-toggle { display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; margin-left:4px; border-radius:8px; touch-action:manipulation; transition:background .14s ease, transform .12s ease; }
.balance-toggle:active { background:rgba(216,180,92,.16); transform:scale(.92); }
.balance-toggle iconify-icon, .balance-toggle .ic-fb { pointer-events:none; }
.big2 { font-family:ui-serif,Georgia,serif; font-size:26px; color:var(--gold-bright,#f3d793); letter-spacing:.02em; }
.mid2 { font-size:16px; font-weight:600; }
.sub2 { font-size:11.5px; color:var(--muted,#9c968a); line-height:1.6; }

/* ---------- 统计格 ---------- */
.grid2 { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; }
.grid4 { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
.stat2 { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:var(--r); padding:10px 8px; text-align:center; }
.stat2 .k { font-size:10px; color:var(--muted,#9c968a); }
.stat2 .v { font-size:16px; font-weight:600; margin-top:5px; color:var(--text,#f2ede2); }
.stat2 .v.gold { color:var(--gold-bright,#f3d793); }

/* ---------- 快捷操作 ---------- */
.quick2 { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.quick2 button { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.07); border-radius:12px; padding:11px 4px; color:var(--text,#f2ede2); font-size:11px; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; }
.quick2 button iconify-icon { font-size:19px; color:var(--gold,#d8b45c); pointer-events:none; transition:transform .12s ease; }
.quick2 button:active { transform:scale(.96); background:rgba(216,180,92,.12); }
.quick2 button:active iconify-icon { transform:scale(.9); }

/* ---------- 列表行 ---------- */
.row2 { display:flex; align-items:center; gap:10px; padding:11px 12px; background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.055); border-radius:var(--r); margin-bottom:7px; }
.row2 .ic { width:30px; height:30px; border-radius:9px; background:rgba(216,180,92,.12); color:var(--gold,#d8b45c); display:flex; align-items:center; justify-content:center; font-size:15px; flex:none; }
.row2 .main { flex:1; min-width:0; }
.row2 .t { font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row2 .d { font-size:10.5px; color:var(--muted,#9c968a); margin-top:3px; }
.row2 .v { font-size:13px; font-weight:600; text-align:right; flex:none; }
.v.ok { color:var(--ok); } .v.warn { color:var(--warn); } .v.bad { color:var(--bad); } .v.mute { color:var(--muted,#9c968a); }
.row2.tap { cursor:pointer; } .row2.tap:active { background:rgba(216,180,92,.1); }
.tag2 { font-size:9.5px; padding:2px 7px; border-radius:8px; border:1px solid rgba(255,255,255,.12); color:var(--muted,#9c968a); }
.tag2.ok { color:var(--ok); border-color:rgba(143,214,160,.35); }
.tag2.warn { color:var(--warn); border-color:rgba(230,180,94,.35); }
.tag2.gold { color:var(--gold-bright,#f3d793); border-color:rgba(216,180,92,.4); }
/* 直推/间推关系配色 */
.tag2.tag-direct { color:#63d6a0; border-color:rgba(99,214,160,.45); background:rgba(99,214,160,.08); }
.tag2.tag-indirect { color:#7ab8ff; border-color:rgba(122,184,255,.45); background:rgba(122,184,255,.08); }
.gmv-stat.gmv-tone-ok .gmv-k iconify-icon { color:#63d6a0; }
.gmv-stat.gmv-tone-info .gmv-k iconify-icon { color:#7ab8ff; }
.reward-gmc { border-color:rgba(216,180,92,.28); }
.reward-pts { border-color:rgba(122,184,255,.24); }

/* ---------- 按钮 ---------- */
.btn2 { display:inline-flex; align-items:center; justify-content:center; gap:6px; width:100%; padding:12px 14px; border-radius:var(--r); font-size:13.5px; font-weight:600; cursor:pointer; border:1px solid rgba(216,180,92,.45); background:linear-gradient(160deg,#f6e0a8,#d8b45c 42%,#b3893a); color:#171410; }
.btn2.ghost { background:transparent; color:var(--gold,#d8b45c); border-color:rgba(216,180,92,.35); }
.btn2.line { background:rgba(255,255,255,.03); color:var(--text,#f2ede2); border-color:rgba(255,255,255,.12); }
.btn2.sm { width:auto; padding:7px 13px; font-size:11.5px; }
.btn2:disabled { opacity:.55; cursor:not-allowed; }
.btn2:not(:disabled):active { transform:scale(.985); }
.btnrow { display:flex; gap:8px; }
.spinner { width:13px; height:13px; border:2px solid rgba(0,0,0,.25); border-top-color:#171410; border-radius:50%; animation:spin .7s linear infinite; }
.btn2.ghost .spinner { border-color:rgba(216,180,92,.3); border-top-color:var(--gold,#d8b45c); }
@keyframes spin { to { transform:rotate(360deg); } }

/* ---------- 表单 ---------- */
.form2 { background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.06); border-radius:12px; padding:12px; }
.fld { margin-bottom:12px; }
.fld:last-child { margin-bottom:0; }
.fld label { display:block; font-size:11.5px; color:var(--muted,#9c968a); margin-bottom:6px; }
.fld input, .fld select { width:100%; box-sizing:border-box; background:#0d0d10; border:1px solid rgba(255,255,255,.12); border-radius:9px; padding:11px 12px; color:var(--text,#f2ede2); font-size:13.5px; outline:none; }
.fld input:focus, .fld select:focus { border-color:rgba(216,180,92,.6);box-shadow:0 0 0 3px rgba(216,180,92,.12); }
.fld input.err { border-color:rgba(217,141,141,.7); }
.fld .err-msg { color:var(--bad); font-size:10.5px; margin-top:5px; display:none; }
.fld .err-msg.show { display:block; }
.fld .hint { font-size:10.5px; color:var(--muted,#9c968a); margin-top:5px; }
.quote-box { background:rgba(216,180,92,.07); border:1px solid rgba(216,180,92,.2); border-radius:9px; padding:10px 12px; margin-top:10px; }
.quote-box .kv2 { display:flex; justify-content:space-between; font-size:11.5px; padding:3px 0; }
.quote-box .kv2 b { color:var(--gold-bright,#f3d793); font-weight:600; }
.tabs2 { display:flex; gap:6px; margin-bottom:12px; overflow-x:auto; }
.tabs2::-webkit-scrollbar { display:none; }
.tabs2 button { flex:none; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.09); color:var(--muted,#9c968a); border-radius:20px; padding:7px 14px; font-size:11.5px; cursor:pointer; }
.tabs2 button.on { background:rgba(216,180,92,.15); border-color:rgba(216,180,92,.45); color:var(--gold-bright,#f3d793); }
/* 交易三按钮：等宽自适应 + 图标对齐 */
.tabs2.tabs3 { gap:8px; overflow:visible; }
.tabs2.tabs3 button { flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; gap:5px; padding:9px 6px; white-space:nowrap; }
.tabs2.tabs3 button iconify-icon,.tabs2.tabs3 button .ic-fb { flex:none; }
.trade-balances { margin-bottom:12px; }
.trade-balances .card2 { padding:11px 12px; }
.trade-note { display:flex; align-items:flex-start; gap:6px; margin-top:11px; padding:9px 11px; border-radius:9px; font-size:10.5px; line-height:1.5; color:var(--warn,#d8a24e); background:rgba(224,168,78,.08); border:1px solid rgba(224,168,78,.22); }
.trade-note iconify-icon,.trade-note .ic-fb { flex:none; margin-top:1px; }
.trade-note.reward { color:var(--ok,#4fbe8b); background:rgba(79,190,139,.08); border-color:rgba(79,190,139,.22); }
.reinvest-cd { display:flex; align-items:center; gap:6px; margin:2px 0 11px; font-size:11px; color:var(--gold,#d8b45c); }
.reinvest-cd iconify-icon,.reinvest-cd .ic-fb { flex:none; }

/* ---------- 加载 / 空态 / 错误态 ---------- */
.skeleton { background:linear-gradient(90deg,rgba(255,255,255,.04) 25%,rgba(255,255,255,.09) 50%,rgba(255,255,255,.04) 75%); background-size:200% 100%; animation:shimmer 1.4s infinite; border-radius:8px; }
@keyframes shimmer { to { background-position:-200% 0; } }
.sk-line { height:12px; margin:8px 0; }
.sk-card { height:92px; border-radius:var(--r-lg); margin-bottom:10px; }
.empty2 { text-align:center; padding:34px 16px; }
.empty2 iconify-icon { font-size:30px; color:rgba(216,180,92,.4); }
.empty2 h4 { margin:12px 0 6px; font-size:13.5px; font-weight:600; }
.empty2 p { margin:0 0 14px; font-size:11.5px; color:var(--muted,#9c968a); line-height:1.6; }
.errbox { text-align:center; padding:28px 16px; }
.errbox iconify-icon { font-size:26px; color:var(--bad); }
.errbox p { font-size:12px; color:var(--muted,#9c968a); margin:10px 0 14px; }
.inline-loading { text-align:center; padding:18px; font-size:11.5px; color:var(--muted,#9c968a); }

/* ---------- 弹窗 / toast ---------- */
.ov { position:absolute; inset:0; background:rgba(0,0,0,.68); display:flex; align-items:flex-end; z-index:60; }
.ov.center { align-items:center; justify-content:center; padding:24px; }
.sheet2 { width:100%; background:#141417; border-top:1px solid rgba(216,180,92,.3); border-radius:18px 18px 0 0; padding:18px 16px calc(18px + env(safe-area-inset-bottom)); max-height:82%; overflow-y:auto; }
.sheet2.center { border-radius:15px; border:1px solid rgba(216,180,92,.3); max-width:340px; padding:20px; text-align:center; }
.sheet2 h3 { margin:0 0 12px; font-size:15px; }
.sheet2 .result-ico { font-size:34px; margin-bottom:10px; }
.sheet2 .result-ico.ok { color:var(--ok); } .sheet2 .result-ico.bad { color:var(--bad); }
.sheet2 .result-title { font-size:16px; font-weight:600; margin-bottom:6px; }
.sheet2 .result-desc { font-size:11.5px; color:var(--muted,#9c968a); line-height:1.6; margin-bottom:14px; }
.summary2 { background:rgba(255,255,255,.03); border-radius:10px; padding:10px 12px; margin-bottom:14px; }
.summary2 .kv2 { display:flex; justify-content:space-between; font-size:12px; padding:5px 0; }
.summary2 .kv2 span:last-child { font-weight:600; }
.toast2 { position:absolute; left:50%; bottom:88px; transform:translateX(-50%) translateY(10px); z-index:90; min-width:150px; max-width:88%; padding:10px 16px; border-radius:22px; font-size:12px; text-align:center; opacity:0; transition:.22s; pointer-events:none; }
.toast2.show { opacity:1; transform:translateX(-50%) translateY(0); }
.toast2.ok { background:rgba(46,84,58,.96); color:#c8f0d2; border:1px solid rgba(143,214,160,.4); }
.toast2.bad { background:rgba(92,42,42,.96); color:#f3c9c9; border:1px solid rgba(217,141,141,.4); }
.toast2.warn { background:rgba(92,74,36,.96); color:#f0dca8; border:1px solid rgba(230,180,94,.4); }
.toast2.info { background:rgba(38,38,44,.96); color:#e8e4da; border:1px solid rgba(255,255,255,.16); }

/* ---------- 规则中心 ---------- */
.rule-cat { margin-bottom:9px; }
.rule-cat > button { width:100%; text-align:left; background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.07); border-radius:var(--r); padding:12px; color:var(--text,#f2ede2); display:flex; align-items:center; gap:10px; cursor:pointer; }
.rule-cat > button iconify-icon:first-child { color:var(--gold,#d8b45c); font-size:17px; }
.rule-cat .rc-main { flex:1; }
.rule-cat .rc-t { font-size:13px; font-weight:700; }
.rule-cat .rc-d { font-size:10.5px; color:var(--muted,#9c968a); margin-top:7px; }
.rule-body { padding:10px 12px 4px; background:rgba(0,0,0,.2); border:1px solid rgba(255,255,255,.05); border-top:0; border-radius:0 0 11px 11px; }
.tbl2-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:10px; }
.tbl2 { width:100%; border-collapse:collapse; font-size:11px; }
.tbl2 th, .tbl2 td { white-space:nowrap; }
.tbl2 th { text-align:left; color:var(--gold,#d8b45c); font-weight:600; padding:6px 5px; border-bottom:1px solid rgba(255,255,255,.08); }
.tbl2 td { padding:6px 5px; border-bottom:1px solid rgba(255,255,255,.04); color:var(--text,#e9e4d9); }
.tbl2 td:not(:first-child) { color:var(--gold-bright,#f3d793); }
.flag2 { font-size:10px; color:var(--warn); margin-top:8px; line-height:1.5; }
.chip2 { display:inline-block; font-size:10px; padding:2px 8px; border-radius:9px; background:rgba(216,180,92,.12); color:var(--gold-bright,#f3d793); margin:2px 4px 2px 0; }
.bar2 { height:6px; border-radius:4px; background:rgba(255,255,255,.08); overflow:hidden; margin-top:8px; }
.bar2 > i { display:block; height:100%; background:linear-gradient(90deg,#8e6f2a,#f3d793); }
.note2 { font-size:10.5px; color:var(--muted,#9c968a); line-height:1.6; padding:9px 11px; border-left:2px solid rgba(216,180,92,.4); background:rgba(216,180,92,.05); margin:8px 0; }
.msg-bubble { max-width:78%; padding:9px 12px; border-radius:12px; font-size:12.5px; margin-bottom:8px; line-height:1.5; }
.msg-bubble.them { background:rgba(255,255,255,.06); border-bottom-left-radius:3px; }
.msg-bubble.me { background:rgba(216,180,92,.18); border-bottom-right-radius:3px; margin-left:auto; }
.msg-time { font-size:9.5px; color:var(--muted,#9c968a); }

/* ============================================================
   响应式适配：手机全屏（默认） → 平板居中卡片 → 桌面双栏控制台
   断点：≤719 手机 / 720–1099 平板 / ≥1100 桌面
   ============================================================ */
.app-brand { display:none; }
.ap-cols { display:block; }
/* 与 styles.css 全局 .ic-fb 保持一致（app.css 后加载会覆盖全局版，此处补全属性避免漂移） */
.ic-fb { display:inline-flex; align-items:center; justify-content:center; width:1em; height:1em; font-size:.82em; font-weight:700; line-height:1; color:var(--gold,#d8b45c); font-style:normal; flex-shrink:0; vertical-align:middle; }

@media (min-width:720px) and (max-width:1099px) {
  .app-body { display:flex; align-items:center; justify-content:center; }
  .app-device {
    max-width:720px; height:min(100dvh - 32px, 960px); margin:16px auto;
    border:1px solid rgba(216,180,92,.18); border-radius:20px;
    box-shadow:0 24px 70px rgba(0,0,0,.55); overflow:hidden;
  }
  .ap { padding:18px 20px 12px; }
  .grid2 { grid-template-columns:repeat(4,1fr); }
  .quick2 { gap:12px; }
  .card2 { padding:16px; }
  .btn2 { max-width:420px; margin-left:auto; margin-right:auto; }
}

@media (min-width:1100px) {
  .app-device {
    max-width:none; width:100%; height:100dvh; margin:0; border:0; border-radius:0;
    display:grid; grid-template-columns:232px minmax(0,1fr); grid-template-rows:48px minmax(0,1fr);
  }
  .app-statusbar {
    grid-column:1/-1; grid-row:1; height:48px; box-sizing:border-box;
    padding:0 22px; padding-top:0; border-bottom:1px solid rgba(255,255,255,.07);
    background:rgba(14,14,17,.96);
  }
  .app-brand {
    display:inline; position:absolute; left:50%; transform:translateX(-50%);
    font-size:13px; letter-spacing:.12em; color:var(--gold-bright,#f3d793); font-weight:600;
  }
  .app-tabbar {
    grid-column:1; grid-row:2; flex-direction:column; justify-content:flex-start; align-items:stretch;
    gap:4px; padding:16px 10px; border-top:0; border-right:1px solid rgba(255,255,255,.07);
    background:rgba(12,12,15,.8);
  }
  .app-tabbar button {
    flex:none; flex-direction:row; justify-content:flex-start; gap:12px;
    padding:12px 14px; font-size:13px; border-radius:10px;
  }
  .app-tabbar button iconify-icon, .app-tabbar button .ic-fb { font-size:18px; }
  .app-tabbar button.on { background:rgba(216,180,92,.13); }
  .app-screen { grid-column:2; grid-row:2; }
  .ap { max-width:1080px; margin:0 auto; padding:24px 30px 28px; }
  .ap-cols { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); gap:20px; align-items:start; }
  .ap-cols > * { min-width:0; }
  .grid2 { grid-template-columns:repeat(4,1fr); }
  .grid4 { gap:12px; }
  .card2 { padding:18px; }
  .form2 { padding:16px; }
  .quick2 { gap:12px; }
  .btn2 { max-width:340px; }
  .btnrow { max-width:700px; }
  .toast2 { bottom:26px; }
  .sheet2.center { max-width:420px; }
}

@media (max-width:360px) {
  .ap { padding:10px 10px 6px; }
  .grid4 { gap:4px; }
  .stat2 { padding:8px 4px; }
  .quick2 { gap:5px; }
  .big2 { font-size:22px; }
  .app-tabbar button { font-size:9.5px; }
}

@media (prefers-reduced-motion:reduce) {
  .skeleton, .spinner, .toast2 { animation:none !important; transition:none !important; }
}

/* ============================================================
   补充适配：超宽屏 / 大屏手机 / 超小屏 / 横屏 / 滚动与动效
   ============================================================ */
.app-screen { overscroll-behavior:contain; }

@media (min-width:1600px) {
  .app-device { grid-template-columns:252px minmax(0,1fr); }
  .ap { max-width:1240px; padding:28px 36px 32px; }
  .ap-cols { grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:24px; }
  .card2 { padding:20px; }
  .grid4 { gap:14px; }
  .tbl2 { font-size:12px; }
}

@media (min-width:420px) and (max-width:719px) {
  .ap { padding:16px 18px 10px; }
  .big2 { font-size:clamp(24px,6.2vw,30px); }
  .grid4 { gap:9px; }
  .btn2 { font-size:14px; }
  .card2 { padding:16px; }
}

@media (max-width:360px) {
  .row2 { padding:9px; gap:7px; }
  .row2 .t { font-size:12px; }
  .row2 .ic { width:26px; height:26px; font-size:13px; }
  .btn2 { font-size:12.5px; padding:11px 10px; }
  .tabs2 button { padding:6px 10px; font-size:11px; }
  .card2 { padding:12px; }
  .msg-bubble { max-width:88%; }
  .sheet2 { padding-left:12px; padding-right:12px; }
}

/* 平板 / 桌面：按钮行内按钮不受单按钮限宽约束 */
@media (min-width:720px) {
  .btnrow .btn2 { max-width:none; }
  .btnrow { gap:10px; }
  .app-screen::-webkit-scrollbar { display:block; width:8px; }
  .app-screen::-webkit-scrollbar-thumb { background:rgba(216,180,92,.24); border-radius:99px; }
  .app-screen::-webkit-scrollbar-track { background:transparent; }
}

/* 手机横屏：压缩状态栏与底部导航，弹窗可滚动 */
@media (max-height:520px) and (orientation:landscape) and (max-width:900px) {
  .app-statusbar { height:24px; padding:0 10px; font-size:10px; }
  .app-tabbar { padding-top:0; }
  .app-tabbar button { flex-direction:row; gap:6px; padding:5px 4px; font-size:10px; }
  .app-tabbar button iconify-icon, .app-tabbar button .ic-fb { font-size:15px; }
  .sheet2 { max-height:94%; }
  .ov.center { padding:12px; }
  .toast2 { bottom:18px; }
}

@media (prefers-reduced-motion:reduce) {
  .btn2:not(:disabled):active, .quick2 button:active, .row2.tap:active { transform:none; }
  .card2, .tag2, .chip2 { transition:none !important; }
}

/* ============================================================
   第九轮 · 功能应用视觉精修（gmv-* 应用层适配，纯追加）
   ============================================================ */

/* 总览英雄资产卡：金色辉光 + 环形点缀 */
.ap .card2.gold{
  position:relative;overflow:hidden;
  box-shadow:0 14px 40px rgba(0,0,0,.42), 0 0 30px rgba(216,180,92,.09), inset 0 1px 0 rgba(255,255,255,.08);
}
.ap .card2.gold::after{
  content:"";position:absolute;top:0;left:18px;right:18px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(243,215,147,.7),transparent);
}
.ap .big2{font-variant-numeric:tabular-nums;text-shadow:0 2px 18px rgba(243,215,147,.18)}

/* 统计格悬停微反馈（桌面） */
@media (min-width:720px){
  .stat2{transition:transform .16s, border-color .16s, background .16s}
  .stat2:hover{transform:translateY(-2px);border-color:rgba(216,180,92,.34);background:rgba(216,180,92,.07)}
  .row2.tap{transition:transform .14s, background .14s}
  .row2.tap:hover{transform:translateX(2px)}
}

/* tabbar 激活项：顶部金色指示条 */
.app-tabbar button{position:relative}
.app-tabbar button.on::before{
  content:"";position:absolute;top:0;left:28%;right:28%;height:2px;border-radius:0 0 3px 3px;
  background:linear-gradient(90deg,transparent,#d8b45c,transparent);
}
@media (min-width:1100px){
  .app-tabbar button.on::before{top:14%;bottom:14%;left:0;right:auto;width:2px;border-radius:0 3px 3px 0;height:auto}
}

/* 可视化组件在应用内的间距校准 */
.ap .gmv-sec h3{font-size:12.5px}
.ap .gmv-stat .gmv-v{font-size:16px}
.ap .gmv-glass{border-radius:var(--r-lg)}
.ap .gmv-ring{margin:0 auto}

/* 交互反馈增强：桌面端 hover 态（移动端不启用，避免触摸粘滞态） */
@media (min-width:720px){
  .tabs2 button,.rule-cat > button,.ap-sec .link{transition:color .16s,border-color .16s,background .16s}
  .tabs2 button:not(.on):hover,.rule-cat > button:hover,.ap-sec .link:hover{
    color:var(--gold-bright);border-color:rgba(216,180,92,.4);background:rgba(216,180,92,.06)
  }
}

/* ============================================================
   全局响应式 · 图标横排 · 按钮自适应（第二十四轮）
   ------------------------------------------------------------
   gmv-stat 区改为 CSS Grid 完美自适应：
     窄屏 2 列 → 中屏 4 列 → 宽屏 4 列 + 更大间距
   tabs3 三个按钮 flex:1 等分 + gap 自适应
   stat2 2 列默认、720px 起 4 列
   btnrow 允许换行但默认不换
   ============================================================ */
.ap .gmv-sec {
  display:grid; gap:8px; margin:16px 0 9px;
  grid-template-columns:repeat(4, minmax(0, 1fr));
}
.ap .gmv-sec > h3, .ap .gmv-sec > .gmv-link { grid-column:1/-1; }
.ap .gmv-sec > .gmv-stat { min-width:0; display:block; }
.ap .gmv-sec > .gmv-row { grid-column:1/-1; display:contents; gap:inherit; }
.ap .gmv-sec > .gmv-row > .gmv-stat { min-width:0; }
.ap .gmv-stat { padding:11px 11px 10px; }
.ap .gmv-stat .gmv-k { font-size:12px; margin-bottom:4px; }
.ap .gmv-stat .gmv-v { font-size:15px; font-weight:700; line-height:1.15; word-break:break-all; }
.ap .gmv-stat .gmv-d { font-size:9.5px; margin-top:3px; color:var(--muted,#9c968a); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* 三栏等分 tabs（互转/充值/提现） */
.tabs2.tabs3 { display:grid !important; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:7px; overflow:visible; }
.tabs2.tabs3 button {
  flex:none !important; min-width:0; width:auto;
  padding:9px 6px; font-size:11.5px; border-radius:10px;
  display:flex; align-items:center; justify-content:center; gap:5px;
}
.tabs2.tabs3 button iconify-icon, .tabs2.tabs3 button .ic-fb { font-size:14px; flex:none; }

/* 按钮组自适应：窄屏允许换行但优先一排 */
.btnrow { flex-wrap:wrap; gap:8px; }
.btnrow .btn2 { min-width:0; flex:1 1 0; }
.btnrow .btn2.sm { flex:none; width:auto; }

/* stat 卡片自适应 */
.stat2 .v { font-variant-numeric:tabular-nums; line-height:1.15; }
.stat2.gold .v { text-shadow:0 0 8px rgba(243,215,147,.22); }

/* 余额+积分双卡并排自适应 */
.trade-balances .grid2 { gap:9px; }
.trade-balances .grid2 .card2 { padding:12px 14px; }
.trade-balances .grid2 .stat2 { padding:10px 8px; }

/* 快捷操作 4 等分按钮 */
.quick2 { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:7px; }
.quick2 button { padding:10px 3px; border-radius:11px; }
.quick2 button iconify-icon { font-size:18px; }

/* 响应式断点细化 */
@media (max-width:420px){
  .ap .gmv-sec { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:7px; }
  .ap .gmv-stat { padding:10px 10px 9px; }
  .ap .gmv-stat .gmv-v { font-size:14px; }
  .tabs2.tabs3 button { padding:8px 4px; font-size:10.5px; gap:4px; }
  .grid2 { grid-template-columns:repeat(2, 1fr); gap:8px; }
  .stat2 { padding:9px 6px; }
  .quick2 button { padding:9px 2px; font-size:10px; gap:5px; }
  .quick2 button iconify-icon { font-size:16px; }
  .btn2 { padding:11px 12px; font-size:13px; }
  .btnrow { gap:7px; }
}
@media (min-width:421px) and (max-width:719px){
  .ap .gmv-sec { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
  .grid2 { grid-template-columns:repeat(2, 1fr); }
}
@media (min-width:720px){
  .ap .gmv-sec { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
  .ap .gmv-stat { padding:13px 13px 12px; }
  .ap .gmv-stat .gmv-v { font-size:16px; }
  .grid2 { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
  .stat2 { padding:12px 10px; }
  .quick2 { gap:10px; }
  .btn2 { padding:13px 16px; font-size:14px; max-width:none; }
  .btnrow { gap:10px; }
}
@media (min-width:1100px){
  .ap .gmv-sec { gap:14px; }
  .ap .gmv-stat { padding:14px 14px 13px; }
  .ap .gmv-stat .gmv-v { font-size:17px; }
  .grid2 { gap:12px; }
  .quick2 { gap:12px; }
}

/* VIP 可点击态（推广等级→规则中心） */
.ap .gmv-sec .gmv-row > .tap, .ap .gmv-stat.tap { cursor:pointer; }
.ap .gmv-stat.tap { transition:transform .16s, border-color .16s, background .16s; }
.ap .gmv-stat.tap:active { transform:scale(.97); border-color:rgba(216,180,92,.5); background:rgba(216,180,92,.1); }

/* ============================================================
   第三十轮 · 视觉精修（黑曜 × 香槟金）
   ------------------------------------------------------------
   仅做「表皮」升级：色阶 / 光影 / 层次 / 微交互 / 流式排版。
   不改 DOM、不改类名、不改任何业务行为，纯 CSS 追加，可整段回滚。
   ============================================================ */
:root{
  --g-100:#fff5dc; --g-200:#f8e7b8; --g-300:#f3d793; --g-400:#e3c272;
  --g-500:#d8b45c; --g-600:#b9924a; --g-700:#8e6f2a;
  --s-0:#07070a; --s-1:#0c0c10; --s-2:#121217; --s-3:#191920;
  --hair:rgba(255,255,255,.065);
  --hair-gold:rgba(216,180,92,.22);
  --elev-1:0 1px 2px rgba(0,0,0,.42), 0 10px 28px -14px rgba(0,0,0,.72);
  --elev-2:0 2px 6px rgba(0,0,0,.42), 0 22px 56px -22px rgba(0,0,0,.82);
  --glow-gold:0 0 0 1px rgba(216,180,92,.16), 0 16px 44px -18px rgba(216,180,92,.30);
  --spring:cubic-bezier(.22,1,.36,1);
  --font-display:ui-serif,"Songti SC",Georgia,"Times New Roman",serif;
}

/* ---------- 1. 画布氛围：深空底 + 双极柔光 ---------- */
.app-body{ background:#050507; }
.app-device{
  background:
    radial-gradient(90% 46% at 50% -12%,rgba(216,180,92,.13),transparent 62%),
    radial-gradient(70% 40% at 108% 32%,rgba(142,111,42,.10),transparent 68%),
    radial-gradient(80% 50% at -12% 96%,rgba(216,180,92,.06),transparent 70%),
    linear-gradient(180deg,#0a0a0e 0%,#07070a 44%,#050507 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
.app-statusbar{
  background:linear-gradient(180deg,rgba(10,10,14,.92),rgba(10,10,14,.55) 70%,transparent);
  letter-spacing:.02em;
  border-bottom:1px solid rgba(255,255,255,.035);
}
.app-statusbar .db-badge{ backdrop-filter:blur(8px); }
.app-tabbar{
  background:linear-gradient(180deg,rgba(18,18,23,.82),rgba(10,10,14,.96));
  border-top:1px solid var(--hair-gold);
  box-shadow:0 -14px 34px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(18px) saturate(1.25);
  -webkit-backdrop-filter:blur(18px) saturate(1.25);
  padding-top:5px;
}
.app-tabbar button{
  border-radius:12px;
  transition:color .2s ease, background .24s ease, transform .16s var(--spring);
}
.app-tabbar button.on{
  color:var(--g-300);
  background:radial-gradient(62% 78% at 50% 22%,rgba(216,180,92,.18),rgba(216,180,92,.03) 72%,transparent);
}
.app-tabbar button.on iconify-icon{ filter:drop-shadow(0 0 8px rgba(243,215,147,.4)); }
.app-tabbar button:active{ transform:scale(.94); }

/* ---------- 2. 卡片：细描边 + 内高光 + 悬浮层次 ---------- */
.card2{
  position:relative;
  background:
    linear-gradient(158deg,rgba(255,255,255,.055),rgba(255,255,255,.012) 42%,rgba(216,180,92,.028));
  border-color:var(--hair);
  box-shadow:var(--elev-1), inset 0 1px 0 rgba(255,255,255,.055);
  transition:border-color .22s ease, box-shadow .26s ease, transform .22s var(--spring);
}
.card2.flat{ background:linear-gradient(158deg,rgba(255,255,255,.035),rgba(255,255,255,.008)); }
.ap .card2.gold{
  background:
    radial-gradient(130% 108% at 92% -18%,rgba(216,180,92,.24),transparent 60%),
    radial-gradient(90% 80% at -6% 118%,rgba(142,111,42,.14),transparent 62%),
    linear-gradient(158deg,rgba(46,39,25,.88),rgba(16,16,20,.96));
  border-color:rgba(216,180,92,.38);
  box-shadow:var(--elev-2), 0 0 46px -16px rgba(216,180,92,.36), inset 0 1px 0 rgba(255,255,255,.10);
}
.ap .card2.gold::before{
  content:"";position:absolute;right:-56px;top:-70px;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(243,215,147,.20),transparent 68%);
  pointer-events:none;
}
.ap .card2.gold::after{
  left:16px;right:16px;
  background:linear-gradient(90deg,transparent,rgba(255,245,220,.85),transparent);
}
.card2 .label2{ letter-spacing:.1em; }
.big2{
  font-family:var(--font-display);
  background:linear-gradient(180deg,var(--g-100) 6%,var(--g-300) 52%,#c79f4d 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 8px 22px rgba(216,180,92,.22));
  font-variant-numeric:tabular-nums;
}
@supports not ((-webkit-background-clip:text)){
  .big2{ color:var(--g-300); background:none; }
}

/* ---------- 3. 数据格：统一描边 + 悬停浮起 ---------- */
.stat2{
  background:linear-gradient(155deg,rgba(255,255,255,.05),rgba(255,255,255,.012));
  border-color:var(--hair);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:transform .2s var(--spring), border-color .2s, background .2s;
}
.stat2 .v{ font-variant-numeric:tabular-nums; letter-spacing:.01em; }
.gmv-stat{
  border-color:var(--hair-gold);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .2s var(--spring), border-color .2s, box-shadow .24s;
}
.gmv-stat .gmv-k{ letter-spacing:.06em; }
.gmv-stat .gmv-v{ letter-spacing:.01em; }
@media (hover:hover){
  .stat2:hover{ transform:translateY(-2px); border-color:rgba(216,180,92,.36); }
  .gmv-stat:hover{ transform:translateY(-2px); border-color:rgba(216,180,92,.40); box-shadow:0 10px 26px -16px rgba(0,0,0,.9), 0 0 24px -14px rgba(216,180,92,.5), inset 0 1px 0 rgba(255,255,255,.07); }
}

/* ---------- 4. 按钮：缎面金属 + 掠光 ---------- */
.btn2{
  position:relative;overflow:hidden;
  border-color:rgba(216,180,92,.52);
  background:linear-gradient(168deg,#fff0c6 0%,#f0d391 26%,#d8b45c 56%,#b3893a 100%);
  box-shadow:0 10px 24px -12px rgba(216,180,92,.62), inset 0 1px 0 rgba(255,255,255,.62), inset 0 -1px 0 rgba(0,0,0,.18);
  transition:transform .16s var(--spring), box-shadow .24s ease, filter .2s ease;
  letter-spacing:.02em;
}
.btn2::after{
  content:"";position:absolute;inset:-2px;pointer-events:none;
  background:linear-gradient(115deg,transparent 34%,rgba(255,255,255,.42) 48%,transparent 62%);
  transform:translateX(-130%);transition:transform .62s ease;
}
.btn2.ghost::after,.btn2.line::after{ display:none; }
.btn2.ghost{
  background:linear-gradient(160deg,rgba(216,180,92,.10),rgba(216,180,92,.02));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  color:var(--g-300);
}
.btn2.line{
  background:linear-gradient(160deg,rgba(255,255,255,.055),rgba(255,255,255,.015));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.btn2:not(:disabled):hover{ filter:brightness(1.04); box-shadow:0 14px 30px -12px rgba(216,180,92,.7), inset 0 1px 0 rgba(255,255,255,.68); }
@media (hover:hover){
  .btn2:not(.ghost):not(.line):not(:disabled):hover::after{ transform:translateX(130%); }
}
.btn2:not(:disabled):active{ transform:scale(.975) translateY(1px); }
.btn2:disabled{ filter:grayscale(.45) brightness(.9); }
.spinner{ border-width:2px; }

/* ---------- 5. 快捷入口：图标光晕 + 抬升 ---------- */
.quick2 button{
  position:relative;overflow:hidden;
  background:linear-gradient(160deg,rgba(255,255,255,.062),rgba(255,255,255,.014));
  border-color:var(--hair);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:transform .18s var(--spring), border-color .2s, background .24s, box-shadow .24s;
}
.quick2 button::before{
  content:"";position:absolute;left:50%;top:-12px;width:52px;height:52px;margin-left:-26px;border-radius:50%;
  background:radial-gradient(circle,rgba(216,180,92,.20),transparent 70%);
  opacity:.55;pointer-events:none;transition:opacity .24s ease;
}
.quick2 button iconify-icon{ filter:drop-shadow(0 3px 8px rgba(216,180,92,.32)); }
@media (hover:hover){
  .quick2 button:hover{
    transform:translateY(-2px);border-color:rgba(216,180,92,.38);
    background:linear-gradient(160deg,rgba(216,180,92,.14),rgba(255,255,255,.02));
    box-shadow:0 12px 26px -16px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.07);
  }
  .quick2 button:hover::before{ opacity:1; }
}
.quick2 button:active{ transform:scale(.965); }

/* ---------- 6. 列表行：左侧金色微光 + 滑动反馈 ---------- */
.row2{
  background:linear-gradient(100deg,rgba(255,255,255,.036),rgba(255,255,255,.012) 62%);
  border-color:var(--hair);
  transition:background .2s, border-color .2s, transform .18s var(--spring), box-shadow .22s;
}
.row2 .ic{
  background:linear-gradient(155deg,rgba(216,180,92,.22),rgba(216,180,92,.07));
  border:1px solid rgba(216,180,92,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
  transition:transform .2s var(--spring), box-shadow .22s;
}
.row2 .t{ letter-spacing:.01em; }
@media (hover:hover){
  .row2.tap:hover{
    transform:translateX(3px);border-color:rgba(216,180,92,.32);
    background:linear-gradient(100deg,rgba(216,180,92,.10),rgba(255,255,255,.015) 62%);
    box-shadow:0 10px 24px -18px rgba(0,0,0,.9);
  }
  .row2.tap:hover .ic{ transform:scale(1.06); box-shadow:0 0 18px -6px rgba(216,180,92,.55); }
}

/* ---------- 7. 表单与分段控件：内凹质感 ---------- */
.fld input,.fld select,.form2 input,.form2 select{
  background:linear-gradient(180deg,#0b0b0f,#101015);
  border-color:rgba(255,255,255,.10);
  box-shadow:inset 0 1px 3px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.015);
  transition:border-color .18s, box-shadow .2s, background .2s;
}
.fld input::placeholder,.form2 input::placeholder{ color:#6f6a60; }
.fld input:focus,.fld select:focus,.form2 input:focus,.form2 select:focus{
  border-color:rgba(216,180,92,.68);
  box-shadow:0 0 0 3px rgba(216,180,92,.14), inset 0 1px 3px rgba(0,0,0,.5);
  background:linear-gradient(180deg,#0d0d12,#121218);
}
.fld .hint{ line-height:1.55; }
.tabs2 button{
  background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.012));
  border-color:var(--hair);
  transition:color .18s, border-color .2s, background .22s, box-shadow .22s;
}
.tabs2 button.on{
  background:linear-gradient(160deg,rgba(216,180,92,.24),rgba(216,180,92,.07));
  border-color:rgba(216,180,92,.5);
  color:var(--g-100);
  box-shadow:0 8px 20px -14px rgba(216,180,92,.7), inset 0 1px 0 rgba(255,255,255,.12);
}
.tabs2 button iconify-icon{ transition:transform .18s var(--spring); }
@media (hover:hover){ .tabs2 button:not(.on):hover iconify-icon{ transform:translateY(-1px); } }

/* ---------- 8. 浮层：弹性入场 + 拖拽手柄 + 玻璃拟态 ---------- */
.ov{ background:rgba(3,3,5,.62); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); animation:ovIn .2s ease both; }
@keyframes ovIn{ from{opacity:0} to{opacity:1} }
.sheet2{
  background:linear-gradient(180deg,rgba(30,29,35,.98),rgba(15,15,19,.99));
  border-top-color:rgba(216,180,92,.42);
  box-shadow:0 -24px 70px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07);
  animation:sheetUp .34s var(--spring) both;
}
.ov:not(.center) .sheet2::before{
  content:"";display:block;width:38px;height:4px;border-radius:99px;
  background:rgba(255,255,255,.20);margin:-8px auto 12px;
}
.ov.center .sheet2{ animation:popIn .26s var(--spring) both; }
@keyframes sheetUp{ from{opacity:.4;transform:translateY(28px)} to{opacity:1;transform:none} }
@keyframes popIn{ from{opacity:0;transform:scale(.94) translateY(8px)} to{opacity:1;transform:none} }
.sheet2 h3{ letter-spacing:.03em; }
.sheet2 .result-ico iconify-icon{ filter:drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.summary2{ background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.012)); border:1px solid var(--hair); }
.toast2{
  backdrop-filter:blur(14px) saturate(1.3); -webkit-backdrop-filter:blur(14px) saturate(1.3);
  box-shadow:0 16px 40px -16px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.10);
  font-weight:500; letter-spacing:.02em;
}

/* ---------- 9. 规则表：粘性表头 + 斑马纹 ---------- */
.tbl2 th{
  position:sticky;top:0;z-index:1;
  background:linear-gradient(180deg,rgba(20,20,26,.98),rgba(16,16,21,.92));
  backdrop-filter:blur(8px);
  letter-spacing:.04em;
}
.tbl2 tbody tr:nth-child(even) td{ background:rgba(255,255,255,.018); }
.tbl2 tbody tr:hover td{ background:rgba(216,180,92,.07); }
.tbl2-wrap::-webkit-scrollbar{ height:6px; }
.tbl2-wrap::-webkit-scrollbar-thumb{ background:rgba(216,180,92,.28); border-radius:99px; }
.tbl2-wrap::-webkit-scrollbar-track{ background:transparent; }
.rule-cat > button{ transition:border-color .2s, background .22s, transform .18s var(--spring); }
.rule-body{ background:linear-gradient(180deg,rgba(0,0,0,.26),rgba(0,0,0,.12)); }
.chip2{ box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }

/* ---------- 10. 页面入场与流式排版 ---------- */
.ap{ animation:pageIn .32s var(--spring) both; }
@keyframes pageIn{ from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
.ap-sec h3,.sheet2 h3,.card2 .label2{ text-wrap:balance; }
.big2{ font-size:clamp(24px,6.8vw,30px); }
.mid2{ letter-spacing:.01em; }

/* ---------- 11. 响应式细化：平板双栏 / 桌面悬浮卡 / 横屏 ---------- */
@media (min-width:720px) and (max-width:1099px){
  .app-device{ box-shadow:0 34px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(216,180,92,.10); }
  .ap{ max-width:660px; margin:0 auto; }
}
@media (min-width:1100px){
  .app-device{
    background:
      radial-gradient(60% 50% at 18% -10%,rgba(216,180,92,.09),transparent 62%),
      radial-gradient(50% 40% at 100% 0%,rgba(142,111,42,.08),transparent 60%),
      linear-gradient(180deg,#0a0a0e,#07070a 60%);
  }
  .app-tabbar{
    background:linear-gradient(180deg,rgba(14,14,18,.92),rgba(9,9,12,.98));
    padding-top:16px;
    border-top:0;
  }
  .app-tabbar button.on{
    background:linear-gradient(90deg,rgba(216,180,92,.22),rgba(216,180,92,.05));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px -16px rgba(216,180,92,.8);
  }
  .ap .card2{ border-radius:18px; }
  .ap .card2.gold{ box-shadow:var(--elev-2), 0 0 60px -22px rgba(216,180,92,.45), inset 0 1px 0 rgba(255,255,255,.11); }
  .big2{ font-size:34px; }
}
@media (min-width:1600px){
  .ap .card2.gold{ padding:22px; }
  .big2{ font-size:38px; }
}
@media (max-width:360px){
  .big2{ font-size:clamp(21px,7.4vw,25px); }
  .app-tabbar{ padding-top:3px; }
  .app-tabbar button iconify-icon{ font-size:17px; }
  .card2{ border-radius:14px; }
}
@media (max-height:520px) and (orientation:landscape) and (max-width:900px){
  .app-tabbar{ backdrop-filter:blur(10px); }
  .app-tabbar button.on{ background:rgba(216,180,92,.12); }
  .ov:not(.center) .sheet2::before{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  .ap,.ov,.sheet2,.ov.center .sheet2{ animation:none !important; }
  .btn2::after{ display:none; }
  .quick2 button,.gmv-stat,.stat2,.row2.tap,.card2{ transition:none !important; }
}
@media (prefers-contrast:more){
  .card2,.row2,.stat2,.gmv-stat{ border-color:rgba(216,180,92,.55); }
  .fld input,.fld select{ border-color:rgba(255,255,255,.35); }
  .sub2,.row2 .d,.gmv-stat .gmv-sub{ color:#b8b1a3; }
}

/* 桌面滚动条统一（仅大屏显示，避免移动端占宽） */
@media (min-width:720px){
  .sheet2{ scrollbar-width:thin; scrollbar-color:rgba(216,180,92,.35) transparent; }
}

/* ---------- 12. 表单面板 / 空态 / 注释 / 焦点环 ---------- */
.form2{
  background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.012) 46%,rgba(216,180,92,.02));
  border-color:var(--hair);
  border-radius:16px;
  box-shadow:var(--elev-1), inset 0 1px 0 rgba(255,255,255,.05);
}
.empty2 iconify-icon{
  filter:drop-shadow(0 8px 20px rgba(216,180,92,.30));
  animation:floaty 3.6s ease-in-out infinite;
}
@keyframes floaty{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.empty2 h4{ letter-spacing:.02em; }
.note2{
  border-left-color:rgba(216,180,92,.55);
  background:linear-gradient(90deg,rgba(216,180,92,.09),rgba(216,180,92,.02));
  border-radius:0 8px 8px 0;
}
.summary2{ border-radius:14px; }
.summary2 .kv2:not(:last-child){ border-bottom:1px dashed rgba(255,255,255,.06); }
.quote-box{ border-radius:12px; box-shadow:inset 0 1px 0 rgba(255,255,255,.04); }
.chip2{ border-radius:99px; }
.badge2,.tag2{ box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }
:where(button,input,select,textarea,a,[tabindex]):focus-visible{
  outline:2px solid rgba(216,180,92,.72);
  outline-offset:2px;
}
@supports not selector(:focus-visible){
  :where(button,input,select,textarea,a):focus{ outline:2px solid rgba(216,180,92,.72); outline-offset:2px; }
}
@media (prefers-reduced-motion:reduce){
  .empty2 iconify-icon{ animation:none !important; }
}

/* ============================================================
   第四十一轮 · 功能应用下拉状态对齐
   app.css 在 styles.css 之后加载，这里覆盖早先的浅色/裸 select 规则。
   ============================================================ */
.app-body select,.fld select,.form2 select{
  -webkit-appearance:none;appearance:none;
  width:100%;box-sizing:border-box;
  min-height:42px;padding:10px 34px 10px 12px;
  color:var(--text,#f5f1e8);background-color:#17171d;
  border:1px solid rgba(216,180,92,.38);border-radius:9px;
  background-image:linear-gradient(45deg,transparent 50%,var(--gold,#d8b45c) 50%),linear-gradient(135deg,var(--gold,#d8b45c) 50%,transparent 50%);
  background-position:calc(100% - 15px) center,calc(100% - 10px) center;
  background-size:5px 5px;background-repeat:no-repeat;
  font-size:13.5px;cursor:pointer;
  transition:border-color .18s,background-color .18s,box-shadow .18s;
}
.app-body select:hover,.fld select:hover,.form2 select:hover{
  background-color:#1e1e25;border-color:rgba(216,180,92,.66);
}
.app-body select:focus,.fld select:focus,.form2 select:focus,
.app-body select:focus-visible,.fld select:focus-visible,.form2 select:focus-visible{
  outline:2px solid rgba(216,180,92,.72);outline-offset:2px;
  border-color:var(--gold,#d8b45c);background-color:#1e1e25;
  box-shadow:0 0 0 3px rgba(216,180,92,.12);
}
.app-body select:disabled,.fld select:disabled,.form2 select:disabled{ opacity:.55;cursor:not-allowed; }
.app-body select option,.fld select option,.form2 select option,
.app-body select optgroup,.fld select optgroup,.form2 select optgroup{
  background:#22222a;color:#f5f1e8;
}
.app-body select option:checked,.fld select option:checked,.form2 select option:checked{
  background:#3b3427;color:#fff4d6;font-weight:600;
}
.app-body select option:hover,.fld select option:hover,.form2 select option:hover{
  background:rgba(216,180,92,.24);color:#fff8e6;
}
.app-body select optgroup{ color:var(--gold,#d8b45c);font-style:normal; }

/* ============================================================
   钱包登录 · 数字身份卡视觉（参考 51-gmc.org 黑金信息层级）
   ============================================================ */
.wl-page{ padding-top:0; }
.wl-hero{ padding:34px 4px 10px; text-align:center; }
.wl-kicker{ font-size:10px; letter-spacing:.24em; color:var(--gold,#d8b45c); font-weight:600; }
.wl-title{ margin:14px 0 10px; font-family:ui-serif,Georgia,serif; font-size:clamp(26px,7.2vw,36px); font-weight:600; line-height:1.32; letter-spacing:.01em; color:#f5edda; }
.wl-sub{ margin:0 auto 22px; max-width:340px; font-size:12px; line-height:1.75; color:var(--muted,#9c968a); }
.wl-card{
  position:relative; width:100%; max-width:400px; margin:0 auto 24px; padding:20px 20px 16px;
  text-align:left; border-radius:18px; overflow:hidden;
  background:linear-gradient(145deg,#3a3222 0%,#1c1a16 42%,#0e0e10 100%);
  border:1px solid rgba(216,180,92,.42);
  box-shadow:0 24px 60px -28px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.14), 0 0 40px -18px rgba(216,180,92,.35);
}
.wl-card::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(115deg,transparent 30%,rgba(255,240,200,.10) 46%,transparent 60%); }
.wl-card-top{ display:flex; align-items:center; justify-content:space-between; }
.wl-card-brand{ font-family:ui-serif,Georgia,serif; font-size:22px; font-weight:700; letter-spacing:.16em; color:#f3d793; }
.wl-card-chip{ font-size:20px; color:rgba(243,215,147,.75); }
.wl-card-label{ margin-top:26px; font-size:9px; letter-spacing:.22em; color:rgba(243,215,147,.65); }
.wl-card-no{ margin-top:5px; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13px; color:#efe6d2; letter-spacing:.03em; }
.wl-card-foot{ display:flex; justify-content:space-between; margin-top:18px; padding-top:12px; border-top:1px solid rgba(216,180,92,.18); font-size:10px; color:rgba(239,230,210,.6); }
.wl-connect{ max-width:400px; margin:0 auto; font-size:15px; padding:14px; box-shadow:0 12px 30px -14px rgba(216,180,92,.6); }
.wl-chain{ margin-top:10px; font-size:10.5px; letter-spacing:.05em; color:var(--muted,#9c968a); }
.wl-status{ min-height:18px; margin:12px auto 0; max-width:400px; font-size:11.5px; line-height:1.5; color:var(--muted,#9c968a); }
.wl-status.bad{ color:#e8a3a3; } .wl-status.warn{ color:#e6c27a; } .wl-status.ok{ color:var(--ok); }
.wl-alt{ max-width:400px; margin:18px auto 0; text-align:center; }
.wl-toggle{ background:none; border:0; color:var(--gold,#d8b45c); font-size:12px; cursor:pointer; padding:8px 12px; }
.wl-toggle span{ display:inline-block; margin-left:4px; transition:transform .18s; }
.wl-pwd{ margin-top:10px; text-align:left; }
.wl-pwd[hidden]{ display:none; }

/* ============================================================
   首页数字身份卡 Hero（参考 51-gmc.org 信息层级）
   ============================================================ */
.home-hero{ padding:26px 2px 8px; text-align:center; }
.home-hero-kicker{ font-size:9.5px; letter-spacing:.24em; color:var(--gold,#d8b45c); font-weight:600; }
.home-hero-title{ margin:10px 0 18px; font-family:ui-serif,Georgia,serif; font-size:clamp(21px,5.6vw,29px); font-weight:600; line-height:1.38; color:#f3ead6; }
.home-idcard{
  position:relative; max-width:460px; margin:0 auto 6px; padding:18px 18px 14px; text-align:left; border-radius:16px; overflow:hidden;
  background:linear-gradient(145deg,#3a3222 0%,#1c1a16 45%,#0e0e10 100%);
  border:1px solid rgba(216,180,92,.38);
  box-shadow:0 20px 50px -26px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.12), 0 0 34px -18px rgba(216,180,92,.3);
}
.home-idcard::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(115deg,transparent 32%,rgba(255,240,200,.08) 47%,transparent 62%); }
.home-idcard-top{ display:flex; justify-content:space-between; align-items:center; }
.home-idcard-brand{ font-family:ui-serif,Georgia,serif; font-size:20px; font-weight:700; letter-spacing:.16em; color:#f3d793; }
.home-idcard-chip{ font-size:18px; color:rgba(243,215,147,.7); }
.home-idcard-grid{ display:grid; grid-template-columns:1.4fr 1.2fr .8fr; gap:10px; margin-top:20px; }
.home-idcard-k{ font-size:8px; letter-spacing:.18em; color:rgba(243,215,147,.6); }
.home-idcard-v{ font-size:12px; color:#efe6d2; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-idcard-wallet{ display:flex; align-items:center; gap:8px; margin-top:16px; padding-top:11px; border-top:1px solid rgba(216,180,92,.18); }
.home-idcard-addr{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:11px; color:#efe6d2; }
.home-idcard-linked{ margin-left:auto; font-size:9.5px; color:var(--ok); }

/* ============================================================
   邀请码门禁（不可跳过）· 独立验证页
   ============================================================ */
.gate-page{ padding-top:0; }
.gate-guard{ text-align:center; font-size:42px; line-height:1; color:var(--gold-bright,#f3d793); margin:34px 0 12px; opacity:.9; }
.gate-kicker{ text-align:center; font-size:10px; letter-spacing:.24em; color:var(--gold,#d8b45c); font-weight:600; }
.gate-title{ margin:10px 0 10px; text-align:center; font-family:ui-serif,Georgia,serif; font-size:clamp(22px,6vw,30px); color:#f5edda; }
.gate-sub{ margin:0 auto 22px; max-width:360px; text-align:center; font-size:12px; line-height:1.75; color:var(--muted,#9c968a); }
.gate-card{
  max-width:400px; margin:0 auto; padding:18px 18px 16px; border-radius:16px; text-align:left;
  background:linear-gradient(150deg,#35301f 0%,#1c1a16 45%,#0e0e10 100%);
  border:1px solid rgba(216,180,92,.4);
  box-shadow:0 20px 50px -26px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.12), 0 0 34px -18px rgba(216,180,92,.3);
}
.gate-card-top{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:var(--gold-bright,#f3d793); }
.gate-card-top .ic svg,.gate-card-top iconify-icon{ width:20px; height:20px; }
.gate-badge{ margin-left:auto; font-size:9.5px; padding:3px 9px; border-radius:9px; color:var(--warn,#e6c27a); border:1px solid rgba(230,180,94,.4); background:rgba(230,180,94,.08); }
.gate-own{ margin:14px 0 4px; font-size:11px; line-height:1.6; color:var(--muted,#9c968a); }
.gate-own b{ color:var(--gold-bright,#f3d793); letter-spacing:.06em; }
.gate-card .fld{ margin-top:14px; }
.gate-card input{ letter-spacing:.1em; text-transform:uppercase; }
.gate-submit{ width:100%; margin-top:6px; }
.gate-submit .ic svg,.gate-submit iconify-icon{ width:16px; height:16px; margin-right:4px; }
.gate-note{ max-width:400px; margin:16px auto 0; display:flex; align-items:flex-start; gap:8px; font-size:11px; line-height:1.6; color:var(--muted,#9c968a); }
.gate-note .ic svg,.gate-note iconify-icon{ width:16px; height:16px; flex-shrink:0; color:var(--warn,#e6c27a); }
.gate-logout{ display:block; max-width:400px; margin:18px auto 0; }

/* ============================================================
   团队 · 我的邀请码 / 邀请链接（生成、展示、分享）
   ============================================================ */
.invite-share-card{ margin-bottom:12px; }
.invite-share-head{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--gold-bright,#f3d793); margin-bottom:12px; }
.invite-share-head .ic svg,.invite-share-head iconify-icon{ width:18px; height:18px; }
.invite-row{ display:flex; align-items:center; gap:8px; min-height:36px; padding:7px 0; border-top:1px solid rgba(216,180,92,.14); }
.invite-k{ flex-shrink:0; font-size:10px; letter-spacing:.08em; color:var(--muted,#9c968a); }
.invite-code{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:15px; letter-spacing:.1em; color:var(--gold-bright,#f3d793); }
.invite-from{ margin-left:2px; font-size:10.5px; color:var(--muted,#9c968a); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.invite-url{ flex:1; min-width:0; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:10.5px; color:var(--text,#e8e2d4); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.invite-code + .invite-copy,.invite-url + .invite-copy{ margin-left:auto; }
.invite-copy{ flex-shrink:0; display:inline-flex; align-items:center; gap:3px; font-size:10px; padding:5px 8px; border-radius:8px; cursor:pointer;
  color:var(--gold-bright,#f3d793); background:rgba(216,180,92,.1); border:1px solid rgba(216,180,92,.35); }
.invite-copy .ic svg,.invite-copy iconify-icon{ width:13px; height:13px; }

/* ============================================================
   邀请码绑定拦截 · 不可跳过 / 不可关闭全屏弹窗
   - 遮罩吞掉全部指针事件；body 锁定滚动；toast 提层保证可见
   ============================================================ */
.gate-modal{ display:none; position:absolute; inset:0; z-index:200; align-items:center; justify-content:center; padding:20px; }
.gate-modal.show{ display:flex; }
.gate-modal-backdrop{ position:absolute; inset:0; background:rgba(3,3,5,.86); backdrop-filter:blur(9px); -webkit-backdrop-filter:blur(9px); cursor:not-allowed; }
.gate-dialog{
  position:relative; z-index:1; width:100%; max-width:430px; max-height:calc(100% - 8px); overflow-y:auto;
  padding:22px 20px 18px; border-radius:18px; text-align:center;
  background:linear-gradient(155deg,#332e20 0%,#1a1815 46%,#0d0d0f 100%);
  border:1px solid rgba(216,180,92,.46);
  box-shadow:0 28px 70px -26px rgba(0,0,0,.98), inset 0 1px 0 rgba(255,255,255,.13), 0 0 48px -20px rgba(216,180,92,.38);
  animation:gatePop .28s var(--spring) both;
}
@keyframes gatePop{ from{opacity:0;transform:translateY(14px) scale(.97)} to{opacity:1;transform:none} }
.gate-dialog .gate-guard{ margin:2px 0 10px; }
.gate-dialog .gate-card{ margin:0 auto; text-align:left; }
.gate-dialog .gate-card input{ width:100%; }
.gate-dialog .gate-submit{ margin-top:14px; }
.gate-dialog .gate-note{ margin:14px auto 0; }
.gate-dialog .gate-logout{ width:100%; margin:14px auto 0; }
/* 未绑定期间：页面所有元素不可点击、不可选中、不可滚动 */
body.gate-locked{ overflow:hidden; touch-action:none; }
body.gate-locked .app-device > *:not(#inviteGateModal){ pointer-events:none !important; user-select:none; }
body.gate-locked #appToast{ z-index:300; }
@media (prefers-reduced-motion:reduce){ .gate-dialog{ animation:none; } }
