/* 订单详情弹窗样式 */
.order-detail-container {
    max-width: 500px;
    margin: 0 auto;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.order-id {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-id::before {
    content: "📋";
    font-size: 0.9rem;
}

.order-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.section-title i {
    color: #3b82f6;
    font-size: 0.9rem;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.detail-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.8rem;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.8rem;
}

.detail-value.buy-type {
    color: #10b981;
    background: #ecfdf5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

.detail-value.sell-type {
    color: #ef4444;
    background: #fef2f2;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

.detail-value.total-amount {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 700;
}

/* 订单详情弹窗的关闭按钮样式 */
#orderDetailModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

#orderDetailModal .modal-footer .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#orderDetailModal .modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-detail-container {
        max-width: 100%;
        margin: 0;
    }
    
    .order-detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .order-detail-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.75rem;
    }
    
    .detail-section {
        padding: 0.75rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem;
    }
    
    #orderDetailModal .modal-footer {
        padding: 0.75rem;
    }
    
    #orderDetailModal .modal-footer .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.8rem;
    }
}
