/* ==========================================================================
   MY俱乐部 · 客户端（点单 / 详情 / 付款 / 历史）
   ========================================================================== */

:root {
  --scrim-a: rgba(244, 247, 252, .34);
  --scrim-b: rgba(244, 247, 252, .72);
}
html[data-theme="dark"] {
  --scrim-a: rgba(7, 10, 18, .46);
  --scrim-b: rgba(7, 10, 18, .82);
}

body { display: flex; flex-direction: column; min-height: 100vh; }
main { position: relative; z-index: 1; flex: 1 0 auto; }

/* ------------------------------------------------------------ 背景视频 */

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg video, .bg .bg-still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.bg .bg-still { background: url("./bg-erii.webp") center/cover no-repeat; opacity: 0; transition: opacity .4s; }
body.no-video .bg video { display: none; }
body.no-video .bg .bg-still { opacity: 1; }
.bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    var(--scrim-a) 0%,
    var(--scrim-b) 46%,
    var(--bg) 92%);
}

/* ------------------------------------------------------------ 顶栏 */

.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--barh);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(2px)) { .bar { background: var(--bg); } }

.bar .in {
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 分段式导航 + 会滑动的蓝色药丸 */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  padding: 3px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 15px;
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .24s;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--on-brand); }
/* 滑块：顶栏导航和手机端底部标签栏共用同一套视觉。
   几何（位置 / 宽高）全部由 app.js 的 slidePill() 写，这里不再硬编码
   top / height —— 页签栏会换行、会横向滚动，只有两个轴都交给 JS
   才能跟住目标，CSS 再写死一个 top 会跟 transform 打架。 */
.nav-pill,
.tab-pill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: var(--sh-brand);
  pointer-events: none;
  z-index: 0;
  transition: transform .4s var(--ease), width .4s var(--ease),
              height .4s var(--ease), opacity .2s;
  opacity: 0;
}
.nav.has-pill .nav-pill,
.tabs-b.has-pill .tab-pill { opacity: 1; }

.bar-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }

/* 手机端底部标签栏（默认不显示） */
.tabs-b { display: none; }

/* ------------------------------------------------------------ 页头 */

.pagehead { padding: clamp(26px, 5vw, 46px) 0 clamp(16px, 2.6vw, 24px); }
.pagehead .back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: color .18s, gap .18s;
}
.pagehead .back:hover { color: var(--brand); gap: 8px; }
.pagehead h1 {
  font-family: var(--hand);
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .015em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .18), 0 10px 34px rgba(4, 10, 26, .40);
}
html[data-theme="dark"] .pagehead h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, .75); }
.pagehead p {
  margin-top: 10px;
  max-width: 54ch;
  font-size: 14px;
  color: var(--text-2);
  text-shadow: 0 1px 10px rgba(255, 255, 255, .5);
}
html[data-theme="dark"] .pagehead p { text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }

/* ------------------------------------------------------------ 视图切换 */

.view[hidden] { display: none; }
.view-in { animation: viewIn .44s var(--ease) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.pagehead.swap h1, .pagehead.swap p { animation: headIn .44s var(--ease) both; }
@keyframes headIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ 商品网格 */
/* 一张卡 = 一张「服务券」：上半是说明，下半是券根（价格 + 下单），
   中间用一条撕票线断开。卡片本身不透明 —— 背景是浅色插画，
   半透明叠上去会既没有边缘也没有对比，字全飘。深色主题才换成玻璃。 */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 8px;
}

.card {
  position: relative;
  display: flex;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  transition: transform .32s var(--ease), box-shadow .32s, border-color .32s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  box-shadow: var(--sh-3);
}
/* 卡片自己不留内边距，各区自己留 —— 券根才能满出血贴到左右下三边。
   也不能给 .card 加 overflow:hidden，否则撕票线两端的打孔会被裁掉。 */
.card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border-radius: inherit;
  color: inherit;
}
.card-link:focus-visible { outline-offset: -2px; }

/* 套餐宣传海报：竖版 3:4，贴在卡片最上面。.card 不能加 overflow:hidden
   （撕票线两端的打孔会被裁掉），所以圆角由海报自己收，只收上面两个角。
   用 aspect-ratio 而不是固定高度，四列 / 两列 / 单列网格都能自适应。 */
.card .poster {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.card .poster img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------- 海报渐进加载（模糊 → 清晰）
   --lqip 是内联的 24px 模糊占位图，零额外请求、首屏立刻有画面。
   高清图在后台下载，只有 load + decode 都完成（确认完全清晰）才淡入；
   在那之前旋转图标一直转，不会先给用户一张糊图就当作加载完了。 */
.card .poster { position: relative; }
.card .poster picture { display: block; position: relative; z-index: 1; width: 100%; height: 100%; }
.blur-up::before {
  content: "";
  position: absolute; inset: -6%; z-index: 0;
  /* 新上传或手填路径的海报没有对应的 -lqip.webp，--lqip 就不存在。
     给一层渐变兜底，配合下面的旋转图标，缓冲期间也有画面，不是一块死白。 */
  background-image: var(--lqip, linear-gradient(135deg, var(--surface-2), var(--brand-soft)));
  background-size: cover; background-position: center;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.06);
}
.blur-up .poster-full { opacity: 0; transition: opacity .48s ease; }
.blur-up.is-loaded .poster-full { opacity: 1; }
.poster-spin {
  position: absolute; z-index: 2;
  top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 3px solid rgba(232, 163, 61, .22);
  border-top-color: #e8a33d;
  border-radius: 50%;
  animation: posterSpin .8s linear infinite;
  pointer-events: none;
}
.blur-up.is-loaded .poster-spin {
  opacity: 0; visibility: hidden; animation: none;
  transition: opacity .24s ease, visibility .24s;
}
@keyframes posterSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .poster-spin { animation-duration: 1.6s; }
  .blur-up .poster-full { transition: none; }
}

/* 商品卡图标恢复成真实图片：加载效果不再用纯色方块，
   统一交给 base.css 的 img.img-fade 骨架微光（渐变左右扫过，
   和支付通道图标 / 收款二维码同一套）。见上方「通用图片/图标缓冲加载」。 */

.flag {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  height: 22px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: var(--sh-brand);
}

/* 头部：图标和标题同一行。以前图标独占一行，下面顶着一大片空白。
   2026-10 收卡片：内边距 17/18 收到 14/16，图标 38 收到 34。四列布局下
   每张卡只有 260px 宽，头部这点留白省下来全给了描述行。 */
.chead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 0;
}
.ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  /* 换成官网 favicon 位图后要铺满整个圆角方块，不留图标周围的空白 */
  overflow: hidden;
  padding: 0;
}
/* 官网 favicon 是位图，要铺满整块圆角方块。窄屏下 .ico 缩到 30 / 24px 时
   也由 100% 宽高跟着缩，不会只露出原图的左上角。加载失败时 img-fade 的
   is-failed 留淡蓝底色，容器本身的 --brand-soft 再兜一层，不出现破图。 */
.ico img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}

.nm { display: grid; gap: 3px; min-width: 0; padding-top: 1px; }
.nm h3 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.nm .sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* 券身：标签 + 说明。靠 .stub 的 margin-top:auto 撑开，短卡也不会把券根顶上去。
   名字是 .cdesc 不是 .cbody —— 后者是工作台的内容区，app.js 拿它判断当前在哪个页面。
   2026-10 收卡片：内边距 12/18/16 收到 10/16/13，间隙 10 收到 8。 */
.cdesc {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px 16px 13px;
}

.card .tags { display: flex; flex-wrap: wrap; gap: 6px; }

.card .desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 券根。撕票线 + 两端打孔，把「价格 + 下单」封成可以撕下来的一段。
   2026-10 收卡片：内边距 13/18 收到 11/16，和上面两段保持同一条左右基准线。 */
.stub {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  background: var(--stub-bg);
  border-top: 1px dashed var(--perf);
  border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);
}
/* 打孔骑在卡片边框上，所以往外偏 1px 正好盖住那条边 */
.stub::before,
.stub::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--punch, var(--surface));
  border: 1px solid var(--line);
}
.stub::before { left: -1px; }
.stub::after  { right: -1px; }

/* 深色主题：卡片换回玻璃。深色底上透出背景插画是有质感的，
   浅色主题才会「糊成一片」—— 两边的处理故意不一样。 */
html[data-theme="dark"] .card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-color: var(--glass-line, var(--line));
  --punch: rgba(4, 8, 18, .55);
}
html[data-theme="dark"] .card:hover { background: var(--glass-hi); }

.card .price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-width: 0;
}
.card .price b {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.card .price i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 没有 min-width:0 的话，nowrap 的 flex 项最小尺寸等于整段文字的宽度，
     它会顶着不缩，把价格行撑出券根（窄屏尤其明显）。 */
  min-width: 0;
}
.card .go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: var(--sh-brand);
  transition: filter .18s;
}
.card:hover .go { filter: brightness(1.08); }
.card:hover .go svg { transform: translateX(2px); }
.card .go svg { transition: transform .24s var(--ease); }

/* 卡片错峰入场 */
.cards-in > * { animation: cardIn .5s var(--ease) both; }
.cards-in > *:nth-child(1) { animation-delay: 0ms; }
.cards-in > *:nth-child(2) { animation-delay: 45ms; }
.cards-in > *:nth-child(3) { animation-delay: 90ms; }
.cards-in > *:nth-child(4) { animation-delay: 135ms; }
.cards-in > *:nth-child(5) { animation-delay: 180ms; }
.cards-in > *:nth-child(6) { animation-delay: 225ms; }
.cards-in > *:nth-child(7) { animation-delay: 270ms; }
.cards-in > *:nth-child(8) { animation-delay: 315ms; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ 详情两栏 */

.detail-cols {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}
.kicker::before {
  content: "";
  width: 3px; height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
}
.kicker-gap { margin-top: 20px; }

.ticks { display: grid; gap: 9px; font-size: 13px; color: var(--text-2); }
.ticks li { display: flex; gap: 9px; align-items: flex-start; }
.ticks li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 3px;
  border-radius: 5px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.4l2.9 2.9 5.9-6.2' fill='none' stroke='%231C5CD6' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px 10px no-repeat;
  border: 1px solid var(--brand-line);
}
html[data-theme="dark"] .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.4l2.9 2.9 5.9-6.2' fill='none' stroke='%235C9BFF' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.note-p { font-size: 13px; color: var(--text-2); }

/* ------------------------------------------------------------ 付款 */

.pay-list { display: grid; gap: 10px; }
.pay-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.pay-opt:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.pay-opt:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.pay-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt .pay-txt { display: grid; gap: 2px; min-width: 0; }
.pay-opt .pi { width: 26px; height: 26px; }
.pay-opt .pay-txt b { font-size: 14px; font-weight: 600; }
.pay-opt .pay-txt span { font-size: 12px; color: var(--muted); }
.pay-opt .tick {
  margin-left: auto;
  flex: 0 0 auto;
  width: 21px; height: 21px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transition: border-color .2s, background .2s;
}
.pay-opt:has(input:checked) .tick {
  border-color: var(--brand);
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.8 8.3l2.7 2.7 5.7-6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px 12px no-repeat;
}

.qr-box { display: grid; justify-items: center; gap: 10px; padding: 6px 0 2px; }
.qr-slot { display: none; }
.qr-slot.on { display: block; animation: viewIn .35s var(--ease) both; }
.qr-slot svg { width: 150px; height: 150px; padding: 9px; border-radius: var(--r); background: #fff; box-shadow: var(--sh-2); }
.qr-box p { font-size: 12px; color: var(--muted); }

/* 付款完成 */
.pay-done .panel-b { display: grid; justify-items: center; gap: 6px; padding: 34px 22px 26px; text-align: center; }
.done-mark { position: relative; display: block; width: 64px; height: 64px; margin: 0 auto 10px; }
.dm-c, .dm-t { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dm-c { stroke: var(--brand); stroke-width: 2.4; stroke-dasharray: 138; stroke-dashoffset: 138; animation: draw .6s var(--ease) .05s forwards; }
.dm-t { stroke: var(--brand); stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .35s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-h { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.done-p { font-size: 13px; color: var(--text-2); }
.order-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px dashed var(--brand-line);
  cursor: pointer;
  transition: background .18s;
}
.order-code:hover { background: var(--brand-line); }
.order-code.copied::after { content: "已复制"; font-family: var(--sans); font-size: 11px; color: var(--ok-ink); }
.done-kv { width: 100%; max-width: 340px; margin: 12px auto 4px; text-align: left; }
.done-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }

/* ------------------------------------------------------------ 订单列表 */

.rows { display: grid; gap: 12px; }

/* .orow 的折叠外观（本体、summary、箭头、code/svc/met/when）住在 base.css，
   和工作台的 .oline 共用一份 —— 两套页面各自只加载 shop.css 或 console.css
   之一，写在任一边另一边就看不到。这里只写点单页独有的展开内容排版。 */

.orow-b { padding: 15px 16px; display: grid; gap: 14px; }

/* 展开后的操作条：「去付款」按钮 + 一句提示。
   原来这是独立的 .orow-f 页脚，在折叠状态下也会露出来；
   收进展开区之后，用户先看清详情再决定付不付。 */
.orow-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.orow-tip { font-size: 12px; line-height: 1.5; }

.subblock { padding-top: 13px; border-top: 1px solid var(--line); }
.subblock .kicker { margin-bottom: 8px; }

/* 用订单号查询 */
.qbox .form { gap: 13px; }

/* ------------------------------------------------------------ 登录 */

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px var(--pad);
  position: relative;
  z-index: 1;
}
/* 宽屏时面板靠右停靠 —— 背景插画里的角色在左边，
   居中的卡片正好从她脸上切过去。 */
@media (min-width: 900px) {
  .login-wrap {
    justify-items: end;
    padding-right: clamp(40px, 9vw, 150px);
  }
}

/* 这张卡是不透明的「纸」：以前它是一个半透明的 .login-card 里又套了一个
   半透明的 .panel，两层叠加在浅色插画上等于没有边缘，还会露出一圈难看的接缝。 */
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 24px 24px 20px;
  border-radius: var(--r-lg);
  background: var(--paper, var(--glass-hi));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
}

/* 品牌标记和字标并排，不再是一个孤零零的蓝方块飘在标题上面 */
.login-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 17px;
  margin-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.login-head .brand-mark { width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto; }
.login-head .brand-mark::after { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.login-id { display: grid; gap: 2px; min-width: 0; }
.login-id b { font-size: 14.5px; font-weight: 700; letter-spacing: .01em; }
.login-id i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
}

/* 标题不再用楷体（--hand）。楷体在 .pagehead h1 那种 30-48px 的大字上有书法气势，
   但降到 25-27px 就变成两头不靠：既没有书法的体量，又损失了黑体的清晰度。
   这里改用无衬线 + 字重建层级。品牌字标（base.css 的 .brand-txt b）保留楷体，
   那是它该在的地方。 */
.login-title { font-family: var(--sans); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.login-sub { margin-top: 6px; font-size: 13px; color: var(--text-2); line-height: 1.65; }
.login-card .form { margin-top: 20px; }
/* 登录卡是不透明的白纸，输入框沿用纯 --surface 会整个陷进去看不见边界。
   这里给一点下沉底色，让它读成「凹槽」而不是一片留白。 */
.login-card .inp { background: var(--surface-2); }
html[data-theme="dark"] .login-card .inp { background: var(--surface); }

.login-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
/* 「回到点单页」降级成安静的链接，不再和「登录」抢注意力 */
.login-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s;
}
.login-back:hover { color: var(--brand); }
.login-note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ------------------------------------------------------------ 加载动画 */

#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 1;
  transition: opacity .42s ease, visibility .42s;
}
#loader::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: url("./bg-erii.webp") center/cover no-repeat;
  filter: blur(46px) brightness(.62) saturate(1.2);
  transform: scale(1.08);
}
html[data-theme="dark"] #loader::before { filter: blur(46px) brightness(.34) saturate(1.15); }
#loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(72% 60% at 50% 44%,
    color-mix(in srgb, var(--bg) 42%, transparent),
    color-mix(in srgb, var(--bg) 94%, transparent));
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.ld {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0;
  text-align: center;
}
.ld-mark {
  position: relative;
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.ld-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, var(--brand) 92%, transparent 100%);
  animation: spin 1.1s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}
.ld-mark::after {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  box-shadow: var(--sh-brand);
}
.ld-name { font-family: var(--sans); font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.ld-sub {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--muted);
  text-transform: uppercase;
}
.ld-track {
  position: relative;
  width: 210px;
  height: 3px;
  margin: 26px 0 11px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  overflow: visible;
}
.ld-track s {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 0%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width .3s var(--ease);
}
.ld-track u {
  position: absolute;
  top: 50%; left: var(--p, 0%);
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px var(--brand-soft), 0 0 14px var(--brand-2);
  transition: left .3s var(--ease);
}
.ld-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 210px;
  font-size: 11.5px;
  color: var(--muted);
}
.ld-foot b { font-family: var(--mono); font-size: 12px; color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .ld-mark::before { animation: none; }
}

/* 浮层提示（右下角通知）的样式统一放在 base.css 里 */

/* 按钮转圈 / 金额跳动 */
.spin {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid color-mix(in srgb, currentColor 32%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bump { animation: bump .36s var(--ease); }
@keyframes bump {
  0%   { transform: none; }
  40%  { transform: scale(1.11); }
  100% { transform: none; }
}

/* 换主题时整体过渡一下颜色（避免硬切） */
html.theming, html.theming body, html.theming .bar, html.theming .card, html.theming .panel {
  transition: background-color .38s ease, color .38s ease, border-color .38s ease;
}

/* ------------------------------------------------------------ 响应式 */

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 620px) {
  :root { --barh: 56px; }

  /* 顶栏只留品牌 + 操作，导航挪到屏幕底部 */
  .nav { display: none; }
  .bar .in { gap: 8px; }
  .brand-txt i { display: none; }
  .who { display: none; }

  /* 悬浮胶囊：不贴边、不贴底，四周留出呼吸位，和顶栏导航一样用滑块指示当前页。
     居中用 left/right:0 + margin:auto，宽度用 100%，**不要**混用 100vw +
     left:50%：vw 把滚动条算进去、left 的百分比不算，桌面窄窗口下会偏 5px。 */
  .tabs-b {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(14px + env(safe-area-inset-bottom));
    margin-inline: auto;
    width: calc(100% - 26px);
    max-width: 430px;
    z-index: 80;
    display: grid;
    padding: 5px;
    border-radius: var(--r-full);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid var(--line);
    box-shadow: var(--sh-2), 0 18px 40px -26px rgba(13, 21, 38, .5);
  }
  @supports not (backdrop-filter: blur(2px)) { .tabs-b { background: var(--surface); } }
  .tabs-b a {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 5px 0 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    border-radius: var(--r-full);
    transition: color .24s;
  }
  .tabs-b a .ti {
    display: grid;
    place-items: center;
    width: 46px; height: 26px;
    border-radius: var(--r-full);
  }
  /* 选中项压在白字滑块上，所以是 --on-brand 而不是 --brand，
     否则蓝底蓝字在浅色主题下几乎看不见 */
  .tabs-b a.on { color: var(--on-brand); }
  body { padding-bottom: 86px; }

  /* 商品卡：单列「左海报 + 右信息」的横向卡。
     旧版是三列窄券，375px 屏上每列只有约 110px：竖版宣传图被压成 147px 的
     小方块（图里的字完全读不出），套餐名 12.5px 挤成一条，副标题和规则说明
     干脆 display:none。等于花大力气做的 9 张海报在手机上白给了。
     单列之后海报占 34%（约 115×172，接近原图 3:4），右侧是能正常读的信息列。 */
  .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { border-radius: 14px; min-height: 172px; }
  .card-link {
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    text-align: left;
  }
  .card .poster {
    grid-column: 1; grid-row: 1 / 4;
    aspect-ratio: auto;
    height: 100%; min-height: 172px;
    border-radius: 13px 0 0 13px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .card .poster img { object-position: center 34%; }
  .chead {
    grid-column: 2; grid-row: 1;
    flex-direction: row; align-items: flex-start; gap: 9px;
    padding: 12px 12px 0;
  }
  .ico { width: 30px; height: 30px; border-radius: 9px; }
  .nm { justify-items: start; padding-top: 0; }
  .nm h3 { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
  .nm .sub { display: block; font-size: 11.5px; }
  .cdesc { grid-column: 2; grid-row: 2; gap: 6px; padding: 7px 12px 8px; }
  .card .desc { display: -webkit-box; font-size: 12px; line-height: 1.55; }
  .card .tags { justify-content: flex-start; gap: 4px; }
  .card .tags span:nth-child(n+2) { display: inline-flex; }
  .card .tags span { font-size: 10.5px; height: 19px; padding: 0 7px; }
  .stub {
    grid-column: 2; grid-row: 3;
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 8px; padding: 9px 12px;
    border-radius: 0 0 13px 0;
  }
  .card .price { justify-content: flex-start; }
  .card .price b { font-size: 18px; }
  .card .go {
    width: auto; height: 38px; min-width: 92px;
    justify-content: center; padding: 0 11px; font-size: 12.5px;
  }
  .card .go svg { display: block; width: 13px; height: 13px; }
  .flag { top: 8px; right: 8px; height: 18px; font-size: 9.5px; padding: 0 6px; }

  /* 刘海屏：viewport-fit=cover 已开，但顶栏原来只写 top:0，状态栏会盖住品牌行。
     .bar .in 固定回 --barh，多出来的安全区只由 .bar 的 padding 承担。 */
  .bar {
    height: calc(var(--barh) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }
  .bar .in { height: var(--barh); }

  /* 底部标签栏：拇指目标至少 44px，且要让开 Home 指示条 */
  .tabs-b a { padding: 8px 0 7px; font-size: 11.5px; gap: 3px; }
  .tabs-b a .ti { height: 28px; }
  body { padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px)); }

  /* 触屏上的按钮与选项都给到能点中的尺寸 */
  .btn { height: 44px; font-size: 14px; }
  .btn-xs { height: 38px; }
  .pay-opt { min-height: 56px; padding: 12px 14px; }
  .card .go { min-height: 40px; }

  /* iOS Safari 会把字号 <16px 的输入框自动放大整页，且缩放不会自己还原 */
  .inp, .ta, .sel { font-size: 16px; }

  .pagehead { padding-top: 22px; }
  .pagehead h1 { font-size: clamp(23px, 6.4vw, 30px); }
  .pagehead p { font-size: 13.5px; }
  /* 150px 的二维码在手机上不好扫，放大到 190px */
  .qr-slot svg { width: 190px; height: 190px; }
  .pay-done .panel-b { padding: 26px 16px 22px; }
  .panel-b { padding: 15px; }
  .panel-h { padding: 13px 15px; }
  .form-row { grid-template-columns: 1fr; gap: 13px; }
  .form-actions .btn { flex: 1 1 auto; }
  .amount .val { font-size: 22px; }
  .orow-h .code, .q-chip, .order-code { overflow-wrap: anywhere; }
  .foot .in { flex-direction: column; align-items: flex-start; }
  .foot { margin-top: 30px; padding-bottom: 24px; }
}

@media (max-width: 380px) {
  .grid { gap: 10px; }
  .card-link { grid-template-columns: 32% minmax(0, 1fr); }
  .chead { padding: 10px 9px 0; gap: 7px; }
  /* 换成官网 ICO 后窄屏也保留，只缩小到 24px，不再整块隐藏 */
  .ico { width: 24px; height: 24px; border-radius: 7px; }
  .cdesc { padding: 6px 9px 7px; }
  .stub  { padding: 8px 9px; gap: 6px; }
  .nm h3 { font-size: 13.5px; }
  .card .desc { -webkit-line-clamp: 1; }
  .card .price b { font-size: 16px; }
  .card .go { min-width: 82px; padding: 0 8px; font-size: 12px; }
}

/* 价格与按钮的唯一一份样式在文件上半部分（.card .price / .card .go）。
   这里以前又写了一遍并且互相覆盖，已经删掉。 */

/* 标题区说明文字不要被 ch 低估（中文是全角） */
.pagehead p { max-width: 640px; }

/* 卡片价格字号统一在上面的 620px 段里按横向卡定（18px），此处不再重复覆盖。 */
/* 关闭动效时，所有靠 animation-fill 才可见的元素必须直接落到终态
   （否则 .dm-c / .dm-t 的 stroke-dashoffset 停在初值 = 整块看不见） */
@media (prefers-reduced-motion: reduce) {
  .view-in,
  .cards-in > *,
  .pagehead.swap #phTitle,
  .pagehead.swap #phSub { animation: none !important; }
  .dm-c, .dm-t { animation: none !important; stroke-dashoffset: 0 !important; }
  html.theming, html.theming * { transition: none !important; }
}

/* ============================================================
   下单历史：草稿单（未付款） + 手机端布局
   ============================================================ */

/* 未付款 = 还没生效的草稿单 */
.badge.st-draft {
  color: var(--text-2);
  background: var(--surface-3);
  border-color: var(--line);
}
.orow-draft { border-style: dashed; }
.orow-draft > summary { background: var(--surface-3); }
.orow-draft .code { color: var(--text-2); }

/* 订单卡里的 <dl class="kv">：两列规则已挪到 base.css（工作台也要用，
   lib/ui.php:315 只在 shop / console 之间二选一）。 */

/* 底部标签栏按实际项数自适应（未登录时只有两个） */
.tabs-b { grid-auto-flow: column; grid-auto-columns: 1fr; }

@media (max-width: 620px) {
  .orow-h { padding: 11px 13px; gap: 7px; }
  .orow-h .code { font-size: 12.5px; }
  .orow-h .when { order: 9; margin-left: 0; width: 100%; }

  .orow-b { padding: 12px 13px; gap: 10px; }
  .orow-f {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 11px 13px;
  }
  .orow-f .btn { width: 100%; justify-content: center; }
  .orow-f .orow-tip { text-align: center; }

  .amount { padding: 11px 13px; }
  .amount .val { font-size: 20px; }

  .qbox .form-row { grid-template-columns: minmax(0, 1fr); }
  .rows { gap: 10px; }
}
/* 历史页：左边订单列表 + 右边查询栏。
   注意这里必须用类而不是内联样式，内联样式会把上面的 1080px 断点压住，
   手机端就会变成「左边一个字一行、右边溢出」。 */
.detail-cols.detail-history { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); }
@media (max-width: 1080px) {
  .detail-cols.detail-history { grid-template-columns: minmax(0, 1fr); }
}

/* 查询结果排在左栏最上面（本机订单在它下面）—— 你刚查的应该第一眼看到 */
.q-result { margin-bottom: 22px; }
.q-result-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.q-result-h .kicker { margin: 0; }

/* 空状态一句话说完，不再摆一大块空白面板 */
.mine-empty p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.75; }
.mine-empty a { color: var(--brand); font-weight: 600; }

/* 「最近查过」：只记关键词，点一下就重查 */
.q-recent { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.q-recent-h { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.q-recent-list { display: flex; flex-wrap: wrap; gap: 6px; }
.q-chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.q-chip:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand); }
/* ==================================================== 客户侧的「谁在跟这一单」 */

.crew-pub { border-top: 1px dashed var(--line); padding-top: 14px; }
.crew-pub-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--r-full);
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  animation: chipIn .34s var(--ease) both;
}
.pub-chip svg { width: 13px; height: 13px; flex: 0 0 auto; }
.pub-chip b { font-weight: 700; }
.pub-chip i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pub-chip.role-staff   { border-color: var(--brand-line); background: var(--brand-soft); }
.pub-chip.role-staff svg { color: var(--brand); }
.pub-chip.role-booster { border-color: rgba(224, 145, 32, .34); background: rgba(224, 145, 32, .10); }
.pub-chip.role-booster svg { color: #C97A0E; }
.crew-pub-past { margin-top: 10px; font-size: 12px; }

@keyframes chipIn {
  from { opacity: 0; transform: translateY(4px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* 下单历史里的空状态 panel 要和 orow 一样宽、一样左右对齐 */
#v-history .rows > .panel,
#v-history .rows > .empty-panel { margin: 0; }
#mineBox .empty { align-items: center; }
/* ============================================================ 磨砂卡片 */
/* 卡片、面板、订单行都改成半透明磨砂，跟顶栏一个质感 */
/* 磨砂半透明（与顶部栏同一套配方）。
   性能注意：backdrop-filter 的开销 ≈ 面积 × 模糊半径，而且背景是 <video>，
   每一帧都要重新采样。所以列表里会出现几十个的 .card / .orow 用更小的半径，
   只有 .panel 这种数量少、面积大的保持 18px。 */
/* 背景是一张很淡的浅色插画。半透明面板叠上去 = 既没有边缘也没有对比，
   字全飘 —— 所以浅色主题下 .card / .login-card 改成不透明的「纸」，
   玻璃只留给深色主题（那里它本来就是对的）和数量少、面积大的 .panel。 */
.orow,
.errcard {
  background: var(--glass);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-color: var(--glass-line, var(--line));
}
/* 面板数量少，做成「几乎不透明的纸」，比纯玻璃好读很多 */
.panel {
  background: var(--paper, var(--glass-hi));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--glass-line, var(--line));
}
.card .ico { background: var(--brand-soft); }
.orow-h { background: color-mix(in srgb, var(--surface-2) 62%, transparent); }
.orow-h { border-bottom-color: color-mix(in srgb, var(--line) 62%, transparent); }
.qbox .panel-b,
.panel-b { background: transparent; }

@supports not (backdrop-filter: blur(2px)) {
  .orow, .panel, .errcard { background: var(--surface); }
}

/* 滚动时先把模糊关掉（app.js 给 html 加 .scrolling），手指离开再恢复。
   9 MB 的视频背景 + 几十个模糊层是掉帧的主因。 */
html.scrolling .orow {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--glass-hi);
}
/* 宽屏下卡片更宽，两行截断会在描述和价格之间空出一大块，所以给到 3 行。
   2026-10 收卡片时从 3 行回到 2 行：三行描述在一张 260px 宽的卡上要占 62px，
   是整张卡里最高的一块，而它永远是截断的 —— 完整说明本来就在详情页。
   省下的高度让一屏能多放一行卡，比多读半句占位文案划算。
   平板 / 手机本来就按更少行数收紧（见下面的媒体查询）。 */
@media (min-width: 821px) {
  .card .desc { -webkit-line-clamp: 2; }
}
/* 已取消的订单在付款页上的收尾：不要沿用「付款成功」那套蓝色对勾语言，
   否则客户会以为钱已经顺利到账、单子也还活着。 */
.pay-done.is-dead .done-h { color: var(--text-2); }
.pay-done.is-dead .done-p { color: var(--text-2); }
.pay-done.is-dead .order-code { border-color: var(--line); color: var(--text-2); background: var(--surface-2); }
.pay-done.is-dead .order-code:hover { color: var(--brand); }

/* ============================================================
   触屏专项：hover 在手机上不会「移开」，点完一次会一直粘着高亮，
   看起来像按钮卡住了。只在真正有指针悬停的设备上保留 hover 效果，
   触屏改用轻量的 :active 缩放做按下反馈。
   ============================================================ */
html { -webkit-tap-highlight-color: transparent; }

@media (hover: none) {
  .card:hover,
  .pay-opt:hover { transform: none; }
  .card:hover { border-color: var(--line); box-shadow: var(--sh-2); }
  .card:hover .go { filter: none; }
  .card:hover .go svg { transform: none; }
  .pay-opt:hover { border-color: var(--line); }
  .btn-g:hover { border-color: var(--line); color: var(--text); }
  .btn-o:hover { background: var(--brand-soft); }
  .item:hover { transform: none; }

  .card:active { transform: scale(.985); }
  .card:active .go,
  .btn-p:active { filter: brightness(.94); }
  .pay-opt:active { border-color: var(--brand-line); }
}

/* 手机上大量半透明模糊层叠在 9 MB 的背景视频上，每一帧都要重新采样。
   数量最多的 .orow 直接退化成不透明底（.panel 数量少，保留玻璃质感）。
   滚动时 app.js 加的 .scrolling 仍然是更进一步的兜底。 */
@media (max-width: 620px) {
  .orow, .errcard {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--glass-hi);
  }
  .bar { backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); }
}