/* 头部标题 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 750px;
    padding: 15px;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.header h1 {
    font-size: 18px;
    margin: 0;
}

/* 内容区域 */
.container {
    margin-top: 50px;
    margin-bottom: 60px;
    padding: 10px;
}

/* 订单列表 */
.order-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 订单头部 */
.order-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-no {
    color: #666;
    font-size: 14px;
}

.order-status {
    color: #f00;
    font-size: 14px;
}

.status-shipped {
    color: #ff9800;
}

.status-completed {
    color: #4caf50;
}

/* 订单内容 */
.order-content {
    padding: 10px 0;
}

.goods-item {
    display: flex;
    padding: 10px 0;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}

.goods-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 图片加载失败时的默认样式 */
.goods-item img:not([src]),
.goods-item img[src=""],
.goods-item img[src*="error"] {
    background-color: #f5f5f5;
}

.goods-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.goods-info h3 {
    font-size: 14px;
    margin: 0 0 8px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.goods-price-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: #f00;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.quantity {
    color: #999;
    font-size: 12px;
    margin: 0;
}

/* 订单底部 */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: 5px;
}

.order-total {
    color: #333;
    font-size: 13px;
}

.order-total .total-price {
    color: #f00;
    font-weight: 500;
    margin-left: 5px;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.order-actions button {
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.btn-pay {
    background: #f00;
    color: #fff;
    border: none;
}

.btn-cancel {
    color: #666;
}

.btn-confirm {
    background: #ff9800;
    color: #fff;
    border: none;
}

.btn-logistics {
    color: #666;
}

.btn-review {
    background: #4caf50;
    color: #fff;
    border: none;
}

.btn-rebuy {
    color: #666;
}

/* 订单时间 */
.order-time {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    text-align: right;
} 