/* 智护舟全商城的线上样式，沿用重新设计稿的版式和组件。 */

/* 设计令牌 */
:root {
  color-scheme: light;

  /* 品牌色：可信赖的医用青绿 */
  --brand: #0b7a5e;
  --brand-2: #0fa37c;
  --brand-deep: #075c47;
  --brand-soft: #e1f2ec;
  --brand-mist: #f0f7f4;
  --brand-line: #c3ded3;

  /* 价格 / 促销暖色 */
  --price: #e2431c;
  --price-deep: #c53415;
  --price-soft: #fdeee8;

  /* 文字 */
  --ink: #182f28;
  --ink-2: #47625b;
  --ink-3: #627a71;

  /* 中性 */
  --line: #e2eae7;
  --line-strong: #cfded8;
  --bg: #f4f7f5;
  --card: #ffffff;

  /* 提示 */
  --danger: #cf3a2f;
  --warn-bg: #fff7e8;
  --warn-line: #f2ddb2;
  --warn-ink: #8a5a1f;

  /* 圆角 / 阴影 */
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;
  --shadow-1: 0 1px 2px rgba(23, 52, 44, .05), 0 8px 24px -14px rgba(23, 52, 44, .14);
  --shadow-2: 0 2px 6px rgba(23, 52, 44, .07), 0 16px 40px -18px rgba(23, 52, 44, .25);

  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "MiSans", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* 基础 */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }

main#page { min-height: 62vh; padding-block: 20px 48px; }

.page-view { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.loading-block { padding: 96px 0; text-align: center; color: var(--ink-3); }

/* 顶部头部 */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px -10px rgba(20, 50, 40, .25);
  position: sticky; top: 0; z-index: 80;
}
.header-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 28px;
  max-width: 1180px; margin-inline: auto; padding: 18px 20px 16px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; line-height: 0; }
.brand-text strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.brand-text strong em { font-style: normal; color: var(--brand); margin-left: 2px; }
.brand-text small { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-3); letter-spacing: 2.5px; }

.search-box {
  display: flex; align-items: center; gap: 8px;
  max-width: 560px; width: 100%;
  margin-inline: auto;
  border: 2px solid var(--line-strong); border-radius: 999px;
  background: #fff; padding: 4px 6px 4px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 122, 94, .1); }
.search-icon { color: var(--ink-3); display: inline-flex; }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  height: 36px; font-size: 13.5px; color: var(--ink);
}
.search-box input::placeholder { color: #a9bbb3; }
.search-btn {
  border: 0; border-radius: 999px; cursor: pointer;
  height: 34px; padding: 0 26px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 13px; font-weight: 600;
  transition: filter .15s, transform .15s;
}
.search-btn:hover { filter: brightness(1.06); }
.search-btn:active { transform: scale(.97); }

.cart-entry {
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  height: 42px; padding: 0 18px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  color: var(--ink); font-size: 13.5px; font-weight: 600;
  transition: border-color .15s, background .15s, color .15s;
}
.cart-entry svg { color: var(--ink-2); }
.cart-entry:hover { border-color: var(--brand); background: var(--brand-mist); color: var(--brand-deep); }
.cart-entry:hover svg { color: var(--brand); }
.cart-badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--price); color: #fff;
  border: 2px solid #fff;
  font-size: 11px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 主视觉横幅 */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: 26px 30px 28px;
  background: linear-gradient(118deg, #0b7a5e 0%, #0fa37c 58%, #17b58c 100%);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero::before { width: 260px; height: 260px; right: -70px; top: -120px; }
.hero::after { width: 150px; height: 150px; right: 150px; bottom: -80px; background: rgba(255, 255, 255, .06); }

.hero-copy { position: relative; z-index: 1; }
.hero-title { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.hero-sub { margin-top: 8px; font-size: 13px; opacity: .9; letter-spacing: .5px; }

.hero-hot { margin-top: 14px; font-size: 12px; opacity: .95; }
.hero-hot a {
  color: #fff; margin-right: 4px; padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
  display: inline-block; margin-bottom: 4px;
  transition: background .15s;
}
.hero-hot a:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* 列表工具栏 */
.list-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-bottom: 14px;
}
.sort-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.sort-item {
  display: inline-block; padding: 7px 15px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink-2);
  font-size: 12.5px; cursor: pointer;
  transition: all .15s;
}
.sort-item:hover { border-color: var(--brand-line); color: var(--brand-deep); }
.sort-item.active {
  background: var(--brand-soft); border-color: var(--brand-line);
  color: var(--brand-deep); font-weight: 700;
}
.result-meta { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }

/* 商品网格 / 卡片 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px 16px;
  margin-bottom: 8px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(226, 234, 231, .9);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--brand-line); }
.card-link { color: inherit; display: block; }
.card-link:hover { color: inherit; }

.card-media { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.04); }

.card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 1px;
}
.card-badge.out { background: #97a8a1; }

.card-body { padding: 12px 12px 10px; }
.card-title {
  font-size: 14px; font-weight: 600; line-height: 1.5;
  min-height: calc(14px * 1.5 * 2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-spec {
  margin-top: 5px; font-size: 12px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 10px; }

.card-price { color: var(--price); font-weight: 700; font-variant-numeric: tabular-nums; }
.card-price b { font-size: 19px; }
.card-sales { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }

.card-add {
  width: 32px; height: 32px; flex: none;
  border: 1px solid var(--brand-line); border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.card-add:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.card-add:active { transform: scale(.88); }

/* 分页 */
.pages { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 26px 0 4px; }
.page-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink-2);
  font-size: 13px; cursor: pointer; transition: all .15s;
}
.page-arrow:hover { border-color: var(--brand); color: var(--brand-deep); }

/* 面包屑 */
.crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 7px; color: #c0cfc9; }
.crumbs .cur { color: var(--ink-2); }

/* 商品详情 */
.detail {
  display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 30px; align-items: start;
}

.gallery-main {
  aspect-ratio: 1 / 1; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: #fff; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.g-thumb {
  width: 64px; height: 64px; padding: 0;
  border: 2px solid var(--line); border-radius: var(--r-sm);
  background: #fff; overflow: hidden; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb:hover { border-color: var(--brand-line); }
.g-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 122, 94, .14); }

.info-title { font-size: 21px; font-weight: 700; line-height: 1.45; letter-spacing: .3px; }
.info-sub { margin-top: 7px; font-size: 13px; color: var(--ink-2); }

.price-panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  margin: 16px 0 12px; padding: 16px 20px;
  background: linear-gradient(135deg, #fdf0ea 0%, var(--price-soft) 100%);
  border-radius: var(--r-md);
}
.price-main { color: var(--price); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; }
.price-main b { font-size: clamp(20px, 5vw, 30px); font-weight: 800; letter-spacing: .5px; }
.price-stats { margin-left: auto; text-align: right; font-size: 12px; color: var(--ink-3); line-height: 1.8; }

.spec-group { margin: 6px 0 16px; }
.spec-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.spec-pils { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-item {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; color: var(--ink-2);
  font-size: 13px; cursor: pointer;
  transition: all .15s;
}
.spec-item:hover { border-color: var(--brand); color: var(--brand-deep); }
.spec-item.active {
  background: var(--brand-soft); border-color: var(--brand);
  color: var(--brand-deep); font-weight: 700;
}
.spec-tag {
  font-size: 10.5px; font-style: normal; font-weight: 700;
  color: var(--price-deep); background: var(--price-soft);
  border-radius: 4px; padding: 1px 5px;
}
.spec-item.disabled, .spec-item.disabled:hover {
  background: #f3f6f5; border-color: var(--line); color: #a9bbb3;
  cursor: not-allowed;
}
.spec-item.disabled .spec-tag { background: #eef1f0; color: #97a8a1; }

.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 8px; }
.qty-label { font-size: 13px; font-weight: 700; }
.stock-text { font-size: 12px; color: var(--ink-3); }

.stepper { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.stepper button {
  width: 34px; height: 36px; border: 0; background: #f6faf8;
  color: var(--ink-2); font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.stepper button:hover { background: var(--brand-soft); color: var(--brand-deep); }
.stepper button:disabled { background: #f3f6f5; color: #c3d1cb; cursor: not-allowed; }
.stepper input {
  width: 52px; height: 36px; border: 0; border-left: 1px solid var(--line);
  border-right: 1px solid var(--line); outline: none;
  text-align: center; font-size: 14px; font-weight: 700; color: var(--ink);
}
.stepper.sm button { width: 28px; height: 30px; }
.stepper.sm input { width: 42px; height: 30px; font-size: 13px; }

.subtotal-row { margin: 12px 0 16px; font-size: 14px; color: var(--ink-2); }
.subtotal-row .price { color: var(--price); font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.btn:active { transform: scale(.98); }
.btn-lg { height: 48px; font-size: 15px; flex: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(11, 122, 94, .55);
}
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--brand-deep); border-color: var(--brand-line); }
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }
.action-row { display: flex; gap: 14px; margin: 6px 0 20px; }

/* 缺货提示条 */
.out-banner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin: 0 0 16px; padding: 12px 16px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px;
  font-size: 13px; color: var(--warn-ink);
}

/* 页头（购物车等二级页） */
.page-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  margin-bottom: 16px;
}
.page-head h1 { font-size: 22px; font-weight: 800; }
.page-head .back-link { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.page-head .back-link:hover { color: var(--brand); }

/* 购物车 */
.cart-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px; align-items: start;
}
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 4px 18px 18px;
}
.panel-title { font-size: 15.5px; font-weight: 700; padding: 15px 0 6px; }

.cart-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0 11px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.select-all { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.btn-remove-sel {
  margin-left: auto; border: 0; background: none; padding: 4px 6px;
  color: var(--ink-3); font-size: 12.5px; cursor: pointer; border-radius: 6px;
}
.btn-remove-sel:hover { color: var(--danger); background: var(--price-soft); }

.cart-cols, .cart-line {
  display: grid;
  grid-template-columns: 20px 74px minmax(0, 1fr) minmax(54px, .4fr) 104px minmax(62px, .45fr) 32px;
  gap: 10px;
}
.cart-cols {
  padding: 11px 0 9px;
  font-size: 12px; color: var(--ink-3);
}

.cart-line {
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #eef4f1;
}
.cart-line:last-of-type { border-bottom: 0; }
.cl-sub { display: contents; }

.cl-check input, .select-all input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.cl-media { width: 74px; height: 74px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.cl-media img { width: 100%; height: 100%; object-fit: cover; }
.cl-name {
  font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cl-name:hover { color: var(--brand-deep); }
.cl-sku {
  display: inline-block; margin-top: 7px;
  padding: 2.5px 9px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  font-size: 11.5px; color: var(--ink-3);
}
.cl-price { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: center; }
.cl-sum { font-size: 15px; font-weight: 800; color: var(--price); font-variant-numeric: tabular-nums; text-align: right; }
.cl-remove {
  width: 32px; height: 32px; justify-self: end;
  border: 0; background: none; border-radius: 8px;
  color: #b3c2bc; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.cl-remove:hover { color: var(--danger); background: var(--price-soft); }

/* 结算 / 摘要面板 */
.summary {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px;
  position: sticky; top: 150px;
}
.summary h3 { font-size: 15.5px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px; padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--ink-2);
}
.sum-total .price { color: var(--price); font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; }
.btn-checkout { width: 100%; height: 46px; margin-top: 14px; font-size: 15px; }
.sum-note { margin-top: 11px; font-size: 11.5px; color: var(--ink-3); line-height: 1.8; }

/* 确认订单 */
.steps { display: flex; align-items: center; gap: 12px; margin: 2px 0 18px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-3); }
.step .dot {
  width: 27px; height: 27px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--ink-3);
}
.step.done .dot { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }
.step.current { color: var(--ink); font-weight: 700; }
.step.current .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.tag-mini {
  padding: 1px 6px; border-radius: 4px;
  background: #eef4f1; color: var(--ink-3); font-size: 10.5px; font-weight: 400;
}

.notice-bar {
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 14px; padding: 11px 15px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px;
  font-size: 12.5px; color: var(--warn-ink); line-height: 1.8;
}

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }

.oline {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 13px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid #eef4f1;
}
.oline:last-of-type { border-bottom: 0; }
.oline img { width: 64px; height: 64px; border-radius: 9px; border: 1px solid var(--line); object-fit: cover; background: #fff; }
.ol-name { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.ol-sku { display: inline-block; margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }
.ol-right { text-align: right; font-variant-numeric: tabular-nums; }
.ol-right .ol-sum { font-size: 14.5px; font-weight: 800; color: var(--price); }
.ol-right .ol-qty { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }

/* 空状态 / 错误状态 */
.empty {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 56px 24px 50px;
  text-align: center;
}
.empty-icon {
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--brand-mist); border: 1px dashed var(--brand-line);
  color: #9dbbb0;
  display: flex; align-items: center; justify-content: center;
}
.empty.error .empty-icon { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.empty-title { font-size: 17.5px; font-weight: 700; }
.empty-sub { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.empty-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.chips::before {
  content: "试试搜索这些";
  display: block; width: 100%;
  font-size: 12px; color: var(--ink-3); margin-bottom: 2px;
}
.chip {
  padding: 6px 15px; border-radius: 999px;
  border: 1px solid var(--brand-line); background: var(--brand-mist);
  color: var(--brand-deep); font-size: 12.5px;
  transition: all .15s;
}
.chip:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }

/* 移动端底部操作栏 */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px -12px rgba(23, 52, 44, .3);
}
.ab-icon {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink-2); font-size: 10.5px; width: 44px;
}
.ab-icon:hover { color: var(--brand); }
.ab-total { margin-right: auto; font-size: 12px; color: var(--ink-3); }
.ab-total .price { color: var(--price); font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.action-bar .btn { height: 44px; }
.action-bar .btn.half { flex: 1; min-width: 104px; }
.action-bar .select-all { font-size: 12px; color: var(--ink-2); margin-right: 4px; }

/* 实际商品与操作状态 */
[hidden] { display: none !important; }
main#page:focus { outline: none; }
.topbar {
  background: var(--brand-deep);
  color: #d7f0e6;
  font-size: 12px;
  letter-spacing: .15px;
}
.topbar .container { padding-block: 6px; }
.arrow-label { white-space: nowrap; }
.loading-block { margin-inline: auto; }
.hero + .list-head { margin-top: 18px; }
.hero-copy { max-width: 680px; }
.hero-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.hero-hot > span { margin-right: 5px; }
.hero-hot a { margin: 0; }
.hero-sub { color: #fff; opacity: 1; }
.card { display: flex; flex-direction: column; }
.card-link { display: flex; flex-direction: column; flex: 1; }
.card-body { display: flex; flex-direction: column; flex: 1; padding-bottom: 13px; }
.card-foot { margin-top: auto; padding-top: 10px; }
.card.has-action .card-foot { padding-right: 33px; }
.card-action { position: absolute; right: 10px; bottom: 12px; font-size: 22px; }
.card-media img, .gallery-main img, .g-thumb img, .cl-media img, .oline img { object-fit: contain; }
.card-price b { overflow-wrap: anywhere; }
.media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
  place-items: center;
  text-align: center;
  padding: 6px;
  background: linear-gradient(145deg, #f5faf7, #e9f3ee);
  color: #527368;
}
.card-media .media-placeholder, .gallery-main .media-placeholder { font-size: 13px; color: #627a71; }
.illustrated-photo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.image-kind {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 1px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
  white-space: nowrap;
}
.cl-media .image-kind, .oline-media .image-kind {
  right: 2px;
  bottom: 2px;
  padding-inline: 3px;
  font-size: 9px;
}
.gallery-thumbs { overflow-x: auto; padding: 3px; }
.g-thumb { flex: 0 0 auto; }
.gallery-main.no-photo { aspect-ratio: 4 / 3; }
.info-title, .item-description, .cl-name, .cl-sku, .ol-name, .ol-sku { overflow-wrap: anywhere; }
.price-main { flex-wrap: wrap; gap: 6px; }
.spec-group { padding: 0; border: 0; min-width: 0; }
.spec-pils { margin-top: 2px; }
.spec-item { min-height: 41px; }
.spec-item input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.spec-item:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.stepper input { appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { appearance: none; }
.stepper input:focus-visible { outline-offset: -2px; }
.stepper:focus-within { border-color: var(--brand); }
.cl-check input, .select-all input { margin: 0; }
.btn:disabled, .btn-remove-sel:disabled { opacity: .58; cursor: not-allowed; }
.cl-remove { font-size: 20px; color: var(--ink-3); }
.cart-cols > :nth-child(4), .cart-cols > :nth-child(5) { text-align: center; }
.cart-cols > :nth-child(6) { text-align: right; }
.cl-stepper { justify-self: center; }
.field-feedback { min-height: 1.5em; margin-block: 8px; color: #a53127; }
.details-panel { margin-top: 22px; }
.item-description { color: var(--ink-2); white-space: pre-wrap; margin-top: 8px; }
.empty-icon svg { width: 34px; height: 34px; }
.oline-media { aspect-ratio: 1; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.oline-media img { border: 0; }
.sum-total .price { color: var(--price-deep); }
.ab-icon svg { width: 21px; height: 21px; }
.checkout-return { flex: 0 0 auto; }
.site-footer { margin-top: 26px; background: var(--card); border-top: 1px solid var(--line); }
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin-inline: auto;
  padding: 22px 20px;
}
.footer-main strong { font-size: 16px; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 15px 20px;
  color: var(--ink-3);
  text-align: center;
  font-size: 12px;
}
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1024px) {
  .header-wrap { gap: 20px; }
  .detail { grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: 22px; }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}

@media (max-width: 768px) {
  .container, .header-wrap, .footer-main { padding-inline: 14px; }
  body.has-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .action-bar { display: flex; }
  .header-wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    padding-block: 10px;
  }
  .search-box { grid-column: 1 / -1; grid-row: 2; margin-top: 9px; padding-left: 13px; }
  .search-box input { font-size: 16px; }
  .search-btn { padding-inline: 15px; }
  .cart-entry { padding-inline: 13px; height: 40px; }
  .cart-entry-text, .brand-text small { display: none; }
  .brand-text strong { font-size: 17px; }
  .brand-logo { width: 36px; height: 36px; }
  main#page { padding-block: 14px 34px; }
  .hero { padding: 18px 18px 20px; }
  .hero-title { font-size: 20px; }
  .hero-hot a { padding: 3px 9px; }
  .result-meta { width: 100%; margin-left: 0; order: -1; }
  .sort-item { padding-inline: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 10px; }
  .card-body { padding: 9px 9px 11px; }
  .card-title { font-size: 13px; min-height: 39px; overflow-wrap: anywhere; }
  .card-price b { font-size: 16.5px; }
  .card-add { width: 28px; height: 28px; }
  .card-spec { display: none; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .gallery-main.no-photo { aspect-ratio: 16 / 7; }
  .info-title { font-size: 19px; }
  .action-row, .cart-cols { display: none; }
  .checkout-layout .summary, .cart-layout .summary .btn-checkout { display: none; }
  .cart-line {
    grid-template-columns: 18px 64px minmax(0, 1fr) 32px;
    gap: 8px;
  }
  .cl-media { width: 64px; height: 64px; }
  .cl-remove { grid-column: 4; grid-row: 1; }
  .cl-sub {
    display: flex;
    grid-column: 2 / -1;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }
  .cl-sku { max-width: 100%; }
  .cl-price { font-size: 12px; }
  .cl-sum { font-size: 13px; }
  .oline { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; }
  .oline img { width: 48px; height: 48px; }
  .steps { gap: 8px; }
  .empty { padding: 44px 18px 40px; }
  .empty-actions .btn { width: 100%; }
}

@media (max-width: 360px) {
  .panel { padding-inline: 12px; }
  .step { gap: 4px; }
  .sort-item { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
