/* 主题：币安黄黑白 */
:root {
  --bg: #0a0a0a;            /* 页面背景接近黑 */
  --surface: #111111;       /* 组件表面 */
  --text: #f9fafb;          /* 主要文本近白 */
  --muted: #9ca3af;         /* 次要文本灰 */
  --primary: #F3BA2F;       /* 币安黄 */
  --primary-600: #E5B22C;   /* 略深的黄 */
  --accent: #22c55e;        /* 保留辅助色（少量用于涨幅等）*/
  --border: #1f2937;        /* 深色边框 */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; }
.logo { font-weight: 700; color: var(--text); text-decoration: none; font-size: 22px; }
.logo-img { height: 48px; width: auto; display: block; }

.nav-list { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.nav-list a:hover { background: #151515; }
.nav-toggle { display: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }

.hero { padding: 72px 0 48px; background: linear-gradient(180deg, rgba(243,186,47,0.08), rgba(243,186,47,0)); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.hero-text h1 { font-size: 36px; margin: 0 0 12px; }
.hero-text p { color: var(--muted); margin: 0 0 18px; }

.cta-group { display: flex; gap: 12px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,0.45); }
.btn-primary { background: var(--primary); color: #111111; border-color: var(--primary-600); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--border); }

.hero-art { position: relative; height: 240px; }
.art-card { position: absolute; inset: 0 0 auto auto; width: 86%; height: 86%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  background-image: radial-gradient(circle at 20% 20%, rgba(243,186,47,0.15), transparent 40%), radial-gradient(circle at 80% 60%, rgba(34,197,94,0.14), transparent 38%);
  animation: float 6s ease-in-out infinite;
}
.art-card.delay { inset: 30px auto auto 30px; width: 60%; height: 60%; opacity: 0.9; animation-delay: 1.4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.section { padding: 44px 0; background: var(--bg); }
.section h2 { margin: 0 0 16px; font-size: 28px; }
.section-desc { color: var(--muted); }
/* 统一背景，去除分段高亮，整体浅色 */
.highlight { background: transparent; border-top: none; border-bottom: none; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* 图标栅格（products） */
.icon-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.icon-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: left; }

/* 条纹列表（advantages） */
.striped-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.striped-item { background: var(--surface); padding: 16px 18px; display: grid; grid-template-columns: 1.4fr 2fr auto; align-items: center; }
.striped-item:nth-child(odd) { background: #0f0f0f; }
.striped-item h3 { margin: 0; font-size: 16px; }
.striped-item p { margin: 0; color: var(--muted); }

/* 媒体条目（learn） */
.media-list { display: grid; gap: 14px; }
.media-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.media-thumb { width: 64px; height: 64px; border-radius: 12px; background: #151515; flex: 0 0 64px; }
.media-item h3 { margin: 0; font-size: 16px; }
.media-item p { margin: 6px 0 0; color: var(--muted); }

/* 徽章卡片（business） */
.badge-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.badge-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.badge-card .btn { margin-top: auto; }
.badge { position: absolute; top: 14px; right: 14px; padding: 6px 10px; font-size: 12px; border-radius: 999px; background: var(--primary); color: #111111; border: 1px solid var(--primary-600); }

/* 按钮与标题间距微调 */
.card .btn { margin-top: 12px; }
.striped-item .btn { margin-left: 12px; }
.media-item .btn { margin-left: 12px; }

/* 表格包装与样式 */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; color: var(--text); }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.table thead th { background: #0f0f0f; font-weight: 700; }
.table .up { color: #16a34a; }
.table .down { color: #dc2626; }

.download-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.download-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.download-card h3 { margin: 0 0 8px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tip { color: var(--muted); margin-top: 16px; }

.faq-item { display: flex; flex-direction: column; justify-content: space-between; min-height: 140px; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.faq-item h3 { margin: 0 0 6px; font-size: 16px; }
.faq-item p { color: var(--muted); margin: 8px 0 0; }
/* FAQ 栅格布局 */
.faq-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); align-items: stretch; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; background: var(--surface); }
.site-footer p { color: var(--muted); margin: 6px 0; }

/* 响应式 */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: 1fr 1fr; }
  .badge-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* 让logo和菜单与屏幕边缘保持安全距离 */
  .header-inner { padding: 14px 16px; }
  .logo-img { height: 42px; }
  .nav-toggle { display: inline-block; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
  .nav-list { display: none; position: absolute; right: 16px; top: 56px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; box-shadow: var(--shadow); }
  .nav-list.open { display: flex; flex-direction: column; }
  .download-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: 1fr; }
}
