/* 自定义样式 */

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
}

.layui-layout-admin .layui-body {
    background-color: #f2f2f2;
}

/* 页面内容容器 */
.page-content {
    min-height: calc(100vh - 60px);
}

/* Logo样式 */
.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

/* 统计卡片样式 */
.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #1E9FFF;
    text-align: center;
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* 工单状态标签 */
.layui-badge.layui-bg-gray {
    background-color: #909399;
}

.layui-badge.layui-bg-blue {
    background-color: #409EFF;
}

.layui-badge.layui-bg-green {
    background-color: #67C23A;
}

.layui-badge.layui-bg-orange {
    background-color: #E6A23C;
}

/* 信息项样式 */
.info-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #666;
    margin-right: 10px;
}

.info-value {
    color: #333;
}

/* 表格操作按钮 */
.layui-btn-xs {
    margin-right: 5px;
}

/* 树形结构样式 */
.org-tree {
    padding: 10px;
}

.org-tree-item {
    padding: 5px 0;
    cursor: pointer;
    border-radius: 4px;
}

.org-tree-item:hover {
    background-color: #f5f5f5;
}

.org-tree-item.selected {
    background-color: #e6f7ff;
    border-left: 3px solid #1890ff;
}

.org-tree-item.has-children {
    font-weight: bold;
}

.org-tree-children {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 1px solid #e8e8e8;
}

/* 卡片布局优化 */
.layui-card {
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.layui-card-header {
    font-weight: bold;
    background-color: #fafafa;
}

/* 表单样式优化 */
.layui-form-label {
    width: 100px;
    font-weight: bold;
}

.layui-input-block {
    margin-left: 130px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .layui-form-label {
        width: 80px;
    }

    .layui-input-block {
        margin-left: 110px;
    }

    .stat-number {
        font-size: 24px;
    }

    .info-item {
        padding: 8px 0;
    }
}

/* 页面标题样式 */
.layui-field-title {
    margin-bottom: 20px;
}

/* 表格样式优化 */
.layui-table-tool {
    background-color: #fafafa;
}

.layui-table-tool .layui-btn {
    margin-right: 10px;
}

/* 搜索栏样式 */
.search-bar {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 操作按钮组样式 */
.action-bar {
    margin-bottom: 15px;
}

.action-bar .layui-btn {
    margin-right: 10px;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.online {
    background-color: #52c41a;
}

.status-indicator.offline {
    background-color: #f5222d;
}

.status-indicator.maintenance {
    background-color: #faad14;
}

/* 进度条样式 */
.progress-bar {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .progress-fill {
    height: 100%;
    background-color: #1890ff;
    transition: width 0.3s ease;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
}

.tag.primary {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.tag.success {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.tag.warning {
    background-color: #fffbe6;
    color: #faad14;
    border: 1px solid #ffe58f;
}

.tag.error {
    background-color: #fff2f0;
    color: #f5222d;
    border: 1px solid #ffccc7;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.empty-state .empty-text {
    font-size: 14px;
}

/* 加载状态样式 */
.loading-state {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* 步骤条样式 */
.step-bar {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e8e8e8;
    z-index: 1;
}

.step-item:last-child::before {
    display: none;
}

.step-item.active::before {
    background-color: #1890ff;
}

.step-item .step-number {
    width: 30px;
    height: 30px;
    background-color: #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #999;
    position: relative;
    z-index: 2;
}

.step-item.active .step-number {
    background-color: #1890ff;
    color: #fff;
}

.step-item.completed .step-number {
    background-color: #52c41a;
    color: #fff;
}

.step-item .step-title {
    font-size: 12px;
    color: #666;
}

.step-item.active .step-title,
.step-item.completed .step-title {
    color: #1890ff;
    font-weight: bold;
}

/* 图表容器样式 */
.chart-container {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* 统计卡片组样式 */
.stats-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.stats-card {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stats-card .stats-icon {
    font-size: 32px;
    color: #1890ff;
    margin-bottom: 10px;
}

.stats-card .stats-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stats-card .stats-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stats-card .stats-change {
    font-size: 12px;
    margin-top: 5px;
}

.stats-card .stats-change.up {
    color: #52c41a;
}

.stats-card .stats-change.down {
    color: #f5222d;
}

/* 快捷操作按钮组 */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-action-btn {
    flex: 1;
    min-width: 120px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background-color: #f5f5f5;
    border-color: #1890ff;
    color: #1890ff;
}

.quick-action-btn .action-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.quick-action-btn .action-text {
    font-size: 12px;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.notification-item {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    overflow: hidden;
}

.notification-item .notification-header {
    padding: 10px 15px;
    background-color: #1890ff;
    color: #fff;
    font-weight: bold;
}

.notification-item .notification-body {
    padding: 15px;
}

.notification-item .notification-footer {
    padding: 10px 15px;
    background-color: #f5f5f5;
    text-align: right;
}

/* 抽屉样式 */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.drawer.open {
    transform: translateX(0);
}

.drawer .drawer-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer .drawer-body {
    padding: 20px;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.drawer .drawer-close {
    cursor: pointer;
    font-size: 18px;
    color: #999;
}

.drawer .drawer-close:hover {
    color: #333;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal .modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
}

.modal .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal .modal-body {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.modal .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e8e8e8;
    text-align: right;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e8e8e8;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #1890ff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e8e8e8;
}

.timeline-item .timeline-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.timeline-item .timeline-content {
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 标签页样式 */
.tab-container {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
}

.tab-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-item:hover {
    color: #1890ff;
}

.tab-item.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.tab-body {
    padding: 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 文件上传样式 */
.upload-area {
    border: 2px dashed #e8e8e8;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-area:hover {
    border-color: #1890ff;
    background-color: #f5f5f5;
}

.upload-area .upload-icon {
    font-size: 48px;
    color: #999;
    margin-bottom: 10px;
}

.upload-area .upload-text {
    color: #666;
    margin-bottom: 10px;
}

.upload-area .upload-hint {
    font-size: 12px;
    color: #999;
}

.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 10px;
}

.file-item .file-info {
    display: flex;
    align-items: center;
}

.file-item .file-icon {
    font-size: 16px;
    color: #1890ff;
    margin-right: 10px;
}

.file-item .file-name {
    font-size: 14px;
    color: #333;
}

.file-item .file-size {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.file-item .file-actions {
    display: flex;
    gap: 10px;
}

/* 响应式优化 */
@media screen and (max-width: 992px) {
    .stats-group {
        flex-direction: column;
    }

    .quick-actions {
        flex-direction: column;
    }

    .drawer {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .modal .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .tab-header {
        overflow-x: auto;
        white-space: nowrap;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media screen and (max-width: 576px) {
    .search-bar .layui-form-item {
        flex-direction: column;
    }

    .search-bar .layui-inline {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-bar .layui-input-inline {
        width: 100%;
    }

    .action-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .action-bar .layui-btn {
        flex: 1;
        min-width: 80px;
        margin: 0;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 打印样式 */
@media print {
    .layui-header,
    .layui-side,
    .layui-footer,
    .no-print {
        display: none !important;
    }

    .layui-body {
        left: 0 !important;
        margin: 0 !important;
    }

    .page-content {
        margin: 0 !important;
        padding: 20px !important;
    }

    .layui-btn,
    .action-bar {
        display: none !important;
    }
}