/* 列表页面样式优化 */

/* 页面头部 */
.list-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    padding: 24px 32px;
    color: #fff;
    margin-bottom: 0;
}

.list-page-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.list-page-header-icon i {
    font-size: 24px;
}

.list-page-header h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.list-page-header .text-muted {
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px;
}

/* 搜索区域 */
.search-section {
    background: #fff;
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.search-section .form-label {
    font-size: 12px;
    color: #909399;
    font-weight: 500;
    margin-bottom: 8px;
}

.search-section .el-input__wrapper,
.search-section .el-select__wrapper {
    border-radius: 8px;
    box-shadow: 0 0 0 1px #dcdfe6 inset;
    transition: all 0.3s;
}

.search-section .el-input__wrapper:hover,
.search-section .el-select__wrapper:hover {
    box-shadow: 0 0 0 1px #667eea inset;
}

.search-section .el-input__wrapper.is-focus,
.search-section .el-select__wrapper.is-focus {
    box-shadow: 0 0 0 1px #667eea inset, 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* 高级筛选按钮 */
.advanced-filter-btn {
    color: #667eea;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    border: none;
    transition: all 0.3s;
}

.advanced-filter-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

.advanced-filter-btn i {
    margin-right: 6px;
}

/* 高级筛选区域 */
.advanced-filter-section {
    background: #fafbff;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

/* 表格容器 */
.table-container {
    padding: 0;
}

/* 表格样式 */
.list-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.list-table thead {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.list-table thead th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #606266;
    border-bottom: 2px solid #ebeef5;
    white-space: nowrap;
}

.list-table thead th:first-child {
    padding-left: 24px;
    border-radius: 0;
}

.list-table thead th:last-child {
    padding-right: 24px;
}

.list-table tbody tr {
    transition: all 0.2s;
}

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

.list-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

.list-table tbody td:first-child {
    padding-left: 24px;
}

.list-table tbody td:last-child {
    padding-right: 24px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #909399;
}

.empty-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* 分页区域 */
.pagination-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 16px 16px;
}

.pagination-info {
    font-size: 14px;
    color: #606266;
}

.pagination-info strong {
    color: #333;
}

.pagination-info .text-primary {
    color: #667eea !important;
}

/* 分页按钮 */
.pagination {
    display: flex;
    gap: 4px;
}

.page-item .page-link {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    color: #606266;
    font-size: 14px;
    transition: all 0.2s;
}

.page-item .page-link:hover {
    background: #f0f4ff;
    border-color: #667eea;
    color: #667eea;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

.page-item.disabled .page-link {
    background: #f5f5f5;
    color: #c0c4cc;
    cursor: not-allowed;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.action-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    color: #fff;
}

.action-btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.action-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(17, 153, 142, 0.3);
    color: #fff;
}

.action-btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.action-btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 172, 254, 0.3);
    color: #fff;
}

.action-btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.action-btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(240, 147, 251, 0.3);
    color: #fff;
}

.action-btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
}

.action-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
    color: #fff;
}

.action-btn-default {
    background: #f5f5f5;
    color: #606266;
}

.action-btn-default:hover {
    background: #e8e8e8;
    color: #333;
}

/* 状态标签 */
.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #d4850a;
}

.status-processing {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #1a8cff;
}

.status-transfer {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    color: #8b5a9e;
}

.status-completed {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    color: #2d8f4e;
}

/* 紧急度标签 */
.urgency-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.urgency-normal {
    background: #f0f0f0;
    color: #666;
}

.urgency-priority {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #d4850a;
}

.urgency-urgent {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
}

/* 工单编号链接 */
.ticket-no-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.ticket-no-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 992px) {
    .search-section {
        padding: 16px;
    }
    
    .list-table thead th,
    .list-table tbody td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .pagination-section {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .list-page-header {
        padding: 16px;
        border-radius: 12px 12px 0 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}
