/* 订单列表页面样式 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    height: 100vh;
}

.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: #f5f5f5;
}

/* 页面头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.header h1 {
    font-size: 20px;
    margin: 0;
    color: #333;
    font-weight: 600;
}

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

.header-actions input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    width: 200px;
    font-size: 14px;
}

/* 搜索表单 */
.search-form {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-item label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.form-item input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    width: 180px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

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

.btn-primary {
    background-color: #1890ff;
    color: white;
}

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

.btn-secondary {
    background-color: white;
    color: #666;
    border: 1px solid #d9d9d9;
}

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

/* 订单表格 */
.table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

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

.table th {
    background-color: #fafafa;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.table tr:hover {
    background-color: #f5f5f5;
}

.table td {
    font-size: 14px;
    color: #666;
}

/* 状态标签 */
.status-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

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

.status-processing {
    background-color: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.status-cancelled {
    background-color: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
    gap: 8px;
    padding: 16px 0;
    background-color: white;
    border-top: 1px solid #e8e8e8;
    border-radius: 0 0 8px 8px;
}

.pagination span {
    font-size: 14px;
    color: #666;
    margin-right: 8px;
}

.pagination a {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover {
    border-color: #1890ff;
    color: #1890ff;
}

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

.pagination a.disabled {
    color: #d9d9d9;
    border-color: #d9d9d9;
    cursor: not-allowed;
}

.pagination a.disabled:hover {
    color: #d9d9d9;
    border-color: #d9d9d9;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .search-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-item {
        width: 100%;
    }
    
    .form-item input {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .table th,
    .table td {
        padding: 12px;
        font-size: 13px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}
