/* ========================================
   订单列表页面样式
   ======================================== */

/* 状态标签 */
.order-tabs {
    display: flex;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    position: sticky;
    top: 60px;
    z-index: 10;
}

.order-tabs .tab-item {
    flex: 1;
    min-width: 70px;
    padding: 14px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    white-space: nowrap;
}

.order-tabs .tab-item.active {
    color: var(--primary);
    font-weight: 500;
}

.order-tabs .tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* 订单列表 */
.order-list {
    padding: 12px;
    padding-bottom: 100px;
}

.order-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.order-no {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.order-status {
    font-size: 0.85rem;
    font-weight: 500;
}

.order-status.pending { color: var(--warning); }
.order-status.delivering { color: var(--primary); }
.order-status.completed { color: var(--success); }
.order-status.cancelled { color: var(--text-muted); }

.order-body {
    padding: 16px;
}

.order-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.order-item:last-child {
    margin-bottom: 0;
}

.item-img {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.item-detail {
    flex: 1;
}

.item-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.item-spec {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.item-price-qty {
    text-align: right;
}

.item-price {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.item-qty {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
}

.order-total {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-total strong {
    color: var(--error);
    font-size: 1.1rem;
}

.order-actions {
    display: flex;
    gap: 8px;
}

.btn-order {
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
}

.btn-order-outline {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: transparent;
}

.btn-order-primary {
    background: var(--primary);
    color: white;
}

.btn-order-danger {
    background: var(--error);
    color: white;
}

/* 配送信息 */
.delivery-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-light);
    margin: 0 16px 12px;
    border-radius: var(--radius-sm);
}

.delivery-info span {
    font-size: 0.8rem;
    color: var(--primary);
}
