/* ===========================================================
   沐晨钱包 · 客户端（浅色手机钱包，对标 TP 钱包）
   说明：base.css 是深色底座（后台在用），这里用 body.client 前缀整体覆盖成浅色
   =========================================================== */

body.client {
  --bg: #F5F6F8;
  --bg-glow-1: transparent;
  --bg-glow-2: transparent;

  --surface: #FFFFFF;
  --surface-2: #F5F6FA;
  --surface-3: #EDF0F6;
  --border: #EDEFF4;
  --border-strong: #E1E5EC;

  --text: #16181D;
  --text-dim: #6B7280;
  --text-mute: #9AA1AE;

  --brand-1: #3B82F6;
  --brand-2: #2A6FF5;
  --brand-3: #1E5BFF;
  --accent: #0EA5E9;

  --ok: #0ECB81;
  --warn: #F0B90B;
  --danger: #F6465D;

  --shadow: 0 10px 30px -14px rgba(16, 24, 40, .22);

  background: var(--bg);
  color: var(--text);
}
body.client::before { display: none; }

/* 手机容器 */
.phone {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px; margin: 0 auto;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: #F5F6F8;
}
@media (min-width: 620px) {
  .phone {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 90px -30px rgba(16, 24, 40, .28);
  }
}
.phone-body { flex: 1; padding: 0 16px 96px; }
.phone-body.nobar { padding-bottom: 32px; }

/* ---------- 图标 ---------- */
.ic { display: block; flex: 0 0 auto; }
.btn .ic, .icon-btn .ic, .mi .ic, .tool .ic { display: inline-block; vertical-align: -3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 2px 12px;
  background: linear-gradient(180deg, #F5F6F8 78%, rgba(245, 246, 248, .72));
  backdrop-filter: blur(12px);
}
.tb-title { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.tb-sub { font-size: 12px; color: var(--text-mute); margin-top: 1px; }

.wallet-chip { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wallet-chip .wd {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3B82F6, #1E5BFF);
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(42, 111, 245, .9);
}
.wallet-chip .wc-name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.wallet-chip .wc-sub { font-size: 10.5px; color: var(--text-mute); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); background: #fff;
  color: var(--text-dim); transition: .16s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* 子页面返回栏 */
.subbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 2px 12px;
  background: linear-gradient(180deg, #F5F6F8 80%, rgba(245, 246, 248, .75));
  backdrop-filter: blur(12px);
}
.subbar h2 { font-size: 16.5px; font-weight: 600; }
.subbar .back {
  width: 34px; height: 34px; border-radius: 11px; cursor: pointer; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font-size: 17px; line-height: 1;
}
.subbar .back:hover { background: var(--surface-2); }

/* ---------- 蓝色资产卡 ---------- */
.bluecard {
  position: relative; border-radius: 18px; padding: 16px 18px 14px;
  background: linear-gradient(120deg, #2F7BFF 0%, #1E5BFF 100%);
  color: #fff; overflow: hidden;
  box-shadow: 0 16px 34px -18px rgba(30, 91, 255, .95);
}
.bluecard::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px 160px at 92% -30%, rgba(255, 255, 255, .3), transparent 72%);
}
.bluecard > * { position: relative; z-index: 1; }
.bluecard .bc-top { display: flex; align-items: center; gap: 8px; }
.bluecard .bc-name { font-size: 13px; font-weight: 500; opacity: .95; }
.bluecard .bc-copy { cursor: pointer; opacity: .8; display: grid; place-items: center; }
.bluecard .bc-copy:hover { opacity: 1; }
.bluecard .eye { cursor: pointer; opacity: .9; display: grid; place-items: center; }
.bluecard .bc-amount {
  font-size: clamp(26px, 8vw, 34px); font-weight: 700; letter-spacing: -.8px;
  margin: 12px 0 0; line-height: 1.15; overflow-wrap: anywhere;
}
.bluecard .bc-amount .cur { font-size: 20px; font-weight: 600; margin-right: 3px; opacity: .92; }
.bluecard .bc-amount.masked { letter-spacing: 3px; }
.bluecard .bc-foot {
  display: flex; gap: 22px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .26);
}
.bluecard .bc-foot .k { font-size: 10.5px; opacity: .82; }
.bluecard .bc-foot .v { font-size: 13.5px; font-weight: 600; }
.masked { letter-spacing: 3px; }

/* ---------- 功能宫格 ---------- */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 2px; }
.act {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 2px; border-radius: 14px; transition: .16s ease;
}
.act:active { background: var(--surface-2); }
.act .ai { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.act .ai.a1 { background: linear-gradient(140deg, #4F8DFF, #2A6FF5); }
.act .ai.a2 { background: linear-gradient(140deg, #22C7E0, #0EA5E9); }
.act .ai.a3 { background: linear-gradient(140deg, #A78BFA, #7C5CFC); }
.act .ai.a4 { background: linear-gradient(140deg, #FBBF24, #F59E0B); }
.act .ai.a5 { background: linear-gradient(140deg, #FB7185, #F43F5E); }
.act .ai.a6 { background: linear-gradient(140deg, #34D399, #10B981); }
.act .at { font-size: 12px; color: var(--text-dim); }

/* ---------- 币种 ---------- */
.mcoin { border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #fff; }
.mcoin.usdt { background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .07); color: #26A17B; }
.mcoin.usdt img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mcoin.evm { background: linear-gradient(140deg, #627EEA, #7C93F5); }

/* ---------- 区块标题 / 资产列表 ---------- */
.sec-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 20px 2px 10px; font-size: 14px; font-weight: 600;
}
.sec-title a { font-size: 12px; color: var(--text-mute); font-weight: 400; }

.asset-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border);
  margin-bottom: 10px; cursor: pointer; transition: .16s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.asset-row:hover { border-color: var(--border-strong); }
.asset-row .ar-name { font-size: 15px; font-weight: 600; }
.asset-row .ar-sub { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.asset-row .ar-amt { font-size: 15.5px; font-weight: 600; }
.asset-row .ar-chev { color: var(--text-mute); }

/* ---------- 币种详情 ---------- */
.coin-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 18px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.ch-name { font-size: 17px; font-weight: 700; }
.ch-sub { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.ch-amt { font-size: 19px; font-weight: 700; letter-spacing: -.4px; }

/* ---------- 搜索框 ---------- */
.search {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 13px; color: var(--text-mute);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 13.5px; color: var(--text); font-family: var(--font);
}
.search input::placeholder { color: var(--text-mute); }
.search .clr { cursor: pointer; font-size: 13px; }

/* ---------- 筛选标签 ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 0;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips .chip {
  flex: 0 0 auto; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; background: #fff; border: 1px solid var(--border); color: var(--text-dim);
}
.chips .chip.on { background: #EAF1FF; border-color: #D3E1FF; color: #1E5BFF; font-weight: 600; }

/* ---------- 行情列表 ---------- */
.tick {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid #F3F4F8;
}
.tick:last-child { border-bottom: none; }
.tlogo {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px;
}
.tname { font-size: 14.5px; font-weight: 600; }
.tsub { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.tprice { font-size: 14.5px; font-weight: 600; }
.tpct {
  display: inline-flex; justify-content: flex-end; min-width: 72px;
  margin-top: 4px; padding: 2px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600;
}
.tpct.up { color: #0E9F6E; background: #E8F8F1; }
.tpct.down { color: #E02424; background: #FDECEC; }
.up { color: #0E9F6E; }
.down { color: #E02424; }

.tick .tprice .cur, .kv .cur { font-size: .82em; opacity: .72; margin-right: 1px; }

/* ---------- 发现页 ---------- */
.banner {
  border-radius: 16px; padding: 18px;
  background: linear-gradient(120deg, #1E3A8A 0%, #2A6FF5 60%, #38BDF8 100%);
  color: #fff; box-shadow: 0 16px 34px -20px rgba(42, 111, 245, .95);
}
.banner .bn-title { font-size: 17px; font-weight: 700; }
.banner .bn-sub { font-size: 12px; opacity: .88; margin-top: 6px; line-height: 1.6; }
.banner .bn-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.banner .tag {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .28);
}

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 13px; transition: .16s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.tool:hover { border-color: var(--border-strong); }
.tool .ai { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.tool .ai.a1 { background: linear-gradient(140deg, #4F8DFF, #2A6FF5); }
.tool .ai.a2 { background: linear-gradient(140deg, #22C7E0, #0EA5E9); }
.tool .ai.a3 { background: linear-gradient(140deg, #A78BFA, #7C5CFC); }
.tool .ai.a4 { background: linear-gradient(140deg, #FBBF24, #F59E0B); }
.tool .ai.a5 { background: linear-gradient(140deg, #FB7185, #F43F5E); }
.tool .ai.a6 { background: linear-gradient(140deg, #34D399, #10B981); }
.tool-name { font-size: 13.5px; font-weight: 600; }
.tool-sub { font-size: 11px; color: var(--text-mute); margin-top: 1px; }

/* ---------- 钱包管理 ---------- */
.wallet-card2 {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 15px 16px; margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.w2-head { display: flex; align-items: center; gap: 10px; }
.w2-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.w2-name { font-size: 15px; font-weight: 600; }
.w2-sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.w2-addr {
  margin: 12px 0; padding: 10px 12px; border-radius: 12px;
  background: #F5F6FA; border: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px; word-break: break-all; cursor: pointer;
}
.w2-bals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w2-bal { background: #F7F8FC; border-radius: 12px; padding: 10px 12px; }
.w2-bal .k { font-size: 11px; color: var(--text-mute); }
.w2-bal .v { font-size: 15px; font-weight: 600; margin-top: 2px; }

/* ---------- 按天分组的记录 ---------- */
.day-group { margin-bottom: 4px; }
.day-head { font-size: 11.5px; color: var(--text-mute); padding: 14px 4px 8px; }

/* ---------- 底部标签栏 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  margin: 0 auto; width: 100%; max-width: 460px; z-index: 30;
  display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 1px; border-radius: 12px;
  color: var(--text-mute); font-size: 10px; transition: .16s ease;
}
.tabbar a.on { color: #1E5BFF; }

/* ---------- 记录行 ---------- */
.rec { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #F3F4F8; }
.rec:last-child { border-bottom: none; }
.rec .ri { width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; }
.rec .ri.in { background: #E8F8F1; color: #0E9F6E; }
.rec .ri.out { background: #FDECEC; color: #E02424; }
.rec .ri.neutral { background: #F2F4F8; color: var(--text-dim); }
.rec .rt { font-size: 13.5px; font-weight: 500; }
.rec .rs { font-size: 11.5px; color: var(--text-mute); margin-top: 1px; }
.rec .ra { font-size: 14px; font-weight: 600; }

/* ---------- 键值 ---------- */
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F3F4F8; }
.kv:last-child { border-bottom: none; }
.kv .k { font-size: 12.5px; color: var(--text-mute); }
.kv .v { font-size: 13px; text-align: right; }
.tips { font-size: 12px; color: var(--text-mute); line-height: 1.7; }

/* ---------- 我的页 ---------- */
.me-hero { display: flex; align-items: center; gap: 14px; padding: 4px 2px 16px; }
.me-avatar {
  width: 54px; height: 54px; border-radius: 18px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 21px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3B82F6, #1E5BFF);
  box-shadow: 0 12px 26px -14px rgba(42, 111, 245, .9);
}
.me-name { font-size: 17px; font-weight: 700; }
.me-id { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }

.mini-bal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-bal .mb { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.mini-bal .mb-v { font-size: 18px; font-weight: 700; letter-spacing: -.4px; margin-top: 2px; }

.menu { border-radius: 16px; background: #fff; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.menu a, .menu .mi {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border-bottom: 1px solid #F3F4F8; cursor: pointer; font-size: 13.5px;
}
.menu a:last-child, .menu .mi:last-child { border-bottom: none; }
.menu a:hover, .menu .mi:hover { background: #FAFBFD; }
.menu .mi .mic { color: var(--text-dim); display: grid; place-items: center; width: 22px; }
.menu .mi .chev { margin-left: auto; color: var(--text-mute); }

/* ---------- 复制按钮块 ---------- */
.copy-block { margin-top: 10px; }
.copy-block .btn { width: 100%; padding: 12px; border-radius: 12px; font-size: 13.5px; }

/* ---------- 页脚说明 ---------- */
.foot-note { text-align: center; font-size: 11px; color: var(--text-mute); line-height: 1.9; padding: 22px 10px 6px; }
.foot-note .mono { color: var(--text-dim); }

/* ---------- 登录 / 注册 ---------- */
.auth { flex: 1; display: flex; flex-direction: column; padding: 46px 24px 32px; background: #fff; }
.auth .logo {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, #3B82F6, #1E5BFF);
  display: grid; place-items: center; font-size: 25px; font-weight: 700; color: #fff;
  box-shadow: 0 16px 32px -14px rgba(42, 111, 245, .95);
  margin-bottom: 16px;
}
.auth h1 { font-size: 24px; letter-spacing: -.4px; }
.auth .slogan { color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.auth .form { margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.auth .input { padding: 13px 15px; border-radius: 12px; font-size: 14.5px; }
.auth .btn-primary { padding: 14px; border-radius: 12px; font-size: 15px; }
.auth .alt { text-align: center; font-size: 12.5px; color: var(--text-mute); margin-top: 18px; cursor: pointer; }
.auth .err { color: #E02424; font-size: 12.5px; }

/* ===========================================================
   覆盖 base.css 的深色组件（后台仍用深色，不受影响）
   =========================================================== */
body.client .card {
  background: #fff; border-color: var(--border); backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
body.client .btn { background: #fff; border-color: var(--border-strong); color: var(--text); }
body.client .btn:hover:not(:disabled) { background: var(--surface-2); }
body.client .btn-ghost { background: transparent; }
body.client .btn-primary {
  background: linear-gradient(100deg, #3B82F6, #2A6FF5 60%, #1E5BFF);
  border-color: transparent; color: #fff;
  box-shadow: 0 12px 24px -14px rgba(42, 111, 245, .95);
}
body.client .btn-danger { background: #FDECEC; border-color: #F8C9C9; color: #C81E1E; }
body.client .input, body.client .select, body.client .textarea {
  background: #F5F6FA; border-color: var(--border); color: var(--text);
}
body.client .input:focus, body.client .select:focus, body.client .textarea:focus {
  background: #fff; border-color: #93B4FF; box-shadow: 0 0 0 3px rgba(42, 111, 245, .13);
}
body.client .seg { background: #F1F3F8; border-color: var(--border); }
body.client .seg button { color: var(--text-dim); }
body.client .seg button.on { background: #fff; color: #1E5BFF; box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
body.client .badge { background: #F2F4F8; color: var(--text-dim); border-color: var(--border); }
body.client .badge.ok { background: #E8F8F1; color: #0E9F6E; border-color: #C7EEDE; }
body.client .badge.warn { background: #FFF6E5; color: #B45309; border-color: #FBE2B0; }
body.client .badge.danger { background: #FDECEC; color: #C81E1E; border-color: #F8C9C9; }
body.client .badge.info { background: #EAF1FF; color: #1E5BFF; border-color: #D3E1FF; }
body.client .badge.mute { background: #F2F4F8; color: var(--text-dim); }
body.client .notice { background: #FFF8E8; border-color: #FBE2B0; color: #8A6314; }
body.client .notice.info { background: #EFF5FF; border-color: #D3E1FF; color: #2551A8; }
body.client .notice.danger { background: #FEF0F1; border-color: #F8C9C9; color: #A32029; }
body.client .notice.ok { background: #ECFDF3; border-color: #C7EEDE; color: #067647; }
body.client .addr-box { background: #F5F6FA; border-color: var(--border); }
body.client .addr-val { color: var(--text); }
body.client .qr-wrap { box-shadow: 0 10px 26px -14px rgba(16, 24, 40, .3); border: 1px solid var(--border); }
body.client .modal { background: #fff; border-color: var(--border); box-shadow: var(--shadow); }
body.client .modal-mask { background: rgba(16, 20, 32, .42); }
body.client .toasts .toast {
  background: #fff; border-color: var(--border-strong); color: var(--text);
  box-shadow: 0 10px 30px -12px rgba(16, 24, 40, .3);
}
body.client .toast.ok { border-color: #C7EEDE; }
body.client .toast.err { border-color: #F8C9C9; }
body.client .empty { color: var(--text-mute); }
body.client .skeleton { background: linear-gradient(90deg, #EFF1F5 25%, #F7F8FA 37%, #EFF1F5 63%); background-size: 400% 100%; }
body.client .divider { background: var(--border); }
body.client ::selection { background: rgba(42, 111, 245, .18); }

/* ===========================================================
   币种详情（K 线 + 资料） / 资讯 / 多钱包
   =========================================================== */
.coin-title { font-size: 16.5px; font-weight: 700; }
.tlogo.sm { width: 28px; height: 28px; font-size: 13px; }

.price-big {
  font-size: clamp(24px, 7.6vw, 32px); font-weight: 700;
  letter-spacing: -.8px; line-height: 1.15;
}
.price-big .cur { font-size: 18px; font-weight: 600; opacity: .7; margin-right: 2px; }

.chart-box {
  position: relative; margin: 2px 0 4px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 8px 6px 4px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.chart-box canvas { display: block; width: 100%; }
.chart-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12.5px; color: var(--text-mute); background: rgba(255, 255, 255, .7);
}

.desc { font-size: 12.5px; line-height: 1.85; color: var(--text-dim); }

.news-item {
  display: block; padding: 12px 2px; border-bottom: 1px solid #F3F4F8;
}
.news-item:last-child { border-bottom: none; }
.news-title { font-size: 13.5px; font-weight: 500; line-height: 1.55; }
.news-sum {
  font-size: 12px; color: var(--text-dim); margin-top: 4px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-meta { font-size: 11px; color: var(--text-mute); margin-top: 6px; }

/* 多钱包 */
.w2-chain { padding-top: 12px; margin-top: 12px; border-top: 1px solid #F3F4F8; }
.w2-crow { display: flex; align-items: center; gap: 8px; }
.w2-tag {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 600; color: #fff;
  padding: 2px 7px; border-radius: 6px;
}
.w2-crow .w2-addr { margin: 0; flex: 1; min-width: 0; }
.w2-chain .w2-bals { margin-top: 8px; }

/* ===========================================================
   第五轮：行情页（币安 / 欧意风格）+ 按链钱包管理
   =========================================================== */

/* ---------- 行情页渐变头 ---------- */
.mkt-hero {
  position: relative; overflow: hidden;
  margin: 12px 0 0; padding: 15px 16px 14px;
  border-radius: 20px; color: #fff;
  background: linear-gradient(158deg, #0B1430 0%, #1B3AC9 55%, #2F7BFF 100%);
  box-shadow: 0 18px 38px -22px rgba(20, 45, 140, .95);
}
.mkt-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(300px 150px at 88% -24%, rgba(94, 205, 255, .42), transparent 70%),
    radial-gradient(220px 140px at 4% 108%, rgba(124, 92, 252, .38), transparent 72%);
}
.mkt-hero > * { position: relative; z-index: 1; }
.mh-top { display: flex; align-items: center; gap: 8px; }
.mh-title { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.mh-time { font-size: 11px; color: rgba(255, 255, 255, .72); }
.mh-btn {
  width: 30px; height: 30px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .2);
  transition: transform .3s ease, background .16s ease;
}
.mh-btn:active { transform: rotate(140deg); background: rgba(255, 255, 255, .26); }
.mh-search {
  display: flex; align-items: center; gap: 8px;
  margin-top: 13px; padding: 10px 13px; border-radius: 12px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .88);
}
.mh-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 13px; color: #fff; font-family: var(--font);
}
.mh-search input::placeholder { color: rgba(255, 255, 255, .68); }
.mh-search .clr { cursor: pointer; font-size: 13px; color: rgba(255, 255, 255, .9); }
.mh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.mh-stat {
  padding: 8px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16);
}
.mh-stat .k { font-size: 10.5px; color: rgba(255, 255, 255, .72); }
.mh-stat .v { font-size: 15px; font-weight: 700; margin-top: 1px; font-variant-numeric: tabular-nums; }
.mh-stat .v.up { color: #6EF0B4; }
.mh-stat .v.down { color: #FF9AA6; }

/* ---------- 行情列表行（迷你走势 + 涨跌药丸） ---------- */
.tick { gap: 10px; padding: 11px 2px; }
.tick-mid { flex: 1 1 auto; min-width: 0; }
.tick .tname {
  display: flex; align-items: baseline; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tick .tsub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tquote { font-size: 10.5px; font-weight: 500; color: var(--text-mute); margin-left: 1px; }
.tick .tick-right {
  flex: 0 0 auto; display: flex; flex-direction: column;
  align-items: flex-end; gap: 3px;
}
.tick .tprice { white-space: nowrap; }
.spark { flex: 0 0 auto; width: 46px; height: 20px; margin: 0 2px 0 4px; }
.spark.up { color: #0ECB81; }
.spark.down { color: #F6465D; }
.pct-pill {
  min-width: 68px; padding: 3px 8px; border-radius: 6px; text-align: center;
  font-size: 12px; font-weight: 600; color: #fff;
  font-variant-numeric: tabular-nums;
}
.pct-pill.up { background: #0ECB81; }
.pct-pill.down { background: #F6465D; }

/* $ 与数字不再断开换行（合约地址等长文本除外） */
.tick .tprice, .tick .tprice .cur, .price-big, .price-big .cur,
.kv .v:not(.mono), .bluecard .bc-amount .cur { white-space: nowrap; }
.kv .v.mono { white-space: normal; word-break: break-all; }

/* ---------- 按链分区的钱包管理 ---------- */
.chain-sec { margin-bottom: 16px; }
.cs-head { display: flex; align-items: center; gap: 10px; margin: 2px 2px 10px; }
.cs-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.cs-name { font-size: 14.5px; font-weight: 600; }
.cs-sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.addr-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 13px 14px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.ac-row { display: flex; align-items: center; gap: 7px; }
.ac-badge {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: .2px;
  color: #fff; padding: 2.5px 8px; border-radius: 6px;
}
.addr-card .w2-addr { margin: 10px 0; }

/* ---------- 首页总资产卡 & 底部栏的点缀 ---------- */
.bluecard .bc-name { font-size: 14.5px; font-weight: 600; letter-spacing: .2px; }
.bluecard .bc-foot { gap: 14px; }
.bluecard .bc-foot > div { min-width: 0; }
.bluecard .bc-foot .v { font-size: 13px; white-space: nowrap; }

.tabbar a { position: relative; }
.tabbar a.on::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #3B82F6, #1E5BFF);
}
.sec-title > .mute { font-weight: 400; }

/* ===========================================================
   交易页 / C2C
   =========================================================== */

/* ---------- 交易页四个大入口 ---------- */
.trade-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 4px; }
.trade-acts .tact {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 4px 12px; border-radius: 16px; text-decoration: none;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: .16s ease;
}
.trade-acts .tact:active { transform: scale(.97); }
.trade-acts .tact:hover { border-color: var(--border-strong); }
.trade-acts .ai { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.trade-acts .ai.a1 { background: linear-gradient(140deg, #4F8DFF, #2A6FF5); box-shadow: 0 10px 20px -12px rgba(42,111,245,.95); }
.trade-acts .ai.a2 { background: linear-gradient(140deg, #22C7E0, #0EA5E9); box-shadow: 0 10px 20px -12px rgba(14,165,233,.95); }
.trade-acts .ai.a3 { background: linear-gradient(140deg, #A78BFA, #7C5CFC); box-shadow: 0 10px 20px -12px rgba(124,92,252,.95); }
.trade-acts .ai.a4 { background: linear-gradient(140deg, #FBBF24, #F59E0B); box-shadow: 0 10px 20px -12px rgba(245,158,11,.95); }
.trade-acts .tn { font-size: 12.5px; font-weight: 600; color: var(--text); }
.trade-acts .ts { font-size: 10px; color: var(--text-mute); }

/* ---------- C2C 快捷卡 ---------- */
.c2c-box {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.c2c-box .best {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 14px; margin-bottom: 10px;
  background: linear-gradient(120deg, #F0F6FF, #EAF1FF);
  border: 1px solid #DCE8FF;
}
.c2c-box .best .bt { font-size: 11px; color: #5A6B8C; }
.c2c-box .best .bp { font-size: 22px; font-weight: 700; color: #1E5BFF; letter-spacing: -.5px; margin-top: 2px; }
.c2c-box .best .bp .cur { font-size: 14px; margin-right: 1px; }
.c2c-box .best .bl { text-align: right; }

.mini-ad {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px;
  border-top: 1px solid #F3F4F8; text-decoration: none; color: inherit;
}
.mini-ad:first-of-type { border-top: none; }

/* ---------- 通用商家头像 ---------- */
.c2c-av {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(140deg, #4F8DFF, #1E5BFF);
}
.c2c-av.sm { width: 32px; height: 32px; font-size: 13px; }
.c2c-av.xs { width: 22px; height: 22px; font-size: 11px; display: inline-grid; vertical-align: -6px; margin-right: 4px; }
.c2c-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vf { color: #2A6FF5; vertical-align: -2px; }

/* ---------- 我要买 / 我要卖 ---------- */
.seg.c2c-seg { display: grid; grid-template-columns: 1fr 1fr; }
.seg.c2c-seg button { display: flex; flex-direction: column; gap: 1px; padding: 9px 0; }
.seg.c2c-seg .ss-t { font-size: 14px; font-weight: 600; }
.seg.c2c-seg .ss-s { font-size: 10px; opacity: .68; }
.seg.c2c-mini button { padding: 8px 0; font-size: 13px; }
.seg.c2c-mini { width: 100%; }
a.btn { text-decoration: none; }

.c2c-bal {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding: 11px 14px; border-radius: 14px;
  background: #EFF5FF; border: 1px solid #DCE8FF; font-size: 12.5px; color: #2551A8;
}
.c2c-bal b { font-size: 13.5px; }

/* ---------- 商家挂单卡 ---------- */
.c2c-ad {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 13px 14px; margin-bottom: 10px; transition: .16s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.c2c-ad:hover { border-color: var(--border-strong); }
.c2c-row { display: flex; align-items: center; gap: 10px; }
.c2c-who { flex: 1; min-width: 0; }
.c2c-nm { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.c2c-meta { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--text-mute); margin-top: 3px; }
.c2c-meta .lv {
  padding: 1px 6px; border-radius: 999px; font-weight: 600; color: #B45309;
  background: linear-gradient(120deg, #FFF3D6, #FFE9B8); border: 1px solid #FBE2B0;
}
.c2c-price { text-align: right; flex: 0 0 auto; }
.c2c-price .p { font-size: 18px; font-weight: 700; letter-spacing: -.4px; }
.c2c-price .p .cur { font-size: 13px; margin-right: 1px; opacity: .8; }
.c2c-price .k { font-size: 10px; color: var(--text-mute); }
.c2c-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  margin-top: 11px; padding-top: 11px; border-top: 1px solid #F3F4F8;
}
.c2c-lim .l1 { font-size: 11.5px; color: var(--text-dim); }
.c2c-lim .l2 { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.c2c-lim .pm {
  font-size: 10px; padding: 2px 7px; border-radius: 6px;
  background: #F2F5FB; color: #5A6B8C; border: 1px solid #E6EBF5;
}
.c2c-lim .pm.time { background: #EFF5FF; color: #2551A8; border-color: #DCE8FF; }
.c2c-lim .l3 { font-size: 10.5px; color: var(--text-mute); margin-top: 6px; line-height: 1.6; }
.c2c-btn { padding: 9px 24px; border-radius: 12px; font-size: 13.5px; flex: 0 0 auto; }

/* 订单列表 */
.menu .mi.c2c-order { cursor: pointer; }
.menu .mi .mic.in { background: #E8F8F1; color: #0E9F6E; border-radius: 10px; width: 30px; height: 30px; }
.menu .mi .mic.out { background: #FDECEC; color: #E02424; border-radius: 10px; width: 30px; height: 30px; }

/* ---------- 下单 / 详情弹层 ---------- */
.ob-merchant {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border-radius: 14px; background: #F7F9FC; border: 1px solid var(--border);
}
.quick { display: flex; gap: 8px; }
.quick .qbtn {
  flex: 1; padding: 8px 0; border-radius: 10px; cursor: pointer; font-size: 12px;
  background: #F2F5FB; border: 1px solid #E6EBF5; color: #5A6B8C;
}
.quick .qbtn:hover { background: #EAF1FF; color: #1E5BFF; border-color: #D3E1FF; }
.pay-amt {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 12px; padding: 13px 14px; border-radius: 14px;
  background: linear-gradient(120deg, #F0F6FF, #EAF1FF); border: 1px solid #DCE8FF;
  font-size: 12.5px; color: #2551A8;
}
.pay-amt b { font-size: 21px; color: #1E5BFF; letter-spacing: -.5px; }

.od-hero { text-align: center; padding: 6px 0 12px; }
.od-hero .od-amt { font-size: 26px; font-weight: 700; letter-spacing: -.8px; }
.od-hero .od-amt small { font-size: 13px; font-weight: 500; opacity: .6; }
.od-hero .od-fiat { font-size: 12.5px; color: var(--text-mute); margin-top: 3px; }

.kv-list { border-radius: 14px; background: #F9FAFC; border: 1px solid var(--border); padding: 2px 12px; }
.kv-list .kv { border-bottom: 1px solid #EFF1F6; }

.paybox {
  margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: #FFFBF0; border: 1px solid #FBE2B0;
}
.paybox .pay-t { font-size: 12px; font-weight: 700; color: #8A6314; margin-bottom: 6px; }
.paybox .kv { border-bottom: 1px dashed #F1DBA8; }
.paybox .kv .k { color: #A98436; }
.paybox .kv .v { color: #6B4E12; font-weight: 600; }
.payqr { width: 170px; max-width: 100%; margin: 12px auto 2px; display: block; border-radius: 10px; background: #fff; padding: 6px; }

/* ---------- 我的收款方式 ---------- */
.pay-item {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.pay-item .pi-ic {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
}
.pay-item .pi-ic.k-bank { background: linear-gradient(140deg, #4F8DFF, #2A6FF5); }
.pay-item .pi-ic.k-alipay { background: linear-gradient(140deg, #38BDF8, #0EA5E9); }
.pay-item .pi-ic.k-wechat { background: linear-gradient(140deg, #34D399, #10B981); }
.pay-item .pi-ic.k-other { background: linear-gradient(140deg, #A78BFA, #7C5CFC); }
.pay-item .pi-t { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.pay-item .pi-a { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.pay-item .pi-s { font-size: 10.5px; color: var(--text-mute); margin-top: 2px; }
.pay-item .pi-qr {
  width: 42px; height: 42px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--border); flex: 0 0 auto;
}
.pay-item .pi-acts { display: flex; flex-direction: column; gap: 5px; flex: 0 0 auto; }
.pay-item .pi-acts .btn { padding: 5px 10px; font-size: 11.5px; border-radius: 8px; }
.qr-preview {
  width: 150px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; padding: 5px; display: block;
}

/* 下单时选收款方式 */
.pick-pm {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-top: 8px;
  border: 1px solid var(--border); border-radius: 13px; background: #fff; cursor: pointer;
  transition: .15s ease;
}
.pick-pm.on { border-color: #B9D2FF; background: #F3F7FF; box-shadow: 0 0 0 2px rgba(42, 111, 245, .08); }
.pick-pm .pm-k {
  width: 30px; height: 30px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: #EFF5FF; color: #2551A8;
}
.pick-pm .pm-mid { flex: 1; min-width: 0; }
.pick-pm .pm-t { font-size: 12.5px; font-weight: 600; }
.pick-pm .pm-a { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.pick-pm .pm-ck { color: #2A6FF5; }
.add-pm {
  display: block; text-align: center; font-size: 12px; color: #1E5BFF;
  padding: 9px 0 2px; text-decoration: none;
}

/* ---------- 币种真实图标 ---------- */
.tlogo { overflow: hidden; }
.tlogo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tlogo.has-img { background: #fff; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .06); }

/* 分类这种长文本要能换行 */
.kv.wrap { align-items: flex-start; flex-direction: column; gap: 4px; }
.kv.wrap .v { white-space: normal !important; word-break: break-word; text-align: left; }

/* ===========================================================
   本轮新增：Logo / 马赛克头像 / 实名 / 工单客服 / 地区弹窗
   =========================================================== */

/* 首页顶部：品牌图标换成 Logo 图片 */
.wallet-chip .wd {
  background: #fff; border: 1px solid var(--border); padding: 3px;
  box-shadow: 0 6px 14px -8px rgba(16, 24, 40, .35); overflow: hidden;
}
.wallet-chip .wd img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.sub-logo { width: 22px; height: 22px; object-fit: contain; opacity: .95; }
.auth .logo { background: #fff; border: 1px solid var(--border); padding: 6px; }
.auth .logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }

/* 「我的」头像换成马赛克头像 */
.me-avatar { background: #fff; padding: 0; overflow: hidden; border: 1px solid var(--border); }
.me-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 交易页：TRC20 / ERC20 并排小标签 */
.trade-acts .ts-chip {
  display: inline-block; padding: 1px 5px; margin: 0 2px;
  border-radius: 6px; background: #EEF3FF; color: #3A62F0;
  font-size: 9.5px; line-height: 14px;
}
.trade-acts .ts { display: flex; gap: 4px; justify-content: center; align-items: center; }

/* C2C 商家保证金徽标 */
.dep-badge {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 6px; padding: 1.5px 7px; border-radius: 999px;
  background: linear-gradient(135deg, #FFF7E6, #FFEFC9);
  border: 1px solid #F6D68A; color: #9A6B00;
  font-size: 10px; font-weight: 600; white-space: nowrap;
  vertical-align: middle;
}

/* ---------- 实名认证 ---------- */
.kyc-done { display: flex; align-items: center; gap: 12px; }
.kyc-done .kd-ico {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: #E9F9F1; color: #0E9F6E; font-size: 20px; font-weight: 700;
}
.kyc-up {
  flex: 1; min-width: 0; height: 132px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed #C7D2E5; background: #F8FAFF;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; overflow: hidden; position: relative;
}
.kyc-up img { width: 100%; height: 100%; object-fit: cover; }
.kyc-up .ku-ico { font-size: 26px; color: #8AA0C6; line-height: 1; }
.kyc-up .ku-t { font-size: 11.5px; color: var(--text-mute); }
.kyc-up .ku-tag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0;
  background: rgba(14, 159, 110, .88); color: #fff; font-size: 10.5px; text-align: center;
  font-weight: 600;
}

/* ---------- 工单客服 ---------- */
.cs-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #2E6BFF, #5B8CFF 60%, #7BA7FF);
  box-shadow: 0 16px 30px -18px rgba(42, 111, 245, .95);
}
.cs-hero .cs-av {
  width: 46px; height: 46px; border-radius: 16px; flex: 0 0 auto;
  background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 22px;
}
.cs-hero .fw7 { color: #fff; }
.cs-hero .t-xs { color: rgba(255, 255, 255, .82); }
.cs-hero .btn { background: #fff; color: #1E5BFF; border: none; font-weight: 600; }

.chat-wrap { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; min-height: 220px; }
.chat-row { display: flex; gap: 8px; align-items: flex-start; }
.chat-row.me { flex-direction: row-reverse; }
.chat-av {
  width: 34px; height: 34px; border-radius: 12px; flex: 0 0 auto;
  background: #EEF3FF; display: grid; place-items: center; font-size: 17px;
}
.chat-col { display: flex; flex-direction: column; gap: 4px; max-width: 76%; }
.chat-row.me .chat-col { align-items: flex-end; }
.bubble { padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; word-break: break-word; }
.b-them { background: #fff; border: 1px solid var(--border); border-top-left-radius: 5px; }
.b-me { background: linear-gradient(135deg, #2E6BFF, #1E5BFF); color: #fff; border-top-right-radius: 5px; }
.chat-img { max-width: 190px; border-radius: 10px; margin-top: 6px; display: block; }
.chat-time { font-size: 10.5px; color: var(--text-mute); }
.chat-closed { text-align: center; font-size: 11.5px; color: var(--text-mute); padding: 6px 0; }

.chat-wrap.has-input { padding-bottom: 108px; }

/* 输入框钉在屏幕底部。--kb 是键盘高度（tickets.js 用 visualViewport 算出来的），
   键盘一弹起来，输入框就正好贴在输入法上沿。 */
.chat-input {
  position: fixed; left: 0; right: 0;
  bottom: var(--kb, 0px);
  margin: 0 auto; width: 100%; max-width: 460px;
  z-index: 28;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -14px 30px -24px rgba(16, 24, 40, .55);
  transition: bottom .14s ease;
}
@media (prefers-reduced-motion: reduce) { .chat-input { transition: none; } }
.chat-input .input { border-radius: 11px; }
.chat-input .btn { flex: 0 0 auto; }
.ci-preview { max-width: 92px; border-radius: 10px; margin-bottom: 6px; cursor: pointer; }

/* ---------- 登录后 3 秒地区提示（高级感弹窗） ---------- */
.region-mask {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center; padding: 28px;
  background: rgba(12, 20, 38, .42); backdrop-filter: blur(6px);
  animation: rmFade .28s ease both;
}
@keyframes rmFade { from { opacity: 0; } to { opacity: 1; } }
.region-card {
  position: relative; width: 100%; max-width: 330px; overflow: hidden;
  border-radius: 24px; padding: 26px 22px 20px; text-align: center;
  background: linear-gradient(180deg, #FFFFFF, #F6F9FF);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 60px -24px rgba(12, 30, 70, .55);
  animation: rmPop .42s cubic-bezier(.2, .9, .25, 1.05) both;
}
@keyframes rmPop {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to { opacity: 1; transform: none; }
}
.rc-glow {
  position: absolute; top: -70px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 107, 255, .28), transparent 70%);
}
.rc-flag { font-size: 40px; line-height: 1; margin-bottom: 10px; position: relative; }
.rc-t { font-size: 17px; font-weight: 700; letter-spacing: -.2px; position: relative; }
.rc-d { font-size: 12.5px; color: var(--text-dim); margin-top: 8px; line-height: 1.7; position: relative; }
.rc-bar { height: 4px; border-radius: 99px; background: #E6EDF9; margin-top: 18px; overflow: hidden; }
.rc-bar i { display: block; height: 100%; width: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #2E6BFF, #6FA8FF); transform-origin: left;
  animation: rmBar 3s linear both; }
@keyframes rmBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- 地址池空了：全站提示弹窗 ---------- */
.pool-mask {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 28px;
  background: rgba(12, 20, 38, .46); backdrop-filter: blur(6px);
  animation: rmFade .24s ease both;
}
.pool-card {
  width: 100%; max-width: 320px; border-radius: 24px; padding: 26px 22px 18px; text-align: center;
  background: linear-gradient(180deg, #FFFFFF, #F6F9FF);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 60px -24px rgba(12, 30, 70, .55);
  animation: rmPop .38s cubic-bezier(.2, .9, .25, 1.05) both;
}
.pool-card .pc-icon {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px;
  background: radial-gradient(circle at 35% 30%, #FFF3D6, #FFE0A8);
  box-shadow: 0 10px 22px -10px rgba(214, 150, 20, .55);
}
.pool-card .pc-t { font-size: 17px; font-weight: 700; color: #101828; margin-bottom: 8px; }
.pool-card .pc-d { font-size: 13.5px; line-height: 1.6; color: #667085; margin-bottom: 18px; }

/* C2C 商家一行：名称 + 蓝标 + 保证金徽标必须同排，不允许换行 */
.mch-line { display: flex; align-items: center; gap: 4px; min-width: 0; }
.mch-line .ellipsis { min-width: 0; flex: 0 1 auto; }
.mch-line .vf { flex: 0 0 auto; }
.mch-line .dep-badge { flex: 0 0 auto; margin-left: 2px; }
.c2c-nm .ellipsis { min-width: 0; flex: 0 1 auto; }
.c2c-nm .vf { flex: 0 0 auto; }
.c2c-nm .dep-badge { flex: 0 0 auto; }

/* 高危账号提示横幅（后台标「高危」后出现在首页/我的） */
.risk-banner {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 12px 14px 0; padding: 12px 14px;
  border-radius: 14px; border: 1px solid #FBC9C9;
  background: linear-gradient(135deg, #FFF1F1, #FFE4E4);
}
.risk-banner .rb-ico {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: #E23D3D; color: #fff;
}
.risk-banner .rb-t { font-size: 13px; font-weight: 700; color: #B42318; line-height: 1.35; }
.risk-banner .rb-s { font-size: 11.5px; color: #B4544A; margin-top: 4px; line-height: 1.4; }

/* ============================================================
   登录 / 注册首屏（对标参考图：深色星空 + 轨道币圈 + 大标题）
   ============================================================ */
.lw {
  flex: 1; position: relative; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
  padding: 0 26px calc(24px + env(safe-area-inset-bottom, 0px));
  color: #fff;
  background:
    radial-gradient(120% 78% at 50% -6%, #1B2A55 0%, #0D1430 42%, #070B17 100%);
}
/* 星点：六个小块各自闪 */
.lw-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lw-bg i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .45; }
.lw-bg i:nth-child(1) { left: 12%; top: 9%; animation: lwTw 3.6s ease-in-out infinite; }
.lw-bg i:nth-child(2) { left: 78%; top: 6%; width: 3px; height: 3px; animation: lwTw 4.6s ease-in-out .8s infinite; }
.lw-bg i:nth-child(3) { left: 88%; top: 34%; animation: lwTw 5.2s ease-in-out .3s infinite; }
.lw-bg i:nth-child(4) { left: 7%; top: 42%; width: 3px; height: 3px; animation: lwTw 4.1s ease-in-out 1.2s infinite; }
.lw-bg i:nth-child(5) { left: 62%; top: 52%; animation: lwTw 5.8s ease-in-out .6s infinite; }
.lw-bg i:nth-child(6) { left: 24%; top: 62%; opacity: .3; animation: lwTw 6.4s ease-in-out 1.6s infinite; }
@keyframes lwTw { 0%, 100% { opacity: .18; } 50% { opacity: .85; } }

/* 轨道动画 */
.lw-orbit {
  position: relative; flex: 0 0 auto;
  /* 左右各借 14px，让最外圈图标不撞上 .lw 的 26px 内边距 */
  width: min(calc(100% + 28px), 42vh); aspect-ratio: 1 / 1;
  margin: 5vh -14px 0;
}
.lw-ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(140, 175, 255, .17);
}
.lw-ring.r1 { width: 42%; height: 42%; }
.lw-ring.r2 { width: 62%; height: 62%; border-color: rgba(140, 175, 255, .14); }
.lw-ring.r3 { width: 82%; height: 82%; border-color: rgba(140, 175, 255, .11); }
.lw-ring.r4 { width: 96%; height: 96%; border-color: rgba(140, 175, 255, .05); }
.lw-glow {
  position: absolute; left: 50%; top: 50%; width: 52%; height: 52%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(32, 220, 180, .36) 0%, rgba(32, 220, 180, .06) 55%, transparent 72%);
  filter: blur(6px);
}
.lw-core {
  position: absolute; left: 50%; top: 50%; width: 86px; height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 22px; display: grid; place-items: center;
  background: #fff;
  box-shadow: 0 22px 60px -18px rgba(24, 210, 165, .9), 0 14px 34px -14px rgba(0, 0, 0, .7),
              inset 0 1px 0 rgba(255, 255, 255, .6);
  animation: lwFloat 5.6s ease-in-out infinite;
}
.lw-core img { display: block; height: 58px; width: auto; }
/* 每条「手臂」绕容器中心公转，图标自身等速反向自转 —— 所以币标永远保持正立 */
.lw-arm {
  position: absolute; inset: 0;
  animation: lwSpin var(--dur) linear infinite;
  animation-delay: var(--d);
  will-change: transform;
}
.lw-arm img {
  position: absolute; left: 50%; top: calc(50% - var(--rp));
  width: var(--sz); height: var(--sz);
  margin: calc(var(--sz) * -0.5) 0 0 calc(var(--sz) * -0.5);
  border-radius: 50%;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .58));
  animation: lwSpinRev var(--dur) linear infinite;
  animation-delay: var(--d);
  will-change: transform;
}
@keyframes lwSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes lwSpinRev { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
/* 系统开了「减弱动态效果」时不动画，但仍然按各自角度静态摆好，不会叠成一堆 */
@media (prefers-reduced-motion: reduce) {
  .lw-arm { animation: none; transform: rotate(var(--a)); }
  .lw-arm img { animation: none; transform: rotate(calc(var(--a) * -1)); }
}

@keyframes lwFloat { 0%, 100% { transform: translate(-50%, -50%) translateY(0); } 50% { transform: translate(-50%, -50%) translateY(-7px); } }

.lw-head { margin-top: auto; padding-top: 18px; }
.lw-head h1 { font-size: 29px; line-height: 1.26; letter-spacing: -.6px; font-weight: 500; }
.lw-head h1 b { font-weight: 800; letter-spacing: -.2px; }
.lw-head p { margin-top: 12px; font-size: 13px; letter-spacing: 1.6px; color: rgba(255, 255, 255, .58); text-transform: uppercase; }

.lw-actions { display: flex; flex-direction: column; gap: 13px; margin-top: 30px; }
.lw-btn {
  height: 56px; border-radius: 999px; font-size: 17px; font-weight: 600;
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: .16s ease; border: none; cursor: pointer;
}
.lw-btn .arw { font-size: 19px; opacity: .92; font-weight: 500; }
.lw-primary {
  background: linear-gradient(135deg, #3D5BFF, #2B3FE8);
  color: #fff; box-shadow: 0 20px 44px -20px rgba(59, 91, 255, .95);
}
.lw-primary:active { transform: translateY(1px); }
.lw-primary[disabled] { opacity: .6; }
.lw-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.lw-foot { text-align: center; font-size: 11px; color: rgba(255, 255, 255, .3); margin-top: 20px; }

/* ---------- 登录 / 注册表单（同一套深色皮肤） ---------- */
.lf-top { display: flex; align-items: center; gap: 10px; padding: 18px 0 0; }
.lf-back {
  width: 38px; height: 38px; border-radius: 12px; font-size: 24px; line-height: 1;
  background: rgba(255, 255, 255, .07); color: #fff; border: 1px solid rgba(255, 255, 255, .1);
  display: grid; place-items: center; padding-bottom: 4px;
}
.lf-tt { line-height: 1.25; }
.lf-t { font-size: 16px; font-weight: 600; }
.lf-s { font-size: 11.5px; color: rgba(255, 255, 255, .45); }
.lf-mark { text-align: center; margin: 30px 0 6px; }
.lf-logo {
  width: 68px; height: 68px; border-radius: 22px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: #fff;
  box-shadow: 0 20px 44px -18px rgba(24, 210, 165, .85), 0 10px 26px -14px rgba(0, 0, 0, .6),
              inset 0 1px 0 rgba(255, 255, 255, .6);
}
.lf-logo img { display: block; height: 44px; width: auto; }
.lf-mk-t { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.lf-mk-s { font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-top: 6px; }
.lf-form { display: flex; flex-direction: column; margin-top: 22px; padding-bottom: 18px; }
.lf-lb { font-size: 12.5px; color: rgba(255, 255, 255, .55); margin: 14px 0 7px; }
.lf-input {
  width: 100%; padding: 15px 16px; border-radius: 14px; font-size: 15px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
}
.lf-input::placeholder { color: rgba(255, 255, 255, .32); }
.lf-input:focus { outline: none; border-color: rgba(90, 130, 255, .8); background: rgba(255, 255, 255, .08); }
.lf-pwd { position: relative; display: flex; }
.lf-pwd .lf-input { padding-right: 48px; }
.lf-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 10px; background: transparent;
  color: rgba(255, 255, 255, .55); border: none; display: grid; place-items: center;
}
.lf-err {
  margin-top: 14px; padding: 11px 13px; border-radius: 12px; font-size: 12.5px;
  background: rgba(255, 86, 86, .14); border: 1px solid rgba(255, 86, 86, .3); color: #FF9C9C;
}
.lf-alt { text-align: center; font-size: 13px; color: rgba(255, 255, 255, .58); margin-top: 18px; cursor: pointer; }
.lf-alt:active { opacity: .7; }

/* ============================================================
   提币撤销窗口
   ============================================================ */
.undo-ring {
  position: relative; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: conic-gradient(#1E5BFF var(--p, 100%), #E7ECF6 0);
  transition: background .35s linear;
}
.undo-ring::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.undo-ring b { position: relative; z-index: 2; font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.undo-ring span { position: relative; z-index: 2; font-size: 11px; color: var(--text-mute, #8A93A6); margin-top: -22px; }
.undo-sum { width: 100%; background: #F5F7FB; border-radius: 12px; padding: 11px 13px; display: flex; flex-direction: column; gap: 7px; }

/* ============================================================
   合作机构（发现 → 常用工具）
   ============================================================ */
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-tile {
  background: #fff; border: 1px solid #E9EDF5; border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -14px rgba(16, 24, 40, .35);
}
.pt-tile img { display: block; width: 100%; height: auto; }
