/* ===== 我的订单页面 ===== */
.page-main .container {
    max-width: min(98%, 1920px);
    width: 98%;
}

.page-main {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: calc(100vh - 60px);
    background: var(--bg);
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-mid);
    font-size: 14px;
}

/* 状态筛选标签 */
.status-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--white);
    padding: 6px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: fit-content;
}

.status-tab {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    color: var(--text-mid);
    cursor: pointer;
    transition: var(--transition);
}

.status-tab:hover {
    background: #F1F5F9;
    color: var(--text-dark);
}

.status-tab.active {
    background: var(--primary);
    color: var(--white);
}

/* 订单列表 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-lg);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #E2E8F0;
}

.order-card-info {
    flex: 1;
}

.order-no {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.order-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.order-amount {
    text-align: right;
}

.order-amount-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.order-amount-unit {
    font-size: 13px;
    color: var(--text-mid);
}

.order-card-body {
    display: flex;
    gap: 24px;
    color: var(--text-mid);
    font-size: 13px;
    flex-wrap: wrap;
}

.order-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-detail-label {
    color: var(--text-light);
    font-size: 12px;
}

.order-detail-value {
    color: var(--text-dark);
    font-weight: 500;
}

/* 订单状态徽标 */
.order-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-paid {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-confirmed {
    background: #DCFCE7;
    color: #166534;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    color: var(--text-mid);
    margin-bottom: 20px;
}

.btn-empty {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.btn-empty:hover {
    background: var(--primary-dark);
}

/* 加载中 */
.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #E2E8F0;
    background: var(--white);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-mid);
    cursor: pointer;
    transition: var(--transition);
}

.page-btn.page-nav {
    min-width: 80px;
    padding: 0 16px;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 768px) {
    .order-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .order-amount {
        text-align: left;
    }

    .order-card-body {
        gap: 16px;
    }
}
