/* 订单详情样式 */
.order-detail-content {
    background: #2a2a2a;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #444;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    color: #aaa;
    font-size: 14px;
    min-width: 100px;
}

.info-value {
    color: #fff;
    font-size: 14px;
    text-align: right;
    flex: 1;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: transparent;
    border-radius: 8px;
}

/* 内联商品信息样式 */
.product-info-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.product-item-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 4px;
}

.product-item-inline:last-child {
    margin-bottom: 0;
}

.product-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.product-name-inline {
    flex: 1;
    color: #fff;
    font-size: 13px;
    text-align: left;
}

.product-quantity-inline {
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    min-width: 30px;
    text-align: right;
}

/* 商品总结信息样式 */
.product-summary {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.summary-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.no-product-info {
    color: #aaa;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #444;
}

.status-item:last-child {
    border-bottom: none;
}

/* 响应式设计 - 订单详情模态框 */
@media (max-width: 768px) {
    .order-detail-content {
        width: 95%;
        max-height: 90vh;
        margin: 20px 0;
    }
    
    .order-detail-header {
        padding: 20px 16px 16px 16px;
    }
    
    .order-detail-header h2 {
        font-size: 18px;
    }
    
    .product-hero-section {
        padding: 20px 16px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .product-hero-image {
        width: 80px;
        height: 80px;
    }
    
    .product-hero-name {
        font-size: 20px;
    }
    
    .product-hero-details {
        justify-content: center;
    }
    
    .order-number-value {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
    
    .order-amount-section,
    .order-info-section,
    .shipping-section {
        padding: 20px 16px;
    }
    
    .order-amount-section h3,
    .order-info-section h3,
    .shipping-section h3 {
        font-size: 16px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .shipping-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .shipping-label {
        min-width: auto;
    }
    
    .shipping-value {
        text-align: left;
    }
    
    .order-actions {
        padding: 20px 16px;
        flex-direction: column;
    }
    
    .order-action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .order-detail-content {
        width: 98%;
        border-radius: 8px;
    }
    
    .order-detail-header {
        padding: 16px 12px 12px 12px;
    }
    
    .order-detail-header h2 {
        font-size: 16px;
    }
    
    .order-detail-close {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .product-hero-section {
        padding: 16px 12px;
    }
    
    .product-hero-image {
        width: 70px;
        height: 70px;
    }
    
    .product-hero-name {
        font-size: 18px;
    }
    
    .product-quantity,
    .product-price {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .more-products-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .order-amount-section,
    .order-info-section,
    .shipping-section {
        padding: 16px 12px;
    }
    
    .amount-breakdown,
    .shipping-details {
        padding: 12px;
    }
    
    .amount-row {
        padding: 6px 0;
    }
    
    .amount-label,
    .amount-value {
        font-size: 13px;
    }
    
    .amount-row.total .amount-label,
    .amount-row.total .amount-value {
        font-size: 14px;
    }
    
    .order-actions {
        padding: 16px 12px;
    }
}

/* 响应式设计 - 订单列表 */
@media (max-width: 768px) {
    .order-item-compact {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        min-height: auto;
        max-height: none;
        gap: 10px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .order-item-compact:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .product-image-container {
        align-self: center;
        width: 80px;
        height: 80px;
    }
    
    .product-name-compact {
        max-width: 100%;
        text-align: center;
        font-size: 16px;
    }
    
    .order-number-compact,
    .date-compact,
    .quantity-compact,
    .amount-compact {
        min-width: auto;
        text-align: center;
        font-size: 14px;
    }
    
    .order-status-compact {
        align-self: center;
        min-width: 80px;
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .confirm-receipt-btn-compact,
    .pay-now-btn-compact {
        align-self: center;
        min-width: 100px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .order-info-panel {
        margin: 10px;
        padding: 15px;
    }
    
    .order-item-compact {
        padding: 12px;
        gap: 8px;
    }
    
    .product-image-container {
        width: 60px;
        height: 60px;
    }
    
    .product-name-compact {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .order-number-compact,
    .date-compact,
    .quantity-compact,
    .amount-compact {
        font-size: 12px;
    }
}

/* 订单详情模态框样式 - 匹配图2设计 */
.order-detail-content {
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #444;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.order-detail-body {
    padding: 0;
}

.order-detail-section {
    padding: 24px;
    border-bottom: 1px solid #444;
}

.order-detail-section:last-child {
    border-bottom: none;
}

.order-detail-section h4 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 20px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 商品信息样式 - 匹配图2设计 */
.product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.product-item:last-child {
    margin-bottom: 0;
}

.product-image {
    flex-shrink: 0;
}

.product-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #555;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.product-price {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.product-quantity,
.product-subtotal {
    display: none; /* 隐藏数量和小计，只显示商品名和价格 */
}

/* 订单信息样式 - 匹配图2设计 */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 0;
    border-bottom: none;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: #aaa;
    font-size: 14px;
    min-width: 100px;
    flex-shrink: 0;
    font-weight: 400;
}

.info-value {
    color: #fff;
    font-size: 14px;
    text-align: right;
    flex: 1;
    word-break: break-all;
    font-weight: 400;
}

/* 订单状态样式 - 匹配图2设计 */
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0;
    border-bottom: none;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    color: #aaa;
    font-size: 14px;
    min-width: 100px;
    font-weight: 400;
}

.status-value {
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
}

/* 状态颜色 - 匹配图2的绿色已送达状态 */
.status-pending {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.15);
}

.status-paid,
.status-processing {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.15);
}

.status-shipped {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
}

.status-delivered,
.status-completed {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-cancelled {
    color: #f44336;
    background: rgba(244, 67, 54, 0.15);
}

.status-refunded {
    color: #9c27b0;
    background: rgba(156, 39, 176, 0.15);
}

.status-unknown {
    color: #9e9e9e;
    background: rgba(158, 158, 158, 0.15);
}

/* 详情按钮样式 */
.details-btn-compact {
    background: #4caf50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
    margin-right: 8px;
    transition: background 0.2s;
}

.details-btn-compact:hover {
    background: #45a049;
}

.order-detail-close {
    width: 36px;
    height: 36px;
    padding: 6px;
}