/* 全局样式 */
body {
    background: #f8f9fa;
}
.container {
    max-width: 1400px;
}
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1.25rem;
}
.btn {
    margin-right: 0.25rem;
}
/* 地点管理树形列表 */
.location-tree {
    list-style: none;
    padding-left: 0;
}
.location-tree ul {
    list-style: none;
    padding-left: 20px;
}
.location-tree li {
    margin: 5px 0;
}
.search-box {
    margin-bottom: 15px;
}
.location-item {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
    background: white;
}
.location-item:hover {
    background-color: #f1f3f5;
}
/* 级联下拉框 */
.cascade-select {
    display: inline-block;
    width: auto;
    margin-right: 10px;
}
/* 人物管理动态行 */
.character-row {
    margin-bottom: 10px;
}
/* 证件号生成按钮颜色（蓝色） */
#generateBtn {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
/* 调整级联下拉框间距 */
.cascade-select {
    margin-right: 0 !important;
    width: 100%;
}
.row > [class*="col-"] {
    padding-right: 5px;
    padding-left: 5px;
}

/* 强制缩小地区筛选下拉框间距 */
.d-flex.gap-1 {
    gap: 0.1rem !important;
}
.cascade-select {
    margin-right: 0 !important;
}

/* 级联下拉框紧凑样式（与人物管理一致） */
.cascade-select {
    display: inline-block !important;
    width: auto !important;
    margin-right: 10px !important;
}
#cascadeContainer {
    white-space: nowrap;
}
/* 案件管理地区筛选紧凑样式 */
#cascadeContainer select {
    display: inline-block !important;
    width: auto !important;
    margin-right: 5px !important;
}
/* 案件管理专用样式 */
.character-row {
    margin-bottom: 10px;
}
/* 确保快速添加按钮等样式一致 */
#quickAddBtn {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
        body { background: #f0f2f5; }
        .sidebar { position: fixed; top: 0; left: 0; width: 260px; height: 100%; background: #1e2a3a; color: #fff; transition: all 0.3s; z-index: 1000; }
        .sidebar .nav-link { color: #cfd8dc; padding: 12px 20px; transition: 0.2s; }
        .sidebar .nav-link:hover, .sidebar .nav-link.active { background: #0d6efd; color: #fff; }
        .sidebar .nav-link i { margin-right: 10px; width: 20px; text-align: center; }
        .main-content { margin-left: 260px; padding: 20px; }
        .stat-card { background: #fff; border-radius: 12px; padding: 20px 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s; text-decoration: none; color: inherit; display: block; min-height: 100px; display: flex; align-items: center; }
        .stat-card:hover { transform: translateY(-3px); background-color: #f8f9fa; }
        .stat-title { font-size: 1.3rem; font-weight: 500; margin: 0; padding-left: 15px; letter-spacing: 1px; }
        .tag-item { display: inline-block; background: #e9ecef; padding: 5px 12px; border-radius: 20px; margin: 5px; font-size: 13px; }
        .modal-detail { max-width: 600px; }
        @media (max-width: 768px) {
            .sidebar { transform: translateX(-100%); }
            .main-content { margin-left: 0; }
            .sidebar.show { transform: translateX(0); }
        }

/* ========== 美化优化新增样式 ========== */
/* 整体背景与字体 */
body {
    background: #F5F7FA !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", sans-serif;
}

/* 侧边栏深灰蓝风格 */
.sidebar {
    background: #1D2129 !important;
    box-shadow: 2px 0 12px rgba(0,0,0,0.05);
}
.sidebar .nav-link {
    color: #C9CDD4 !important;
    border-radius: 8px;
    margin: 4px 12px;
    padding: 10px 16px;
    transition: all 0.2s;
}
.sidebar .nav-link i {
    width: 24px;
    font-size: 1.2rem;
}
.sidebar .nav-link:hover {
    background: #2C313A !important;
    color: #FFFFFF !important;
}
.sidebar .nav-link.active {
    background: #165DFF !important;
    color: #FFFFFF !important;
}
.sidebar h4 {
    color: #FFFFFF;
    font-weight: 500;
    letter-spacing: 1px;
}
.sidebar h4 i {
    margin-right: 8px;
}
.sidebar .form-label {
    color: #C9CDD4;
    font-size: 0.8rem;
}
#seriesSelect {
    background-color: #2C313A !important;
    border-color: #3A3F47 !important;
    color: white !important;
}

/* 数据卡片样式 */
.stat-card {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    min-height: 100px;
    display: flex;
    align-items: center;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1) !important;
    background: #FFFFFF !important;
}
.stat-title {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: #4E5969 !important;
    margin: 0;
    letter-spacing: 0.5px;
}
.stat-number {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #165DFF !important;
    margin: 0 20px !important;
    line-height: 1.2;
}
/* 加号按钮样式 */
.stat-card .bi-plus-circle {
    font-size: 1.6rem;
    transition: transform 0.1s;
}
.stat-card .bi-plus-circle.text-primary:hover {
    transform: scale(1.05);
}

/* 标签分布卡片 */
.stat-card[style*="cursor: default"] {
    background: #FFFFFF;
    border-radius: 12px;
}
.tag-item {
    background: #F2F3F5 !important;
    color: #1D2129;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.tag-item:hover {
    background: #E5E6EB !important;
}

/* 最近法律条文卡片 */
.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    overflow: hidden;
}
.card-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid #F2F3F5 !important;
    font-weight: 600;
    padding: 16px 20px;
}
.list-group-item {
    border-left: none;
    border-right: none;
    border-color: #F2F3F5;
    padding: 12px 20px;
}
.list-group-item:hover {
    background: #F7F8FA;
    cursor: pointer;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #86909C;
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state p {
    margin-bottom: 16px;
}
.empty-state .btn-sm {
    background: #F2F3F5;
    border: none;
    color: #165DFF;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stat-number {
        font-size: 28px !important;
        margin: 0 10px !important;
    }
    .stat-title {
        font-size: 0.9rem !important;
    }
    .stat-card {
        padding: 12px 16px !important;
    }
}
        body { background: #f0f2f5; }
        .sidebar { position: fixed; top: 0; left: 0; width: 260px; height: 100%; background: #1e2a3a; color: #fff; transition: all 0.3s; z-index: 1000; }
        .sidebar .nav-link { color: #cfd8dc; padding: 12px 20px; transition: 0.2s; }
        .sidebar .nav-link:hover, .sidebar .nav-link.active { background: #0d6efd; color: #fff; }
        .sidebar .nav-link i { margin-right: 10px; width: 20px; text-align: center; }
        .main-content { margin-left: 260px; padding: 20px; }
        .stat-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s; }
        .stat-card:hover { transform: translateY(-3px); }
        .stat-number { font-size: 32px; font-weight: bold; color: #0d6efd; }
        .tag-item { display: inline-block; background: #e9ecef; padding: 5px 12px; border-radius: 20px; margin: 5px; font-size: 13px; }
        .modal-detail { max-width: 600px; }
        @media (max-width: 768px) {
            .sidebar { transform: translateX(-100%); }
            .main-content { margin-left: 0; }
            .sidebar.show { transform: translateX(0); }
        }
