/* Safari/iOS 滚动优化 - 禁用overscroll回弹 */
html, body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}

:root {
  /* 背景色 */
  --bg: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --panel: rgba(0, 0, 0, 0.04);
  --panel-2: rgba(0, 0, 0, 0.06);
  
  /* 文字颜色 - 日间模式 */
  --text: #1a1a1a;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #6b6b6b;
  --text-muted: #8c8c8c;
  --muted: #8c8c8c;
  
  /* 边框和阴影 */
  --border: rgba(0, 0, 0, 0.1);
  --border-color: #e5e5e5;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  
  /* 功能色 - 更专业的配色 */
  --green: #089981;
  --red: #f23645;
  --blue: #2563eb;
  --yellow: #f0b90b;

  --radius: 16px;
  --maxw: 1100px;
  color-scheme: light;
}

[data-theme="dark"] {
  /* 背景色 - 夜间模式 */
  --bg: #0d0d0d;
  --bg-primary: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --bg-card: #1f1f1f;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.10);
  
  /* 文字颜色 - 夜间模式（高对比度优化） */
  --text: #f5f5f5;
  --text-primary: #f5f5f5;
  --text-secondary: #d1d1d1;
  --text-tertiary: #a8a8a8;
  --text-muted: #888888;
  --muted: #a8a8a8;
  
  /* 边框和阴影 */
  --border: rgba(255, 255, 255, 0.12);
  --border-color: #3a3a3a;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  
  /* 功能色 - 夜间模式（专业配色） */
  --green: #26a69a;
  --red: #ef5350;
  --blue: #60a5fa;
  --yellow: #ffd966;
  
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.headerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brandMark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74, 163, 255, 0.9), rgba(43, 214, 123, 0.7));
  box-shadow: 0 10px 30px rgba(74, 163, 255, 0.25);
}

.brandTitle {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brandTitle strong {
  font-size: 14px;
  letter-spacing: 0.2px;
}

.brandTitle span {
  font-size: 12px;
  color: var(--muted);
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  color: var(--muted);
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--panel-2);
  border-color: var(--border);
}

.btn:active {
  transform: translateY(1px);
}

.btnPrimary {
  border-color: rgba(74, 163, 255, 0.35);
  background: rgba(74, 163, 255, 0.15);
}

.btnPrimary:hover {
  background: rgba(74, 163, 255, 0.22);
}

.btnDanger {
  border-color: rgba(255, 77, 79, 0.35);
  background: rgba(255, 77, 79, 0.12);
}

.btnDanger:hover {
  background: rgba(255, 77, 79, 0.18);
}

.mainGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px 0;
}

.panel {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease;
}

.panelHeader {
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panelHeader h2 {
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.2px;
}

.panelBody {
  padding: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.rowLink {
  cursor: pointer;
}

.rowLink:hover {
  background: var(--panel);
}

.coinCell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.coinIcon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 18px;
}

.coinNames {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.coinNames strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coinNames span {
  font-size: 12px;
  color: var(--muted);
}

.price {
  font-variant-numeric: tabular-nums;
}

.pctUp { color: var(--green); }
.pctDown { color: var(--red); }

.kpiRow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.kpi label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.kpi div {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.chartWrap {
  height: 360px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-secondary);
}

.chartStack {
  display: grid;
  gap: 10px;
}

.tfBar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tfBtn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
}

.tfBtn:hover {
  background: var(--panel-2);
  border-color: var(--border);
}

.tfBtnActive {
  border-color: var(--blue);
  background: rgba(0, 71, 255, 0.15);
  color: var(--text);
}

.legendRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legendRow .small {
  color: rgba(255,255,255,0.68);
}

.legendItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  font-variant-numeric: tabular-nums;
}

.legendDot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255,255,255,0.7);
}

.chartPanel {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  background: rgba(0,0,0,0.20);
}

.chartPanelHeader {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chartPanelBody {
  position: relative;
  height: 340px;
}

.chartPanelBodySm {
  position: relative;
  height: 150px;
}

.chartCanvas {
  position: absolute;
  inset: 0;
}

.crosshairV {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.20);
  pointer-events: none;
  opacity: 0;
}

.crosshairVShow {
  opacity: 1;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 50;
}

.modal {
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--border);
}

.modalHeader strong { font-size: 14px; }

.modalBody { padding: 14px; }

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  outline: none;
}

.input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.15);
}

.optModal {
  width: min(520px, 100%);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(17,24,39,0.12);
  box-shadow: 0 22px 70px rgba(0,0,0,0.22);
  overflow: hidden;
  position: relative;
}

.optModal::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(37, 99, 235, 0.06), transparent 62%),
    radial-gradient(900px 520px at 100% 10%, rgba(22, 199, 132, 0.05), transparent 62%),
    radial-gradient(900px 520px at 50% 120%, rgba(234, 57, 67, 0.045), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0));
  pointer-events: none;
}

.optModal::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.03) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,0.022) 0 1px, transparent 1px);
  background-size: 18px 18px, 22px 22px;
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.optHeader {
  position: relative;
  padding: 16px 16px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.optHeaderLeft {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.optSubTitle {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.optTitle {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--text);
}

.optClose {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: rgba(17,24,39,0.05);
  color: rgba(17,24,39,0.70);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.optClose:hover {
  background: rgba(17,24,39,0.08);
}

.optBody {
  position: relative;
  padding: 12px 16px 16px 16px;
}

.optRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.optDir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,0.10);
  background: rgba(255,255,255,0.70);
}

.optDirText {
  font-weight: 900;
}

.optDirArrow {
  flex: 0 0 auto;
}

.optLabel {
  font-size: 12px;
  color: var(--text-muted);
}

.optValue {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.optSectionTitle {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.optExpiryGrid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.optExpiryBtn {
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.82);
  border-radius: 12px;
  padding: 10px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform 0.05s ease, border-color 120ms ease, background 120ms ease;
}

.optExpiryBtn:hover {
  border-color: rgba(17,24,39,0.18);
  background: rgba(255,255,255,0.92);
}

.optExpiryBtn:active {
  transform: translateY(1px);
}

.optExpirySec {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.optExpiryPct {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.optExpiryBtnActive {
  border-color: rgba(17,24,39,0.18);
  background: rgba(17,24,39,0.03);
}

.optField {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.optMetaCards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.optMetaCard {
  border: 1px solid rgba(17,24,39,0.08);
  background: rgba(255,255,255,0.78);
  border-radius: 14px;
  padding: 10px 12px;
}

.optMetaCardLabel {
  font-size: 12px;
  color: var(--text-muted);
}

.optMetaCardValue {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .optMetaCards {
    grid-template-columns: 1fr;
  }
}

.optInput {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  outline: none;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.optMeta {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.optMetaItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.optMetaItem strong {
  color: var(--text);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.optWarn {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #b91c1c;
}

.optActions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.optBtn {
  height: 44px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.optBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.optBtnGhost {
  background: linear-gradient(180deg, #f1f3f6, #d7dbe1);
  color: rgba(17,24,39,0.72);
  border: 1px solid rgba(17,24,39,0.10);
}

.optBtnGhost:hover {
  background: linear-gradient(180deg, #eef1f5, #cfd4dd);
}

.optBtnPrimary {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 10px 22px rgba(17,24,39,0.10);
}

.optBtnPrimaryDisabled {
  opacity: 0.55;
  color: rgba(255,255,255,0.92) !important;
  text-shadow: none;
  box-shadow: none;
  border: 1px solid rgba(17,24,39,0.08);
}

.optBtnPrimaryDisabled.optUp {
  opacity: 1;
  background: linear-gradient(180deg, #9ae8c7, #5bd8a9) !important;
  color: rgba(255,255,255,0.96) !important;
}

.optBtnPrimaryDisabled.optDown {
  opacity: 1;
  background: linear-gradient(180deg, #ffb1c2, #ff7ea0) !important;
  color: rgba(255,255,255,0.96) !important;
}

.optUp {
  color: #16c784;
}

.optDown {
  color: #ea3943;
}

.optBtnPrimary.optUp {
  background: linear-gradient(180deg, #2fd18b, #11a96a);
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.optBtnPrimary.optDown {
  background: linear-gradient(180deg, #ff6b8a, #ff3c74);
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.optExpiryBtnActive.optUp {
  border-color: rgba(22,199,132,0.40);
  background: rgba(22,199,132,0.10);
}

.optExpiryBtnActive.optDown {
  border-color: rgba(234,57,67,0.40);
  background: rgba(234,57,67,0.10);
}

@media (max-width: 420px) {
  .optExpiryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.footerNote {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.exScreen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* iOS安全区域适配 */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* iOS全局防回弹 */
html, body {
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

.exContent {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 74px;
  scroll-behavior: smooth;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  -webkit-overscroll-behavior: none;
}

.exHome {
  padding: 0;
  background: #ffffff;
  min-height: 100%;
}

[data-theme="dark"] .exHome {
  background: var(--bg);
}

.mkPage {
  padding: 12px 12px 16px 12px;
  background: var(--bg);
  min-height: 100%;
  transition: background-color 0.3s ease;
}

.mkTopTitle {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 6px 0 10px 0;
}

.mkSearchWrap {
  height: 40px;
  border-radius: 20px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  margin-bottom: 10px;
}

.mkSearchIcon {
  color: var(--muted);
  font-size: 14px;
}

.mkSearch {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  width: 100%;
}

.mkTabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.mkTab {
  border: none;
  background: transparent;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.mkTab:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .mkTab:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mkTabActive {
  color: var(--text);
  background: rgba(37, 99, 235, 0.08);
  border-bottom: none;
}

[data-theme="dark"] .mkTabActive {
  background: rgba(59, 130, 246, 0.15);
}

.mkTable {
  border-top: none;
  overflow-x: auto;
}

.mkHead {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1fr 56px;
  gap: 12px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
}

.mkRow {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1fr 56px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: none;
  min-width: 0;
  transition: background 0.15s ease;
}

.mkRow:hover {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .mkRow:hover {
  background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 900px) {
  .mkHead,
  .mkRow {
    min-width: 430px;
  }
}

.mkLoading {
  padding: 14px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.mkCol {
  min-width: 0;
}

.mkHead .mkColCoin {
  padding-left: 68px;
}

.mkColPrice {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.mkRow .mkColPrice {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

[data-theme="dark"] .mkRow .mkColPrice {
  color: var(--text);
}

.mkColPct {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 800;
}

.mkColOp {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mkColOp .mkBtn {
  min-width: 56px;
}

.mkCoin {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mkFavBtn {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.mkFavBtn:hover {
  background: rgba(17, 24, 39, 0.05);
}

.mkFavActive:hover {
  background: rgba(245, 158, 11, 0.12);
}

.mkEmpty {
  padding: 16px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.mkIconWrap {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.mkIcon {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.mkIconFallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  font-weight: 900;
  font-size: 13px;
}

.mkNames {
  min-width: 0;
}

.mkSym {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.mkPair {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mkBtn {
  border: none;
  border-radius: 10px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mkBtnPrimary {
  min-width: 44px;
}

@media (max-width: 520px) {
  .mkTable {
    overflow-x: hidden;
  }

  .mkHead {
    grid-template-columns: 1.4fr 1.1fr 1fr 48px;
    gap: 8px;
    min-width: 0;
    font-size: 11px;
  }

  .mkRow {
    grid-template-columns: 1.4fr 1.1fr 1fr 48px;
    gap: 8px;
    min-width: 0;
  }

  .mkColPrice,
  .mkColPct {
    font-size: 12px;
  }

  .mkColOp {
    justify-content: flex-end;
  }

  .mkBtn {
    height: 26px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 11px;
  }

  .mkColOp .mkBtn {
    min-width: 48px;
    padding: 0 6px;
  }

  .mkPair {
    display: none;
  }

  .mkIconWrap {
    width: 26px;
    height: 26px;
  }

  .mkIcon {
    width: 26px;
    height: 26px;
  }

  .mkFavBtn {
    width: 20px;
    height: 20px;
    border-radius: 7px;
  }

  .mkHead .mkColCoin {
    padding-left: 56px;
  }
}

.mkBtnGhost {
  background: var(--bg-secondary);
  color: var(--text);
}

.mkBtnPrimary {
  background: #e5e7eb;
  color: #374151;
}

.mkBtnPrimary:hover {
  background: #d1d5db;
}

[data-theme="dark"] .mkBtnPrimary {
  background: #374151;
  color: #e5e7eb;
}

[data-theme="dark"] .mkBtnPrimary:hover {
  background: #4b5563;
}

.mkPager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 6px 0;
}

.mkPgBtn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.mkPgBtnDisabled {
  opacity: 0.45;
  cursor: default;
}

.mkPgNum {
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.mkPgNumActive {
  background: #2563eb;
  color: #ffffff;
}

.mkPgEll {
  color: var(--text-muted);
  font-weight: 800;
  padding: 0 2px;
}

.exHero {
  width: calc(100% - 32px);
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  margin: 8px 16px 0 16px;
  position: relative;
}

.exHeroOverlay {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.exHeroOverlayCrystal {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  max-width: 55%;
}

.exHeroOverlayChelsea {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  max-width: 45%;
}

.exHeroOverlayShow {
  opacity: 1;
}

.exHeroBrand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 26px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.exHeroBrandB {
  color: rgba(255, 255, 255, 0.95);
}

.exHeroBrandX {
  color: rgba(255, 255, 255, 0.95);
}

.exHeroBrandSub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.80);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.exHeroCrystalTitle {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.exHeroCrystalSub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.exHeroChelseaTitle {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.exHeroChelseaSub {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  white-space: pre-line;
}

.exHeroTrack {
  height: 100%;
  display: flex;
  transition: transform 320ms ease;
}

.exHeroMedia {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex: 0 0 100%;
}

.exHeroDots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.exHeroDot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  padding: 0;
}

.exHeroDotActive {
  width: 16px;
  background: rgba(255,255,255,0.95);
}

.exTopRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

[data-theme="dark"] .exTopRow {
  background: var(--bg-card);
}

.exAvatarBtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.exAvatarMark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.exSearchWrap {
  height: 36px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  flex: 1;
  max-width: 280px;
}

.exSearchIcon {
  color: var(--muted);
  font-size: 13px;
}

.exSearch {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  width: 100%;
}

.exHomeSearch {
  position: relative;
  flex: 1;
}

.exHomeSearchDrop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(40px + 8px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 9999;
  max-height: 400px;
  overflow-y: auto;
}

.exHomeSearchEmpty {
  padding: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.exHomeSearchItem {
  width: 100%;
  border: none;
  background: var(--bg-card);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.exHomeSearchItem:last-child {
  border-bottom: none;
}

.exHomeSearchItem:hover {
  background: rgba(17, 24, 39, 0.04);
}

.exHomeSearchLeft {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.exHomeSearchIcon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.exHomeSearchIconImg {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.exHomeSearchIconFallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  font-weight: 900;
  font-size: 13px;
}

.exHomeSearchNames {
  min-width: 0;
}

.exHomeSearchSym {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exHomeSearchRight {
  text-align: right;
  flex-shrink: 0;
  min-width: 80px;
}

.exHomeSearchPrice {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.exHomeSearchPct {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
}

.exTopIcons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.exIconBtn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exIconBtn .material-icons-round {
  font-size: 22px;
  color: #6b7280;
  transition: color 0.2s;
}

.exIconBtn:hover .material-icons-round {
  color: #2563eb;
}

.exIconBtnBell {
  position: relative;
}

.exDot {
  position: absolute;
  top: 0px;
  right: -2px;
  font-size: 10px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.exAsset {
  margin: 0;
  padding: 20px 16px 16px 16px;
  background: #ffffff;
}

[data-theme="dark"] .exAsset {
  background: var(--bg);
}

.exAssetTitleRow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.exAssetTitle {
  font-size: 14px;
  font-weight: 400;
  color: #666666;
}

[data-theme="dark"] .exAssetTitle {
  color: var(--text-tertiary);
}

.exEyeBtn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #999999;
  display: flex;
  align-items: center;
  font-size: 16px;
}

.exAssetValue {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  color: #1a1a1a;
  line-height: 1.1;
}

.exAssetUnit {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-left: 6px;
  letter-spacing: 0;
}

[data-theme="dark"] .exAssetUnit {
  color: var(--text-tertiary);
}

[data-theme="dark"] .exAssetValue {
  color: var(--text);
}

.exAssetFiat {
  margin-top: 6px;
  font-size: 14px;
  color: #999999;
}

.exPromoCard {
  margin: 12px 16px 0 16px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .exPromoCard {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.exContractLeft {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.exContractIcon {
  font-size: 22px;
  color: #374151;
}

[data-theme="dark"] .exContractIcon {
  color: var(--text-secondary);
}

.exContractTitle {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
}

[data-theme="dark"] .exContractTitle {
  color: var(--text);
}

.exContractSub {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .exContractSub {
  color: var(--text-tertiary);
}


.exContractBadge {
  font-size: 11px;
  font-weight: 700;
  color: #065f46;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 2px 8px;
  border-radius: 999px;
}

[data-theme="dark"] .exContractBadge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.28);
}

.exContractRight {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 1;
}

.exContractCta {
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
}

.exContractArrow {
  font-size: 16px;
  color: #10b981;
}

.exPromoIcon {
  font-size: 28px;
  color: #10b981;
  flex-shrink: 0;
}

.exPromoLeft {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.exPromoTitle {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

[data-theme="dark"] .exPromoTitle {
  color: var(--text);
}

.exPromoSub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

[data-theme="dark"] .exPromoSub {
  color: var(--text-tertiary);
}

.exPromoRight {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #10b981;
  font-size: 14px;
  font-weight: 500;
}

.exQuickGrid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 18px 16px 22px 16px;
  background: transparent;
  margin: 4px 0 0 0;
}

[data-theme="dark"] .exQuickGrid {
  background: transparent;
}

.exQuickItem {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  cursor: pointer;
  min-width: 60px;
}

.exQuickItem:active {
  opacity: 0.7;
}

.exQuickIcon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid #e6e8ee;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

[data-theme="dark"] .exQuickIcon {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.exQuickIconSvg {
  display: block;
  font-size: 22px;
  color: #111827;
}

[data-theme="dark"] .exQuickIconSvg {
  color: var(--text-secondary);
}

.exQuickLabel {
  font-size: 12px;
  font-weight: 500;
  color: #666666;
  white-space: nowrap;
}

[data-theme="dark"] .exQuickLabel {
  color: var(--text-secondary);
}

.exSecTabs {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 16px 0 16px;
  background: #ffffff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .exSecTabs {
  background: var(--bg-card);
}

.exSecTab {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #999999;
  padding: 0 0 12px 0;
  position: relative;
  white-space: nowrap;
}

[data-theme="dark"] .exSecTab {
  color: var(--text-tertiary);
}

.exSecTab:hover {
  color: #1a1a1a;
}

[data-theme="dark"] .exSecTab:hover {
  color: var(--text);
}

.exSecTabActive {
  color: #1a1a1a;
  font-weight: 600;
}

[data-theme="dark"] .exSecTabActive {
  color: var(--text);
}

.exSecTabActive::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
}

[data-theme="dark"] .exSecTabActive::after {
  background: var(--text);
}

.exMarketList {
  padding: 0 16px 16px 16px;
  background: #ffffff;
}

[data-theme="dark"] .exMarketList {
  background: var(--bg-card);
}

.exMarketMoreWrap {
  padding: 12px 0 4px 0;
  display: flex;
  justify-content: center;
}

.exMarketMoreBtn {
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.exMarketMoreBtn:hover {
  background: var(--panel);
}

.exSec {
  margin-top: 12px;
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.exSecTitle {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--text);
}

.exSecTitleDot {
  color: #2563eb;
}

.exSecList {
  margin-top: 14px;
  display: grid;
  gap: 18px;
}

.exSecItem {
  text-align: center;
}

.exSecIcon {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.exSecIconSvg {
  display: block;
}

.exSecItemTitle {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.exSecItemDesc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-tertiary);
  white-space: pre-line;
}

.exEvt {
  margin-top: 12px;
}

.exEvtTitle {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.18;
}

.exEvtTitleDot {
  color: #2563eb;
}

.exEvtList {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.exEvtCard {
  border-radius: 18px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 10px 26px rgba(17,24,39,0.12);
}

.exEvtImg {
  height: 190px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.exEvtOverlay {
  width: 100%;
  padding: 14px 14px;
}

.exEvtCardTitle {
  color: rgba(255,255,255,0.96);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  white-space: pre-line;
  text-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

@media (max-width: 420px) {
  .exEvtImg {
    height: 170px;
  }
  .exEvtCardTitle {
    font-size: 18px;
  }
}

.exPartner {
  margin-top: 18px;
  padding-top: 6px;
}

.exPartnerTitle {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--text);
}

.exPartnerTitleDot {
  color: #2563eb;
}

.exPartnerDesc {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-tertiary);
  white-space: pre-line;
}

.exPartnerBanner {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  height: 190px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 26px rgba(17,24,39,0.12);
}

.exPartnerMarquee {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.exPartnerMarquee::before,
.exPartnerMarquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  pointer-events: none;
  z-index: 2;
}

.exPartnerMarquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
}

.exPartnerMarquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,1), rgba(255,255,255,0));
}

.exPartnerMarqueeTrack {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px 18px;
  width: max-content;
  animation: exPartnerMarquee 18s linear infinite;
}

.exPartnerLogo {
  height: 22px;
  width: auto;
  opacity: 0.92;
  filter: grayscale(1);
}

@keyframes exPartnerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 420px) {
  .exPartnerTitle {
    font-size: 22px;
  }
  .exPartnerBanner {
    height: 170px;
  }
  .exPartnerMarqueeTrack {
    gap: 20px;
    padding: 10px 14px;
  }
  .exPartnerLogo {
    height: 18px;
  }
}

.exFooter {
  margin-top: 18px;
  padding: 14px 0 12px 0;
}

.exFooterBrand {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.exFooterCopy {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.exFooterSocial {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.exFooterSocialBtn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #111827;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}

.exFooterSocialBtn:hover {
  background: #0b1220;
}

.exFooterSocialSvg {
  display: block;
}

.exMarketRow {
  display: grid;
  grid-template-columns: 2.2fr 1.5fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 6px;
  border-bottom: none;
  border-radius: 10px;
  cursor: pointer;
}

[data-theme="dark"] .exMarketRow {
  border-bottom-color: var(--border);
}

.exMarketRow:last-child {
  border-bottom: none;
}

.exMarketRow:hover {
  background: rgba(17, 24, 39, 0.04);
}

[data-theme="dark"] .exMarketRow:hover {
  background: rgba(255, 255, 255, 0.06);
}

.exMarketRow:active {
  opacity: 0.7;
}

.exMarketLeft {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.exMarketIcon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid #eef0f3;
  display: grid;
  place-items: center;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

[data-theme="dark"] .exMarketIcon {
  background: var(--bg-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

.exMarketIconImg {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.exMarketIconFallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  font-weight: 900;
  font-size: 14px;
}

.exMarketNames {
  min-width: 0;
}

.exMarketPair {
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1.1;
}

.exMarketBase {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .exMarketBase {
  color: var(--text);
}

.exMarketSlash {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  margin: 0 1px;
}

[data-theme="dark"] .exMarketSlash {
  color: var(--text-tertiary);
}

.exMarketQuote {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
}

[data-theme="dark"] .exMarketQuote {
  color: var(--text-tertiary);
}

.exMarketSym {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

[data-theme="dark"] .exMarketSym {
  color: var(--text);
}

.exMarketSub {
  margin-top: 3px;
  font-size: 12px;
  color: #999999;
}

.exMarketSparkWrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.exSpark {
  display: block;
}

.exSparkPath {
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: none;
}

.exSparkVisible .exSparkPath {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.exSparkUp {
  stroke: rgba(16, 185, 129, 0.9);
}

.exSparkDown {
  stroke: rgba(239, 68, 68, 0.9);
}

@keyframes exSparkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

[data-theme="dark"] .exMarketSub {
  color: var(--text-muted);
}

.exMarketMid {
  text-align: center;
}

.exMarketPrice {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

[data-theme="dark"] .exMarketPrice {
  color: var(--text);
}

.exMarketFiat {
  margin-top: 2px;
  font-size: 11px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

[data-theme="dark"] .exMarketFiat {
  color: var(--text-muted);
}

.exMarketPct {
  min-width: 0;
  text-align: right;
  padding: 0;
  border-radius: 0;
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #111827;
  background: transparent;
}

.exMarketPct.pctUp {
  color: #10b981;
  background: transparent;
}

.exMarketPct.pctDown {
  color: #ef4444;
  background: transparent;
}

[data-theme="dark"] .exMarketPct {
  color: var(--text);
}

[data-theme="dark"] .exMarketPct.pctUp {
  color: #34d399;
  background: transparent;
}

[data-theme="dark"] .exMarketPct.pctDown {
  color: #f87171;
  background: transparent;
}

.exBottomNav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px)) 6px;
  transition: background-color 0.3s ease;
  z-index: 100;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.exBottomTab {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--muted);
  letter-spacing: 0.1px;
  transition: color 140ms ease;
}

.exBottomTabActive {
  color: var(--blue);
}

.exBottomIcon {
  width: 22px;
  height: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.exBottomLabel {
  font-size: 11px;
  font-weight: 800;
}

.exPage {
  padding: 10px 12px 14px 12px;
}

.exPageTop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 10px 0;
}

.exPageBack {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 14px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exPageBack .material-icons-round {
  font-size: 20px;
}

.exPageTitle {
  font-size: 16px;
  font-weight: 900;
}

.exPageBody {
  padding-top: 6px;
}

.exDepTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2px 0 12px 0;
}

.exDepTab {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  color: var(--muted);
}

.exDepTabActive {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}

.exDepCard {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  transition: background-color 0.3s ease;
}

.exDepCardInner {
  background: rgba(255,255,255,0.92);
}

.exDepTitle {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.exDepSub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.exDepForm {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  position: relative;
}

.exDepField {
  display: grid;
  gap: 6px;
}

.exDepLabel {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.exDepInput,
.exDepSelect {
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.exDepAddr {
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--bg-secondary);
  padding: 10px 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  color: var(--text);
}

.exDepActions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.exDepBtn {
  height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
}

.exDepBtnPrimary {
  border-color: rgba(37, 99, 235, 0.35);
  background: #ffffff;
  color: #2563eb;
}

.exDepBtnGhost {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
}

.exDepKv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.exDepKv:last-child {
  border-bottom: none;
}

.exDepKv span {
  display: inline-block;
  min-width: 74px;
  color: var(--muted);
  font-size: 12px;
  margin-right: 8px;
}

.exDepKv strong {
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.exDepMiniBtn {
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  color: rgba(17, 24, 39, 0.78);
}

.exDepHint {
  margin-top: 12px;
  padding: 10px 0;
  white-space: pre-line;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.exDepMetaRow {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.exDepMeta {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.92);
}

.exDepMetaK {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 800;
}

.exDepMetaV {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.exDepQrRow {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: start;
}

.exDepQr {
  width: 108px;
  height: 108px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #ffffff;
}

.exDepAddrBox {
  min-width: 0;
}

.exDepRecCard {
  margin-top: 6px;
}

.exDepRecList {
  margin-top: 10px;
  display: grid;
}

.exDepRecRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.exDepRecRow:last-child {
  border-bottom: none;
}

.exDepRecLeft {
  min-width: 0;
}

.exDepRecMain {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exDepRecSub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exDepRecEmpty {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.exDepBadge {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
}

.exDepBadgeOk {
  background: #16c784;
}

.exDepBadgeMid {
  background: #2563eb;
}

.exDepBadgeWait {
  background: rgba(17, 24, 39, 0.55);
}

.exDepBadgeErr {
  background: #ea3943;
}

.exCashBankRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.exCashBankInfo {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.02);
  padding: 10px 12px;
  min-width: 0;
}

.exCashBankMain {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exCashBankSub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exCashBankEmpty {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 2px dashed rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  background: rgba(17, 24, 39, 0.02);
}

.exModalMask {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 12px;
  z-index: 99999;
  -webkit-transform: none !important;
  transform: none !important;
  isolation: isolate;
}

.exModalSheet {
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  border-radius: 18px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.exModalHead {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.exModalTitle {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.exModalClose {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(17, 24, 39, 0.02);
  cursor: pointer;
  font-size: 14px;
}

.exModalBody {
  padding: 12px 14px 14px 14px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.exModalActions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.exBankList {
  display: grid;
  gap: 10px;
}

.exBankItem {
  border: 1px solid rgba(0,0,0,0.10);
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.exBankItemActive {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.10);
}

.exBankItemLeft {
  min-width: 0;
}

.exBankItemMain {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exBankItemSub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exBankItemMark {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.exBankEmpty {
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.exIceHero {
  border-radius: 0;
  border: none;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none;
  padding: 22px 16px 10px 16px;
  overflow: hidden;
  position: relative;
}

.exIceHero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none !important;
  pointer-events: none;
}

.exIceHeroTop {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 18px;
  align-items: center;
}

.exIceHeroLeft {
  min-width: 0;
}

.exIceK {
  font-size: 14px;
  font-weight: 1000;
  color: var(--text);
}

.exIceV {
  margin-top: 6px;
  font-size: 44px;
  font-weight: 1100;
  letter-spacing: -0.8px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.exIceSub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.exIceHeroRight {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  background: transparent;
}

.exIceCrystalStage {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

.exIceCrystalChroma {
  position: relative;
  width: 100%;
  height: 100%;
}

.exIceCrystalCanvas {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 70%;
  animation: exIceFloat 3.6s ease-in-out infinite;
}

.exIceCrystalSrc {
  position: absolute;
  left: -99999px;
  top: -99999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.exIceCrystalStage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0) 48%, rgba(255,255,255,0.92) 70%, rgba(255,255,255,1) 84%);
  pointer-events: none;
  z-index: 2;
}

.exIceHeroRight::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: none;
  filter: blur(0.2px);
  pointer-events: none;
}

.exIceHeroRight::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: none;
  pointer-events: none;
  z-index: 2;
}

.exIceCrystal {
  width: 170px;
  height: auto;
  transform-origin: 50% 70%;
  animation: exIceFloat 3.6s ease-in-out infinite;
}

.exIceCrystalVideo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  transform-origin: 50% 70%;
  animation: exIceFloat 3.6s ease-in-out infinite;
  border-radius: 0;
  background: transparent;
  position: relative;
  z-index: 1;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 54%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(circle at 50% 42%, #000 54%, rgba(0,0,0,0) 80%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mix-blend-mode: normal;
  filter: saturate(1.02) contrast(1.02);
}

@keyframes exIceFloat {
  0% {
    transform: translateY(0) rotate(-1.2deg);
    filter: drop-shadow(0 18px 26px rgba(37, 99, 235, 0.22));
  }
  50% {
    transform: translateY(-8px) rotate(1.2deg);
    filter: drop-shadow(0 26px 34px rgba(37, 99, 235, 0.28));
  }
  100% {
    transform: translateY(0) rotate(-1.2deg);
    filter: drop-shadow(0 18px 26px rgba(37, 99, 235, 0.22));
  }
}

.exIceHint {
  position: relative;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.06);
  color: rgba(37, 99, 235, 0.98);
  font-size: 12px;
  line-height: 1.55;
}

.exIceHintItem + .exIceHintItem {
  margin-top: 4px;
}

.exIceQuickGrid {
  position: relative;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.exIceQuickCard {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(17, 24, 39, 0.02);
  padding: 12px;
}

.exIceQuickTitle {
  font-size: 13px;
  font-weight: 1000;
  color: var(--text);
}

.exIceQuickValue {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 1100;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.exIceQuickMeta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.exIcePlus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.exIceBtn {
  margin-top: 10px;
  height: 38px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #ffffff;
  font-size: 13px;
  font-weight: 1000;
  cursor: pointer;
}

.exIceBtnPrimary {
  border-color: rgba(37, 99, 235, 0.30);
  background: #2563eb;
  color: #ffffff;
}

.exIceBtnGhost {
  border-color: rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  color: rgba(17, 24, 39, 0.80);
}

.exIceSectionTitle {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 1100;
  color: var(--text);
  padding: 2px 2px;
}

.exIceTaskCard {
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  padding: 14px;
}

.exIceTaskTop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.exIceTaskClock {
  min-width: 76px;
  height: 32px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(17, 24, 39, 0.03);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 1100;
  color: rgba(17, 24, 39, 0.78);
  font-variant-numeric: tabular-nums;
}

.exIceTaskTitle {
  font-size: 13px;
  font-weight: 1100;
  color: var(--text);
}

.exIceTaskSub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.exIceTaskArt {
  display: grid;
  place-items: center;
}

.exIceChest {
  width: 86px;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(37, 99, 235, 0.16));
}

.exIceChestImg {
  width: 86px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(37, 99, 235, 0.16));
}

.exIceProgressRow {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.exIceProgressTrack {
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  overflow: hidden;
  position: relative;
}

.exIceProgressFill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 1), rgba(34, 197, 94, 0.92));
  position: relative;
}

.exIceProgressFill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.40), transparent);
  transform: translateX(-60%);
  animation: exIceShimmer 1.6s ease-in-out infinite;
}

@keyframes exIceShimmer {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(120%); }
}

.exIceProgressMeta {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 1000;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.exIceTaskActions {
  margin-top: 12px;
}

.exIceLink {
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 1100;
  cursor: pointer;
  padding: 0;
}

.exWelWrap {
  display: grid;
  gap: 12px;
}

.exBingxWrap {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  background: #ffffff;
}

.exBingxFrame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

.exBingxBack {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(240, 240, 240, 0.92);
  color: rgba(0, 0, 0, 0.82);
  font-size: 18px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0,0,0,0.10);
}

.exWelHero {
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  background:
    radial-gradient(700px 260px at 12% 0%, rgba(37, 99, 235, 0.24), transparent 60%),
    radial-gradient(620px 260px at 92% 0%, rgba(34, 197, 94, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
  box-shadow: 0 10px 28px rgba(0,0,0,0.07);
  padding: 16px 14px;
}

.exWelHeroTag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.exWelHeroTitle {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 1000;
  color: var(--text);
  letter-spacing: 0.2px;
}

.exWelHeroSub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.55;
}

.exWelHeroActions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.exWelBtn {
  height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.10);
  background: #ffffff;
  color: rgba(17, 24, 39, 0.86);
}

.exWelBtnPrimary {
  border-color: rgba(37, 99, 235, 0.30);
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #ffffff;
}

.exWelBtnGhost {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
}

.exWelBtnDisabled,
.exWelBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.exWelStats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.exWelStatCard {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 12px 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.exWelStatLabel {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 900;
}

.exWelStatValue {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 1000;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.exWelCard {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.exWelCardTitle {
  font-size: 14px;
  font-weight: 1000;
  color: var(--text);
}

.exWelSteps {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.exWelStep {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
}

.exWelStepNo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(0,0,0,0.08);
  color: rgba(17, 24, 39, 0.78);
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.exWelStepTitle {
  font-size: 13px;
  font-weight: 1000;
  color: var(--text);
}

.exWelStepSub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.55;
}

.exWelRedeemGrid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.exWelRedeemItem {
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(17, 24, 39, 0.02);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.exWelRedeemTop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.exWelRedeemTitle {
  font-size: 13px;
  font-weight: 1000;
  color: var(--text);
}

.exWelRedeemCost {
  font-size: 12px;
  font-weight: 1000;
  color: rgba(17, 24, 39, 0.68);
  font-variant-numeric: tabular-nums;
}

.exWelRedeemSub {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.55;
}

.exWelRecordList {
  margin-top: 10px;
  display: grid;
}

.exWelRecordRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.exWelRecordRow:last-child {
  border-bottom: none;
}

.exWelRecordMain {
  min-width: 0;
}

.exWelRecordTitle {
  font-size: 13px;
  font-weight: 1000;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exWelRecordMeta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.exWelRecordStatus {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(17, 24, 39, 0.04);
  color: rgba(17, 24, 39, 0.78);
  white-space: nowrap;
}

.exWelEmpty {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.exWelFaq {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.exWelFaqItem {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.02);
  padding: 10px 12px;
}

.exWelFaqItem summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 1000;
  color: var(--text);
}

.exWelFaqBody {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.exWelFootNote {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.exAssetCard {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  margin-bottom: 12px;
}

.exAssetCardValue {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.exPosList {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.exPosRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mdScreen {
  position: fixed;
  inset: 0;
  padding: 12px;
  overflow: hidden;
}

.mdLight {
  background: var(--bg-primary);
  color: var(--text-primary);
  --green: #27AD75;
  --red: #F0616D;
  --muted: var(--text-secondary);
  --border: var(--border-color);
  --shadow: none;
}

.mdLight.mdScreen {
  padding: 0;
}

.mdLight .panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.mdScreen .panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mdBody {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.mdTopBar {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mdBackBtn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
}

.mdTopMid {
  min-width: 0;
}

.mdSymbol {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.mdPriceMain {
  margin-top: 2px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}



.mdPriceSub {
  margin-top: 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mdHiLo {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.mdHiLo span {
  font-size: 12px;
  color: var(--muted);
  margin-right: 8px;
}

.mdHiLo strong {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mdTfBar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 10px 0;
  -webkit-overflow-scrolling: touch;
  flex: 0 0 auto;
}

.mdScroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.mdTfBtn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 8px;
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.mdTfBtnActive {
  color: #2563eb;
  font-weight: 800;
}

/* 夜间模式下分时图按钮样式 */
html[data-theme="dark"] .mdTfBtn {
  color: rgba(255,255,255,0.6);
}

html[data-theme="dark"] .mdTfBtnActive {
  color: #60a5fa;
}

.mdChartWrap {
  border-radius: 14px;
  border: none;
  overflow: hidden;
  background: var(--bg-card);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mdLight .mdChartWrap {
  border-radius: 0;
}

.mdChartMain {
  position: relative;
  flex: 1;
  min-height: 280px;
}

.mdChartVol {
  position: relative;
  flex: 0 0 100px;
  min-height: 100px;
  border-top: 1px solid var(--border-color);
}

.mdIndicatorBar {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 0 0 0;
  -webkit-overflow-scrolling: touch;
  flex: 0 0 auto;
}

.mdIndicatorDock {
  flex: 0 0 auto;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.mdLight .mdIndicatorDock {
  margin-top: 0;
  padding: 6px 12px 0 12px;
}

.mdIndBtn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 8px;
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.mdIndBtnActive {
  color: #2563eb;
  font-weight: 800;
}

.mdIndBtnDisabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mdIndicatorPanel {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-card);
  flex: 0 0 auto;
}

.mdLight .mdIndicatorPanel {
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.mdIndicatorTitle {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
}

.mdChartMacd {
  position: relative;
  height: 160px;
}

.mdBottomBar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 0 0 0;
  margin-top: 12px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  backdrop-filter: none;
}

.mdLight .mdBottomBar {
  margin-top: 0;
  padding: 10px 12px 12px 12px;
}

.mdBottomBtn {
  appearance: none;
  border: none;
  color: #ffffff;
  padding: 14px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.mdBottomBuy {
  background: var(--green);
}

.mdBottomSell {
  background: var(--red);
}

@media (min-width: 900px) {
  .mainGrid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
  .kpiRow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .table th:nth-child(3), .table td:nth-child(3) {
    display: none;
  }
  .chartPanelBody {
    height: 300px;
  }
  .chartPanelBodySm {
    height: 140px;
  }

  .exWelStats {
    grid-template-columns: 1fr;
  }

  .exIceHeroTop {
    grid-template-columns: 1fr 150px;
  }

  .exIceV {
    font-size: 40px;
  }

  .exIceCrystal {
    width: 146px;
  }

  .exIceCrystalVideo {
    width: 146px;
    height: 146px;
  }

  .exIceCrystalStage {
    width: 160px;
    height: 160px;
  }

  .exIceQuickGrid {
    grid-template-columns: 1fr;
  }

  .exIceTaskTop {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .exIceTaskArt {
    grid-column: 2;
    justify-self: end;
    margin-top: -8px;
  }

  .mdTopBar {
    grid-template-columns: 44px 1fr auto;
    gap: 8px;
  }

  .mdPriceMain {
    font-size: 26px;
  }

  .mdHiLo {
    gap: 4px;
  }

  .mdHiLo span {
    margin-right: 6px;
  }

  .mdChartMain {
    flex: 1;
    min-height: 0;
  }

  .mdChartVol {
    flex: 0 0 110px;
  }
}

/* 资产页面标题样式 */
.bxAssetsTitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* 统一返回按钮样式 */
.kycBackBtn,
.bxLoginBack,
.exBingxBack {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.kycBackBtn .material-icons-round,
.bxLoginBack .material-icons-round,
.exBingxBack .material-icons-round {
  font-size: 20px;
}

/* K线图页面返回按钮 */
.mdBackBtn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.mdBackBtn .material-icons-round {
  font-size: 20px;
}

/* ========== 保护元素隔离规则 ========== */
/* 只保护冰晶视频不受全局动画影响 */
.exProtectedVideo,
.exProtectedVideo *,
.exProtectedVideo video {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* 福利页面动画 */
.exWelfarePage {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 行情页面动画 */
.mdScreen, .exMarketPage, .exMarketsPage, .mkPage {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 资产页面动画 */
.bxAssetsPage {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bxAssetsHeader {
  animation: fadeInDown 0.35s ease-out both;
}

.bxAssetsCard {
  animation: fadeInUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 100ms;
}

.bxAssetsList, .bxAssetsListItem {
  animation: fadeInUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bxAssetsListItem:nth-child(1) { animation-delay: 50ms; }
.bxAssetsListItem:nth-child(2) { animation-delay: 80ms; }
.bxAssetsListItem:nth-child(3) { animation-delay: 110ms; }
.bxAssetsListItem:nth-child(4) { animation-delay: 140ms; }
.bxAssetsListItem:nth-child(5) { animation-delay: 170ms; }

/* 通知页面动画 */
.exNotificationPage, .exNotificationsPage, .exNotifications {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.exNotificationItem {
  animation: fadeInLeft 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background-color 0.15s ease !important;
}

.exNotificationItem:nth-child(1) { animation-delay: 0ms; }
.exNotificationItem:nth-child(2) { animation-delay: 40ms; }
.exNotificationItem:nth-child(3) { animation-delay: 80ms; }
.exNotificationItem:nth-child(4) { animation-delay: 120ms; }
.exNotificationItem:nth-child(5) { animation-delay: 160ms; }

/* KYC身份验证页面动画 */
.exKYCPage {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 银行卡管理页面动画 */
.exBankCardPage {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 卡券中心页面动画 */
.exCouponsPage {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 安全设置页面动画 */
.exSecurityPage {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 偏好设定页面动画 */
.exPreferencePage {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 关于我们页面动画 */
.exAboutPage {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 个人中心页面动画 */
.exProfilePage {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 合约页面动画 */
.exFuturesPage {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ========== 全方位动画效果系统 ========== */

/* 基础动画定义 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* 页面切换动画 */
.exPage, .exHome, .exContent {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 页面头部动画 */
.exPageTop, .exHomeTop, .exTop {
  animation: fadeInDown 0.35s ease-out both;
}

/* 底部导航动画 */
.exBottomNav {
  animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.exBottomNavItem {
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.exBottomNavItem:active {
  transform: scale(0.85) !important;
}

.exBottomNavItem.active {
  animation: pulse 0.3s ease-out;
}

.exBottomNavIcon {
  transition: transform 0.2s ease;
}

.exBottomNavItem:active .exBottomNavIcon {
  transform: scale(0.8);
}

/* 所有按钮点击效果 */
button:not(.exProtectedVideo *), 
[role="button"]:not(.exProtectedVideo *),
.exIconBtn, 
.exBtn {
  transition: all 0.15s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

button:not(.exProtectedVideo *):active, 
[role="button"]:not(.exProtectedVideo *):active,
.exIconBtn:active, 
.exBtn:active {
  transform: scale(0.92) !important;
  opacity: 0.85 !important;
}

/* 卡片动画 */
.exCard, .exMarketCard, .exAssetCard {
  animation: fadeInUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.exCard:active, .exMarketCard:active, .exAssetCard:active {
  transform: scale(0.98) !important;
}

/* 列表项逐个显示动画 */
.exListItem, .exMenuItem {
  animation: fadeInUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.exListItem:nth-child(1), .exMenuItem:nth-child(1) { animation-delay: 0ms; }
.exListItem:nth-child(2), .exMenuItem:nth-child(2) { animation-delay: 30ms; }
.exListItem:nth-child(3), .exMenuItem:nth-child(3) { animation-delay: 60ms; }
.exListItem:nth-child(4), .exMenuItem:nth-child(4) { animation-delay: 90ms; }
.exListItem:nth-child(5), .exMenuItem:nth-child(5) { animation-delay: 120ms; }
.exListItem:nth-child(6), .exMenuItem:nth-child(6) { animation-delay: 150ms; }
.exListItem:nth-child(7), .exMenuItem:nth-child(7) { animation-delay: 180ms; }
.exListItem:nth-child(8), .exMenuItem:nth-child(8) { animation-delay: 210ms; }

/* 个人中心菜单项动画 */
.exProfileMenuItem {
  animation: fadeInLeft 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background-color 0.15s ease, transform 0.15s ease !important;
}

.exProfileMenuItem:nth-child(1) { animation-delay: 50ms; }
.exProfileMenuItem:nth-child(2) { animation-delay: 80ms; }
.exProfileMenuItem:nth-child(3) { animation-delay: 110ms; }
.exProfileMenuItem:nth-child(4) { animation-delay: 140ms; }
.exProfileMenuItem:nth-child(5) { animation-delay: 170ms; }
.exProfileMenuItem:nth-child(6) { animation-delay: 200ms; }

.exProfileMenuItem:active {
  transform: translateX(4px) !important;
  background-color: rgba(0, 71, 255, 0.08) !important;
}

/* 头像动画 */
.exAvatar, .exUserAvatar {
  animation: scaleIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 余额/数字显示动画 */
.exBalance, .exAmount {
  animation: fadeIn 0.5s ease-out both;
  animation-delay: 150ms;
}

/* KYC/安全页面动画 */
.exKYC, .exSecurity, [class*="KYC"], [class*="Security"] {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

/* 帮助/关于页面动画 */
.exHelp, .exAbout, [class*="Help"], [class*="About"] {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

/* 登录/注册页面动画 */
.bxLogin, .bxRegister, .exLogin, .exRegister {
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.bxLoginBtn, .exLoginBtn {
  transition: all 0.2s ease !important;
}

.bxLoginBtn:active, .exLoginBtn:active {
  transform: scale(0.96) !important;
}

/* 语言选择动画 */
.exLangOption {
  animation: fadeInRight 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background-color 0.15s ease !important;
}

.exLangOption:nth-child(1) { animation-delay: 0ms; }
.exLangOption:nth-child(2) { animation-delay: 40ms; }
.exLangOption:nth-child(3) { animation-delay: 80ms; }
.exLangOption:nth-child(4) { animation-delay: 120ms; }
.exLangOption:nth-child(5) { animation-delay: 160ms; }

/* Toast/提示动画 */
.exToast, [class*="Toast"] {
  animation: bounceIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

/* 模态框/弹窗动画 */
.exModal, .exPopup, .exDialog {
  animation: scaleIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.exModalOverlay, .exPopupOverlay {
  animation: fadeIn 0.2s ease-out both;
}

/* 输入框聚焦效果 */
input:focus, textarea:focus, select:focus {
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* 标签页切换动画 */
.exTab {
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.exTab.active {
  animation: pulse 0.2s ease-out;
}

/* 行情页面币种列表动画 */
.exCoinRow {
  animation: fadeInUp 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background-color 0.15s ease !important;
}

.exCoinRow:nth-child(1) { animation-delay: 0ms; }
.exCoinRow:nth-child(2) { animation-delay: 25ms; }
.exCoinRow:nth-child(3) { animation-delay: 50ms; }
.exCoinRow:nth-child(4) { animation-delay: 75ms; }
.exCoinRow:nth-child(5) { animation-delay: 100ms; }
.exCoinRow:nth-child(6) { animation-delay: 125ms; }
.exCoinRow:nth-child(7) { animation-delay: 150ms; }
.exCoinRow:nth-child(8) { animation-delay: 175ms; }
.exCoinRow:nth-child(9) { animation-delay: 200ms; }
.exCoinRow:nth-child(10) { animation-delay: 225ms; }

.exCoinRow:active {
  background-color: rgba(0, 71, 255, 0.05) !important;
}

/* 快捷操作按钮动画 */
.exQuickBtn {
  animation: scaleIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.15s ease !important;
}

.exQuickBtn:nth-child(1) { animation-delay: 100ms; }
.exQuickBtn:nth-child(2) { animation-delay: 150ms; }
.exQuickBtn:nth-child(3) { animation-delay: 200ms; }
.exQuickBtn:nth-child(4) { animation-delay: 250ms; }

.exQuickBtn:active {
  transform: scale(0.9) !important;
}

/* 图表canvas动画效果 - 排除受保护的元素 */
canvas:not(.exProtectedVideo canvas) {
  animation: fadeIn 0.6s ease-out both;
}

/* ========== 夜间模式隔离样式 ========== */
/* K线图页面夜间模式 - 使用html属性选择器确保优先级 */
html[data-theme="dark"] .mdScreen,
html[data-theme="dark"] .mdLight,
html[data-theme="dark"] .mdScreen.mdLight {
  background: #0d0d0d !important;
  color: #f5f5f5 !important;
}

html[data-theme="dark"] .mdChartWrap,
html[data-theme="dark"] .mdBottomBar,
html[data-theme="dark"] .mdIndicatorPanel,
html[data-theme="dark"] .mdBody {
  background: #1a1a1a !important;
}

html[data-theme="dark"] .mdTopBar,
html[data-theme="dark"] .mdSymbol,
html[data-theme="dark"] .mdPriceMain {
  color: #f5f5f5 !important;
}

html[data-theme="dark"] .mdChartVol,
html[data-theme="dark"] .mdIndicatorDock {
  border-top-color: #2a2a2a !important;
}

/* 资产页面夜间模式 */
html[data-theme="dark"] .bxAssetsPage {
  background: #0d0d0d !important;
}

html[data-theme="dark"] .bxAssetsCard,
html[data-theme="dark"] .bxAssetsTrend,
html[data-theme="dark"] .bxAssetsHeader {
  background: #1a1a1a !important;
}

html[data-theme="dark"] .bxAssetsList {
  background: #1a1a1a !important;
}

html[data-theme="dark"] .bxAssetsListItem {
  background: transparent !important;
  border-bottom-color: #2a2a2a !important;
}

html[data-theme="dark"] .bxAssetsLabel,
html[data-theme="dark"] .bxAssetsValue,
html[data-theme="dark"] .bxAssetsCoin,
html[data-theme="dark"] .bxAssetsAmount {
  color: #f5f5f5 !important;
}

html[data-theme="dark"] .bxAssetsSubtext {
  color: #888 !important;
}

/* 福利页面冰晶视频 - 在夜间模式添加发光效果 */
html[data-theme="dark"] .exProtectedVideo video {
  filter: drop-shadow(0 0 20px rgba(100, 150, 255, 0.5)) !important;
}

/* 订单确认弹窗夜间模式 */
html[data-theme="dark"] .optModal {
  background: #1a1a1a !important;
  border-color: #333 !important;
}

html[data-theme="dark"] .optModal::before {
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(37, 99, 235, 0.1), transparent 62%),
    radial-gradient(900px 520px at 100% 10%, rgba(22, 199, 132, 0.08), transparent 62%),
    radial-gradient(900px 520px at 50% 120%, rgba(234, 57, 67, 0.06), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) !important;
}

html[data-theme="dark"] .optModal::after {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.022) 0 1px, transparent 1px) !important;
  mix-blend-mode: screen !important;
}

html[data-theme="dark"] .optHeader {
  border-bottom-color: #333 !important;
}

html[data-theme="dark"] .optClose {
  background: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.7) !important;
}

html[data-theme="dark"] .optClose:hover {
  background: rgba(255,255,255,0.15) !important;
}

html[data-theme="dark"] .optDir {
  background: rgba(0,0,0,0.3) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

html[data-theme="dark"] .optExpiryBtn {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

html[data-theme="dark"] .optExpiryBtn:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
}

html[data-theme="dark"] .optExpiryBtnActive {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.25) !important;
}

html[data-theme="dark"] .optInput {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #f5f5f5 !important;
}

html[data-theme="dark"] .optMetaCard {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* 语言选择菜单夜间模式 */
html[data-theme="dark"] .exLangMenu {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
}

html[data-theme="dark"] .exLangMenu button {
  color: #f5f5f5 !important;
}

html[data-theme="dark"] .exLangMenu button:hover {
  background: rgba(255,255,255,0.1) !important;
}

/* 银行卡弹窗夜间模式 */
html[data-theme="dark"] .exModalSheet {
  background: #1a1a1a !important;
  border-color: #333 !important;
}

html[data-theme="dark"] .exModalHead {
  border-bottom-color: #333 !important;
}

html[data-theme="dark"] .exModalClose {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: #f5f5f5 !important;
}

html[data-theme="dark"] .exBankItem {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

html[data-theme="dark"] .exBankItemActive {
  background: rgba(59,130,246,0.2) !important;
  border-color: #3b82f6 !important;
}

html[data-theme="dark"] .exDepInput {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #f5f5f5 !important;
}

html[data-theme="dark"] .exDepLabel {
  color: #999 !important;
}
