/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

/* 卡片样式 */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* 统计卡片 */
.stat-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-card .stat-change {
    font-size: 0.875rem;
}

.stat-change.positive {
    color: #198754;
}

.stat-change.negative {
    color: #dc3545;
}

/* 表格样式 */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 加载动画 */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* 图表容器 */
.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .chart-container {
        height: 300px;
    }
}

/* 自定义颜色 */
.text-btc { color: #f7931a; }
.text-eth { color: #627eea; }
.text-bnb { color: #f3ba2f; }

.bg-btc { background-color: #f7931a; }
.bg-eth { background-color: #627eea; }
.bg-bnb { background-color: #f3ba2f; }

/* 价格变化 */
.price-up {
    color: #198754;
}

.price-down {
    color: #dc3545;
}

/* 工具提示 */
.tooltip-inner {
    max-width: 300px;
}

/* 徽章 */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

/* 分页 */
.pagination {
    margin-top: 1rem;
}

/* 搜索框 */
.search-box {
    margin-bottom: 1rem;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.online {
    background-color: #198754;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background-color: #dc3545;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 间隔辅助类 */
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.ml-10 { margin-left: 10px; }
.mr-10 { margin-right: 10px; }
