/* =====================================================================
   欧易 OKX 官网模板 — 页面级样式 pages.css
   ---------------------------------------------------------------------
   首页 / 下载页 / 行情页 / 交易页 / 学院 / 帮助中心
   ===================================================================== */

/* =====================================================================
   A. 首页
   ===================================================================== */

/* ---------- A1. Hero ---------- */
.hero { position: relative; padding: 88px 0 64px; background-image: var(--grad-hero); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 20%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.hero-copy .lead { margin-top: 22px; font-size: 17px; color: var(--text-2); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 13px; color: var(--text-3); }
.hero-note svg { width: 15px; height: 15px; color: var(--up); }

.hero-metrics { display: flex; gap: 40px; margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-metrics .hm b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hero-metrics .hm span { font-size: 12.5px; color: var(--text-3); }

/* 右侧手机样机 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #2a3140, #0d1117 55%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-2), 0 0 80px rgba(42, 107, 255, .18);
}
.phone-screen { border-radius: 32px; background: #05070b; overflow: hidden; border: 1px solid rgba(255, 255, 255, .07); }
.phone-notch {
  width: 96px; height: 22px; margin: 0 auto; border-radius: 0 0 14px 14px;
  background: #000; border: 1px solid rgba(255, 255, 255, .07); border-top: none;
}
.phone-app { padding: 16px 16px 20px; }
.pa-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-3); }
.pa-pair { display: flex; align-items: center; gap: 8px; padding: 12px 0 4px; }
.pa-pair .coin-ico { width: 26px; height: 26px; font-size: 10px; }
.pa-pair b { font-size: 14px; }
.pa-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pa-chg { font-size: 12px; font-weight: 600; }
.pa-chart { margin: 12px 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); }
.pa-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pa-btns .btn { height: 36px; font-size: 12.5px; border-radius: 9px; }
.pa-watch { display: flex; justify-content: space-between; padding: 10px 0 2px; font-size: 11.5px; color: var(--text-2); border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 14px; }

/* 漂浮卡片 */
.float-card {
  position: absolute; z-index: 2;
  background: rgba(17, 21, 27, .92); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 13px 16px; box-shadow: var(--shadow-1);
  animation: floaty 5s ease-in-out infinite;
}
.float-card .fc-t { font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
.float-card .fc-v { font-size: 16px; font-weight: 800; }
.float-card .fc-s { font-size: 11px; font-weight: 600; }
.fc-a { top: 54px; left: -12px; }
.fc-b { bottom: 90px; right: -18px; animation-delay: 1.6s; }
.fc-c { bottom: -8px; left: 8px; animation-delay: .8s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- A2. 行情跑马灯 ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-1); overflow: hidden; }
.marquee-track { display: flex; gap: 14px; padding: 16px 0; width: max-content; animation: scrollX 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2);
  font-size: 13px; white-space: nowrap;
}
.mq-item b { font-weight: 700; }
.mq-item .mq-price { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.mq-item .mq-chg { font-size: 12px; font-weight: 700; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- A3. 信任 / 数据统计 ---------- */
.stats-band { padding: 56px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  text-align: center; padding: 26px 16px; border-radius: var(--radius-l);
  background: var(--bg-1); border: 1px solid var(--line);
}
.stat b { display: block; font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-3); }

/* ---------- A4. 产品矩阵 ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  position: relative; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 32px 28px; transition: transform .32s var(--ease), border-color .32s, box-shadow .32s;
}
.product-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 220px at var(--mx, 50%) var(--my, 0%), rgba(42, 107, 255, .16), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.product-card:hover::before { opacity: 1; }
.pc-ico {
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--cyan); border: 1px solid var(--line);
}
.pc-ico svg { width: 24px; height: 24px; }
.product-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.product-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.pc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 13.5px; font-weight: 600; color: var(--cyan); }
.pc-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.product-card:hover .pc-link svg { transform: translateX(4px); }

/* ---------- A5. 行情预览 ---------- */
.preview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.preview-head h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.spark-cell canvas { width: 110px; height: 34px; margin-left: auto; }

/* ---------- A6. 安全 ---------- */
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sec-card { text-align: left; padding: 28px 24px; }
.sec-card .pc-ico { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px; }
.sec-card h3 { font-size: 16px; margin-bottom: 8px; }
.sec-card p { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ---------- A7. 下载引导 ---------- */
.dl-band {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(42, 107, 255, .12), rgba(0, 212, 255, .05) 45%, var(--bg-1));
  padding: 56px; position: relative; overflow: hidden;
}
.dl-band h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.dl-band p { margin-top: 14px; color: var(--text-2); max-width: 480px; }
.dl-btns { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.dl-qr {
  justify-self: center; text-align: center;
  padding: 22px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-l);
}
.dl-qr canvas { width: 168px; height: 168px; border-radius: 10px; background: #fff; padding: 10px; }
.dl-qr span { display: block; margin-top: 12px; font-size: 12.5px; color: var(--text-3); }

/* ---------- A8. 双 CTA ---------- */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-card {
  border-radius: var(--radius-xl); padding: 44px 40px;
  border: 1px solid var(--line); background: var(--bg-2);
  position: relative; overflow: hidden;
}
.cta-card--grad { background: linear-gradient(135deg, #2a6bff 0%, #0a83ff 55%, #00d4ff 130%); border: none; }
.cta-card--grad h3, .cta-card--grad p { color: #fff; }
.cta-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.cta-card p { margin: 12px 0 26px; font-size: 14px; color: var(--text-2); max-width: 380px; }
.cta-card--grad p { color: rgba(255, 255, 255, .85); }

/* =====================================================================
   B. 下载页
   ===================================================================== */
.dl-hero { padding: 72px 0 20px; text-align: center; }
.dl-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.dl-hero p { margin-top: 16px; color: var(--text-2); font-size: 16px; }

.detect-bar {
  display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin: 30px auto 0; padding: 14px 22px; width: fit-content; max-width: 100%;
  border-radius: 999px; border: 1px solid rgba(42, 107, 255, .35); background: var(--primary-soft);
  font-size: 13.5px;
}
.detect-bar svg { width: 16px; height: 16px; color: var(--cyan); }

/* 移动端下载卡 */
.mobile-dl { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center; margin-top: 48px;
  border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 44px 48px; background: var(--bg-1); }
.mobile-dl h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.mobile-dl .md-desc { margin: 12px 0 26px; color: var(--text-2); max-width: 520px; font-size: 14.5px; }
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn {
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 20px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--bg-3);
  transition: all .22s var(--ease);
}
.store-btn:hover { border-color: var(--cyan); transform: translateY(-2px); }
.store-btn svg { width: 24px; height: 24px; }
.store-btn .sb-t { font-size: 11px; color: var(--text-3); line-height: 1.2; }
.store-btn .sb-n { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.md-qr { text-align: center; }
.md-qr canvas { width: 176px; height: 176px; background: #fff; border-radius: 12px; padding: 10px; }
.md-qr span { display: block; margin-top: 10px; font-size: 12px; color: var(--text-3); }

/* 桌面平台卡 */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.platform-card { display: flex; flex-direction: column; padding: 30px 28px; }
.platform-card .pf-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pf-ico {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text-1);
}
.pf-ico svg { width: 26px; height: 26px; }
.platform-card h3 { font-size: 17px; font-weight: 700; }
.platform-card .pf-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.pf-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 4px 0 22px; font-size: 12.5px; }
.pf-meta div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.pf-meta span { color: var(--text-3); }
.pf-meta b { color: var(--text-2); font-weight: 600; font-family: var(--mono); font-size: 12px; }
.platform-card .btn { margin-top: auto; }
.platform-card .pf-req { margin-top: 12px; font-size: 12px; color: var(--text-3); text-align: center; }

/* 安装步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 6px; }
.step-card { position: relative; padding: 30px 26px; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff; font-size: 16px; font-weight: 800;
}
.step-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.step-connector { display: none; }

/* 系统要求表 */
.req-table td, .req-table th { font-size: 13px; }
.req-table td:first-child { color: var(--text-2); }

/* =====================================================================
   C. 行情页
   ===================================================================== */
.mk-hero { padding: 56px 0 8px; }
.mk-hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.mk-hero p { margin-top: 12px; color: var(--text-2); }

.mk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 34px 0 40px; }
.mk-stat { padding: 20px 22px; border-radius: var(--radius-l); background: var(--bg-1); border: 1px solid var(--line); }
.mk-stat span { font-size: 12.5px; color: var(--text-3); }
.mk-stat b { display: block; margin-top: 6px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; font-family: var(--mono); }

.mk-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.mk-search { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
.mk-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); }
.mk-search input { height: 44px; padding-left: 42px; background: var(--bg-2); border-radius: 11px; border: 1px solid var(--line); width: 100%; font-size: 13.5px; }
.mk-search input:focus { border-color: var(--primary); }
.mk-live { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12.5px; color: var(--text-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(14, 203, 129, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(14, 203, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); } }

.coin-cell { display: flex; align-items: center; gap: 12px; }
.coin-cell .cc-t b { display: block; font-size: 14px; font-weight: 700; }
.coin-cell .cc-t span { font-size: 12px; color: var(--text-3); }

.star-btn { color: var(--text-3); padding: 4px; }
.star-btn svg { width: 16px; height: 16px; }
.star-btn.on { color: var(--gold); }

/* 价格跳动动画 */
@keyframes flashUp { 0% { background: rgba(14, 203, 129, .22); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(246, 70, 93, .22); } 100% { background: transparent; } }
.flash-up { animation: flashUp .9s var(--ease); }
.flash-down { animation: flashDown .9s var(--ease); }

/* 币种详情抽屉 */
.drawer-mask {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transition: all .3s var(--ease);
}
.drawer-mask.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: 420px; max-width: 92vw;
  background: var(--bg-1); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform .36s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head .dr-close { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.drawer-head .dr-close:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.drawer-body { padding: 24px; overflow-y: auto; flex: 1; }
.dr-price { display: flex; align-items: baseline; gap: 14px; }
.dr-price b { font-size: 30px; font-weight: 800; font-family: var(--mono); letter-spacing: -.02em; }
.dr-chart { margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--bg-2); }
.dr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.dr-grid div { padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.dr-grid span { display: block; font-size: 11.5px; color: var(--text-3); }
.dr-grid b { font-size: 13.5px; font-family: var(--mono); font-weight: 600; }
.dr-about { margin-top: 22px; font-size: 13px; color: var(--text-2); line-height: 1.8; }
.dr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }

/* =====================================================================
   D. 交易页
   ===================================================================== */
.trade-top { display: flex; align-items: center; gap: 26px; padding: 20px 0; flex-wrap: wrap; }
.tt-pair { display: flex; align-items: center; gap: 12px; }
.tt-pair .coin-ico { width: 38px; height: 38px; font-size: 13px; }
.tt-pair .tt-name b { font-size: 19px; font-weight: 800; display: block; line-height: 1.2; }
.tt-pair .tt-name span { font-size: 12px; color: var(--text-3); }
.tt-price { display: flex; align-items: baseline; gap: 12px; }
.tt-price b { font-size: 26px; font-weight: 800; font-family: var(--mono); letter-spacing: -.02em; }
.tt-price .tt-chg { font-size: 13px; font-weight: 700; }
.tt-stats { display: flex; gap: 30px; margin-left: auto; flex-wrap: wrap; }
.tt-stats div span { display: block; font-size: 11.5px; color: var(--text-3); }
.tt-stats div b { font-size: 13px; font-family: var(--mono); font-weight: 600; }

.trade-layout { display: grid; grid-template-columns: 280px 1fr 320px; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.trade-panel { background: var(--bg-1); display: flex; flex-direction: column; min-width: 0; }
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tp-head h3 { font-size: 14px; font-weight: 700; }
.tp-head .tp-sub { font-size: 11.5px; color: var(--text-3); }

/* 订单簿 */
.ob-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 8px 16px; font-size: 11.5px; color: var(--text-3); }
.ob-cols span:nth-child(2) { text-align: center; }
.ob-cols span:nth-child(3) { text-align: right; }
.ob-row { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 6px 16px; font-size: 12.5px; font-family: var(--mono); cursor: pointer; }
.ob-row:hover { background: rgba(255, 255, 255, .05); }
.ob-row .ob-bar { position: absolute; top: 0; bottom: 0; right: 0; width: 0; transition: width .35s var(--ease); }
.ob-row.ask .ob-bar { background: rgba(246, 70, 93, .11); }
.ob-row.bid .ob-bar { background: rgba(14, 203, 129, .11); }
.ob-row span { position: relative; z-index: 1; }
.ob-row .ob-p { font-weight: 600; }
.ob-row.ask .ob-p { color: var(--down); }
.ob-row.bid .ob-p { color: var(--up); }
.ob-row .ob-amt { color: var(--text-2); text-align: center; }
.ob-row .ob-sum { color: var(--text-3); text-align: right; }
.ob-mid { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0; }
.ob-mid b { font-size: 18px; font-weight: 800; font-family: var(--mono); }
.ob-mid span { font-size: 12px; font-family: var(--mono); }

/* 图表区 */
.chart-panel { background: var(--bg-1); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.chart-toolbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chart-toolbar .ct-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.ct-chip { padding: 5px 11px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.ct-chip:hover { color: var(--text-1); background: rgba(255, 255, 255, .06); }
.ct-chip.active { color: var(--cyan); background: rgba(0, 212, 255, .1); }
.chart-main { position: relative; flex: 1; min-height: 420px; }
.chart-main canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-legend { position: absolute; top: 10px; left: 14px; z-index: 2; display: flex; gap: 14px; font-size: 11.5px; font-family: var(--mono); color: var(--text-3); }
.chart-legend b { font-weight: 600; }
.chart-cross { position: absolute; z-index: 2; display: none; background: rgba(11, 14, 17, .94); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; font-size: 11.5px; font-family: var(--mono); line-height: 1.8; pointer-events: none; }

/* 下单面板 */
.order-side { background: var(--bg-1); border-left: 1px solid var(--line); }
.os-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.os-tab { padding: 13px 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--text-2); border-bottom: 2px solid transparent; transition: all .2s; }
.os-tab.buy.active { color: var(--up); border-bottom-color: var(--up); }
.os-tab.sell.active { color: var(--down); border-bottom-color: var(--down); }
.os-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.os-type { display: flex; gap: 14px; font-size: 12.5px; }
.os-type span { color: var(--text-3); cursor: pointer; font-weight: 600; }
.os-type span.active { color: var(--text-1); }
.os-balance { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.os-input { position: relative; }
.os-input input { width: 100%; height: 44px; padding: 0 58px 0 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: var(--mono); }
.os-input input:focus { border-color: var(--primary); }
.os-input .os-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-3); font-weight: 600; }
.os-slider { position: relative; height: 26px; display: flex; align-items: center; }
.os-slider input[type="range"] { -webkit-appearance: none; width: 100%; height: 3px; background: var(--bg-4); border-radius: 2px; outline: none; }
.os-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: pointer; }
.os-pcts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.os-pcts span { text-align: center; padding: 6px 0; font-size: 12px; color: var(--text-3); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-family: var(--mono); }
.os-pcts span:hover, .os-pcts span.active { color: var(--text-1); border-color: var(--line-strong); background: var(--bg-3); }
.os-info { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; }
.os-info div { display: flex; justify-content: space-between; color: var(--text-3); }
.os-info b { color: var(--text-2); font-weight: 600; font-family: var(--mono); }

/* 底部委托区 */
.orders-area { margin-top: 22px; }
.orders-table td, .orders-table th { font-size: 13px; }
.cancel-link { color: var(--cyan); font-size: 12.5px; cursor: pointer; }
.cancel-link:hover { text-decoration: underline; }

/* =====================================================================
   F. 新手学院
   ===================================================================== */
.learn-hero { padding: 72px 0 40px; text-align: center; position: relative; background-image: var(--grad-hero); }
.learn-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.learn-hero p { margin: 16px auto 0; color: var(--text-2); max-width: 560px; }
.learn-cats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cat-chip { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: all .2s; }
.cat-chip:hover { border-color: var(--line-strong); color: var(--text-1); }
.cat-chip.active { background: #fff; color: #0b0e11; font-weight: 700; border-color: #fff; }

.feature-article {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--bg-2); margin-bottom: 28px;
}
.fa-cover { position: relative; min-height: 320px; background: linear-gradient(135deg, #12233f, #0a3d5c 60%, #0d6e6e); display: flex; align-items: center; justify-content: center; }
.fa-cover .fa-art { width: 74%; max-width: 380px; }
.fa-body { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.fa-body .badge { margin-bottom: 18px; }
.fa-body h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.fa-body p { margin: 16px 0 26px; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.fa-meta { display: flex; align-items: center; gap: 18px; font-size: 12.5px; color: var(--text-3); margin-bottom: 26px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { overflow: hidden; padding: 0; cursor: pointer; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-5px); }
.ac-cover { height: 150px; display: flex; align-items: center; justify-content: center; position: relative; }
.ac-cover svg { width: 56px; height: 56px; opacity: .9; }
.ac-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ac-body .badge { align-self: flex-start; margin-bottom: 12px; }
.ac-body h3 { font-size: 15.5px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.ac-body p { font-size: 13px; color: var(--text-2); line-height: 1.7; flex: 1; }
.ac-meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 12px; color: var(--text-3); }

/* 术语速查 */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gl-item { padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.gl-item .gl-t { font-size: 14.5px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.gl-item .gl-t span { font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 6px; }
.gl-item p { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.gl-ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--bg-3); color: var(--cyan); font-weight: 800; font-size: 15px; }

/* =====================================================================
   G. 帮助中心
   ===================================================================== */
.sup-hero { padding: 80px 0 50px; text-align: center; background-image: var(--grad-hero); }
.sup-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.sup-search { position: relative; max-width: 620px; margin: 34px auto 0; }
.sup-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--text-3); }
.sup-search input {
  width: 100%; height: 60px; padding: 0 24px 0 54px; border-radius: 16px;
  background: var(--bg-2); border: 1px solid var(--line-strong); font-size: 15px;
}
.sup-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(42, 107, 255, .15); }
.sup-hot { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; font-size: 12.5px; color: var(--text-3); }
.sup-hot a { padding: 5px 13px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); }
.sup-hot a:hover { color: var(--text-1); border-color: var(--line-strong); }

.sup-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sup-cat { padding: 28px 26px; cursor: pointer; }
.sup-cat .pc-ico { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px; }
.sup-cat h3 { font-size: 16px; margin-bottom: 8px; }
.sup-cat p { font-size: 13px; color: var(--text-2); }
.sup-cat .pc-link { margin-top: 14px; }

.sup-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { text-align: center; padding: 34px 24px; }
.contact-card .pc-ico { margin: 0 auto 18px; }
.contact-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.contact-card p { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }

.status-line { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 16px; border-radius: 12px; background: rgba(14, 203, 129, .08); border: 1px solid rgba(14, 203, 129, .25); font-size: 13.5px; color: var(--up); }

/* =====================================================================
   H. 页面级响应式
   ===================================================================== */
@media (max-width: 1120px) {
  .trade-layout { grid-template-columns: 250px 1fr 300px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .sup-cats, .sup-contact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .hero { padding: 60px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { order: 2; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero-metrics { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-band { grid-template-columns: 1fr; padding: 40px 32px; text-align: center; }
  .dl-band p { margin-left: auto; margin-right: auto; }
  .dl-btns { justify-content: center; }
  .cta-grid { grid-template-columns: 1fr; }
  .mobile-dl { grid-template-columns: 1fr; text-align: center; padding: 36px 28px; }
  .mobile-dl .md-desc { margin-left: auto; margin-right: auto; }
  .store-btns { justify-content: center; }
  .md-qr { display: none; }
  .platform-grid, .steps { grid-template-columns: 1fr; }
  .mk-stats { grid-template-columns: repeat(2, 1fr); }
  .trade-layout { grid-template-columns: 1fr; }
  .trade-panel { border: none; }
  .order-side { border-left: none; border-top: 1px solid var(--line); }
  .chart-panel { border-left: none; border-right: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .chart-main { min-height: 360px; }
  .tt-stats { margin-left: 0; width: 100%; justify-content: space-between; gap: 12px; }
  .feature-article { grid-template-columns: 1fr; }
  .fa-cover { min-height: 220px; }
  .fa-body { padding: 32px 28px; }
  .glossary { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .products-grid, .security-grid, .article-grid, .sup-cats, .sup-contact { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 20px 12px; }
  .hero-metrics { gap: 24px; flex-wrap: wrap; }
  .float-card { display: none; }
  .phone { width: 260px; }
  .mk-stats { grid-template-columns: 1fr 1fr; }
  .mk-toolbar { flex-direction: column; align-items: stretch; }
  .mk-search { max-width: none; }
  .mk-live { margin-left: 0; justify-content: flex-end; }
  .tt-stats { display: grid; grid-template-columns: repeat(2, 1fr); }
  .trade-top { gap: 14px; }
  .cta-card { padding: 32px 26px; }
  .mobile-dl { padding: 30px 22px; }
  .sup-search input { height: 54px; font-size: 14px; }
}
