body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

/* ========== 主头部样式 ========== */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 20px;
}

.main-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
}

.system-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-title i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 300px;
}

.search-box:hover,
.search-box:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-box .search-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px 12px 44px;
    color: white;
    font-size: 14px;
    border-radius: 24px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px 12px;
    margin: 4px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 头部操作按钮 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    color: white;
}



.config-btn {
    background: rgba(250, 173, 20, 0.2);
    border-color: rgba(250, 173, 20, 0.4);
}

.config-btn:hover {
    background: rgba(250, 173, 20, 0.3);
    border-color: rgba(250, 173, 20, 0.6);
}

.analysis-btn {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.analysis-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
}

.cookies-btn {
    background: rgba(240, 147, 251, 0.2);
    border-color: rgba(240, 147, 251, 0.4);
}

.cookies-btn:hover {
    background: rgba(240, 147, 251, 0.3);
    border-color: rgba(240, 147, 251, 0.6);
}

.mobile-btn {
    background: rgba(24, 144, 255, 0.2);
    border-color: rgba(24, 144, 255, 0.4);
}

.mobile-btn:hover {
    background: rgba(24, 144, 255, 0.3);
    border-color: rgba(24, 144, 255, 0.6);
}

.logout-btn {
    background: rgba(245, 34, 45, 0.2);
    border-color: rgba(245, 34, 45, 0.4);
}

.logout-btn:hover {
    background: rgba(245, 34, 45, 0.3);
    border-color: rgba(245, 34, 45, 0.6);
}

/* ========== 统计信息栏样式 ========== */
.stats-bar {
    background: #fff;
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 状态统计项横向排列 */
.status-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

/* 门店分布和筛选状态垂直排列 */
.additional-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.stats-item i {
    color: #667eea;
    font-size: 16px;
}

.stats-label {
    font-weight: 500;
}

.stats-value {
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 20px;
    text-align: center;
}

.stats-value.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.stats-value.clickable:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.stats-value.clickable:active {
    transform: scale(0.95);
    background: rgba(102, 126, 234, 0.3);
}

/* 响应式设计 - 小屏幕适配 */
@media (max-width: 768px) {
    .status-stats-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .stats-item {
        width: 100%;
        justify-content: space-between;
    }
    
    .stats-bar {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .stats-item {
        font-size: 13px;
    }
    
    .stats-item i {
        font-size: 14px;
    }
    
    .stats-value {
        padding: 1px 6px;
        font-size: 13px;
    }
}

/* 处理中工单统计loading动画 */
.stats-value .fa-spinner {
    color: #667eea;
    font-size: 14px;
    animation: spin 1s linear infinite;
}

/* ========== 工单分析页面样式 ========== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.header-content h1 i {
    margin-right: 12px;
    color: #ffd700;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-info {
    background: rgba(23, 162, 184, 0.2);
    color: white;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    background: rgba(23, 162, 184, 0.3);
    transform: translateY(-2px);
}

.btn-warning {
    background: rgba(255, 193, 7, 0.2);
    color: white;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

/* 分析控制面板 */
.analysis-controls {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* 分析控制面板中的按钮样式 - 提高优先级 */
.analysis-controls .btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.analysis-controls .btn.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.analysis-controls .btn.btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3) !important;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.control-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

.control-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.cache-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cache-status i {
    color: #17a2b8;
}

.cache-status.cached {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.cache-status.cached i {
    color: #28a745;
}

.cache-status.expired {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.cache-status.expired i {
    color: #ffc107;
}

/* 分析状态 */
.analysis-status {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-content i {
    color: #667eea;
    font-size: 18px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-left: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* 分析结果 */
.analysis-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 分析概览 */
.analysis-overview h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.analysis-overview h2 i {
    color: #667eea;
    margin-right: 10px;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.overview-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.card-content {
    flex: 1;
}

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

.card-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

/* 图表区域 */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.chart-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-container h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.chart-container h3 i {
    color: #667eea;
    margin-right: 8px;
}

.chart-container canvas {
    width: 100% !important;
    height: 300px !important;
    max-height: 300px;
    min-height: 250px;
    flex: 1;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fafafa;
}

/* AI分析报告 */
.ai-analysis {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* AI配置提示 */
.ai-config-notice {
    margin-bottom: 24px;
}

.ai-config-notice .notice-content {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 20px;
    color: #1565c0;
}

.ai-config-notice .notice-content i {
    color: #2196f3;
    font-size: 24px;
    margin-bottom: 12px;
}

.ai-config-notice .notice-content h4 {
    color: #1565c0;
    margin-bottom: 12px;
    font-size: 16px;
}

.ai-config-notice .notice-content ol {
    margin: 12px 0;
    padding-left: 20px;
}

.ai-config-notice .notice-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.ai-config-notice .notice-content code {
    background: rgba(33, 150, 243, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.ai-config-notice .notice-content a {
    color: #1976d2;
    text-decoration: none;
}

.ai-config-notice .notice-content a:hover {
    text-decoration: underline;
}

.ai-analysis h2 {
    color: #333;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
}

.ai-analysis h2 i {
    color: #667eea;
    margin-right: 10px;
}

.report-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.report-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.report-section h4 {
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.report-section h4 i {
    color: #667eea;
    margin-right: 8px;
}

.report-content {
    color: #555;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* 数据表格 */
.data-table-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.data-table-section h2 i {
    color: #667eea;
    margin-right: 10px;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.table-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-filter label {
    font-weight: 500;
    color: #333;
}

.table-search {
    position: relative;
    display: flex;
    align-items: center;
}

.table-search input {
    padding: 8px 12px 8px 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
}

.table-search i {
    position: absolute;
    left: 12px;
    color: #666;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
}

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

/* 错误提示 */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message i {
    font-size: 18px;
}

/* 图表错误提示样式 */
.chart-unavailable-notice,
.chart-error-notice {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.notice-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.notice-content i {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 20px;
}

.notice-content h3 {
    color: #333;
    margin-bottom: 16px;
    font-size: 20px;
}

.notice-content p {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}

.notice-content ul {
    text-align: left;
    margin: 16px 0;
    padding-left: 20px;
}

.notice-content li {
    color: #666;
    margin-bottom: 8px;
}

.chart-error-notice .notice-content i {
    color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .analysis-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        justify-content: space-between;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-search input {
        width: 100%;
    }
    
    .notice-content {
        padding: 20px;
        margin: 20px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 门店统计样式 */
.shop-stats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.shop-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.shop-stat-item:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.shop-name {
    color: #495057;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-count {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 20px;
    text-align: center;
}

/* 门店统计选中状态 */
.shop-stat-item.selected {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.shop-stat-item.selected .shop-name {
    color: white;
}

.shop-stat-item.selected .shop-count {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* 筛选状态显示 */
.filter-status {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.clear-filter-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.clear-filter-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.clear-filter-btn i {
    font-size: 10px;
}

/* ========== 过滤器工具栏样式 ========== */
.filter-toolbar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 100px;
    flex-shrink: 0;
}

.filter-label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    margin-bottom: 4px;
}

/* 日期过滤器样式 */
.date-filter {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 420px;
    flex-shrink: 0;
}

.date-shortcuts {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.date-shortcut-btn {
    padding: 5px 10px;
    border: 1px solid #d9d9d9;
    background: white;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.date-shortcut-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.date-shortcut-btn.active {
    background: #1890ff;
    border-color: #1890ff;
    color: white;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.date-input {
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    width: 110px;
    flex-shrink: 0;
}

.date-separator {
    color: #666;
    font-size: 14px;
}

/* 页面大小选择器 */
.page-size-select {
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100px;
}

.page-size-select:hover {
    border-color: #1890ff;
}

.page-size-select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 状态和分类过滤器样式 */
.filter-group select {
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    width: 120px;
}

.filter-group select:hover {
    border-color: #1890ff;
}

.filter-group select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 覆盖旧的样式，确保新设计优先级 */
.main-header .search-box {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    min-width: 300px !important;
    gap: 0 !important;
}

.main-header .search-input {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 12px 16px 12px 44px !important;
    color: white !important;
    font-size: 14px !important;
    border-radius: 24px !important;
    outline: none !important;
    width: auto !important;
    box-shadow: none !important;
}

.main-header .search-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    padding: 8px 12px !important;
    margin: 4px !important;
    border-radius: 20px !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .filter-section {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .date-filter {
        min-width: 380px;
    }
    
    .filter-group select,
    .page-size-select {
        width: 100px;
    }
}

@media (max-width: 1200px) {
    .date-filter {
        min-width: 300px;
        gap: 8px;
    }
    
    .date-input {
        width: 100px;
    }
    
    .date-shortcut-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 1024px) {
    .main-header .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 24px;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    
    .search-box {
        min-width: auto;
        width: 100%;
    }
    
    .filter-section {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .date-filter {
        min-width: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .filter-group select,
    .page-size-select {
        width: 100%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
}

h1 {
    color: #1890ff;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.ticket-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.ticket-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s;
}

.ticket-item:hover {
    background-color: #fafafa;
}

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

.ticket-checkbox {
    padding-top: 20px;
}

.ticket-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
}

.ticket-info {
    flex: 1;
    margin-right: 20px;
}

.ticket-info h3 {
    margin: 0 0 8px 0;
    color: #262626;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.ticket-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 6px 0;
}

.ticket-info-item {
    display: flex;
    align-items: center;
    color: #595959;
    font-size: 13px;
    line-height: 1.5;
}

.ticket-info-label {
    color: #8c8c8c;
    margin-right: 8px;
}

.ticket-info p {
    margin: 4px 0;
    color: #595959;
    font-size: 13px;
    line-height: 1.5;
}

.ticket-meta {
    min-width: 200px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid;
}

/* 不同状态的颜色 */
.status-tag.submitted {
    color: #faad14;
    background: #fff7e6;
    border-color: #ffd591;
}

.status-tag.accepted {
    color: #1890ff;
    background: #e6f7ff;
    border-color: #91d5ff;
}

.status-tag.suspending {
    color: #722ed1;
    background: #f9f0ff;
    border-color: #d3adf7;
}

.status-tag.resolved {
    color: #52c41a;
    background: #f6ffed;
    border-color: #b7eb8f;
}

.status-tag.finished {
    color: #52c41a;
    background: #f6ffed;
    border-color: #b7eb8f;
}

.status-tag.pending-audit {
    color: #fa8c16;
    background: #fff7e6;
    border-color: #ffd591;
}

.status-tag.upgraded {
    color: #eb2f96;
    background: #fff0f6;
    border-color: #ffadd2;
}

.status-tag.resolved-review {
    color: #13c2c2;
    background: #e6fffb;
    border-color: #87e8de;
}

.status-tag.unsubmit {
    color: #f5222d;
    background: #fff1f0;
    border-color: #ffa39e;
}

.ticket-time {
    color: #8c8c8c;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.5;
}

.error {
    color: #ff4d4f;
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #8c8c8c;
    font-size: 14px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #1890ff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: loading 0.8s linear infinite;
}

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

.status-filter {
    margin-bottom: 0;
}

.status-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    width: 120px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.status-select:hover {
    border-color: #40a9ff;
}

.status-select:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.classification-filter {
    margin-bottom: 0;
}

.classification-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    width: 120px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.classification-select:hover {
    border-color: #40a9ff;
}

.classification-select:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 工单流程样式 */
.process-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    min-width: 180px;
    transition: all 0.3s ease;
}

.process-step.completed {
    border-color: #52c41a;
    background: #f6ffed;
}

.process-step.active {
    border-color: #1890ff;
    background: #e6f7ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.step-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-weight: 600;
    color: #262626;
    margin-bottom: 4px;
    font-size: 14px;
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-person {
    color: #595959;
    font-size: 13px;
    font-weight: 500;
}

.step-time {
    color: #8c8c8c;
    font-size: 12px;
}

.step-comment {
    margin-top: 8px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #595959;
    word-break: break-word;
}

.step-status {
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.status-badge {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.result-text {
    font-size: 12px;
    font-weight: 500;
}

.process-arrow {
    font-size: 20px;
    color: #d9d9d9;
    font-weight: bold;
    flex-shrink: 0;
}

.process-step.completed + .process-arrow {
    color: #52c41a;
}

.process-step.active + .process-arrow {
    color: #1890ff;
}

/* 无流程信息样式 */
.no-workflow {
    color: #8c8c8c;
    font-style: italic;
    padding: 16px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px dashed #d9d9d9;
}

/* 简化的流程样式 */
/* 工作流列表样式 - 与移动端一致 */
.workflow-list {
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.workflow-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 16px;
}

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

.workflow-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workflow-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.workflow-role {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.workflow-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.workflow-user i {
    width: 20px;
    height: 20px;
    background: #1890ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.workflow-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.workflow-status .status-badge {
    font-size: 11px;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.workflow-time {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.workflow-remark {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 钉钉用户名样式 */
.dingtalk-user {
    color: #1890ff !important;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.dingtalk-user:hover {
    background-color: #e6f7ff;
    color: #0050b3 !important;
    transform: scale(1.02);
}

.dingtalk-user:active {
    background-color: #bae7ff;
    transform: scale(0.98);
}

/* 添加钉钉图标提示 */
.dingtalk-user::after {
    content: "📱";
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
}

/* 用户搜索弹窗样式 */
.user-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.user-search-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.user-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.user-search-header h3 {
    margin: 0;
    color: #262626;
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #8c8c8c;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #262626;
}

.user-search-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.search-keyword {
    color: #1890ff;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #e6f7ff;
    border-radius: 4px;
    border-left: 3px solid #1890ff;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.3s;
}

.user-item:hover {
    border-color: #1890ff;
    background: #f6ffed;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 6px;
}

.user-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.user-work-number,
.user-phone {
    font-size: 12px;
    color: #595959;
    background-color: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.user-modify-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
}

.user-modifier,
.user-modify-time {
    font-size: 11px;
    color: #8c8c8c;
}

.user-actions {
    margin-left: 16px;
}

.user-actions .copy-btn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 8px;
}

.user-actions .copy-btn:hover {
    background: #40a9ff;
}

.user-actions .edit-btn {
    background: #52c41a;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-actions .edit-btn:hover {
    background: #73d13d;
}

/* 工单详情中的用户搜索链接样式 */
.user-search-link {
    color: #1890ff;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

.user-search-link:hover {
    color: #40a9ff;
    text-decoration: underline;
}

/* 移动版链接样式 */
.mobile-link {
    color: #1890ff;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #1890ff;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mobile-link:hover {
    background: #1890ff;
    color: white;
    text-decoration: none;
}

/* 退出登录按钮样式 */
.logout-btn {
    background-color: #ff4d4f;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.logout-btn:hover {
    background-color: #ff7875;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(255, 77, 79, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
        align-items: stretch;
    }
    
    .process-arrow {
        align-self: center;
        transform: rotate(90deg);
        font-size: 16px;
    }
    
    .process-step {
        min-width: unset;
    }
    
    .process-flow-simple {
        flex-direction: column;
        align-items: stretch;
    }
    
    .process-arrow-simple {
        align-self: center;
        transform: rotate(90deg);
        font-size: 14px;
        margin: 8px 0;
    }
    
    .process-step-simple {
        min-width: unset;
        width: 100%;
    }
    
    .user-search-content {
        width: 95%;
        margin: 20px;
    }
    
    .user-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .user-actions {
        margin-left: 0;
        align-self: stretch;
    }
    
    .user-actions .copy-btn,
    .user-actions .edit-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .user-actions .copy-btn:last-child,
    .user-actions .edit-btn:last-child {
        margin-bottom: 0;
    }
}

.pagination {
    margin-top: 24px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #40a9ff;
    color: #40a9ff;
}

.pagination-btn.active {
    background: #1890ff;
    border-color: #1890ff;
    color: white;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    color: #d9d9d9;
    background: #f5f5f5;
    border-color: #d9d9d9;
}

.pagination-ellipsis {
    color: #8c8c8c;
    padding: 0 8px;
    user-select: none;
}

.pagination-total {
    margin-left: 16px;
    color: #8c8c8c;
    font-size: 14px;
}

.refresh-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.refresh-button:hover {
    background: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.refresh-button:active {
    background: #096dd9;
    transform: translateY(0);
}

/* 筛选器行 */
/* 旧的filter-row样式已被新的filter-toolbar替代 */
/* .filter-row {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
} */

/* 日期筛选器 */
.date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    width: 130px;
}

.date-input:hover {
    border-color: #40a9ff;
}

.date-input:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.date-separator {
    color: #8c8c8c;
    font-size: 14px;
    white-space: nowrap;
}

/* 日期快捷选择 */
.date-shortcuts {
    display: flex;
    gap: 6px;
    margin-right: 12px;
    flex-wrap: wrap;
}

.date-shortcut-btn {
    padding: 4px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    color: #595959;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 50px;
    text-align: center;
}

.date-shortcut-btn:hover {
    color: #40a9ff;
    border-color: #40a9ff;
}

.date-shortcut-btn.active {
    color: #1890ff;
    border-color: #1890ff;
    background: #e6f7ff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .ticket-item {
        flex-direction: column;
    }

    .ticket-meta {
        margin-top: 16px;
        align-items: flex-start;
        min-width: auto;
    }

    .status-filter {
        justify-content: stretch;
    }

    .status-select {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .ticket-info-row {
        flex-direction: column;
        gap: 8px;
    }

    .filter-row {
        flex-direction: column;
        gap: 12px;
    }

    .date-filter {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .date-shortcuts {
        margin-right: 0;
        justify-content: flex-start;
        width: 100%;
    }

    .date-shortcut-btn {
        flex: 1;
        min-width: 45px;
        font-size: 12px;
        padding: 4px 6px;
    }

    .date-input {
        width: 100%;
    }

    .date-separator {
        display: none;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

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

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #262626;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

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

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.ticket-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-section {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
}

.detail-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
}

.detail-label {
    width: 100px;
    color: #8c8c8c;
    flex-shrink: 0;
}

.detail-value {
    color: #262626;
    flex: 1;
}

.detail-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attachment-item {
    max-width: 200px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.attachment-item:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.attachment-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-label {
        width: auto;
        margin-bottom: 4px;
    }
}

/* 权限管理项样式 */
.auth-item {
    padding: 12px 0;
}

.auth-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 12px 0;
}

.auth-item:first-child {
    padding-top: 0;
}

.auth-item:last-child {
    padding-bottom: 0;
}

/* 图片预览弹窗样式 */
.image-preview-modal .modal-content {
    background: none;
    box-shadow: none;
    padding: 0;
    max-width: 90%;
    max-height: 90vh;
}

.image-preview-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.image-preview-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

#previewImage {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* 图片预览导航按钮 */
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.modal-prev {
    left: 16px;
}

.modal-next {
    right: 16px;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* 当只有一张图片时隐藏导航按钮 */
.image-preview-modal.single-image .modal-prev,
.image-preview-modal.single-image .modal-next {
    display: none;
}

/* 导航按钮禁用状态 */
.modal-prev:disabled,
.modal-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 分页大小选择器 */
.page-size-filter {
    display: flex;
    align-items: center;
}

.page-size-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    min-width: 100px;
}

.page-size-select:hover {
    border-color: #40a9ff;
}

.page-size-select:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .page-size-filter {
        width: 100%;
    }

    .page-size-select {
        width: 100%;
    }
}

/* 人员信息行样式 */
.people-row {
    display: flex;
    gap: 24px;
    margin: 12px 0;
}

.people-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.people-item .detail-label {
    width: auto;
    margin-right: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .people-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* 时间信息行样式 */
.time-row {
    display: flex;
    gap: 24px;
    margin: 12px 0;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-item .detail-label {
    width: auto;
    margin-right: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .time-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* 信息行样式 */
.info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 12px 0;
}

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

.info-item .detail-label {
    width: auto;
    margin-right: 0;
    color: #8c8c8c;
    flex-shrink: 0;
    min-width: 70px;
}

.info-item .detail-value {
    color: #262626;
    flex: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* 状态和操作按钮行样式 */
.status-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 操作按钮组样式 */
.action-buttons {
    display: inline-flex;
    gap: 8px;
    vertical-align: middle;
}

/* 统一按钮基础样式 */
.action-buttons button {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    color: white;
}

/* 受理按钮样式 */
.accept-btn {
    background: #1890ff;
}

.accept-btn:hover {
    background: #40a9ff;
}

.accept-btn:active {
    background: #096dd9;
}

/* 解决按钮样式 */
.resolve-btn {
    background: #52c41a;
}

.resolve-btn:hover {
    background: #73d13d;
}

.resolve-btn:active {
    background: #389e0d;
}

/* 转交按钮样式 */
.transfer-btn {
    background: #722ed1;
}

.transfer-btn:hover {
    background: #9254de;
}

.transfer-btn:active {
    background: #531dab;
}

/* 挂起按钮样式 */
.suspend-btn {
    background: #faad14;
}

.suspend-btn:hover {
    background: #ffc53d;
}

.suspend-btn:active {
    background: #d48806;
}

/* 取消挂起按钮样式 */
.resume-btn {
    background: #52c41a;
}

.resume-btn:hover {
    background: #73d13d;
}

.resume-btn:active {
    background: #389e0d;
}

/* 禁用状态 */
.action-buttons button:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
}

/* 消息提示样式 */
.message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 14px;
    color: white;
    opacity: 0;
    transition: all 0.3s;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 90%;
    word-break: break-word;
    text-align: center;
    min-width: 200px;
    pointer-events: none;
}

.message.show {
    opacity: 1;
}

.message.success {
    background: #52c41a;
}

.message.error {
    background: #ff4d4f;
}

.message.warning {
    background: #faad14;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .message {
        padding: 10px 24px;
        font-size: 13px;
        max-width: 85%;
        min-width: 160px;
    }
}

/* 解决对话框样式 */
.resolve-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2001;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.resolve-dialog h3 {
    margin: 0 0 16px 0;
    color: #262626;
    font-size: 16px;
}

.resolve-dialog textarea {
    width: 100%;
    height: 80px;
    margin: 12px 0;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    resize: vertical;
    font-size: 13px;
    min-height: 60px;
    max-height: 120px;
}

.resolve-dialog textarea:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.resolve-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.resolve-dialog-buttons button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.resolve-dialog-buttons .cancel-btn {
    background: white;
    border: 1px solid #d9d9d9;
    color: rgba(0, 0, 0, 0.65);
}

.resolve-dialog-buttons .cancel-btn:hover {
    border-color: #40a9ff;
    color: #40a9ff;
}

.resolve-dialog-buttons .submit-btn {
    background: #52c41a;
    border: none;
    color: white;
}

.resolve-dialog-buttons .submit-btn:hover {
    background: #73d13d;
}

.resolve-dialog-buttons .submit-btn:active {
    background: #389e0d;
}

/* 快捷回复样式 */
.quick-replies {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 挂起对话框样式 */
.suspend-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2001;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.suspend-dialog h3 {
    margin: 0 0 16px 0;
    color: #262626;
    font-size: 16px;
}

.suspend-dialog textarea {
    width: 100%;
    height: 80px;
    margin: 12px 0;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    resize: vertical;
    font-size: 13px;
    min-height: 60px;
    max-height: 120px;
}

.suspend-dialog textarea:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.suspend-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.suspend-dialog-buttons button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.suspend-dialog-buttons .cancel-btn {
    background: white;
    border: 1px solid #d9d9d9;
    color: rgba(0, 0, 0, 0.65);
}

.suspend-dialog-buttons .cancel-btn:hover {
    border-color: #40a9ff;
    color: #40a9ff;
}

.suspend-dialog-buttons .submit-btn {
    background: #faad14;
    border: none;
    color: white;
}

.suspend-dialog-buttons .submit-btn:hover {
    background: #ffc53d;
}

.suspend-dialog-buttons .submit-btn:active {
    background: #d48806;
}

.quick-reply-btn {
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 12px;
    color: #595959;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.quick-reply-btn:hover {
    background: #e6f7ff;
    border-color: #1890ff;
    color: #1890ff;
}

/* 添加提示框效果 */
.quick-reply-btn:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 8px;
    z-index: 1;
}

.quick-reply-btn:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.75);
    margin-bottom: -4px;
    z-index: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .quick-reply-btn {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* 处理结论样式 */
.resolve-result {
    margin: 16px 0;
}

.resolve-result label {
    color: #262626;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.result-options {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.result-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.result-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.result-option span {
    font-size: 14px;
    color: #595959;
}

.result-option:hover span {
    color: #1890ff;
}

/* 批量操作区域样式 */
.batch-actions {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.select-all-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-all-container input[type="checkbox"],
.ticket-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.batch-resolve-btn {
    padding: 6px 16px;
    background: #52c41a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.batch-resolve-btn:hover {
    background: #73d13d;
}

.batch-resolve-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
}

/* 批量受理按钮样式 */
.batch-accept-btn {
    background: #1890ff;
}

.batch-accept-btn:hover {
    background: #40a9ff;
}

.batch-accept-btn:active {
    background: #096dd9;
}

.batch-accept-btn:disabled {
    background: #d9d9d9;
}

/* 转交对话框样式 */
.transfer-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2001;
    width: 90%;
    max-width: 400px;
}

.transfer-form {
    margin: 16px 0;
}

.form-item {
    margin-bottom: 16px;
}

.form-item label {
    display: block;
    margin-bottom: 8px;
    color: #262626;
    font-size: 14px;
}

.transfer-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.transfer-select:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* 移动端适配样式 */
@media (max-width: 768px) {
    /* 工单列表项布局 */
    .ticket-item {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }

    .ticket-content {
        flex-direction: column;
        gap: 12px;
    }

    .ticket-info {
        margin-right: 0;
    }

    .ticket-meta {
        width: 100%;
        min-width: unset;
        align-items: flex-start;
        text-align: left;
    }

    /* 状态和操作按钮行 */
    .status-action-row {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .action-buttons {
        display: flex;
        gap: 8px;
    }

    .action-buttons button {
        flex: 1;
        min-width: 80px;
        padding: 6px 12px;
    }

    /* 工单信息行 */
    .ticket-info-row {
        flex-direction: column;
        gap: 4px;
    }

    .ticket-info-item {
        width: 100%;
    }

    /* 批量操作区域 */
    .batch-actions {
        flex-wrap: wrap;
        padding: 8px 12px;
    }

    .batch-resolve-btn,
    .batch-accept-btn {
        width: 100%;
        padding: 8px;
        text-align: center;
    }

    /* 对话框样式 */
    .resolve-dialog,
    .transfer-dialog {
        width: 95%;
        max-width: none;
        padding: 16px;
    }

    .quick-replies {
        gap: 6px;
    }

    .quick-reply-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .result-options {
        flex-direction: column;
        gap: 12px;
    }

    /* 日期筛选器 */
    .date-filter {
        flex-direction: column;
        gap: 8px;
    }

    .date-shortcuts {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .date-shortcut-btn {
        flex: 1;
        min-width: 60px;
        padding: 4px 8px;
        font-size: 12px;
    }

    .date-input {
        width: 100%;
    }

    /* 分页 */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px;
    }

    .pagination-btn {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .pagination-total {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    /* 状态选择器 */
    .status-select {
        width: 100%;
    }

    /* 页码选择器 */
    .page-size-select {
        width: 100%;
    }

    /* 刷新按钮 */
    .refresh-button {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 375px) {
    .ticket-item {
        padding: 8px;
    }

    .ticket-info h3 {
        font-size: 14px;
    }

    .ticket-info p,
    .ticket-info-item,
    .ticket-time {
        font-size: 12px;
    }

    .action-buttons button {
        min-width: 60px;
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* 问题类型样式 */
.problem-type {
    margin: 16px 0;
}

.problem-type label {
    color: #262626;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.type-options {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.type-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.type-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.type-option span {
    font-size: 14px;
    color: #595959;
}

.type-option:hover span {
    color: #1890ff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .type-options {
        flex-direction: column;
        gap: 12px;
    }
}

/* 用户链接样式 */
.user-link {
    color: #1890ff;
    text-decoration: none;
    transition: all 0.3s;
}

.user-link:hover {
    color: #40a9ff;
    text-decoration: underline;
}

.user-link:active {
    color: #096dd9;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .user-link {
        font-size: 13px;
    }
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s;
}

.search-input:hover {
    border-color: #40a9ff;
}

.search-input:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.search-btn {
    padding: 8px 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-btn:hover {
    background: #40a9ff;
}

.search-btn:active {
    background: #096dd9;
}

.search-icon {
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-box {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
        width: auto;
    }
    
    .search-btn {
        padding: 8px 12px;
    }
}

/* 复制按钮样式 */
.copy-wrapper {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    padding: 2px 6px;
    background: transparent;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #f5f5f5;
    border-color: #40a9ff;
}

.copy-btn:active {
    background: #e6f7ff;
}

.copy-icon {
    font-size: 14px;
    line-height: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .copy-btn {
        padding: 1px 4px;
    }
    
    .copy-icon {
        font-size: 12px;
    }
}

/* 登录界面样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-container {
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 360px;
}

.login-container h2 {
    text-align: center;
    color: #1890ff;
    margin: 0 0 24px 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.login-input:hover {
    border-color: #40a9ff;
}

.login-input:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.login-btn {
    padding: 8px 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #40a9ff;
}

.login-btn:active {
    background: #096dd9;
}

/* 推理内容样式 */
.reasoning-content {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 1px solid #d1e7ff;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reasoning-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reasoning-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reasoning-header h4 i {
    color: rgba(255, 255, 255, 0.9);
}

.reasoning-header .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.reasoning-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.reasoning-body {
    padding: 20px;
    background: white;
}

.reasoning-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

/* 模型信息样式 */
.model-info {
    margin-bottom: 15px;
}

.model-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.model-badge i {
    font-size: 14px;
}

.model-name {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 故障分析样式 */
.fault-analysis {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fault-analysis h2 {
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fault-analysis h2 i {
    color: #ff6b6b;
}

.fault-overview {
    margin-bottom: 24px;
}

.fault-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.fault-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 1px solid #ffd6d6;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.fault-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.fault-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.fault-content {
    flex: 1;
}

.fault-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.fault-value {
    font-size: 24px;
    font-weight: 600;
    color: #ff6b6b;
}

.fault-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.fault-chart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.fault-chart-container h3 {
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.fault-chart-container h3 i {
    color: #ff6b6b;
}

.fault-chart-container canvas {
    max-height: 300px;
}

.fault-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.fault-details h3 {
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fault-details h3 i {
    color: #ff6b6b;
}

.no-faults-message {
    text-align: center;
    padding: 40px 20px;
    color: #28a745;
}

.no-faults-message i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.no-faults-message h4 {
    margin-bottom: 8px;
    color: #28a745;
}

.fault-analysis-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fault-summary {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #ff6b6b;
}

.fault-summary h4 {
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fault-summary h4 i {
    color: #ff6b6b;
}

.fault-summary p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.fault-types-analysis {
    background: white;
    border-radius: 8px;
    padding: 16px;
}

.fault-types-analysis h4 {
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fault-types-analysis h4 i {
    color: #ff6b6b;
}

.fault-types-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fault-type-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

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

.fault-type-name {
    font-weight: 600;
    color: #333;
}

.fault-type-count {
    font-size: 14px;
    color: #666;
}

.fault-type-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.fault-type-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff5252 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.fault-suggestions {
    background: white;
    border-radius: 8px;
    padding: 16px;
}

.fault-suggestions h4 {
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fault-suggestions h4 i {
    color: #ffc107;
}

.suggestions-list ul {
    margin: 0;
    padding-left: 20px;
}

.suggestions-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.suggestions-list strong {
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fault-cards {
        grid-template-columns: 1fr;
    }
    
    .fault-charts {
        grid-template-columns: 1fr;
    }
    
    .fault-card {
        padding: 16px;
    }
    
    .fault-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .fault-value {
        font-size: 20px;
    }
}

/* ========== 图标备用方案 ========== */
/* 当Font Awesome加载失败时的备用图标 */
.icon-fallback {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 常用图标的备用方案 */
.fas.fa-chart-line::before,
.fa-chart-line::before {
    content: "📈";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-chart-pie::before,
.fa-chart-pie::before {
    content: "🥧";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-chart-bar::before,
.fa-chart-bar::before {
    content: "📊";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-bug::before,
.fa-bug::before {
    content: "🐛";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-clock::before,
.fa-clock::before {
    content: "⏰";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-tools::before,
.fa-tools::before {
    content: "🔧";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-exclamation-triangle::before,
.fa-exclamation-triangle::before {
    content: "⚠️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-robot::before,
.fa-robot::before {
    content: "🤖";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-play::before,
.fa-play::before {
    content: "▶️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-sync-alt::before,
.fa-sync-alt::before {
    content: "🔄";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-database::before,
.fa-database::before {
    content: "💾";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-trash::before,
.fa-trash::before {
    content: "🗑️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-arrow-left::before,
.fa-arrow-left::before {
    content: "⬅️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-ticket-alt::before,
.fa-ticket-alt::before {
    content: "🎫";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-percentage::before,
.fa-percentage::before {
    content: "%";
    font-weight: bold;
}

.fas.fa-star::before,
.fa-star::before {
    content: "⭐";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-store::before,
.fa-store::before {
    content: "🏪";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-tags::before,
.fa-tags::before {
    content: "🏷️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-list::before,
.fa-list::before {
    content: "📋";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-lightbulb::before,
.fa-lightbulb::before {
    content: "💡";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-rocket::before,
.fa-rocket::before {
    content: "🚀";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-table::before,
.fa-table::before {
    content: "📊";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-search::before,
.fa-search::before {
    content: "🔍";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-angle-double-left::before,
.fa-angle-double-left::before {
    content: "⏮️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-angle-left::before,
.fa-angle-left::before {
    content: "◀️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-angle-right::before,
.fa-angle-right::before {
    content: "▶️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-angle-double-right::before,
.fa-angle-double-right::before {
    content: "⏭️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-exclamation-circle::before,
.fa-exclamation-circle::before {
    content: "❌";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-info-circle::before,
.fa-info-circle::before {
    content: "ℹ️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fas.fa-spinner::before,
.fa-spinner::before {
    content: "⏳";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* ========== 分析历史弹窗样式 ========== */
.analysis-history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.analysis-history-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.analysis-history-modal .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

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

.analysis-history-modal .modal-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-history-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.analysis-history-modal .modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.analysis-history-modal .modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.analysis-history-modal .modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-date-group {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.date-header {
    background: #f8f9fa;
    padding: 12px 16px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

.date-results {
    display: flex;
    flex-direction: column;
}

.history-item {
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

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

.history-item:hover {
    background: #f8f9fa;
}

.history-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.history-time {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

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

.history-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.info-item i {
    color: #999;
}

.history-id {
    font-size: 12px;
    color: #999;
    font-family: monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .analysis-history-modal .modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .analysis-history-modal .modal-header,
    .analysis-history-modal .modal-body,
    .analysis-history-modal .modal-footer {
        padding: 16px;
    }
    
    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .history-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .history-info {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========== 分页控件样式 ========== */
.pagination-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

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

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 16px;
}

.page-ellipsis {
    padding: 8px 4px;
    color: #999;
    font-weight: bold;
}

.pagination-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}

.pagination-settings label {
    font-weight: 500;
    color: #333;
}

.pagination-settings select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.pagination-settings input[type="number"] {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.pagination-settings input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 分页按钮样式 */
.pagination-controls .btn {
    min-width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pagination-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
}

.pagination-controls .btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-numbers .btn {
    min-width: 36px;
    height: 36px;
    padding: 0;
    font-weight: 600;
}

.page-numbers .btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.page-numbers .btn.btn-outline-secondary {
    border-color: #ddd;
    color: #666;
}

.page-numbers .btn.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-container {
        padding: 16px;
    }
    
    .pagination-controls {
        gap: 4px;
    }
    
    .page-numbers {
        margin: 0 8px;
        gap: 2px;
    }
    
    .pagination-settings {
        flex-direction: column;
        gap: 8px;
    }
    
    .pagination-controls .btn {
        min-width: 36px;
        height: 32px;
        font-size: 12px;
    }
    
    .page-numbers .btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pagination-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .page-numbers {
        margin: 0;
        order: -1;
    }
    
    .pagination-settings {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
} 