/* ==========================================================
   穿透充 · 设计令牌 v2 —— 深蓝黑 + 电光蓝
   ----------------------------------------------------------
   上一版失败的原因：50+ 个零散灰值（#f5f7f8 #f8f9fa #f1f3f4
   #f0f2f3 #eef1f2 …）彼此只差 1-2 个色阶，肉眼分不出，观感是
   「一片糊」而不是「有层次」。

   这一版的做法：
   1. 底色不用纯黑，用带蓝调的三级深蓝（#0A0E17 → #121826 → #1A2333），
      明度拉开 8~10 个点，层级一眼可辨。
   2. 主色用电光蓝 #3B82F6 系，配青绿 #22D3EE 做渐变过渡，
      大面积中性底 + 小面积高饱和，这是「高级感」的通用公式。
   3. 所有颜色都走令牌，不再出现裸色值。
   ========================================================== */

:root {
  /* ---- 文字层级：4 级，明度差足够大 ---- */
  --ink: #F1F5F9;         /* 主文字，接近白 */
  --ink-2: #CBD5E1;       /* 次级标题 */
  --ink-3: #94A3B8;       /* 说明文字 */
  --ink-4: #64748B;       /* 弱化 / 占位 */
  --ink-invert: #0A0E17;  /* 亮底上的深字 */

  /* ---- 表面层级：3 级深蓝，明度递增 ---- */
  --bg: #080B12;          /* 页面底色，最深 */
  --surface-1: #101725;   /* 卡片 */
  --surface-2: #162032;   /* 悬浮 / 结算卡 */
  --surface-3: #1E2A3F;   /* 输入框 / 高亮块 */
  --surface-glass: rgba(22, 32, 50, 0.72);

  /* ---- 描边层级：3 档，靠透明度区分 ---- */
  --line-1: rgba(148, 163, 184, 0.10);  /* 最弱，卡片默认边 */
  --line-2: rgba(148, 163, 184, 0.18);  /* 分隔线 */
  --line-3: rgba(148, 163, 184, 0.28);  /* 强调边 / hover */

  /* ---- 品牌色 ---- */
  --brand: #3B82F6;        /* 电光蓝，主色 */
  --brand-light: #60A5FA;
  --brand-deep: #1D4ED8;
  --cyan: #22D3EE;         /* 青色，渐变搭档 */
  --brand-soft: rgba(59, 130, 246, 0.12);
  --brand-glow: rgba(59, 130, 246, 0.32);

  --mint: #A3E635;         /* 保留一点品牌绿做点缀（价格/成功态） */
  --teal: #22D3EE;

  /* ---- 语义色 ---- */
  --ok: #34D399;
  --warn: #FBBF24;
  --danger: #F87171;

  /* ---- 渐变 ---- */
  --grad-brand: linear-gradient(135deg, #3B82F6 0%, #22D3EE 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(34, 211, 238, 0.10));
  --grad-surface: linear-gradient(168deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 46%);
  --grad-text: linear-gradient(100deg, #F1F5F9 0%, #60A5FA 58%, #22D3EE 100%);

  /* ---- 阴影：深色下用「黑加深 + 品牌光晕」 ---- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);
  --shadow-brand: 0 12px 36px rgba(59, 130, 246, 0.28);
  --ring-brand: 0 0 0 1px rgba(59, 130, 246, 0.34);

  /* ---- 圆角：3 档 ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --radius: 12px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

/* ---- 兼容旧变量名（模板/内联处仍在引用）---- */
:root {
  --background: var(--bg);
  --line: var(--line-2);
  --muted: var(--ink-3);
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 16px;
  /*
   * 深蓝黑底 + 三处冷光 + 极细网格。
   * 光斑分散在左上/右上/底部，避免大面积单色造成「糊」。
   */
  background-color: var(--bg);
  background-image:
    radial-gradient(52% 38% at 8% -4%, rgba(59, 130, 246, 0.16), transparent 66%),
    radial-gradient(46% 34% at 94% 2%, rgba(34, 211, 238, 0.11), transparent 64%),
    radial-gradient(64% 46% at 50% 104%, rgba(29, 78, 216, 0.13), transparent 70%),
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

button: disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button: focus-visible,
a: focus-visible,
input: focus-visible,
textarea: focus-visible,
select: focus-visible {
  outline: 3px solid #5cb49d;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

/* ---------------- 头部 ---------------- */

.header {
  height: 90px;
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 64px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 1;
  min-width: 0;
}

/* 品牌标志做成「电光蓝→青」渐变发光块，是全站最强的品牌锚点 */
.brand-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: linear-gradient(145deg, #60A5FA, #3B82F6 52%, #22D3EE);
  color: #06121F;
  border-radius: var(--r-md);
  font-size: 37px;
  line-height: 1;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.brand strong {
  font-size: 25px;
  letter-spacing: 2px;
  line-height: 1.2;
  min-width: 0;
}

/* 站名可被后台改写，超长时截断而不是撑破头部 */
.brand strong .brand-cn {
  display: inline-block;
  vertical-align: bottom;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  margin-top: 0;
  color: inherit;
}

.brand strong .brand-en {
  display: block;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 800;
  margin-top: 4px;
}

/* 英文名留空时不占位（否则空 span 仍撑出 4px 上边距，品牌字样会偏上） */
.brand strong .brand-en:empty,
.footer-brand strong .brand-en:empty {
  display: none;
}

/* 胶囊导航：一整块玻璃底 + 内部滑块，比裸文字更有「产品感」 */
.navigation {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  align-self: center;
  border-radius: var(--r-md);
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid var(--line-1);
}

.nav-item {
  font-size: 13.5px;
  font-weight: 600;
  position: relative;
  color: var(--ink-3);
  padding: 8px 15px;
  border-radius: var(--r-sm);
  transition: color 0.16s, background 0.16s, box-shadow 0.16s;
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.nav-item.active::after {
  display: none;
}

.nav-item.active::after {
  content: "";
  height: 3px;
  border-radius: 5px;
  background: var(--teal);
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
}

.header-tools {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

.header-note {
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}

.admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 4px 10px 4px 8px;
  white-space: nowrap;
  transition: color 0.16s, border-color 0.16s, background 0.16s, transform 0.16s;
}

.admin-entry svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.admin-entry:hover {
  color: var(--teal);
  border-color: var(--line-2);
  background: var(--surface-1);
  transform: translateY(-1px);
}

.admin-entry:active {
  transform: translateY(0);
}

.shield {
  color: var(--teal);
  margin-right: 6px;
}

/* ---------------- 布局 ---------------- */

.main {
  max-width: 1400px;
  margin: auto;
  padding: 38px 48px 0;
  /* 主内容区一层冷光：让卡片「浮」在光上，而不是贴在纯黑里 */
  position: relative;
  z-index: 0;
}

.main::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, 96vw);
  height: 460px;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(59, 130, 246, 0.13),
    rgba(34, 211, 238, 0.055) 46%,
    transparent 74%
  );
  filter: blur(22px);
  pointer-events: none;
  z-index: -1;
}

.main > * {
  position: relative;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: var(--ink-3);
}

.page-heading h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 10px 0 0;
}

.mint {
  color: #A3E635;
}

.small-tag {
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 20px;
  white-space: nowrap;
}

.spark {
  color: #A3E635;
  font-size: 19px;
  margin-right: 7px;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

/* ---------------- Hero ---------------- */

.hero {
  min-height: 228px;
  position: relative;
  /*
   * Hero 是全站视觉重心，必须明显亮于页面底。
   * 三层：左上电光蓝辉光 + 右上青光 + 深蓝基底，斜向对拉出纵深。
   */
  background:
    radial-gradient(88% 120% at 88% 6%, rgba(34, 211, 238, 0.34), transparent 58%),
    radial-gradient(76% 108% at 10% 96%, rgba(59, 130, 246, 0.42), transparent 62%),
    linear-gradient(132deg, #101B30 0%, #142543 46%, #1B3358 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--ink);
  padding: 27px 29px;
  box-shadow: var(--shadow-lg), 0 0 90px rgba(59, 130, 246, 0.1);
  isolation: isolate;
}

/* 顶部一道电光渐变描边，体现「厚度」 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    138deg,
    rgba(96, 165, 250, 0.62),
    rgba(34, 211, 238, 0.22) 38%,
    transparent 66%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #34D399;
}

.hero h2 {
  font-size: 31px;
  line-height: 1.5;
  letter-spacing: 1px;
  margin: 12px 0 9px;
  font-weight: 600;
}

.hero p {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 22px;
}

.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-pills span {
  font-size: 10px;
  color: #CBD5E1;
  background: #ffffff0d;
  border: 1px solid #ffffff17;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.hero-art {
  position: absolute;
  inset: 0;
  opacity: 0.95;
}

.hero-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-index {
  position: absolute;
  right: 20px;
  bottom: 17px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #9db6b9;
  z-index: 1;
}

/* ---------------- 商品区 ---------------- */

.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 18px;
}

.catalog-heading h2 {
  font-size: 19px;
  margin: 0;
  font-weight: 700;
}

.catalog-heading h2 span {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 8px;
  font-weight: 500;
}

.muted {
  color: var(--muted);
  line-height: 1.8;
}

.catalog-heading > .muted {
  font-size: 12px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 17px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category {
  white-space: nowrap;
  font-size: 13px;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
}

/* 原先用 --ink 当背景，深色下会变成亮块压亮字；改成品牌色微光 + 亮蓝字 */
.category.active {
  background: var(--brand-soft);
  color: var(--brand-light);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.34);
}

.category:hover:not(.active) {
  background: var(--surface-3);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.product-card {
  border: 1px solid var(--line-1);
  /* 顶部高光渐变 + 表面色，做出玻璃面板的立体感 */
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 44%),
    var(--surface-1);
  border-radius: var(--r-md);
  padding: 17px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  min-width: 0;
}

/* 右上角品牌色光斑，hover 浮现 */
.product-card::before {
  content: "";
  position: absolute;
  top: -48px;
  right: -48px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.32), transparent 68%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  border-color: #34D399;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px #152b3308;
}

.product-card.selected {
  border: 1.5px solid #3B82F6;
  background: var(--surface-1);
  padding: 16.5px;
}

.selection-tick {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #60A5FA;
  color: var(--ink);
  width: 18px;
  height: 18px;
  font-size: 11px;
  z-index: 2;
}

.product-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  min-height: 44px;
}

.product-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  font-size: 23px;
  font-weight: 800;
  flex-shrink: 0;
  object-fit: cover;
  overflow: hidden;
}

.product-icon.ai {
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.22), rgba(34, 211, 238, 0.08));
  color: #67E8F9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.product-icon.music {
  background: linear-gradient(150deg, rgba(163, 230, 53, 0.22), rgba(163, 230, 53, 0.08));
  color: #BEF264;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.product-icon.video {
  background: linear-gradient(150deg, rgba(248, 113, 113, 0.22), rgba(248, 113, 113, 0.08));
  color: #FCA5A5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.product-icon.game {
  background: linear-gradient(150deg, rgba(167, 139, 250, 0.24), rgba(167, 139, 250, 0.09));
  color: #C4B5FD;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.product-icon.design {
  background: linear-gradient(150deg, rgba(96, 165, 250, 0.22), rgba(96, 165, 250, 0.08));
  color: #93C5FD;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.product-icon.cloud {
  background: linear-gradient(150deg, rgba(251, 191, 36, 0.22), rgba(251, 191, 36, 0.08));
  color: #FCD34D;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.product-tag {
  font-size: 10px;
  background: var(--surface-2);
  color: var(--warn);
  border-radius: 5px;
  padding: 4px 6px;
  white-space: nowrap;
}

.product-card h3 {
  font-size: 15px;
  margin: 0 0 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-desc {
  font-size: 11px;
  color: var(--ink-3);
  min-height: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-bottom {
  border-top: 1px solid var(--line-2);
  margin-top: 18px;
  padding-top: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.price {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.price small {
  font-size: 12px;
  margin-right: 3px;
  letter-spacing: 0;
}

.price-unit {
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 3px;
  letter-spacing: 0;
}

.detail-button {
  font-size: 11px;
  color: var(--ink-3);
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.15s;
}

.detail-button:hover {
  color: var(--teal);
}

.catalog-foot {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 10px;
  margin-top: 22px;
  gap: 12px;
}

/* ---------------- 下单卡 ---------------- */

.checkout-card {
  /* 结算卡比商品卡亮一级，形成「前景」层次 */
  background: linear-gradient(178deg, rgba(59, 130, 246, 0.07), rgba(59, 130, 246, 0) 38%),
    var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 25px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(59, 130, 246, 0.07);
  position: sticky;
  top: 22px;
}

.checkout-title .eyebrow {
  font-size: 10px;
}

.checkout-title h2 {
  font-size: 23px;
  margin: 6px 0 8px;
}

.bag-icon {
  float: right;
  font-weight: 400;
  font-size: 25px;
  color: var(--ink-3);
}

.checkout-title p {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
}

.steps {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 24px 0;
  font-size: 10px;
  color: var(--ink-3);
}

.steps span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.steps b {
  font-size: 10px;
  background: var(--surface-2);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.steps i {
  height: 1px;
  background: var(--surface-3);
  flex: 1;
}

.steps .current {
  color: var(--brand-light);
}

.steps .current b {
  background: var(--brand-soft);
  color: var(--brand-light);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.36);
}

.selected-product {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 13px;
  font-size: 12px;
  min-height: 64px;
}

.selected-product .product-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 20px;
}

.selected-product h3 {
  font-size: 14px;
  margin: 0 0 5px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.selected-product p {
  font-size: 11px;
  color: var(--ink-3);
  margin: 0;
}

.selected-product .sel-body {
  min-width: 0;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin: 17px 0 22px;
  gap: 10px;
}

.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  height: 29px;
}

.stepper button {
  width: 29px;
  background: var(--surface-1);
  font-size: 16px;
  line-height: 1;
  transition: background 0.15s;
}

.stepper button:hover:not(:disabled) {
  background: var(--surface-3);
}

.stepper output {
  font-size: 12px;
  width: 29px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.field {
  margin: 0 0 18px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}

.field label span {
  color: #F87171;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  background: var(--surface-3);
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  background: var(--surface-2);
}

.field input:focus,
.field textarea:focus {
  border-color: #34D399;
  background: var(--surface-1);
  outline: none;
  box-shadow: 0 0 0 3px #3B82F614;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
  font-size: 12px;
}

.field small {
  display: block;
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 7px;
  line-height: 1.6;
}

.payment-field {
  border: 0;
  padding: 0;
  margin: 21px 0;
}

.payment-field legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-option {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 11px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.payment-option.selected {
  border-color: #34D399;
  background: var(--surface-1);
}

.payment-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.payment-option:focus-within {
  outline: 2px solid #34D399;
  outline-offset: 2px;
}

.pay-logo {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 5px;
  font-size: 14px;
  color: var(--ink);
  flex-shrink: 0;
}

.ali {
  background: #3B82F6;
}

.wechat {
  background: #34D399;
}

.radio-mark {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}

.selected .radio-mark {
  border: 3px solid #3B82F6;
  background: var(--surface-1);
}

.total-row {
  border-top: 1px dashed var(--line-2);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 17px;
}

.total-row strong {
  font-size: 33px;
  letter-spacing: -1px;
  font-weight: 800;
  display: flex;
  align-items: baseline;
}

.total-row strong small {
  font-size: 17px;
  margin-right: 4px;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--ink-3);
  cursor: pointer;
}

.agreement input {
  accent-color: var(--teal);
  margin: 2px 0;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.agreement a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/*
 * CTA 是全站唯一的高饱和亮块 —— 视觉上最抓眼的东西应该是「去付款」。
 * 电光蓝 → 青 渐变配白字，对比度约 4.9:1。
 */
.primary-button {
  width: 100%;
  /* 渐变终点收深（原 #22D3EE 太亮，白字只有 3.68:1） */
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 58%, #0E7490 100%);
  color: #fff;
  padding: 15px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: box-shadow 0.2s, transform 0.12s, filter 0.2s;
  display: block;
  text-align: center;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.primary-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 58%, #0E7490 100%);
  filter: brightness(1.06);
}

.checkout-button {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 29px;
}

.checkout-button span {
  color: var(--mint);
  font-size: 21px;
  line-height: 1;
}

.secure-note {
  text-align: center;
  font-size: 9px;
  color: var(--ink-3);
  margin-top: 13px;
}

.form-error {
  font-size: 12px;
  color: #F87171;
  line-height: 1.6;
  margin: 8px 0 0;
}

.form-error:empty {
  display: none;
}

/* ---------------- 页脚 ---------------- */

.footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  margin-top: 38px;
  color: var(--ink-3);
  font-size: 12px;
  position: relative;
}

/* 底部一道冷光，给页面一个「收尾」而不是硬截断 */
.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -100px;
  transform: translateX(-50%);
  width: min(860px, 92vw);
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.2),
    rgba(34, 211, 238, 0.06) 46%,
    transparent 74%
  );
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-brand {
  opacity: 0.6;
}

.footer-brand .brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 23px;
}

.footer-brand strong {
  font-size: 17px;
}

.footer-brand strong .brand-en {
  font-size: 6px;
  margin-top: 2px;
}

.footer > a:last-child {
  margin-left: auto;
}

.footer > a:last-child:hover {
  color: var(--teal);
}

/* ---------------- 次级页面 ---------------- */

.secondary-view {
  min-height: 580px;
  padding: 35px 0;
}

.secondary-view h1 {
  font-size: 32px;
}

/*
 * 订单查询：标题 / 提示 / 表单 / 结果卡是一个整体，统一收在一个居中的列里。
 * 单独给其中某几个设 max-width + margin:auto 会让它们水平错位（曾在结果卡上踩过），
 * 所以这里只收窄整个列，列内元素一律保持左对齐。
 */
#orders-view {
  max-width: 560px;
  margin: 0 auto;
}

.lookup-form {
  max-width: 560px;
  margin-top: 30px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 42%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.lookup-form .field label {
  font-size: 14px;
}

.lookup-form input {
  font-size: 16px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.guide-grid article {
  background: var(--surface-1);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 14px;
}

.guide-grid b {
  color: #34D399;
  font-size: 14px;
}

.guide-grid h2 {
  font-size: 19px;
}

.guide-grid p {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.9;
}

.text-button {
  color: var(--brand-light);
  font-size: 14px;
  padding: 14px 0;
  transition: color 0.15s;
}

.text-button:hover {
  color: var(--brand);
}

.loading-state {
  grid-column: 1 / -1;
  background: var(--surface-1);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 44px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}

.empty-state {
  grid-column: 1 / -1;
  background: var(--surface-1);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 52px 20px;
  text-align: center;
  color: var(--ink-3);
}

.empty-state b {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ---------------- 弹窗 ---------------- */

dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  max-width: 460px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 24px 90px #092d4433;
  position: relative;
}

dialog: :backdrop {
  background: #11263288;
  backdrop-filter: blur(5px);
}

dialog p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-3);
}

dialog h2 {
  font-size: 26px;
}

dialog .close-dialog {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 27px;
  color: #94a4a7;
  line-height: 1;
  padding: 4px;
}

dialog .close-dialog:hover {
  color: var(--ink);
}

.modal-mark {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  background: var(--surface-2);
  color: #A3E635;
  font-size: 24px;
  border-radius: 50%;
  margin: 10px 0 22px;
}

/* 支付处理中：中性色；支付成功：绿色 */
.modal-mark[data-tone="muted"] {
  background: var(--surface-2);
  color: var(--ink-3);
}

.modal-mark[data-tone="brand"] {
  background: var(--surface-3);
  color: var(--teal);
  font-size: 22px;
  font-weight: 800;
}

/* ============ 支付弹窗：紧凑排版 ============
   内容较多（订单号 / 金额 / 二维码 / 等待状态 / 按钮），
   这里统一收紧间距，避免在 900px 高的屏幕上就需要滚动。
   ============================================ */
#payment-dialog {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#payment-dialog .modal-mark {
  width: 46px;
  height: 46px;
  font-size: 21px;
  margin: 0 0 16px;
}

#payment-dialog h2 {
  margin: 4px 0 8px;
}

#payment-dialog > p {
  margin: 0 0 12px;
}

/* 订单号：放在底部作为参考信息，不抢视觉焦点 */
.payment-orderbox {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--surface-1);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.payment-orderbox-label {
  flex-shrink: 0;
  font-weight: 600;
}

.payment-orderbox code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #3f555c;
  overflow-wrap: anywhere;
  letter-spacing: 0.2px;
}

.payment-qr {
  text-align: center;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-1);
}

.payment-qr img {
  display: block;
  width: min(190px, 100%);
  height: auto;
  margin: 0 auto;
}

.payment-qr p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

/* 支付金额条 */
.payment-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 0 0 10px;
  color: #223338;
}

.payment-amount small {
  font-size: 13px;
  font-weight: 700;
}

.payment-amount b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* 「打开收银台」：二维码之外的低调补充入口 */
.payment-payurl {
  margin: -4px 0 10px;
  text-align: center;
}

.payment-payurl a {
  display: inline-block;
  font-size: 12px;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 2px;
}

.payment-payurl a:hover {
  color: #60A5FA;
}

/* 等待支付结果 */
.payment-poll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 12px !important;
}

.poll-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #A3E635;
  animation: poll-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes poll-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .poll-dot {
    animation: none;
  }
}

.payment-actions {
  display: flex;
  gap: 10px;
  margin-top: 0;
}

.payment-actions .primary-button {
  flex: 1;
  padding: 13px;
  font-size: 13px;
}

.payment-actions .outline-button {
  padding: 13px 14px;
  font-size: 13px;
}

.demo-note {
  font-size: 11px !important;
  color: var(--ink-3) !important;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 9px 12px;
  text-align: center;
  margin: 12px 0 4px !important;
}

.detail-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-3);
  max-height: 46vh;
  overflow: auto;
  padding-right: 6px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.product-dialog {
  max-width: 520px;
}

.product-dialog .product-icon {
  width: 62px;
  height: 62px;
  font-size: 30px;
}

.product-dialog .detail-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.product-dialog .detail-head h2 {
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 8px;
}

.product-dialog .detail-price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 6px 0 0;
}

.product-dialog .detail-price small {
  font-size: 14px;
}

.detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.detail-meta span {
  font-size: 11px;
  color: var(--ink-3);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 4px 8px;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.detail-actions .primary-button {
  flex: 1;
}

.outline-button {
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 13px 18px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.outline-button:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: var(--surface-2);
  color: var(--ink);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%) translateY(100px);
  background: var(--surface-3);
  color: var(--ink);
  padding: 14px 24px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, opacity 0.2s;
  z-index: 100;
  max-width: 90%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.toast.visible {
  transform: translate(-50%) translateY(0);
  opacity: 1;
}

/* ---------------- 订单结果 ---------------- */

.order-result {
  max-width: 560px;
  /* 与 .lookup-form 同一列，两者都贴视图内容区的左边，不能单独居中否则会错位 */
  margin-top: 24px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 42%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  font-size: 14px;
}

.order-result dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  margin: 0;
}

.order-result dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.order-result dt {
  color: var(--ink-3);
}

.status-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  color: #60A5FA;
  font-size: 12px;
}

.status-tag.pending {
  background: var(--surface-2);
  color: #FBBF24;
}

.status-tag.paid {
  background: var(--surface-3);
  color: #60A5FA;
}

.status-tag.fulfilled {
  background: var(--surface-2);
  color: #60A5FA;
}

/* 订单来源标记：区分服务端真实单 / 手动补单 / 本机草稿 */
.src-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0.3px;
}
.src-tag.online {
  background: var(--surface-3);
  color: #60A5FA;
}
.src-tag.manual {
  background: var(--surface-2);
  color: #FBBF24;
}
.src-tag.draft {
  background: var(--surface-2);
  color: var(--ink-3);
}

.order-result .result-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------------- 客服 ---------------- */

.support-fab {
  position: fixed;
  z-index: 5;
  right: max(22px, calc((100vw - 1440px) / 2));
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  /* 白字压电光蓝只有 3.36:1，改成深一档的蓝 + 内高光 */
  color: #fff;
  background: linear-gradient(135deg, #2563EB, #1D4ED8 62%, #0E7490);
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 700;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.support-fab:hover {
  background: #60A5FA;
  transform: translateY(-1px);
}

.support-fab span {
  font-size: 17px;
}

#support-dialog {
  max-height: 90vh;
  overflow: auto;
}

.support-contacts {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.support-option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-1);
}

.support-option > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin-right: auto;
}

.support-option strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.support-option span,
.support-option a {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.support-option a:hover {
  color: var(--teal);
}

.support-empty {
  padding: 20px;
  border-radius: var(--r-md);
  color: var(--muted);
  background: var(--surface-2);
  text-align: center;
}

.support-order-tip {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------------- 响应式 ---------------- */

@media (min-width: 1500px) {
  .main {
    padding-top: 48px;
  }
  .hero {
    min-height: 246px;
  }
  .product-card {
    padding: 21px;
  }
  .product-card.selected {
    padding: 20.5px;
  }
  .product-grid {
    gap: 17px;
  }
}

@media (max-width: 1150px) {
  .header {
    padding: 0 28px;
    gap: 45px;
  }
  .main {
    padding: 30px 28px 0;
  }
  .store-layout {
    grid-template-columns: minmax(0, 1fr) 325px;
    gap: 20px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checkout-card {
    padding: 21px;
  }
  .catalog-heading > .muted {
    display: none;
  }
  .hero-index {
    display: none;
  }
}

@media (max-width: 850px) {
  .header {
    height: 78px;
    padding: 0 22px;
    gap: 30px;
  }
  .header-note {
    display: none;
  }
  .header-tools {
    gap: 0;
    margin-left: 0;
  }
  .admin-entry {
    font-size: 11px;
    padding: 4px 8px 4px 6px;
  }
  .navigation {
    margin-left: auto;
    margin-right: 14px;
    gap: 20px;
  }
  .main {
    padding: 26px 22px 0;
  }
  .store-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .checkout-card {
    position: static;
    margin-top: 6px;
  }
  .small-tag {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    min-height: 220px;
  }
  .checkout-title p {
    font-size: 14px;
  }
  .checkout-card {
    padding: 25px;
  }
  .field label,
  .payment-field legend,
  .payment-option,
  .quantity-row {
    font-size: 14px;
  }
  .field input {
    font-size: 16px;
  }
  .field small,
  .secure-note,
  .agreement {
    font-size: 12px;
  }
  .steps {
    max-width: 340px;
    font-size: 12px;
  }
  .steps b {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }
  .selected-product h3 {
    font-size: 16px;
  }
  .selected-product p {
    font-size: 12px;
  }
  .payment-option {
    padding: 14px;
  }
  .agreement input {
    width: 16px;
    height: 16px;
  }
  .catalog-foot {
    font-size: 11px;
  }
  .hero h2 {
    font-size: 30px;
  }
}

@media (max-width: 540px) {
  .header {
    height: 72px;
    padding: 0 17px;
    gap: 8px;
  }
  .admin-entry {
    font-size: 11px;
    gap: 4px;
    padding: 4px 7px 4px 6px;
  }
  .admin-entry svg {
    width: 10px;
    height: 10px;
  }
  .brand-icon {
    width: 33px;
    height: 33px;
    font-size: 29px;
    border-radius: var(--r-sm);
  }
  .brand strong {
    font-size: 21px;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* 390px 档：品牌名是首要信息，优先保证完整显示，让导航让位 */
  .brand {
    flex-shrink: 0;
  }
  .navigation {
    gap: 9px;
  }
  .nav-item {
    font-size: 11.5px;
  }
  .brand strong .brand-en {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .navigation {
    gap: 12px;
    /* 850 断点留下的右侧外边距在窄屏会把品牌名挤到截断，这里清零 */
    margin-right: 0;
  }
  .nav-item {
    font-size: 12px;
    padding: 0;
  }
  .main {
    padding: 24px 17px 0;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 25px;
    margin-top: 9px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.9px;
  }
  .hero {
    padding: 24px;
    min-height: 233px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .hero p {
    font-size: 12px;
    max-width: 230px;
  }
  .hero-pills {
    gap: 5px;
  }
  .hero-pills span {
    font-size: 9px;
    padding: 4px 6px;
  }
  .hero-art {
    opacity: 0.62;
  }
  .hero-art svg {
    transform: translateX(18%);
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card {
    padding: 15px;
  }
  .product-card.selected {
    padding: 14.5px;
  }
  .product-card h3 {
    font-size: 14px;
  }
  .product-icon {
    width: 37px;
    height: 37px;
    font-size: 21px;
  }
  .product-tag {
    font-size: 9px;
    padding: 3px;
  }
  .product-top {
    gap: 8px;
  }
  .product-desc {
    font-size: 10px;
  }
  .price {
    font-size: 22px;
  }
  .price-unit {
    display: none;
  }
  .detail-button {
    font-size: 10px;
  }
  .category {
    padding: 9px 12px;
    font-size: 12px;
  }
  .catalog-heading {
    margin-top: 25px;
  }
  .catalog-foot > span:last-child {
    display: none;
  }
  .checkout-card {
    padding: 22px;
  }
  .footer {
    gap: 15px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .footer > span {
    display: none;
  }
  .secondary-view {
    padding: 12px 0;
    min-height: 500px;
  }
  .secondary-view h1 {
    font-size: 25px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .lookup-form {
    padding: 23px;
  }
  dialog {
    padding: 26px;
  }
  .order-result dl {
    grid-template-columns: 75px 1fr;
  }
  .support-fab {
    right: 14px;
    bottom: 14px;
    padding: 12px 15px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ---------------- 最终排版统一（覆盖上面的紧凑字号） ---------------- */

.hero-label,
.hero-pills span,
.hero-index,
.product-tag,
.product-desc,
.detail-button,
.price-unit,
.catalog-foot,
.checkout-title p,
.steps,
.steps b,
.selected-product p,
.field small,
.agreement,
.secure-note,
.footer {
  font-size: 12px;
}

.field label,
.quantity-row,
.payment-field legend,
.payment-option,
.total-row,
.category,
.field input,
.field textarea,
.field select {
  font-size: 14px;
}

.field input::placeholder,
.field textarea::placeholder {
  font-size: 13px;
}

.selected-product h3,
.product-card h3 {
  font-size: 16px;
}

.hero p {
  font-size: 14px;
}

.stepper {
  height: 32px;
}

.stepper button,
.stepper output {
  width: 31px;
}

.product-tag,
.hero-pills span {
  font-size: 11px;
}

.steps {
  gap: 5px;
}

.steps span {
  gap: 4px;
}

.steps b {
  width: 19px;
  height: 19px;
}

.secure-note {
  font-size: 11px;
}

.hero-index {
  font-size: 10px;
}

.catalog-foot span:last-child {
  display: none;
}

.product-top {
  min-height: 44px;
}

.product-tag {
  white-space: normal;
}

.product-bottom {
  gap: 3px;
}

.price-unit {
  font-size: 11px;
}

.detail-button {
  font-size: 12px;
}

.product-desc {
  min-height: 19px;
}

@media (max-width: 540px) {
  .product-card h3 {
    font-size: 14px;
  }
  .product-desc,
  .product-tag {
    font-size: 11px;
  }
  .product-top {
    gap: 6px;
  }
  .detail-button {
    font-size: 11px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-pills span {
    font-size: 10px;
  }
  .field input {
    font-size: 16px;
  }
  .steps {
    font-size: 12px;
  }
  .secure-note {
    font-size: 11px;
  }
  .product-bottom .price {
    font-size: 21px;
  }
}


/* ---- 数字等宽：金额对齐更利落 ---- */
.price,
.total-row strong,
.payment-amount,
.order-result dl dd {
  font-variant-numeric: tabular-nums;
}
