body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.auth-card {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.card {
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.navbar-brand {
    font-weight: bold;
}

.table {
    margin-bottom: 0;
}

.badge {
    padding: 5px 10px;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.btn {
    margin: 0 5px;
}

.btn-sm {
    margin: 0 2px;
}

.alert {
    margin: 15px 0;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

.container {
    max-width: 1200px;
}

@media (max-width: 768px) {
    .table-responsive {
        font-size: 12px;
    }

    .btn {
        padding: 0.25rem 0.5rem;
        font-size: 12px;
    }
}

/* BUG-D 表头副标题（小字灰显） */
.th-sub,
.th-sub-pct {
    font-size: 10px;
    font-weight: normal;
    color: #999;
    margin-top: 2px;
}

/* 收益率正/负着色 */
.return-rate-positive {
    color: #dc3545;  /* 涨红（中国习惯） */
    font-weight: bold;
}
.return-rate-negative {
    color: #28a745;  /* 跌绿 */
    font-weight: bold;
}
.return-rate-zero {
    color: #6c757d;
}