/* my Photo — film lab UI system
   Darkroom (dark) is default; paper (light) is one tap away. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14110f;
  --bg-2: #1b1714;
  --surface: #211c18;
  --surface-2: #2a241f;
  --line: #3a322b;
  --line-soft: #2f2823;
  --text: #f6f0e6;
  --muted: #ac9f8e;
  --faint: #7e7367;
  --brand: #ff6b35;
  --brand-soft: #ff8a5b;
  --brand-ink: #1a100b;
  --gold: #f2c14e;
  --ok: #7bc9a0;
  --warn: #f2c14e;
  --danger: #e86a5c;
  --ok-bg: rgba(123, 201, 160, .12);
  --warn-bg: rgba(242, 193, 78, .12);
  --danger-bg: rgba(232, 106, 92, .12);
  --hover: rgba(255, 255, 255, .045);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .34);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3eee3;
  --bg-2: #eae3d5;
  --surface: #fffcf5;
  --surface-2: #f2ebdd;
  --line: #dcd2be;
  --line-soft: #e7dfcf;
  --text: #241e18;
  --muted: #6f6455;
  --faint: #8b8070;
  --brand: #d8501e;
  --brand-soft: #e86a35;
  --brand-ink: #fffaf2;
  --gold: #a8740f;
  --ok: #2f7d5b;
  --warn: #a46c0b;
  --danger: #b23b32;
  --ok-bg: rgba(47, 125, 91, .1);
  --warn-bg: rgba(164, 108, 11, .1);
  --danger-bg: rgba(178, 59, 50, .1);
  --hover: rgba(80, 60, 35, .045);
  --shadow: 0 12px 30px rgba(70, 52, 28, .1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1100px 560px at 82% -12%, rgba(255, 107, 53, .09), transparent 62%), var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--brand); color: var(--brand-ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; border: 3px solid var(--bg); }

#shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 26px; background: var(--bg-2); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.brand-mark {
  position: relative; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-family: var(--font-display);
  font-size: 15px; font-weight: 700; letter-spacing: -.02em;
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; left: 4px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--brand-ink); opacity: .5;
}
.brand-mark::before { top: 6px; } .brand-mark::after { bottom: 6px; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.15; letter-spacing: .01em; }
.brand-text small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: .04em; }
.user-box { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: nowrap; justify-content: flex-end; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; flex: 0 0 auto; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  min-height: 36px; padding: 0 13px; border-radius: 99px; font-size: 12px; letter-spacing: .04em;
}
.theme-toggle::after { content: attr(data-label); }
.theme-toggle svg { flex: 0 0 auto; }
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }

/* 账户菜单：头像按钮 + 下拉面板（管理后台 / 退出登录收进面板，页头只留一个圆钮） */
.um-wrap { position: relative; display: flex; align-items: center; }
.um-btn {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; padding: 0;
  border: 1px solid transparent; background: var(--brand); color: var(--brand-ink);
  font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, filter .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.um-btn:hover { border-color: var(--brand-ink); filter: brightness(1.06); }
.um-btn:active { transform: scale(.92); }
/* 面板展开时给按钮一圈环，明确「菜单就是从这里弹出来的」 */
.um-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--brand); }
.um-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  min-width: 192px; max-width: calc(100vw - 24px); padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
  display: flex; flex-direction: column;
}
.um-panel[hidden] { display: none; }
.um-head { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.um-head strong { font-size: 13px; font-weight: 600; color: var(--text); }
.um-head span { font-size: 11.5px; color: var(--faint); overflow-wrap: anywhere; }
.um-item {
  display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: 9px; background: transparent; color: var(--text);
  font-size: 13px; text-align: left; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.um-item:active { background: var(--hover); }
/* 图标项：图标与文字基线对齐，退出登录用弱化的危险色图标 */
.um-item svg { flex: 0 0 auto; margin-right: 9px; opacity: .75; }
.um-item-admin { color: var(--brand); font-weight: 500; }
.um-item-admin svg { opacity: 1; }
.um-item:hover { background: var(--hover); }
.um-danger { color: var(--danger); }
.filmstrip { display: none; }
/* 改为自动换行胶囊导航：不产生任何横向滚动 */
.nav {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 26px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.nav a { padding: 8px 15px; border-radius: 99px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background .16s, color .16s; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.active { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.view { width: 100%; max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; flex: 1; }
.footer { padding: 20px; text-align: center; color: var(--faint); font-size: 12px; border-top: 1px solid var(--line); letter-spacing: .03em; }
.footer-filing { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin-top: 8px; font-size: 11.5px; }
.footer-filing:empty { display: none; }
.footer-filing a { color: var(--faint); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.footer-filing a:hover { color: var(--muted); text-decoration: underline; }
.filing-sep { font-style: normal; opacity: .45; }

h1, h2, h3 { letter-spacing: -.015em; }
h1 { font-size: 30px; line-height: 1.28; margin: 0 0 10px; font-weight: 650; }
h2 { font-size: 18px; margin: 0 0 14px; font-weight: 600; }
h3 { font-size: 14px; margin: 0 0 10px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; letter-spacing: .01em; overflow-wrap: anywhere; word-break: break-word; }

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 46px 40px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--brand); }
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 210px; height: 210px;
  border: 26px solid var(--line); border-radius: 50%; opacity: .35;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { font-family: var(--font-display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
.hero h1 { font-size: 38px; margin: 12px 0 14px; }
.hero p { color: var(--muted); max-width: 580px; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card.tile { display: block; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card.tile:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 22px 46px rgba(0, 0, 0, .3); }
.card.tile::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.card.tile:hover::after { transform: scaleX(1); }
.card .tile-icon {
  width: 40px; height: 40px; border-radius: 11px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 19px; margin-bottom: 14px; font-family: var(--font-display);
}
.card h2, .card h3 { margin-top: 0; }
.card h3 { font-size: 14px; margin: 18px 0 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 9px 19px; border-radius: 99px;
  border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink);
  font-size: 13px; font-weight: 650; letter-spacing: .01em;
  transition: transform .12s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--hover); border-color: var(--brand); color: var(--brand); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger-bg); }
.btn.small { min-height: 34px; padding: 6px 14px; font-size: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: .02em; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--text); outline: none; font-size: 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 107, 53, .16); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--brand); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { min-height: 92px; resize: vertical; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: .03em; background: var(--surface-2); color: var(--muted); border-left: 3px solid var(--faint); }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-left-color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-left-color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); border-left-color: var(--danger); }
.chip { display: inline-block; padding: 4px 11px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.list { display: flex; flex-direction: column; gap: 12px; }
.list-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  transition: border-color .16s ease, transform .16s ease;
}
.list-item:hover { border-color: var(--brand); transform: translateX(3px); }
.list-item .title { font-weight: 600; }
.list-item .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty::before { content: ""; display: block; width: 46px; height: 34px; margin: 0 auto 14px; border: 3px solid var(--line); border-radius: 6px; background-image: radial-gradient(circle at 8px 6px, var(--bg) 0 3px, transparent 3.4px), radial-gradient(circle at 8px 28px, var(--bg) 0 3px, transparent 3.4px), radial-gradient(circle at 38px 6px, var(--bg) 0 3px, transparent 3.4px), radial-gradient(circle at 38px 28px, var(--bg) 0 3px, transparent 3.4px); }
/* 网盘链接列表（顾客端） */
.pan-mini { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; }
.pan-mini a { color: var(--brand); text-decoration: none; font-weight: 600; }
.pan-mini a:hover { text-decoration: underline; }
.steps { display: flex; flex-direction: column; gap: 0; margin: 10px 0 20px; }
.step { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.step .dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); flex: 0 0 26px; display: grid; place-items: center; font-size: 11px; color: var(--muted); z-index: 1; }
.step.done .dot { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.step.current .dot { border-color: var(--brand); color: var(--brand); font-weight: 700; box-shadow: 0 0 0 4px rgba(255, 107, 53, .14); }
.step .label { font-size: 13px; }
.step .step-time { color: var(--muted); font-size: 11px; margin-left: 6px; font-weight: 400; white-space: nowrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: transform .16s ease, border-color .16s ease; }
a.stat:hover { transform: translateY(-3px); border-color: var(--brand); }
a.stat:active { transform: translateY(0); }
.stat b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.15; color: var(--brand); }
.stat span { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

.photo-grid {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 2px;
  padding: 0; background: transparent; border: 0; border-radius: 0;
}
.photo-grid::before { display: none; }
.photo {
  position: relative; flex: 0 0 132px; width: 132px; overflow: hidden;
  padding: 15px 0; background: #0c0a09;
  border: 0; border-radius: 2px; box-shadow: none;
  transition: filter .18s ease;
  content-visibility: auto; contain-intrinsic-size: 132px 162px;
}
.photo:hover { filter: brightness(1.08); transform: none; }
.photo::before, .photo::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='12'%3E%3Crect x='6' y='2' width='12' height='8' rx='1.5' fill='%23f6f0e6' opacity='.95'/%3E%3C/svg%3E");
  background-size: 26px 12px; background-repeat: repeat-x;
}
.photo::before { top: 1px; }
.photo::after { bottom: 1px; }
.photo img { width: 100%; height: 132px; object-fit: cover; display: block; background: #ded5c2; border-radius: 0; }
.photo .meta {
  position: absolute; left: 6px; right: 6px; bottom: 16px; z-index: 2;
  margin: 0; padding: 0; border: 0; text-align: left;
  background: transparent; color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.5; text-shadow: 0 1px 3px rgba(0, 0, 0, .95);
}
.photo .meta .muted { color: inherit; opacity: .75; }
.photo .meta .btn {
  display: none; min-height: 20px; padding: 0 6px; margin: 3px 3px 0 0;
  border-radius: 4px; font-size: 9px;
}
.photo:hover .meta .btn, .photo:focus-within .meta .btn { display: inline-flex; }
@media (hover: none) { .photo .meta .btn { display: inline-flex; } }
.photo .meta::before { display: none; }
.pager { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.pager .muted { font-size: 13px; }
.notice { padding: 13px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 3px solid var(--brand); font-size: 13px; color: var(--muted); }
.notice.error { background: var(--danger-bg); border-left-color: var(--danger); color: var(--danger); }
.notice.success { background: var(--ok-bg); border-left-color: var(--ok); color: var(--ok); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; max-width: min(360px, calc(100vw - 32px));
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-left: 4px solid var(--brand); padding: 13px 18px; border-radius: 12px;
  font-size: 13px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px);
  pointer-events: none; transition: all .22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-left-color: var(--danger); }
.loading { padding: 48px; text-align: center; color: var(--muted); }
.loading::before { content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 14px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.print-sheet { display: none; }

/* Order wizard */
.wz-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.wz-step {
  display: flex; align-items: center; gap: 9px; padding: 9px 15px; border: 1px solid var(--line);
  border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 12px;
  flex: 1 1 auto; justify-content: center; min-width: 118px; transition: all .16s ease;
}
.wz-step.current { border-color: var(--brand); color: var(--text); font-weight: 650; background: var(--surface-2); box-shadow: 0 0 0 3px rgba(255, 107, 53, .12); }
.wz-step.done { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.wz-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 11px; flex: 0 0 20px; }
.wz-step.current .wz-dot { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.wz-step.done .wz-dot { background: var(--ok); color: var(--bg); }
.wz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.wz-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wz-mode, .seg-item {
  display: block; position: relative; padding: 18px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: all .16s ease;
}
.wz-mode:hover, .seg-item:hover { border-color: var(--brand); }
.wz-mode input, .seg-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wz-mode b, .seg-item b { display: block; font-size: 15px; font-weight: 650; }
.wz-mode small, .seg-item small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.wz-mode.active, .seg-item.active { border-color: var(--brand); background: rgba(255, 107, 53, .07); box-shadow: inset 0 0 0 1px var(--brand); }
.wz-mode.active::after, .seg-item.active::after { content: "✓"; position: absolute; right: 15px; top: 14px; color: var(--brand); font-size: 15px; font-weight: 700; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; margin: 14px 0 18px; }
.wz-check { display: flex; align-items: flex-start; gap: 11px; margin: 14px 0 4px; font-size: 13px; cursor: pointer; }
.wz-check input { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; }
.wz-check + .muted { margin: 0 0 10px 29px; font-size: 12px; }
.wz-store, .wz-address, .film-group, .wz-summary {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface-2); margin-bottom: 14px;
}
.wz-store-head, .wz-address-head, .film-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.wz-store-head .badge { margin-left: 6px; }
.wz-hint { font-size: 12px; color: var(--muted); background: var(--surface-2); border-left: 3px solid var(--gold); padding: 11px 13px; border-radius: 8px; }
.film-head b { font-size: 13px; }
.film-group h3 { margin: 0 0 12px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 7px 14px; font-size: 13px; }
.kv .k { color: var(--muted); }
/* 表格不再横向滚动：内容自动换行、等宽列、长串可断行 */
.tbl-wrap { overflow: visible; border: 1px solid var(--line); border-radius: 12px; }
.wtable { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.wtable th, .wtable td {
  padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left;
  white-space: normal; overflow-wrap: anywhere; word-break: break-word;
}
.wtable th { color: var(--muted); font-weight: 600; background: var(--surface-2); }
.wtable tr:last-child td { border-bottom: none; }
.wz-rolls .chip { margin: 0 6px 6px 0; }

@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2, .wz-modes { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 32px 24px; border-radius: 18px; }
  .hero h1 { font-size: 28px; }
  .hero::after { width: 140px; height: 140px; border-width: 18px; }
  .view { padding: 22px 15px 48px; }
  .nav { padding: 9px 14px; }
  .topbar { padding: 11px 14px; }
  .brand-text small { display: none; }
  .wz-steps { flex-direction: column; }
  .wz-step { min-width: 0; }
  .kv { grid-template-columns: 96px 1fr; }
  .card { padding: 18px; }
  .btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff !important; color: #111 !important; }
  .topbar, .nav, .filmstrip, .footer, .view, .toast, .theme-toggle { display: none !important; }
  .print-sheet { display: block !important; padding: 24px; font-family: sans-serif; color: #111; }
  .print-sheet h1 { font-size: 22px; }
  .print-sheet .slip { border: 1px dashed #333; padding: 20px; margin-top: 16px; }
  .print-sheet .slip .big { font-size: 22px; letter-spacing: .08em; margin: 10px 0; }
}

/* ============================================================
   2026-11-13 响应式防横向溢出：手机端不出现横向滚动条
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
img, svg, video, canvas, iframe { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
a, p, h1, h2, h3, span, td, th, label, li, code, pre { overflow-wrap: break-word; }
.toast { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .nav { padding: 9px 12px; gap: 5px; }
  .nav a { padding: 7px 11px; font-size: 12px; }
  .topbar { gap: 10px; padding: 11px 12px; }
  .brand-text { font-size: 17px; }
  .user-box, .topbar-actions { gap: 6px; }
  .wtable th, .wtable td { padding: 8px; }
}
@media (max-width: 640px) {
  .view { padding: 18px 12px 44px; }
  .hero { padding: 24px 18px; border-radius: 16px; }
  .hero h1 { font-size: 23px; }
  .hero p { font-size: 14px; }
  .hero::after { display: none; }
  .grid { gap: 12px; }
  .card { padding: 15px; }
  .stat-grid { gap: 10px; }
  .stat { padding: 12px 13px; }
  .stat b { font-size: 24px; }
  .kv { grid-template-columns: 1fr; gap: 1px; }
  .kv .k { font-weight: 600; margin-top: 4px; }
  .wz-steps { gap: 6px; }
  .wz-step { padding: 8px 10px; font-size: 11px; }
  .wz-foot > .btn, .hero-actions > .btn { flex: 1 1 100%; }
  .toolbar input, .toolbar select { min-width: 0; width: 100%; }
  .pager .muted { flex: 1 1 100%; }
  .toast { left: 12px; right: 12px; max-width: none; }
  .photo-grid { gap: 8px 2px; }
}

/* ============================================================
   2026-11-13 窄屏表格卡片化：字段带标签竖排，替代等宽挤压的表格。
   用 body 前缀提高特异性，确保后加载的 admin.css 不会覆盖。
   字段名由 theme.js 从 thead th 自动写入 td[data-label]。
   ============================================================ */
@media (max-width: 720px) {
  body .tbl-wrap { border: 0; border-radius: 0; background: transparent; }
  body table.tbl, body table.wtable,
  body .tbl tbody, body .wtable tbody,
  body .tbl tr, body .wtable tr { display: block; width: 100%; }
  body .tbl thead, body .wtable thead { display: none; }
  body .tbl tr, body .wtable tr {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px;
  }
  body .tbl tr:last-child, body .wtable tr:last-child { margin-bottom: 0; }
  body .tbl td, body .wtable td {
    display: flex; gap: 10px; align-items: baseline;
    border: 0; padding: 4px 0; font-size: 13px; white-space: normal;
  }
  body .tbl td::before, body .wtable td::before {
    content: attr(data-label);
    flex: 0 0 78px; color: var(--faint); font-size: 11px;
    letter-spacing: .04em; text-transform: uppercase;
  }
  body .tbl td[data-label=""]::before,
  body .wtable td[data-label=""]::before { display: none; }
  body .tbl td[data-label=""], body .wtable td[data-label=""] {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line-soft);
  }
  body .tbl tr:hover td, body .wtable tr:hover td { background: transparent; }
  body .tbl th { position: static; }
}

/* ===== 2026-11-19 新建订单一维单页 ===== */
.req { color: var(--danger); margin-left: 3px; font-weight: 700; }
.flow-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:12px 16px;
  border-radius:12px; background:var(--surface); border:1px solid var(--line); font-size:13px; }
.flow-bar .step-pill { padding:5px 11px; border-radius:99px; background:var(--surface-2); color:var(--text); }
.flow-bar .arrow { color:var(--faint); }
.mode-tiles { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.mode-tile { position:relative; display:block; border:1px solid var(--line); border-radius:14px;
  padding:18px; cursor:pointer; background:var(--surface); transition:all .16s ease; }
.mode-tile input { position:absolute; opacity:0; width:1px; height:1px; }
.mode-tile.active { border-color:var(--brand); background:rgba(255,107,53,.07); box-shadow:inset 0 0 0 1px var(--brand); }
.mode-tile b { display:block; font-size:15px; font-weight:650; }
.mode-tile small { display:block; color:var(--muted); margin-top:7px; line-height:1.5; }
.mode-tile .tick { position:absolute; right:15px; top:14px; color:var(--brand); font-size:15px; font-weight:700; }
@media (max-width:640px) { .mode-tiles { grid-template-columns:1fr; } }

/* 两组二选项在手机端保持横向并排 */
.seg-2 { grid-template-columns:1fr 1fr; }
@media (max-width:640px) {
  .seg-2 { gap:8px; margin:12px 0 14px; }
  .seg-2 .seg-item { padding:12px 10px; min-width:0; }
  .seg-2 b { font-size:13px; }
  .seg-2 small { font-size:11px; line-height:1.4; }
  .mode-tiles { grid-template-columns:1fr 1fr; gap:8px; }
  .mode-tile { padding:12px 10px; }
  .mode-tile b { font-size:13px; }
  .mode-tile small { font-size:11px; line-height:1.4; }
  .mode-tile .tick { right:9px; top:9px; font-size:13px; }
}

/* ============================================================
   2026-11-21 手机端体验优化（顾客端）
   目标：长订单号不再是巨幅标题；导航/卡片/按钮触控友好；
        信息层级清晰；任何宽度都不横向溢出。
   ============================================================ */
/* 订单头部：短标题 + 独立订单号块（等宽小字、可断行、带复制） */
.m-order-head { margin: 0 0 16px; }
.m-order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.m-order-head h1 { font-size: 22px; margin: 0; }
.m-order-no {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.m-order-no-label { font-size: 11px; color: var(--faint); letter-spacing: .04em; flex: 0 0 auto; }
.m-order-no code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px; color: var(--text); font-weight: 600;
  overflow-wrap: anywhere; word-break: break-all; min-width: 0; flex: 1 1 200px;
}
.m-order-no .badge { flex: 0 0 auto; }
.m-order-no .btn { flex: 0 0 auto; min-height: 34px; padding: 5px 12px; font-size: 12px; }
.m-order-head > .muted { margin: 8px 0 0; }

/* 订单列表项：订单号等宽小字、徽章独立成行、整体不挤压 */
.m-order-item { flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }
.m-order-item-main { flex: 1 1 180px; min-width: 0; }
.m-order-item-no { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-order-item-no code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px; font-weight: 600; overflow-wrap: anywhere; word-break: break-all;
}
.m-order-item .badge { flex: 0 0 auto; }
.m-order-item:hover { transform: none; }

/* 订单详情/追踪页两栏在窄屏合并为单栏 */
body .view > .grid.cols-2 { grid-template-columns: 1fr; }

/* 当前进度：状态名与时间分行更清楚，未发生状态弱化 */
.step .label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.step .step-time { margin-left: 0; white-space: normal; }
.step:not(.done):not(.current) .label { color: var(--muted); }
.step:not(.done):not(.current) .muted { opacity: .7; }

/* 顶栏与导航在窄屏更紧凑 */
.topbar { padding: 10px 14px; }
.brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
.brand-text { font-size: 17px; }
.theme-toggle { min-height: 34px; padding: 0 12px; }
.nav { padding: 8px 12px; }
.nav a { padding: 7px 12px; }

@media (max-width: 640px) {
  .m-order-head h1 { font-size: 20px; }
  .m-order-no { padding: 9px 11px; }
  .m-order-no code { font-size: 13px; flex-basis: 100%; }
  .m-order-no .btn, .m-order-no .badge { margin-top: 4px; }
  .m-order-item-no code { font-size: 13px; }
  /* 表单控制与按钮触控面积 */
  .btn.small { min-height: 38px; }
  .m-order-head .m-order-top .btn { min-height: 38px; }
  /* 卡片内边距收敛，给内容更多宽度 */
  .view { padding-left: 12px; padding-right: 12px; }
  .card { padding: 16px; }
  /* 进度说明文字不再贴边 */
  .step .muted { font-size: 12px; }
  /* 长链接、长通知自动换行 */
  .notice, .wz-hint, .pan-mini { overflow-wrap: anywhere; word-break: break-word; }
  /* 下单页两选项、流程条保持紧凑 */
  .flow-bar { padding: 10px 12px; font-size: 12px; }
  .flow-bar .step-pill { padding: 4px 9px; }
  .wz-foot { gap: 8px; }
  .wz-foot .btn { flex: 1 1 100%; }
}

/* ============================================================
   2026-11-21 顾客端订单页 UI 重构（移动端优先）
   参考主流物流追踪范式：状态主视觉 + 环形进度 + 纵向时间轴
   作用域统一 ot- 前缀，不影响下单/账户/后台等其他页面。
   ============================================================ */
.ot-page, .ot-standalone { max-width: 780px; margin: 0 auto; }
body .ot-page, body .ot-standalone { font-size: 14px; }

/* 通用卡片 */
.ot-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px; margin-bottom: 14px;
}
.ot-card h2 { font-size: 16px; margin: 0 0 14px; font-weight: 650; }
.ot-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.ot-footnote { font-size: 12px; color: var(--faint); line-height: 1.7; margin: 16px 2px 0; }
/* 追踪搜索页：卡片宽 460 居中，脚注如果占满 780 的容器会显得比卡片宽出去一截，
   这里让它跟卡片同宽居中。（结果页的脚注前面不是 .ot-search-card，不受影响） */
.ot-search-card + .ot-footnote {
  max-width: 460px; margin: 14px auto 0; text-align: center; padding: 0 4px;
}

/* 状态色调（用 CSS 变量驱动整页强调色） */
.ot-tone-active { --accent: var(--brand); --accent-soft: rgba(255, 107, 53, .14); --accent-line: rgba(255, 107, 53, .35); }
.ot-tone-done   { --accent: var(--ok);    --accent-soft: var(--ok-bg);   --accent-line: var(--ok); }
.ot-tone-wait   { --accent: var(--warn);  --accent-soft: var(--warn-bg); --accent-line: var(--warn); }
[data-theme="light"] .ot-tone-active { --accent: var(--brand); --accent-soft: rgba(216, 80, 30, .1); }

/* ---- 列表页头部 / 汇总 / 筛选 ---- */
.ot-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ot-page-head h1 { font-size: 27px; margin: 6px 0 4px; font-weight: 700; letter-spacing: -.03em; }
.ot-page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.ot-new {
  flex: 0 0 auto; background: var(--brand); color: var(--brand-ink); font-weight: 700;
  border-radius: 12px; padding: 11px 16px; font-size: 13px; text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 107, 53, .22); transition: transform .16s, filter .16s;
}
.ot-new:active { transform: scale(.96); }
.ot-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; margin-bottom: 16px;
}
.ot-summary > div { background: var(--surface); padding: 15px 8px; text-align: center; }
.ot-summary b { display: block; font-size: 24px; line-height: 1.2; font-family: var(--font-display); color: var(--text); }
.ot-summary > div:first-child b { color: var(--brand); }
.ot-summary > div:nth-child(2) b { color: var(--ok); }
.ot-summary span { font-size: 11px; color: var(--muted); }
.ot-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.ot-tab {
  flex: 1; text-align: center; padding: 9px 4px; border-radius: 10px; font-size: 13px;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: background .16s, color .16s, border-color .16s;
}
.ot-tab.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }

/* ---- 订单卡片 ---- */
.ot-order-list { display: flex; flex-direction: column; gap: 12px; }
.ot-order {
  display: block; position: relative; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.ot-order::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.ot-order:hover, .ot-order:focus-visible { border-color: var(--accent-line); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.ot-order:active { transform: scale(.99); }
.ot-order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ot-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); padding: 5px 11px; border-radius: 99px;
}
.ot-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ot-order-arrow { color: var(--faint); font-size: 24px; line-height: 1; }
.ot-order-no {
  display: block; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px; font-weight: 600; letter-spacing: .02em; margin-bottom: 6px;
  overflow-wrap: anywhere; word-break: break-all;
}
.ot-order-meta { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.ot-mini { height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ot-mini span { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s ease; }
.ot-order-foot { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11px; color: var(--faint); }
.ot-order-foot span:last-child { color: var(--accent); font-weight: 600; }

/* ---- 空状态 ---- */
.ot-empty {
  text-align: center; padding: 48px 20px; background: var(--surface);
  border: 1px dashed var(--line); border-radius: 18px;
}
.ot-empty-ic {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px; color: var(--brand);
  background: var(--accent-soft, var(--surface-2));
}
.ot-empty b { display: block; font-size: 16px; margin-bottom: 6px; }
.ot-empty p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.ot-empty .ot-btn { display: inline-flex; }

/* ---- 状态主视觉卡 ---- */
.ot-hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 22px 20px 18px;
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px;
}
.ot-hero-glow {
  position: absolute; top: -80px; right: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 66%); pointer-events: none;
}
.ot-hero-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ot-hero-lead { min-width: 0; }
.ot-hero-title { font-size: 27px; font-weight: 750; letter-spacing: -.03em; margin: 6px 0 6px; color: var(--accent); }
.ot-hero-desc { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.5; }
.ot-ring {
  --pct: 0%; flex: 0 0 74px; width: 74px; height: 74px; border-radius: 50%;
  background: conic-gradient(var(--accent) var(--pct), var(--surface-2) 0);
  display: grid; place-items: center;
}
.ot-ring-in {
  width: 60px; height: 60px; border-radius: 50%; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.ot-ring-in b { font-size: 22px; color: var(--accent); }
.ot-ring-in small { font-size: 10px; color: var(--muted); }
.ot-ring-in i { font-style: normal; color: var(--faint); }
.ot-hero-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 18px 0 16px; }
.ot-hero-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-line), var(--accent)); }
.ot-hero-no {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface-2); border-radius: 12px; padding: 10px 12px;
}
.ot-hero-no > div { min-width: 0; }
.ot-hero-no span { display: block; font-size: 10px; color: var(--faint); letter-spacing: .08em; margin-bottom: 2px; }
.ot-hero-no code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; font-weight: 600;
  overflow-wrap: anywhere; word-break: break-all;
}
.ot-copy {
  flex: 0 0 auto; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
  border-radius: 9px; padding: 7px 13px; font-size: 12px; font-weight: 700;
}
.ot-copy:active { transform: scale(.95); }
.ot-hero-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.ot-next {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px;
  border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.ot-next-ic {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--brand-ink); font-size: 15px; font-weight: 700;
}
.ot-next > div { min-width: 0; }
.ot-next b { display: block; font-size: 13px; color: var(--text); }
.ot-next span:not(.ot-next-ic) { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---- 时间轴 ---- */
.ot-timeline-card { padding-bottom: 6px; }
.ot-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ot-count { font-size: 11px; color: var(--faint); }
.ot-timeline { position: relative; padding-top: 6px; }
.ot-step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.ot-step:not(:last-child)::before {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: -2px; width: 2px; background: var(--line);
}
.ot-step.is-done:not(:last-child)::before { background: var(--ok); }
.ot-rail { flex: 0 0 28px; position: relative; z-index: 1; }
.ot-dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--faint); border: 1px solid var(--line);
}
.ot-step.is-done .ot-dot { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.ot-step.is-current .ot-dot {
  background: var(--accent); border-color: var(--accent); color: var(--brand-ink);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.ot-step-body { flex: 1; min-width: 0; border-radius: 10px; padding: 2px 10px 8px; margin: -2px 0 0; }
.ot-step.is-current .ot-step-body { background: var(--accent-soft); }
.ot-step-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 28px; }
.ot-step-line b { font-size: 14px; color: var(--muted); }
.ot-step.is-done .ot-step-line b, .ot-step.is-current .ot-step-line b { color: var(--text); }
.ot-step-line time { flex: 0 0 auto; font-size: 11px; color: var(--faint); }
.ot-step.is-current .ot-step-line time { color: var(--accent); }
.ot-step-body p { margin: 2px 0 0; font-size: 12px; color: var(--faint); line-height: 1.5; }
.ot-step.is-todo { opacity: .58; }

/* ---- 操作 / 信息 / 隐私卡 ---- */
.ot-action-card h2, .ot-info-card h2, .ot-privacy h2 { font-size: 15px; }
.ot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ot-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 650;
  text-decoration: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: transform .16s, filter .16s, background .16s;
}
.ot-btn:active { transform: scale(.97); }
.ot-btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px rgba(255,107,53,.2); }
.ot-btn-ghost { background: transparent; }
.ot-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.ot-tip { font-size: 11px; color: var(--faint); margin: 12px 0 0; line-height: 1.6; }
.ot-info-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.ot-info-row:last-child { border-bottom: 0; }
.ot-info-row span { color: var(--muted); flex: 0 0 auto; }
.ot-info-row b { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.ot-privacy p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.ot-privacy .ot-btn { width: 100%; }
.ot-subnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 13px; }
.ot-subnav a { color: var(--brand); font-weight: 600; text-decoration: none; }
.ot-subnav span { color: var(--faint); font-size: 12px; }

/* ---- 公开追踪搜索页 ---- */
.ot-search-head { text-align: center; padding: 26px 0 22px; }
.ot-search-head h1 { font-size: 29px; margin: 8px 0 8px; letter-spacing: -.03em; }
.ot-search-head p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 auto; max-width: 420px; }
.ot-search-card { max-width: 460px; margin: 0 auto 14px; }
.ot-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ot-field span { font-size: 12px; color: var(--muted); font-weight: 600; }
.ot-field input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-size: 15px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.ot-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft, rgba(255,107,53,.14)); }
.ot-search-card .ot-btn { width: 100%; margin-top: 10px; }
.ot-inline-err { background: var(--danger-bg); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }

/* ---- 下单资料（wizard 输出）融入新体系 ---- */
.ot-legacy .card { border-radius: 18px; padding: 20px; margin-top: 14px; }
.ot-legacy .card h2 { font-size: 16px; }
.ot-legacy .divider { margin: 18px 0; }
.ot-legacy .kv { grid-template-columns: 108px 1fr; }
@media (max-width: 640px) {
  .ot-legacy .kv { grid-template-columns: 1fr; gap: 0; }
  .ot-legacy .kv .k { font-size: 11px; color: var(--faint); margin-top: 8px; }
}

/* ---- 桌面增强 ---- */
@media (min-width: 700px) {
  .ot-page-head h1 { font-size: 32px; }
  .ot-hero { padding: 28px 26px 24px; }
  .ot-hero-title { font-size: 32px; }
  .ot-ring { flex-basis: 88px; width: 88px; height: 88px; }
  .ot-ring-in { width: 72px; height: 72px; }
  .ot-ring-in b { font-size: 26px; }
  .ot-actions { grid-template-columns: repeat(3, 1fr); }
  .ot-timeline-card .ot-step-body p { font-size: 13px; }
}

/* ============================================================
   2026-11-21 统一 SVG 图标对齐（Icons.currentColor）
   ============================================================ */
svg { flex-shrink: 0; vertical-align: -0.15em; }
/* 按钮 / 链接内图标与文字的间距 */
.btn svg, .ot-btn svg, .ot-new svg, .ot-subnav a svg, .ot-copy svg { margin-right: 5px; }
.ot-subnav a svg, .ot-order-arrow svg { margin-right: 0; }
/* 首页功能卡图标：SVG 线性风格用描边色 */
.card .tile-icon svg { stroke-width: 1.8; }
/* 订单主视觉环形内的图标 */
.ot-ring-in b svg { display: block; margin: 0 auto; }
.ot-ring-in b { line-height: 1; }
/* 事实行图标与文字对齐 */
.ot-hero-facts span { display: inline-flex; align-items: center; gap: 5px; }
/* 下一阶段 / 空态图标 */
.ot-next-ic svg { display: block; }
.ot-empty-ic svg { display: block; margin: 0 auto; }
/* 时间轴打勾 */
.ot-dot svg { display: block; }
/* 下单模式勾选 */
.mode-tile .tick svg { display: block; }

/* ============================================================
   2026-11-21 文案箭头 -> SVG 对齐（字符箭头全部下线）
   ============================================================ */
.stat span { display: inline-flex; align-items: center; gap: 4px; }
.hero-actions .btn svg, .stat span svg { margin-right: 0; margin-left: 5px; }
.flow-bar .arrow { display: inline-flex; align-items: center; }
.flow-bar .arrow svg { display: block; }
a.muted svg { margin-right: 5px; }

/* ============================================================
   2026-11-24 移动端页头：单行 + 头像菜单 + 导航横向滚动
   背景：窄屏下品牌名换行、邮箱/管理后台/退出三个控件挤成两排、
        导航 6 项横向溢出，右侧「账户」被切掉。
   ============================================================ */
@media (max-width: 720px) {
  /* 页头固定 56px 单行，品牌可省略号截断，右侧只保留两个 36px 圆钮 */
  .topbar {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
    min-height: 56px; gap: 10px; align-items: center;
  }
  .brand { gap: 9px; flex: 1 1 auto; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; font-size: 13px; }
  .brand-text {
    display: block; min-width: 0; font-size: 16px; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .brand-text small { display: none; }

  /* 主题切换收成纯图标圆钮，文字留给桌面端 */
  .theme-toggle {
    width: 36px; min-width: 36px; height: 36px; min-height: 36px;
    padding: 0; border-radius: 50%;
  }
  .theme-toggle::after { content: none; }

  /* 导航单行横向滚动，隐藏滚动条，当前项由 JS 滚到中间 */
  .nav {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    padding: 8px 12px; gap: 5px;
    /* 右侧渐隐，明确告诉用户「后面还有」而不是「被切坏了」 */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  }
  .nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .nav a { flex: 0 0 auto; padding: 7px 13px; }
  /* 滚动到底时最后一个胶囊停在渐隐区之外 */
  .nav::after { content: ""; flex: 0 0 16px; }
}

@media (max-width: 380px) {
  .topbar { padding-left: 12px; padding-right: 12px; }
  .brand-text { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
}
