/* ==========================================================
   bic-binance.com.cn — 币安官网风格 · 深色黑金
   原创设计：深色黑金底 + 金色徽标，大圆角卡片、居中对称布局
   ========================================================== */
:root {
  --bg: #181A20;
  --surface: #1E2329;
  --primary: #F0B90B;
  --primary-deep: #FCD535;
  --primary-soft: rgba(240, 185, 11, .12);
  --primary-softer: rgba(240, 185, 11, .06);
  --text: #EAECEF;
  --muted: #848E9C;
  --line: #2B3139;
  --up: #0ECB81;
  --up-soft: rgba(14, 203, 129, .12);
  --down: #F6465D;
  --down-soft: rgba(246, 70, 93, .12);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 34px rgba(0, 0, 0, .35);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, .45);
  --font-num: "DIN Alternate", "Bahnschrift", "Segoe UI", Consolas, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: rgba(240, 185, 11, .18); }

/* ---------- 导航（浮动胶囊） ---------- */
.nav-wrap { position: sticky; top: 14px; z-index: 100; padding: 0 24px; }
.nav {
  max-width: 1180px; margin: 0 auto;
  height: 60px; padding: 0 12px 0 20px;
  background: rgba(24, 26, 32, .86);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(43, 49, 57, .9);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(140deg, #FCD535, #F0B90B);
  color: #181A20; display: grid; place-items: center;
  font-size: 15px; font-weight: 900;
  box-shadow: 0 6px 16px rgba(240, 185, 11, .35);
}
.nav-links { display: flex; gap: 4px; margin: 0 auto; background: var(--primary-softer); border-radius: 999px; padding: 5px; }
.nav-links a {
  padding: 8px 20px; border-radius: 999px; font-size: 14px; color: var(--muted);
  transition: all .22s; font-weight: 500;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { background: #2B3139; color: var(--primary); font-weight: 600; box-shadow: 0 3px 12px rgba(240, 185, 11, .16); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; border-radius: 999px;
  font-size: 14px; font-weight: 600; padding: 11px 24px;
  transition: all .22s; font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, #FCD535, #F0B90B); color: #181A20; box-shadow: 0 8px 22px rgba(240, 185, 11, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(240, 185, 11, .38); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: rgba(240, 185, 11, .14); }
.btn-ghost { background: #1E2329; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ---------- Hero 居中 ---------- */
.hero { position: relative; padding: 84px 24px 64px; text-align: center; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.hero::before { width: 460px; height: 460px; background: rgba(240, 185, 11, .12); top: -160px; left: -120px; }
.hero::after { width: 420px; height: 420px; background: rgba(14, 203, 129, .09); top: -80px; right: -140px; }
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1E2329; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 18px; font-size: 13px; color: var(--muted);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); margin-bottom: 26px;
}
.hero-badge b { color: var(--primary); }
.hero h1 { font-size: 52px; line-height: 1.16; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(100deg, #F0B90B, #FCD535 50%, #FFE28A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 44px; }
.hero-pills { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-pill {
  background: #1E2329; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 22px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.hero-pill b { color: var(--text); font-family: var(--font-num); font-size: 15px; }
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }

/* ---------- 行情卡片网格 ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 56px 24px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--primary); background: var(--primary-soft); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 14px; text-transform: uppercase;
}
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.section-head p { color: var(--muted); }

.coin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.coin-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; transition: all .25s; cursor: pointer;
}
.coin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(240, 185, 11, .3); }
.coin-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.coin-ic {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px;
}
.coin-top b { font-size: 15px; }
.coin-top span { display: block; font-size: 12px; color: var(--muted); }
.coin-price { font-family: var(--font-num); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.coin-chg { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 12px; font-family: var(--font-num); }
.coin-chg.up { color: var(--up); background: var(--up-soft); }
.coin-chg.down { color: var(--down); background: var(--down-soft); }
.coin-spark { margin-top: 14px; height: 40px; }

/* ---------- 功能（左右交替） ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature-row.flip .feature-visual { order: -1; }
.feature-copy .kicker-sm { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.feature-copy h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.3px; }
.feature-copy p { color: var(--muted); margin-bottom: 18px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--text); font-size: 14px; }
.feature-list .tick {
  width: 20px; height: 20px; flex: none; border-radius: 50%; margin-top: 2px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-size: 11px; font-weight: 900;
}
.feature-visual {
  background: linear-gradient(150deg, #2B3139, #1E2329 55%, #181A20);
  border-radius: var(--radius-lg); padding: 34px; min-height: 300px;
  display: grid; place-items: center; border: 1px solid rgba(240, 185, 11, .1);
}
.mini-panel { background: #181A20; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; width: 100%; max-width: 380px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.mini-row:last-child { border-bottom: none; }
.mini-row .val { font-family: var(--font-num); font-weight: 700; }

/* ---------- 行情表（列表行式） ---------- */
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.list-toolbar { display: flex; gap: 12px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 9px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; transition: all .2s;
}
.search:focus-within { border-color: var(--primary); background: #181A20; box-shadow: 0 0 0 4px rgba(240, 185, 11, .08); }
.search input { flex: 1; border: none; background: none; outline: none; font-size: 13.5px; color: var(--text); font-family: inherit; }
.seg { display: flex; background: var(--bg); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button {
  border: none; background: none; padding: 8px 18px; border-radius: 999px;
  font-size: 13px; color: var(--muted); cursor: pointer; font-family: inherit; transition: all .2s;
}
.seg button.active { background: #2B3139; color: var(--primary); font-weight: 700; box-shadow: 0 3px 10px rgba(240, 185, 11, .15); }
.row-list { padding: 6px 0; }
.mrow {
  display: grid; grid-template-columns: 2.2fr 1.4fr 1fr 1.2fr 1.4fr 90px;
  gap: 12px; align-items: center; padding: 14px 22px;
  transition: background .18s; cursor: pointer;
}
.mrow:hover { background: var(--primary-softer); }
.mrow.head { font-size: 12px; color: var(--muted); padding: 10px 22px; cursor: default; border-bottom: 1px solid var(--line); }
.mrow.head:hover { background: none; }
.mrow .coin-cell { display: flex; align-items: center; gap: 11px; }
.mrow .price { font-family: var(--font-num); font-weight: 700; text-align: right; }
.mrow .right { text-align: right; font-family: var(--font-num); color: var(--muted); }
.tag { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; font-family: var(--font-num); }
.tag.up { color: var(--up); background: var(--up-soft); }
.tag.down { color: var(--down); background: var(--down-soft); }
.row-cta { text-align: right; }

/* ---------- 数据横幅 ---------- */
.banner {
  max-width: 1180px; margin: 8px auto 0; padding: 0 24px;
}
.banner-inner {
  background: linear-gradient(120deg, #D9A400 0%, #F0B90B 48%, #FCD535 100%);
  border-radius: var(--radius-lg); padding: 46px 48px; color: #181A20;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  box-shadow: 0 24px 60px rgba(240, 185, 11, .35);
  position: relative; overflow: hidden;
}
.banner-inner::after {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(24, 26, 32, .14); right: -90px; top: -140px;
}
.banner-item b { display: block; font-size: 34px; font-family: var(--font-num); font-weight: 800; }
.banner-item span { font-size: 13px; opacity: .82; }

/* ---------- Hero 行情轮播卡（首页顶部） ---------- */
.ticker-strip {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.ticker-inner {
  background: #1E2329; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 18px 24px;
  display: flex; align-items: center; gap: 26px; overflow: hidden;
}
.ticker-label {
  flex: none; font-size: 12px; font-weight: 800; color: var(--primary);
  background: var(--primary-soft); padding: 6px 14px; border-radius: 999px;
}
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-track { display: flex; gap: 38px; width: max-content; animation: slide 36s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; white-space: nowrap; }
.tk .s { color: var(--muted); }
.tk .p { font-family: var(--font-num); font-weight: 700; }
.tk .up { color: var(--up); font-weight: 700; }
.tk .down { color: var(--down); font-weight: 700; }

/* ---------- 下载横幅 ---------- */
.dl-band {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.dl-band-inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 48px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
}
.dl-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.dl-band p { color: var(--muted); margin-bottom: 24px; }
.dl-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #2B3139; color: #EAECEF; border-radius: var(--radius); padding: 11px 20px;
  transition: transform .2s;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn small { display: block; font-size: 10px; opacity: .7; line-height: 1.2; }
.store-btn b { font-size: 14px; }
.dl-qr { text-align: center; }
.dl-qr .qr {
  width: 168px; height: 168px; background: #fff; border-radius: var(--radius);
  margin: 0 auto 12px; padding: 12px; box-shadow: var(--shadow-lg);
}
.dl-qr p { font-size: 12px; color: var(--muted); }

/* ---------- 页脚（居中） ---------- */
.footer { margin-top: 72px; background: #0B0E11; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 48px 24px 28px; text-align: center; }
.footer-links { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin: 22px 0 26px; }
.footer-links a { color: var(--muted); font-size: 13.5px; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 22px; line-height: 2; }

/* ---------- 页面头 ---------- */
.page-head { position: relative; text-align: center; padding: 56px 24px 30px; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 220px at 50% 0%, rgba(240, 185, 11, .09), transparent 70%);
}
.page-head h1 { position: relative; font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.page-head p { position: relative; color: var(--muted); }
.crumb { position: relative; display: inline-flex; gap: 8px; font-size: 12.5px; color: var(--muted); background: #1E2329; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; margin-bottom: 16px; }
.crumb a:hover { color: var(--primary); }

/* ---------- 交易页（两栏布局：图左 + 表单右） ---------- */
.trade-main { max-width: 1180px; margin: 24px auto 0; padding: 0 24px; display: grid; grid-template-columns: 1fr 350px; gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.card-title { padding: 16px 22px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.symbol-bar { display: flex; align-items: center; gap: 22px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.symbol-bar .big { font-family: var(--font-num); font-size: 28px; font-weight: 800; }
.symbol-bar .chg { font-family: var(--font-num); font-weight: 700; }
.meta-inline { display: flex; gap: 20px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.meta-inline b { color: var(--text); font-family: var(--font-num); font-weight: 600; }
#depthChart { width: 100%; display: block; }
.pill-tabs { display: flex; gap: 8px; padding: 14px 22px; flex-wrap: wrap; }
.pill-tabs button {
  border: 1px solid var(--line); background: #2B3139; border-radius: 999px;
  padding: 7px 18px; font-size: 13px; color: var(--muted); cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.pill-tabs button:hover { color: var(--primary); border-color: rgba(240, 185, 11, .4); }
.pill-tabs button.active { background: var(--primary); border-color: var(--primary); color: #181A20; font-weight: 600; box-shadow: 0 6px 16px rgba(240, 185, 11, .3); }
.coin-select-list { max-height: 420px; overflow-y: auto; }
.cs-item { display: flex; align-items: center; gap: 12px; padding: 12px 22px; cursor: pointer; transition: background .16s; }
.cs-item:hover { background: var(--primary-softer); }
.cs-item.active { background: var(--primary-soft); }
.cs-item .info { flex: 1; }
.cs-item .info b { font-size: 14px; display: block; }
.cs-item .info span { font-size: 12px; color: var(--muted); }
.cs-item .px { text-align: right; font-family: var(--font-num); font-weight: 700; font-size: 14px; }
.cs-item .pc { text-align: right; font-size: 12px; font-family: var(--font-num); font-weight: 700; }
.form-pad { padding: 20px 22px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 18px; }
.seg2 button {
  border: none; background: transparent; border-radius: 999px; padding: 10px;
  font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer;
  font-family: inherit; transition: all .2s;
}
.seg2 button.on-buy { background: var(--up); color: #fff; }
.seg2 button.on-sell { background: var(--down); color: #fff; }
.f-label { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.f-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 14px; transition: border-color .2s;
}
.f-box:focus-within { border-color: var(--primary); background: #181A20; }
.f-box input { flex: 1; border: none; background: none; outline: none; font-size: 15px; font-family: var(--font-num); font-weight: 600; color: var(--text); }
.f-box .suffix { color: var(--muted); font-size: 12.5px; }
.pct-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.pct-row button {
  border: 1px solid var(--line); background: #2B3139; border-radius: 999px; padding: 8px;
  font-size: 12.5px; color: var(--muted); cursor: pointer; font-family: inherit; transition: all .2s;
}
.pct-row button:hover { color: var(--primary); border-color: rgba(240, 185, 11, .4); }
.submit-btn {
  width: 100%; border: none; border-radius: 999px; padding: 14px;
  font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit;
  transition: all .2s; color: #fff;
}
.submit-btn.buy { background: linear-gradient(135deg, #1FD598, #0ECB81); box-shadow: 0 10px 24px rgba(14, 203, 129, .3); }
.submit-btn.sell { background: linear-gradient(135deg, #FF7285, #F6465D); box-shadow: 0 10px 24px rgba(246, 70, 93, .3); }
.submit-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }

/* ---------- 下载页 ---------- */
.dl-hero { max-width: 1180px; margin: 24px auto 0; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.dl-hero h2 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.dl-hero .lead { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.dl-points { display: grid; gap: 14px; margin-bottom: 30px; }
.dl-point { display: flex; gap: 14px; background: #1E2329; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.dl-point .ico {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
}
.dl-point b { display: block; margin-bottom: 1px; }
.dl-point p { font-size: 13px; color: var(--muted); }
.phone-stage {
  background: linear-gradient(150deg, #2B3139, #1E2329 55%, #181A20);
  border-radius: 28px; padding: 46px; display: grid; place-items: center;
  border: 1px solid rgba(240, 185, 11, .1); position: relative; overflow: hidden;
}
.phone-stage::before {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(240, 185, 11, .1); filter: blur(50px); top: -60px; right: -60px;
}
.phone {
  width: 240px; background: #0B0E11; border-radius: 34px; padding: 10px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55); position: relative;
}
.phone-screen { background: linear-gradient(175deg, #2B3139, #1E2329 76%, #181A20); border-radius: 26px; padding: 18px 14px; }
.phone .notch { width: 76px; height: 5px; background: rgba(11, 14, 17, .7); border-radius: 999px; margin: 0 auto 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .coin-grid { grid-template-columns: repeat(2, 1fr); }
  .trade-main { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.flip .feature-visual { order: 0; }
  .banner-inner { grid-template-columns: repeat(2, 1fr); }
  .dl-band-inner, .dl-hero { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 38px; }
  .mrow { grid-template-columns: 2fr 1.3fr 1fr 90px; }
  .mrow .hide-md { display: none; }
}
@media (max-width: 620px) {
  .coin-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .banner-inner { grid-template-columns: 1fr; padding: 34px 28px; }
  .mrow { grid-template-columns: 1.6fr 1fr 84px; padding: 12px 16px; }
  .mrow .hide-sm { display: none; }
}
