@charset "utf-8";
/* ==========================================================================
   星琊商城 · 样式
   设计源：~/.zcode/workspace/default/xingya（Tailwind v4，(mall) 分组）
   与官网同一套设计语言：zinc 灰阶 + blue-600 强调 + 圆角卡 + pill 按钮；
   商城与官网仍是两套独立资源（本文件不被官网引用，反之亦然）。
   ========================================================================== */

:root {
  --st-brand: #2563eb;
  --st-brand-hover: #1d4ed8;
  --st-brand-50: #eff6ff;
  --st-brand-100: #dbeafe;
  --st-brand-200: #bfdbfe;

  --st-900: #18181b;
  --st-700: #3f3f46;
  --st-600: #52525b;
  --st-500: #71717a;
  --st-400: #a1a1aa;
  --st-300: #d4d4d8;
  --st-200: #e4e4e7;
  --st-100: #f4f4f5;
  --st-50: #fafafa;

  --st-danger: #ef4444;
  --st-ok: #16a34a;

  --st-r-sm: 8px;
  --st-r: 12px;
  --st-r-lg: 16px;
  --st-pill: 9999px;

  --st-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);
  --st-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .10), 0 2px 4px -2px rgba(0, 0, 0, .10);

  --st-wrap: 1152px;
  --st-head-h: 56px;
  --st-font: "Geist", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.st-body {
  margin: 0;
  font-family: var(--st-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--st-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--st-900); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.st-wrap { width: min(var(--st-wrap), 100% - 32px); margin: 0 auto; }
.st-hidden { display: none !important; }
.st-req { color: var(--st-danger); }

/* ============================================================ 页头 */
.st-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--st-200);
}
.st-head { display: flex; align-items: center; gap: 32px; height: var(--st-head-h); }
.st-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.st-logo__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--st-r-sm);
  background: var(--st-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.st-logo__txt { display: flex; align-items: baseline; gap: 6px; }
.st-logo__txt b { font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.st-logo__txt span { font-size: 14px; font-weight: 400; color: var(--st-400); }

.st-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--st-600); flex: 1; min-width: 0; }
.st-nav a { white-space: nowrap; }
.st-nav a:hover { color: var(--st-brand); }
.st-nav a.is-active { color: var(--st-900); font-weight: 500; }

.st-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-shrink: 0; }
.st-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--st-200);
  border-radius: var(--st-pill);
  font-size: 14px;
  color: var(--st-600);
  background: #fff;
}
.st-cart:hover { border-color: var(--st-brand); color: var(--st-brand); }
.st-cart-num {
  position: absolute;
  right: -6px; top: -6px;
  min-width: 20px; height: 20px;
  padding: 0 4px;
  display: grid; place-items: center;
  border-radius: var(--st-pill);
  background: var(--st-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
.st-burger {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--st-200);
  border-radius: var(--st-r-sm);
  background: #fff;
  color: var(--st-600);
  font-size: 15px;
  cursor: pointer;
}

/* ============================================================ 按钮 */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--st-300);
  border-radius: var(--st-pill);
  background: #fff;
  color: var(--st-700);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.st-btn:hover { border-color: var(--st-brand); color: var(--st-brand); }
.st-btn--main { background: var(--st-brand); border-color: var(--st-brand); color: #fff; }
.st-btn--main:hover { background: var(--st-brand-hover); border-color: var(--st-brand-hover); color: #fff; }
.st-btn--dark { background: var(--st-900); border-color: var(--st-900); color: #fff; }
.st-btn--dark:hover { background: #000; color: #fff; }
.st-btn--outline { border-color: var(--st-200); color: var(--st-600); }
.st-btn--gray { background: var(--st-100); border-color: var(--st-100); color: var(--st-600); }
.st-btn--gray:hover { background: var(--st-200); border-color: var(--st-200); color: var(--st-900); }
.st-btn--danger { border-color: #fecaca; color: var(--st-danger); }
.st-btn--danger:hover { background: var(--st-danger); border-color: var(--st-danger); color: #fff; }
.st-btn--white { background: #fff; border-color: #fff; color: var(--st-brand); }
.st-btn--white:hover { background: var(--st-brand-50); border-color: var(--st-brand-50); color: var(--st-brand-hover); }
.st-btn--glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff; }
.st-btn--glass:hover { background: rgba(255, 255, 255, .28); border-color: #fff; color: #fff; }
.st-btn--sm { padding: 6px 14px; font-size: 12px; }
.st-btn--lg { padding: 12px 28px; font-size: 14px; }
.st-btn--block { width: 100%; }

/* ============================================================ 标签 / 价格 */
.st-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: var(--st-pill);
  border: 1px solid var(--st-200);
  background: #fff;
  font-size: 12px;
  color: var(--st-500);
  white-space: nowrap;
}
.st-tag--ink { border-color: var(--st-200); background: var(--st-50); color: var(--st-600); }
.st-tag--brand { border-color: var(--st-brand-200); background: var(--st-brand-50); color: var(--st-brand); }
.st-tag--hot { border-color: #fecaca; background: #fef2f2; color: var(--st-danger); }
.st-tag--ok { border-color: #bbf7d0; background: #f0fdf4; color: var(--st-ok); }
.st-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.st-price { font-size: 18px; font-weight: 600; color: var(--st-brand); font-variant-numeric: tabular-nums; }
.st-price small { font-size: 12px; font-weight: 600; margin-right: 1px; }
.st-price del { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--st-400); }

/* ============================================================ 页面容器 */
.st-sec { padding: 32px 0; }
.st-sec--soft, .st-sec--white { border-top: 1px solid var(--st-100); background: rgba(250, 250, 250, .6); }
.st-sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.st-sec-hd h2 { font-size: 20px; }
.st-sec-hd p { margin-top: 4px; font-size: 14px; color: var(--st-500); }

.st-crumb { display: flex; align-items: center; gap: 8px; padding-top: 24px; font-size: 12px; color: var(--st-400); }
.st-crumb a:hover { color: var(--st-brand); }
.st-crumb i { font-size: 9px; }

.st-pagehd { padding: 16px 0 20px; margin-bottom: 24px; border-bottom: 1px solid var(--st-100); }
.st-pagehd h1 { font-size: 24px; letter-spacing: -.02em; }
.st-pagehd h1 i { display: none; }
.st-pagehd p { margin-top: 8px; max-width: 720px; font-size: 14px; color: var(--st-500); }
.st-pagehd__acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.st-eyebrow { font-size: 12px; color: var(--st-400); }

/* Banner（blue-600 → blue-500 渐变，rounded-2xl） */
.st-banner {
  margin-top: 24px;
  height: 176px;
  display: grid;
  place-items: center;
  border-radius: var(--st-r-lg);
  background: linear-gradient(90deg, var(--st-brand), #3b82f6);
  color: #fff;
  text-align: center;
}
.st-banner__title { font-size: 24px; font-weight: 600; }
.st-banner__sub { margin-top: 4px; font-size: 14px; color: var(--st-brand-100); }
@media (min-width: 640px) { .st-banner { height: 224px; } }

/* 分类 pill 行（当前商城不使用分类，保留样式备用） */
.st-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.st-pill {
  padding: 6px 16px;
  border: 1px solid var(--st-200);
  border-radius: var(--st-pill);
  font-size: 14px;
  color: var(--st-600);
  background: #fff;
}
.st-pill:hover { border-color: var(--st-brand); color: var(--st-brand); }
.st-pill.is-active { border-color: var(--st-brand); background: var(--st-brand); color: #fff; }
.st-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; color: var(--st-500); }
.st-bar b { color: var(--st-900); font-weight: 500; }

/* ============================================================ 商品卡 */
.st-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.st-grid--3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.st-cols { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

.st-prod {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--st-200);
  border-radius: var(--st-r);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.st-prod:hover { box-shadow: var(--st-shadow-md); }
.st-prod__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: linear-gradient(to bottom right, var(--st-100), var(--st-200));
  color: var(--st-400);
  font-size: 34px;
}
.st-prod__badge {
  position: absolute;
  left: 12px; top: 12px;
  padding: 2px 10px;
  border-radius: var(--st-pill);
  background: #fff;
  color: var(--st-brand);
  font-size: 12px;
  font-weight: 500;
}
.st-prod__bd { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.st-prod__brand { font-size: 12px; color: var(--st-400); }
.st-prod__bd h4 { margin-top: 2px; font-size: 14px; font-weight: 500; }
.st-prod__bd h4 a { color: inherit; }
.st-prod__bd h4 a:hover { color: var(--st-brand); }
.st-prod__bd > p { margin-top: 4px; font-size: 12px; color: var(--st-500); }
.st-prod__ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }

/* ============================================================ 面板 / 卡片 */
.st-card, .st-panel { border: 1px solid var(--st-200); border-radius: var(--st-r); background: #fff; overflow: hidden; }
.st-card + .st-card, .st-panel + .st-panel { margin-top: 20px; }
.st-card__hd, .st-panel__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--st-100);
}
.st-card__hd h2, .st-card__hd h3, .st-panel__hd h2, .st-panel__hd h3 { font-size: 15px; font-weight: 600; }
.st-card__note, .st-panel__note { font-size: 12px; color: var(--st-400); }
.st-card__bd, .st-panel__bd { padding: 20px; }
.st-card__bd--tight, .st-panel__bd--tight { padding: 4px 20px; }
.st-card__ft { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--st-100); background: var(--st-50); }

.st-rows { display: flex; flex-direction: column; }
.st-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--st-100);
  font-size: 14px;
  color: var(--st-500);
}
.st-row:last-child { border-bottom: 0; }
.st-row b { color: var(--st-900); font-weight: 500; }
.st-row__k { color: var(--st-400); }
.st-row--total { padding-top: 16px; border-top: 1px solid var(--st-200); border-bottom: 0; }
.st-row--total .st-row__k { color: var(--st-900); font-weight: 500; }

.st-sum { padding: 24px; border: 1px solid var(--st-200); border-radius: var(--st-r); background: #fff; }
.st-sum h4 { font-size: 16px; margin-bottom: 8px; }
.st-sum__item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--st-100); }
.st-sum__item:last-of-type { border-bottom: 0; }
.st-sum__ico { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--st-r-sm); background: linear-gradient(to bottom right, var(--st-100), var(--st-200)); color: var(--st-400); font-size: 16px; }

.st-feats { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.st-feat { padding: 24px; border: 1px solid var(--st-200); border-radius: var(--st-r); background: #fff; }
.st-feat__ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--st-r-sm); background: var(--st-brand-50); color: var(--st-brand); font-size: 16px; margin-bottom: 12px; }
.st-feat h4 { font-size: 15px; font-weight: 500; }
.st-feat p { margin-top: 8px; font-size: 14px; line-height: 24px; color: var(--st-500); }

/* ============================================================ 表单 */
.st-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.st-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-field--full { grid-column: 1 / -1; }
.st-field label { font-size: 14px; font-weight: 500; color: var(--st-700); }
.st-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--st-300);
  border-radius: var(--st-r-sm);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--st-900);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.st-input:focus { border-color: var(--st-brand); box-shadow: 0 0 0 3px var(--st-brand-100); }
textarea.st-input { min-height: 96px; resize: vertical; }
.st-hint { font-size: 12px; color: var(--st-400); }
.st-form__acts { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 4px; }
.st-radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.st-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--st-300);
  border-radius: var(--st-pill);
  font-size: 14px;
  color: var(--st-700);
  cursor: pointer;
}
.st-radio:hover { border-color: var(--st-brand); color: var(--st-brand); }

/* ============================================================ 提示 */
.st-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--st-brand-200);
  border-radius: var(--st-r-sm);
  background: var(--st-brand-50);
  font-size: 14px;
  line-height: 1.7;
  color: var(--st-brand-hover);
}
.st-tip i { margin-top: 3px; }
.st-tip--ok { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.st-tip--err { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.st-tip--warn { border-color: #fde68a; background: #fffbeb; color: #b45309; }

.st-note { padding: 16px 20px; border: 1px dashed var(--st-300); border-radius: var(--st-r-sm); font-size: 14px; line-height: 1.8; color: var(--st-500); }
.st-note b { color: var(--st-900); }

.st-contact { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--st-100); }
.st-contact:last-child { border-bottom: 0; }
.st-contact > i { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--st-r-sm); background: var(--st-100); color: var(--st-600); font-size: 14px; }
.st-contact b { display: block; font-size: 14px; font-weight: 500; }
.st-contact small { display: block; margin-top: 2px; font-size: 12px; color: var(--st-400); }

/* ============================================================ 购物车 */
.st-cart-list { display: flex; flex-direction: column; gap: 12px; }
.st-cart-row {
  display: grid;
  grid-template-columns: 56px 1fr 100px 120px 80px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--st-200);
  border-radius: var(--st-r);
  background: #fff;
}
.st-cart-thumb { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--st-r-sm); background: linear-gradient(to bottom right, var(--st-100), var(--st-200)); color: var(--st-400); font-size: 18px; }
.st-cart-name b { display: block; font-size: 14px; font-weight: 500; }
.st-cart-name span { display: block; margin-top: 2px; font-size: 12px; color: var(--st-400); }
.st-cart-price { font-size: 15px; font-weight: 600; color: var(--st-brand); }
.st-cart-del {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--st-200);
  border-radius: var(--st-pill);
  background: #fff;
  color: var(--st-500);
  font-size: 12px;
  cursor: pointer;
}
.st-cart-del:hover { border-color: #fecaca; color: var(--st-danger); }

.st-qty { display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--st-300); border-radius: var(--st-r-sm); overflow: hidden; }
.st-qty button { width: 34px; height: 100%; border: 0; background: #fff; color: var(--st-600); font-size: 14px; cursor: pointer; }
.st-qty button:hover { background: var(--st-brand-50); color: var(--st-brand); }
.st-qty input { width: 48px; height: 100%; border: 0; border-left: 1px solid var(--st-200); border-right: 1px solid var(--st-200); text-align: center; font-family: inherit; font-size: 14px; outline: none; color: var(--st-900); }

/* ============================================================ 空态 / 结果页 */
.st-empty { padding: 64px 20px; border: 1px dashed var(--st-300); border-radius: var(--st-r); text-align: center; }
.st-empty i { font-size: 34px; color: var(--st-300); }
.st-empty h3 { margin-top: 16px; font-size: 16px; font-weight: 500; }
.st-empty p { margin-top: 6px; font-size: 14px; color: var(--st-500); }
.st-empty .st-btn { margin-top: 20px; }

.st-result { width: min(640px, 100%); margin: 72px auto 88px; text-align: center; }
.st-result__ico {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: var(--st-pill);
  background: var(--st-brand-50);
  color: var(--st-brand);
  font-size: 26px;
}
.st-result h1 { font-size: 24px; }
.st-result > p { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--st-500); }
.st-result__meta { margin: 24px 0 28px; padding: 20px; border: 1px solid var(--st-200); border-radius: var(--st-r); text-align: left; font-size: 14px; }
.st-result__acts { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============================================================ 订单 */
.st-orders { display: flex; flex-direction: column; gap: 16px; }
.st-order { border: 1px solid var(--st-200); border-radius: var(--st-r); background: #fff; overflow: hidden; }
.st-order__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--st-100);
  background: var(--st-50);
  font-size: 12px;
  color: var(--st-400);
}
.st-order__hd b { color: var(--st-900); font-weight: 500; }
.st-order__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ============================================================ 页脚 */
.st-footer { border-top: 1px solid var(--st-200); background: var(--st-50); }
.st-footer__grid { display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); padding: 48px 0; }
.st-footer__brand { display: flex; align-items: center; gap: 8px; }
.st-footer__brand b { font-size: 18px; font-weight: 600; }
.st-footer__desc { margin-top: 12px; font-size: 14px; line-height: 24px; color: var(--st-500); }
.st-footer h5 { margin-bottom: 12px; font-size: 14px; font-weight: 500; color: var(--st-900); }
.st-footer__col a { display: block; padding: 4px 0; font-size: 14px; color: var(--st-500); }
.st-footer__col a:hover { color: var(--st-brand); }
.st-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--st-200);
  font-size: 12px;
  color: var(--st-400);
}

/* ============================================================ Toast / 返回顶部 */
.st-toast {
  position: fixed;
  left: 50%;
  top: 76px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(520px, 90vw);
  padding: 12px 20px;
  border-radius: var(--st-pill);
  background: var(--st-900);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--st-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: all .2s ease;
}
.st-toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.st-toast i { color: #60a5fa; }

.st-totop {
  position: fixed;
  right: 24px; bottom: 32px;
  z-index: 60;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--st-200);
  border-radius: var(--st-pill);
  background: #fff;
  color: var(--st-600);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  box-shadow: var(--st-shadow-sm);
  transition: all .2s ease;
}
.st-totop.on { opacity: 1; visibility: visible; transform: none; }
.st-totop:hover { border-color: var(--st-brand); color: var(--st-brand); }

/* ============================================================ 登录弹窗 */
.st-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(24, 24, 27, .5); }
.st-modal.on { display: flex; }
.st-modal__box { width: min(420px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--st-r); box-shadow: var(--st-shadow-md); }
.st-modal__hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--st-100); }
.st-modal__hd h3 { font-size: 16px; }
.st-modal__x { width: 32px; height: 32px; border: 0; border-radius: var(--st-r-sm); background: transparent; color: var(--st-400); font-size: 16px; cursor: pointer; }
.st-modal__x:hover { background: var(--st-100); color: var(--st-900); }
.st-modal__bd { padding: 20px; }
.st-modal__ft { padding: 16px 20px; border-top: 1px solid var(--st-100); text-align: center; font-size: 14px; color: var(--st-500); }
.st-modal__ft a { color: var(--st-brand); font-weight: 500; }
.st-modal__switch { margin-top: 8px; }

/* ============================================================ 响应式 */
@media (max-width: 1024px) {
  .st-grid { grid-template-columns: repeat(3, 1fr); }
  .st-cols { grid-template-columns: 1fr; }
  .st-cart-row { grid-template-columns: 52px 1fr 100px 80px; }
  .st-cart-row .st-cart-price { display: none; }
  .st-feats { grid-template-columns: 1fr 1fr; }
  .st-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .st-burger { display: grid; place-items: center; }
  .st-nav {
    position: absolute;
    top: var(--st-head-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--st-200);
    box-shadow: var(--st-shadow-md);
    display: none;
  }
  .st-nav.open { display: flex; }
  .st-nav a { padding: 12px 0; border-bottom: 1px solid var(--st-100); }
  .st-nav a:last-child { border-bottom: 0; }
  .st-pagehd { flex-direction: column; align-items: flex-start; }
  .st-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .st-grid, .st-grid--3, .st-feats, .st-form, .st-footer__grid { grid-template-columns: 1fr; }
  .st-cart-row { grid-template-columns: 48px 1fr; row-gap: 12px; }
  .st-cart-row .st-qty, .st-cart-row .st-cart-del { grid-column: 2; justify-self: start; }
}

/* ============================================================ 首页楼层 / 分类页 / 商品详情（设计源 (mall) 页面） */
.st-floor { margin-top: 48px; }
.st-floor__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.st-floor__hd h2 { font-size: 20px; font-weight: 600; }
.st-floor__hd h1 { font-size: 24px; font-weight: 600; }
.st-floor__hd p { margin-top: 4px; font-size: 14px; color: var(--st-500); }
.st-more { font-size: 14px; color: var(--st-brand); white-space: nowrap; }
.st-more:hover { text-decoration: underline; }
.st-sortrow { display: flex; gap: 16px; font-size: 14px; color: var(--st-400); }
.st-sortrow .is-active { color: var(--st-brand); }

.st-prod__thumb i { font-size: 30px; }

/* 商品详情 */
.st-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.st-detail__price { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
.st-detail__price del { font-size: 14px; color: var(--st-400); }
.st-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.st-detail__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.st-detail__hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--st-100);
  font-size: 13px;
  line-height: 2;
  color: var(--st-500);
}
.st-detail__hint i { color: var(--st-brand); }

.st-spec { margin-top: 12px; }
.st-spec__row {
  display: flex;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--st-100);
  font-size: 14px;
}
.st-spec__row:last-child { border-bottom: 0; }
.st-spec__row dt { width: 96px; flex-shrink: 0; color: var(--st-400); }
.st-spec__row dd { margin: 0; color: var(--st-600); }

.st-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--st-r);
  background: linear-gradient(to bottom right, var(--st-100), var(--st-200));
  color: var(--st-400);
  font-size: 30px;
}
.st-placeholder--main { border-radius: var(--st-r-lg); }
.st-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.st-thumbs .st-placeholder { font-size: 18px; border-radius: var(--st-r-sm); }
.st-placeholder--long {
  aspect-ratio: auto;
  margin-top: 16px;
  padding: 64px 0;
  border: 1px dashed var(--st-300);
  background: #fff;
  border-radius: var(--st-r);
  font-size: 14px;
}

@media (max-width: 860px) {
  .st-detail { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================ 购物车 / 结算 / 收银台（设计源 (mall) 交易流） */
.st-cart-foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.st-cart-total { font-size: 14px; color: var(--st-500); }
.st-cart-name a { font-size: 14px; font-weight: 500; color: var(--st-900); }
.st-cart-name a:hover { color: var(--st-brand); }

.st-checkout { margin-top: 32px; display: grid; gap: 32px; grid-template-columns: 1fr 360px; }
@media (max-width: 1024px) { .st-checkout { grid-template-columns: 1fr; } }
.st-checkout .st-field > span { font-size: 14px; color: var(--st-500); }
.st-pay { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .st-pay { grid-template-columns: 1fr; } }
.st-pay__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--st-200);
  border-radius: var(--st-r-sm);
  cursor: pointer;
}
.st-pay__opt.is-active { border-color: var(--st-brand); background: rgba(239, 246, 255, .5); }
.st-pay__opt b { display: block; font-size: 14px; font-weight: 500; }
.st-pay__opt small { display: block; font-size: 12px; color: var(--st-400); }
.st-pay__opt input { accent-color: var(--st-brand); }

.st-pay-box {
  max-width: 400px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--st-200);
  border-radius: var(--st-r-lg);
  background: #fff;
}
.st-pay-list {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--st-r-sm);
  background: var(--st-50);
  font-size: 12px;
  color: var(--st-500);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.st-pay-list li { display: flex; justify-content: space-between; gap: 12px; }
.st-pay-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin: 0 auto;
  border-radius: var(--st-pill);
  background: #dcfce7;
  color: #15803d;
  font-size: 26px;
}

/* ============================================================ 登录 / 注册 / 个人中心 */
.st-auth { max-width: 448px; margin: 0 auto; padding: 64px 16px; }
.st-auth__box {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--st-200);
  border-radius: var(--st-r);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.st-auth__box .st-field > span { font-size: 14px; color: var(--st-500); }
.st-auth__hint {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--st-r-sm);
  background: var(--st-50);
  font-size: 12px;
  line-height: 1.7;
  color: var(--st-400);
}
.st-auth__hint code { color: var(--st-600); }

.st-account {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--st-200);
  border-radius: var(--st-r);
}
.st-account__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--st-pill);
  background: var(--st-brand);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.st-account__card {
  display: block;
  padding: 20px;
  border: 1px solid var(--st-200);
  border-radius: var(--st-r);
}
.st-account__card:hover { border-color: var(--st-brand); }
.st-account__card.is-off { border-style: dashed; border-color: var(--st-300); color: var(--st-400); }
@media (max-width: 640px) { .st-account__grid { grid-template-columns: 1fr !important; } }


/* ============================================================ 品牌图标（logo 图片） */
img.st-logo__mark {
  background: #fff;
  object-fit: contain;
  padding: 3px;
  border: 1px solid var(--st-line);
}
