/* Siqvex 个人中心 与官网同一套颜色 字体 按钮 只有亮色 */
:root {
  color-scheme: light;

  --bg: #f4f7fa;
  --surface: #fff;
  --text: #101723;
  --logo: #111317;
  --muted: #4f5b6b;
  --faint: #647080;
  --line: #e1e6ec;
  --line-strong: #c3ccd6;
  --accent: #0f9488;
  --danger: #b42318;
  --info-bg: #eef2f6;

  --gutter: 24px;
  --radius-outer: 20px;
  --radius-control: 10px;

  --ease-out: cubic-bezier(0, 0, .58, 1);
  --ease-strong: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.42, 0, .58, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);

  --t-press: 120ms;
  --t-shadow: 140ms;
  --t-color: 160ms;
  --t-enter: 420ms;
  --t-fade: 150ms;
  --boot: 1000ms;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: var(--bg);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
/* 详情打开时背景不滚动 */
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-autospace: normal;
  text-spacing-trim: trim-start;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; }

::selection { background: #5fd3c8; color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 总加载动画 每个来源每次会话一次 纯CSS按时间退场 脚本失败也不会卡住 不拦截点击 */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  pointer-events: none;
  animation: loader-out 220ms var(--ease-in-out) var(--boot) forwards;
}
.site-loader svg { width: 96px; height: auto; overflow: visible; fill: var(--logo); }
.loader-s {
  fill: none;
  stroke: #fff;
  stroke-width: 31;
  stroke-linejoin: miter;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  animation: loader-draw 400ms var(--ease-in-out) 120ms backwards;
}
.loader-bar { animation-duration: 180ms; animation-delay: 520ms; }
.loader-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: loader-pop 200ms var(--ease-pop) 700ms backwards;
}
html.loader-skip { --boot: 0ms; }
html.loader-skip .site-loader { display: none; }
@keyframes loader-draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  1% { stroke-dashoffset: 1; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes loader-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes loader-out {
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --boot: 0ms; }
  .site-loader { display: none; }
}

/* 导航 */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand svg { width: 28px; height: auto; fill: var(--logo); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language { display: inline-flex; gap: 2px; }
.language button {
  position: relative;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  color: var(--faint);
  cursor: pointer;
  transition:
    color var(--t-press) var(--ease-out),
    background-color var(--t-press) var(--ease-out);
}
.language button::after {
  content: "";
  position: absolute;
  inset: -8px 0;
}
.language button[aria-pressed="true"] {
  color: var(--text);
  background: rgb(16 23 35 / .06);
}
@media (hover: hover) {
  .language button:hover { color: var(--text); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition:
    color var(--t-color) var(--ease-out),
    background-color var(--t-color) var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}
@media (hover: hover) {
  .nav-link:hover { color: var(--text); background: rgb(16 23 35 / .05); }
}

/* 按钮 与官网同一套五层 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-control);
  background: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--t-press) var(--ease-strong),
    box-shadow var(--t-shadow) var(--ease-strong),
    color var(--t-color) var(--ease-out),
    opacity var(--t-color) var(--ease-out);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2c3648, #161e2c);
  box-shadow:
    0 0 0 1px #0b111b,
    inset 0 1px 0 rgb(255 255 255 / .16),
    inset 0 -1px 0 rgb(0 0 0 / .2),
    0 1px 2px rgb(16 23 35 / .24),
    0 4px 10px -3px rgb(16 23 35 / .32);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: linear-gradient(180deg, #364154, #1e2737);
    box-shadow:
      0 0 0 1px #0b111b,
      inset 0 1px 0 rgb(255 255 255 / .2),
      inset 0 -1px 0 rgb(0 0 0 / .2),
      0 2px 3px rgb(16 23 35 / .24),
      0 8px 16px -4px rgb(16 23 35 / .36);
  }
}
.btn-primary:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #131a27, #232c3c);
  box-shadow:
    0 0 0 1px #0b111b,
    inset 0 1px 2px rgb(0 0 0 / .4),
    inset 0 0 0 rgb(0 0 0 / 0),
    0 0 0 rgb(16 23 35 / 0),
    0 0 0 rgb(16 23 35 / 0);
}
.btn-secondary {
  background: linear-gradient(180deg, #fff, #f6f8fa);
  box-shadow:
    0 0 0 1px var(--line-strong),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgb(16 23 35 / .03),
    0 1px 2px rgb(40 55 80 / .06),
    0 2px 6px -3px rgb(40 55 80 / .1);
}
@media (hover: hover) {
  .btn-secondary:hover:not(:disabled) {
    box-shadow:
      0 0 0 1px #aab4c1,
      inset 0 1px 0 #fff,
      inset 0 -1px 0 rgb(16 23 35 / .03),
      0 2px 3px rgb(40 55 80 / .08),
      0 6px 12px -4px rgb(40 55 80 / .14);
  }
}
.btn-secondary:active:not(:disabled) {
  transform: translateY(1px);
  background: linear-gradient(180deg, #eef1f5, #f6f8fa);
  box-shadow:
    0 0 0 1px #aab4c1,
    inset 0 1px 2px rgb(16 23 35 / .1),
    inset 0 0 0 rgb(16 23 35 / 0),
    0 0 0 rgb(40 55 80 / 0),
    0 0 0 rgb(40 55 80 / 0);
}
.btn-danger { font-weight: 500; color: var(--danger); }
@media (hover: hover) {
  .btn-danger:hover:not(:disabled) { background: rgb(180 35 24 / .06); }
}
.btn-danger:active:not(:disabled) { transform: translateY(1px); }
.btn-small {
  width: auto;
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}
.btn-small::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}
.btn:disabled { opacity: .45; cursor: not-allowed; transition-delay: 0ms, 0ms, 0ms, 150ms; }
.btn[aria-busy="true"]:disabled { opacity: .72; transition-delay: 0ms; }

/* 版式 左边本人 右边订单 */
.member {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 96px;
}

.profile {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-outer);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 2px rgb(40 55 80 / .04),
    0 8px 24px -12px rgb(40 55 80 / .1);
}

.face {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e6ebf1;
  box-shadow: inset 0 0 0 1px rgb(16 23 35 / .06);
}
.face-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}
.face-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  animation: fade 200ms var(--ease-out) backwards;
}

.profile-name {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.profile-name:empty { display: none; }
.profile .btn { margin-top: 4px; }

/* 订单管理 */
.orders { min-width: 0; }
.orders-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 44px;
}
.orders-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.filter {
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  padding: 0 32px 0 12px;
  border: 0;
  border-radius: var(--radius-control);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23647080' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 500 14px/1 var(--sans);
  color: var(--text);
  cursor: pointer;
  transition: box-shadow var(--t-shadow) var(--ease-out);
}
@media (hover: hover) {
  .filter:hover { box-shadow: inset 0 0 0 1px #9aa6b5; }
}
#member-root:has(#member-login-link:not([hidden])) .filter { display: none; }

.status {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.status:empty { display: none; }

/* 列表为空又没有空状态时 未登录 未部署 服务异常这些文字要站得住 所以放大成一块 */
#member-root:not([aria-busy="true"]) .orders:has(.order-list:empty):has(#member-empty[hidden]) .status:not(:empty) {
  margin-top: 16px;
  padding: 56px 16px;
  border-radius: var(--radius-outer);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  text-align: center;
}

/* 表头和行共用一组列宽 */
.order-columns,
.order-row {
  --order-grid: minmax(0, 1fr) 268px 104px 88px;
}
.order-columns {
  display: grid;
  grid-template-columns: var(--order-grid);
  gap: 0 16px;
  margin-top: 16px;
  padding: 0 16px 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
}
.order-columns span:nth-child(3) { text-align: right; }
.orders:has(.order-list:empty) .order-columns { display: none; }

.order-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-outer);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 2px rgb(40 55 80 / .04),
    0 8px 24px -12px rgb(40 55 80 / .1);
}
.order-list:empty { display: none; }

/* 首屏等待 只有灰条 没有假订单 */
[aria-busy="true"] .order-list:empty {
  display: block;
  height: 272px;
  margin-top: 16px;
  background:
    linear-gradient(#eef2f6, #eef2f6) 16px 28px / 40% 14px no-repeat,
    linear-gradient(#eef2f6, #eef2f6) 16px 118px / 40% 14px no-repeat,
    linear-gradient(#eef2f6, #eef2f6) 16px 208px / 40% 14px no-repeat,
    var(--surface);
  animation: wait 1400ms var(--ease-in-out) infinite alternate;
}
[aria-busy="true"] .profile-name:empty {
  display: block;
  width: 60%;
  height: 25px;
  border-radius: 6px;
  background: #e6ebf1;
  animation: wait 1400ms var(--ease-in-out) infinite alternate;
}
[aria-busy="true"] .empty { display: none; }
@keyframes wait {
  from { opacity: 1; }
  to { opacity: .55; }
}

/* 订单项由orders.js安全生成 head和body用contents摊平 每个字段直接进列 */
.order-row {
  display: grid;
  grid-template-columns: var(--order-grid);
  grid-template-areas:
    "product ordered price state"
    "number delivered price state";
  gap: 2px 16px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  animation: row-in 280ms var(--ease-strong) backwards;
  transition: background-color var(--t-color) var(--ease-out);
}
.order-row + .order-row { box-shadow: inset 0 1px 0 var(--line); }
.order-row:nth-child(2) { animation-delay: 30ms; }
.order-row:nth-child(3) { animation-delay: 60ms; }
.order-row:nth-child(4) { animation-delay: 90ms; }
.order-row:nth-child(5) { animation-delay: 120ms; }
.order-row:nth-child(n + 6) { animation-delay: 150ms; }
.order-row:focus-visible { outline-offset: -2px; border-radius: 14px; }
@media (hover: hover) {
  .order-row:hover { background: #f8fafc; }
}
.order-row:active { background: var(--bg); }
@keyframes row-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.order-row-head,
.order-row-body { display: contents; }

.order-product {
  grid-area: product;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.order-number {
  grid-area: number;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 13px/1.5 var(--mono);
  color: var(--faint);
}
.order-time {
  grid-area: ordered;
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.order-time + .order-time { grid-area: delivered; }
.order-price {
  grid-area: price;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 四种状态 颜色加圆点 不只靠文字 */
.order-state,
#detail-fulfillment[data-state] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px 1px 7px;
  border-radius: 999px;
  background: var(--info-bg);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  color: var(--muted);
}
.order-state::before,
#detail-fulfillment[data-state]::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.order-state {
  grid-area: state;
  justify-self: start;
  animation: state-in 240ms var(--ease-strong) backwards;
}
.order-state.submitted,
#detail-fulfillment[data-state="submitted"] { background: #fdf4e3; color: #8a5a00; }
.order-state.accepted,
#detail-fulfillment[data-state="accepted"] { background: #e8f1fc; color: #1d5fa8; }
.order-state.fulfilled,
#detail-fulfillment[data-state="fulfilled"] { background: rgb(15 148 136 / .1); color: #0b6f66; }
.order-state.cancelled,
#detail-fulfillment[data-state="cancelled"] { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--faint); }
@keyframes state-in {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: none; }
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 56px 16px;
  border-radius: var(--radius-outer);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}

.more { margin-top: 12px; }

/* 详情 面板的进出动画由orders.js负责 这里不再叠加过渡 否则关闭时会闪一下 只有遮罩用CSS淡入淡出 */
.detail {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: min(84vh, 720px);
  max-height: min(84dvh, 720px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-outer);
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 0 0 1px rgb(16 23 35 / .08),
    0 24px 64px -16px rgb(16 23 35 / .32);
  opacity: 0;
  transition:
    overlay 200ms allow-discrete,
    display 200ms allow-discrete;
}
.detail[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
}
.detail::backdrop {
  background: rgb(16 23 35 / 0);
  transition:
    background-color 200ms var(--ease-out),
    overlay 200ms allow-discrete,
    display 200ms allow-discrete;
}
.detail[open]::backdrop { background: rgb(16 23 35 / .32); }
@starting-style {
  .detail[open]::backdrop { background: rgb(16 23 35 / 0); }
}

.detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 24px 8px;
}
.detail h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.detail-meta {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* 发货进度和关键时间 进度只表示发货 不表示付款 */
.detail-fulfillment {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
}
.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}
.progress i {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color var(--t-enter) var(--ease-in-out);
}
[data-progress="submitted"] .progress i:first-child,
[data-progress="accepted"] .progress i:nth-child(-n + 2) { background: var(--text); }
[data-progress="fulfilled"] .progress i { background: var(--accent); }
[data-progress="cancelled"] .progress,
.detail-fulfillment:not([data-progress]) .progress { display: none; }

.facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 24px;
  margin: 0;
}
.facts dt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
}
.facts dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.detail-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
/* 没有内容的部分连标题一起不占位 */
.detail-section:has(> :empty) { display: none; }
.detail h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--faint);
}
.detail-text {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* 交付内容原样保留换行 可能有长串 所以用等宽并允许任意断行 */
.detail-delivery {
  padding: 12px;
  border-radius: var(--radius-control);
  background: var(--bg);
  font: 400 14px/1.65 var(--mono);
}
/* 用户可见记录 左边一条细线串起来 备注保留换行 */
.detail-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0 0 0 14px;
  box-shadow: inset 1px 0 0 var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.order-event {
  position: relative;
  white-space: pre-wrap;
  font-variant-numeric: tabular-nums;
}
.order-event::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -16.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}
.order-event:last-child::before { background: var(--text); }

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 24px 20px;
}
.detail-actions .btn { width: auto; min-width: 88px; }
.detail-actions #detail-cancel { margin-right: auto; }

/* 入场 先显现再落位 */
.rise { animation: rise var(--t-enter) var(--ease-strong) var(--boot) backwards; }
.rise-2 { animation-delay: calc(var(--boot) + 60ms); }
@keyframes rise {
  0% { opacity: 0; transform: translateY(12px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@supports (corner-shape: superellipse(1.25)) {
  .btn-primary, .btn-secondary, .profile, .order-list, .detail, .detail-delivery, .detail-fulfillment, .filter { corner-shape: superellipse(1.25); }
}

/* 宽度不够放四列时 每行变成两行半的紧凑卡片 */
@media (max-width: 1100px) {
  .order-columns { display: none; }
  .order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "product price"
      "number state"
      "ordered ordered"
      "delivered delivered";
    gap: 2px 12px;
  }
  .order-state { justify-self: end; }
  .order-time { margin-top: 2px; }
}

@media (max-width: 840px) {
  :root { --gutter: 16px; }
  .nav-inner { height: 64px; }
  .member {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 8px;
    padding-bottom: 72px;
  }
  .profile {
    position: static;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }
  .face { width: 48px; height: 48px; }
  .face-initial { font-size: 18px; }
  .profile-name { font-size: 16px; }
  [aria-busy="true"] .profile-name:empty { width: 100%; height: 22px; }
  .profile .btn { width: auto; min-height: 36px; margin-top: 0; padding: 0 12px; font-size: 14px; font-weight: 500; grid-column: 3; }
  h1 { font-size: 24px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .language button { padding: 0 8px; }

  /* 手机上详情贴底 */
  .detail {
    width: 100%;
    margin: auto 0 0;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: var(--radius-outer) var(--radius-outer) 0 0;
  }
  .detail-scroll { padding: 20px 16px 8px; }
  .detail-actions { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: fade var(--t-fade) var(--ease-out) backwards; }
  .order-row, .order-state { animation: fade var(--t-fade) var(--ease-out) backwards; }
  .progress i, .filter, .language button { transition: none; }
  [aria-busy="true"] .order-list:empty, [aria-busy="true"] .profile-name:empty { animation: none; }
  .btn, .nav-link, .order-row { transition: none; }
  .btn:active { transform: none !important; }
  .detail, .detail::backdrop { transition: none; }
}
