:root {
    /* 核心企业蓝白渐变色系 - 2026 旗舰版 */
    --primary-blue: #0052cc;
    --dark-blue: #0747a6;
    --light-blue: #deebff;
    --bg-light: #f4f5f7;
    
    /* 渐变定义 - 确保蓝白渐变质感 */
    --primary-gradient: linear-gradient(135deg, #0747a6 0%, #0052cc 100%);
    --accent-gradient: linear-gradient(135deg, #0052cc 0%, #2684ff 100%);
    --nav-gradient: linear-gradient(135deg, #0747a6 0%, #0052cc 100%);
    --active-gradient: linear-gradient(135deg, #0052cc 0%, #2684ff 100%);
    --card-hover-gradient: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    --hero-gradient: linear-gradient(135deg, #004e92 0%, #000428 100%);
    
    /* 状态颜色 */
    --success: #36b37e;
    --warning: #ffab00;
    --danger: #ff5630;

    /* 文本颜色 - 确保高对比度可见性 */
    --text-dark: #172b4d;
    --text-medium: #42526e;
    --text-light: #6b778c;
    --white: #ffffff;
    --border: #dfe1e6;

    /* 兼容性变量 (用于旧页面) */
    --primary-color: #0052cc;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 强制文字颜色修复 - 解决不显示问题 */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    margin-top: 0;
    font-weight: 700;
}

p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--dark-blue);
}

/* 后台导航栏 */
.navbar {
    background: var(--nav-gradient);
    color: white;
    height: 70px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 22px;
    font-weight: 800;
    color: white !important;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.user-info {
    color: white;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: white;
    height: calc(100vh - 70px);
    position: fixed;
    left: 0;
    top: 70px;
    padding: 30px 15px;
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 10px rgba(0,0,0,0.02);
    overflow-y: auto;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-medium);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-nav i {
    font-size: 18px;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.sidebar-nav a:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.sidebar-nav a.active {
    background: var(--active-gradient);
    color: white;
    box-shadow: 0 8px 16px rgba(0, 82, 204, 0.2);
}

/* 主内容区 */
.main-content {
    margin-left: 260px;
    padding: 40px;
    min-height: calc(100vh - 70px);
}

/* 卡片系统 */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #b3d4ff;
}

/* 按钮系统 */
.btn {
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    font-size: 14px;
}

.btn-primary {
    background: var(--active-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 82, 204, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(0, 82, 204, 0.3);
    transform: translateY(-2px);
}

/* 表格系统 */
.table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8fafc;
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 14px;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: #f0f7ff;
}

/* 状态标签 */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success { background: #e3fcef; color: #006644; }
.badge-warning { background: #fff7e6; color: #824000; }
.badge-danger { background: #ffebe6; color: #bf2600; }

/* 响应式调整 */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
        padding: 20px 10px;
    }
    .sidebar-nav span {
        display: none;
    }
    .main-content {
        margin-left: 70px;
    }
    .sidebar-nav i {
        margin-right: 0;
    }
}
