﻿:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --sidebar-width: 200px;
    --sidebar-collapsed-width: 90px;
    --header-height: 60px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: #f5f7fb;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 整体布局 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    /*使用CSS的linear-gradient属性创建一个从顶部到底部的线性渐变背景,渐变起始颜色为#2a3042（深灰蓝色），结束颜色为#1a1e2c（更深的灰蓝色）。
            */
    background: linear-gradient(180deg, #1370b4 0%, #2370b4 100%);
    color: #a0a7c2;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

    .sidebar.collapsed {
        width: var(--sidebar-collapsed-width);
    }

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    white-space: nowrap;
}

    .logo i {
        font-size: 1.5rem;
        color: var(--accent-color);
    }

.logo-text {
    transition: var(--transition);
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.toggle-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #a0a7c2;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

    .toggle-btn:hover {
        background: rgba(255,255,255,0.2);
        color: white;
    }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}
.sidebar.collapsed .user-details {
    opacity: 0;
    width: 0;
    overflow: hidden;
}
/* 侧边菜单 */
.sidebar-menu {
    padding: 20px 0;
    color: #336699;
}

.menu-list {
    list-style: none;
}

.menu-header {
    padding: 12px 20px;
    color: #6c7293;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
}

.sidebar.collapsed .menu-header {
    opacity: 0;
    width: 0;
    overflow: hidden;
    padding: 12px 0;
}

.menu-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    margin: 15px 20px;
}

.sidebar.collapsed .menu-divider {
    margin: 15px 10px;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #a0a7c2;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

    .menu-link:hover, .menu-link.active {
        background-color: rgba(255,255,255,0.05);
        color: white;
    }

    .menu-link.active {
        background-color: rgba(67, 97, 238, 0.2);
        color: white;
        border-left: 3px solid var(--primary-color);
    }

.menu-icon {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    margin-right: 12px;
    transition: var(--transition);
}

.sidebar.collapsed .menu-icon {
    margin-right: 0;
}

.menu-text {
    transition: var(--transition);
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.menu-arrow {
    margin-left: auto;
    transition: var(--transition);
    font-size: 0.8rem;
}

.sidebar.collapsed .menu-arrow {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.menu-item.has-children > .menu-arrow {
    transform: rotate(0deg);
}

.menu-item.has-children.expanded > .menu-arrow {
    transform: rotate(90deg);
}

/* 子菜单 */
.submenu {
    list-style: none;
    background-color: rgba(0,0,0,0.2);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

    .submenu.expanded {
        max-height: 1000px;
    }

.submenu-item .menu-link {
    padding-left: 50px;
    font-size: 0.9rem;
}

.sidebar.collapsed .submenu-item .menu-link {
    padding-left: 20px;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    min-height: 100vh;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* 顶部导航栏 */
.top-navbar {
    height: var(--header-height);
    background-color: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-icons {
    display: flex;
    gap: 15px;
}

.nav-icon {
    position: relative;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

    .nav-icon:hover {
        color: var(--primary-color);
    }

.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

    .user-dropdown-btn:hover {
        background-color: #f5f5f5;
    }

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    min-width: 200px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: var(--transition);
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: var(--primary-color);
    }

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 8px 0;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

    .breadcrumb-item a {
        color: var(--primary-color);
        text-decoration: none;
        font-size: 0.9rem;
    }

    .breadcrumb-item.active {
        color: #666;
        font-size: 0.9rem;
    }

.breadcrumb-separator {
    margin: 0 8px;
    color: #aaa;
    font-size: 0.8rem;
}

/* 内容区域 */
.content-wrapper {
    padding: 25px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

    .content-header h2 {
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--dark-color);
        margin: 0;
    }

.content-body {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 25px;
}

/* 页脚 */
.footer {
    padding: 20px 25px;
    border-top: 1px solid #eaeaea;
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

/* 移动端响应式 */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.mobile-open {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .overlay.active {
        display: block;
    }

    .search-box input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .search-box {
        display: none;
    }

    .content-wrapper {
        padding: 15px;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .top-navbar {
        padding: 0 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.button-style {
    font-family: "微软雅黑", Arial;
    font-size: 15px;
    background-color: #007bff; /* 背景色 */
    color: white; /* 字体颜色 */
    border: none; /* 去除边框 */
    padding: 8px 16px; /* 内边距 */
    border-radius: 4px; /* 圆角 */
    cursor: pointer; /* 鼠标样式 */
}

    .button-style:hover {
        background-color: #0056b3; /* 鼠标悬停时的背景色 */
    }
.button1-style {
    font-family: "微软雅黑", Arial;
    font-size: 13px;
    background-color: #007bff; /* 背景色 */
    color: white; /* 字体颜色 */
    border: none; /* 去除边框 */
    padding: 4px 12px; /* 内边距 */
    border-radius: 10px; /* 圆角 */
    cursor: pointer; /* 鼠标样式 */
}

    .button1-style:hover {
        background-color: #0056b3; /* 鼠标悬停时的背景色 */
    }

.label-style {
    font-family: "微软雅黑", Arial;
    font-size: 13px;
    color: #333333;
}

.dropdown-style {
    padding: 1px 1px; /* 内边距，增加点击区域和美观度 */
    font-size: 15px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px; /* 圆角边框 */
    cursor: pointer;
    max-width: 5cm;
}

    /* 鼠标悬停或聚焦时的样式 */
    .dropdown-style:hover {
        border-color: #888;
    }

    .dropdown-style:focus {
        outline: none;
        border-color: #66afe9;
        box-shadow: 0 0 5px rgba(102, 175, 233, .6);
    }
/* 应用于 CheckBoxList 的 CSS 类 */
.checkboxlist-style {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    font-weight: normal;
    color: #333;
}

    /* 为每个选项（单元格）添加内边距，增加间距 */
    .checkboxlist-style td {
        padding: 0px 0px 0px 0px;
    }

    /* 单独设置文字标签的样式，如加粗、颜色 */
    .checkboxlist-style label {
        margin-left: 0px;
        color: black;
        cursor: pointer;
    }

        /* 鼠标悬停时改变文字颜色 */
        .checkboxlist-style label:hover {
            color: #0056b3;
        }
/* 基础文本框样式 */
.textbox-style {
    /* 1. 字体相关 */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    color: #333333; /* 文字颜色 */
    /* 2. 尺寸与布局 */
    padding: 2px 2px; /* 内边距，让文字不贴边 */
    /* 3. 边框 */
    border: 1px solid #ccc;
    border-radius: 4px; /* 圆角 */
    /* 4. 背景 */
    background-color: #fff;
    /* 5. 其他 */
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    transition: border-color 0.15s ease-in-out;
}

    /* 鼠标悬停或聚焦时的交互样式 */
    .textbox-style:focus {
        border-color: #66afe9;
        outline: 0;
        box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(102, 175, 233, 0.6);
    }

.checkbox-style {
    display: block;
    position: relative;
    padding-left: 1px; /* 留出空间给自定义的复选框图标 */
    margin-bottom: 1px;
    cursor: pointer;
    font-size: 13px; /* 字体大小 */
    font-family: "微软雅黑", "Microsoft YaHei", Arial, sans-serif; /* 字体类型 */
    color: #333; /* 字体颜色 */
    font-weight: normal; /* 字体粗细 */
    user-select: none;
}
    /* 鼠标悬停时的背景色变化 */
    .checkbox-style:hover input ~ .checkmark {
        background-color: #f3f4f6;
        border-color: #9ca3af;
    }

    /* 复选框选中时的背景色和边框色 */
    .checkbox-style input:checked ~ .checkmark {
        background-color: #3b82f6; /* 经典的蓝色 */
        border-color: #3b82f6;
    }

    /* 选中后，绘制内部的“对勾”符号（使用伪元素）*/
    .checkbox-style .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

    .checkbox-style input:checked ~ .checkmark:after {
        display: block;
    }

    /* 绘制对勾的样式（通过 border 变形）*/
    .checkbox-style .checkmark:after {
        left: 7px;
        top: 3px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

/* 控制整个 RadioButtonList 的字体 */
.RadioButtonList-style {
    font-family: '微软雅黑', 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    color: #333;
}

    /* 控制每个列表项 (td) 的样式，比如添加间距 */
    .RadioButtonList-style tr td {
        padding: 1px 1px;
        border-bottom: 1px solid #f0f0f0;
    }

        /* 控制单选按钮本身 (input) 的样式 */
        .RadioButtonList-style tr td input {
            margin-right: 1px;
            vertical-align: middle;
            cursor: pointer;
        }

        /* 控制文本标签 (label) 的样式 */
        .RadioButtonList-style tr td label {
            vertical-align: middle;
            cursor: pointer;
        }

    /* 鼠标悬停时的行背景色，提升交互体验 */
    .RadioButtonList-style tr:hover {
        background-color: #f5f5f5;
    }

/* 基础 h1 样式 */
.h1-style {
    font-family: 'Segoe UI', 'Microsoft YaHei', Roboto, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.h2-style {
    font-family: 'Segoe UI', 'Microsoft YaHei', Roboto, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 10px;
    margin: 0 0 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
    .h2-style :hover {
        background-color: #f5f5f5;
    }