/* ==========================================================================
   币安注册返佣指南（第三方资讯站）全局样式
   ========================================================================== */
:root {
  --bg: #0b0e11;
  --bg-soft: #11161d;
  --surface: #181a20;
  --surface-2: #1e2329;
  --border: #2b3139;
  --border-light: #38404a;
  --text: #eaecef;
  --text-2: #b7bdc6;
  --muted: #848e9c;
  --accent: #f0b90b;
  --accent-hover: #f8d12f;
  --accent-press: #d9a40a;
  --green: #0ecb81;
  --red: #f6465d;
  --blue: #5b8def;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  --max-w: 1160px;
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ---------- 第三方披露条 ---------- */
.disclosure-bar {
  background: #1a1500;
  border-bottom: 1px solid #4a3a00;
  color: #e8cf86;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
  line-height: 1.5;
}
.disclosure-bar strong { color: var(--accent); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 17, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-2);
  font-size: 15px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--accent); }
.nav-cta { margin-left: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  line-height: 1.3;
}
.btn-primary { background: var(--accent); color: #121212; }
.btn-primary:hover { background: var(--accent-hover); color: #121212; transform: translateY(-1px); }
.btn-primary:active { background: var(--accent-press); transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-light); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 380px at 82% -8%, rgba(240, 185, 11, .16), transparent 60%),
    radial-gradient(560px 320px at 8% 0%, rgba(91, 141, 239, .10), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-2); margin-bottom: 26px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13.5px;
  color: var(--muted);
}
.trust-line span { display: inline-flex; align-items: center; gap: 6px; }
.trust-line .dot { color: var(--green); }

/* 邀请码卡片 */
.ref-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.ref-card .tag {
  display: inline-block;
  font-size: 12.5px;
  color: var(--accent);
  border: 1px solid rgba(240, 185, 11, .35);
  background: rgba(240, 185, 11, .08);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 16px;
}
.ref-code-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 18px 0 16px;
}
.ref-code {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  background: var(--bg);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  user-select: all;
  padding: 10px;
  font-variant-numeric: tabular-nums;
}
.ref-note { font-size: 13px; color: var(--muted); }
.ref-note b { color: var(--text-2); font-weight: 600; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: 30px; margin-bottom: 12px; letter-spacing: -.3px; }
.section-head p { color: var(--text-2); font-size: 16.5px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-light); }
.card .icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(240, 185, 11, .1);
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; }
.card ul { margin: 10px 0 0 18px; color: var(--text-2); font-size: 14.5px; }
.card ul li { margin-bottom: 6px; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #121212;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 辨别真假官网 ---------- */
.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.verify-box { border-radius: var(--radius); padding: 26px; border: 1px solid; }
.verify-ok { background: rgba(14, 203, 129, .06); border-color: rgba(14, 203, 129, .35); }
.verify-bad { background: rgba(246, 70, 93, .06); border-color: rgba(246, 70, 93, .35); }
.verify-box h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 14px; }
.verify-ok h3 { color: var(--green); }
.verify-bad h3 { color: var(--red); }
.verify-box ul { list-style: none; }
.verify-box li { padding: 7px 0 7px 26px; position: relative; color: var(--text-2); font-size: 14.5px; border-bottom: 1px dashed rgba(255,255,255,.06); }
.verify-box li:last-child { border-bottom: none; }
.verify-ok li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.verify-bad li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.domain-pill {
  display: inline-block;
  background: rgba(14, 203, 129, .12);
  border: 1px solid rgba(14, 203, 129, .4);
  color: var(--green);
  border-radius: 6px;
  padding: 1px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 14px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); color: var(--text); font-weight: 600; white-space: nowrap; }
td { color: var(--text-2); }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.hl-text { color: var(--accent); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; transition: transform .2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 18px; color: var(--text-2); font-size: 14.5px; }
.faq-item .faq-a p { margin-bottom: 8px; }
.faq-item .faq-a ul { margin: 6px 0 8px 20px; }

/* ---------- 文章页 ---------- */
.page-hero { padding: 56px 0 44px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: 34px; margin-bottom: 12px; letter-spacing: -.3px; }
.page-hero p { color: var(--text-2); font-size: 17px; max-width: 760px; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; padding: 48px 0; }
.article-body { min-width: 0; }
.article-body h2 { font-size: 24px; margin: 38px 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 18.5px; margin: 26px 0 10px; }
.article-body p { color: var(--text-2); margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; color: var(--text-2); }
.article-body li { margin-bottom: 8px; }
.article-body .tip {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14.5px;
  border: 1px solid;
}
.tip-warn { background: rgba(246, 70, 93, .07); border-color: rgba(246, 70, 93, .3); color: #f5a3af; }
.tip-ok { background: rgba(14, 203, 129, .07); border-color: rgba(14, 203, 129, .3); color: #7fd9b3; }
.tip-info { background: rgba(91, 141, 239, .07); border-color: rgba(91, 141, 239, .3); color: #a9c2f5; }
.tip b { color: inherit; }

/* 侧边栏 */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.side-card h4 { font-size: 15px; margin-bottom: 12px; }
.side-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.toc { list-style: none; margin: 0; }
.toc li { margin-bottom: 4px; }
.toc a { display: block; padding: 7px 12px; color: var(--text-2); font-size: 14px; border-radius: 8px; border-left: 2px solid var(--border); }
.toc a:hover { color: var(--accent); background: var(--surface-2); border-left-color: var(--accent); }

/* ---------- 计算器 ---------- */
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.calc label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; }
.calc input, .calc select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}
.calc input:focus, .calc select:focus { border-color: var(--accent); }
.calc select option { background: var(--surface); }
.calc-result { background: var(--bg); border-radius: var(--radius-sm); padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-result .r-label { font-size: 13px; color: var(--muted); }
.calc-result .r-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.r-value.green { color: var(--green); }
.r-value.accent { color: var(--accent); }
.calc-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(120deg, #201a02, #2b2308 55%, #1a1a1a);
  border: 1px solid rgba(240, 185, 11, .3);
  border-radius: var(--radius);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 25px; margin-bottom: 6px; }
.cta-band p { color: var(--text-2); }
.cta-band .ref-code { width: 180px; min-height: 50px; font-size: 22px; }
.cta-band-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); background: #080a0d; padding: 52px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.footer-brand img { width: 30px; height: 30px; }
.site-footer p, .site-footer li { font-size: 13.5px; color: var(--muted); }
.site-footer h5 { font-size: 14px; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-disclosure {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 12.5px;
  color: #636d7a;
}
.footer-disclosure p { margin-bottom: 8px; font-size: 12.5px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 12.5px; color: #636d7a; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 移动端导航 ---------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text);
  font-size: 22px;
  padding: 6px 12px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 32px; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .verify-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 4px; }
  .grid-3, .grid-4, .grid-2, .steps { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 25px; }
  .hero { padding: 52px 0 48px; }
  .hero h1 { font-size: 27px; }
  .page-hero h1 { font-size: 26px; }
  .cta-band { padding: 28px 22px; }
  .calc-row, .calc-result { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .ref-code-row { flex-direction: column; }
}
