/* =========================================================
   gx-shop.css — 系列产品陈列购买页
   ========================================================= */
.gxshop, .gxshop * { box-sizing: border-box; }
.gxshop {
  --bg: #0b0b0b;
  --ink: #fff;
  --muted: rgba(255,255,255,.56);
  --line: rgba(255,255,255,.14);
  --card: #141317;
  --cardhover: #1b1a20;
  --imgbg: #f5f4f1;
  --bar: rgba(11,11,11,.84);
  --accent: #c6f24e;
  --accent-ink: #0b0b0b;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: clip;
}
.gxshop.is-light {
  --bg: #f4f1ea;
  --ink: #16130f;
  --muted: rgba(22,19,15,.55);
  --line: rgba(22,19,15,.14);
  --card: #ffffff;
  --cardhover: #fffdf9;
  --imgbg: #fbfaf7;
  --bar: rgba(244,241,234,.9);
}
.gxshop img { display: block; max-width: 100%; }
.gxshop a { text-decoration: none; color: inherit; }

.sp-wrap { width: min(1320px, 94vw); margin: 0 auto; }

/* ---------- HERO ---------- */
.sp-hero { position: relative; overflow: hidden; }
.sp-hero--a, .sp-hero--c { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); align-items: center; gap: clamp(20px, 3vw, 48px); min-height: clamp(520px, 76vh, 760px); padding: clamp(36px, 6vh, 70px) 0 clamp(30px, 5vh, 56px); }
.sp-hero--b { display: flex; align-items: flex-end; min-height: clamp(520px, 82vh, 820px); }
.sp-hero__bg { position: absolute; inset: 0; margin: 0; z-index: 0; }
.sp-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; animation: sp-zoom 28s ease-in-out infinite alternate; }
@keyframes sp-zoom { from { transform: scale(1.01); } to { transform: scale(1.07); } }
.sp-hero--a .sp-hero__bg, .sp-hero--c .sp-hero__bg { display: none; }
.sp-hero__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, var(--bg) 0%, rgba(11,11,11,.55) 22%, rgba(11,11,11,.12) 52%, rgba(11,11,11,.42) 100%); }
.gxshop.is-light .sp-hero__veil { background: linear-gradient(0deg, var(--bg) 0%, rgba(244,241,234,.62) 24%, rgba(244,241,234,.08) 54%, rgba(244,241,234,.5) 100%); }

.sp-hero__in { position: relative; z-index: 2; }
/* 全宽页面下，hero 内容与 .sp-wrap(1320) 对齐 */
.gxshop-body .sp-hero--a,
.gxshop-body .sp-hero--c { padding-left: max(24px, calc((100vw - 1320px) / 2)); padding-right: max(24px, calc((100vw - 1320px) / 2)); }
.gxshop-body .sp-hero--b .sp-hero__in { padding-left: max(24px, calc((100vw - 1320px) / 2)); padding-right: max(24px, calc((100vw - 1320px) / 2)); }
.sp-hero--b .sp-hero__in { width: 100%; padding-bottom: clamp(34px, 6vh, 68px); }
.sp-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.sp-hero__eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.sp-hero h1 { margin: 0; font-size: clamp(52px, 8.4vw, 132px); line-height: .86; letter-spacing: -.045em; font-weight: 800; text-transform: uppercase; }
.sp-hero--b h1 { font-size: clamp(58px, 12vw, 200px); line-height: .8; }
.sp-hero h1 span { display: block; overflow: hidden; }
.sp-hero h1 i { display: block; font-style: normal; transform: translateY(110%); animation: sp-up 1.05s cubic-bezier(.16,.84,.24,1) forwards; }
.sp-hero h1 span:nth-child(2) i { animation-delay: .1s; }
@keyframes sp-up { to { transform: none; } }
.sp-hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.gxshop.is-light .sp-hero h1 em { -webkit-text-stroke: 1.5px var(--ink); }

.sp-hero__sub { margin: 22px 0 0; max-width: 420px; font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.sp-stats { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 44px); margin: 30px 0 0; }
.sp-stats div { min-width: 78px; }
.sp-stats b { display: block; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.sp-stats span { display: block; margin-top: 8px; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.sp-hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, color .3s, border-color .3s; font-family: inherit; }
.sp-btn:hover { transform: translateY(-2px); }
.sp-btn--solid { background: var(--accent); color: var(--accent-ink); }
.sp-btn--ghost { border-color: var(--line); color: var(--ink); }
.sp-btn--ghost:hover { border-color: var(--ink); }

.sp-hero__fig { position: relative; z-index: 2; margin: 0; border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: 0 40px 80px rgba(0,0,0,.28); }
.sp-hero__fig img { width: 100%; height: auto; display: block; }
.sp-hero--c .sp-hero__fig { border-radius: 8px; }

/* ---------- TOOLBAR ---------- */
.sp-bar { position: sticky; top: var(--g2-hd, 0px); z-index: 60; background: var(--bar); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.sp-bar__in { display: flex; align-items: center; gap: 18px; padding: 14px 0; flex-wrap: wrap; }
.sp-bar__count { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sp-bar__count b { color: var(--ink); }
.sp-search { position: relative; flex: 1 1 220px; min-width: 160px; }
.sp-search input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 26px 8px 0; font-size: 13px; color: var(--ink); font-family: inherit; letter-spacing: .04em; }
.sp-search input::placeholder { color: var(--muted); }
.sp-search input:focus { outline: none; border-color: var(--accent); }
.sp-search svg { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; stroke: var(--muted); fill: none; stroke-width: 2; }
.sp-sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-sorts button { appearance: none; cursor: pointer; font-family: inherit; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; transition: .25s; }
.sp-sorts button:hover { color: var(--ink); border-color: var(--ink); }
.sp-sorts button.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- GRID ---------- */
.sp-grid-wrap { padding: clamp(30px, 5vh, 56px) 0 clamp(50px, 8vh, 90px); }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.sp-card { position: relative; background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid transparent; transition: transform .4s cubic-bezier(.2,.8,.2,1), background .35s, border-color .35s, box-shadow .4s; opacity: 0; transform: translateY(26px); }
.sp-card.is-in { opacity: 1; transform: none; }
.sp-card:hover { background: var(--cardhover); border-color: var(--line); transform: translateY(-6px); box-shadow: 0 24px 44px rgba(0,0,0,.22); }
.gxshop.is-light .sp-card:hover { box-shadow: 0 22px 40px rgba(22,19,15,.1); }
.sp-card__media { display: block; position: relative; aspect-ratio: 1 / 1; background: var(--imgbg); overflow: hidden; }
.sp-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.sp-card:hover .sp-card__media img { transform: scale(1.05); }
.sp-card__body { padding: 14px 14px 18px; }
.sp-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.35; text-transform: uppercase; min-height: 34px; }
.sp-card__price { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.sp-card__price b { color: var(--ink); font-weight: 700; }
.sp-add { position: absolute; right: 12px; bottom: 52px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .3s, background .3s, color .3s; font-family: inherit; z-index: 3; }
.sp-add:hover { transform: scale(1.08); }
.sp-add.is-busy { opacity: .6; pointer-events: none; }
.sp-add.is-done { background: #1faa59; color: #fff; }
.sp-empty { display: none; padding: 70px 0; text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.sp-empty.is-on { display: block; }

/* ---------- FOOT ---------- */
.sp-foot { border-top: 1px solid var(--line); padding: clamp(40px, 6vh, 70px) 0 clamp(56px, 9vh, 100px); }
.sp-foot__in { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-end; justify-content: space-between; }
.sp-foot h2 { margin: 0; font-size: clamp(26px, 3.4vw, 48px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; font-weight: 800; }
.sp-foot p { margin: 14px 0 0; max-width: 460px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.sp-notes { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.sp-notes span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- TOAST ---------- */
.sp-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px); z-index: 9999; display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 999px; background: #14131a; color: #fff; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 18px 40px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1); }
.sp-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sp-toast a { color: #c6f24e; border-bottom: 1px solid rgba(198,242,78,.5); padding-bottom: 2px; }

/* ---------- INDEX ---------- */
.sp-hub { padding: clamp(40px, 7vh, 80px) 0 clamp(60px, 10vh, 110px); }
.sp-hub h1 { margin: 0 0 10px; font-size: clamp(40px, 7vw, 96px); line-height: .9; letter-spacing: -.045em; text-transform: uppercase; font-weight: 800; }
.sp-hub p { margin: 0 0 40px; color: var(--muted); font-size: 14px; }
.sp-hub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sp-hub__card { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 18px; overflow: hidden; background: #141317; }
.sp-hub__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.sp-hub__card:hover img { transform: scale(1.06); }
.sp-hub__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.24) 48%, rgba(0,0,0,0) 78%); }
.sp-hub__txt { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; color: #fff; }
.sp-hub__txt b { display: block; font-size: 22px; letter-spacing: -.02em; text-transform: uppercase; line-height: 1; }
.sp-hub__txt span { display: block; margin-top: 9px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.62); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .sp-hero--a, .sp-hero--c { grid-template-columns: 1fr; min-height: 0; padding: 26px 0 10px; }
  .sp-hero--c .sp-hero__fig { order: -1; }
  .sp-hero__fig { width: 100%; }
  .sp-hero h1 { font-size: clamp(46px, 13vw, 90px); }
  .sp-bar__in { gap: 12px; }
  .sp-sorts { width: 100%; }
  /* b 变体：手机改上下结构，文字在上、整图在下，不再叠字 */
  .sp-hero--b { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .sp-hero--b .sp-hero__bg { position: static; order: 2; margin: 26px 0 0; }
  .sp-hero--b .sp-hero__bg img { width: 100%; height: auto; object-fit: contain; animation: none; }
  .sp-hero--b .sp-hero__veil { display: none; }
  .sp-hero--b .sp-hero__in { order: 1; padding-bottom: 0; }
  .gxshop-body .sp-hero--b { padding-top: 26px; padding-bottom: 10px; }
}
@media (max-width: 600px) {
  .sp-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .sp-card { border-radius: 12px; }
  .sp-card__body { padding: 11px 11px 14px; }
  .sp-card__name { font-size: 11px; min-height: 30px; }
  .sp-add { width: 32px; height: 32px; right: 10px; bottom: 44px; font-size: 16px; }
  .sp-hero__fig { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-hero__bg img { animation: none !important; }
  .sp-hero h1 i { transform: none !important; animation: none !important; }
  .sp-card { opacity: 1 !important; transform: none !important; }
}

/* ---------- v1.1.4 全屏 hero ---------- */
.sp-hero--b { min-height: calc(100svh - 140px); }
.sp-hero--b .sp-hero__bg img { object-position: var(--hero-pos, 50% 50%); }

/* 深色底图 hero：左深右透 + 顶部与导航衔接 + 底部收边，文字全白 */
.sp-hero--onDark .sp-hero__veil,
.gxshop.is-light .sp-hero--onDark .sp-hero__veil {
  background:
    linear-gradient(180deg, rgba(7,8,11,.52) 0%, rgba(7,8,11,0) 16%),
    linear-gradient(0deg, #07080b 0%, rgba(7,8,11,.62) 12%, rgba(7,8,11,0) 38%),
    linear-gradient(90deg, rgba(7,8,11,.96) 0%, rgba(7,8,11,.90) 22%, rgba(7,8,11,.55) 38%, rgba(7,8,11,.10) 60%, rgba(7,8,11,.03) 100%);
}
.sp-hero--onDark .sp-hero__eyebrow { color: rgba(255,255,255,.66); }
.sp-hero--onDark h1 { color: #fff; }
.sp-hero--onDark h1 em,
.gxshop.is-light .sp-hero--onDark h1 em { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.92); }
.sp-hero--onDark .sp-hero__sub { color: rgba(255,255,255,.74); }
.sp-hero--onDark .sp-stats b { color: #fff; }
.sp-hero--onDark .sp-stats span { color: rgba(255,255,255,.6); }
.sp-hero--onDark .sp-btn--ghost { border-color: rgba(255,255,255,.34); color: #fff; }
.sp-hero--onDark .sp-btn--ghost:hover { border-color: #fff; }

/* 浅色底图 hero（ALIBARBAR）：左侧提亮保黑字可读，右侧留出产品 */
.gxshop.is-light .sp-hero--b:not(.sp-hero--onDark) .sp-hero__veil {
  background:
    linear-gradient(180deg, rgba(244,241,234,.45) 0%, rgba(244,241,234,0) 16%),
    linear-gradient(0deg, var(--bg) 0%, rgba(244,241,234,.55) 12%, rgba(244,241,234,0) 38%),
    linear-gradient(90deg, rgba(244,241,234,.90) 0%, rgba(244,241,234,.78) 25%, rgba(244,241,234,.32) 50%, rgba(244,241,234,0) 74%, rgba(244,241,234,.05) 100%);
}

@media (max-width: 900px) {
  .sp-hero--b { min-height: 0; }
  .sp-hero--b .sp-hero__bg img { object-position: 50% 50%; }
  /* 手机端深色 hero：文字区铺深底，避免白字落在浅色页背景上看不见 */
  .sp-hero--onDark { background: #07080b; padding-bottom: 26px; }
  .sp-hero--b.sp-hero--onDark .sp-hero__bg { margin-top: 0; }
}

@media (max-width: 900px) {
  .sp-hero--onDark .sp-hero h1 em,
  .gxshop.is-light .sp-hero--onDark h1 em { -webkit-text-stroke-color: rgba(255,255,255,.92); }
}

