/**
 * 待审核订单页面样式
 * 卡片式布局样式
 */

/* 订单卡片样式 */
.order-card {
    background: #fff;
    border: 1px solid #e7eaec;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* 订单头部信息 */
.order-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e7eaec;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.order-header span {
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

/* 订单表格样式 */
.order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border: 1px solid #e7eaec;
    border-radius: 4px;
    overflow: hidden;
}

.order-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #e7eaec;
    font-size: 14px;
    position: relative;
}

.order-table th:last-child {
    border-right: none;
}

.order-table td {
    padding: 15px;
    border-bottom: 1px solid #e7eaec;
    border-right: 1px solid #e7eaec;
    vertical-align: middle;
    position: relative;
    text-align: center;
}

.order-table td:last-child {
    border-right: none;
}

.order-table tr:last-child td {
    border-bottom: none;
}

.order-table tr:hover td {
    background-color: #f8f9fa;
}

/* 表格单元格分隔线增强 */
.order-table th::after,
.order-table td::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: #e7eaec;
}

.order-table th:last-child::after,
.order-table td:last-child::after {
    display: none;
}

/* 产品图片样式 */
.product-img {
    width: 120px;
    height: 120px;
    background: transparent;
    border-radius: 0;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    border: none;
    transition: all 0.3s ease;
    box-shadow: none;
    padding: 0;
}

.product-img:hover {
    transform: scale(1.05);
}

/* 按钮样式 */
.btn-view-details,
.view-details-btn {
    background: #1ab394;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view-details:hover,
.view-details-btn:hover {
    background: #18a689;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(26, 179, 148, 0.3);
}

/* 操作按钮容器样式 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* 撤回审核按钮样式 */
.btn-withdraw-audit {
    background: #f8ac59;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}

.btn-withdraw-audit:hover {
    background: #e89c49;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(248, 172, 89, 0.3);
}

.btn-withdraw-audit:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(248, 172, 89, 0.3);
}

.btn-withdraw-audit:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 修改按钮样式 */
.btn-modify {
    background: #1c84c6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}

.btn-modify:hover {
    background: #1a76b4;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(28, 132, 198, 0.3);
}

.btn-modify:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(28, 132, 198, 0.3);
}

.btn-modify:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 删除按钮样式 */
.btn-delete {
    background: #ed5565;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}

.btn-delete:hover {
    background: #da4453;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(237, 85, 101, 0.3);
}

.btn-delete:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(237, 85, 101, 0.3);
}

.btn-delete:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 审核状态样式 */
.audit-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.audit-status.pending {
    background: #f8ac59;
    color: white;
}

.audit-status.rejected {
    background: #ed5565;
    color: white;
}

.audit-status.approved {
    background: #1ab394;
    color: white;
}

.order-status-display {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 详情模态框样式 */
.detail-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e7eaec;
}

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

.detail-section h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start;
}

.detail-label {
    width: 120px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.reject-reason {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

/* 加载和空状态样式 */
.loading-state,
.empty-order-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
    padding: 40px 20px;
}

.loading-icon {
    font-size: 48px;
    color: #1ab394;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    color: #2c3e50;
}

.empty-icon {
    font-size: 64px;
    color: #b0b8c9;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.empty-description {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 24px;
    max-width: 400px;
    line-height: 1.5;
}

.error-icon {
    font-size: 64px;
    color: #ed5565;
    margin-bottom: 20px;
}

.error-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.error-description {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 24px;
    max-width: 400px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .order-table {
        font-size: 13px;
    }
    
    .order-table th,
    .order-table td {
        padding: 8px 10px;
    }
    
    .product-img {
        width: 40px;
        height: 40px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        width: auto;
    }
}

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

.order-card {
    animation: fadeIn 0.5s ease-out;
}

/* 表格标题高级样式 */
.ibox-title {
    background: linear-gradient(135deg, #1ab394 0%, #18a689 100%);
    border-radius: 8px 8px 0 0;
    padding: 20px 25px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.ibox-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    z-index: 1;
}

.ibox-title h5 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

.ibox-title h5::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: rgba(255,255,255,0.8);
    margin-right: 12px;
    border-radius: 2px;
    vertical-align: middle;
}

/* 撤回并删除确认模态框样式 */
.confirm-delete-content {
    text-align: center;
    padding: 20px 0;
}

.confirm-delete-icon {
    font-size: 48px;
    color: #f8ac59;
    margin-bottom: 20px;
    display: block;
}

.confirm-delete-title {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 18px;
}

.confirm-delete-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* 图片上传区域样式 */
.image-upload-container {
    position: relative;
}

.current-image {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.current-image img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

/* 图片悬停效果 */
.image-hover-container {
    position: relative;
    display: inline-block;
}

.image-hover-container:hover .image-actions {
    opacity: 1;
    visibility: visible;
}

.image-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.image-action-btn:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-action-btn.view {
    color: #1c84c6;
}

.image-action-btn.delete {
    color: #ed5565;
}

/* 拖放上传区域样式 */
.drop-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    position: relative;
}

.drop-zone:hover {
    border-color: #1ab394;
    background: #f0f9f7;
}

.drop-zone.dragover {
    border-color: #1ab394;
    background: #e8f5f2;
    transform: scale(1.02);
}

.drop-zone-content {
    color: #666;
}

.drop-zone-icon {
    font-size: 48px;
    color: #b0b8c9;
    margin-bottom: 15px;
    display: block;
}

.drop-zone-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.drop-zone-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.drop-zone-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 图片预览样式 */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(237, 85, 101, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-item:hover .preview-remove {
    opacity: 1;
}

/* 修改表单样式 */
.modify-form .form-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e7eaec;
}

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

.modify-form .form-section h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
}

.modify-form .form-group {
    margin-bottom: 15px;
}

.modify-form .form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

/* 滚动条样式 */
.order-table-container {
    max-height: 400px;
    overflow-y: auto;
}

.order-table-container::-webkit-scrollbar {
    width: 6px;
}

.order-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.order-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.order-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 消息提示样式 - 右侧上方插入式原生状态显示 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.message-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.message-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.message-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

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

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