/* 河马商城 · 门户样式层
   这一份是页面唯一的样式来源：课程留下的 webbase/index/banner 三套外壳已全部弃用。
   选中态一律用 is-on / is-active 这类带前缀的名字，别再占用裸的 on、active。 */

:root {
  --acc: #0f766e;
  --acc-d: #0b5e57;
  --acc-l: #14b8a6;
  --acc-bg: #ecfdf9;
  --ink: #14181f;
  --ink-2: #3d4451;
  --muted: #646e7d;
  /* 弱文字落在 --line 这类灰底上时 muted 只有 4.24，压不住 AA；深一档给这类"有底的格子"用 */
  --muted-d: #5a6472;
  --line: #e6e9ee;
  --line-2: #f1f3f6;
  --page: #f5f6f8;
  --white: #fff;
  --surface: #fbfcfd;
  --faint: #c6ccd6;
  --acc-bd: #bcd8d3;
  --hot: #dc2626;
  --blue-bg: #eef2ff;
  --blue-fg: #3730a3;
  --warn-bg: #fff7e6;
  --warn-bd: #fde3b0;
  --warn-fg: #92400e;
  --err-bg: #fef2f2;
  --err-bd: #fecaca;
  --err-fg: #b42318;
  --ok-bg: #f0fdf4;
  --ok-bd: #bbf7d0;
  --ok-fg: #15683a;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --sh-s: 0 1px 2px rgba(15, 23, 42, .06);
  --sh-m: 0 2px 6px rgba(15, 23, 42, .06), 0 10px 28px rgba(15, 23, 42, .07);
  --sh-l: 0 8px 20px rgba(15, 23, 42, .10), 0 22px 48px rgba(15, 23, 42, .10);
  --maxw: 1240px;
  --head-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--acc); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc-l); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 骨架 ---------- */
/* 页脚要钉在视口底：内容不足一屏时那一档空白属于页面，不属于页脚下面 */
.hm-page { display: flex; flex-direction: column; min-height: 100vh; }
.hm-page > .hm-main { flex: 1 0 auto; }
/* Vue 挂上之前 body 里那份原始模板会被画出来一帧：{{ }} 原样、两个互斥的 v-if 分支同时在场 */
[v-cloak] { display: none !important; }
.hm-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.hm-main { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }
.hm-mid { display: flex; align-items: center; }
.hm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-split { display: flex; gap: 16px; align-items: flex-start; }
.hm-split > .hm-grow { flex: 1 1 auto; min-width: 0; }
.hm-split > .hm-side { flex: none; width: 320px; }
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- 顶栏 ---------- */
.hm-head { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.hm-head-in { display: flex; align-items: center; gap: 22px; height: var(--head-h); }
.hm-logo { display: flex; align-items: center; gap: 9px; flex: none; }
.hm-logo img { height: 30px; width: auto; }
.hm-logo b { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.hm-search { flex: 1 1 auto; max-width: 560px; display: flex; align-items: center; }
.hm-search input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 14px;
  border: 2px solid var(--acc); border-right: 0; border-radius: 10px 0 0 10px;
  background: #fff; font-size: 14px;
}
.hm-search input::placeholder { color: var(--muted); }
/* 输入框和按钮拼成一条：焦点框往外画会压到右边按钮上，所以收到自己边框的内侧 */
.hm-search input:focus-visible { outline-offset: -2px; }
.hm-search button {
  flex: none; width: 88px; height: 40px; border: 0; border-radius: 0 10px 10px 0;
  background: var(--acc); color: #fff; font-size: 16px; font-weight: 600;
}
.hm-search button:hover { background: var(--acc-d); }
.hm-head-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.hm-head-nav a { display: block; padding: 8px 12px; border-radius: var(--r-s); font-size: 14px; color: var(--ink-2); }
.hm-head-nav a:hover { background: var(--line-2); color: var(--acc); }
.hm-head-nav a.is-active { color: var(--acc); font-weight: 700; background: var(--acc-bg); }
.hm-cartlink { position: relative; }
.hm-cartlink .hm-badge {
  position: absolute; top: 0; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--hot); color: #fff; font-size: 12px; line-height: 16px; text-align: center;
}
.hm-userbox { display: flex; align-items: center; gap: 10px; flex: none; padding-left: 16px; margin-left: 4px; border-left: 1px solid var(--line); }
.hm-userbox .who { font-weight: 700; }
.hm-userbox .bal { color: var(--muted); font-size: 13px; }
.hm-userbox .bal b { color: var(--acc); font-weight: 700; }
.hm-userbox a { font-size: 13px; color: var(--muted); }
.hm-userbox a:hover { color: var(--err-fg); }

/* 二级条：分类、面包屑、页面小标题 */
.hm-strip { background: #fff; border-bottom: 1px solid var(--line); }
.hm-strip-in { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 40px; font-size: 13px; color: var(--muted); }
.hm-crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 12px 0 0; }
.hm-crumb .sep { color: var(--muted); }
.hm-crumb .cur { color: var(--ink-2); max-width: 640px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- 标题区 ---------- */
.hm-h1 { font-size: 24px; font-weight: 800; letter-spacing: -.2px; }
.hm-pagehead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 20px 0 2px; }
.hm-pagehead .sub { font-size: 13px; color: var(--muted); }
.hm-sec { margin-top: 22px; }
.hm-sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hm-sec-head h3 { font-size: 18px; font-weight: 800; }
.hm-sec-head .sub { font-size: 13px; color: var(--muted); }
.hm-sec-head .hm-chip { height: 26px; padding: 0 11px; font-size: 12px; }
.hm-sec-head .chips { display: flex; flex-wrap: wrap; gap: 7px; }
.hm-more { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.hm-more:hover { color: var(--acc); }

/* ---------- 卡片栅格 ---------- */
.hm-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.hm-grid > * { width: calc((100% - 4 * 16px) / 5); }
.hm-grid.c4 > * { width: calc((100% - 3 * 16px) / 4); }
.hm-grid.c3 > * { width: calc((100% - 2 * 16px) / 3); }
.hm-grid.c2 > * { width: calc((100% - 1 * 16px) / 2); }
.hm-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hm-card:hover { transform: translateY(-3px); box-shadow: var(--sh-l); border-color: var(--acc-bd); }
.hm-card-img { display: block; aspect-ratio: 1 / 1; background: #fff; padding: 14px; }
.hm-card-img img { width: 100%; height: 100%; object-fit: contain; }
.hm-noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: 12px; color: var(--muted); background: repeating-linear-gradient(45deg, var(--line-2), var(--line-2) 8px, var(--line) 8px, var(--line) 16px); border-radius: var(--r-s); }
.hm-card-name {
  display: block; padding: 0 14px; font-size: 14px; line-height: 22px; height: 44px; overflow: hidden;
  color: var(--ink); transition: color .15s ease;
}
.hm-card:hover .hm-card-name { color: var(--acc); }
.hm-card-foot { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px 14px; margin-top: auto; }
.hm-card.has-acts .hm-card-foot { padding-bottom: 10px; }
.hm-card-acts { display: flex; gap: 8px; padding: 0 14px 14px; }
.hm-card-acts .hm-btn { flex: 1 1 0; min-width: 0; padding: 0 6px; }
.hm-price { font-size: 20px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.hm-was { font-size: 12px; font-weight: 400; color: var(--muted); text-decoration: line-through; margin: 0 6px; }
.hm-price i { font-style: normal; font-size: 12px; font-weight: 700; margin-right: 1px; }
.hm-sub { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.hm-rank {
  position: absolute; top: 0; left: 0; min-width: 30px; height: 24px; padding: 0 8px;
  background: linear-gradient(135deg, var(--acc), var(--acc-d)); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 24px; border-radius: 0 0 12px 0;
}
.hm-ad {
  position: absolute; top: 10px; right: 10px; font-size: 12px; line-height: 18px; padding: 0 7px;
  border-radius: 6px; background: var(--warn-bg); border: 1px solid var(--warn-bd); color: var(--warn-fg);
}

/* ---------- 按钮 / 标签 ---------- */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600;
  transition: all .15s ease; white-space: nowrap;
}
.hm-btn:hover { border-color: var(--acc); color: var(--acc); }
.hm-btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.hm-btn.primary:hover { background: var(--acc-d); border-color: var(--acc-d); color: #fff; }
.hm-btn.danger:hover { border-color: var(--err-bd); color: var(--err-fg); background: var(--err-bg); }
.hm-btn.sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.hm-btn.lg { height: 48px; padding: 0 30px; font-size: 16px; border-radius: 12px; }
.hm-btn.block { display: flex; width: 100%; }
.hm-btn.is-off, .hm-btn:disabled { opacity: .45; pointer-events: none; }
.hm-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: 12px; white-space: nowrap;
}
.hm-tag.is-warn { background: var(--warn-bg); color: var(--warn-fg); }
.hm-tag.is-acc { background: var(--acc-bg); color: var(--acc); }
.hm-tag.is-blue { background: var(--blue-bg); color: var(--blue-fg); }
.hm-tag.is-mute { background: var(--line-2); color: var(--muted); }
.hm-tag.is-err { background: var(--err-bg); color: var(--err-fg); }
.hm-tag.is-ok { background: var(--ok-bg); color: var(--ok-fg); }
.hm-chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; color: var(--ink-2); cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.hm-chip:hover { border-color: var(--acc); color: var(--acc); }
.hm-chip.is-on { border-color: var(--acc); background: var(--acc-bg); color: var(--acc); font-weight: 700; }
.hm-chip.is-on a { color: var(--acc); }

/* ---------- 面板 ---------- */
.hm-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-s); overflow: hidden; }
.hm-panel + .hm-panel { margin-top: 16px; }
.hm-panel-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.hm-panel-head h3 { font-size: 16px; font-weight: 800; }
.hm-panel-body { padding: 18px; }
/* 可折面板：折起时那一格没有下沿，否则一条横线悬在空处看着像页面坏了 */
.hm-foldhead { cursor: pointer; user-select: none; }
.hm-panel.is-fold .hm-foldhead { border-bottom: 0; }
.hm-fold-count { font-size: 12px; color: var(--acc); background: var(--acc-bg); border: 1px solid var(--acc-bd); border-radius: 999px; padding: 1px 9px; }
.hm-fold-caret { margin-left: auto; font-size: 13px; color: var(--muted); }
.hm-fold-caret::after { content: "▾"; margin-left: 5px; display: inline-block; transition: transform .18s ease; }
.hm-fold-caret.is-open::after { transform: rotate(180deg); }
/* 新增地址：按钮靠面板头右边，表单跟在地址卡下面，不另开一页（门户没有地址管理页） */
.hm-panel-head .addr-add { margin-left: auto; }
.hm-addrform { margin-top: 14px; padding: 16px; border: 1px solid var(--acc-bd); border-radius: 12px; background: var(--acc-bg); }
.hm-addrform .hm-field { margin-bottom: 10px; }
.hm-addrform .hm-field label { color: var(--acc-d); }
.hm-addrform .hm-input { background: #fff; }
.hm-addrform .hm-btn { margin-right: 8px; }
/* 提示块跟在面板后面时不给这一档就贴死在卡片下沿 */
.hm-after-panel { margin-top: 16px; }

/* ---------- 提示块 ---------- */
.hm-tip { font-size: 13px; color: var(--muted); line-height: 22px; }
.hm-warn { background: var(--warn-bg); border: 1px solid var(--warn-bd); color: var(--warn-fg); border-radius: 10px; padding: 11px 14px; font-size: 13px; }
.hm-err { background: var(--err-bg); border: 1px solid var(--err-bd); color: var(--err-fg); border-radius: 10px; padding: 11px 14px; font-size: 13px; }
.hm-ok { background: var(--ok-bg); border: 1px solid var(--ok-bd); color: var(--ok-fg); border-radius: 10px; padding: 11px 14px; font-size: 13px; }
.hm-empty { padding: 64px 20px; text-align: center; color: var(--muted); font-size: 14px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-l); }
.hm-empty .big { display: block; font-size: 30px; margin-bottom: 10px; opacity: .35; }

/* ---------- 表单 ---------- */
.hm-field { margin-bottom: 14px; }
.hm-field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.hm-input {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hm-input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); outline: none; }
.hm-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.hm-qty button { width: 34px; height: 34px; border: 0; background: var(--surface); font-size: 16px; color: var(--ink-2); }
.hm-qty button:hover { background: var(--line-2); color: var(--acc); }
.hm-qty input { width: 56px; height: 34px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 14px; }

/* ---------- 列表行（购物车 / 订单） ---------- */
.hm-lines > * + * { border-top: 1px solid var(--line); }
.hm-line { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.hm-line .thumb { flex: none; width: 72px; height: 72px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.hm-line a.thumb { display: block; }
.hm-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.hm-line .desc { flex: 1 1 auto; min-width: 0; }
.hm-line .desc .nm { font-size: 14px; line-height: 21px; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hm-line .desc a.nm { color: var(--ink); }
.hm-line .desc a.nm:hover { color: var(--acc); }
.hm-line .desc .sp { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hm-line .cell { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.hm-line .cell.money { font-weight: 700; }
.hm-line .cell .un { font-size: 14px; color: var(--ink-2); }
.hm-line .cell .drop { display: block; font-size: 12px; color: var(--warn-fg); }
.hm-line .warn { display: block; font-size: 12px; color: var(--err-fg); }
/* 列对齐：单价 / 数量 / 小计 / 操作 四格给死宽度，行与行才能成列表 */
.hm-line .cell.unit { flex: none; width: 96px; }
.hm-line .cell.qty { flex: none; width: 124px; }
.hm-line .cell.money { flex: none; width: 96px; }
.hm-line .acts { display: flex; gap: 8px; justify-content: flex-end; margin-left: 12px; }

/* 订单卡 */
.hm-ord { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-s); margin-bottom: 14px; overflow: hidden; }
.hm-ord-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 11px 18px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.hm-ord-bar b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-ord-bar .acts { margin-left: auto; display: flex; gap: 8px; }
.hm-ord .hm-line { border-top: 0; }
.hm-lines + .hm-lines { border-top: 1px solid var(--line); }
.hm-ord .hm-line + .hm-line { border-top: 1px dashed var(--line); }
.hm-ord-foot { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.hm-ord-foot b { color: var(--acc); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* 收货地址顶到状态下面：一个横条就够，它只承担"送到哪儿"，不是又一格要读很多字段的面板 */
.hm-recv { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-s); padding: 14px 18px; margin: 14px 0 0; }
.hm-recv .k { flex: none; width: 62px; font-size: 13px; color: var(--muted); padding-top: 1px; }
.hm-recv .v { flex: 1 1 auto; min-width: 0; }
.hm-recv .v > b { font-size: 14px; }
.hm-ord-bar .hm-btn { margin-left: 8px; }

/* 购物车按店分组：那一排标题是"这一将来是一张单"的边界，所以它要压在这一组的第一行上面，不是一张卡片 */
.hm-shopgrp + .hm-shopgrp { border-top: 2px solid var(--line-2); }
.hm-shopbar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--surface); font-size: 13px; }
.hm-shopbar b { font-weight: 700; }
.hm-shopcount { color: var(--muted); }
.hm-shoplink { margin-left: auto; color: var(--acc); }
.hm-shoplink:hover { text-decoration: underline; }
/* 详情页那一块卖家：它只回答"这一件是谁家的"，所以不给成一张卡片的高度 */
.hm-shopcard { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.hm-shopcard .k { flex: none; font-size: 13px; color: var(--muted); }
.hm-shopcard .v { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }
.hm-shopcard .v b { font-size: 15px; }
.hm-shoplink2 { margin-left: auto; font-size: 13px; color: var(--acc); }
.hm-shoplink2:hover { text-decoration: underline; }
/* 优惠挂在它自己那一店行上：小计已经是折后的数，再单列一条 -¥ 就是让人减第二遍 */
.hm-cut { display: block; font-style: normal; font-size: 12px; color: var(--warn-fg); }

/* ---------- 汇总 / 收银台 ---------- */
.hm-sum { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-s); padding: 16px 18px; }
.hm-sum li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; color: var(--muted); }
.hm-sum li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hm-sum .is-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.hm-sum .is-total span { color: var(--ink); font-size: 16px; font-weight: 700; }
.hm-sum .is-total b { color: var(--acc); font-size: 24px; font-weight: 800; }
.hm-sum .acts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hm-sum .hm-btn + .hm-tip { margin-top: 2px; }
.hm-paylist { display: flex; flex-direction: column; gap: 12px; }
.hm-payopt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; cursor: pointer; transition: all .15s ease; }
.hm-payopt:hover { border-color: var(--acc-bd); }
.hm-payopt.is-on { border-color: var(--acc); background: var(--acc-bg); box-shadow: 0 0 0 3px rgba(15, 118, 110, .08); }
.hm-payopt .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--faint); }
.hm-payopt.is-on .mark { border-color: var(--acc); background: var(--acc); box-shadow: inset 0 0 0 4px #fff; }
.hm-payopt .txt { flex: 1 1 auto; min-width: 0; }
.hm-payopt .txt b { display: block; font-size: 16px; }
.hm-payopt .txt span { font-size: 12px; color: var(--muted); }
.hm-qr { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.hm-qr img { width: 208px; height: 208px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; padding: 8px; }
/* basis 用 200 不是 260：收银台那一列只有 479，208+22+260=490 会挤到换行，说明掉到码下面 */
.hm-qr .tips { flex: 1 1 200px; min-width: 0; }
.hm-qr .tips p { font-size: 13px; color: var(--muted); line-height: 22px; }
.hm-count { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--warn-fg); }

/* ---------- 步骤条 ---------- */
.hm-steps { display: flex; align-items: center; gap: 6px; padding: 16px 0 4px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.hm-steps .st { display: flex; align-items: center; gap: 7px; }
.hm-steps .st i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--muted-d); font-size: 12px; font-style: normal; line-height: 20px; text-align: center; }
.hm-steps .st.is-on { color: var(--acc); font-weight: 700; }
.hm-steps .st.is-on i { background: var(--acc); color: #fff; }
.hm-steps .st.is-done i { background: var(--acc-bg); color: var(--acc); }
.hm-steps .gap { flex: 1 1 24px; height: 1px; background: var(--line); min-width: 20px; }

/* ---------- 首页轮播 ---------- */
/* 右边那一列是 10 行的长列表，硬要拉齐会把信息列撑出一段空白：让两块各按自己的高度顶对齐 */
.hm-hero { display: flex; gap: 16px; align-items: flex-start; }
.hm-hero-main { position: relative; display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; border-radius: var(--r-l); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-s); }
/* 商品图是 720 见方，铺满整块只能压到 300 高，两侧各空 300 像素；改成固定方格，省下的宽度给信息列 */
.hm-hero-stage { flex: none; display: flex; align-items: center; justify-content: center; width: 340px; min-height: 340px; padding: 20px; background: linear-gradient(180deg, #fff, var(--surface)); border-right: 1px solid var(--line); }
.hm-hero-stage img { max-width: 100%; max-height: 300px; width: auto; height: auto; object-fit: contain; }
.hm-hero-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; }
.hm-hero-info .nm { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-hero-info .nm:hover { color: var(--acc); }
.hm-hero-price { display: flex; align-items: baseline; }
/* 竖排 flex 默认把子项拉满宽，标签不 align-self 就变成一整条绿底横杠 */
.hm-hero-info .hm-tag { align-self: flex-start; }
.hm-hero-info .hm-btn { align-self: flex-start; }
.hm-hero-main > .hm-empty { flex: 1 1 auto; border: 0; min-height: 300px; display: grid; place-content: center; text-align: center; }
.hm-hero-rail { display: flex; gap: 10px; }
.hm-hero-rail .thumb { position: relative; flex: none; width: 68px; height: 68px; padding: 5px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; opacity: .55; transition: opacity .15s ease, border-color .15s ease; }
.hm-hero-rail .thumb:hover { opacity: 1; border-color: var(--acc-bd); }
.hm-hero-rail .thumb.is-on { opacity: 1; border-color: var(--acc); box-shadow: var(--sh-s); }
.hm-hero-rail .thumb img { width: 100%; height: 100%; object-fit: contain; }
.hm-hero-rail .no { position: absolute; top: -7px; left: -7px; width: 18px; height: 18px; border-radius: 999px; background: var(--muted-d); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-content: center; }
.hm-hero-rail .thumb.is-on .no { background: var(--acc); }
.hm-hero-side { flex: none; width: 268px; display: flex; flex-direction: column; }
.hm-hero-side .hm-panel { flex: 1 1 auto; }
.hm-ranklist li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; }
.hm-ranklist li + li { border-top: 1px solid var(--line-2); }
.hm-ranklist .no { flex: none; width: 20px; text-align: center; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-ranklist li:nth-child(-n+3) .no { color: var(--acc); }
.hm-ranklist .nm { flex: 1 1 auto; min-width: 0; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hm-ranklist .heat { flex: none; font-size: 12px; color: var(--muted); }

/* ---------- 详情 ---------- */
.hm-detail { display: flex; gap: 26px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-s); padding: 22px; }
.hm-gallery { flex: none; width: 400px; }
.hm-zoom { position: relative; overflow: hidden; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.hm-zoom img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; transition: transform .18s ease; transform-origin: center; }
.hm-zoom.is-on img { transform: scale(1.9); }
.hm-zoom .hint { position: absolute; left: 10px; bottom: 10px; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .86); border-radius: 999px; padding: 2px 9px; }
.hm-info { flex: 1 1 auto; min-width: 0; }
.hm-info h1 { font-size: 24px; line-height: 34px; font-weight: 700; }
.hm-pricebox { margin: 14px 0; padding: 14px 16px; border-radius: var(--r-m); background: linear-gradient(180deg, var(--acc-bg), var(--white)); border: 1px solid var(--acc-bd); }
.hm-pricebox .lab { font-size: 13px; color: var(--muted); margin-right: 8px; }
.hm-pricebox .now { font-size: 30px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.hm-pricebox .now i { font-style: normal; font-size: 16px; }
.hm-pricebox .side { font-size: 13px; color: var(--ink-2); margin-left: 12px; }
.hm-attrs { margin-top: 6px; }
.hm-attrs li { display: flex; gap: 14px; padding: 8px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.hm-attrs li:last-child { border-bottom: 0; }
.hm-attrs .k { flex: none; width: 76px; color: var(--muted); }
.hm-attrs .v { flex: 1 1 auto; min-width: 0; color: var(--ink); }
.hm-sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.hm-low { color: var(--err-fg); }
.hm-buyrow { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.hm-buyrow .k { flex: none; width: 52px; font-size: 13px; color: var(--muted); }
.hm-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.hm-subtotal { margin-left: 8px; font-size: 13px; color: var(--muted); }
.hm-subtotal b { color: var(--acc); font-size: 18px; font-variant-numeric: tabular-nums; }

/* ---------- 详情页：价位水位、规格摘要、参数表、类目品牌导航 ---------- */
.hm-level { margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--acc-bd); }
.hm-level .row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.hm-level .t { font-weight: 700; color: var(--ink); flex: none; }
.hm-level .p { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hm-level .bar { position: relative; height: 8px; margin-top: 9px; border-radius: 999px; background: #d7e6e3; overflow: hidden; }
.hm-level .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--acc-l), var(--acc-d)); }

.hm-specchips { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 2px; }
/* 参数是照着库里那一列端出来的摘要，不是筛选项，所以刻意不给 hover 和 pointer */
.hm-specchip { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--muted-d); }
.hm-specchip b { font-weight: 700; color: var(--ink); margin-left: 5px; }

/* 全局那张 table 是 border-collapse，圆角和 overflow 都夹不住线，这里改回 separate */
.hm-spec { border-collapse: separate; border-spacing: 0; table-layout: fixed; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--sh-s); }
.hm-spec th, .hm-spec td { border-bottom: 1px solid var(--line-2); padding: 11px 16px; font-size: 13px; text-align: left; vertical-align: top; }
.hm-spec tr:last-child th, .hm-spec tr:last-child td { border-bottom: 0; }
.hm-spec th { width: 110px; background: var(--surface); color: var(--muted-d); font-weight: 400; border-right: 1px solid var(--line-2); }
.hm-spec td { width: calc(50% - 110px); color: var(--ink); word-break: break-all; }
.hm-spec td:nth-child(4) { border-right: 0; }

.hm-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-sec-head.is-next { margin-top: 24px; }

/* ---------- 分页 ---------- */
.hm-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 4px; }
.hm-pager .num { min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; }
.hm-pager .num:hover { border-color: var(--acc); color: var(--acc); }
.hm-pager .num.is-on { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 700; }
.hm-pager .num.is-off { opacity: .4; pointer-events: none; }
.hm-pager-note { text-align: center; margin: -14px 0 8px; }

/* ---------- 结果页 ---------- */
.hm-result { max-width: 720px; margin: 34px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-s); padding: 44px 30px 34px; }
.hm-result .ico { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-bd); }
.hm-result h2 { font-size: 24px; font-weight: 800; }
.hm-result .acts { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.hm-result .no { font-size: 13px; color: var(--muted); margin-top: 8px; }
.hm-result .no b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hm-result .hm-attrs { text-align: left; max-width: 560px; margin: 24px auto 0; }
.hm-result .hm-lines { text-align: left; max-width: 620px; margin: 22px auto 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.hm-result .hm-lines + .hm-tip, .hm-result .hm-tip { max-width: 620px; margin: 18px auto 0; }

/* ---------- 骨架屏 ---------- */
.hm-skel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.hm-skel .bar { height: 14px; margin: 12px 14px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2) 25%, var(--line) 37%, var(--line-2) 63%); background-size: 400% 100%; animation: hm-shine 1.2s ease infinite; }
.hm-skel .box { height: 0; padding-top: 100%; background: linear-gradient(90deg, var(--line-2) 25%, var(--line) 37%, var(--line-2) 63%); background-size: 400% 100%; animation: hm-shine 1.2s ease infinite; }
@keyframes hm-shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 二级条里的链接 ---------- */
.hm-strip-in a { padding: 4px 10px; border-radius: 999px; }
.hm-strip-in a:hover { background: var(--acc-bg); color: var(--acc); }
.hm-strip-in .lead { font-weight: 700; color: var(--ink); }
.hm-strip-in .hb { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hm-strip-in .hw { color: var(--muted); }

/* ---------- 顶栏自动补全 ---------- */
.hm-searchbox { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.hm-sug {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--sh-l); overflow: hidden; max-height: 260px; overflow-y: auto;
}
.hm-sug li { padding: 9px 14px; font-size: 13px; cursor: pointer; }
.hm-sug li:hover, .hm-sug li.is-on { background: var(--acc-bg); color: var(--acc); }

/* ---------- 品牌墙 ---------- */
.hm-wall { display: flex; flex-wrap: wrap; gap: 10px; }
.hm-wall a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 124px; height: 42px; padding: 0 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-m);
  font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .15s ease;
}
.hm-wall a:hover { border-color: var(--acc); color: var(--acc); box-shadow: var(--sh-s); }
.hm-wall a span { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---------- 悬浮楼层导航 ---------- */
.hm-floorside {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 45;
  display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh-m);
}
.hm-floorside a { display: block; max-width: 116px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 7px 12px; border-radius: 999px; font-size: 12px; color: var(--ink-2); }
.hm-floorside a:hover { background: var(--acc-bg); color: var(--acc); }

/* ---------- 首页右栏那一列 ---------- */
.hm-hero-stage > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.hm-ranklist li > a { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.hm-ranklist .pr { flex: none; font-size: 13px; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; }

/* ---------- 分面（检索页） ---------- */
.hm-selbar { margin-bottom: 12px; }
/* 进店那一屏的顶栏：它要说的是"范围被收窄到一家了"，所以比已选条件那一排更实一点 */
.hm-inshop { align-items: baseline; gap: 10px; margin-bottom: 12px; padding: 11px 14px; background: var(--acc-bg); border: 1px solid var(--acc-bd); border-radius: 10px; }
.hm-inshop .lab { font-size: 13px; color: var(--acc-d); }
.hm-inshop b { font-size: 15px; }
.hm-inshop .hm-more { margin-left: auto; }
.hm-selbar .lab { font-size: 13px; color: var(--muted); }
.hm-selbar .x { margin-left: 7px; color: var(--muted); }
.hm-selbar .hm-chip.is-on .x { color: var(--acc); }
.hm-facet { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.hm-facet:last-child { border-bottom: 0; padding-bottom: 2px; }
.hm-facet .k { flex: none; width: 62px; padding-top: 5px; font-size: 13px; color: var(--muted); }
.hm-facet .v { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 勾选圆点（购物车） ---------- */
.hm-check { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--faint); background: #fff; cursor: pointer; transition: all .15s ease; }
.hm-check:hover { border-color: var(--acc); }
.hm-check.is-on { border-color: var(--acc); background: var(--acc); box-shadow: inset 0 0 0 3px #fff; }

/* ---------- 地址卡 ---------- */
.hm-addrgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.hm-addr { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; cursor: pointer; transition: all .15s ease; }
.hm-addr:hover { border-color: var(--acc-bd); box-shadow: var(--sh-s); }
.hm-addr.is-on { border-color: var(--acc); background: var(--acc-bg); box-shadow: 0 0 0 3px rgba(15, 118, 110, .08); }
.hm-addr .top { display: flex; align-items: center; gap: 10px; }
.hm-addr .top b { font-size: 14px; font-weight: 700; }
.hm-addr .top span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-addr .ln { margin-top: 6px; font-size: 13px; line-height: 20px; color: var(--ink-2); }

/* ---------- 登录页 ---------- */
/* 整页铺一张货架图，中间那一大片才有东西压；渐变压在图上，白字和白色卡才立得住 */
.hm-login { background: linear-gradient(180deg, rgba(6, 30, 33, .68), rgba(6, 30, 33, .5)), url(../img/login-bg.jpg) no-repeat center / cover fixed; }
/* 顶栏本来就是半透明白，落在图上要提一档对比，不然和背景糊成一片 */
.hm-login .hm-head { background: rgba(255, 255, 255, .86); }
.hm-login .hm-main { position: relative; }
.hm-authcol { flex: 1 1 auto; min-width: 0; }
.hm-authgrid { display: flex; align-items: stretch; max-width: 1000px; margin: 0 auto; background: #fff; border-radius: var(--r-l); box-shadow: 0 22px 54px rgba(3, 24, 27, .38); overflow: hidden; }
/* 这一栏是纯色品牌块：照片已经铺在整页底下了，再压到这块上只会把白色 logo 糊掉 */
.hm-auth-side { flex: none; width: 400px; padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: linear-gradient(165deg, var(--acc-d), var(--acc)); }
.hm-auth-side .brand { width: 252px; height: auto; }
.hm-auth { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; }
.hm-auth h2 { font-size: 24px; font-weight: 800; }
.hm-auth .sub { font-size: 13px; color: var(--muted); margin: 4px 0 22px; }
/* 卡片下面这一行分类词也是真分面，顺手把卡到下沿之间那一段填掉 */
.hm-authcats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: 1000px; margin: 18px auto 0; }
.hm-authcats .cap { font-size: 12.5px; color: rgba(255, 255, 255, .85); margin-right: 2px; }
.hm-authcats a { font-size: 12.5px; line-height: 18px; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink-2); }
.hm-authcats a:hover { background: #fff; color: var(--acc); }

/* ---------- 侧栏吸顶 ---------- */
.hm-sticky { position: sticky; top: calc(var(--head-h) + 16px); }

/* ---------- 加购：从按钮那一格抛出去，落进购物车 ---------- */
.hm-particle {
  position: fixed;
  z-index: 90;
  border-radius: 50%;
  background: var(--acc);
  pointer-events: none;
  opacity: 0;
  /* 弧线只能靠 keyframe 画：两段 transition 各自是直线，合成出来还是直线 */
  animation: hm-particle-toss .6s cubic-bezier(.35, .5, .5, 1) forwards;
}
@keyframes hm-particle-toss {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  /* 中途各往两侧和上方甩一格，最后一帧又收拢到同一个落点 */
  45% { transform: translate(calc(var(--dx) * .4 + var(--sx)), calc(var(--dy) * .4 + var(--sy))) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.25); opacity: 0; }
}
.hm-cartlink.is-pop { animation: hm-cart-pop .46s cubic-bezier(.3, .9, .4, 1.4); }
@keyframes hm-cart-pop {
  0% { transform: none; }
  45% { transform: translateY(3px) scale(1.14); }
  100% { transform: none; }
}
.hm-toast {
  position: fixed;
  top: calc(var(--head-h) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--sh-l);
  animation: hm-toast-in .2s ease-out;
  transition: opacity .22s ease, transform .22s ease;
}
.hm-toast b { font-weight: 600; }
.hm-toast a { color: var(--acc); font-weight: 600; }
.hm-toast.is-out { opacity: 0; transform: translateX(-50%) translateY(-8px); }
@keyframes hm-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%); }
}
/* 三种档不只靠颜色分：左边一条色杠 + 一个符号，色觉吃亏的人也读得出这是错还是成 */
.hm-toast.is-err, .hm-toast.is-warn { border-left-width: 4px; padding-left: 15px; }
.hm-toast.is-err { border-left-color: var(--err-fg); background: var(--err-bg); color: var(--err-fg); }
.hm-toast.is-warn { border-left-color: var(--warn-fg); background: var(--warn-bg); color: var(--warn-fg); }
.hm-toast.is-err::before { content: "!"; font-weight: 700; }
.hm-toast.is-warn::before { content: "·"; font-weight: 700; }

/* ---------- 危险动作那一问 ---------- */
.hm-ask {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 24, 31, .42);
  opacity: 0;
  transition: opacity .18s ease;
}
.hm-ask.is-on { opacity: 1; }
.hm-ask-card {
  width: min(420px, 100%);
  padding: 22px 22px 18px;
  background: var(--white);
  border-radius: var(--r-l);
  box-shadow: var(--sh-l);
  transform: translateY(8px) scale(.98);
  transition: transform .18s ease;
}
.hm-ask.is-on .hm-ask-card { transform: none; }
.hm-ask-card h4 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.hm-ask-card p { margin: 0 0 18px; font-size: 13px; line-height: 1.7; color: var(--muted-d); word-break: break-all; }
.hm-ask-acts { display: flex; justify-content: flex-end; gap: 10px; }
/* 键盘走这一发时，焦点要给得出来，不然人不知道回车会按到哪一支 */
.hm-ask-acts .hm-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .hm-ask, .hm-ask-card { transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .hm-grid > * { width: calc((100% - 3 * 16px) / 4); }
  .hm-hero-side { width: 240px; }
  .hm-floorside { display: none; }
}
/* 1120 以下右侧汇总挤得商品名只剩几十像素：宁可让汇总横过来压在列表下面 */
@media (max-width: 1120px) {
  /* 换列之后交叉轴变成横向，顶上那条 flex-start 若跟着留下，商品那一栏会塌成内容宽（面板只剩两百多像素） */
  .hm-split { flex-direction: column; align-items: stretch; }
  .hm-split > .hm-side { width: 100%; }
  .hm-sum { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .hm-sum > ul { display: flex; align-items: baseline; gap: 18px; flex: 1 1 auto; flex-wrap: wrap; }
  .hm-sum li { padding: 0; }
  .hm-sum .is-total { margin: 0; padding: 0; border-top: 0; display: flex; align-items: baseline; gap: 8px; }
  .hm-sum .acts { flex: none; margin: 0; }
  .hm-sum .hm-tip { flex: 1 1 100%; margin: 0; }
}
@media (max-width: 980px) {
  .hm-grid > * { width: calc((100% - 2 * 16px) / 3); }
  .hm-head-nav a { padding: 8px 9px; font-size: 13px; }
  .hm-userbox { padding-left: 10px; }
  .hm-detail { flex-direction: column; }
  .hm-gallery { width: 100%; max-width: 420px; }
  .hm-hero { flex-direction: column; }
  .hm-hero-main { flex-direction: column; }
  .hm-hero-stage { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .hm-hero-side { width: 100%; }
}
@media (max-width: 720px) {
  .hm-grid > *, .hm-grid.c3 > *, .hm-grid.c4 > * { width: calc((100% - 16px) / 2); }
  .hm-head-in { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .hm-search { order: 3; flex: 1 1 100%; max-width: none; }
  .hm-head-nav { margin-left: auto; }
  .hm-userbox { border-left: 0; padding-left: 0; order: 2; }
  .hm-h1 { font-size: 20px; }
  .hm-wrap { padding: 0 12px; }
  .hm-auth-side { display: none; }
  .hm-line { flex-wrap: wrap; }
  .hm-line .cell { text-align: left; }
  .hm-line .acts { width: 100%; margin-left: 0; }
}
