/* 全局样式重置与基础配置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
    background-color: #f8f9fa;
}

/* 布局容器 */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* 侧边栏样式 */
.sidebar {
    min-height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    padding: 1.5rem 0.5rem;
}

/* 导航链接样式 */
.nav-link {
    color: #333;
    border-radius: 4px;
    margin-bottom: 2px;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.nav-link.active {
    background-color: #0d6efd;
    color: white !important;
}

/* 内容区域切换核心样式 */
.content-section {
    display: none;
}
.content-section.active {
    display: block;
}

/* 卡片样式 */
.card {
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 0.375rem;
}

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.125);
}

.card-body {
    padding: 1.25rem;
}

/* 统计数字样式 */
.display-4 {
    font-size: 2.2rem !important;
    font-weight: 700;
}

/* 表格响应式样式 */
.table-responsive {
    min-height: .01%;
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.075);
}

/* 周期配置项样式 */
.cycle-item {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #fff;
}

.cycle-item .form-control {
    width: 80px;
    display: inline-block;
}

/* 总数统计样式 */
.total-count {
    font-weight: bold;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dee2e6;
    color: #495057;
}

/* 模态框样式优化 */
.modal-xl {
    max-width: 1140px;
}

.modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

/* 按钮样式优化 */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* 表单控件样式优化 */
.form-control-sm {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* 徽章样式优化 */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

/* 辅助样式 */
.text-muted { color: #6c757d !important; }
.text-danger { color: #dc3545 !important; }
.text-success { color: #198754 !important; }
.text-warning { color: #ffc107 !important; }
.text-primary { color: #0d6efd !important; }

.d-none { display: none !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.w-25 { width: 25% !important; }
.flex-grow-1 { flex-grow: 1 !important; }

.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
/* 数据统计美化 */
.bg-gradient.bg-primary {
    background: linear-gradient(90deg, #4E67F2 0%, #25C8B2 100%) !important;
}
.rounded-4 { border-radius: 16px !important; }
.card.shadow-sm { box-shadow: 0 6px 20px rgba(0,0,0,0.06) !important; }
.card-header.fw-bold { font-weight: 600 !important; }