/* ============================================================
   X1 · 首页样式
   ============================================================ */

.x1-home { display: flex; flex-direction: column; gap: 28px; }

/* ---------- Hero ---------- */
.x1-hero { position: relative; overflow: hidden; padding: 44px 40px; min-height: 260px; display: flex; align-items: center; border-color: var(--x1-border-strong); }
.x1-hero-bg { position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 0%, rgba(59,130,246,0.18), transparent 70%), radial-gradient(400px 260px at 90% 100%, rgba(22,199,132,0.06), transparent 60%); pointer-events: none; }
.x1-hero-content { position: relative; z-index: 2; }
.x1-hero-badge { margin-bottom: 14px; }
.x1-hero-title { font-size: var(--x1-font-size-hero); font-weight: 800; letter-spacing: -0.01em; }
.x1-hero-title .xl { color: var(--x1-primary); text-shadow: 0 0 30px var(--x1-primary-glow); }
.x1-hero-sub { font-size: var(--x1-font-size-lg); color: var(--x1-text-2); margin: 12px 0 24px; line-height: 1.7; }
.x1-hero-actions { display: flex; gap: 12px; }
.x1-hero-visual { position: absolute; right: 40px; bottom: 0; z-index: 1; opacity: 0.9; pointer-events: none; }

/* ---------- Section head ---------- */
.x1-home-section { display: flex; flex-direction: column; gap: 16px; }
.x1-sec-head { display: flex; align-items: center; justify-content: space-between; }
.x1-sec-head h3 { font-size: var(--x1-font-size-xl); font-weight: 700; }

/* ---------- Market Overview ---------- */
.x1-ov-card { cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.x1-ov-top { display: flex; align-items: center; justify-content: space-between; }
.x1-ov-name { font-weight: 600; }
.x1-ov-price { font-size: var(--x1-font-size-2xl); font-weight: 700; }
.x1-ov-spark { width: 100%; height: 40px; }
.x1-ov-vol { font-size: var(--x1-font-size-xs); }

/* ---------- Quick ---------- */
.x1-quick-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.x1-quick { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--x1-radius-lg); background: var(--x1-surface); border: 1px solid var(--x1-border-soft); cursor: pointer; transition: all var(--x1-speed) var(--x1-ease); font-size: var(--x1-font-size-sm); color: var(--x1-text-2); }
.x1-quick:hover { border-color: var(--x1-primary); background: var(--x1-primary-soft); color: var(--x1-text-1); transform: translateY(-2px); box-shadow: var(--x1-glow-primary); }
.x1-quick-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--qc, var(--x1-primary)); background: color-mix(in srgb, var(--qc, #3b82f6) 14%, transparent); }

/* ---------- Hot table ---------- */
.x1-rank { width: 22px; height: 22px; border-radius: 6px; background: var(--x1-bg-4); display: inline-flex; align-items: center; justify-content: center; font-size: var(--x1-font-size-xs); color: var(--x1-text-2); font-weight: 600; }
.x1-coin-name { font-weight: 600; }
.x1-coin-sym { font-size: var(--x1-font-size-xs); }

/* ---------- AI Quant ---------- */
.x1-quant-card { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(59,130,246,0.06)); }
.x1-quant-glow { position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%); }
.x1-quant-left { position: relative; z-index: 2; max-width: 520px; }
.x1-quant-badge { display: inline-block; padding: 4px 12px; border-radius: var(--x1-radius-full); background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.4); color: #b39bff; font-size: var(--x1-font-size-xs); font-weight: 700; letter-spacing: 0.08em; margin-bottom: 12px; }
.x1-quant-title { font-size: var(--x1-font-size-2xl); font-weight: 700; margin-bottom: 8px; }
.x1-quant-desc { font-size: var(--x1-font-size-md); color: var(--x1-text-2); margin-bottom: 20px; line-height: 1.7; }
.x1-quant-metrics { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 12px; max-width: 520px; }
.x1-quant-metric { padding: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--x1-border-soft); border-radius: var(--x1-radius-md); }
.qm-label { font-size: var(--x1-font-size-xs); color: var(--x1-text-3); margin-bottom: 6px; }
.qm-value { font-size: var(--x1-font-size-xl); font-weight: 700; }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .x1-quick-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .x1-hero { padding: 32px 24px; min-height: 220px; }
  .x1-hero-title { font-size: 32px; }
  .x1-hero-sub { font-size: 15px; }
  .x1-hero-visual { opacity: 0.4; right: -20px; }
  .x1-grid--4 { grid-template-columns: repeat(2, 1fr) !important; }
  .x1-quant-card { padding: 24px; }
  .x1-quant-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .x1-hero-visual { display: none; }
  .x1-hero-actions .x1-btn { width: 100%; }
}
