* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 导航栏 */
.nav {
    background: #2c3e50;
    padding: 0;
    display: flex;
    gap: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 隐藏导航栏：URL 参数 hide_nav=1 时启用，整个 nav 块不渲染，无 UI 入口恢复 */
.nav-hidden {
    display: none !important;
}

.nav button {
    background: transparent;
    border: none;
    color: #bdc3c7;
    padding: 16px 32px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav button:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav button.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-bottom-color: #3498db;
}

/* 面板 */
.panel {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.panel h2 {
    margin-bottom: 24px;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 12px;
}

.global-actions {
    display: flex;
    gap: 8px;
}

.btn-filter-toggle {
    background: transparent;
    border: 1px solid;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 大型创建按钮 */
.create-button-large {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.create-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.create-button-large:active {
    transform: translateY(0);
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

/* 筛选区域 */
.filter-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    min-width: 140px;
}

.filter-group input[type="date"] {
    min-width: 150px;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.btn-reset {
    background: #6c757d;
    color: #fff;
}

.btn-reset:hover {
    background: #5a6268;
}

/* 工单表格 */
.ticket-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ticket-table th {
    background: #f1f3f5;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.ticket-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    vertical-align: middle;
}

.ticket-table tbody tr:hover {
    background: #f8f9fa;
}

.ticket-table tbody tr.completed-row {
    background: #e8f5e9;
}

.ticket-table tbody tr.invalid-row {
    background: #ffebee;
    opacity: 0.85;
}

.ticket-table tbody tr.processing-row {
    background: #e7f3ff;
}

.table-title {
    font-weight: 500;
    color: #2c3e50;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-actions {
    display: flex;
    gap: 6px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #e9ecef;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.page-info {
    font-size: 14px;
    color: #6c757d;
}

.page-size-selector {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

/* 状态单元格样式 */
.table-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.table-status-pending {
    background: #fff3cd;
    color: #856404;
}

.table-status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.table-status-completed {
    background: #d4edda;
    color: #155724;
}

.table-status-invalid {
    background: #f8d7da;
    color: #721c24;
}

/* 仪表盘区域 */
.dashboard-chart-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.chart-subtitle {
    font-size: 13px;
    color: #6c757d;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 创建工单弹窗 - 更宽 */
.create-modal {
    max-width: 600px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* 按钮 */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* 工作台看板 */
.dashboard .panel {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard h2 {
    background: #fff;
    padding: 20px 30px;
    margin: 0 30px;
    border-radius: 8px 8px 0 0;
}

.status-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 30px 30px;
}

.column {
    background: #fff;
    border-radius: 0 0 8px 8px;
    padding: 16px;
}

.status-header {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 15px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-invalid {
    background: #f8d7da;
    color: #721c24;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-processed {
    background: #e2e3e5;
    color: #383d41;
}

/* 工单卡片 */
.ticket-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.ticket-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ticket-card.completed {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.ticket-card.invalid {
    background: #ffebee;
    border-color: #ffcdd2;
    opacity: 0.8;
}

.ticket-card.processing {
    background: #e7f3ff;
    border-color: #b8daff;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ticket-id {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

.ticket-card h4 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 15px;
}

.ticket-content {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-meta {
    font-size: 12px;
    color: #868e96;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-meta-compact {
    font-size: 12px;
    color: #868e96;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 优先级标签 */
.priority {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.priority-low {
    background: #e8f5e9;
    color: #2e7d32;
}

.priority-medium {
    background: #fff3e0;
    color: #ef6c00;
}

.priority-high {
    background: #ffebee;
    color: #c62828;
}

.priority-critical {
    background: #212121;
    color: #fff;
}

/* 类别标签 */
.category-tag {
    color: #3498db;
    font-weight: 500;
}

/* 状态徽章 */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-invalid {
    background: #f8d7da;
    color: #721c24;
}

/* 耗时输入框 */
.duration-input {
    display: flex;
    gap: 8px;
}

.duration-input input {
    flex: 1;
}

.duration-input select {
    width: 100px;
}

/* 小弹窗 */
.modal-small {
    max-width: 400px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #adb5bd;
    font-style: italic;
}

/* 弹窗 - 默认隐藏，通过 v-if 控制 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Vue 未加载时隐藏 */
[v-cloak] {
    display: none !important;
}

.modal {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

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

.message-success {
    background: #27ae60;
}

.message-error {
    background: #e74c3c;
}

/* 响应式 */
@media (max-width: 900px) {
    .status-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav button {
        padding: 12px 16px;
        font-size: 14px;
    }

    .panel {
        margin: 15px;
        padding: 20px;
    }

    .status-columns {
        padding: 0 15px 15px;
    }
}

/* 页面头部操作区 */
.header-actions {
    display: flex;
    gap: 12px;
}

/* 类别管理按钮 */
.category-button {
    padding: 10px 20px;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.category-button:hover {
    background: #e67e22;
}

/* 模态框头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
}

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

/* 类别管理弹窗 */
.category-modal {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.category-modal h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.category-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f1f1f1;
}

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

.category-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.category-name {
    font-weight: 600;
    color: #2c3e50;
}

.category-code {
    color: #7f8c8d;
    font-size: 12px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
}

.category-desc {
    color: #95a5a6;
    font-size: 13px;
}

.category-actions {
    display: flex;
    gap: 6px;
}

.category-edit-form {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.category-edit-form h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #495057;
}

.category-form {
    margin-top: 20px;
}

.category-form h4 {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #495057;
}

.category-form .form-group small {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* 统计摘要卡片 */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 20px;
    border-radius: 8px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-completed {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-rate {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-duration {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.95;
}

/* 图表控制区 */
.chart-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chart-controls select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.chart-controls select:hover {
    border-color: #3498db;
}

.chart-controls select:focus {
    outline: none;
    border-color: #3498db;
}

/* 导航栏用户信息 */
.nav-user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 20px;
    color: #bdc3c7;
    font-size: 14px;
}

.nav-user-info .user-name {
    font-weight: 500;
    color: #fff;
}

.nav-user-info .user-role {
    color: #95a5a6;
    font-size: 12px;
}

.nav-user-info .logout-button {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #e74c3c;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-user-info .logout-button:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
}

/* 用户管理表格 */
.users-table-container {
    margin-top: 20px;
    overflow-x: auto;
}

.users-table-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.users-table-container thead {
    background: #f8f9fa;
}

.users-table-container th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
}

.users-table-container td {
    padding: 14px 16px;
    border-bottom: 1px solid #e9ecef;
}

.users-table-container tbody tr:hover {
    background: #f8f9fa;
}

.users-table-container tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== 部署请求样式 ==================== */

/* 部署请求状态列标题 */
.status-draft { background: #95a5a6 !important; }
.status-pending-review { background: #f39c12 !important; }
.status-pending-approval { background: #3498db !important; }
.status-approved { background: #27ae60 !important; }
.status-rejected { background: #e74c3c !important; }

/* 部署目标标签 */
.deploy-target {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #ecf0f1;
    color: #2c3e50;
}

/* 部署请求大模态框 */
.modal-large .modal {
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
}

/* 表单分组 */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

/* 表单行 */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* 帮助文本 */
.help-text {
    color: #6c757d;
    font-size: 13px;
    margin: -8px 0 12px 0;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
}

/* 部署清单表格 */
.deploy-table-container {
    margin: 16px 0;
    overflow-x: auto;
}

.deploy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.deploy-table th,
.deploy-table td {
    padding: 8px 6px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.deploy-table th {
    background: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}

.deploy-table input,
.deploy-table select {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 12px;
}

.deploy-table input:focus,
.deploy-table select:focus {
    outline: none;
    border-color: #3498db;
}

/* 删除按钮图标 */
.btn-icon {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #c0392b;
}

/* 部署详情查看 */
.deploy-detail-view h4 {
    margin: 16px 0 12px 0;
    font-size: 15px;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.detail-grid > div {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.solution-text {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    margin: 8px 0;
}

/* 部署请求详情内容 */
.deploy-detail-content {
    padding: 16px;
}

.deploy-detail-content h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #2c3e50;
}

.detail-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #495057;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.detail-item {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.detail-item strong {
    color: #495057;
}

.detail-table {
    font-size: 12px;
}

.detail-table th,
.detail-table td {
    padding: 6px 8px;
}

/* 部署请求列表表格 */
.deploy-table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
}

.deploy-list-table {
    font-size: 13px;
}

.deploy-list-table th,
.deploy-list-table td {
    padding: 10px 12px;
    text-align: left;
}

.deploy-list-table tbody tr:hover {
    background: #f8f9fa;
}

.deploy-project-name {
    max-width: 200px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.deploy-target-small {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-link {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    padding: 2px 8px;
    font-size: 12px;
    margin: 0 2px;
}

.btn-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.btn-link.success {
    color: #27ae60;
}

.btn-link.success:hover {
    color: #229954;
}

/* 状态行样式 */
.draft-row {
    background: #f8f9fa !important;
}

.rejected-row {
    background: #fee;
}

/* 弹窗滚动 */
.modal-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

/* 详情弹窗大模态框 */
.modal-large .modal {
    width: 95%;
    max-width: 1100px;
}

/* ==================== 效能评估样式 ==================== */

.efficiency-reports-list {
    padding: 20px 0;
}

.efficiency-report-detail {
    padding: 20px 0;
}

.efficiency-events-list {
    padding: 20px 0;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.report-header h2 {
    margin: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-header h3 {
    margin: 0;
    flex: 1;
}

.report-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.report-section h3 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.report-section h3:hover {
    color: #3498db;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.2s;
}

.condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.condition-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.condition-label {
    font-weight: 500;
    color: #7f8c8d;
}

.condition-value {
    font-weight: 600;
    color: #2c3e50;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.overview-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.overview-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.overview-label {
    margin-top: 8px;
    color: #7f8c8d;
    font-size: 14px;
}

/* 饱和度颜色 */
.saturation-low { color: #27ae60; }
.saturation-normal { color: #f39c12; }
.saturation-medium { color: #e67e22; }
.saturation-high { color: #e74c3c; }

.work-pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.pattern-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.pattern-value {
    font-size: 28px;
    font-weight: bold;
    color: #3498db;
}

.pattern-label {
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 13px;
}

/* AI洞察样式 */
.ai-insights {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #9b59b6;
}

.ai-model-info {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.fallback-badge {
    background: #f39c12;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.ai-content {
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Tooltip样式 */
.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    max-width: 300px;
    z-index: 9999;
    pointer-events: none;
}

.tooltip div {
    margin: 3px 0;
}

.info-icon {
    cursor: help;
    color: #3498db;
    font-size: 14px;
    margin-left: 5px;
}

.info-icon:hover {
    color: #2980b9;
}

/* 大弹窗 */
.large-modal .modal {
    width: 90%;
    max-width: 900px;
}

/* Checkbox样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* 多选select样式 */
select[multiple] {
    min-height: 120px;
}

/* 表格操作列 */
.efficiency-actions {
    display: flex;
    gap: 10px;
}

.text-danger {
    color: #e74c3c;
}

.text-danger:hover {
    color: #c0392b;
}

/* ==================== 配置管理选项卡样式 ==================== */

.config-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.config-tabs button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    color: #6c757d;
    transition: all 0.3s;
}

.config-tabs button:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.config-tabs button.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.config-tab-content {
    min-height: 400px;
}

.config-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.config-actions-header h4 {
    margin: 0;
}
