:root {
    --sidebar-width: 260px;
    --primary-color: #2563eb;
    --sidebar-bg: #1e293b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f1f5f9;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.sidebar .nav-link {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* 登录页 */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    border: none;
}

/* 统计卡片 */
.stat-card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* 快捷卡片 */
.quick-card {
    border-radius: 12px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* 表格 */
.table-card {
    border-radius: 12px;
    border: none;
    overflow: hidden;
}

.table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.table td {
    vertical-align: middle;
}

/* 分页 */
.pagination {
    margin-bottom: 0;
}

/* 平台图标 */
.platform-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    vertical-align: middle;
}

/* 电话展示 */
.phone-display {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
}

/* 联系人展示 */
.contact-display {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #333;
}

/* 标签单选 */
.tag-option {
    cursor: pointer;
    transition: all 0.2s;
}

.tag-option:hover {
    opacity: 0.8;
}

.btn-check:checked + .tag-option {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    .main-content {
        margin-left: 0;
    }
}

.col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 1199.98px) {
    .col-lg-2-4 {
        width: 33.333333%;
    }
}

@media (max-width: 767.98px) {
    .col-lg-2-4 {
        width: 100%;
    }
}

