/* 我的订单：账户页共用的信息层级，原有订单状态与付款操作保持一致。 */
.orders-head{display:flex;align-items:end;justify-content:flex-end;gap:var(--space-5);margin-bottom:var(--space-6);flex-wrap:wrap}
.orders-head>div{display:grid;gap:var(--space-3)}
.orders-head .badge{justify-self:start}
.orders-panel{gap:0}
.orders-toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;padding-bottom:var(--space-5)}
.orders-search{display:flex;align-items:center;gap:var(--space-3);flex:1 1 var(--size-420);max-width:var(--invite-promotion-p-max-width);min-width:0;margin-left:auto}
.orders-search .input{min-width:0;font-size:var(--text-input-size)}
.orders-search .btn{flex:none}
.orders-status{display:flex;align-items:center;gap:var(--space-2);flex:none;max-width:100%;overflow-x:auto;padding-block:var(--space-1)}
.orders-status .btn{flex:none}
.orders-status .btn[aria-pressed=true]{background:var(--bg-inverse);color:var(--text-inverse);box-shadow:var(--shadow-button-dark)}
.order-status-count{font-size:var(--text-caption-size);opacity:.7}
.orders-search>.ui-select,.orders-search>.orders-period{width:var(--orders-filter-width);flex:none}
.orders-list{display:grid}
.orders-columns,.order-item{display:grid;grid-template-columns:var(--orders-table-columns);column-gap:var(--space-3);align-items:center;min-width:0}
.orders-columns{padding:var(--space-4) 0;border-bottom:var(--border-card)}
.orders-column-amount,.orders-column-actions{text-align:right}
.order-item{padding-block:var(--space-5);border-bottom:var(--border-card)}
.order-item-product{display:grid;justify-items:start;gap:var(--spacing-6);min-width:0}
.order-item-product h2{max-width:100%;overflow-wrap:anywhere}
.order-item-product a:hover{text-decoration:underline;text-underline-offset:var(--space-1)}

.order-item-time{min-width:0}.order-item-time time{white-space:nowrap}
.order-mobile-label{display:none}
.order-item-status{min-width:0}.order-item-status .status{max-width:100%}
.order-item-amount{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:var(--space-2);min-width:0;grid-column:5}
.order-item-amount b{overflow-wrap:anywhere}
.order-item-actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--space-2);grid-column:6;min-width:0}
.orders-empty{display:grid;justify-items:center;text-align:center;gap:var(--space-3);padding:var(--space-7) var(--space-4)}
.orders-empty>.empty-icon{margin-bottom:0}
.orders-empty p{max-width:var(--content-narrow)}
.orders-login{max-width:var(--content-narrow);margin-inline:auto}
.orders-login .orders-empty{padding:var(--space-5) 0}
@media(max-width:960px){
.orders-columns{display:none}
.order-item{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"product status" "category category" "time time" "amount actions";gap:var(--space-3);padding-block:var(--space-5)}
.order-item-category{grid-area:category;justify-content:start}.order-item-product{grid-area:product}.order-item-status{grid-area:status;align-self:start}
.order-item-time{grid-area:time;display:flex;align-items:baseline;gap:var(--space-2);flex-wrap:wrap}
.order-mobile-label{display:inline}
.order-item-amount{grid-area:amount;display:flex;align-items:baseline;gap:var(--spacing-6);text-align:left;justify-content:start}
.order-item-actions{grid-area:actions}
.order-item-actions .btn{padding-inline:var(--space-3)}
}
@media(max-width:480px){.orders-toolbar{align-items:stretch;flex-direction:column}.orders-search{flex:0 0 auto;max-width:none;width:100%;margin-left:0}}

/* 少量订单也铺满首屏可用区域；列表增多时自然向下扩展。 */
.orders-page #page{display:flex;flex-direction:column}
.orders-page .orders-panel{flex:1;display:flex;flex-direction:column}
.orders-page .orders-list{flex:1;align-content:start;grid-auto-rows:max-content}
.orders-page.orders-empty-page .orders-list{align-content:center}
.orders-page .orders-pagination{margin-top:auto;padding-top:var(--space-5)}

/* 订单记录与顶部导航使用同一内容宽度和两侧边距。 */
.orders-page .container.inner{max-width:calc(var(--container-max) + var(--container-gutter) * 2)}

@media(max-width:600px){.orders-search{display:grid;grid-template-columns:minmax(0,1fr) auto;flex-basis:auto;width:100%;max-width:none}.orders-search>.ui-select,.orders-search>.orders-period{grid-column:1/-1;width:100%}.orders-status{width:100%}.orders-status .btn{padding-inline:var(--space-3)}}
.orders-toolbar,.orders-status,.orders-list{min-width:0}

/* 桌面表格标题、商品及各列内容以列中心对齐。 */
@media(min-width:961px){
.orders-columns>span{text-align:center}
.order-item-product{justify-items:center;text-align:center}
.order-item-product .card-category{justify-self:center}
.order-item-time,.order-item-status,.order-item-amount{text-align:center}
.order-item-actions{justify-content:center}
}

.order-item-category{display:flex;align-items:center;min-width:0}
@media(min-width:961px){.order-item-category{justify-content:center;text-align:center}}



/* 记录统一使用表格字号，只强调实付金额；状态依靠颜色区分。 */
.order-item-product h2,
.order-item-time time,
.order-item-status .status,
.order-item-amount>b,
.order-item-amount>.muted,
.order-item-actions>.btn{
  font-size:var(--text-label-size);
  line-height:1.5;
  font-weight:var(--text-label-weight);
  letter-spacing:0;
}
.order-item-amount>b{font-weight:var(--text-emphasis-weight)}

.order-item-actions>.btn{font-weight:var(--text-button-weight)}

.order-item-amount .original-price{font-size:var(--text-label-size)}
.order-item-amount .sale-price{font-weight:var(--text-emphasis-weight)}
