/* 订单列表页面样式 */

.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

/* 订单筛选 */
.order-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #ff9e1b;
    color: #ff9e1b;
}

.filter-btn.active {
    background-color: #ff9e1b;
    color: white;
    border-color: #ff9e1b;
}

/* 订单列表 */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

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

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.order-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-done {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-body {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    margin-bottom: 0.5rem;
}

.order-item .label {
    font-weight: 500;
    color: #666;
    min-width: 80px;
}

.order-item .value {
    color: #333;
}

.order-item .value.price {
    color: #ff9e1b;
    font-size: 1.2rem;
    font-weight: bold;
}

.order-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* 空状态 */
.empty-state,
.error-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover,
.close:focus {
    color: #000;
}

.order-detail {
    margin-top: 1rem;
}

.detail-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.detail-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.detail-item {
    display: flex;
    margin-bottom: 0.75rem;
}

.detail-item .label {
    font-weight: 500;
    color: #666;
    min-width: 120px;
}

.detail-item .value {
    color: #333;
}

.detail-item .value.price {
    color: #ff9e1b;
    font-size: 1.3rem;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .order-actions {
        flex-direction: column;
    }

    .order-actions .btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}

