/* Base theme · 颜色 / 字体 / 宽度来自布局里的 CSS 变量(商家在编辑器里设置) */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: calc(16px * var(--body-scale));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1,
.h1 {
  font-size: calc(clamp(2rem, 4vw, 3.25rem) * var(--heading-scale));
}
h2,
.h2 {
  font-size: calc(clamp(1.5rem, 2.6vw, 2.25rem) * var(--heading-scale));
}
h3,
.h3 {
  font-size: calc(1.25rem * var(--heading-scale));
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
}
.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-width--narrow {
  max-width: 760px;
}
.section {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section + .section {
  padding-top: 0;
}
/* 商家在区块设置里调过上 / 下边距(区块外层带 --pt / --pb,单位像素;手机上按 0.6 缩小) */
.has-pt .section {
  padding-top: calc(var(--pt) * 1px);
}
.has-pb .section {
  padding-bottom: calc(var(--pb) * 1px);
}
@media (max-width: 749px) {
  .has-pt .section {
    padding-top: calc(var(--pt) * 0.6px);
  }
  .has-pb .section {
    padding-bottom: calc(var(--pb) * 0.6px);
  }
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section__head--center {
  justify-content: center;
  text-align: center;
}
.section__heading {
  margin: 0;
}
/* 区块里调过标题大小(--hs 百分比)/ 标题和下面内容的距离(--hg 像素) */
.has-hs .section__heading {
  font-size: calc(clamp(1.5rem, 2.6vw, 2.25rem) * var(--heading-scale) * var(--hs) / 100);
}
.has-hg .section__head {
  margin-bottom: calc(var(--hg) * 1px);
}
.page-title {
  margin-bottom: 1.5rem;
}
.eyebrow {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.75;
  margin: 0 0 0.5rem;
}
.empty {
  padding: 3rem 0;
  text-align: center;
  opacity: 0.75;
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.icon--sm {
  width: 14px;
  height: 14px;
}
.icon--lg {
  width: 36px;
  height: 36px;
}
.icon--star {
  width: 16px;
  height: 16px;
}
/* 文字链接:下划线,不加箭头 */
.link-arrow {
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
.link-arrow:hover {
  text-decoration-color: currentColor;
}

/* 按钮 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--button-radius);
  background: var(--color-accent);
  color: var(--color-button-text);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.button:hover {
  opacity: 0.88;
}
.button:active {
  transform: translateY(1px);
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.button--secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.button--full {
  width: 100%;
}

/* 占位图 */
.placeholder {
  /* 还没上传图片时的占位:带一点主题色,不同风格看起来不一样 */
  background: color-mix(in srgb, var(--color-accent) 9%, var(--color-bg));
  color: color-mix(in srgb, var(--color-accent) 70%, var(--color-text));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
}
.placeholder svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  opacity: 0.35;
}

/* 富文本 */
.rte > :first-child {
  margin-top: 0;
}
.rte > :last-child {
  margin-bottom: 0;
}
.rte a {
  text-decoration: underline;
}
.rte img {
  border-radius: var(--card-radius);
}
.rte table {
  border-collapse: collapse;
  width: 100%;
}
.rte td,
.rte th {
  border: 1px solid color-mix(in srgb, var(--color-text) 15%, transparent);
  padding: 0.5rem;
}

/* 公告栏 */
.announcement {
  background: var(--ab-bg);
  color: var(--ab-fg);
  font-size: 0.85rem;
  text-align: center;
}
.announcement__track {
  position: relative;
  min-height: 38px;
}
.announcement__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  opacity: 0;
  transition: opacity 0.4s;
}
.announcement__item.is-active {
  opacity: 1;
  position: relative;
  min-height: 38px;
}
.announcement a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 页头 */
.header {
  background: var(--color-header-bg);
  color: var(--color-header-text);
  border-bottom: 1px solid color-mix(in srgb, var(--color-header-text) 10%, transparent);
  z-index: 20;
}
.header--sticky {
  position: sticky;
  top: 0;
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.header--center .header__inner {
  grid-template-columns: 1fr auto 1fr;
}
.header--center .header__logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}
.header--center .header__nav {
  grid-column: 1;
  grid-row: 1;
}
.header--center .header__icons {
  grid-column: 3;
  grid-row: 1;
}
.header__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.header__shop-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.header__nav {
  justify-self: center;
}
.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
}
.menu__item {
  position: relative;
}
.menu__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.menu__link:hover,
.menu__link.is-active {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.menu__sub {
  list-style: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 200px;
  margin: 0;
  padding: 0.75rem 0;
  background: var(--color-header-bg);
  border: 1px solid color-mix(in srgb, var(--color-header-text) 12%, transparent);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s;
}
.menu__item--has-sub:hover .menu__sub,
.menu__item--has-sub:focus-within .menu__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.menu__sub a {
  display: block;
  padding: 0.4rem 1.25rem;
  text-decoration: none;
  font-size: 0.92rem;
}
.menu__sub a:hover {
  background: color-mix(in srgb, var(--color-header-text) 6%, transparent);
}
.header__icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}
.header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.header__menu-toggle {
  display: none;
}
/* 语言切换 */
.lang {
  position: relative;
}
.lang__current {
  width: auto;
  padding: 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  list-style: none;
}
.lang__current::-webkit-details-marker {
  display: none;
}
.lang__list {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  min-width: 160px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--color-header-bg);
  color: var(--color-header-text);
  border: 1px solid color-mix(in srgb, var(--color-header-text) 14%, transparent);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.lang__list a {
  display: block;
  padding: 0.5rem 1rem;
  color: inherit;
  text-decoration: none;
}
.lang__list a:hover,
.lang__list a[aria-current] {
  background: color-mix(in srgb, var(--color-header-text) 6%, transparent);
}
.lang__list a[aria-current] {
  font-weight: 600;
}
.drawer__lang {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  margin-top: 1rem;
}
.drawer__lang-label {
  width: 100%;
  font-size: 0.85rem;
  opacity: 0.7;
}
.drawer__lang a {
  color: inherit;
}
.drawer__lang a[aria-current] {
  font-weight: 600;
}
.header__cart-count {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--color-accent);
  color: var(--color-button-text);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

/* 手机菜单抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.drawer[hidden] {
  display: none;
}
.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.drawer__panel {
  position: relative;
  z-index: 1;
  width: min(86vw, 360px);
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-y: auto;
  padding: 1rem 1.25rem 2rem;
  animation: drawer-in 0.2s ease-out;
}
@keyframes drawer-in {
  from {
    transform: translateX(-100%);
  }
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer__title {
  font-weight: 600;
}
.drawer__search input,
.search-form input {
  width: 100%;
  font: inherit;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 25%, transparent);
  border-radius: var(--button-radius);
  background: transparent;
  color: inherit;
}
.drawer__search {
  margin: 0.75rem 0 1rem;
}
.drawer__menu,
.drawer__menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer__menu > li {
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}
.drawer__menu a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  font-size: 1.05rem;
}
.drawer__menu ul a {
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* 大图横幅 */
.banner {
  position: relative;
  display: flex;
  overflow: hidden;
  color: #fff;
}
.banner--small {
  min-height: 360px;
}
.banner--medium {
  min-height: 500px;
}
.banner--large {
  min-height: 640px;
}
.banner--full {
  min-height: calc(100vh - 110px);
}
.banner__media {
  position: absolute;
  inset: 0;
}
.banner__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay));
}
.banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner__img--mobile {
  display: none;
}
.banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.banner--center .banner__content {
  justify-content: center;
  text-align: center;
}
.banner--right .banner__content {
  justify-content: flex-end;
}
.banner__box {
  max-width: 640px;
}
.banner__sub {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}
.banner__heading {
  margin-bottom: 1rem;
}
.banner__text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.banner--center .banner__buttons {
  justify-content: center;
}
.banner .button--secondary {
  color: inherit;
}

/* 网格 */
.grid {
  display: grid;
  gap: 2rem 1.25rem;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
}
.grid--1 {
  --cols: 1;
}
.grid--2 {
  --cols: 2;
}
.grid--3 {
  --cols: 3;
}
.grid--4 {
  --cols: 4;
}
.grid--5 {
  --cols: 5;
}

/* 商品卡片 */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
  aspect-ratio: 4 / 5;
}
.ratio-square .card__media,
.ratio-square.collection-card__media {
  aspect-ratio: 1;
}
.ratio-tall .card__media {
  aspect-ratio: 2 / 3;
}
.ratio-landscape .card__media,
.ratio-landscape.collection-card__media {
  aspect-ratio: 4 / 3;
}
.ratio-portrait.collection-card__media {
  aspect-ratio: 4 / 5;
}
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s, transform 0.6s;
}
.card__img--second {
  opacity: 0;
}
.card__media--hover:hover .card__img--second {
  opacity: 1;
}
.card__media:hover .card__img {
  transform: scale(1.03);
}
.card__vendor {
  font-size: 0.85rem;
  opacity: 0.65;
}
.card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.card__title {
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
}
.card__title:hover {
  text-decoration: underline;
}
.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  z-index: 1;
}
.badge--sale {
  background: var(--color-sale);
  color: #fff;
}
.badge--soldout {
  background: var(--color-text);
  color: var(--color-bg);
}

/* 价格 */
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.price__current {
  font-weight: 600;
}
.price--on-sale .price__current {
  color: var(--color-sale);
}
.price__compare {
  opacity: 0.55;
  font-size: 0.9em;
}

/* 集合卡片 */
.collection-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
}
.collection-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
}
.collection-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.collection-card:hover img {
  transform: scale(1.04);
}
.collection-card__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 1.05rem;
}

/* 图文 */
.rich-text__inner {
  max-width: 760px;
}
.rich-text--center .rich-text__inner {
  margin: 0 auto;
  text-align: center;
}
.rich-text__buttons {
  margin-top: 1.5rem;
}
.iwt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
}
.iwt--right .iwt__media {
  order: 2;
}
.iwt__media {
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 1;
}
.iwt__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.iwt__content .rte {
  margin-bottom: 1.75rem;
}

/* 卖点 */
.features {
  gap: 2rem;
}
.feature--center {
  text-align: center;
}
.feature__icon {
  margin-bottom: 0.75rem;
}
.feature--center .feature__icon,
.feature--center .feature__img {
  display: flex;
  justify-content: center;
}
.feature__img img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.feature__title {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.feature__text {
  font-size: 0.92rem;
  opacity: 0.8;
}

/* 评价 */
.testimonial {
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 2px solid var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.stars {
  display: flex;
  gap: 2px;
  color: #f5a623;
}
.testimonial__quote {
  margin: 0;
  font-size: 1.05rem;
  flex: 1;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* FAQ / 折叠 */
.faq__list {
  max-width: 820px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
}
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item[open] summary .icon {
  transform: rotate(180deg);
}
.faq__answer {
  padding-bottom: 1.25rem;
}

/* 视频 */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--card-radius);
  overflow: hidden;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 商品页 */
.product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.product__grid--small {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.product__grid--medium {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.product__media {
  position: sticky;
  top: 96px;
}
.product__main-image {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
}
.product__main-image img {
  width: 100%;
}
.product__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 4px;
}
.product__thumb {
  flex: 0 0 72px;
  height: 72px;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.7;
}
.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product__thumb.is-active,
.product__thumb:hover {
  border-color: var(--color-text);
  opacity: 1;
}
.product__info {
  max-width: 520px;
}
.product__block + .product__block {
  margin-top: 1.25rem;
}
.product__vendor {
  font-size: 0.95rem;
  opacity: 0.65;
  margin: 0 0 0.4rem;
}
.product__title {
  font-size: calc(clamp(1.6rem, 3vw, 2.25rem) * var(--heading-scale));
  margin: 0;
}
.product__block--price .price {
  font-size: 1.35rem;
}
.product__save {
  margin: 0.25rem 0 0;
  color: var(--color-sale);
  font-size: 0.9rem;
  font-weight: 500;
}
/* 买多优惠阶梯 */
.volume {
  margin: 0.9rem 0 0;
  border: 1px dashed color-mix(in srgb, var(--color-accent) 45%, transparent);
  border-radius: min(var(--card-radius, 8px), 14px);
  padding: 0.75rem 0.85rem;
  background: color-mix(in srgb, var(--color-accent) 5%, var(--color-bg));
}
.volume__title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.volume__tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.4rem;
}
.volume__tier {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 15%, transparent);
  border-radius: min(var(--button-radius, 6px), 10px);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}
.volume__tier strong {
  color: var(--color-sale);
  font-size: 0.9rem;
}
.volume__tier:hover,
.volume__tier.is-on {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}
.volume__note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  opacity: 0.75;
}
/* 购物车里的折扣 */
.line-discounts {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--color-sale);
}
.line-discounts .nowrap {
  white-space: nowrap;
}
.price-was {
  display: block;
  font-size: 0.8rem;
  opacity: 0.6;
  text-decoration: line-through;
}
.cart-discount {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-sale);
  margin-bottom: 0.25rem;
}
.cart-code-note {
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}
.option {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}
.option__name {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding: 0;
}
.option__values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill span {
  display: inline-block;
  min-width: 48px;
  padding: 0.55rem 1rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 25%, transparent);
  border-radius: var(--button-radius);
  text-align: center;
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.12s;
}
.pill input:checked + span {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.pill input:focus-visible + span {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.pill.is-unavailable span {
  opacity: 0.4;
  text-decoration: line-through;
}
.qty {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--color-text) 25%, transparent);
  border-radius: var(--button-radius);
}
.qty button {
  width: 44px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}
.qty input {
  width: 56px;
  border: 0;
  text-align: center;
  font: inherit;
  background: none;
  color: inherit;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.product__stock {
  color: var(--color-sale);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}
.product__stock:empty {
  display: none;
}
.product__trust {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
}
.product__trust li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.product__trust .icon {
  width: 24px;
  height: 24px;
}
.share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.share a {
  display: inline-flex;
  opacity: 0.75;
}
.share a:hover {
  opacity: 1;
}

/* 集合页 */
.collection-hero {
  margin-bottom: 2rem;
}
.collection-hero__media {
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 420px;
}
.collection-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-hero__desc {
  max-width: 720px;
  opacity: 0.85;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}
.toolbar__count {
  opacity: 0.75;
  font-size: 0.92rem;
}
.toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
}
.toolbar__sort select {
  font: inherit;
  padding: 0.45rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 25%, transparent);
  border-radius: 4px;
  background: transparent;
  color: inherit;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}
.pagination__link {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.pagination__info {
  opacity: 0.7;
  font-size: 0.92rem;
}

/* 搜索 */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.search-form .button {
  min-width: 56px;
  padding: 0 1rem;
}

.not-found {
  text-align: center;
}

/* 页脚 */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
  font-size: 0.92rem;
}
.footer__blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer__heading {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.footer__links a,
.footer__policies a {
  text-decoration: none;
  opacity: 0.8;
}
.footer__links a:hover,
.footer__policies a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--color-footer-text) 15%, transparent);
  opacity: 0.85;
}
.footer__policies {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}
.social {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}
.social a {
  display: inline-flex;
  opacity: 0.8;
}
.social a:hover {
  opacity: 1;
}
.payment-icons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.payment-icons svg {
  width: 38px;
  height: 24px;
  display: block;
}


/* 购物车 */
.notice {
  background: color-mix(in srgb, var(--color-sale) 8%, transparent);
  color: var(--color-sale);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.cart-page__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.65;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
}
.cart-table td {
  padding: 1.25rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  vertical-align: top;
}
.cart-table .right {
  text-align: right;
}
.cart-item {
  display: flex;
  gap: 1rem;
}
.cart-item__img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
}
.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item__title {
  font-weight: 500;
  text-decoration: none;
}
.cart-item__variant,
.drawer-line__variant {
  font-size: 0.85rem;
  opacity: 0.7;
}
.cart-item__price {
  font-size: 0.9rem;
  margin: 0.25rem 0 0.5rem;
}
.qty--sm button {
  width: 34px;
  font-size: 1rem;
}
.qty--sm input {
  width: 40px;
  height: 36px;
}
.qty button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.link-remove {
  display: inline-block;
  margin-top: 0.5rem;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  color: inherit;
  opacity: 0.7;
  text-decoration: underline;
  cursor: pointer;
}
.cart-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.cart-note {
  flex: 1;
  max-width: 420px;
}
.cart-note label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.cart-note textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 25%, transparent);
  border-radius: 6px;
  background: transparent;
  color: inherit;
}
.cart-totals {
  margin-left: auto;
  width: 100%;
  max-width: 380px;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}
.cart-taxes {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0.25rem 0 1rem;
}
.cart-empty {
  text-align: center;
  padding: 3rem 0;
}
.show-sm {
  display: none;
}
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.cart-drawer[hidden] {
  display: none;
}
.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(92vw, 420px);
  background: var(--color-bg);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  animation: cart-in 0.2s ease-out;
}
@keyframes cart-in {
  from {
    transform: translateX(100%);
  }
}
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}
.cart-drawer__title {
  font-size: 1.15rem;
  margin: 0;
}
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.cart-drawer__foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}
.cart-drawer__view {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.drawer-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.drawer-line__img {
  width: 72px;
  height: 72px;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
}
.drawer-line__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-line__title {
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}
.drawer-line__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.drawer-line__row .link-remove {
  margin: 0;
}
.drawer-line__price {
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 749px) {
  .hide-sm {
    display: none;
  }
  .show-sm {
    display: block;
    margin-top: 0.5rem;
  }
  .cart-item__img {
    width: 80px;
    height: 80px;
  }
}


/* 底部固定购买栏 */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem max(1rem, calc((100vw - var(--page-width)) / 2 + 1.25rem));
  background: var(--color-bg);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}
.sticky-buy[hidden] {
  display: none;
}
.sticky-buy__info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.sticky-buy__title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-buy .button {
  min-height: 44px;
  padding: 0.5rem 1.5rem;
  flex-shrink: 0;
}
@media (max-width: 749px) {
  .sticky-buy__title {
    display: none;
  }
  .sticky-buy .button {
    flex: 1;
  }
}

/* 编辑器预览:鼠标悬停 / 选中的区块描边 */
.sf-preview-hover {
  outline: 2px dashed #1f6feb;
  outline-offset: -2px;
  cursor: pointer;
}
.sf-preview-selected {
  outline: 2px solid #1f6feb;
  outline-offset: -2px;
}

/* 博客 */
.blog-head {
  margin-bottom: 2rem;
}
.blog-head .page-title {
  margin-bottom: 1rem;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.95rem;
}
.blog-tags a {
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
}
.blog-tags a:hover,
.blog-tags a[aria-current='page'] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-grid {
  row-gap: 2.5rem;
}
.article-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--card-radius);
  margin-bottom: 1rem;
}
.article-card__img,
.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card__meta {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  opacity: 0.7;
}
.article-card__title {
  margin: 0 0 0.5rem;
  font-size: calc(1.2rem * var(--heading-scale));
  line-height: 1.3;
}
.article-card__title a {
  color: inherit;
  text-decoration: none;
}
.article-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-card__excerpt {
  margin: 0;
  opacity: 0.8;
  line-height: 1.6;
}
.article__head {
  margin-bottom: 2rem;
}
.article__blog {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: inherit;
  opacity: 0.7;
}
.article__title {
  margin-bottom: 0.75rem;
}
.article__meta {
  margin: 0;
  opacity: 0.7;
  font-size: 0.95rem;
}
.article__media {
  margin-bottom: 2rem;
  border-radius: var(--card-radius);
  overflow: hidden;
}
.article__media img {
  width: 100%;
  height: auto;
}
.article__content {
  font-size: 1.05rem;
  line-height: 1.75;
}
.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0 0;
}
.article__tags a {
  padding: 0.25rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent);
  border-radius: 999px;
  font-size: 0.85rem;
  color: inherit;
  text-decoration: none;
}
.article__tags a:hover {
  border-color: currentColor;
}
.article__back {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
}
.article__back a {
  color: inherit;
  text-underline-offset: 4px;
}

/* 响应式 */
@media (max-width: 989px) {
  .grid--4,
  .grid--5 {
    --cols: 3;
  }
  .header__nav {
    display: none;
  }
  .header__menu-toggle {
    display: inline-flex;
  }
  .header__inner,
  .header--center .header__inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    min-height: 60px;
  }
  .header__logo,
  .header--center .header__logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .header__shop-name {
    font-size: 1.15rem;
    display: block;
    max-width: 52vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header__menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .header__icons,
  .header--center .header__icons {
    grid-column: 3;
    grid-row: 1;
  }
  .product__grid,
  .product__grid--small,
  .product__grid--medium {
    grid-template-columns: minmax(0, 1fr);
  }
  .product__media {
    position: static;
  }
  .product__info {
    max-width: none;
  }
}
@media (max-width: 749px) {
  .grid--3,
  .grid--4,
  .grid--5 {
    --cols: 2;
  }
  .grid--m1 {
    --cols: 1;
  }
  .grid--m2 {
    --cols: 2;
  }
  .grid--m3 {
    --cols: 3;
  }
  .grid {
    gap: 1.5rem 0.75rem;
  }
  .iwt {
    grid-template-columns: 1fr;
  }
  .iwt--right .iwt__media {
    order: 0;
  }
  .banner--large,
  .banner--full {
    min-height: 520px;
  }
  .banner--medium {
    min-height: 420px;
  }
  .banner__img--mobile {
    display: block;
    position: absolute;
    inset: 0;
  }
  .banner__img--mobile ~ .banner__img,
  .banner__media:has(.banner__img--mobile) > .banner__img:not(.banner__img--mobile) {
    display: none;
  }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section__head--center {
    align-items: center;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 手机上语言切换放在菜单抽屉里 */
@media (max-width: 749px) {
  .header__icons .lang {
    display: none;
  }
}

/* ==================== 区块背景方案(新区块共用) ==================== */
.scheme-soft {
  background: color-mix(in srgb, var(--color-accent) 7%, var(--color-bg));
}
.scheme-dark {
  --color-bg: #141414;
  --color-text: #f5f5f4;
  background: var(--color-bg);
  color: var(--color-text);
}
.scheme-accent {
  --color-bg: var(--color-accent);
  --color-text: var(--color-button-text);
  background: var(--color-bg);
  color: var(--color-text);
}
/* 深色 / 主题色背景上,主按钮反过来(否则和背景同色看不见) */
.scheme-dark .button:not(.button--secondary),
.scheme-accent .button:not(.button--secondary) {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.scheme-dark .button--secondary,
.scheme-accent .button--secondary {
  color: var(--color-text);
  border-color: currentColor;
}
.section-bg.scheme-soft,
.section-bg.scheme-dark,
.section-bg.scheme-accent {
  padding: 0.01px 0; /* 让里面区块的上下留白算在色块里 */
}

/* ==================== 轮播图 ==================== */
.slideshow {
  position: relative;
  overflow: hidden;
}
.slideshow__track {
  display: grid;
}
.slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
}
.slideshow--medium .slide {
  min-height: 420px;
}
.slideshow--large .slide {
  min-height: 600px;
}
.slideshow--full .slide {
  min-height: calc(100svh - 120px);
}
.slide__media {
  position: absolute;
  inset: 0;
}
.slide__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay));
}
.slide__img,
.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide__img--mobile {
  display: none;
}
.slide__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}
.slide--center .slide__content {
  justify-content: center;
  text-align: center;
}
.slide--right .slide__content {
  justify-content: flex-end;
}
.slide__box {
  max-width: 640px;
}
.slide__sub {
  margin: 0 0 0.75rem;
  font-weight: 500;
}
.slide__heading {
  margin: 0 0 1rem;
}
.slide__text {
  margin-bottom: 1.5rem;
}
.slideshow__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
}
.slideshow__arrow {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  color: inherit;
  cursor: pointer;
}
.slideshow__arrow .icon {
  transform: rotate(90deg);
}
.slideshow__arrow--next .icon {
  transform: rotate(-90deg);
}
.slideshow__pause {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.85;
}
.slideshow__dots {
  display: flex;
  gap: 0.5rem;
}
.slideshow__dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.slideshow__dot.is-active {
  background: #fff;
}

/* ==================== 左右分栏首屏 ==================== */
.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.split-hero--left .split-hero__media {
  order: -1;
}
/* 图片在右:图片在 HTML 里排第一个,不写这条就一直在左边 */
.split-hero--right .split-hero__media {
  order: 2;
}
.split-hero__media {
  position: relative;
  min-height: 360px;
}
.split-hero__img,
.split-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-hero__content {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 6rem);
}
.split-hero__box {
  max-width: 520px;
}
.split-hero__heading {
  margin: 0 0 1rem;
}
.split-hero__text {
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

/* ==================== 倒计时 ==================== */
.countdown {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem 3rem;
}
.countdown__heading {
  margin: 0 0 0.5rem;
}
.countdown__clock {
  display: flex;
  gap: 0.75rem;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: 0.75rem 0.5rem;
  border-radius: var(--card-radius);
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.countdown__num {
  font-family: var(--font-heading);
  font-size: calc(2rem * var(--heading-scale));
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: 0.8rem;
  opacity: 0.8;
}
.countdown__cta {
  grid-column: 1 / -1;
}
.countdown__ended {
  margin: 0;
  font-weight: 600;
}

/* ==================== 商品横向滑动 ==================== */
.carousel__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto; /* 没有标题时也靠右 */
}
.carousel__arrow {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
.carousel__arrow .icon {
  transform: rotate(-90deg);
}
.carousel__arrow--prev .icon {
  transform: rotate(90deg);
}
.carousel__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.carousel__track {
  position: relative; /* 卡片里绝对定位的元素以它为准,不会撑出页面 */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * 1.25rem) / var(--per-view));
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.carousel__item,
.carousel__track > .collection-card,
.carousel__track > .card {
  scroll-snap-align: start;
  min-width: 0;
}

/* ==================== 自动循环滚动(集合列表 / 精选商品) ==================== */
/* 卡片一份放在 .autoscroll__group 里;theme.js 复制出第二份接在后面,整条往左移一份的宽度后回到起点,接缝看不出来(和滚动字条同一个办法) */
.autoscroll {
  container-type: inline-size;
  overflow: hidden;
  overflow: clip; /* 不是滚动容器:Tab 键 / 网页查找不会把它挪位(老浏览器退回上一行的 hidden) */
}
.autoscroll__track {
  display: flex;
  width: max-content;
}
.autoscroll.is-running .autoscroll__track {
  animation: autoscroll var(--duration, 40s) linear infinite;
}
/* 往右:同一段动画倒着放(从 -50% 走回 0),接缝一样看不出来 */
.autoscroll[data-direction='right'] .autoscroll__track {
  animation-direction: reverse;
}
/* 鼠标放上去停(只在有鼠标的设备上;触屏点一下不会一直停住) */
@media (hover: hover) {
  .autoscroll:hover .autoscroll__track {
    animation-play-state: paused;
  }
}
.autoscroll:focus-within .autoscroll__track {
  animation-play-state: paused;
}
.autoscroll__group {
  display: flex;
  flex-shrink: 0;
  gap: 1.25rem;
  padding-right: 1.25rem; /* 两份之间的间距和卡片之间一样 */
}
.autoscroll__group > * {
  flex: none;
  width: calc((var(--aw, 100cqw) - (var(--per-view) - 1) * 1.25rem) / var(--per-view));
  min-width: 0;
}
@keyframes autoscroll {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 749px) {
  .autoscroll__group > * {
    width: calc((var(--aw, 100cqw) - (var(--per-view-m, 1.6) - 1) * 1.25rem) / var(--per-view-m, 1.6));
  }
}
/* 系统设置了「减少动态效果」:不自动动,改成手动左右划 */
@media (prefers-reduced-motion: reduce) {
  .autoscroll {
    overflow-x: auto;
  }
  .autoscroll.is-running .autoscroll__track {
    animation: none;
  }
}

/* ==================== 对比表 ==================== */
.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.compare__table th,
.compare__table td {
  padding: 0.9rem 1rem;
  text-align: center;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.compare__table th[scope='row'] {
  text-align: left;
  font-weight: 500;
}
.compare__table thead th {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.compare__us {
  background: color-mix(in srgb, var(--color-accent) 9%, transparent);
  font-weight: 600;
}
.compare__yes {
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 700;
}
.scheme-accent .compare__yes,
.scheme-dark .compare__yes {
  color: inherit;
}
.compare__no {
  opacity: 0.45;
}

/* ==================== 使用前后对比 ==================== */
.before-after {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--card-radius);
  aspect-ratio: 3 / 2;
}
.before-after__img {
  position: absolute;
  inset: 0;
}
.before-after__img img,
.before-after__img .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after__img--before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.before-after__ph {
  filter: grayscale(1) brightness(0.9);
}
.before-after__label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
}
.before-after__label--after {
  left: auto;
  right: 1rem;
}
.before-after__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}
.before-after__handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}
.before-after__handle span::before {
  content: '‹ ›';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 1rem;
  letter-spacing: 2px;
}
.before-after__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.before-after__range:focus-visible + * ,
.before-after:focus-within .before-after__handle span {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.before-after__caption {
  text-align: center;
  margin: 1rem 0 0;
  opacity: 0.8;
}

/* ==================== 搭配购买 ==================== */
.bundle__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.bundle__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 200px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}
.bundle__img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--card-radius);
}
.bundle__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bundle__title {
  font-weight: 500;
}
.bundle__plus {
  font-size: 2rem;
  opacity: 0.5;
}
.bundle__total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  font-size: 1.1rem;
}

/* ==================== Logo 墙 ==================== */
.logo-list__heading {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.7;
}
.logo-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-list__item img {
  height: var(--logo-h);
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.logo-list__item a {
  color: inherit;
}
.logo-list__name {
  font-family: var(--font-heading);
  font-size: calc(var(--logo-h) * 0.7);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: var(--logo-h);
}
.logo-list--gray .logo-list__item {
  filter: grayscale(1);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}
.logo-list--gray .logo-list__item:hover {
  filter: none;
  opacity: 1;
}

/* ==================== 带图评价墙 ==================== */
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}
.stars--inline {
  display: inline-flex;
}
.review-wall {
  columns: var(--cols);
  column-gap: 1.25rem;
}
.review-card {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--color-bg);
}
.review-card__img img {
  width: 100%;
  height: auto;
}
.review-card__body {
  padding: 1rem 1.1rem 1.2rem;
}
.review-card__title {
  margin: 0.5rem 0 0.25rem;
  font-weight: 600;
}
.review-card__quote {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}
.review-card__author {
  font-size: 0.9rem;
}
.review-card__verified {
  color: var(--color-accent);
  font-size: 0.8rem;
}
.review-card__product {
  color: inherit;
  opacity: 0.75;
  font-size: 0.85rem;
}

/* ==================== 数字展示 ==================== */
.stats__list {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 1.5rem;
  margin: 0;
  text-align: center;
}
.stats__item {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
}
.stats__num {
  margin: 0;
  font-family: var(--font-heading);
  font-size: calc(2.5rem * var(--heading-scale));
  font-weight: 700;
  line-height: 1.1;
}
.stats__label {
  opacity: 0.8;
}
.stats__note {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ==================== 图片拼贴 ==================== */
.collage {
  display: grid;
  grid-auto-flow: dense; /* 大图放在右边时,左边的空位由后面的格子补上 */
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 260px;
  gap: 1rem;
}
.collage--left .collage__item:first-child {
  grid-row: span 2;
}
.collage--right .collage__item:first-child {
  grid-row: span 2;
  grid-column: 2;
}
.collage--even {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.collage--n1 {
  grid-template-columns: 1fr;
}
.collage__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--card-radius);
  color: #fff;
  text-decoration: none;
}
.collage__img,
.collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.collage__item:hover img {
  transform: scale(1.04);
}
.collage__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-weight: 600;
}

/* ==================== 标签页 ==================== */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.tabs__tab {
  padding: 0.75rem 1.1rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  opacity: 0.65;
  cursor: pointer;
}
.tabs__tab[aria-selected='true'] {
  opacity: 1;
  border-bottom-color: currentColor;
}

/* ==================== 时间线 ==================== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 5.5rem;
  width: 1px;
  background: color-mix(in srgb, currentColor 20%, transparent);
}
.timeline__item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(5.5rem - 5px);
  top: 0.45rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-accent);
}
.timeline__date {
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: right;
  padding-right: 1.25rem; /* 不压到时间线的圆点 */
}
.timeline__title {
  margin: 0 0 0.4rem;
  font-size: calc(1.15rem * var(--heading-scale));
}
.timeline__img {
  max-width: 320px;
  margin-bottom: 0.75rem;
  border-radius: var(--card-radius);
  overflow: hidden;
}

/* ==================== 邮件订阅 ==================== */
.newsletter {
  text-align: center;
}
.newsletter__heading {
  margin-bottom: 0.5rem;
}
.newsletter__text {
  margin-bottom: 1.5rem;
}
.newsletter__form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter__form input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: var(--button-radius);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}
.newsletter__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.newsletter__msg {
  margin: 1rem 0 0;
  font-weight: 600;
}
.newsletter__fine {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ==================== 滚动字条 ==================== */
.marquee {
  overflow: hidden;
  padding: 0.85rem 0;
}
.marquee--small {
  font-size: 0.9rem;
}
.marquee--medium {
  font-size: 1.05rem;
}
.marquee--large {
  font-family: var(--font-heading);
  font-size: calc(1.8rem * var(--heading-scale));
  font-weight: 700;
  padding: 1.1rem 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--speed) linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__group {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.marquee__item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.marquee__item a {
  color: inherit;
}
.marquee__sep {
  margin: 0 1.5rem;
  opacity: 0.6;
}
/* 内容放了 4 份,每次移动一份的宽度,接缝处看不出来;一份内容比屏幕窄时也不会露出空白 */
@keyframes marquee {
  to {
    transform: translateX(-25%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .marquee__group[aria-hidden] {
    display: none;
  }
}

/* ==================== 可点选商品图 ==================== */
.hotspots {
  position: relative;
  border-radius: var(--card-radius);
  overflow: visible;
}
.hotspots__img,
.hotspots > img {
  width: 100%;
  height: auto;
  border-radius: var(--card-radius);
}
.hotspots__ph {
  aspect-ratio: 16 / 9;
}
.hotspot {
  position: absolute;
  /* 用负边距居中(不用 transform:否则手机上 fixed 定位的卡片会以圆点为参照) */
  margin: -14px 0 0 -14px;
}
.hotspot__dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.hotspot__dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: hotspot-pulse 2s ease-out infinite;
}
@keyframes hotspot-pulse {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hotspot__dot::after {
    animation: none;
  }
}
.hotspot__card {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  z-index: 3;
  width: 240px;
  padding: 0.6rem;
  border-radius: var(--card-radius);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.hotspot__card--left {
  left: auto;
  right: calc(100% + 10px);
}
.hotspot__link {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}
.hotspot__thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: calc(var(--card-radius) / 2);
  flex-shrink: 0;
}

/* ==================== 新区块的手机版 ==================== */
@media (max-width: 749px) {
  .slideshow--large .slide,
  .slideshow--medium .slide {
    min-height: 480px;
  }
  .slide__img--mobile {
    display: block;
    position: absolute;
    inset: 0;
  }
  .slide__media:has(.slide__img--mobile) .slide__img:not(.slide__img--mobile) {
    display: none;
  }
  .split-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .split-hero--left .split-hero__media,
  .split-hero--right .split-hero__media,
  .split-hero__media {
    order: -1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .countdown {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .countdown__clock {
    justify-content: center;
    gap: 0.5rem;
  }
  .countdown__unit {
    min-width: 64px;
  }
  .carousel__track {
    grid-auto-columns: 72%;
  }
  /* 区块设了手机端一屏几个:按个数排,再多露出下一张的一截,让人知道能划 */
  .carousel__track[style*='--per-view-m'] {
    grid-auto-columns: calc((100% - (var(--per-view-m) - 1) * 1.25rem) / (var(--per-view-m) + 0.3));
  }
  .carousel__arrow {
    display: none;
  }
  .carousel__nav {
    margin-left: 0;
  }
  .carousel-section .section__head:not(:has(.section__heading, .link-arrow)) {
    display: none;
  }
  .compare__table th,
  .compare__table td {
    padding: 0.7rem 0.5rem;
    font-size: 0.92rem;
  }
  .bundle__item {
    width: 42%;
  }
  .bundle__plus {
    font-size: 1.5rem;
  }
  .review-wall {
    columns: 1;
  }
  .stats__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .collage,
  .collage--even {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .collage--right .collage__item:first-child {
    grid-column: auto;
  }
  .collage--left .collage__item:first-child,
  .collage--right .collage__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
  .timeline::before {
    left: 0.35rem;
  }
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding-left: 1.75rem;
  }
  .timeline__item::before {
    left: 0;
  }
  .timeline__date {
    text-align: left;
  }
  .newsletter__form {
    flex-direction: column;
  }
  .hotspot__card,
  .hotspot__card--left {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 1rem;
    width: auto;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slide,
  .collage__item img {
    transition: none;
  }
}

/* ==================== 商品页:颜色色块 ==================== */
.pill--swatch .swatch {
  display: block;
  width: 34px;
  height: 34px;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-text) 18%, transparent);
  background: var(--swatch);
  overflow: hidden;
}
.pill--swatch input:checked + .swatch {
  background: var(--swatch);
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-text);
}
.pill--swatch .swatch--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pill--swatch.is-unavailable .swatch {
  opacity: 0.45;
  text-decoration: none;
  background-image: linear-gradient(to top right, transparent calc(50% - 1px), var(--color-text) 50%, transparent calc(50% + 1px));
}
.pill--swatch.is-unavailable .swatch--img {
  background-image: none;
}

/* ==================== 商品页:预计送达、尺码表、支付图标 ==================== */
.delivery {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.95rem;
}
.delivery .icon {
  flex-shrink: 0;
}
.link-button {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.modal {
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  padding: 0;
  border: none;
  border-radius: var(--card-radius);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.modal__title {
  margin: 0;
  font-size: calc(1.25rem * var(--heading-scale));
}
.modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-x: auto;
}
.modal__body table {
  min-width: 100%;
}
.pay-badges__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.pay-badges__title .icon {
  width: 16px;
  height: 16px;
}
.pay-badges .payment-icons {
  justify-content: flex-start;
}

/* ==================== 购物车:免运费进度、推荐 ==================== */
.free-ship {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-bg));
}
.free-ship p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.free-ship__bar {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-text) 12%, transparent);
  overflow: hidden;
}
.free-ship__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.cart-page .free-ship {
  max-width: 520px;
}
.upsell {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.upsell__title {
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.upsell__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}
.upsell__img {
  width: 56px;
  height: 56px;
  border-radius: calc(var(--card-radius) / 2);
  overflow: hidden;
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
}
.upsell__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upsell__info {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  min-width: 0;
}
.upsell__info a {
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.button--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  min-height: 0;
}

/* 新品角标 */
.badge--new {
  background: var(--color-accent);
  color: var(--color-button-text);
}

/* ==================== 集合页筛选 ==================== */
.collection-layout--filters {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.filters__toggle {
  list-style: none;
  display: none;
}
.filters__toggle::-webkit-details-marker {
  display: none;
}
.filter-group {
  margin: 0 0 1.5rem;
  padding: 0 0 1.25rem;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.filter-group legend {
  padding: 0;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  cursor: pointer;
}
.filter-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
}
.filter-count {
  opacity: 0.55;
  font-size: 0.85rem;
}
.filter-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.filter-price input {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: var(--button-radius);
  background: var(--color-bg);
  color: inherit;
  font: inherit;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 999px;
  font-size: 0.85rem;
  color: inherit;
  text-decoration: none;
}
.active-filter:hover {
  border-color: currentColor;
}
.active-filters__clear {
  font-size: 0.85rem;
  color: inherit;
  text-underline-offset: 4px;
}
@media (max-width: 989px) {
  .collection-layout--filters {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .filters__toggle {
    display: inline-flex;
  }
  .filters[open] .filters__body {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: var(--card-radius);
  }
}

/* ==================== 菜单第三层 / 大菜单 ==================== */
.menu__sub2 {
  list-style: none;
  margin: 0;
  padding: 0 0 0.25rem;
}
.menu__sub2 a {
  padding-left: 2rem;
  font-size: 0.88rem;
  opacity: 0.85;
}
.header:not(.header--sticky) {
  position: relative; /* 大菜单面板以整个页头为准定位 */
}
.menu__item--mega {
  position: static;
}
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 15;
  background: var(--color-header-bg);
  color: var(--color-header-text);
  border-top: 1px solid color-mix(in srgb, var(--color-header-text) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-header-text) 10%, transparent);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}
.menu__item--mega:hover .mega,
.menu__item--mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
}
.mega__inner {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 2.25rem;
}
.mega__cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
}
.mega__heading {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.mega__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega__col li a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.92rem;
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
}
.mega__col li a:hover,
.mega__heading:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mega__promo {
  position: relative;
  display: block;
  width: 300px;
  flex-shrink: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.mega__promo-img,
.mega__promo img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
}
.mega__promo-text {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-weight: 600;
}
.drawer__menu ul ul {
  padding-left: 1rem;
}

/* ---- 面包屑 ---- */
.breadcrumbs {
  padding-top: 1rem;
  font-size: 0.85rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.breadcrumbs li + li::before {
  content: '/';
  opacity: 0.45;
}
.breadcrumbs a {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
}
.breadcrumbs a:hover {
  opacity: 1;
  text-decoration: underline;
}
.breadcrumbs [aria-current] {
  overflow: hidden;
  max-width: 60vw;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumbs + .section {
  padding-top: 1rem;
}

/* ---- 搜索弹窗 ---- */
.search-modal {
  margin-top: 4rem;
  width: min(640px, calc(100vw - 2rem));
}
.search-modal__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.search-modal__form .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.6;
}
.search-modal__form input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  outline: none;
}
.search-modal__results:empty {
  display: none;
}
.search-modal__results {
  max-height: min(60vh, 520px);
  overflow-y: auto;
  padding: 0.5rem 1rem 1rem;
}
.search-modal__label {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}
.search-modal__products,
.search-modal__links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-modal__products a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}
.search-modal__products a:hover,
.search-modal__products a:focus-visible,
.search-modal__links a:hover {
  background: color-mix(in srgb, currentColor 6%, transparent);
}
.search-modal__products img,
.search-modal__noimg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
  background: color-mix(in srgb, currentColor 6%, transparent);
}
.search-modal__products a > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.search-modal__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-modal__price {
  font-size: 0.85rem;
  opacity: 0.7;
}
.search-modal__links a {
  display: block;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}
.search-modal__all {
  display: inline-block;
  margin-top: 0.75rem;
  color: inherit;
  font-weight: 600;
}
.search-modal__none {
  margin: 0.75rem 0;
  opacity: 0.75;
}

/* ---- 快速加购 ---- */
/* 同一行卡片的「快速加购」按钮对齐到底部(商品名有长有短) */
.card__info {
  flex: 1;
}
.card__quick {
  width: 100%;
  margin-top: auto;
}
.card__info > .price:has(+ .card__quick) {
  margin-bottom: 0.35rem;
}
.quick-modal {
  position: fixed;
}
.quick-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
}
.quick-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}
.quick-modal__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--card-radius);
}
.quick-modal__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.quick-modal__title {
  margin: 0 2rem 0 0;
  font-size: calc(1.3rem * var(--heading-scale));
}
.quick-modal__opt {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}
.quick-modal__opt select {
  padding: 0.55rem 0.6rem;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 6px;
  background: var(--color-bg);
  color: inherit;
  font: inherit;
}
.quick-modal__msg:empty {
  display: none;
}
.quick-modal__msg {
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
}
.quick-modal__details {
  color: inherit;
  font-size: 0.9rem;
}
@media (max-width: 640px) {
  .quick-modal__body {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }
  .quick-modal__media img {
    aspect-ratio: 4 / 3;
  }
  .search-modal {
    margin-top: 1rem;
  }
}

.card__quick[hidden],
.recent[hidden] {
  display: none;
}

/* ---- 收邮箱弹窗 ---- */
.nl-popup {
  width: min(420px, calc(100vw - 2rem));
  overflow: auto;
}
.nl-popup--image {
  width: min(760px, calc(100vw - 2rem));
}
.nl-popup[open] {
  display: grid;
  grid-template-columns: 1fr;
}
.nl-popup--image[open] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.nl-popup__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nl-popup__body {
  position: relative;
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
}
.nl-popup__close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  padding: 0.25rem 0.5rem;
  border: none;
  background: none;
  color: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.nl-popup__title {
  margin: 0 0 0.5rem;
  font-size: calc(1.5rem * var(--heading-scale));
}
.nl-popup__text {
  margin-bottom: 1rem;
}
.nl-popup .newsletter__form {
  flex-direction: column;
}
.nl-popup .newsletter__form input[type='email'] {
  width: 100%;
}
.nl-popup--preview {
  position: fixed;
  inset: auto 1rem 1rem auto;
  margin: 0;
  z-index: 50;
}
@media (max-width: 640px) {
  .nl-popup--image {
    width: min(420px, calc(100vw - 2rem));
  }
  .nl-popup--image[open] {
    grid-template-columns: 1fr;
  }
  .nl-popup__media {
    display: none;
  }
}
/* 订阅成功后隐藏表单(.newsletter__form 的 display:flex 会盖过 hidden) */
.newsletter__form[hidden] {
  display: none;
}

/* ==================== 图片卡片 promo-tiles ==================== */
.tiles {
  display: grid;
  gap: 1rem;
}
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.tile__media {
  overflow: hidden;
  border-radius: var(--card-radius);
}
.tiles--h-small .tile__media { aspect-ratio: 4 / 3; }
.tiles--h-medium .tile__media { aspect-ratio: 1; }
.tiles--h-large .tile__media { aspect-ratio: 3 / 4; }
.tiles--2.tiles--h-small .tile__media { aspect-ratio: 16 / 9; }
.tiles--2.tiles--h-medium .tile__media { aspect-ratio: 4 / 3; }
.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tile:hover .tile__media img {
  transform: scale(1.03);
}
.tile__heading {
  margin: 0 0 0.35rem;
  font-size: calc(1.35rem * var(--heading-scale));
}
.tile__link {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.tile__content .eyebrow { margin-bottom: 0.25rem; }
.tiles--below .tile__content { padding-top: 0.9rem; }
.tiles--overlay .tile__content,
.tiles--center .tile__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: var(--card-radius);
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 60%);
}
.tiles--center .tile__content {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
}
@media (max-width: 749px) {
  .tiles--3, .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--2 { grid-template-columns: 1fr; }
  .tiles--3.tiles--below { grid-template-columns: 1fr; }
}

/* ==================== 步骤说明 steps ==================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.steps--row {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}
.step__img {
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: var(--card-radius);
  aspect-ratio: 4 / 3;
}
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-button-text);
  font-weight: 600;
}
.scheme-accent .step__num {
  background: var(--color-text);
  color: var(--color-bg);
}
.step__title {
  margin: 0 0 0.4rem;
  font-size: calc(1.15rem * var(--heading-scale));
}
.steps--list {
  max-width: 720px;
  margin: 0 auto;
  gap: 0;
}
.steps--list .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.steps--list .step:last-child { border-bottom: 0; }
.steps--list .step__img { display: none; }
.steps--list .step__num { margin: 0; }

/* ==================== 分类切换商品 collection-tabs ==================== */
.ctabs__list {
  justify-content: center;
}
.ctabs__all {
  margin: 1.75rem 0 0;
  text-align: center;
}

/* ==================== 联系方式 contact-info ==================== */
.contact {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  max-width: 760px;
  margin: 0 auto;
}
.contact--map {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: stretch;
}
.contact__info .section__heading { margin-bottom: 0.75rem; }
.contact__list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.contact__list dt {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}
.contact__list dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.contact__map {
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--card-radius);
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}
@media (max-width: 749px) {
  .contact--map { grid-template-columns: 1fr; }
}

/* ==================== 人物介绍 team ==================== */
.people { gap: 2rem; }
.person { margin: 0; }
.person__img {
  overflow: hidden;
  margin-bottom: 0.9rem;
  border-radius: var(--card-radius);
  aspect-ratio: 4 / 5;
}
.person__img img { width: 100%; height: 100%; object-fit: cover; }
.person__name { display: block; font-size: 1.05rem; }
.person__role { display: block; opacity: 0.7; font-size: 0.92rem; }
.person__text { margin-top: 0.6rem; }
.people--grid .person { text-align: center; }
.people--feature .person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.people--feature .person__img { margin: 0; aspect-ratio: 1; }
.people--feature .person__name { font-size: calc(1.6rem * var(--heading-scale)); font-family: var(--font-heading); }
.people--feature .person__text { font-size: 1.1rem; margin-top: 1rem; }
@media (max-width: 749px) {
  .people--feature .person { grid-template-columns: 1fr; }
}

/* ==================== 大字引言 quote ==================== */
.quote { margin: 0; }
.quote--center { text-align: center; }
.quote__img { display: inline-block; width: 72px; margin-bottom: 1.25rem; }
.quote__img img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.quote__text {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.35;
}
.quote__text--medium { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
.quote__text--large { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
.quote__author { margin-top: 1.25rem; }
.quote__author span { display: block; opacity: 0.7; font-size: 0.92rem; }

/* ==================== 空白间隔 spacer ==================== */
.spacer { display: flex; align-items: center; }
.spacer--small { min-height: 1.5rem; }
.spacer--medium { min-height: 3.5rem; }
.spacer--large { min-height: 6rem; }
.spacer__line {
  flex: 1;
  border: 0;
  border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  margin: 0 auto;
  padding: 0;
  width: calc(100% - 2.5rem);
}

/* ==================== 大图 + 商品 collection-banner ==================== */
.cbanner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}
.cbanner--right .cbanner__media { order: 2; }
.cbanner__media {
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--card-radius);
  color: #fff;
  text-decoration: none;
}
.cbanner__media > img,
.cbanner__media > .placeholder,
.cbanner__media picture,
.cbanner__media picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cbanner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 60%);
}
.cbanner__heading {
  margin: 0 0 1rem;
  color: #fff;
  font-size: calc(1.8rem * var(--heading-scale));
}
.cbanner__products { align-content: start; gap: 1rem; }
@media (max-width: 749px) {
  .cbanner { grid-template-columns: 1fr; }
  .cbanner--right .cbanner__media { order: 0; }
  .cbanner__media { min-height: 300px; }
}

/* ==================== 社媒图片墙 social-gallery ==================== */
.social-wall {
  display: grid;
  gap: 0.5rem;
}
.social-wall--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.social-wall--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.social-wall--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.social-wall__item {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: calc(var(--card-radius) / 2);
}
.social-wall__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
a.social-wall__item:hover img { opacity: 0.85; }
.social-wall__handle { margin: 0; font-weight: 500; }
.section__head--center:has(.link-arrow, .social-wall__handle) {
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
@media (max-width: 749px) {
  .social-wall--4, .social-wall--5, .social-wall--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==================== 图片 + 卖点清单 image-features ==================== */
.ifeat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
}
.ifeat--right .ifeat__media { order: 2; }
.ifeat__media {
  overflow: hidden;
  border-radius: var(--card-radius);
  aspect-ratio: 4 / 5;
}
.ifeat__media img { width: 100%; height: 100%; object-fit: cover; }
.ifeat__list {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.ifeat__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.ifeat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg));
  color: var(--color-accent);
}
.scheme-dark .ifeat__icon,
.scheme-accent .ifeat__icon {
  background: color-mix(in srgb, currentColor 14%, transparent);
  color: inherit;
}
.ifeat__icon .icon { width: 1.25rem; height: 1.25rem; }
.ifeat__item p { margin: 0.25rem 0 0; opacity: 0.8; }
@media (max-width: 749px) {
  .ifeat { grid-template-columns: 1fr; }
  .ifeat--right .ifeat__media { order: 0; }
  .ifeat__media { aspect-ratio: 4 / 3; }
}
