@CHARSET "UTF-8";


/* ========================================
   引入本地字体 - Noto Sans SC
   ======================================== */

/* Regular 400 */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('./fonts/noto-sans-sc-v40-chinese-simplified-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium 500 */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('./fonts/noto-sans-sc-v40-chinese-simplified-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* SemiBold 600 */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('./fonts/noto-sans-sc-v40-chinese-simplified-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold 700 */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('./fonts/noto-sans-sc-v40-chinese-simplified-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    display: flex;
    min-height: 100vh;
    font-family: "Noto Sans SC", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
}

/* CSS 变量定义 */
:root {
    /* 主色调 - 蓝色 */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;

    /* 中性色 */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* 阴影 - 已禁用 */
    --shadow-sm: none;
    --shadow: none;
    --shadow-md: none;
    --shadow-lg: none;

    /* 圆角 */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

::-webkit-scrollbar-corner {
    background: var(--gray-100);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) var(--gray-100);
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* 下拉菜单项 */
.dropdown-item {
    font-size: .875rem;
    color: var(--gray-600);
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-50);
    color: var(--primary-700);
}

.dropdown-item:active {
    background-color: var(--primary-100);
    color: var(--primary-700);
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 220px;
    background-color: white;
    border-right: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    z-index: 1029;
    overflow-y: auto;
}

.sidebar:before {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: -1;
    display: block;
    width: 220px;
    background-color: white;
    border-right: 1px solid var(--gray-200);
    content: "";
}

/* 导航列表 */
.nav-list {
    margin: 0;
    list-style: none;
}

.nav-list>li>a,
.nav-list .nav-header {
    margin: 0;
}

.nav-list>li {
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
}

.nav-list>li:first-child {
    border-top: 0;
}

.nav-list>li>a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-600);
    text-decoration: none;
    background-color: transparent;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-list>li>a>[class*="fa-"]:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    font-size: 1rem;
    font-weight: normal;
    text-align: center;
    margin-right: 0.75rem;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.nav-list>li>a:focus {
    background-color: var(--gray-50);
    color: var(--gray-700);
}

.nav-list>li>a:hover {
    color: var(--primary-600);
    background-color: var(--primary-50);
    border-left-color: var(--primary-300);
}

.nav-list>li>a:hover>[class*="fa-"]:first-child {
    color: var(--primary-500);
}

.nav-list>li a>.arrow {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1rem !important;
    height: 1rem;
    font-size: 0.75rem;
    color: var(--gray-400);
    transition: all 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-list>li a:hover>.arrow,
.nav-list>li.active>a>.arrow,
.nav-list>li.open>a>.arrow {
    color: var(--primary-600);
}

.nav-list>li.open>a>.arrow {
    transform: translateY(-50%) rotate(90deg);
    right: 1rem;
}

.nav-list>li.open>a {
    color: var(--primary-600);
    background-color: var(--primary-50);
    border-left-color: var(--primary-500);
}

.nav-list>li.active {
    background-color: transparent;
}

.nav-list>li.active>a,
.nav-list>li.active>a:hover,
.nav-list>li.active>a:focus,
.nav-list>li.active>a:active {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-700);
    background-color: var(--primary-50);
    border-left-color: var(--primary-500);
}

.nav-list>li.active>a>[class*="fa-"]:first-child {
    color: var(--primary-600);
}

.nav-list>li.active .submenu {
    display: block;
}

/* 正常展开状态下的菜单样式 */
.nav-list>li.open {
    position: relative;
}

.nav-list>li.open > a {
    color: var(--primary-600);
    background-color: var(--primary-50);
    border-left-color: var(--primary-500);
}

.nav-list>li.open > a > .arrow {
    transform: translateY(-50%) rotate(90deg);
    right: 1rem;
}

/* 子菜单 */
.nav-list>li .submenu {
    position: relative;
    display: none;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: transparent;
}

.nav-list>li .submenu>li {
    position: relative;
    margin-left: 0;
}

.nav-list>li .submenu>li>a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.625rem 1.25rem 0.625rem 3rem;
    margin: 0;
    line-height: 1.5;
    font-size: 0.8125rem;
    color: var(--gray-500);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-list>li .submenu>li>a:focus {
    text-decoration: none;
}

.nav-list>li .submenu>li>a:hover {
    color: var(--primary-600);
    background-color: var(--primary-50);
    border-left-color: var(--primary-300);
}

.nav-list>li .submenu>li.active>a {
    color: var(--primary-700);
    background-color: var(--primary-50);
    border-left-color: var(--primary-500);
    font-weight: 500;
}

.nav-list>li .submenu>li a>[class*="fa-"]:first-child {
    position: absolute;
    top: 50%;
    left: 1.75rem;
    transform: translateY(-50%);
    z-index: 1;
    width: auto;
    height: auto;
    font-size: 0.5rem;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.nav-list>li .submenu>li.active>a>[class*="fa-"]:first-child,
.nav-list>li .submenu>li:hover>a>[class*="fa-"]:first-child {
    color: var(--primary-500);
}

/* 三级菜单 */
.nav-list>li .submenu .submenu {
    padding-left: 0;
}

.nav-list>li .submenu .submenu>li>a {
    padding-left: 3.5rem;
    font-size: 0.8125rem;
}

.nav-list>li .submenu .submenu>li a>[class*="fa-"]:first-child {
    left: 2.25rem;
}

/* 快捷方式 */
.nav_shortcuts {
    margin-top: 0.5rem;
}

#sidebar-shortcuts {
    height: auto;
    padding: 0.75rem 1.25rem;
    background-color: transparent;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-shortcuts {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    max-height: none;
    margin-bottom: 0;
    line-height: normal;
    text-align: center;
    background-color: transparent;
    border-bottom: none;
}

.sidebar-shortcuts .btn {
    padding: 0.5rem;
    border-radius: var(--radius);
    background-color: var(--gray-100);
    border: none;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.sidebar-shortcuts .btn:hover {
    background-color: var(--primary-500);
    color: white;
}

/* 面包屑 */
.breadcrumbs {
    position: relative;
    display: block;
    height: 100%;
    padding: 0 12px 0 0;
    background-color: transparent;
}

/* 主内容区 */
.main-content {
    min-height: 100%;
    padding: 0;
    margin-top: 56px;
    margin-right: 0;
    margin-left: 220px;
    height: calc(100vh - 56px);
    transition: margin-left 0.3s ease;
    background-color: var(--gray-100);
    overflow-y: auto;
}

.mobile .main-content {
    margin-left: 0;
}

.page-content {
    padding: 1rem;
    margin: 0;
    background: var(--gray-100);
    height: calc(100vh - 56px - 40px);
    overflow: hidden;
    position: relative;
}

/* iframe 容器 */
#content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* iframe 样式 */
.appiframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}



/* 确保 iframe 内容不被左侧菜单遮挡 */
.main-content {
	position: relative;
	margin-left: 220px;
	width: calc(100% - 220px);
}

/* 搜索表单优化 */
.card-body .row {
	--bs-gutter-x: 1rem;
	--bs-gutter-y: 0.75rem;
}

.card-body .col {
	padding-right: 0.5rem;
	padding-left: 0.5rem;
}

.card-body label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--gray-600);
	white-space: nowrap;
	margin-right: 0.5rem;
}

.card-body .form-control {
	border: 1px solid var(--gray-200);
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	transition: all 0.2s ease;
}

.card-body .form-control:focus {
	border-color: var(--primary-400);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.card-body .btn {
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.card-body .btn-primary {
	background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
	border: none;
}

.card-body .btn-primary:hover {
	background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.card-body .btn-outline-secondary {
	border: 1px solid var(--gray-300);
	color: var(--gray-600);
	background: #fff;
}

.card-body .btn-outline-secondary:hover {
	background: var(--gray-50);
	border-color: var(--gray-400);
	color: var(--gray-700);
}

/* 移动端适配 */
.mobile .main-content {
    margin-left: 0;
    width: 100%;
}

.main-container {
    position: relative;
    padding: 0;
}

/* 导航栏 - 蓝色主题 */
.navbar {
    padding-right: 0;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 56px;
}

.navbar .navbar-inner,
.navbar .btn-navbar {
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false) !important;
}

.navbar .navbar-inner {
    position: relative;
    min-height: 56px;
    padding-right: 0;
    padding-left: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.simplewind-nav>li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.simplewind-nav>li {
    position: relative;
    max-height: 56px;
    padding: 0;
    line-height: 56px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.2s ease;
}

.simplewind-nav>li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.simplewind-nav>li>a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.95);
    background-color: transparent;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.simplewind-nav>li>a:hover {
    color: white;
}

.simplewind-nav .dropdown-menu {
    line-height: 1.5;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.simplewind-nav .nav-user-photo {
    max-width: 32px !important;
    margin: -4px 8px 0 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: border-color 0.2s ease;
}

.simplewind-nav>li>a:hover .nav-user-photo {
    border-color: rgba(255, 255, 255, 0.6);
}

.navbar .nav>li>a,
.navbar .nav>li>a:hover,
.navbar .nav>li>a:focus {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: none;
}

.navbar .brand {
    padding: 12px 20px;
}

.navbar-brand-name {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
}

ul, ol {
    padding: 0;
    margin: 0;
}

/* 标签页 */
.cmf-component-tab {
    white-space: nowrap;
    font-size: 0;
    height: 37px;
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.cmf-component-tab .active a {
    color: var(--primary-600);
    background-color: var(--gray-100);
    border-bottom-color: var(--primary-500);
}

.cmf-component-tab:hover .cmf-component-tabclose-icon {
    color: var(--gray-500);
}

.cmf-component-tabitem {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    min-width: 100px;
    text-align: center;
    cursor: pointer;
    vertical-align: top;
    font-size: 0.8125rem;
    height: 36px;
    margin-top: 0;
    padding: 0 1.5rem 0 1rem;
    background-color: white;
    border: none;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.cmf-component-tabitem:hover {
    background-color: var(--gray-50);
}

.cmf-component-tabitem.active {
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--primary-500);
}

.cmf-component-tabclose {
    position: absolute;
    top: 50%;
    right: 0.375rem;
    transform: translateY(-50%);
    text-decoration: none;
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.cmf-component-tabclose:hover {
    background-color: var(--gray-200);
    text-decoration: none;
}

.cmf-component-tabitem:hover .cmf-component-tabclose {
    text-decoration: none;
    display: flex;
}

.cmf-component-tabclose-icon {
    color: var(--gray-400);
    font-size: 0.625rem;
    transition: color 0.15s ease;
}

.cmf-component-tabclose:hover .cmf-component-tabclose-icon {
    color: var(--gray-600);
}

.cmf-tabs-item-text {
    font-family:  "Noto Sans SC", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--gray-600);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.cmf-component-tabitem.active .cmf-tabs-item-text {
    color: var(--primary-600);
    font-weight: 500;
}

/* 任务切换按钮 */
.task-changebt {
    display: none;
    float: left;
    width: 32px;
    height: 100%;
    font-size: 16px;
    color: var(--gray-500);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    line-height: 40px;
    transition: all 0.2s ease;
    border-radius: var(--radius);
}

.task-changebt:hover {
    color: var(--gray-700);
    background-color: var(--gray-200);
    text-decoration: none;
}

#task-pre {
    left: 0;
}

#task-next {
    right: 0;
}

#task-content {
    position: relative;
    float: left;
    overflow: hidden;
}

/* 加载动画 */
#loading {
    position: absolute;
    top: 10px;
    left: 250px;
    z-index: 9999;
    width: 120px;
    height: 32px;
    color: var(--gray-700);
    background: white;
    border-radius: var(--radius);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#loading .loadingicon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loading span {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    color: var(--gray-600);
}

/* 右侧工具 */
#right-tools-wrapper {
    position: absolute;
    top: 50px;
    right: 20px;
    z-index: 99;
    cursor: pointer;
}

#right-tools-wrapper span {
    vertical-align: middle;
}

#right-tools-wrapper span .right_tool_icon {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: var(--gray-600);
    transition: color 0.2s ease;
}

#right-tools-wrapper span .right_tool_icon:hover {
    color: var(--primary-600);
}

#nav-wrapper {
    position: relative;
    height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* 移动端菜单 */
.mobile .nav-list>li.open {
    position: relative;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    background: transparent;
    border-bottom-color: transparent;
}

.mobile .nav-list>li.open a {
    padding-left: 1.25rem;
}

.nav-list>li .normal {
    display: inline-flex;
}

.nav-list>li .back {
    display: none;
}

.mobile .nav-list>li.open .normal {
    display: inline-flex !important;
}

.mobile .nav-list>li.open .back {
    display: none;
}

.mobile .nav-list>li .fa.back {
    position: absolute;
    top: 11px;
    left: 10px;
    z-index: 1;
    width: 18px;
    height: auto;
    font-size: 14px;
    font-weight: normal;
    line-height: 12px;
    text-align: center;
}

.nav-list>li>.submenu:before {
    border-left: 0 solid transparent;
}

#content {
    padding: 0;
}

.task-changebt {
    background: transparent;
    position: absolute;
}

.cmf-component-tabclose-icon:hover {
    color: var(--gray-700);
}

/* 用户菜单 */
.user-menu {
    min-width: 180px;
}

.user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu .dropdown-item i {
    width: 1rem;
    text-align: center;
    color: var(--gray-400);
}

.user-menu .dropdown-item:hover i {
    color: var(--primary-500);
}

/* 折叠按钮 */
.sidebar-collapse {
    position: relative;
    padding: 0.75rem;
    text-align: center;
    background-color: transparent;
    border-bottom: none;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.sidebar-collapse>[class*="fa-"] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    width: 32px;
    height: 32px;
    color: var(--gray-500);
    cursor: pointer;
    background-color: var(--gray-200);
    border: none;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sidebar-collapse>[class*="fa-"]:hover {
    background-color: var(--primary-500);
    color: white;
}

.sidebar-collapse:before {
    display: none;
}

/* 菜单徽章 */
.nav-list a .badge,
.nav-list a .label {
    position: absolute;
    top: 50%;
    right: 2.5rem;
    transform: translateY(-50%);
    padding: 0.125rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    opacity: 1;
    border-radius: 2px;
}

.nav-list a .badge [class*="fa-"],
.nav-list a .label [class*="fa-"] {
    margin: 0;
    vertical-align: middle;
}

.nav-list a.dropdown-toggle .badge,
.nav-list a.dropdown-toggle .label {
    right: 2.5rem;
}

.nav-list a:hover .badge,
.nav-list a:hover .label {
    opacity: 1;
}

.nav-list .submenu .submenu a .badge,
.nav-list .submenu .submenu a .label {
    top: 50%;
    transform: translateY(-50%);
}

.nav .open>a,
.nav .open>a:hover,
.nav .open>a:focus {
    border-color: transparent;
    background: transparent;
}
