﻿/* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }

body {
    /*font-family: 'Microsoft YaHei', Arial, sans-serif;*/
    margin: 0px;
    padding: 0px;
    background-color: #ffffff;
    font-size: 14px;
    color: #333;
        }

/* iframe 内页面的全局样式 */
* {
    box-sizing: border-box;
}

/* iframe 内页面的 CSS */
.iframe-textbox {
    height: 20px;
    padding-left: 5px;
    border: 1px solid #ccc;  /* 显式定义所有边框 */
    border-top: 1px solid #ccc !important;  /* 强制顶边框显示 */
    box-sizing: border-box;  /* 统一盒模型 */
}
        .fa {
            color: white; /* 主色调：蓝色 */
            transition: all 0.3s ease; /* 添加平滑过渡效果 */
        }
        
        /* 悬停效果 - 颜色变化 + 旋转动画 */
        .fa:hover {
            color: white; /* 悬停颜色：红色 */
            transform:  scale(1.2); /* 放大20% */
            text-shadow: 0 0 8px rgba(255, 107, 107, 0.5); /* 添加光晕效果 */
        }
        /* 特殊图标单独定制 */
        .fa-power-off, .fa-user {
             transform: rotate(0deg) scale(1.2); /* 旋转0度，并放大200% */
        }

    a {
    color: #1e3a8a;
    text-decoration: none;
    cursor: pointer;
    }

        /* 仅对带有 .custom-link 类的链接生效 */
    a.custom-link {
    text-decoration: none;
    cursor: pointer;
    }

    a.custom-link:hover {
    text-decoration: none;
    cursor: pointer;
    }
/* 主容器 */
.container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 220px;
    background-color: #1e3a8a;
    color: white;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sidebar-menu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu li.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 3px solid #fff;
}

/* 顶部导航栏 */
.top-nav {
    background-color: #f0f2f5;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-nav-info {
    display: flex;
    align-items: center;
}

.top-nav-actions {
    display: flex;
    align-items: center;
}

.top-nav-actions a {
    margin-left: 15px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.top-nav-actions a:hover {
    color: #1e3a8a;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 20px;
}

/* 标签页样式 */
.tab-container {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0px;
}

.tab-header {
    border-bottom: 1px solid #e8e8e8;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tab-title {
    font-size: 16px;
    font-weight: bold;
    padding: 15px 0;
}

.tab-actions {
    display: flex;
    align-items: center;
}

/* 按钮样式 */
.btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #1e3a8a;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-default {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #d9d9d9;
}

.btn-default:hover {
    background-color: #e6e6e6;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* GridView 控件样式 */
.grid-view {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    font-size: 14px;
}

.grid-view th {
    background-color: #f5f5f5;
    padding: 12px 8px;
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid #e8e8e8;
}

.grid-view td {
    padding: 12px 8px;
    border-bottom: 1px solid #e8e8e8;
}

.grid-view tr:hover {
    background-color: #f9f9f9;
}

.grid-view .action-cell {
    white-space: nowrap;
}

.grid-view .action-cell a {
    margin-right: 8px;
    color: #1e3a8a;
    text-decoration: none;
}

.grid-view .action-cell a:hover {
    text-decoration: underline;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    color: #000000;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .active a {
    background-color: #1e3a8a;
    color: #666;
    border-color: #1e3a8a;
}

/* 表单控件样式 */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #1e3a8a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .main-content {
        padding: 15px;
    }
}

/* 全局表格基础样式（建议放在全局CSS文件中） */
.global-table {
  /* 基础布局 */
  /*width: 100%;  默认占满容器宽度 。这里注释掉，由各页面调用时自定义宽度*/
  min-width: 100px; /* 防止内容过窄导致布局错乱 */
  border-collapse: collapse; /* 合并边框（关键：避免默认边框间距） */
  border-spacing: 0; /* 清除默认单元格间距 */
  table-layout: fixed; /* 可选：固定列宽（内容溢出时截断，需配合td的overflow） */

  /* 字体与行高 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.0;

  /* 颜色 */
  color: #333;
  background-color: #fff;

  /* 边框 */
  border: 1px solid #666; /* 外边框 */
}

/* 表头（th）样式 */
.global-table th {
  padding: 5px 10px; /* 内边距（上下10px，左右10px） */
  text-align: center; /* 文本左对齐（可根据需求改为center/right） */
  font-weight: 600; /* 加粗 */
  background-color: #f5f5f5; /* 浅灰背景区分内容行 */
  border-bottom: 1px solid #e8e8e8; /* 底部边框（比外边框更浅） */
  border-right: 1px solid #e8e8e8; /* 底部边框（比外边框更浅） */
  color: #262626; /* 更深的文字颜色 */
}

/* 数据行（td）样式 */
.global-table tr,td {
  padding: 1px 0px; /* 与表头内边距一致 */
  border-bottom: 1px solid #e8e8e8; /* 行底部边框（分隔线） */
  border-right: 1px solid #e8e8e8; /* 右边框（分隔线） */
}

/* 悬停效果（鼠标移至行时高亮） */
.global-table tr:hover td {
  background-color: #f5f5f5; /* 浅蓝灰背景 */
  transition: background-color 0.2s ease; /* 平滑过渡 */
}

/* 斑马纹行（可选：偶数行背景色） */
.global-table.striped tr:nth-child(even) td {
  background-color: #fcfcfc; /* 极浅灰 */
}


/* 响应式滚动（小屏幕下横向滚动） */
.global-table.scrollable {
  display: block;
  overflow-x: auto; /* 超出容器宽度时横向滚动 */
  white-space: nowrap; /* 内容不换行 */
}





