/* ============================================================
   NovaX — 首页 (OKX 风格)
   ============================================================ */

/* ---- Banner 轮播 ---- */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
}
.banner-slides { display: flex; transition: transform 0.4s cubic-bezier(.25,.46,.45,.94); }
.banner-slide {
    min-width: 100%;
    padding: 32px 20px;
    min-height: 140px;
    display: flex;
    align-items: center;
}
.banner-content { width: 100%; }
.banner-content .tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    color: #fff;
    margin-bottom: 8px;
}
.banner-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}
.banner-content p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    line-height: 1.4;
}
.banner-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 18px;
    backdrop-filter: blur(4px);
}
.banner-btn:active { transform: scale(0.95); }
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}
.banner-dots .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: all 0.3s;
}
.banner-dots .dot.active {
    width: 18px;
    border-radius: 3px;
    background: #fff;
}

/* ---- 总资产卡片 ---- */
.home-assets-card {
    margin: 16px 16px 12px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s;
}
.home-assets-card:active { background: var(--bg-card-hover); }
.home-assets-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.home-assets-label {
    font-size: 12px;
    color: var(--text-muted);
}
.home-assets-eye {
    font-size: 16px;
    cursor: pointer;
}
.home-assets-value {
    font-size: 28px;
    font-weight: 700;
    font-family: 'SF Mono', 'Courier New', monospace;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.home-assets-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}
.home-assets-change { font-weight: 600; }
.home-assets-change.up { color: var(--color-up); }
.home-assets-change.down { color: var(--color-down); }

/* ---- 快捷操作 ---- */
.home-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 16px;
}
.home-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 4px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: background 0.12s;
}
.home-action-btn:active { background: var(--bg-card-hover); }
.home-action-btn .action-icon { font-size: 22px; }
.home-action-btn span:last-child {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- 行情列表 ---- */
.home-market {
    margin: 0 16px 16px;
}
.home-market-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.home-market-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.home-market-more {
    font-size: 12px;
    color: var(--color-brand);
}
.home-market-table-header {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 11px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}
.home-market-table-header span:first-child { flex: 1; }
.home-market-table-header span:nth-child(2) { width: 110px; text-align: right; }
.home-market-table-header span:nth-child(3) { width: 80px; text-align: right; }

.home-coin-list { display: flex; flex-direction: column; }
.home-coin-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.12s;
}
.home-coin-item:active {
    background: var(--bg-card);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}
.home-coin-item .coin-info { flex: 1; display: flex; align-items: center; gap: 10px; }
.home-coin-item .coin-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    flex-shrink: 0;
}
.home-coin-item .coin-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.home-coin-item .coin-symbol {
    font-size: 11px;
    color: var(--text-muted);
}
.home-coin-item .coin-price {
    width: 110px;
    text-align: right;
}
.home-coin-item .price {
    display: block;
    font-size: 13px;
    font-weight: 600;
    font-family: 'SF Mono', 'Courier New', monospace;
    color: var(--text-primary);
}
.home-coin-item .change {
    width: 80px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
}
.home-coin-item .change.up { color: var(--color-up); }
.home-coin-item .change.down { color: var(--color-down); }
