body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

.nav-link.active {
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* 统计卡片样式 */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stat-card .card-body {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.stat-icon {
    font-size: 42px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.total-sales .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.total-orders .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.total-distributors .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.total-salespersons .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    margin: 4px 0;
    color: #212529;
    letter-spacing: -0.5px;
}

.stat-trend {
    font-size: 12px;
    font-weight: 500;
    color: #28a745;
    display: inline-flex;
    align-items: center;
}

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

/* 卡片样式 */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 20px;
    background: white;
}

.card-header {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px 12px 0 0 !important;
    padding: 16px 20px;
    font-weight: 600;
}

.card-header h4,
.card-header h5 {
    margin: 0;
    color: #212529;
}

.card-body {
    padding: 20px;
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-outline-primary {
    border: 1px solid #667eea;
    color: #667eea;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    background-color: #f8f9fa;
    padding: 12px;
}

.table td {
    vertical-align: middle;
    padding: 12px;
    color: #212529;
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* 活动记录样式 */
.activity-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    color: #6c757d;
    font-size: 13px;
    margin-left: auto;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    padding-right: 16px;
}

.activity-user {
    font-weight: 600;
    color: #667eea;
    margin-right: 8px;
}

/* 模态框样式 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
}

.modal-title {
    font-weight: 600;
    color: #212529;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 16px 20px;
}

/* 徽章样式 */
.badge {
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
}

/* 表单样式 */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 14px;
    transition: all 0.3s;
}

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

/* 容器 */
.container-fluid {
    max-width: 1400px;
}

/* 响应式 */
@media (max-width: 768px) {
    .stat-card .card-body {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .stat-value {
        font-size: 24px;
    }
}
