:root {
    /* 核心企业蓝白渐变色系 - 2026 旗舰版 */
    --primary-blue: #0052cc;
    --dark-blue: #0747a6;
    --light-blue: #deebff;
    --bg-light: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    --bg-color: #f8fbff;

    /* 渐变定义 - 确保蓝白渐变质感 */
    --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-gradient: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    --card-blue-gradient: linear-gradient(135deg, #0052cc 0%, #0066ff 40%, #f8fbff 100%);
    --card-indigo-gradient: linear-gradient(135deg, #0066ff 0%, #3399ff 40%, #f8fbff 100%);
    --card-cyan-gradient: linear-gradient(135deg, #3399ff 0%, #66b3ff 40%, #f8fbff 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: #e1e8ff;

    /* 兼容性变量 (用于旧页面) */
    --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: var(--bg-color);
    background: 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 20px rgba(0, 82, 204, 0.2);
    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: var(--card-gradient);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.08);
    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 30px rgba(0, 82, 204, 0.15);
    border-color: #2684ff;
}

/* 渐变卡片系统 */
.gradient-card {
    background: linear-gradient(135deg, #0052cc 0%, #2684ff 50%, #ffffff 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.2);
    margin-bottom: 24px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gradient-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.gradient-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 82, 204, 0.3);
}

.gradient-card a:hover {
    transform: translateX(5px);
}

/* 统计卡片系统 */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.stat-card-blue::before {
    background: linear-gradient(90deg, #0052cc, #2684ff);
}

.stat-card-indigo::before {
    background: linear-gradient(90deg, #0066ff, #00b4d8);
}

.stat-card-cyan::before {
    background: linear-gradient(90deg, #00b4d8, #48cae4);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.stat-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.stat-card-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stat-card-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card-trend {
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-card-trend i {
    font-size: 11px;
}

.stat-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-card-blue .stat-card-icon {
    background: linear-gradient(135deg, #e8f0ff, #f0f7ff);
    color: #0052cc;
}

.stat-card-indigo .stat-card-icon {
    background: linear-gradient(135deg, #e8f4ff, #f0f8ff);
    color: #0066ff;
}

.stat-card-cyan .stat-card-icon {
    background: linear-gradient(135deg, #e8fbff, #f0fdff);
    color: #00b4d8;
}

.stat-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.stat-card-footer a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.stat-card-footer a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.stat-card-footer a i {
    font-size: 12px;
}

/* 快捷操作区 */
.quick-actions {
    background: var(--card-gradient);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.08);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.quick-actions h3 {
    font-size: 20px;
    margin: 0 0 24px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-actions h3 i {
    color: var(--primary-blue);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-action-item:hover {
    border-color: #2684ff;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 82, 204, 0.15);
    transform: translateY(-3px);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0052cc, #2684ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25);
}

.quick-action-item:hover .quick-action-icon {
    background: linear-gradient(135deg, #2684ff, #57a9ff);
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(38, 132, 255, 0.4);
}

.quick-action-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

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

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

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

/* 表格系统 */
.table-container {
    background: var(--card-gradient);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.08);
}

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

.table th {
    background: linear-gradient(135deg, #e8f4ff 0%, #f8fbff 100%);
    padding: 18px 24px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #b3d4ff;
}

.table td {
    padding: 20px 24px;
    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: linear-gradient(90deg, rgba(0, 82, 204, 0.05) 0%, rgba(0, 82, 204, 0.02) 100%);
}

/* 状态标签 */
.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;
    }
}
