/* ============================================================
   样品演示店 — 共享店面结构（各店通过 CSS 变量换肤）
   ============================================================ */

/* —— 横向溢出兜底：100vw 出血图在有纵向滚动条的环境比可视区宽 15px，clip 掉避免横向滚动 —— */
html { overflow-x: clip; }

:root {
  --st-bg: #F5F3EF;
  --st-surface: #FFFFFF;
  --st-ink: #17140F;
  --st-text: #6A675F;
  --st-muted: #8B867C;
  --st-accent: #8C7B68;
  --st-line: rgba(23, 20, 15, 0.12);
  --st-btn-bg: #17140F;
  --st-btn-ink: #F5F3EF;
  --st-price: #17140F;
  --st-hero-ink: #F7F4EE;
  --st-hero-btn-bg: #F4F1EA;
  --st-hero-btn-ink: #17140F;
  --st-display: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --st-body: "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --st-container: 1180px;
  --st-pad-x: 40px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   统一动效层（灵动化二期）：reveal 子元素错落入场
   ============================================================ */
.js-reveal .reveal.is-visible > .container > *,
.js-reveal .reveal.is-visible > *:not(.container):not(.wrap) {
  animation: stRise 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  animation-delay: var(--d, 0ms);
}

@keyframes stRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   首饰店截图装裱（深色衬底 + 发丝线边框 + 柔和投影）
   ============================================================ */
.shot-mat {
  background: #16120D;
  border: 1px solid rgba(140, 123, 104, 0.28);
  box-shadow:
    0 24px 48px rgba(43, 36, 28, 0.16),
    inset 0 1px 0 rgba(242, 236, 224, 0.08);
  transition: border-color 0.3s ease-out, box-shadow 0.3s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .shot-mat:hover {
    border-color: rgba(140, 123, 104, 0.5);
    box-shadow:
      0 30px 56px rgba(43, 36, 28, 0.22),
      inset 0 1px 0 rgba(242, 236, 224, 0.1);
  }
}

.shot-mat img {
  border-radius: 6px;
}

/* demo-strip：底缘流光细线 */
.demo-strip {
  position: relative;
}

.demo-strip::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--st-accent, #8C7B68) 45%, transparent) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: stripFlow 7s ease-in-out infinite alternate;
}

@keyframes stripFlow {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

/* 页脚服务链接 hover 反馈 */
footer a.svc {
  transition: color 0.28s ease-out;
}

footer a.svc:hover {
  color: var(--st-accent, #8C7B68);
}

/* 触屏按压反馈 */
@media (hover: none) and (pointer: coarse) {
  .st-cta:active {
    opacity: 0.78;
    transition: opacity 0.12s ease-out;
  }

  .store-nav a:active,
  .store-icons a:active {
    opacity: 0.55;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--st-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.3px;
  background: var(--st-bg);
  color: var(--st-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--st-container);
  margin: 0 auto;
  padding-left: var(--st-pad-x);
  padding-right: var(--st-pad-x);
  width: 100%;
}

ul, ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  font-size: 0; /* 图片未加载/失败时不裸显 alt 文字 */
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  color: var(--st-ink);
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
}

.st-display {
  font-family: var(--st-display);
}

/* ---------- 演示提示条 ---------- */

.demo-strip {
  background: var(--st-ink);
  color: var(--st-bg);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

.demo-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.demo-strip .strip-left {
  opacity: 0.72;
}

.demo-strip a {
  opacity: 0.72;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.28s ease-out;
}

/* ---------- 店面顶栏 ---------- */

.store-header {
  border-bottom: 1px solid var(--st-line);
  background: var(--st-bg);
}

.store-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.store-logo {
  font-family: var(--st-display);
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--st-ink);
  white-space: nowrap;
}

.store-logo small {
  display: block;
  font-family: var(--st-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-top: 4px;
}

.store-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 34px);
}

.store-nav a {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-text);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all 0.28s ease-out;
}

.cart-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--st-ink);
  white-space: nowrap;
}

.store-icons {
  display: flex;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--st-text);
  white-space: nowrap;
}

/* ---------- 首屏 ---------- */

.hero-full {
  position: relative;
  min-height: clamp(440px, 46.25vw, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-full img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-full::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(16, 14, 10, 0) 30%, rgba(16, 14, 10, 0.62) 100%);
}

.hero-full .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 120px;
  padding-bottom: clamp(56px, 8vw, 96px);
  color: var(--st-hero-ink);
}

.hero-full h1 {
  color: var(--st-hero-ink);
  font-family: var(--st-display);
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-top: 18px;
}

.hero-full .hero-sub {
  max-width: 560px;
  margin-top: 18px;
  font-size: 15.5px;
  color: rgba(247, 244, 238, 0.82);
}

.hero-center {
  text-align: center;
  padding-top: clamp(88px, 12vw, 150px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.hero-center h1 {
  font-family: var(--st-display);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.2;
  margin-top: 20px;
}

.hero-center .hero-sub {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 15.5px;
}

.hero-band {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(300px, 32.5vw, 560px);
  overflow: hidden;
}

.hero-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band-cap {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(16, 14, 10, 0.5);
  border-radius: 999px;
  padding: 4px 12px;
}

.hero-split {
  padding-top: clamp(56px, 7vw, 104px);
  padding-bottom: clamp(56px, 7vw, 104px);
}

.hero-split .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.hero-split h1 {
  font-family: var(--st-display);
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.2;
  margin-top: 20px;
}

.hero-split .hero-sub {
  max-width: 480px;
  margin-top: 18px;
  font-size: 15.5px;
}

.hero-split .img-hero {
  aspect-ratio: 16 / 12;
  min-height: 180px;
  border-radius: 18px;
  overflow: hidden;
}

.hero-split .img-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-kicker {
  display: block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--st-accent);
}

.st-cta {
  display: inline-block;
  margin-top: 36px;
  background: var(--st-btn-bg);
  color: var(--st-btn-ink);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 17px 40px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.28s ease-out;
}

.hero-full .st-cta {
  background: var(--st-hero-btn-bg);
  color: var(--st-hero-btn-ink);
}

.st-cta:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 3px;
}

.st-cta:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---------- 品牌主张条 ---------- */

.store-claims {
  border-top: 1px solid var(--st-line);
  border-bottom: 1px solid var(--st-line);
  background: var(--st-surface);
}

.store-claims .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.store-claim {
  padding: 30px 26px;
  border-left: 1px solid var(--st-line);
}

.store-claim:first-child {
  border-left: none;
}

.store-claim b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--st-ink);
  margin-bottom: 7px;
}

.store-claim span {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: var(--st-text);
}

/* ---------- 区块 ---------- */

.st-section {
  padding-top: clamp(72px, 9vw, 130px);
  padding-bottom: clamp(72px, 9vw, 130px);
}

.sec-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}

.sec-title-row h2 {
  font-family: var(--st-display);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.01em;
}

.sec-note {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--st-muted);
}

/* ---------- 商品网格 ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 2.8vw, 40px);
}

.product-card .p-media {
  aspect-ratio: 3 / 4;
  min-height: 160px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--st-surface);
}

.product-card .p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .p-name {
  font-size: 15px;
  color: var(--st-ink);
  margin-top: 18px;
}

.product-card .p-price {
  font-size: 15px;
  color: var(--st-price);
  margin-top: 3px;
}

.product-card .p-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px 10px;
  border: 1px solid var(--st-line);
  border-radius: 8px;
  background: transparent;
  color: var(--st-ink);
  font-family: var(--st-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.28s ease-out;
}

/* ---------- 品类特色模块 ---------- */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5.5vw, 88px);
  align-items: center;
}

.feature-split .f-media {
  aspect-ratio: 4 / 3;
  min-height: 140px;
  border-radius: 18px;
  overflow: hidden;
}

.feature-split .f-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-split h3 {
  font-family: var(--st-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  margin-top: 18px;
}

.feature-split .f-copy p {
  margin-top: 18px;
  font-size: 15px;
  max-width: 460px;
}

.value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--st-line);
}

.value-item .v-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--st-accent);
  margin-bottom: 8px;
}

.value-item .v-text {
  font-size: 13.5px;
  color: var(--st-text);
}

/* ---------- 店面底部（演示标注） ---------- */

.store-footer {
  border-top: 1px solid var(--st-line);
  padding-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(40px, 5vw, 56px);
}

.store-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.demo-note {
  font-size: 12px;
  line-height: 1.9;
  color: var(--st-muted);
  max-width: 620px;
}

.demo-note a {
  color: var(--st-accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.28s ease-out;
}

/* ---------- 滚动淡入 ---------- */

@media (min-width: 768px) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- hover（仅桌面 hover 设备） ---------- */

@media (hover: hover) and (pointer: fine) {
  .demo-strip a:hover,
  .demo-note a:hover {
    opacity: 1;
  }

  .store-nav a:hover {
    color: var(--st-ink);
    border-bottom-color: var(--st-accent);
  }

  .st-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  }

  .product-card .p-media img {
    transition: transform 0.4s ease-out;
  }

  .product-card:hover .p-media img {
    transform: scale(1.04);
  }

  .product-card .p-btn:hover {
    background: var(--st-btn-bg);
    color: var(--st-btn-ink);
    border-color: var(--st-btn-bg);
  }

  .feature-split .f-media img,
  .hero-split .img-hero img {
    transition: transform 0.4s ease-out;
  }

  .feature-split .f-media:hover img,
  .hero-split .img-hero:hover img {
    transform: scale(1.04);
  }
}

/* ---------- 移动端 ---------- */

@media (max-width: 767px) {
  :root {
    --st-pad-x: 24px;
  }

  .demo-strip .container {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }

  .store-header .container {
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .store-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .store-nav a {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .cart-chip {
    padding: 7px 12px;
  }

  .store-icons {
    display: none;
  }

  .store-claims .container {
    grid-template-columns: 1fr 1fr;
  }

  .store-claim {
    padding: 22px 18px;
  }

  .store-claim:nth-child(3) {
    border-left: none;
  }

  .store-claim:nth-child(n + 3) {
    border-top: 1px solid var(--st-line);
  }

  .band-cap {
    right: 12px;
    bottom: 12px;
    font-size: 9px;
  }

  .hero-full {
    min-height: 620px;
  }

  .hero-split,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .hero-split .img-hero {
    order: -1;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .product-card .p-name {
    font-size: 13.5px;
    margin-top: 14px;
  }

  .product-card .p-price {
    font-size: 13.5px;
  }

  .product-card .p-btn {
    font-size: 11px;
    padding: 11px 6px;
  }

  .value-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sec-title-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .st-cta,
  .p-btn,
  .store-nav a,
  .demo-strip a,
  .demo-note a,
  .product-card .p-media img,
  .feature-split .f-media img,
  .hero-split .img-hero img {
    transition: none;
  }

  .js-reveal .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
