/* 图片订单/查单页。和 /image.css 共用同一套暗色 editorial + 酸绿信号色 token，
   这里只补它没有的东西：文字输入框、语言下拉在深色底下的样式、订单详情卡片。
   两页视觉必须连贯——用户是从 /image 点「下一步」直接跳进来的。 */

.page {
  width: var(--shell); margin: 0 auto;
  padding: clamp(var(--s-8), 5vw, var(--s-16)) 0 var(--s-24);
}

.locale-select {
  min-height: 44px;
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-1); color: var(--ink);
  font: 600 var(--t-sm)/1 var(--body);
}
.locale-select:hover { border-color: var(--muted); }

.page-head { max-width: 60ch; margin-bottom: var(--s-8); }
.page-head h1 { font-size: var(--t-xl); }
.page-head p { margin-top: var(--s-3); color: var(--muted); font-size: var(--t-lg); line-height: 1.7; }

.test-notice {
  display: flex; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-8);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--acid-dim);
  border-radius: 10px;
  background: oklch(94% 0.205 118 / 0.07);
  color: var(--ink);
  font-size: var(--t-sm); font-weight: 600;
}
.test-notice::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }

#message { min-height: 1.5em; margin-bottom: var(--s-4); color: var(--acid); font-size: var(--t-sm); font-weight: 700; }
#message:empty { min-height: 0; margin-bottom: 0; }

/* 表单卡片：复用 .slip 的视觉语言，本页专属只补 input 和 fieldset 间距 */
.order-fields { max-width: 640px; gap: var(--s-6); }
.slip input {
  width: 100%; min-height: 46px;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg); color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--body);
}
.slip input:hover { border-color: var(--muted); }
/* .slip{display:grid} 曾经和浏览器原生 [hidden]{display:none} 撞过优先级——
   现在这类问题统一由 image.css 里的全局 `[hidden]{display:none!important}` 兜底，
   这里不用再单独补，见那条规则旁边的注释。 */

/* 订单详情：状态摘要用票根卡片，历史记录用时间线 */
.order-summary {
  display: grid; gap: var(--s-2);
  max-width: 640px; margin-bottom: var(--s-8);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-1);
}
.order-summary h2 {
  font-family: var(--display); font-size: var(--t-lg); font-weight: 800;
  letter-spacing: -0.02em; overflow-wrap: anywhere;
}
#order-status { color: var(--acid); font-weight: 700; }
#order-price, #order-progress, #order-brief { color: var(--muted); font-size: var(--t-sm); line-height: 1.7; overflow-wrap: anywhere; }
#order-brief { padding-top: var(--s-3); border-top: 1px solid var(--line-soft); white-space: pre-wrap; }

#sample {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-2);
  color: var(--acid); font-weight: 700; font-size: var(--t-sm);
}

.order-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-8) 0; max-width: 640px; }
.order-actions .btn { flex: 1 1 auto; }

.save-note {
  max-width: 640px; margin-bottom: var(--s-3);
  color: var(--faint); font-size: var(--t-xs); line-height: 1.7;
}

#events {
  max-width: 640px; margin: 0 0 var(--s-8); padding: 0; list-style: none;
  border-top: 1px solid var(--line-soft);
}
#events li {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted); font-size: var(--t-sm);
}

#downloads { display: grid; gap: var(--s-3); max-width: 640px; margin-bottom: var(--s-4); }
#downloads a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--s-6);
  border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink); font-weight: 700; text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
#downloads a:hover { border-color: var(--acid-dim); background: var(--surface-1); }

#expiry { max-width: 640px; color: var(--faint); font-size: var(--t-sm); }

/* 顶栏塞了品牌+页面名+语言切换+客服四样，比 /image 的顶栏满，窄屏要换行重排，
   不能只隐藏 bar-here 就完事。 */
@media (max-width: 700px) {
  .bar { flex-wrap: wrap; row-gap: var(--s-3); }
  .bar-here { display: none; }
  .bar > label { order: 3; margin-left: 0; }
  .bar > label span[data-i18n="language"] { display: none; }  /* 下拉选项本身就是语言名 */
  .bar-support { order: 2; margin-left: auto; }
  .bar-support span[data-i18n] { display: none; }  /* 窄屏只留蜜蜂图标，邮箱太长会溢出 */
}
@media (max-width: 560px) {
  .order-actions .btn { flex: 1 1 100%; }
}
