/* =========================================================
   和识商店 · 参考 Apple Store 版式
   仅在 store.html 中加载
   ========================================================= */

:root {
  --store-w: 1180px;
  --store-pad: clamp(20px, 4vw, 40px);
  --store-sec: clamp(64px, 8vw, 108px);
}

html.store-html { scroll-padding-top: 112px; }

.store-page {
  padding-top: 48px;
  background: #fff;
}

.store-wrap {
  width: min(100% - var(--store-pad) * 2, var(--store-w));
  margin-inline: auto;
}

/* 商店页导航固定白底 */
.nav.nav--static {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(0, 0, 0, .08);
  color: var(--ink);
}
.nav.nav--static.is-solid {
  background: rgba(255, 255, 255, .92);
}
.nav-links a[aria-current="page"] {
  opacity: 1;
  font-weight: 500;
}

/* ---------- 商店二级导航 ---------- */
.store-subnav {
  position: sticky;
  top: 48px;
  z-index: 90;
  background: rgba(245, 245, 247, .86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: box-shadow .3s var(--ease);
}
.store-subnav.is-stuck {
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.store-subnav-inner {
  width: min(100% - 32px, var(--store-w));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  height: 52px;
}

.store-subnav-title {
  flex: none;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .01em;
}

.store-subnav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.store-subnav-links::-webkit-scrollbar { display: none; }
.store-subnav-links a {
  padding: 6px 0;
  transition: color .2s;
}
.store-subnav-links a:hover { color: var(--ink); }
.store-subnav-links a.is-active {
  color: var(--ink);
  font-weight: 500;
}

.store-subnav-help {
  flex: none;
  margin-left: auto;
  font-size: 12px;
  color: var(--blue);
  white-space: nowrap;
}
.store-subnav-help span { margin-left: 2px; }
.store-subnav-help:hover { text-decoration: underline; }

/* 区块小标签（首屏不再使用，定制区块沿用） */
.store-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--blue);
  text-transform: uppercase;
}

/* ---------- 首屏 ---------- */
.store-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 66px) 0 clamp(36px, 5vw, 56px);
  text-align: left;
  background: #fff;
}
.store-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  background: radial-gradient(50% 60% at 50% 0%, rgba(0, 113, 227, .07), rgba(245, 245, 247, 0) 70%);
  pointer-events: none;
}
.store-hero .store-wrap { position: relative; }

/* 标题居左，说明与入口靠右（参考 Apple Store 首屏） */
.store-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 72px);
}

.store-hero h1 {
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.05;
}

.store-hero-aside {
  flex: 0 1 480px;
  padding-bottom: 4px;
  text-align: right;
}

.store-hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  color: var(--ink);
}

.store-hero-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 14px;
  font-size: clamp(15px, 1.3vw, 17px);
}
.store-hero-links a { color: var(--blue); }
.store-hero-links a:hover { text-decoration: underline; }
.store-hero-links .chev { margin-left: 3px; }

/* 分类快捷入口 */
.store-cats {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 26px);
  margin-top: clamp(38px, 5vw, 58px);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.store-cats::-webkit-scrollbar { display: none; }
.store-cats li { flex: none; }

.store-cat {
  display: block;
  width: clamp(104px, 10vw, 138px);
  text-align: center;
}
.store-cat-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--bg-alt);
  overflow: hidden;
  transition: transform .4s var(--ease-out-strong), box-shadow .4s var(--ease-out-strong);
}
.store-cat-media img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.store-cat-name {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
}
.store-cat:hover .store-cat-media {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .1);
}

/* ---------- 通用区块 ---------- */
.store-section {
  padding: var(--store-sec) 0;
}
.store-section--alt { background: var(--bg-alt); }
.store-section--custom { background: var(--bg-alt); }

.store-sec-head {
  margin-bottom: clamp(28px, 3.6vw, 46px);
}
.store-sec-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.store-sec-head p {
  margin-top: 12px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-2);
  max-width: 620px;
}

.store-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- 新品横向轮播（全宽出血，参考 Apple Store） ---------- */
.store-rail {
  position: relative;
}

.store-track {
  display: flex;
  gap: clamp(18px, 1.8vw, 26px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* 左右不留边界：卡片直接溢出到视口两侧，首卡与内容左缘对齐 */
  padding-block: 8px 30px;
  padding-inline: max(var(--store-pad), calc((100% - var(--store-w)) / 2));
  scroll-padding-inline: max(var(--store-pad), calc((100% - var(--store-w)) / 2));
}
.store-track::-webkit-scrollbar { display: none; }
.store-track:focus-visible { outline-offset: 4px; }

.product-card {
  position: relative;
  flex: 0 0 clamp(300px, 31vw, 430px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .05);
  transition: transform .45s var(--ease-out-strong), box-shadow .45s var(--ease-out-strong);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .1);
}

.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform .7s var(--ease-out-strong);
}
.product-card:hover .product-media img { transform: scale(1.05); }

.product-tag {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 113, 227, .1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
}

.product-card h3 {
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.product-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.product-price {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
}
.product-link {
  margin-top: 12px;
  font-size: 14px;
  color: var(--blue);
}
.product-link span { margin-left: 3px; }
.product-card:hover .product-link { text-decoration: underline; }

/* 轮播箭头：贴在视口两侧，压在溢出的卡片上 */
.store-arrow {
  position: absolute;
  top: 36%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 29, 31, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #f5f5f7;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
  transform: translateY(-50%);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .25s;
}
.store-arrow:hover { background: rgba(29, 29, 31, .82); transform: translateY(-50%) scale(1.06); }
.store-arrow:disabled { opacity: 0; visibility: hidden; }
.store-arrow--prev { left: clamp(10px, 1.4vw, 24px); }
.store-arrow--next { right: clamp(10px, 1.4vw, 24px); }

/* ---------- 精选推荐 ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: clamp(430px, 44vw, 520px);
  padding: clamp(36px, 4vw, 52px) clamp(24px, 3vw, 44px) 0;
  border-radius: 26px;
  background: var(--bg-alt);
  overflow: hidden;
  transition: transform .5s var(--ease-out-strong), box-shadow .5s var(--ease-out-strong);
}
.promo:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .1);
}

.promo-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.promo h3 {
  margin-top: 12px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.promo-sub {
  margin-top: 12px;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--ink-2);
  max-width: 320px;
}
.promo-link {
  margin-top: 16px;
  font-size: 14px;
  color: var(--blue);
}
.promo-link span { margin-left: 3px; }
.promo:hover .promo-link { text-decoration: underline; }

.promo-img {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 52%;
  max-height: 52%;
  object-fit: contain;
  transform: translateX(-50%);
  mix-blend-mode: multiply;
  transition: transform .7s var(--ease-out-strong);
}
.promo:hover .promo-img { transform: translateX(-50%) scale(1.04); }
.promo-img--pan { width: 62%; max-height: 48%; bottom: 2%; }

/* ---------- 选购帮助 ---------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.help-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 38px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
}
.help-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(0, 113, 227, .08);
  color: var(--blue);
}
.help-icon svg { width: 24px; height: 24px; }
.help-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.help-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.help-card a {
  margin-top: auto;
  padding-top: 22px;
  font-size: 14px;
  color: var(--blue);
}
.help-card a span { margin-left: 3px; }
.help-card a:hover { text-decoration: underline; }

/* ---------- 选购理由 ---------- */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reason {
  padding: clamp(26px, 2.8vw, 34px);
  border-radius: 22px;
  background: var(--bg-alt);
}
.reason-icon {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
}
.reason-icon svg { width: 26px; height: 26px; }
.reason h3 {
  font-size: 18px;
  font-weight: 600;
}
.reason p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- 定制 CTA ---------- */
.store-cta {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(38px, 5vw, 68px);
  border-radius: 32px;
  background: #000;
  color: #f5f5f7;
  overflow: hidden;
}
.store-cta .store-eyebrow { color: #2997ff; }
.store-cta h2 {
  margin-top: 14px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.01em;
}
.store-cta-sub {
  margin-top: 18px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: #a1a1a6;
  max-width: 440px;
}
.store-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 500;
  transition: background .25s, transform .25s;
}
.store-btn:hover { background: #e8e8ed; transform: translateY(-1px); }
.store-btn--ghost {
  background: transparent;
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, .38);
}
.store-btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .6);
}

.store-cta-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
}
.store-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 进场 ---------- */
html.js .store-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--ease-out-strong), transform .75s var(--ease-out-strong);
}
html.js .store-reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .store-arrow--prev { left: 10px; }
  .store-arrow--next { right: 10px; }
}

@media (max-width: 900px) {
  .store-hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .store-hero-aside {
    flex: none;
    padding-bottom: 0;
    text-align: left;
  }
  .store-hero-links { align-items: flex-start; }

  .promo-grid { grid-template-columns: 1fr; }
  .promo { min-height: 440px; }
  .promo-img { width: 42%; max-height: 54%; }
  .promo-img--pan { width: 52%; }

  .help-grid,
  .reason-grid { grid-template-columns: 1fr 1fr; }

  .store-cta { grid-template-columns: 1fr; }
  .store-cta-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 700px) {
  html.store-html { scroll-padding-top: 104px; }

  .store-subnav-inner {
    gap: 18px;
    height: 48px;
    width: calc(100% - 32px);
  }
  .store-subnav-title { font-size: 19px; }
  .store-subnav-links { gap: 20px; font-size: 12px; }
  .store-subnav-help { display: none; }

  .store-hero { padding-top: 40px; }
  .store-hero h1 { font-size: 38px; }
  .store-cats { justify-content: flex-start; margin-inline: calc(var(--store-pad) * -1); padding-inline: var(--store-pad); }
  .store-cat { width: 104px; }

  .product-card { flex-basis: 78%; padding: 20px 20px 22px; border-radius: 20px; }
  .store-arrow { display: none; }

  .help-grid,
  .reason-grid { grid-template-columns: 1fr; }

  .promo { min-height: 400px; padding-inline: 24px; }
  .promo-img { width: 56%; }

  .store-cta { border-radius: 26px; padding: 34px 24px; }
  .store-cta-actions { flex-direction: column; align-items: stretch; }
  .store-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .store-reveal { opacity: 1; transform: none; transition: none; }
  .product-card,
  .promo,
  .store-cat-media { transition: none; }
}
