/* ============================================================
   OKGO.CASH — 手机版跨链兑换界面（脱敏演示 · 1:1 复刻版）
   依据：目标站 iPhone 手机版实测 + 目标站样式表中的原始数值
   单套版式：电脑端同样显示手机版（居中列，宽度上限 480px）
   ============================================================ */

/* 首帧配色：发送侧强调色 --from-accent 由 app.js 在初始化时按所选币种设置；
   未设置时 var() 会退回橙色 #fa6800（目标站原主色），导致加载首帧发送侧
   （金额/ Min / ≈USD / 左侧色条）先橙一下再变成币种色。
   这里把初始值直接写成默认发送币 ETH 的主色，首帧即为正确颜色（JS 仍会覆盖它）。 */
:root {
  --from-accent: #627eea;   /* 默认发送币 ETH 的主色，与 app.js:302 设置值一致 */
}

@font-face {
  font-family: 'Inter-var';
  src: url('img/fonts/Inter-var.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'iconfont';
  src: url('img/fonts/iconfont.ttf') format('truetype');
  font-display: swap;
}
.iconfont { font-family: 'iconfont' !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.icon-tuite:before { content: "\e657"; }
.icon-instagram-fill:before { content: "\e653"; }
.icon-YoutubeBold:before { content: "\e659"; }
.icon-facebook:before { content: "\e656"; }
.icon-trustpilot:before { content: "\e654"; }
.footer_hover { font-size: 18px; color: #cfd8ee; }   /* 社交图标暂无真实链接：去掉 pointer，避免"看着能点却没反应" */

* { box-sizing: border-box; }
html, body, div, span, h1, h2, h3, p, a, img, form, button, input, footer, header, aside {
  margin: 0; padding: 0; font-family: 'Inter-var', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-style: normal; border: 0;
}
html, body { height: 100%; }
body {
  background: #0d1117;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; }
button { background: none; cursor: pointer; font-family: inherit; }
input { background: none; outline: none; color: inherit; font-family: inherit; }
a { text-decoration: none; }

/* 电脑端：居中手机列 */
#app {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  background: #191e26;
  overflow-x: clip;
  box-shadow: 0 0 80px rgba(0, 0, 0, .55);
}

/* ===== 顶部栏 ===== */
.navContainer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 44px;
  background-color: transparent;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  transition: background-color .2s ease;
}
.navContainer.nav-scrolled { background-color: #2a3846; }
/* 页眉 logo 放大：页眉高度固定 44px（flex 居中），放大 logo 不会改变页眉高度。
   要再大/再小改这一行 height 即可；页脚 logo（.footer-logo）不受影响。 */
.navContainer .nav-logo { height: 26px; width: auto; }
.nav-spacer { height: 44px; }
.navItems { display: flex; align-items: center; }
.navItems > img { width: 22px; height: 22px; }
.navItems > img:nth-of-type(1) { margin-right: 16px; }
.navItems .poper { display: flex; align-items: center; cursor: pointer; }
.navItems .poper > img { width: 22px; height: 22px; margin-right: 4px; }
.navItems .poper .lnText { font-size: 14px; padding: 2px 0; font-weight: 400; color: #fff; }

/* ===== 布局 ===== */
.layout-container { position: relative; z-index: 4; width: 100%; min-height: 100vh; display: flex; flex-direction: column; }
.layout-container .content { flex: 1; }

.exchange-container { background: #191e26; color: #fff; padding: 0 12px; position: relative; margin-top: 120px; }

/* 主视觉（标题在背景层内，与目标一致） */
.exchange-container .ex-bg {
  width: 100%;
  height: 240px;
  position: absolute;
  left: 0;
  top: -170px;
  padding-top: 77px;
  padding-left: 16px;
  /* 背景图已按用户要求去除（2026-09-23）：原为 target 主题图 img/theme/bk4-mobile.jpg。
     要恢复：把下面这行取消注释即可。 */
  /* background-image: url('img/theme/bk4-mobile.jpg'); */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.exchange-container .ex-bg > p {
  position: relative;
  z-index: 4;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff, #74a5ef);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.exchange-container .ex-bg > p:nth-of-type(2) { margin-top: 11px; }

/* ===== 兑换卡 ===== */
.exchange-box {
  position: relative;
  padding: 12px;
  z-index: 5;
  width: 100%;
  min-height: 442px;
  border-radius: 8px;
  border: 1px solid rgb(67, 73, 82);
  background: linear-gradient(180deg, #363f4fcc, #1b2435e6 97.31%);
  box-shadow: 0 8px 30px #1b212d66;
}
.exchange-box .title {
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rate-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  color: #0ebe8f;
  font-size: 14px;
  font-weight: 400;
}
.rate-trigger .caret { color: #0ebe8f; }

/* Send */
.form-item.send-item { margin-top: 19px; }
.field-label { display: flex; align-items: center; gap: 5px; height: 22px; font-size: 14px; color: #8f96a1; }
.req { color: #f04030; line-height: 1; }
.amount-row {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  margin-top: 8px;
  background: #1a1f28;
  border-radius: 8px;
  box-shadow: 0 1px 5px #ffffff14;
  padding-right: 5px;
}
.input_border::before {
  content: "";
  position: absolute;
  display: block;
  width: 4px;
  height: 22px;
  top: 50%;
  transform: translateY(-50%);
  left: -1px;
  background: var(--from-accent, #fa6800);
  box-shadow: 2px 0 8px 0 var(--from-accent, #fa6800);
  border-radius: 0 4px 4px 0;
}
.amount-input { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; height: 100%; }
.amount-input.from { color: var(--from-accent, #fa6800); padding-left: 12px; font-size: 20px; }   /* 发送金额字号加大（16 → 20px） */
.amount-input.from::placeholder { color: rgba(255, 255, 255, .38); }

.select-bg { position: relative; flex: 0 0 auto; }
.select-bg .select-bg-box {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--pill-color, #fa6800);
  border-radius: 6px;
  opacity: .2;
  right: 2px;
}
.coin-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 7px 0 13px;
  border-radius: 6px;
}
.coin-ico { width: 24px; height: 24px; border-radius: 50%; }
/* 币种胶囊：币=纯图，链标画在圈外（与选币列表同款，尺寸缩到胶囊档） */
.coin-ico-wrap { position: relative; width: 24px; height: 24px; display: inline-flex; flex: 0 0 auto; }
.coin-ico-wrap .coin-ico { display: block; }
.coin-ico-wrap .asset-chain-badge { width: 11px; height: 11px; right: -2px; bottom: -2px; background: rgba(15, 22, 32, .92); box-shadow: 0 0 0 1.5px rgba(15, 22, 32, .92); }
.coin-abbr { font-size: 14px; font-weight: 700; color: #fff; }
.pill-caret { width: 10px; height: 10px; margin-left: 3px; }

.exchange-rate { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.exchange-rate > p { font-size: 13px; font-weight: 400; line-height: 20px; }
.min-label { color: #fff; }
.min-val { color: var(--from-accent, #fa6800); margin-left: 3px; }
.fiat { color: var(--from-accent, #fa6800); }

/* 换向 */
.exchange-btn {
  width: 100%;
  height: 52px;
  background-image: url('img/ui/ex-box-co.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swap-btn { display: grid; place-items: center; padding: 0; border-radius: 50%; }
.swap-btn img { border: 2px solid #262b33; border-radius: 50%; }
.swap-btn:active { opacity: .7; }

/* Receive */
.receive-label { margin-top: 3px; height: 22px; display: flex; align-items: center; font-size: 14px; color: #8f96a1; }
.to-group .to-box {
  height: 48px;
  display: flex;
  align-items: center;
  background: #1a1f28;
  border-radius: 8px;
  box-shadow: 0 1px 5px #ffffff14;
  margin-top: 9px;
  padding: 0 5px 0 7px;
}
.pct-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 70px;
  height: 36px;
  /* 外框：与同币种多地址行 .addr-pct 同款（目标站多币种行的百分比就是带框的） */
  border: 1px solid #414753;
  border-radius: 4px;
}
.pct-wrap[hidden] { display: none; }
/* 数字：居中 / 16px / 400（目标站 .to-percent-input > input 的原样）；外框由外层 .pct-wrap 提供 */
.pct-input { width: 34px; text-align: center; font-size: 16px; font-weight: 400; color: #fff; padding: 0; background: transparent; border: 0; }
.pct-sign { font-size: 16px; font-weight: 700; color: #fff; padding-right: 12px; }
.tilde { font-size: 14px; font-weight: 700; color: var(--to-accent, #50af95); margin-right: 4px; flex: 0 0 auto; }
.amount-input.to { font-size: 16px; color: var(--to-accent, #50af95); }   /* iOS 聚焦不放大：≥16px */

.exchange-to { display: flex; align-items: center; gap: 21px; margin-top: 16px; height: 36px; }
.addr-line { flex: 1; min-width: 0; display: flex; align-items: center; height: 36px; border-bottom: 1px solid #8f96a1; }
.addr-input { flex: 1; min-width: 0; height: 36px; font-size: 16px; color: #fff; padding-left: 2px; }   /* iOS 聚焦不放大：≥16px */
.addr-input::placeholder { color: #ccc; }
.paste-btn { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; padding: 4px 0; flex: 0 0 auto; }
.addr-add {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: transparent;
  display: grid;
  place-items: center;
}

/* 追加收款组 */
#extraGroups .to-group { margin-top: 19px; }
#extraGroups .to-box { margin-top: 0; }
.to-group .select-bg { margin-left: auto; }
.group-amount { font-size: 16px; font-weight: 700; }   /* iOS 聚焦不放大：≥16px */

/* ---------- 多笔兑换：金额行变窄 + 右侧减号（删除该笔） ---------- */
.to-group { position: relative; }
/* 多笔：金额行给右侧减号留列（390 宽时 = 303px，随卡片伸缩） */
.to-group.multi .to-box { width: calc(100% - 37px); }
.ex-del {
  position: absolute;
  top: 12px;
  right: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ---------- 多地址：每个收款地址一条"分配行"（% + 金额 + 图标），其下是地址行 ---------- */
.addr-block { margin-top: 16px; }
.addr-alloc { display: flex; align-items: center; height: 36px; }
.addr-pct {
  width: 71px;
  height: 30px;
  margin-right: 12px;
  border: 1px solid #414753;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.addr-pct .pct-input { width: 38px; text-align: center; font-size: 16px; font-weight: 400; color: #fff; background: transparent; padding: 0; }
.addr-pct .pct-sign { font-size: 16px; font-weight: 400; color: #fff; }
.alloc-amt {
  flex: 1;
  min-width: 0;
  height: 32px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  background: #1a1f28;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.addr-alloc .addr-add { margin-left: 20px; }
/* 多地址：地址行固定留出右侧图标列（390 宽时 = 296px，随卡片伸缩） */
.exchange-to.multi-addr { margin-top: 10px; width: calc(100% - 44px); gap: 0; }

/* 多笔兑换窄行：长币名（PYUSD-ERC20）会把金额挤到看不见 —— 收窄 % 区、胶囊留白/字号收紧、金额字号降一档 */
.to-group.multi .pct-wrap { width: 52px; }
.to-group.multi .pct-input { width: 26px; }
.to-group.multi .coin-pill { padding: 0 5px 0 8px; gap: 5px; }
.to-group.multi .coin-abbr { font-size: 12.5px; }
.to-group.multi .coin-ico-wrap, .to-group.multi .coin-ico { width: 20px; height: 20px; }
.to-group.multi .group-amount { font-size: 16px; }   /* iOS 聚焦不放大：≥16px */

/* Add Exchange */
.addBtns { display: flex; flex-direction: column; margin-top: 16px; }
/* Add Exchange（目标站为居中细描边按钮；此处按移动端优化：占满卡片宽、悬停/按下反馈、达上限置灰） */
.add-exchange {
  margin: 20px auto 0;
  height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #0ebe8f;
  border-radius: 8px;
  color: #0ebe8f;
  padding: 0 15px;
  gap: 8px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease, transform .06s ease;
}
.add-exchange:hover { background: rgba(14, 190, 143, .08); }
.add-exchange:active { background: rgba(14, 190, 143, .16); transform: scale(.99); }
.add-exchange.limit-reached { opacity: .45; cursor: not-allowed; }
.add-exchange.limit-reached:hover { background: transparent; }
.add-exchange.limit-reached:active { transform: none; }
.add-exchange .ant-btn-icon { display: flex; align-items: center; }
.add-exchange .ant-btn-icon img { margin-top: 2px; }
.add-exchange-label { line-height: 28px; font-size: 14px; }

/* Exchange Now（与目标站一致：整钮 opacity .5 + 文字 700 + 箭头交替闪烁） */
.submit-row { margin-top: 25px; padding: 0 12px; }
.cus-btn-bg {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 22px #13b1b666;
  background-image: url('img/ui/btn-bg.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cus-btn-bg.cta-disabled { opacity: .5; cursor: not-allowed; }
.cus-btn-bg .btn-label { font-weight: 700; padding: 0 8px; }
.side-arrows { display: inline-flex; }
.side-arrows img { display: block; }
.ab-ov { margin-left: -2px; }
.animated-btn { opacity: 1; animation: btn .8s steps(1) infinite; }
.animated-btn1 { opacity: 1; animation: btn1 .8s steps(1) infinite; }
@keyframes btn { 0% { opacity: .7; } 50% { opacity: .3; } 100% { opacity: .7; } }
@keyframes btn1 { 0% { opacity: .5; } 50% { opacity: .9; } 100% { opacity: .5; } }

/* 条款 */
.terms { margin-top: 12px; text-align: center; font-size: 12px; line-height: 19px; color: #8f96a1; }
.terms-links { display: block; }
.demo-link { color: #0ebe8f; }
.terms .dim { color: #8f96a1; margin: 0 3px; }

/* 自动刷新 + 汇率 */
.refresh {
  width: 100%;
  padding: 30px 20px 20px;
  border-radius: 8px;
  margin-top: 44px;
  background: #ffffff14;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}
.refresh-time {
  width: 210px;
  min-width: 170px;
  height: 40px;
  position: absolute;
  border: 2px solid #2f353f;
  border-radius: 62px;
  padding: 0 7px;
  background: #1a1f28;
  display: flex;
  align-items: center;
  top: 0;
  transform: translateY(-50%);
  color: #8f96a1;
}
.refresh-time .rt-ico { width: 24px; flex: 0 0 auto; display: flex; justify-content: center; margin-left: 8px; }
.refresh-time > div { flex: 1; text-align: center; margin: 0 6px; white-space: nowrap; }
.rate-lines { display: flex; flex-direction: column; gap: 16px; font-size: 12px; line-height: 19px; color: #fff; text-align: center; }

/* 卖点卡（3 排：整行卡片，图标+标题一行、说明左对齐，长文案不截断） */
.explain-container { width: 100%; margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.explain-item {
  width: 100%;
  padding: 16px;
  background: #ffffff14;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: flex-start;
}
.explain-item .top { display: flex; align-items: center; gap: 12px; }
.explain-item .top > img { width: 36px; height: 36px; flex: 0 0 auto; }
.explain-item .top > span { font-size: 16px; font-weight: 700; line-height: 20px; color: #fff; }
.explain-item .bottom { width: 100%; text-align: left; font-size: 12px; font-weight: 400; color: #8f96a1; line-height: 1.5; }

/* 行情 */
.recentPriceContainer { margin-top: 48px; }
.recentPriceContainer > h2 { font-size: 20px; font-weight: 700; }
.rp-card {
  margin-top: 15px;
  min-height: 260px;
  border-radius: 8px;
  border: 1px solid #44506b;
  background: linear-gradient(180deg, #363f4f99, #253e5d 98.67%);
  padding: 16px;
}
.rp-viewport { overflow: hidden; }
.rp-list { display: block; }
.rp-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; margin-bottom: 12px; color: #8f96a1; }
.rp-sort { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: inherit; font-size: 12px; font-weight: 400; cursor: pointer; }
.rp-sort .rp-arrow { flex: 0 0 auto; }
.rp-sort .ar-up, .rp-sort .ar-dn { opacity: .38; }
.rp-sort.act { color: #e8ebef; }
.rp-sort.asc .ar-up, .rp-sort.desc .ar-dn { opacity: 1; fill: #0ebe8f; }
.dataItem { display: flex; flex-direction: column; gap: 8px; padding: 0 6px; }
.dataItem:not(:first-child) { margin-top: 22px; }
.coin-rate { display: flex; align-items: center; justify-content: space-between; }
.coin-rate .coin { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 14px; font-weight: 700; }
.coin-rate .coin img { width: 24px; height: 24px; }
.rp-approx { font-size: 13px; color: #fff; }
.price-right { flex: 0 0 auto; text-align: right; }
.price-right .p-val { color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; }
.price-right .p-chg { font-size: 12px; line-height: 1.3; margin-top: 2px; }
.p-chg.up { color: #0ebe8f; }
.p-chg.down { color: #f6465d; }
.p-chg.flat { color: #8f96a1; }

/* 客服（结构与类名对齐目标站） */
.surportContainer { margin-top: 48px; }
.surportContainer h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.surport-item {
  width: 100%;
  height: 140px;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 16px;
}
.surport-item:not(:first-child) { margin-top: 8px; }
.surport-item .surport-item-top { display: flex; align-items: center; gap: 12px; }
.surport-item .surport-item-top > span { font-size: 16px; font-weight: 700; margin-top: -2px; color: #0ebe8f; }
.surport-item > p { font-size: 14px; font-weight: 400; color: #fff; margin-top: 12px; line-height: 1.5; }
.mail-link { display: block; margin-top: 6px; color: #0ebe8f; cursor: pointer; }

/* 合作伙伴（真实 logo，两行跑马灯；结构与动画对齐目标站） */
.partnersContainer { margin-top: 48px; }
.partnersContainer .sec-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  height: 30px;
  margin-bottom: 15px;
  background: linear-gradient(180deg, #fff, #74a5ef);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.partners-marquee { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
/* logo 卡片底板（对齐真站 .Partners_main1：192×56、圆角 8、底色 #31435880；logo 默认灰度、hover 变彩） */
.partner-track { display: flex; align-items: center; height: 56px; width: max-content; animation: partnersScroll 71.4s linear infinite; }
.partner-track.alt { animation-delay: -2.6s; }
.partner-item {
  width: 192px;
  height: 56px;
  margin-right: 12px;
  border-radius: 8px;
  background: #31435880;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background .5s ease;
}
.partner-item:hover { background: #314358; }
.partner-item > img { height: 20px; width: auto; flex: 0 0 auto; filter: saturate(0%); transition: filter 1s ease; }
.partner-item:hover > img { filter: saturate(100%); }
.partners-spacer { height: 48px; }
@keyframes partnersScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 渐变标题（目标站同名类） */
.clip-text {
  background: linear-gradient(180deg, #fff, #a3c3f3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
}

/* 页脚（结构与样式对齐目标站 foolter-container） */
.foolter-container {
  background: #1f2127;
  padding: 24px 12px 27px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-logo { width: 143px; height: 35px; }
.foolter-container .socials { width: 160px; display: flex; justify-content: space-between; align-items: center; }
.foolter-container .term { width: fit-content; margin: 0 auto; font-size: 12px; font-weight: 400; line-height: 14.52px; color: #0ebe8f; display: flex; justify-content: space-between; gap: 20px; }
.foolter-container .term .demo-link { cursor: pointer; }
.foolter-container > p.copyright { font-size: 14px; font-weight: 400; line-height: 16.94px; color: rgba(255, 255, 255, .6); }

/* ===== 语言选择弹层（结构对齐目标站 popover） ===== */
.lang-pop {
  position: fixed;
  top: 37px;
  right: max(12px, calc(50% - 240px + 12px));
  width: 145px;
  background: #404d5e;
  border-radius: 8px;
  padding: 4px;
  z-index: 300;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08), 0 3px 6px -4px rgba(0, 0, 0, .12), 0 9px 28px 8px rgba(0, 0, 0, .05);
  animation: fadeIn .15s ease;
}
.lang-pop .poperItem { width: 137px; height: 31px; border-radius: 4px; display: flex; align-items: center; font-size: 12px; font-weight: 400; color: #fff; padding: 8px 12px; cursor: pointer; }
.lang-pop .poperItem:nth-of-type(2) { margin-top: 4px; }
.lang-pop .poperItem.active { background: rgba(255, 255, 255, .08); color: #0ebe8f; font-weight: 600; }

/* ===== 汉堡抽屉 ===== */
.drawer-root { position: fixed; inset: 0; z-index: 200; }
.drawer-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); animation: fadeIn .2s ease; }
.drawer {
  position: absolute;
  left: max(0px, calc(50% - 240px));
  top: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: #1a1f29cc;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  animation: slideIn .24s ease;
}
.drawer .clo_lo { display: flex; align-items: center; justify-content: space-between; }
.drawer .drawer-close { cursor: pointer; }
.navlistCOn { width: 100%; margin-top: 22px; }
.navigationItem { font-weight: 400; display: flex; align-items: center; font-size: 16px; color: #fff; padding: 8px; border-radius: 6px; cursor: pointer; }
.navigationItem:not(:first-child) { margin-top: 13px; }
.navigationItemActive { background: #0ebe8fb2; font-weight: 600; }
.quickExchange { display: flex; flex-direction: column; font-size: 12px; font-weight: 400; line-height: 14.52px; color: #fff; gap: 16px; margin-top: auto; margin-bottom: 12px; }
.quickExchange .coinItem span { font-weight: 500; font-size: 12px; color: #ffffffb2; margin-left: 12px; }
.quickExchange .coins { display: grid; grid-template-columns: 1fr 1fr; padding: 0 8px; gap: 10px; row-gap: 14px; }
.coins_logo { display: flex; align-items: center; width: fit-content; gap: 14px; padding: 8px 15px; background: #4894800d; border-radius: 6px; cursor: pointer; }
.coins_logo:active { background: #48948022; }

/* ===== 选币面板 ===== */
.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #263145cc;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn .18s ease;
}
.sheet-inner { max-width: 480px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; }
.sheet-head { position: relative; display: flex; align-items: center; padding: 14px 16px 0; flex: 0 0 auto; }
.sheet-title { flex: 1; font-size: 18px; font-weight: 600; color: #fff; }
.sheet-title.with-back { padding-left: 34px; }
.sheet-close, .sheet-back { display: grid; place-items: center; padding: 4px; }
.sheet-back { position: absolute; left: 14px; top: 16px; }
.sheet-body { padding: 8px 16px 40px; overflow-y: auto; flex: 1; }

.sheet-search-wrap.search {
  height: 48px;
  background: #1a1f28;
  border: 1px solid #8f96a1;
  border-radius: 8px;
  color: #8f96a1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.sheet-search-wrap.search input { flex: 1; min-width: 0; font-size: 16px; color: #fff; }   /* iOS 聚焦不放大：≥16px */
.sheet-search-wrap.search input::placeholder { color: #8f96a1; }

.chain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  margin-top: 16px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(26, 31, 40, .65);
  text-align: left;
}
.chain-desc { font-size: 14px; color: #fff; font-weight: 400; }
.chain-list { margin-top: 8px; border-radius: 10px; background: rgba(10, 16, 26, .55); padding: 4px 0; max-height: 320px; overflow-y: auto; }
.chain-option { display: flex; align-items: center; height: 44px; padding: 0 16px; width: 100%; color: #fff; font-size: 14px; text-align: left; }
.chain-option.active { color: #0ebe8f; }

.assets-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 10px; }
.assets-label { font-size: 14px; color: #fff; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(26, 31, 40, .65);
  color: #8f96a1;
  font-size: 12px;
}
.asset-list { border-radius: 10px; background: rgba(10, 16, 26, .45); padding: 4px 0; }
.asset-row { display: flex; align-items: center; width: 100%; height: 56px; padding: 0 14px; text-align: left; }
.asset-row:active { background: rgba(255, 255, 255, .04); }
/* 选币行图标：币是主图，链标画在币圈「外侧」一圈上（不压币图）；ETH/SOL/TRX/BNB 本币行不画角标 */
.asset-icon-wrap { position: relative; width: 40px; height: 40px; margin-right: 12px; flex: 0 0 auto; transform: translateY(-2px); }
.asset-icon { display: block; width: 40px; height: 40px; border-radius: 50%; }
.asset-chain-badge { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: #0f1620; box-shadow: 0 0 0 2px #0f1620; }
/* 按链分组：组头可点开/收起（默认全部展开） */
.asset-group { display: flex; align-items: center; width: 100%; height: 44px; padding: 0 14px; text-align: left; background: rgba(255, 255, 255, .065); border-top: 1px solid rgba(255, 255, 255, .06); }
.asset-group:active { background: rgba(255, 255, 255, .1); }
.asset-group-ico { width: 22px; height: 22px; border-radius: 50%; margin-right: 10px; flex: 0 0 auto; }
.asset-group-name { font-size: 13px; font-weight: 700; color: #fff; }
.asset-group-count { margin-left: 6px; font-size: 11px; color: #8f96a1; }
.asset-group-chev { margin-left: auto; display: inline-flex; transition: transform .18s ease; }
.asset-group.open .asset-group-chev { transform: rotate(180deg); }
.asset-group-body[hidden] { display: none; }
.asset-abbr { font-size: 14px; font-weight: 700; color: #fff; }
.asset-name { margin-left: 4px; font-size: 12px; color: #8f96a1; }
.asset-chev { margin-left: auto; display: inline-flex; }
.asset-empty { padding: 18px 16px; font-size: 13px; color: #8f96a1; }

/* ===== 费率弹窗（fate_modal） ===== */
.modal-root { position: fixed; inset: 0; z-index: 10000; }
.modal-mask { position: absolute; inset: 0; background: #191e26e6; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fadeIn .18s ease; }
.modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 32px);
  max-width: 420px;
  border-radius: 8px;
  background: linear-gradient(180deg, #363f4fcc, #1b2435 97.31%);
  border: 1px solid #4d5869;
  box-shadow: 0 8px 30px #1b212d;
  padding: 16px;
  animation: popIn .2s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 16px; font-weight: 600; color: #fff; }
.modal-close { display: grid; place-items: center; padding: 2px; }
.fateType { width: 100%; background: #ffffff14; height: 40px; padding: 1px 2px; margin-top: 16px; border-radius: 8px; }
.fateType-group { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.fateType .radio {
  flex: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  background-color: transparent;
  color: #fff;   /* 未选中=白色（用户要求；目标站为 #8f96a1 灰） */
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fateType .radio.active { background-color: #0ebe8f; color: #fff; font-weight: 500; }
.fateType .radio.active::before {
  content: '';
  flex: 0 0 auto;
  width: 13px; height: 13px;
  margin-right: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") no-repeat center/contain;
}
.rate-options { display: flex; flex-direction: column; }
.rate-opt { display: flex; align-items: flex-start; gap: 14px; padding: 0; text-align: left; }
.item-light { font-size: 12px; font-weight: 400; color: #fff; margin-top: 12px; }
.rate-opt .check { flex: 0 0 auto; margin-top: 1px; }
.rate-opt .check circle { stroke: #fff; }                       /* 未选中=白色空圈（用户要求） */
.rate-opt .check path { opacity: 0; }                           /* 未选中不显示勾——勾只属于选中项 */
.rate-opt.active .check circle, .rate-opt.active .check path { stroke: #0ebe8f; }
.rate-opt.active .check path { opacity: 1; }
.opt-title { display: block; font-size: 12px; font-weight: 400; color: #fff; }
.rate-opt.active .opt-title { color: #0ebe8f; }   /* 选中=绿色（原先写死在浮动项上，切到固定后浮动仍绿） */
.opt-desc { display: block; margin-top: 5px; font-size: 12px; line-height: 1.4; color: #8f96a1; }
.rate-opt.active .opt-desc { color: #fff; }

/* ===== 提示 ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  max-width: 320px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(18, 24, 34, .96);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 13px;
  text-align: center;
  z-index: 10001;
  animation: toastIn .18s ease;
}

body.lock { overflow: hidden; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
