/* 基础样式 - 强制全站统一 */
body {
    background: #000 !important;
    color: #eee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.container,
.container-fluid {
    max-width: 1200px;
    /* 统一页面宽度 */
}

.card,
.card-custom,
.master-board {
    background: #0a0a0a !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 16px;
    margin-bottom: 20px;
}

/* 价格文字优化 - 防止换行与抖动 */
.price-text {
    color: #00ff88;
    transition: color 0.3s ease;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    /* 使用等宽字体防止数字宽度变动导致的抖动 */
}

/* 缩小仪表盘价格显示 */
h4.price-text {
    font-size: 1.25rem !important;
    /* 从1.5rem缩小，防止移动端挤压 */
}

.price-up {
    color: #00ff88 !important;
    animation: pulse-green 0.6s ease-out;
}

.price-down {
    color: #ff3333 !important;
    animation: pulse-red 0.6s ease-out;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* 状态标签 */
.status-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #222;
}

/* 胜率大数字优化 */
.wr-highlight {
    color: #f3ba2f;
    font-size: 1.5rem;
    /* 稍微缩小以防溢出 */
    font-weight: 700;
}

/* 移动端细致微调 */
@media (max-width: 576px) {
    body {
        padding: 10px 5px !important;
    }

    .container,
    .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* 价格文字进一步缩小以防换行 */
    h4.price-text {
        font-size: 1.1rem !important;
    }

    /* 币种名称也稍微缩小 */
    .text-warning.small {
        font-size: 0.75rem !important;
    }

    .card,
    .master-board,
    .card-custom {
        padding: 12px 10px !important;
    }

    /* 缩小资产显示字体 */
    .col-3 h6 {
        font-size: 0.7rem !important;
    }

    .col-3 .fw-bold {
        font-size: 0.85rem !important;
    }
}

/* 设置页面专用覆盖 */
.section-title {
    color: #f3ba2f;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.description {
    color: #555;
    font-size: 0.75rem;
}