/* ============================================================
   StoneLight · PC 站点组件与页面样式（1:1 还原小程序视觉）
   ============================================================ */

/* ---------- 首页垂直节奏 ----------
   注：#homeSections 是 flex 容器（后台用 order 排序），flex 子项之间
   margin 不折叠，所以区块间距＝字面值，不会再被压缩。
   原先各区块直接写死 28px，视觉上大图（864px 高）与卡片区几乎粘连。 */
:root {
  --ns-section-gap: 44px;
}
@media (max-width: 768px) {
  :root {
    --ns-section-gap: 32px;
  }
}

/* ---------- 布局容器 ---------- */
.sl-container {
  width: 100%;
  max-width: var(--sl-app-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.sl-main {
  min-height: calc(100vh - var(--sl-topbar-height) - 220px);
  padding-top: var(--sl-topbar-height);
}
/* 无顶栏的独立页（维护页等）：不留顶栏占位，整屏居中 */
.sl-main--plain {
  min-height: 100vh;
  padding-top: 0;
}
.sl-section {
  padding: 28px 0;
}

/* ---------- 顶部导航栏（PC 复刻底部导航的入口） ---------- */
.sl-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--sl-topbar-height);
  z-index: 100;
  background: var(--sl-color-surface-float);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--sl-app-border);
}
.sl-topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.sl-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sl-brand__logo {
  height: 42px;
  width: auto;
  display: block;
}
.sl-brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--sl-app-brand);
}
.sl-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.sl-nav__item {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--sl-radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--sl-app-text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}
.sl-nav__item:hover {
  background: var(--sl-color-surface-soft);
  color: var(--sl-color-text-main);
}
.sl-nav__item--active {
  color: var(--sl-app-brand);
  font-weight: 700;
}
.sl-nav__item--active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--sl-app-brand);
}
.sl-topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sl-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sl-radius-pill);
  background: var(--sl-color-surface-soft);
  border: 1px solid var(--sl-app-border);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.sl-icon-btn:hover {
  opacity: 0.88;
}
.sl-icon-btn:active {
  transform: scale(0.96);
}
.sl-icon-btn img {
  width: 20px;
  height: 20px;
}
.sl-cart-badge {
  position: relative;
}
.sl-cart-badge__dot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sl-app-danger);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

/* glass 圆形按钮（复刻 mini-bracelet glass-btn） */
.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--sl-app-radius-control);
  background: var(--sl-color-surface);
  border: 1px solid #fff;
  box-shadow: var(--sl-shadow-raised);
}
.glass-btn:active {
  opacity: 0.86;
  transform: scale(0.96);
}
.glass-ico {
  color: var(--sl-app-text-primary);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

/* ---------- 按钮 ---------- */
.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--sl-app-control-height);
  padding: 0 22px;
  border-radius: var(--sl-app-radius-control);
  font-size: var(--sl-font-size-body);
  font-weight: 600;
  border: 1px solid transparent;
  transition: opacity 0.18s ease, transform 0.15s ease, background 0.18s ease;
  box-sizing: border-box;
  white-space: nowrap;
}
.sl-btn:active {
  opacity: 0.9;
  transform: scale(0.98);
}
.sl-btn--primary {
  background: var(--sl-app-brand);
  border-color: var(--sl-app-brand);
  color: var(--sl-color-surface);
}
.sl-btn--ghost {
  background: var(--sl-color-surface);
  border-color: var(--sl-app-border);
  color: var(--sl-app-text-primary);
}
.sl-btn--gold {
  background: var(--sl-app-accent);
  border-color: var(--sl-app-accent);
  color: #fff;
}
.sl-btn--green {
  background: var(--sl-color-primary-green);
  border-color: var(--sl-color-primary-green);
  color: #fff;
}
.sl-btn--danger {
  background: var(--sl-app-danger);
  border-color: var(--sl-app-danger);
  color: #fff;
}
.sl-btn--block {
  width: 100%;
}
.sl-btn--sm {
  height: 34px;
  padding: 0 14px;
  font-size: var(--sl-font-size-caption);
}
.sl-btn:disabled,
.sl-btn[disabled] {
  background: var(--sl-color-control-disabled);
  border-color: var(--sl-color-control-disabled);
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}
.sl-btn--ghost:disabled {
  background: var(--sl-color-surface-soft);
  border-color: var(--sl-app-border);
  color: var(--sl-color-text-disabled);
}

/* ---------- 名称胶囊（name-pill） ---------- */
.name-pill {
  display: inline-flex;
  align-items: center;
  background: var(--sl-color-surface);
  border: 1px solid var(--sl-app-border);
  border-radius: var(--sl-radius-pill);
  padding: 6px 16px;
}
.name-pill-txt {
  color: var(--sl-app-text-primary);
  font-size: var(--sl-font-size-heading-lg);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 区块标题 ---------- */
.sl-section__title {
  margin: 0; /* 各页区块标题已改为 <h2>，清掉 UA 默认外边距 */
  font-size: 22px;
  font-weight: 700;
  color: var(--sl-app-text-primary);
  letter-spacing: 0.5px;
}
.sl-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sl-section__subtitle {
  display: block;
  margin-top: 6px;
  font-size: var(--sl-font-size-caption);
  color: var(--sl-color-text-muted);
}

/* 首页「灵感精选」区块（原先是 index.html 里的内联 margin-top:28px，
   挪到样式表统一走间距令牌，避免改一处漏一处） */
.ns-section--featured {
  margin-top: var(--ns-section-gap);
}

/* 章节头：标题组与右侧指示器/操作按钮两端对齐（与 .sl-section__head 同构） */
.ns-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.ns-section__head > div:first-child {
  min-width: 0;
}
.ns-section__head > :last-child {
  flex: 0 0 auto;
}

/* ---------- 卡片 ---------- */
.sl-card {
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  border: 1px solid var(--sl-app-border-soft);
}

/* ============================================================
   首页 HERO 轮播
   两种布局：
   --split  左文右图（默认，适配竖构图实拍图，裁切损失最小）
   --full   整幅铺满（适配横构图大图）
   ============================================================ */
.ns-hero {
  position: relative;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sl-color-surface-hero);
  /* 布局参数：--ns-split-w 由后台「图片列宽」写入，full 布局下图片铺满 */
  --ns-split-w: 42%;
  --ns-media-w: var(--ns-split-w);
  --ns-focus: 50% 45%;
  /* 文字配色（split：深字 / warm 底） */
  --ns-fg: var(--sl-color-text-main);
  --ns-fg-soft: rgba(44, 49, 46, 0.72);
  --ns-pill-bg: rgba(44, 49, 46, 0.055);
  --ns-pill-bd: rgba(44, 49, 46, 0.1);
  --ns-pill-fg: #4a514c;
  --ns-sparkle: #b08d4f;
  --ns-cta-bg: var(--sl-app-brand);
  --ns-cta-fg: #fff;
  --ns-dot: rgba(44, 49, 46, 0.2);
  --ns-dot-on: var(--sl-app-brand);
  --ns-veil: linear-gradient(90deg, var(--sl-color-surface-hero) 0%, rgba(242, 236, 228, 0) 20%);
}

/* ---- 图片区 ---- */
.ns-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--ns-media-w);
  overflow: hidden;
}
.ns-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ns-focus);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
}
.ns-hero__img--a.is-active,
.ns-hero__img--b.is-active {
  opacity: 1;
}
.ns-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--ns-veil);
}

/* ---- 上下压暗层（仅 full 布局使用）---- */
.ns-hero__grad-top,
.ns-hero__grad-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 130px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.ns-hero__grad-top {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent);
}
.ns-hero__grad-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.46), transparent);
}

/* ---- 品牌标识 ----
   顶部导航栏是 fixed 常驻的，首屏内再放一枚 logo 属于视觉复读；
   移动端更会直接压住标题（hero 起点在顶栏之下 64px）。保留 DOM 备用，默认不显示。 */
.ns-hero__header {
  position: absolute;
  top: 26px;
  left: 40px;
  z-index: 3;
  display: none;
}
.ns-brand__logo {
  display: block;
  height: 36px;
}
.ns-brand__logo--light {
  display: none;
}

/* ---- 文案 ---- */
.ns-hero__content {
  position: absolute;
  left: 40px;
  bottom: 46px;
  z-index: 3;
  color: var(--ns-fg);
  max-width: calc(100% - var(--ns-media-w) - 40px - 64px);
}
/* split：文案在暖底区内垂直居中。
   原来贴底会让 500px 高的左区上方空出 350px，视觉重心严重偏下。 */
.ns-hero--split .ns-hero__content {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.ns-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--sl-radius-pill);
  background: var(--ns-pill-bg);
  border: 1px solid var(--ns-pill-bd);
  color: var(--ns-pill-fg);
  font-size: var(--sl-font-size-caption);
  margin-bottom: 14px;
}
.ns-hero__sparkle {
  color: var(--ns-sparkle);
}
.ns-hero__title {
  display: block;
  margin: 0; /* 首页已改为 <h1>，清掉 UA 默认外边距 */
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 1px;
  /* 375px 下 28px 字号让「好的设计，会自己讲故事」正好溢出 1 个字，
     末行只剩「事」；balance 让两行长度接近（6+6），不再留孤字。 */
  text-wrap: balance;
}
.ns-hero__desc {
  display: block;
  margin: 0; /* 已改为 <p>，清掉 UA 默认上下边距，只保留下面这行间距 */
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ns-fg-soft);
}
.ns-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 12px 26px;
  border-radius: var(--sl-radius-pill);
  background: var(--ns-cta-bg);
  color: var(--ns-cta-fg);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap; /* 文案列变窄时按钮文字会竖排，必须禁止换行 */
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.ns-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}
.ns-hero__cta-arrow {
  font-size: 18px;
}

/* ---- 指示点 ---- */
.ns-hero__foot {
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ns-hero__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* split：指示点落在左侧暖底文案区右下角，避免压在图片上不可见 */
.ns-hero--split .ns-hero__foot {
  right: calc(var(--ns-media-w) + 20px);
  bottom: 24px;
}
.ns-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ns-dot);
  transition: all 0.25s ease;
  cursor: pointer;
}
.ns-dot--active {
  width: 22px;
  background: var(--ns-dot-on);
}

/* ============ 整幅铺满布局 ============ */
.ns-hero--full {
  --ns-media-w: 100%;
  --ns-focus: 50% 50%;
  --ns-fg: #fff;
  --ns-fg-soft: rgba(255, 255, 255, 0.9);
  --ns-pill-bg: rgba(255, 255, 255, 0.18);
  --ns-pill-bd: transparent;
  --ns-pill-fg: #fff;
  --ns-sparkle: #ffe6a7;
  --ns-cta-bg: #fff;
  --ns-cta-fg: var(--sl-app-brand);
  --ns-dot: rgba(255, 255, 255, 0.55);
  --ns-dot-on: #fff;
  --ns-veil: linear-gradient(90deg, rgba(16, 20, 18, 0.74) 0%, rgba(16, 20, 18, 0.58) 26%, rgba(16, 20, 18, 0.2) 56%, rgba(16, 20, 18, 0) 78%);
}
.ns-hero--full .ns-hero__grad-top,
.ns-hero--full .ns-hero__grad-bottom {
  opacity: 1;
}
.ns-hero--full .ns-hero__pill {
  backdrop-filter: blur(8px);
}
.ns-hero--full .ns-hero__title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.ns-hero--full .ns-hero__content {
  max-width: 560px;
}
.ns-hero--full .ns-brand__logo--dark {
  display: none;
}
.ns-hero--full .ns-brand__logo--light {
  display: block;
}

/* 装饰blob */
.ns-blob-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ns-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}
.ns-blob--1 {
  width: 320px;
  height: 320px;
  background: var(--sl-color-primary-green);
  top: -120px;
  right: -60px;
}
.ns-blob--2 {
  width: 260px;
  height: 260px;
  background: var(--sl-color-primary-red);
  bottom: -120px;
  left: -40px;
}

/* ============================================================
   定制工坊步骤（ns-section--steps）
   ============================================================ */
.ns-section--steps {
  margin-top: var(--ns-section-gap);
}
.ns-step-dots {
  display: flex;
  gap: 6px;
}
.ns-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--sl-color-border-mid);
}
.ns-step-dot--active {
  background: var(--sl-app-brand);
}
.ns-steps-scroll {
  overflow-x: auto;
  padding: 10px 6px;
  margin: -10px -6px;
}
/* 横向溢出时才加右侧渐隐：三张卡正好占满时不该出现「还有更多」的暗示。
   mask 作用在容器盒子上，不随内容滚动，滑到末尾仍保留一点柔边。 */
.ns-steps-scroll.is-scrollable,
.ns-designers-scroll.is-scrollable {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent 100%);
}
.ns-steps-scroll,
.ns-designers-scroll {
  scrollbar-width: thin;
}
.ns-steps-row {
  display: flex;
  gap: 16px;
}
.ns-step-card {
  flex: 1 1 0;
  min-width: 220px;
  background: var(--sl-color-surface);
  border: 1px solid var(--sl-app-border-soft);
  border-radius: var(--sl-radius-card);
  padding: 20px;
  box-shadow: var(--sl-app-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.ns-step-card--active {
  border-color: var(--sl-app-brand);
  box-shadow: var(--sl-shadow-card-strong);
  transform: translateY(-4px);
}
.ns-step-card--inactive:hover {
  transform: translateY(-2px);
}
.ns-step-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.ns-step-icon--dark {
  background: var(--sl-app-brand);
  color: #fff;
}
.ns-step-icon--light {
  background: var(--sl-color-surface-soft);
  color: var(--sl-app-text-secondary);
}
.ns-step-num {
  display: block;
  font-size: var(--sl-font-size-meta);
  letter-spacing: 1px;
  color: var(--sl-color-text-faint);
}
.ns-step-title {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--sl-app-text-primary);
}
.ns-step-desc {
  display: block;
  margin-top: 6px;
  font-size: var(--sl-font-size-caption);
  color: var(--sl-color-text-muted);
  line-height: 1.5;
}

/* 工艺图 */
.ns-artisan {
  margin-top: var(--ns-section-gap);
  border-radius: var(--sl-radius-card);
  overflow: hidden;
  background: var(--sl-color-surface-warm);
}
.ns-artisan__img {
  width: 100%;
  display: block;
  /* 同 orderFlow：懒加载前高度为 0，撑开瞬间会让下面所有区块整体下移。
     素材原生 1448×1086，未知尺寸时按此比例占位。 */
  aspect-ratio: auto 1448 / 1086;
}

/* ============================================================
   驻场设计师（ns-designers）
   ============================================================ */
.ns-designers {
  margin-top: var(--ns-section-gap);
}
.ns-designers-scroll {
  overflow-x: auto;
  padding: 10px 6px;
  margin: -10px -6px;
}
.ns-designers-row {
  display: flex;
  gap: 18px;
}
.ns-designer-card {
  flex: 1 1 0;
  min-width: 260px;
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  overflow: hidden;
  box-shadow: var(--sl-app-shadow-card);
  border: 1px solid var(--sl-app-border-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.ns-designer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sl-shadow-card-strong);
}
.ns-designer-card__cover {
  position: relative;
  /* 原先是固定 height:150px：卡片宽 370px 时封面被压成 2.47:1 的横条，
     512×512 的原图会被 cover 裁掉约 70%，手串只剩中间一截。
     改用固定比例，桌面/移动端都不会再出现极端裁切。 */
  aspect-ratio: 16 / 11;
}
.ns-designer-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ns-designer-card__cover-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(255, 255, 255, 0.92) 100%);
}
.ns-designer-card__rating {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--sl-radius-pill);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 12px;
}
.ns-designer-card__avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}
.ns-designer-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: var(--sl-shadow-avatar);
}
.ns-designer-card__body {
  padding: 12px 16px 18px;
}
.ns-designer-card__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.ns-designer-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--sl-app-text-primary);
}
.ns-designer-card__verified {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sl-color-primary-green);
  color: #fff;
  font-size: 11px;
}
.ns-designer-card__role {
  display: block;
  text-align: center;
  margin-top: 4px;
  font-size: var(--sl-font-size-caption);
  color: var(--sl-color-text-muted);
}
.ns-designer-card__stats {
  display: flex;
  margin: 14px 0;
}
.ns-stat {
  flex: 1;
  text-align: center;
}
.ns-stat__label {
  display: block;
  font-size: var(--sl-font-size-meta);
  color: var(--sl-color-text-faint);
}
.ns-stat__value {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--sl-app-text-primary);
}
.ns-designer-card__cta {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--sl-radius-pill); /* 与全站 CTA 胶囊形统一 */
  background: var(--sl-color-surface-soft);
  border: 1px solid var(--sl-app-border);
  font-size: var(--sl-font-size-body);
  font-weight: 600;
  color: var(--sl-app-text-primary);
  transition: background 0.18s ease;
}
.ns-designer-card__cta:hover {
  background: var(--sl-color-surface-subtle);
}

/* ============================================================
   灵感网格（inspiration-uniform-grid）
   ============================================================ */
.ns-order-flow {
  margin-top: var(--ns-section-gap);
  cursor: pointer;
  position: relative;
  /* 源图只有 551×346，铺满 1152 容器等于 2.09 倍放大，手绘线条会发虚。
     「点击查看完整流程」原来是绝对定位压在图片右下角，正好盖住手绘的猫和珠盘；
     改成图片下方的一条说明，圆角与阴影也从外层容器挪到图片上，
     这样卡片外壳不再包住提示，画面不再被任何东西遮挡。 */
  /* 父级 .sl-container 是纵向 flex：这里的左右 auto 外边距会让这一项
     退化成「内容宽度」（551px，即图片原始尺寸），max-width 反而失效。
     改成 width:100% + align-self:center 才能撑到 680 的封顶值。 */
  width: 100%;
  max-width: 680px;
  align-self: center;
  text-align: center;
}
.ns-order-flow__image {
  width: 100%;
  display: block;
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  /* 图片是 loading="lazy" 且位于首屏之外：加载完成前容器高度为 0，
     滚动到附近时整页高度突增 700px，会造成跳动与锚点错位。
     这里给出「固有比例优先、未知时按 551×346 占位」的兜底。 */
  aspect-ratio: auto 551 / 346;
}
.ns-order-flow__hint {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 16px;
  border-radius: var(--sl-radius-pill);
  /* 页面底色和 --sl-color-surface-soft 几乎同色（#faf9f6），
     胶囊会「消失」成悬浮的灰字；改用白色底 + 细描边才能看出是可点的按钮。 */
  background: var(--sl-color-surface-float);
  border: 1px solid var(--sl-color-border-soft-strong);
  font-size: var(--sl-font-size-caption);
  font-weight: 600;
  /* #848a86 在浅底上对比度只有 3:1，12px 文字读不清，换成 #666。 */
  color: var(--sl-color-text-soft);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.ns-order-flow:hover .ns-order-flow__hint {
  border-color: var(--sl-color-border-emphasis);
  color: var(--sl-color-text-main);
}

.inspiration-uniform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.inspiration-uniform-card {
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  overflow: hidden;
  box-shadow: var(--sl-app-shadow-card);
  border: 1px solid var(--sl-app-border-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.inspiration-uniform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sl-shadow-card-strong);
}
.inspiration-uniform-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--sl-color-surface-soft);
}
.inspiration-uniform-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  box-sizing: border-box;
}
.inspiration-uniform-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.04));
}
.inspiration-uniform-meta {
  padding: 12px 14px 16px;
}
.inspiration-uniform-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.inspiration-uniform-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sl-app-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inspiration-uniform-price {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--sl-app-danger);
}
.inspiration-uniform-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: var(--sl-font-size-meta);
  color: var(--sl-color-text-muted);
}
.inspiration-uniform-author__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
/* 客订作品无头像时占位，保证整列作者名左边缘对齐 */
.inspiration-uniform-author__avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  box-sizing: border-box;
  background: var(--sl-color-surface-soft);
  border: 1px solid var(--sl-app-border);
  color: var(--sl-color-text-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  user-select: none;
}
/* 客订占位固定用「客」字：以前取作者名首字，和右边 @全名 撞字。
   字号比其他占位字大 1px，「客」比单个姓名首字笔画多，10px 会糊。 */
.inspiration-uniform-author__avatar--customer {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
.pin-author__name--customer {
  color: var(--sl-color-text-soft-65);
}

/* 筛选 chip */
.filters-scroll {
  overflow-x: auto;
}
.filters-row {
  display: flex;
  gap: 10px;
}
.filter-chip {
  padding: 8px 18px;
  border-radius: var(--sl-radius-pill);
  font-size: var(--sl-font-size-body);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}
.chip-default {
  background: var(--sl-color-surface);
  border: 1px solid var(--sl-app-border);
  color: var(--sl-app-text-secondary);
}
.chip-default:hover {
  border-color: var(--sl-color-border-strong);
}
.chip-active {
  background: var(--sl-app-brand);
  border-color: var(--sl-app-brand);
  color: #fff;
}

/* 加载骨架 */
.product-skeleton,
.ns-skeleton-line {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: sl-shimmer 1.4s ease infinite;
  border-radius: 6px;
}
@keyframes sl-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.home-empty {
  text-align: center;
  padding: 40px;
  color: var(--sl-color-text-muted);
  cursor: pointer;
}

/* 分页指示 */
.inspiration-paging-indicator {
  grid-column: 1 / -1;
  text-align: center;
  padding: 18px;
  color: var(--sl-color-text-muted);
  font-size: var(--sl-font-size-caption);
}

/* ============================================================
   商品详情页（product-page）
   ============================================================ */
.sl-page {
  /* 只写上下内边距：这些页面元素同时带 .sl-container（padding: 0 24px），
     用简写 padding: 28px 0 会把左右 24px 一起清零 —— >768px 时内容贴边，
     1024 视口下卡片直接顶到窗口左右边缘、logo 被切掉半格。 */
  padding-top: 28px;
  padding-bottom: 28px;
}
.product-hero {
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  overflow: hidden;
  box-shadow: var(--sl-app-shadow-card);
}
.product-hero__img,
.product-hero__slide {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: var(--sl-color-surface-soft);
}
.product-card {
  margin-top: 20px;
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  padding: 24px;
}
.product-head__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.product-head__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--sl-app-text-primary);
}
.product-head__price {
  font-size: 24px;
  font-weight: 800;
  color: var(--sl-app-danger);
}
.product-head__intro {
  margin-top: 14px;
  background: var(--sl-color-surface-soft);
  border-radius: var(--sl-radius-inline);
  padding: 14px 16px;
}
.product-head__intro-label {
  display: block;
  font-size: var(--sl-font-size-meta);
  color: var(--sl-color-text-faint);
  margin-bottom: 4px;
}
.product-head__desc {
  font-size: var(--sl-font-size-body);
  color: var(--sl-color-text-secondary);
  line-height: 1.7;
}
.product-live-photo-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
}
.product-live-photo-count {
  font-size: var(--sl-font-size-caption);
  color: var(--sl-color-text-muted);
}
.product-live-photo-desc {
  font-size: var(--sl-font-size-meta);
  color: var(--sl-color-text-faint);
}
.product-live-photo-scroll {
  overflow-x: auto;
  margin-top: 10px;
}
.product-live-photo-track {
  display: flex;
  gap: 10px;
}
.product-live-photo-item {
  width: 120px;
  height: 120px;
  border-radius: var(--sl-radius-inline);
  object-fit: cover;
  flex: 0 0 auto;
}
.product-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sl-app-text-primary);
  margin-top: 22px;
  display: block;
}
.product-structure-list {
  margin-top: 12px;
  border: 1px solid var(--sl-app-border-soft);
  border-radius: var(--sl-radius-inline);
  overflow: hidden;
}
.product-structure-head,
.product-structure-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.product-structure-head {
  background: var(--sl-color-surface-soft);
  font-size: var(--sl-font-size-meta);
  color: var(--sl-color-text-faint);
}
.product-structure-item {
  border-top: 1px solid var(--sl-color-border-soft);
}
.product-structure-item__name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-structure-item__thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--sl-color-surface-soft);
}
.product-structure-item__name {
  font-size: var(--sl-font-size-body);
  font-weight: 600;
}
.product-structure-item__cell {
  font-size: var(--sl-font-size-body);
  color: var(--sl-app-text-secondary);
}
.product-structure-item__cell--muted {
  color: var(--sl-color-text-muted);
}
.product-structure-item__sum {
  font-weight: 700;
  color: var(--sl-app-text-primary);
  text-align: right;
}
.product-designer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sl-color-surface-soft);
  border: 1px solid var(--sl-app-border);
  border-radius: var(--sl-radius-inline);
  padding: 14px 18px;
}
.product-designer__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-designer__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.product-designer__name {
  display: block;
  font-weight: 700;
}
.product-designer__role {
  font-size: var(--sl-font-size-caption);
  color: var(--sl-color-text-muted);
}
.product-designer__cta {
  padding: 8px 20px;
  border-radius: var(--sl-app-radius-control);
  background: var(--sl-color-surface);
  border: 1px solid var(--sl-app-border);
  font-weight: 600;
  transition: background 0.18s ease;
}
.product-designer__cta:hover {
  background: var(--sl-color-surface-subtle);
}
.product-bottom-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  background: var(--sl-color-surface-float);
  backdrop-filter: blur(12px);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-shadow-top-panel);
}
.product-bottom-bar .sl-btn {
  flex: 1;
}
.product-bottom-btn--share {
  flex: 0 0 160px;
}

/* ============================================================
   设计师主页（designer-page）
   ============================================================ */
.designer-hero {
  position: relative;
  height: 300px;
  border-radius: var(--sl-radius-card);
  overflow: hidden;
  background: var(--sl-color-surface-hero);
}
.designer-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  mix-blend-mode: multiply;
  opacity: 0.62;
}
.designer-hero__img--logo {
  object-fit: contain;
  object-position: right center;
  padding: 26px 40px 62px;
  box-sizing: border-box;
  opacity: 1;
}
/* 品牌 logo 封面本身是浅底，不需要为深色文字加白遮罩，
   否则会把 logo 下半截刷白；只留一层极淡的底边过渡。 */
.designer-hero--logo .designer-hero__mask {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, 0.55) 100%);
}
.designer-hero__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 255, 255, 0.82) 72%,
    rgba(255, 255, 255, 0.96) 100%
  );
}
.designer-hero__profile {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 56px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.designer-hero__meta {
  min-width: 0;
}
.designer-hero__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: var(--sl-shadow-avatar);
}
.designer-hero__name {
  font-size: 24px;
  font-weight: 700;
  color: var(--sl-app-text-primary);
  max-width: 640px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.designer-hero__tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--sl-app-border);
  font-size: var(--sl-font-size-meta);
  font-weight: 600;
  color: var(--sl-app-text-primary);
  /* 用 min() 兜住窄屏：固定 620 上限会让标签在手机上顶出容器。 */
  max-width: min(620px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
/* 手机窄屏：封面只有 347×300，品牌 logo 居中后正好被左下角 88px 头像压住，
   标签也被挤成「一群匿名水晶设计师，只产…」。压低封面、把 logo 抬到右上，
   头像缩到 64px，标签允许折两行。 */
@media (max-width: 640px) {
  .designer-hero {
    height: 240px;
  }
  .designer-hero__img--logo {
    padding: 16px 18px 100px;
    object-position: right top;
  }
  .designer-hero__profile {
    left: 18px;
    right: 18px;
    bottom: 52px;
    gap: 12px;
  }
  .designer-hero__avatar {
    width: 64px;
    height: 64px;
    border-width: 3px;
    flex: 0 0 auto;
  }
  .designer-hero__name {
    font-size: 19px;
  }
  .designer-hero__tag {
    margin-top: 6px;
    padding: 3px 8px;
    font-size: 11px;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
.designer-content-card {
  margin-top: -40px;
  position: relative;
  z-index: 2;
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  padding: 24px;
}
.metrics-row {
  display: flex;
  gap: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sl-color-border-soft);
}
.metric-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.metric-item__value {
  font-size: 26px;
  font-weight: 800;
  color: var(--sl-app-text-primary);
}
.metric-item__label {
  font-size: var(--sl-font-size-caption);
  color: var(--sl-color-text-muted);
}
.bio-block {
  margin-top: 16px;
}
.bio-block__text {
  color: var(--sl-color-text-secondary);
  line-height: 1.8;
}
.works-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 22px;
}
.works-title {
  font-size: 18px;
  font-weight: 700;
}
.works-count {
  color: var(--sl-color-text-muted);
  font-size: var(--sl-font-size-caption);
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.work-item {
  background: var(--sl-color-surface);
  border: 1px solid var(--sl-app-border-soft);
  border-radius: var(--sl-radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--sl-shadow-card-strong);
}
.work-img-wrap {
  aspect-ratio: 1/1;
  background: var(--sl-color-surface-soft);
}
.work-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
}
.work-meta {
  padding: 10px 12px 14px;
}
.work-meta__name {
  font-size: 14px;
  font-weight: 600;
}
.work-meta__quote {
  display: block;
  margin-top: 4px;
  font-size: var(--sl-font-size-meta);
  color: var(--sl-color-text-muted);
}
.works-empty {
  text-align: center;
  padding: 40px;
  color: var(--sl-color-text-muted);
}

/* ============================================================
   DIY 手作工坊（diy，真实素材）
   ============================================================ */
.diy-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  padding: 14px 20px;
  margin-bottom: 16px;
}
.diy-header-bar__left { display: flex; align-items: center; gap: 12px; }
.diy-header-bar__price { font-size: 22px; font-weight: 800; color: var(--sl-color-text-main); }
.diy-header-bar__sep { color: var(--sl-color-border-strong); }
.diy-header-bar__count { font-size: var(--sl-font-size-body); color: var(--sl-color-text-muted); }
.diy-header-bar__pill {
  background: var(--sl-color-surface-soft);
  border: 1px solid var(--sl-app-border);
  border-radius: var(--sl-radius-pill);
  padding: 6px 16px;
  font-size: var(--sl-font-size-caption);
  color: var(--sl-color-text-muted);
}

.diy-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* 手串托盘 */
.diy-tray-col { position: sticky; top: 96px; }
.diy-tray {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  overflow: hidden;
  background: #e9e3d8;
}
.diy-tray__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: background-image 0.3s ease;
}
.diy-bracelet-ring { position: absolute; inset: 0; }
.diy-ring-bead {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.28);
  background: #fff;
  border: 2px solid rgba(255,255,255,.7);
  /* 散开 → 收拢成串 的过渡：位移走「先快后慢」的丝滑曲线，
     带回弹的缩放交给 transform，挪动时不会出现跳格 */
  transition:
    left .62s cubic-bezier(.22,.68,.24,1),
    top .62s cubic-bezier(.22,.68,.24,1),
    width .5s cubic-bezier(.22,.68,.24,1),
    height .5s cubic-bezier(.22,.68,.24,1),
    transform .62s cubic-bezier(.34,1.22,.64,1),
    opacity .28s ease,
    box-shadow .3s ease;
  will-change: left, top, transform;
}
.diy-ring-bead img { width: 100%; height: 100%; object-fit: cover; }
/* 串好的珠子阴影收紧、贴盘更实 */
.diy-tray.is-strung .diy-ring-bead { box-shadow: 0 3px 7px rgba(60,40,20,.26); }
/* 串线：pathLength=100 → dasharray 100，靠 dashoffset 由 100 收到 0 画出整圈 */
.diy-thread {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .22s ease;
}
.diy-thread circle {
  fill: none;
  stroke: rgba(255,255,255,.55);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 1px 1px rgba(70,50,30,.22));
  transition: stroke-dashoffset .68s cubic-bezier(.3,.7,.3,1) .1s;
}
.diy-tray.is-strung .diy-thread { opacity: 1; }
.diy-tray.is-strung .diy-thread circle { stroke-dashoffset: 0; transition-delay: .34s; }   /* 珠子先落位，线再走 */
/* 收拢完成时托盘轻微“落定”一下，给动作一个收束感 */
@keyframes diyTraySettle {
  0% { box-shadow: var(--sl-app-shadow-card); }
  45% { box-shadow: 0 14px 34px rgba(122,92,52,.24); }
  100% { box-shadow: var(--sl-app-shadow-card); }
}
.diy-tray.is-settle { animation: diyTraySettle 1.1s ease-out; }
/* canvas 物理渲染层：接管珠子显示与拖拽；此时隐藏 DOM 珠子层与 SVG 串线 */
.diy-physics {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  touch-action: none;                 /* 拖拽时不触发页面滚动/缩放 */
  cursor: grab;
  z-index: 2;
}
.diy-physics:active { cursor: grabbing; }
.diy-tray--physics .diy-thread { display: none; }
@media (prefers-reduced-motion: reduce) {
  .diy-ring-bead, .diy-thread, .diy-thread circle {
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
.diy-tray__empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--sl-color-text-muted);
  font-size: var(--sl-font-size-body);
  text-shadow: 0 1px 2px rgba(255,255,255,.6);
}
.diy-tray-tools {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
}
.diy-circle-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--sl-app-border);
  background: var(--sl-color-surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.18s ease;
  box-shadow: var(--sl-shadow-raised);
}
.diy-circle-btn:hover { border-color: var(--sl-color-border-strong); transform: translateY(-1px); }
.diy-circle-btn img { width: 20px; height: 20px; }
.diy-string-btn {
  margin-left: auto;
  padding: 10px 20px;
  border-radius: var(--sl-radius-pill);
  border: none;
  background: var(--sl-app-brand);
  color: #fff;
  font-size: var(--sl-font-size-body);
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.18s ease;
}
.diy-string-btn:hover { filter: brightness(1.08); }
/* 已收拢：按钮转为描边态，点一下散开重排 */
.diy-string-btn--on {
  background: transparent;
  color: var(--sl-app-brand);
  box-shadow: inset 0 0 0 1px var(--sl-app-brand);
}
.diy-string-btn--on:hover { filter: none; background: rgba(122,92,52,.06); }
.diy-string-btn:disabled { opacity: .45; cursor: default; filter: none; }
.diy-bg-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.diy-bg-thumb {
  width: 44px; height: 44px; border-radius: 10px;
  background-size: cover; background-position: center;
  cursor: pointer; border: 2px solid transparent;
  box-shadow: var(--sl-shadow-raised);
}
.diy-bg-thumb--active { border-color: var(--sl-app-brand); }

/* 素材面板 */
.diy-panel-col {
  min-width: 0;
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  padding: 20px;
}
.diy-search-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.diy-search {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: var(--sl-color-surface-soft);
  border: 1px solid var(--sl-app-border);
  border-radius: var(--sl-radius-pill);
  padding: 10px 16px;
}
.diy-search__icon { width: 18px; height: 18px; opacity: .6; }
.diy-search__field {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: var(--sl-font-size-body); color: var(--sl-color-text-main);
}
.diy-cart-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border: none; border-radius: var(--sl-radius-pill);
  background: var(--sl-app-brand); color: #fff;
  font-size: var(--sl-font-size-body); font-weight: 600; cursor: pointer;
  transition: filter 0.18s ease;
  /* 默认 flex-shrink:1 + 允许换行，窄屏时会被搜索框压成 79px 宽、文字竖排 5 行（高 117px）。
     主行动按钮不允许被压缩，也不允许断字。 */
  flex: 0 0 auto;
  white-space: nowrap;
}
.diy-cart-cta:hover { filter: brightness(1.08); }
.diy-cart-cta img { width: 18px; height: 18px; }
/* 手机窄屏：一排塞不下「搜索框 + 加入购物车」，改为搜索占一行、按钮占一行。 */
@media (max-width: 560px) {
  .diy-search-row { flex-wrap: wrap; }
  .diy-search { flex: 1 1 100%; }
  .diy-cart-cta { flex: 1 1 100%; justify-content: center; }
}

.diy-main-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.diy-cat {
  padding: 8px 16px; border-radius: var(--sl-radius-pill);
  border: 1px solid var(--sl-app-border);
  background: var(--sl-color-surface-soft);
  font-size: var(--sl-font-size-body); color: var(--sl-color-text-muted);
  cursor: pointer; transition: all 0.18s ease;
}
.diy-cat:hover { border-color: var(--sl-color-border-strong); }
.diy-cat--active { background: var(--sl-app-brand); color: #fff; border-color: var(--sl-app-brand); }

.diy-sub-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.diy-subcat {
  padding: 5px 12px; border-radius: var(--sl-radius-pill);
  border: 1px solid var(--sl-color-border-soft);
  background: transparent;
  font-size: var(--sl-font-size-caption); color: var(--sl-color-text-muted);
  cursor: pointer; transition: all 0.18s ease;
}
.diy-subcat:hover { border-color: var(--sl-color-border-strong); }
.diy-subcat--active { background: var(--sl-color-surface-warm); color: var(--sl-color-text-main); border-color: var(--sl-color-border-strong); }

.diy-bead-grid-scroll {
  max-height: 540px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}
.diy-bead-grid-scroll::-webkit-scrollbar { width: 6px; }
.diy-bead-grid-scroll::-webkit-scrollbar-track { background: transparent; }
.diy-bead-grid-scroll::-webkit-scrollbar-thumb {
  background: var(--sl-color-border-mid);
  border-radius: 999px;
}
/* 悬浮滚动条会自动隐藏，用下方文案提示可滚动范围（见 .diy-bead-hint） */
.diy-bead-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--sl-color-text-muted);
}
.diy-bead-hint:empty { display: none; }
.diy-bead-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
}
.diy-bead-card {
  border-radius: var(--sl-radius-card);
  border: 1px solid var(--sl-app-border);
  background: var(--sl-color-surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.diy-bead-card:hover { transform: translateY(-3px); box-shadow: var(--sl-app-shadow-card); }
.diy-bead-card--selected { border-color: var(--sl-app-brand); box-shadow: 0 0 0 2px var(--sl-app-brand) inset; }
.diy-bead-card__media { aspect-ratio: 1/1; background: var(--sl-color-surface-soft); }
.diy-bead-card__media img { width: 100%; height: 100%; object-fit: cover; }
.diy-bead-card__name {
  font-size: var(--sl-font-size-caption); font-weight: 600;
  padding: 8px 8px 2px; color: var(--sl-color-text-main);
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.diy-bead-card__meta {
  font-size: 12px; color: var(--sl-color-text-muted);
  padding: 0 8px 10px;
}
.diy-empty { padding: 40px; text-align: center; color: var(--sl-color-text-muted); }

.diy-presets-block { margin-top: 22px; }
.diy-panel__title { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.diy-presets { display: flex; gap: 12px; flex-wrap: wrap; }
.diy-preset-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 88px; padding: 10px;
  border-radius: var(--sl-radius-card);
  background: var(--sl-color-surface-soft);
  border: 1px solid var(--sl-app-border);
  font-size: var(--sl-font-size-caption);
  cursor: pointer; transition: all 0.18s ease;
}
.diy-preset-chip:hover { border-color: var(--sl-color-border-strong); transform: translateY(-2px); }
.diy-preset-chip img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: var(--sl-shadow-raised); }
.diy-preset-chip span { color: var(--sl-color-text-main); }
.diy-preset-chip--active { background: var(--sl-app-brand); border-color: var(--sl-app-brand); }
.diy-preset-chip--active span { color: #fff; }

@media (max-width: 900px) {
  .diy-layout { grid-template-columns: 1fr; }
  .diy-tray-col { position: static; }
  .diy-tray { max-width: 360px; margin: 0 auto; }
}

/* ============================================================
   订单（orders）
   ============================================================ */
.order-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--sl-color-border-soft);
  margin-bottom: 18px;
}
.order-tab {
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sl-color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease;
}
.order-tab--active {
  color: var(--sl-app-brand);
  border-bottom-color: var(--sl-app-brand);
}
/* 手机窄屏：5 个状态标签按桌面内边距需要 414px，而卡片内宽只有 347px，
   flex 把每个标签压到 64px，标签被拆成竖排单字（「全/部/4」「待/付/款/1」）。
   收紧字号与内边距并禁止换行；更窄的屏则整行横向滚动，保证单行可读。 */
@media (max-width: 768px) {
  .order-tabs {
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .order-tabs::-webkit-scrollbar {
    display: none;
  }
  .order-tab {
    flex: 0 0 auto;
    padding: 11px 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .order-tab__num {
    margin-left: 4px;
    font-size: 11px;
  }
}
.order-card {
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  margin-bottom: 14px;
  overflow: hidden;
}
.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--sl-color-border-soft);
  font-size: var(--sl-font-size-caption);
  color: var(--sl-color-text-muted);
}
.order-status {
  padding: 3px 10px;
  border-radius: var(--sl-radius-pill);
  font-size: var(--sl-font-size-meta);
  font-weight: 600;
}
.order-status--pending {
  background: var(--sl-color-status-pending-bg);
  color: var(--sl-color-status-pending);
}
.order-status--paid {
  background: var(--sl-color-status-success-bg);
  color: var(--sl-color-status-success);
}
.order-status--shipped {
  background: var(--sl-color-status-info-bg);
  color: var(--sl-color-status-info);
}
.order-status--done {
  background: var(--sl-color-surface-elevated);
  color: var(--sl-color-text-muted);
}
.order-card__body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.order-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--sl-radius-inline);
  object-fit: cover;
  background: var(--sl-color-surface-soft);
}
.order-card__name {
  font-weight: 600;
}
.order-card__price {
  margin-left: auto;
  font-weight: 700;
  color: var(--sl-app-danger);
}
.order-card__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--sl-color-border-soft);
}

/* ============================================================
   个人中心（profile）
   ============================================================ */
.profile-hero {
  background: linear-gradient(135deg, var(--sl-color-surface-hero), var(--sl-color-surface-warm));
  border-radius: var(--sl-radius-card);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-hero__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--sl-shadow-avatar);
}
.profile-hero__name {
  font-size: 22px;
  font-weight: 800;
}
.profile-hero__sub {
  color: var(--sl-color-text-muted);
  font-size: var(--sl-font-size-caption);
}
.profile-hero__action {
  margin-left: auto;
}
/* 手机窄屏：头像(84) + 间距 + 编辑资料按钮(约 95) 之后，中间的身份信息只剩 85px，
   「UID 100086 · 普通会员」被折成两行、末尾「·」成为孤儿。改为按钮独占一行。 */
@media (max-width: 600px) {
  .profile-hero {
    flex-wrap: wrap;
    padding: 20px;
    gap: 14px;
  }
  .profile-hero__avatar {
    width: 64px;
    height: 64px;
  }
  .profile-hero > div {
    flex: 1 1 auto;
    min-width: 0;
  }
  .profile-hero__action {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: center;
  }
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.profile-stat {
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  padding: 18px;
  text-align: center;
}
.profile-stat__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--sl-app-text-primary);
}
.profile-stat__label {
  font-size: var(--sl-font-size-caption);
  color: var(--sl-color-text-muted);
  margin-top: 4px;
}
.profile-menu {
  margin-top: 18px;
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  overflow: hidden;
}
.profile-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--sl-color-border-soft);
  cursor: pointer;
  transition: background 0.18s ease;
}
.profile-menu__item:hover {
  background: var(--sl-color-surface-soft);
}
.profile-menu__item:last-child {
  border-bottom: none;
}
.profile-menu__icon {
  width: 22px;
  height: 22px;
}
.profile-menu__label {
  font-size: var(--sl-font-size-body);
  font-weight: 500;
}
.profile-menu__arrow {
  margin-left: auto;
  color: var(--sl-color-text-faint);
}

/* ============================================================
   维护页（maintenance）
   ============================================================ */
.maintenance {
  min-height: 100vh;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.maintenance__logo {
  height: 88px; /* 与标志规范「关于页 / 维护页 88px」一致 */
  margin-bottom: 6px;
}
.maintenance__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.maintenance__desc {
  color: var(--sl-color-text-muted);
  max-width: 420px;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .maintenance__logo {
    height: 64px;
  }
  .maintenance__title {
    font-size: 22px;
  }
}

/* ============================================================
   页脚（sl-footer）
   ============================================================ */
.sl-footer {
  margin-top: 40px;
  background: var(--sl-color-surface-hero);
  border-top: 1px solid var(--sl-app-border-soft);
  padding: 40px 0 28px;
}
.sl-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.sl-footer__brand img {
  height: 30px;
  margin-bottom: 12px;
}
.sl-footer__desc {
  color: var(--sl-color-text-muted);
  font-size: var(--sl-font-size-caption);
  line-height: 1.7;
  max-width: 280px;
}
.sl-footer__col h4 {
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 700;
}
.sl-footer__col a {
  display: block;
  padding: 5px 0;
  color: var(--sl-color-text-secondary);
  font-size: var(--sl-font-size-caption);
  transition: color 0.18s ease;
}
.sl-footer__col a:hover {
  color: var(--sl-app-brand);
}
.sl-footer__bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--sl-app-border-soft);
  text-align: center;
  color: var(--sl-color-text-faint);
  font-size: var(--sl-font-size-meta);
}

/* ============================================================
   弹窗 / Toast / 浮窗
   ============================================================ */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--sl-color-overlay-heavy);
}
.modal-backdrop--blur {
  backdrop-filter: blur(4px);
}
.sl-modal {
  position: relative;
  z-index: 1;
  width: 420px;
  max-width: 92vw;
  background: var(--sl-color-surface);
  border-radius: var(--sl-app-radius-card);
  box-shadow: var(--sl-shadow-card-strong);
  padding: 26px;
  animation: sl-modal-in 0.24s ease;
}
@keyframes sl-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.sl-modal__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.sl-modal__text {
  color: var(--sl-color-text-secondary);
  line-height: 1.7;
}
.sl-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.sl-modal__actions .sl-btn {
  flex: 1;
}
.sl-form-field {
  margin-bottom: 14px;
}
.sl-form-field label {
  display: block;
  font-size: var(--sl-font-size-caption);
  color: var(--sl-color-text-muted);
  margin-bottom: 6px;
}
.sl-input {
  width: 100%;
  height: var(--sl-app-control-height);
  padding: 0 14px;
  border: 1px solid var(--sl-color-border-input);
  border-radius: var(--sl-app-radius-control);
  font-size: var(--sl-font-size-body);
  font-family: inherit;
  color: var(--sl-color-text-main);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
  background: #fff;
}
.sl-input:focus {
  outline: none;
  border-color: var(--sl-app-accent);
  box-shadow: 0 0 0 3px var(--sl-color-danger-soft-bg);
}
.sl-input::placeholder {
  color: var(--sl-color-text-placeholder);
}
.sl-input:disabled {
  background: var(--sl-color-surface-soft);
  color: var(--sl-color-text-disabled);
}

.sl-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 12px 22px;
  border-radius: var(--sl-radius-pill);
  background: var(--sl-app-brand);
  color: #fff;
  font-size: var(--sl-font-size-body);
  box-shadow: var(--sl-shadow-card-strong);
  animation: sl-toast-in 0.2s ease;
}
@keyframes sl-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.floating-service-entry {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sl-app-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sl-shadow-card-strong);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.floating-service-entry:hover {
  transform: scale(1.06);
}
.floating-service-entry img {
  width: 28px;
  height: 28px;
}
.floating-service-entry--hidden {
  display: none;
}

/* ---------- 首页模块可配置：栅格列数（后台 layout = cols-N） ---------- */
@media (min-width: 1025px) {
  .inspiration-uniform-grid[data-cols] {
    grid-template-columns: repeat(var(--home-cols, 4), minmax(0, 1fr));
  }
  .ns-designers-row[data-cols] {
    display: grid;
    grid-template-columns: repeat(var(--home-cols, 3), minmax(0, 1fr));
  }
  .ns-designers-row[data-cols] .ns-designer-card {
    min-width: 0;
  }
}

/* ---------- 首页模块可配置：其他布局变体（后台 layout） ---------- */
/* 定制工坊 · 紧凑单行：隐藏描述、缩小图标与间距 */
.ns-section--steps[data-layout="compact"] .ns-steps-row {
  gap: 10px;
}
.ns-section--steps[data-layout="compact"] .ns-step-card {
  min-width: 168px;
  padding: 14px 16px;
}
.ns-section--steps[data-layout="compact"] .ns-step-icon {
  width: 34px;
  height: 34px;
  font-size: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.ns-section--steps[data-layout="compact"] .ns-step-title {
  font-size: 15px;
}
.ns-section--steps[data-layout="compact"] .ns-step-desc {
  display: none;
}

/* 工艺图 / 下单流程 · 居中限宽：不再整幅铺满，左右留白 */
.ns-artisan[data-layout="inset"] {
  width: min(100%, 860px);
  margin-left: auto;
  margin-right: auto;
  background: transparent;
}
.ns-order-flow[data-layout="inset"] {
  width: min(100%, 860px);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 响应式断点（保留移动/平板/桌面适配） ---------- */
@media (max-width: 1024px) {
  .inspiration-uniform-grid,
  .works-grid,
  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* 统计卡固定 4 张：3 列会让第 4 张孤零零挂在第二行，改为 2×2 */
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sl-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .sl-container {
    /* 只收窄左右留白；用简写会把 .sl-page / .sl-section 的上下内边距一起清零，
       导致移动端页面标题紧贴固定顶栏（h1 顶边 = 顶栏底边）。 */
    padding-left: 14px;
    padding-right: 14px;
  }
  .sl-nav {
    display: none;
  }
  .ns-hero {
    height: 320px;
  }
  .ns-hero__title {
    font-size: 28px;
  }
  .ns-hero__content {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }
  /* 窄屏下 split 的「42% 图片列」会把文案挤到 100px 宽：标题断 4 行、按钮文字竖排。
     这里整体改成「整图铺满 + 竖向压暗 + 白字」，文案宽度吃满，更符合移动端阅读。 */
  .ns-hero--split {
    /* 注意：--ns-focus 不要在这里写。app.js 会按每张图把 focus 内联到 #ns-hero 上，
       inline 声明优先级高于任何样式表规则，写了也是死代码。构图靠后台「焦点」调节。 */
    --ns-media-w: 100%;
    --ns-fg: #fff;
    --ns-fg-soft: rgba(255, 255, 255, 0.9);
    --ns-pill-bg: rgba(255, 255, 255, 0.18);
    --ns-pill-bd: transparent;
    --ns-pill-fg: #fff;
    --ns-sparkle: #ffe6a7;
    --ns-cta-bg: #fff;
    --ns-cta-fg: var(--sl-app-brand);
    --ns-dot: rgba(255, 255, 255, 0.55);
    --ns-dot-on: #fff;
    /* 文案带（约 48%–90%）必须压得住亮部：中间补一个 0.52 的停靠点，
       否则换成浅色/高亮图片时小字会糊在珠子上。 */
    --ns-veil: linear-gradient(
      180deg,
      rgba(16, 20, 18, 0.52) 0%,
      rgba(16, 20, 18, 0.14) 30%,
      rgba(16, 20, 18, 0.52) 58%,
      rgba(16, 20, 18, 0.84) 100%
    );
  }
  .ns-hero--split .ns-hero__grad-top,
  .ns-hero--split .ns-hero__grad-bottom {
    opacity: 1;
  }
  .ns-hero--split .ns-hero__pill {
    backdrop-filter: blur(8px);
  }
  .ns-hero--split .ns-hero__title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  }
  /* 整图铺满后文案会压在亮部（玉珠）上，描述行字号小、对比度不足，补一层柔和投影；
     只加投影不加暗层，图片本身的通透感不被牺牲。 */
  .ns-hero--split .ns-hero__desc {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  }
  /* 覆盖 max-width 的负值 calc（100% - 100% - 104px），否则文案列会被压扁 */
  .ns-hero--split .ns-hero__content {
    top: auto;
    bottom: 54px;
    transform: none;
    max-width: 100%;
  }
  /* --ns-media-w 变成 100% 后，指示点会被推到屏幕外，单独复位 */
  .ns-hero--split .ns-hero__foot {
    right: 20px;
    bottom: 18px;
  }
  .ns-hero__cta {
    margin-top: 18px;
    padding: 11px 22px;
  }
  .inspiration-uniform-grid,
  .works-grid,
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-structure-head,
  .product-structure-item {
    grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr 0.8fr;
    font-size: 12px;
  }
  .sl-footer__grid {
    grid-template-columns: 1fr;
  }
  .product-hero__img,
  .product-hero__slide {
    height: 280px;
  }
}
/* 区块标题栏：窄屏下标题与右侧按钮并排会把副标题压成 2~3 行、按钮挤在右上角。
   改为上下堆叠，按钮左对齐，副标题拿满宽度。 */
@media (max-width: 600px) {
  .ns-section__head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .ns-section__head > :last-child {
    align-self: flex-start;
  }
}
/* 手机端曾把作品网格压成单列：卡片宽 347px、图 1:1，一张卡 440px 高，
   8 张 = 3500px，一屏只能看到 0.8 张。改回两列，并收紧图内边距与字号，
   宽度 164px 时「标题 + 价格」「头像 + 作者」仍能各自单行排下。 */
@media (max-width: 480px) {
  .inspiration-uniform-grid,
  .works-grid,
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .inspiration-uniform-grid {
    gap: 12px;
  }
  .inspiration-uniform-image {
    padding: 8px;
  }
  .inspiration-uniform-meta {
    padding: 10px 10px 12px;
  }
  .inspiration-uniform-title,
  .inspiration-uniform-price {
    font-size: 13px;
  }
  .inspiration-uniform-author {
    gap: 5px;
    margin-top: 6px;
    font-size: 11px;
  }
  .inspiration-uniform-author__avatar,
  .inspiration-uniform-author__avatar--initial {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    font-size: 9px;
  }
  /* 作者名必须能省略，否则长名字会把「应用 N」顶出卡片 */
  .inspiration-uniform-author .pin-author__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* 两列卡片只有 144px 净宽，「应用 N」与作者名必然相撞：
     弱信息让位，保留作者名（见上方 ellipsis 规则）。 */
  .inspiration-uniform-author .pin-author__quote {
    display: none;
  }
}

/* ============================================================
   真实数据版新增样式（页面标题 / 灵感页 / 商品补充 / DIY 预设横滑）
   ============================================================ */
.sl-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.sl-page-head__title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--sl-color-text-main);
}
.sl-page-head__desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--sl-color-text-muted);
}
.inspiration-toolbar { display: flex; align-items: center; gap: 10px; }
.inspiration-search { width: 300px; }
.inspiration-more { display: flex; justify-content: center; margin-top: 30px; }
.inspiration-more .sl-btn { min-width: 220px; justify-content: center; }
.pin-author__quote {
  margin-left: auto;
  font-size: 12px;
  color: var(--sl-color-text-muted);
}
.product-hero__stage { position: relative; }
.product-hero__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.product-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease;
}
.product-hero__dot--active { background: var(--sl-app-brand); }
.product-structure__note {
  margin: 12px 0 6px;
  font-size: 12.5px;
  color: var(--sl-color-text-muted);
}
.product-customer-author__tag {
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sl-color-chip-gold-bg);
  color: var(--sl-color-chip-gold-text);
  font-size: 12px;
}
.sl-modal--wide { width: 760px; }
.diy-presets {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.diy-preset-chip { flex: 0 0 auto; }
@media (max-width: 768px) {
  .inspiration-search { width: 100%; }
  .inspiration-toolbar { width: 100%; }
  .sl-page-head__title { font-size: 24px; }
}

/* ============================================================
   作品详情页：宽屏改左右两栏
   单列时 hero 铺满 1200 宽、图片用 contain 居中，左右各留约
   400px 空白，信息卡又整块压在图下，宽屏上非常空。
   宽屏改为「左图（吸顶）+ 右信息」两栏，窄屏保持原单列。
   ============================================================ */
@media (min-width: 1080px) {
  .sl-page--product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    column-gap: 28px;
    align-items: start;
  }
  .sl-page--product > .product-back,
  .sl-page--product > .product-bottom-bar {
    grid-column: 1 / -1;
  }
  .sl-page--product > .product-back {
    justify-self: start;
  }
  .sl-page--product > .product-hero {
    align-self: stretch;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }
  .sl-page--product .product-hero__stage {
    position: sticky;
    top: 88px;
    background: var(--sl-color-surface);
    border-radius: var(--sl-radius-card);
    overflow: hidden;
    box-shadow: var(--sl-app-shadow-card);
  }
  .sl-page--product > .product-card {
    margin-top: 0;
  }
  .sl-page--product .product-hero__img,
  .sl-page--product .product-hero__slide {
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 640px;
  }
}

/* 我的：宽屏下功能入口改两列，避免单列在 1200 宽上被拉成一条长带 */
@media (min-width: 1080px) {
  .profile-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--sl-color-border-soft);
  }
  .profile-menu__item {
    border-bottom: none;
    background: var(--sl-color-surface);
  }
}

/* ============================================================
   补齐页面：购物车 / 账户中心 / 内容页 / 材质百科
   —— 这些页面此前不存在（页脚 12 个链接全是 #），本节给它们统一版式
   ============================================================ */
.sl-page-head__acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 购物车 ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
/* 购物车为空：不显示结算栏，空状态铺满整行 */
.cart-layout.is-empty {
  grid-template-columns: minmax(0, 1fr);
}
.cart-list {
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  overflow: hidden;
}
.cart-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 84px 116px 92px 48px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--sl-color-border-soft);
}
.cart-row:last-child {
  border-bottom: none;
}
.cart-row__thumb {
  width: 88px;
  height: 88px;
  border-radius: var(--sl-radius-inline);
  object-fit: cover;
  background: var(--sl-color-surface-soft);
}
.cart-row__name {
  display: block;
  font-weight: 600;
  color: var(--sl-app-text-primary);
}
.cart-row__name:hover {
  color: var(--sl-app-accent);
}
.cart-row__spec {
  margin-top: 4px;
  font-size: 13px;
  color: var(--sl-color-text-muted);
}
.cart-row__price {
  font-size: 14px;
  color: var(--sl-color-text-muted);
}
.cart-row__sum {
  text-align: right;
  font-weight: 700;
  color: var(--sl-app-danger);
}
.cart-row__del {
  border: 0;
  background: none;
  color: var(--sl-color-text-faint);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
}
.cart-row__del:hover {
  color: var(--sl-app-danger);
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sl-app-border);
  border-radius: var(--sl-radius-pill);
  overflow: hidden;
}
.cart-qty__btn {
  width: 32px;
  height: 30px;
  border: 0;
  background: var(--sl-color-surface);
  color: var(--sl-app-text-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cart-qty__btn:hover {
  background: var(--sl-color-surface-soft);
}
.cart-qty__num {
  min-width: 34px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.cart-summary {
  position: sticky;
  top: 88px;
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  padding: 20px;
}
.cart-sum__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--sl-color-text-muted);
  padding: 7px 0;
}
.cart-sum__row b {
  color: var(--sl-app-text-primary);
}
.cart-sum__row--total {
  border-top: 1px solid var(--sl-color-border-soft);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 15px;
}
.cart-sum__row--total b {
  font-size: 20px;
  color: var(--sl-app-danger);
}
.cart-sum__tip {
  margin: 6px 0 14px;
  font-size: 12px;
  color: var(--sl-app-accent);
}
.cart-sum__back {
  margin-top: 10px;
}
.cart-empty {
  text-align: center;
  padding: 64px 24px;
}
.cart-empty__icon {
  font-size: 44px;
  color: var(--sl-color-border-strong);
  line-height: 0;
}
.cart-empty__icon svg {
  display: block;
  margin: 0 auto;
}
.cart-empty__title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
}
.cart-empty__desc {
  margin: 8px 0 20px;
  font-size: 14px;
  color: var(--sl-color-text-muted);
}
.cart-empty__acts {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 账户中心 ---------- */
.acct-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.acct-tabs {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
}
.acct-tab {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--sl-app-text-secondary);
}
.acct-tab:hover {
  background: var(--sl-color-surface-soft);
}
.acct-tab--active {
  background: var(--sl-app-brand);
  color: #fff;
  font-weight: 600;
}
.acct-panel {
  min-width: 0;
  min-height: 420px;
}
.acct-block {
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  padding: 22px;
  margin-bottom: 16px;
}
.acct-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.acct-block__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.acct-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.acct-work {
  border: 1px solid var(--sl-color-border-muted);
  border-radius: var(--sl-radius-inline);
  padding: 14px;
}
.acct-work__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.acct-work__price {
  color: var(--sl-app-danger);
  font-weight: 700;
}
.acct-work__meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--sl-color-text-muted);
}
.acct-work__acts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.acct-order-list {
  display: grid;
  gap: 10px;
}
.acct-order {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--sl-radius-inline);
  border: 1px solid var(--sl-color-border-muted);
  color: inherit;
}
.acct-order:hover {
  background: var(--sl-color-surface-soft);
}
.acct-order img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--sl-color-surface-soft);
}
.acct-order b {
  font-size: 14px;
}
.acct-order__spec {
  font-size: 12px;
  color: var(--sl-color-text-muted);
  margin-top: 3px;
}
.acct-order__status {
  margin-left: auto;
  font-size: 12px;
  color: var(--sl-app-accent);
}
.acct-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.acct-profile__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sl-color-surface-soft);
}
.acct-profile__name {
  font-size: 20px;
  font-weight: 800;
}
.acct-profile__uid {
  font-size: 13px;
  color: var(--sl-color-text-muted);
  margin-top: 4px;
}
.acct-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}
.acct-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--sl-color-text-muted);
}
.acct-field .sl-input {
  width: 100%;
}
.acct-form__tip {
  font-size: 12px;
  color: var(--sl-color-text-faint);
}
.acct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sl-color-border-soft);
}
.acct-row:last-child {
  border-bottom: none;
}
.acct-row__desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--sl-color-text-muted);
}
.acct-row__acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.acct-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 99px;
  background: var(--sl-color-border-strong);
  cursor: pointer;
  transition: background 0.18s ease;
}
.acct-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}
.acct-switch.is-on {
  background: var(--sl-color-primary-green);
}
.acct-switch.is-on i {
  transform: translateX(20px);
}
.acct-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.acct-mini {
  background: var(--sl-color-surface-soft);
  border-radius: var(--sl-radius-inline);
  padding: 16px;
  text-align: center;
}
.acct-mini b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--sl-app-accent);
}
.acct-mini span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--sl-color-text-muted);
}
.acct-note {
  background: var(--sl-color-surface-warm);
  border-radius: var(--sl-radius-inline);
  padding: 16px 18px;
  margin: 14px 0;
}
.acct-note b {
  font-size: 14px;
}
.acct-note p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--sl-color-text-soft-78);
}
.acct-applied {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--sl-radius-inline);
  background: var(--sl-color-chip-gold-bg);
  color: var(--sl-color-chip-gold-text);
  font-size: 13px;
}
.dist-card {
  background: linear-gradient(135deg, var(--sl-color-surface-hero), var(--sl-color-surface-warm));
  border-radius: var(--sl-radius-card);
  padding: 24px;
  text-align: center;
}
.dist-card__label {
  font-size: 13px;
  color: var(--sl-color-text-muted);
}
.dist-card__code {
  margin: 10px 0 14px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--sl-app-accent);
}

/* ---------- 内容页（品牌 / 服务） ---------- */
.doc-hero {
  background: linear-gradient(135deg, var(--sl-color-surface-hero), var(--sl-color-surface-warm));
  border-radius: var(--sl-radius-card);
  padding: 48px 44px;
}
.doc-hero__eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--sl-app-accent);
  text-transform: uppercase;
}
.doc-hero__title {
  margin: 10px 0 12px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.doc-hero__desc {
  max-width: 660px;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--sl-color-text-soft-78);
}
.doc-nav {
  position: sticky;
  top: calc(var(--sl-topbar-height) + 8px);
  z-index: 6;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
  background: var(--sl-color-bg);
}
.doc-nav a {
  padding: 7px 16px;
  border-radius: var(--sl-radius-pill);
  border: 1px solid var(--sl-app-border);
  background: var(--sl-color-surface);
  font-size: 13px;
  color: var(--sl-app-text-secondary);
}
.doc-nav a:hover {
  border-color: var(--sl-color-border-emphasis);
}
.doc-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--sl-color-border-soft);
  /* 顶栏 64px 已由 html 的 scroll-padding-top 让开，这里再补 64px 作为标题与
     吸顶胶囊导航之间的呼吸空间（合计 128px，标题落在胶囊条下方约 56px 处）。 */
  scroll-margin-top: 64px;
}
.doc-section:last-child {
  border-bottom: none;
}
.doc-section > h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}
.doc-section > .doc-lead {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--sl-color-text-muted);
}
.doc-prose {
  max-width: 820px;
}
.doc-prose p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--sl-color-text-soft-78);
}
.doc-prose h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.doc-prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--sl-color-text-soft-78);
  font-size: 14px;
  line-height: 1.95;
}
.doc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.doc-card {
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  padding: 20px;
}
.doc-card__num {
  font-size: 24px;
  font-weight: 800;
  color: var(--sl-app-accent);
}
.doc-card h3 {
  margin: 8px 0 6px;
  font-size: 15px;
}
.doc-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--sl-color-text-muted);
}
.store-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  margin-bottom: 12px;
}
.store-card__city {
  font-size: 18px;
  font-weight: 800;
}
.store-card__badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: var(--sl-radius-pill);
  background: var(--sl-color-chip-gold-bg);
  color: var(--sl-color-chip-gold-text);
  font-size: 12px;
}
.store-card__row {
  font-size: 14px;
  line-height: 1.9;
  color: var(--sl-color-text-soft-78);
}
.store-card__row b {
  color: var(--sl-app-text-primary);
  margin-right: 6px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 6px;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--sl-color-border-soft);
  text-align: left;
}
.spec-table th {
  background: var(--sl-color-surface-soft);
  font-weight: 600;
  color: var(--sl-color-text-muted);
}
.spec-table td b {
  color: var(--sl-app-accent);
}
.size-calc {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-app-shadow-card);
  padding: 24px;
  align-items: center;
}
.size-calc__field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--sl-color-text-muted);
}
.size-calc__out {
  text-align: center;
  border-left: 1px dashed var(--sl-color-border-strong);
  padding-left: 22px;
}
.size-calc__num {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--sl-app-brand);
}
.size-calc__num small {
  font-size: 15px;
  font-weight: 600;
  color: var(--sl-color-text-muted);
}
.size-calc__line {
  margin-top: 8px;
  font-size: 14px;
  color: var(--sl-color-text-soft-78);
}
.size-calc__line--soft {
  font-size: 13px;
  color: var(--sl-color-text-muted);
}
.size-calc__hint {
  font-size: 14px;
  color: var(--sl-color-text-muted);
}

/* ---------- 材质百科 ---------- */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.mat-card {
  background: var(--sl-color-surface);
  border-radius: var(--sl-radius-inline);
  box-shadow: var(--sl-app-shadow-card);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mat-card:hover {
  transform: translateY(-2px);
}
.mat-card__media {
  aspect-ratio: 1 / 1;
  background: var(--sl-color-surface-soft);
}
.mat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mat-card__name {
  padding: 10px 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--sl-app-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mat-card__meta {
  display: flex;
  justify-content: space-between;
  padding: 4px 12px 12px;
  font-size: 12px;
  color: var(--sl-color-text-muted);
}
.filter-chip__num {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.72;
}

/* ---------- 订单详情弹窗 ---------- */
.order-detail__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sl-color-border-soft);
}
.order-detail__row img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--sl-color-surface-soft);
}
.order-detail__spec {
  font-size: 12px;
  color: var(--sl-color-text-muted);
  margin-top: 3px;
}
.order-detail__price {
  margin-left: auto;
  font-weight: 700;
}
.order-detail__foot {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  font-size: 14px;
  color: var(--sl-color-text-muted);
}
.order-detail__foot b {
  color: var(--sl-app-danger);
  font-size: 16px;
}
.order-tab__num {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.6;
}

/* 商品底栏：加了「收藏 / 加入购物车」后要重新分配宽度 */
.product-bottom-bar #favBtn {
  flex: 0 0 auto;
  min-width: 96px;
}
.product-bottom-bar .product-bottom-btn--share {
  flex: 0 0 auto;
  min-width: 108px;
}
.product-bottom-btn--buy {
  flex: 1;
}
.product-bottom-bar #applyBtn {
  flex: 1.3;
}
#favBtn.is-on {
  color: var(--sl-app-accent);
  border-color: var(--sl-app-accent);
}

@media (max-width: 900px) {
  .cart-layout,
  .acct-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .cart-summary,
  .acct-tabs {
    position: static;
  }
  .acct-tabs {
    flex-direction: row;
    overflow-x: auto;
  }
  .acct-tab {
    white-space: nowrap;
  }
  .doc-cards,
  .acct-grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .size-calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .size-calc__out {
    border-left: 0;
    border-top: 1px dashed var(--sl-color-border-strong);
    padding: 18px 0 0;
  }
  .store-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .doc-hero {
    padding: 32px 22px;
  }
  .doc-hero__title {
    font-size: 27px;
  }
  .cart-row {
    grid-template-columns: 68px minmax(0, 1fr) 72px;
    grid-template-areas:
      "thumb info price"
      "thumb qty sum"
      ". del del";
    row-gap: 8px;
  }
  .cart-row__thumb {
    grid-area: thumb;
    width: 68px;
    height: 68px;
  }
  .cart-row__info {
    grid-area: info;
  }
  .cart-row__price {
    grid-area: price;
    text-align: right;
  }
  .cart-qty {
    grid-area: qty;
    justify-self: start;
  }
  .cart-row__sum {
    grid-area: sum;
  }
  .cart-row__del {
    grid-area: del;
    justify-self: end;
  }
  .product-bottom-bar {
    flex-wrap: wrap;
  }
  .product-bottom-bar #favBtn,
  .product-bottom-bar .product-bottom-btn--share {
    flex: 1;
    min-width: 0;
  }
  .product-bottom-bar #buyBtn,
  .product-bottom-bar #applyBtn {
    flex: 1 1 46%;
  }
}

/* 宽表在小屏会顶破容器：外层接管横向滚动，页面本身不再溢出 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll .spec-table {
  min-width: 520px;
}

/* 悬浮客服：手机上不再压住结算金额，改成内容末尾的一枚胶囊按钮 */
.floating-service-entry__label {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
@media (max-width: 768px) {
  .floating-service-entry {
    position: static;
    width: auto;
    height: 44px;
    margin: 22px auto 26px;
    padding: 0 22px;
    border-radius: 99px;
    gap: 8px;
    justify-content: center;
    max-width: 200px;
  }
  .floating-service-entry img {
    width: 20px;
    height: 20px;
  }
  .floating-service-entry__label {
    display: inline;
  }
}

/* 购物车里没有实拍图的条目（工坊直接加购）用占位块，不显示裂图 */
.cart-row__thumb--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--sl-color-text-faint);
  background: var(--sl-color-surface-warm);
  border: 1px dashed var(--sl-color-border-strong);
}

/* 「我的」页底部说明块：页面内容本来就短，不加说明会留一大片空白 */
.profile-tip {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: var(--sl-app-radius-card);
  background: var(--sl-color-surface-warm);
  border: 1px solid var(--sl-app-border);
}
.profile-tip b {
  display: block;
  font-size: 14px;
  color: var(--sl-app-text-primary);
  margin-bottom: 6px;
}
.profile-tip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--sl-color-text-soft);
}
