/* ============ NangsKing NEO · 设计系统(Midnight Fizz · 深夜霓虹) ============
   深色底 + 霓虹渐变 + 贴纸感卡片 + 跑马灯。
   类名与旧站保持一致(模板/JS 依赖),视觉全部重做。 */
:root {
  --bg: #0b0b13;
  --bg-soft: #11101c;
  --surface: #171626;
  --surface-2: #1e1d31;
  --ink: #f5f3ff;
  --ink-soft: #9d99b8;
  --line: #2a2942;

  --neon: #c9f24b;            /* 霓虹青柠:主行动色 */
  --neon-deep: #a8d426;
  --pink: #ff4fa3;            /* 热粉 */
  --violet: #8b5cf6;          /* 电紫 */
  --cyan: #4dd6ff;            /* 冰蓝 */

  /* 旧模板里的 SVG / 占位图引用了这两个名字,映射到新配色 */
  --blue: #4dd6ff;
  --mint: #1e4d46;

  --accent: var(--pink);
  --accent-deep: #e13a8c;
  --peach: #2b1e33;
  --cream: #14131f;

  --grad: linear-gradient(92deg, var(--pink), var(--violet) 46%, var(--cyan));
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 6px 22px rgba(0, 0, 0, 0.4);
  --glow-neon: 0 0 0 1px rgba(201, 242, 75, .5), 0 0 26px rgba(201, 242, 75, .25);
  --glow-pink: 0 0 0 1px rgba(255, 79, 163, .45), 0 0 30px rgba(255, 79, 163, .22);

  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Unbounded", "Space Grotesk", -apple-system, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -100px, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(700px 420px at -80px 30%, rgba(255, 79, 163, .12), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--neon); color: #10120a; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------------- 顶部导航(深色毛玻璃) ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 19, 0.75);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 22px;
  height: 60px; display: flex; align-items: center; gap: 24px;
}
.nav__brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: .5px; text-transform: uppercase;
}
.nav__brand > span:last-child {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__logo { font-size: 19px; }
.nav__links { display: flex; gap: 4px; margin-left: 6px; }
.nav__links a {
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  padding: 7px 13px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav__contact {
  margin-left: auto; font-size: 13px; font-weight: 700; color: #10120a;
  white-space: nowrap; padding: 9px 16px; border-radius: 999px;
  background: var(--neon); transition: box-shadow .2s, transform .15s;
}
.nav__contact:hover { box-shadow: var(--glow-neon); transform: translateY(-1px); }

/* 四个联系方式圆钮:电话 / 短信 / WhatsApp / WeChat */
.nav__contacts { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.cbtn {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  transition: transform .15s ease, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.cbtn svg { width: 17px; height: 17px; display: block; }
.cbtn:hover { transform: translateY(-2px); }
.cbtn--call:hover { background: var(--neon); color: #10120a; border-color: var(--neon); box-shadow: var(--glow-neon); }
.cbtn--sms:hover  { background: var(--cyan); color: #06202b; border-color: var(--cyan); box-shadow: 0 0 20px rgba(77, 214, 255, .4); }
.cbtn--wa:hover   { background: #25d366; color: #06240f; border-color: #25d366; box-shadow: 0 0 20px rgba(37, 211, 102, .4); }
.cbtn--wc:hover   { background: #2dc100; color: #06240f; border-color: #2dc100; box-shadow: 0 0 20px rgba(45, 193, 0, .4); }

/* WeChat 弹出二维码/ID 卡片 */
.wechat-pop {
  position: fixed; inset: 0; z-index: 1000; display: flex;
  align-items: center; justify-content: center; padding: 22px;
  background: rgba(6, 6, 12, .78); backdrop-filter: blur(6px); animation: fadein .2s ease;
}
.wechat-pop[hidden] { display: none; }
.wechat-pop__box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 30px 34px; text-align: center; max-width: 340px; animation: pop .4s cubic-bezier(.2,1.6,.4,1);
}
.wechat-pop__box h4 { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; }
.wechat-pop__id {
  display: block; margin: 16px 0 6px; font-family: var(--font-display); font-size: 24px;
  font-weight: 800; color: #2dc100; word-break: break-all;
}
.wechat-pop__box p { color: var(--ink-soft); font-size: 13px; }
/* 电话弹窗:号码用霓虹绿(微信那个是微信绿),数字等宽好认、可选中 */
.phone-pop__num {
  color: var(--neon); letter-spacing: 1px; user-select: all;
  font-variant-numeric: tabular-nums;
}
.phone-pop__copy { margin: 4px 0 14px; padding: 11px 26px; font-size: 14px; }
.nav__cart { margin-left: 14px; position: relative; font-size: 19px; }
.nav__badge {
  position: absolute; top: -8px; right: -11px;
  background: var(--pink); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  box-shadow: 0 0 12px rgba(255, 79, 163, .6);
}

/* 汉堡菜单按钮:桌面隐藏,窄屏才出现 */
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; margin-left: 10px; border: none; background: none;
  cursor: pointer; padding: 0; flex: none;
}
.nav__toggle span {
  display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 跑马灯横幅 ---------------- */
.marquee {
  overflow: hidden; white-space: nowrap; user-select: none;
  background: var(--neon); color: #10120a;
  border-bottom: 1px solid rgba(0, 0, 0, .25);
  font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
}
.marquee__track { display: inline-block; padding: 8px 0; animation: marquee 28s linear infinite; }
.marquee__track span { margin: 0 26px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- 通用按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; font-family: inherit; letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .2s, background .2s; text-align: center;
}
.btn--primary { background: var(--neon); color: #10120a; }
.btn--primary:hover { box-shadow: var(--glow-neon); transform: translateY(-2px); }
.btn--blue { background: var(--grad); color: #fff; }
.btn--blue:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); box-shadow: inset 0 0 0 0 transparent;
}
.btn--ghost:hover { border-color: var(--ink-soft); background: rgba(255, 255, 255, .05); }
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--block { width: 100%; }

.link-arrow { color: var(--cyan); font-size: 15px; font-weight: 600; }
.link-arrow:hover { text-shadow: 0 0 14px rgba(77, 214, 255, .6); }

/* ---------------- 首页 Hero(霓虹渐变 + 漂浮贴纸) ---------------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 40px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0;
  animation: blob 14s ease-in-out infinite alternate;
}
.hero::before {
  width: 480px; height: 480px; right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(139, 92, 246, .5), transparent 65%);
}
.hero::after {
  width: 420px; height: 420px; left: -140px; bottom: -180px;
  background: radial-gradient(circle, rgba(255, 79, 163, .35), transparent 65%);
  animation-delay: -7s;
}
@keyframes blob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.15); }
}
.hero__grid {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 0 22px;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px;
}
.hero__eyebrow {
  display: inline-block; color: var(--neon); font-weight: 700; letter-spacing: 2.5px;
  font-size: 12.5px; text-transform: uppercase;
  border: 1px solid rgba(201, 242, 75, .4); border-radius: 999px; padding: 7px 16px;
  background: rgba(201, 242, 75, .07);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -.5px;
  margin: 22px 0 18px; text-transform: uppercase; overflow-wrap: break-word;
}
.hero__title span {
  background: linear-gradient(100deg, var(--pink) 0%, var(--violet) 45%, var(--cyan) 85%, var(--pink) 110%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* text-shadow 不看 color(透明也照样画),用来做一层柔光衬底 */
  text-shadow: 0 0 46px rgba(139, 92, 246, .38), 0 0 22px rgba(255, 79, 163, .25);
  animation: titleShimmer 7s ease-in-out infinite;
}
@keyframes titleShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title span { animation: none; }
}
.hero__sub { font-size: 18px; color: var(--ink-soft); max-width: 460px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 右侧贴纸堆:漂浮 + 鼠标靠近会躲开 */
.hero__canvas-box { position: relative; aspect-ratio: 1/1; width: 100%; }
#creamCanvas { display: none; }
.hero__stickers { position: absolute; inset: 0; }

/* 外层负责“逃跑”位移(JS 写 transform),内层负责持续漂浮 — 互不打架 */
.sticker {
  position: absolute; will-change: transform;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.sticker__box {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-sm);
  animation: floaty 6s ease-in-out infinite;
}
.sticker svg { width: 62%; height: 62%; display: block; }
.sticker--1 { width: 168px; height: 168px; left: 8%; top: 6%; }
.sticker--1 .sticker__box { rotate: -8deg; }
.sticker--2 { width: 148px; height: 148px; right: 6%; top: 26%; }
.sticker--2 .sticker__box { rotate: 7deg; animation-delay: -2s; }
.sticker--3 { width: 128px; height: 128px; left: 22%; bottom: 8%; }
.sticker--3 .sticker__box { rotate: 4deg; animation-delay: -4s; }
.sticker--zap { width: 74px; height: 74px; font-size: 36px; right: 24%; bottom: 22%; }
.sticker--zap .sticker__box {
  rotate: -12deg; background: var(--neon); border: none; animation-delay: -1s;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.hero__badge247 {
  position: absolute; z-index: 2; right: 4%; top: 4%;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--neon);
  color: var(--neon); font-weight: 700; font-size: 13px; letter-spacing: 1px;
  padding: 9px 16px; border-radius: 999px;
  animation: pulseglow 2.4s ease-in-out infinite;
}
@keyframes pulseglow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(201,242,75,.5), 0 0 18px rgba(201,242,75,.2); }
  50% { box-shadow: 0 0 0 1px rgba(201,242,75,.8), 0 0 34px rgba(201,242,75,.45); }
}

/* ---------------- 编号式区块标题 ---------------- */
.section { padding: 76px 0; }
.sec-head {
  display: flex; align-items: baseline; gap: 20px; margin-bottom: 42px;
  border-top: 1px solid var(--line); padding-top: 26px;
}
.sec-head__no {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: var(--neon); letter-spacing: 2px; flex: none;
}
.sec-head h2 {
  font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 52px); font-weight: 800;
  letter-spacing: 0; text-transform: uppercase; line-height: 1;
}
.sec-head p { color: var(--ink-soft); font-size: 15px; margin-left: auto; max-width: 300px; text-align: right; }
/* 兼容旧类(其他页面还在用) */
.section__head { margin-bottom: 40px; }
.section__head h2 {
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase;
}
.section__head p { color: var(--ink-soft); font-size: 16.5px; margin-top: 10px; }

/* ---------------- 大横卡(Bundles:商品少而精) ---------------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.duo .card { display: grid; grid-template-columns: .9fr 1.1fr; }
.duo .card__media { aspect-ratio: auto; height: 100%; min-height: 230px; font-size: 84px; }
.duo .card__body { padding: 24px 24px 26px; justify-content: center; }
.duo .card__name { font-family: var(--font-display); font-size: 21px; text-transform: uppercase; line-height: 1.15; }
.duo .card__sub { margin: 8px 0 18px; }

/* ---------------- 类目大卡(Shop:只有 2-3 个类目) ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.cat-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: flex-end; min-height: 340px; padding: 30px;
  border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.cat-card--0 { background: radial-gradient(130% 130% at 20% 0%, #43214d 0%, #17102a 70%); }
.cat-card--1 { background: radial-gradient(130% 130% at 80% 0%, #123a4d 0%, #0e1626 70%); }
.cat-card--2 { background: radial-gradient(130% 130% at 50% 0%, #3d3013 0%, #1c150e 70%); }
.cat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 242, 75, .55);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5), 0 0 24px rgba(201, 242, 75, .12);
}
.cat-card__emoji {
  position: absolute; top: 18px; right: 6px; font-size: 150px; line-height: 1;
  rotate: 12deg; opacity: .9; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .5));
  transition: rotate .3s ease, transform .3s ease;
  width: 150px; height: 150px; display: block;
}
.cat-card__emoji svg { width: 100%; height: 100%; display: block; }
.cat-card:hover .cat-card__emoji { rotate: 2deg; transform: scale(1.06); }
.cat-card__count {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--neon); margin-bottom: 8px;
}
.cat-card__name {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.04; overflow-wrap: break-word;
}
.cat-card__go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-soft); transition: color .2s, gap .2s;
}
.cat-card:hover .cat-card__go { color: var(--neon); gap: 14px; }

/* ---------------- 行式列表(Perks / Rewards) ---------------- */
.rows { border-top: 1px solid var(--line); }
.row-item {
  display: flex; align-items: center; gap: 22px;
  padding: 24px 10px; border-bottom: 1px solid var(--line);
  transition: background .2s, padding-left .2s;
}
.row-item:hover { background: rgba(255, 255, 255, .025); padding-left: 20px; }
.row-item__icon { font-size: 34px; flex: none; width: 54px; text-align: center; }
.row-item__no {
  font-family: var(--font-display); font-size: 13px; color: var(--ink-soft);
  flex: none; width: 34px; letter-spacing: 1px;
}
.row-item__title {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  text-transform: uppercase; flex: none; min-width: 220px;
}
.row-item__caption { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.row-item__arrow { color: var(--neon); font-size: 22px; flex: none; }

/* ---------------- 商品网格 & 卡片 ---------------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.tier-grid { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; position: relative;
}
.card:hover {
  transform: translateY(-8px) rotate(-.4deg);
  border-color: rgba(201, 242, 75, .55);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5), 0 0 24px rgba(201, 242, 75, .12);
}
.card__media {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 60px; position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
/* 没有图片时的深色霓虹占位 */
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ph svg { width: 66%; height: 66%; display: block; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
.ph--soda { background: radial-gradient(120% 120% at 30% 20%, #123a4d 0%, #0e1b2e 70%); }
.ph--cake { background: radial-gradient(120% 120% at 30% 20%, #43214d 0%, #221230 70%); }
.ph--other { background: radial-gradient(120% 120% at 30% 20%, #3d3013 0%, #1c150e 70%); }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card__name { font-size: 16.5px; font-weight: 700; letter-spacing: .2px; }
.card__sub { color: var(--ink-soft); font-size: 13px; margin: 4px 0 14px; min-height: 18px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 19px; font-weight: 700; font-family: var(--font-display); }
.price__now { color: var(--neon); }
.price__old { color: var(--ink-soft); font-size: 13px; text-decoration: line-through; margin-left: 6px; font-family: var(--font); }
.tag {
  position: absolute; top: 14px; left: -6px; rotate: -6deg;
  background: var(--pink); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(255, 79, 163, .45);
}
.tag--out { background: #3a3952; box-shadow: none; }

.btn-mini {
  border: none; background: var(--neon); color: #10120a; border-radius: 12px;
  width: 36px; height: 36px; font-size: 19px; font-weight: 800; cursor: pointer; line-height: 1;
  transition: box-shadow .2s, transform .15s;
  /* 旁边的下拉框是 flex:1,默认 flex-shrink 会把这个按钮压成一条细缝,
     窄屏上根本点不中 —— 固定住,不许被挤 */
  flex: none;
}
.btn-mini:hover { box-shadow: var(--glow-neon); transform: scale(1.1) rotate(90deg); }

/* 数量+批量价下拉 */
.card__foot--tiered { flex-direction: column; align-items: stretch; gap: 12px; }
.card__foot--tiered .add-form { width: 100%; }
.add-form { display: flex; align-items: center; gap: 8px; }
/* min-width:0 是必须的 —— flex 子项默认 min-width:auto,下拉框会撑到自己
   内容的宽度不肯收缩,把旁边的 + 按钮直接顶出卡片外面(窄屏上就点不到了) */
.card__foot--tiered .qty-select { flex: 1; max-width: none; min-width: 0; }

.qty-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  height: 36px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 30px 0 13px; font-size: 13px; font-weight: 600; font-family: inherit;
  color: var(--ink); background-color: var(--surface-2); cursor: pointer; max-width: 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%23c9f24b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.qty-select:hover { border-color: var(--ink-soft); }
.qty-select:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(201, 242, 75, .18); }
.qty-select option { background: var(--surface-2); color: var(--ink); }

.detail__info .qty-select {
  height: 48px; font-size: 15px; padding: 0 42px 0 18px; max-width: none;
  background-position: right 16px center; background-size: 13px; border-radius: 999px;
}

/* ---------------- 分类切换 chips ---------------- */
.filter { display: flex; gap: 10px; justify-content: center; margin-bottom: 34px; flex-wrap: wrap; }
.chip {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip--on { background: var(--neon); color: #10120a; border-color: var(--neon); box-shadow: var(--glow-neon); }

/* ---------------- 商品详情 ---------------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 60px 0; }
.detail__media {
  aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 120px;
}
.detail__media svg { width: 60%; height: 60%; display: block; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }
.detail__title {
  font-family: var(--font-display); font-size: 40px; font-weight: 800;
  letter-spacing: 0; text-transform: uppercase; line-height: 1.12;
}
.detail__sub { font-size: 18px; color: var(--ink-soft); margin: 12px 0 22px; }
.detail__price { font-size: 32px; font-weight: 800; font-family: var(--font-display); margin-bottom: 22px; color: var(--neon); }
.detail__price .price__old { font-size: 16px; color: var(--ink-soft); }
.detail__desc { color: var(--ink-soft); margin-bottom: 28px; white-space: pre-line; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; margin-right: 14px; background: var(--surface-2);
}
.qty button { width: 42px; height: 46px; border: none; background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; }
.qty button:hover { color: var(--neon); }
.qty input {
  width: 48px; height: 46px; border: none; text-align: center; font-size: 16px;
  font-family: inherit; font-weight: 700; background: transparent; color: var(--ink);
}

/* ---------------- 购物车 & 结算 ---------------- */
.page-head { padding: 52px 0 14px; }
.page-head h1 {
  font-family: var(--font-display); font-size: clamp(24px, 7.2vw, 36px); font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; overflow-wrap: break-word;
}
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; padding-bottom: 80px; }
.line { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__media {
  width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; flex: none;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.line__info { flex: 1; }
.line__name { font-weight: 700; }
.line__price { color: var(--ink-soft); font-size: 14px; }
.line__subtotal { width: 80px; text-align: right; font-weight: 700; flex: none; color: var(--neon); }
.line__row2 { display: contents; }
.summary {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 26px; position: sticky; top: 80px;
}
.summary h3 { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.summary__row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 14.5px; color: var(--ink-soft); }
.summary__row--total {
  color: var(--ink); font-weight: 800; font-size: 18px;
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px;
}
.summary__row--total span:last-child { color: var(--neon); font-family: var(--font-display); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; letter-spacing: .3px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 15px; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #5b5878; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(201, 242, 75, .15);
}

/* ---------------- 空状态 & 提示条 ---------------- */
.empty { text-align: center; padding: 90px 0 110px; }
.empty__emoji { font-size: 64px; margin-bottom: 16px; filter: drop-shadow(0 0 22px rgba(139, 92, 246, .5)); }
.empty p { color: var(--ink-soft); font-size: 16px; }

.toasts { position: fixed; top: 74px; left: 0; right: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--neon);
  border-radius: 999px; padding: 11px 24px; font-size: 14px; font-weight: 600;
  box-shadow: var(--glow-neon);
}

/* ---------------- 下单成功 ---------------- */
.success { max-width: 560px; margin: 0 auto; text-align: center; padding: 80px 22px 100px; }
.success__check { font-size: 74px; animation: pop .5s cubic-bezier(.2, 2, .4, 1); filter: drop-shadow(0 0 26px rgba(201, 242, 75, .5)); }
.success h1 { font-family: var(--font-display); font-size: 34px; text-transform: uppercase; margin-top: 12px; }
.success__card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 26px; margin: 30px 0; text-align: left;
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ---------------- 配送区域页 ---------------- */
.delivery-route { padding-top: 40px; }
.delivery-route__inner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #131327, #0e0e1a);
  border: 1px solid var(--line);
}
/* aspect-ratio 跟 viewBox(1200x260)保持一致,不管容器多宽都不会变形拉伸 */
.delivery-route__scene { width: 100%; aspect-ratio: 1200 / 260; height: auto; display: block; }
.delivery-route__car { position: absolute; font-size: 26px; transform: translate(-50%, -80%); animation: drive 9s ease-in-out infinite; offset-path: path("M60 220 C 260 190, 340 245, 520 215 S 780 175, 900 215 S 1080 245, 1150 220"); }
@keyframes drive { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.delivery-route__card {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  background: rgba(17, 16, 28, .82); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 26px; text-align: center;
}
.delivery-route__card h1 { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; }
.delivery-route__card p { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

.deliverycalc-row { display: grid; grid-template-columns: 1fr minmax(320px, 420px) 1fr; gap: 26px; align-items: center; }
.deliverycalc-perks { display: flex; flex-direction: column; gap: 18px; }
.perk {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; text-align: center; transition: border-color .2s, transform .2s;
}
.perk:hover { border-color: rgba(201, 242, 75, .5); transform: translateY(-3px); }
.perk__icon { font-size: 30px; }
.perk__title { font-weight: 700; margin-top: 6px; }
.perk__caption { color: var(--ink-soft); font-size: 13px; }

.deliverycalc {
  background: var(--surface); border-radius: 26px; border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 18px; position: relative;
}
.deliverycalc__top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 12px; }
.deliverycalc__label { font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--neon); }
.deliverycalc__dots { display: flex; gap: 5px; }
.deliverycalc__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.deliverycalc__dots span:first-child { background: var(--pink); }
.deliverycalc__dots span:nth-child(2) { background: var(--neon); }
.deliverycalc__dots span:last-child { background: var(--cyan); }
.deliverycalc__screen {
  background: #0a0a12; border-radius: 16px; border: 1px solid var(--line);
  padding: 18px; text-align: center;
}
.deliverycalc__input {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--neon); font-family: var(--font-display); font-size: 25px; font-weight: 700;
  text-align: center; letter-spacing: 2px;
}
.deliverycalc__input::placeholder { color: #3d3c58; font-size: 19px; letter-spacing: 1px; }
.deliverycalc__hint { color: var(--ink-soft); font-size: 12.5px; margin-top: 8px; }
.deliverycalc__suggestions {
  position: absolute; left: 18px; right: 18px; z-index: 5;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: opacity .22s ease; opacity: 1;
}
.deliverycalc__suggestions.is-fading { opacity: 0; }
.deliverycalc__suggestion { padding: 11px 18px; font-size: 14px; cursor: pointer; }
.deliverycalc__suggestion:hover { background: rgba(201, 242, 75, .1); color: var(--neon); }
.deliverycalc__pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.deliverycalc__key {
  height: 56px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font-size: 19px; font-weight: 700;
  font-family: var(--font-display); cursor: pointer; transition: all .15s;
}
.deliverycalc__key:hover { border-color: var(--neon); color: var(--neon); }
.deliverycalc__key:active { transform: scale(.94); }
.deliverycalc__key--fn { color: var(--pink); }
.calc-reveal {
  margin-top: 14px; border-radius: 16px; padding: 18px; text-align: center;
  animation: pop .45s cubic-bezier(.2, 2, .4, 1);
}
.calc-reveal--free { background: rgba(201, 242, 75, .12); border: 1px solid var(--neon); }
.calc-reveal--fee { background: rgba(77, 214, 255, .1); border: 1px solid var(--cyan); }
.calc-reveal--post { background: rgba(255, 79, 163, .1); border: 1px solid var(--pink); }
.calc-reveal__badge { font-family: var(--font-display); font-size: 27px; font-weight: 800; }
.calc-reveal--free .calc-reveal__badge { color: var(--neon); }
.calc-reveal--fee .calc-reveal__badge { color: var(--cyan); }
.calc-reveal--post .calc-reveal__badge { color: var(--pink); }
.calc-reveal__meta { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

/* ---------------- Rewards 集点卡 ---------------- */
.stamp-card {
  position: relative; max-width: 560px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 26px;
  padding: 26px 28px; overflow: hidden;
  box-shadow: var(--shadow);
}
.stamp-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 85% -40px, rgba(201, 242, 75, .12), transparent 70%);
}
.stamp-card__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.stamp-card__brand {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stamp-card__count { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--neon); white-space: nowrap; }
.stamp-card__count small { font-size: 13px; color: var(--ink-soft); font-family: var(--font); font-weight: 600; }
.stamp-card__holder { margin-top: 4px; color: var(--ink-soft); font-size: 13px; }
.stamp-card__holder strong { color: var(--ink); font-size: 15px; letter-spacing: .3px; }
/* 打孔分隔线:左右两个半圆缺口 + 虚线 */
.stamp-card__divider { position: relative; margin: 18px -28px; border-top: 2px dashed var(--line); }
.stamp-card__divider::before, .stamp-card__divider::after {
  content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
}
.stamp-card__divider::before { left: -11px; }
.stamp-card__divider::after { right: -11px; }
.stamp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stamp {
  aspect-ratio: 1/1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--line); color: #4a4866; font-size: 15px; font-weight: 700;
  font-family: var(--font-display); transition: transform .2s;
}
.stamp--filled {
  border: none; background: var(--neon); color: #10120a; font-size: 22px;
  box-shadow: 0 0 16px rgba(201, 242, 75, .35);
  animation: pop .4s cubic-bezier(.2, 2, .4, 1);
}
.stamp--gift { border: 2px dashed rgba(255, 79, 163, .6); font-size: 24px; }
.stamp--gift.stamp--filled { background: var(--pink); box-shadow: 0 0 18px rgba(255, 79, 163, .5); border: none; }
.stamp-card__note { margin-top: 16px; color: var(--ink-soft); font-size: 13px; }
.stamp-card__note b { color: var(--neon); }
.stamp-banner {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  background: rgba(255, 79, 163, .12); border: 1px solid var(--pink); border-radius: 14px;
  padding: 13px 18px; font-weight: 700; font-size: 14.5px;
}
.stamp-banner span:first-child { font-size: 22px; }

/* Rewards 页面布局 */
.rewards-layout {
  display: grid; grid-template-columns: 1fr minmax(320px, 480px); gap: 50px;
  align-items: start; padding: 50px 0 90px;
}
.rewards-intro h1 {
  font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800; text-transform: uppercase; line-height: 1.05;
}
.rewards-intro h1 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rewards-intro > p { color: var(--ink-soft); margin: 16px 0 26px; max-width: 420px; }
.rewards-steps { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.rewards-step { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.rewards-step__icon { font-size: 26px; flex: none; width: 40px; text-align: center; }
.rewards-step__text b { display: block; font-size: 15px; }
.rewards-step__text span { color: var(--ink-soft); font-size: 13.5px; }
.signup-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.signup-card h3 {
  font-family: var(--font-display); font-size: 18px; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 18px;
}
.rewards-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.rewards-switch { color: var(--ink-soft); font-size: 13px; }
.rewards-switch:hover { color: var(--ink); text-decoration: underline; }

/* 首页 rewards 区:文字 + 卡片并排 */
.rewards-home { display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: 50px; align-items: center; }

/* ---------------- 配送区域迷你地图 ---------------- */
.delivery-map {
  display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 44px; align-items: center;
}
.delivery-map__figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(170deg, #101a2c, #0b0f1a);
  padding: 14px;
}
.delivery-map__figure svg { width: 100%; height: auto; display: block; }
.delivery-map__figure text { font-family: var(--font); }
.delivery-map__legend {
  position: absolute; left: 20px; bottom: 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--neon); background: rgba(10, 12, 20, .8); border: 1px solid rgba(201, 242, 75, .35);
  padding: 6px 12px; border-radius: 999px;
}
.delivery-map__legend i { width: 18px; height: 3px; background: var(--neon); border-radius: 2px; display: block; }
.free-deal { display: flex; flex-direction: column; gap: 16px; }
.free-deal__row {
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); padding: 20px 24px;
  transition: border-color .2s, transform .2s;
}
.free-deal__row:hover { border-color: rgba(201, 242, 75, .55); transform: translateY(-3px); }
.free-deal__city {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  text-transform: uppercase; flex: 1; line-height: 1.1;
}
.free-deal__city small {
  display: block; font-family: var(--font); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--ink-soft); margin-top: 3px;
}
.free-deal__amount {
  font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--neon);
  white-space: nowrap; flex: none;
}
.free-deal__amount small { display: block; font-family: var(--font); font-size: 11px; color: var(--ink-soft); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-align: right; }
.free-deal__note { color: var(--ink-soft); font-size: 13.5px; }

/* ---------------- 18+ 年龄验证弹窗 ---------------- */
.age-gate {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 22px;
  background: rgba(6, 6, 12, .92); backdrop-filter: blur(10px);
}
.age-gate__box {
  width: 100%; max-width: 400px; text-align: center;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--neon); border-radius: 26px; padding: 36px 30px 28px;
  box-shadow: 0 0 0 1px rgba(201, 242, 75, .3), 0 30px 70px rgba(0, 0, 0, .7);
  animation: pop .5s cubic-bezier(.2, 1.6, .4, 1);
}
.age-gate__seal { font-size: 56px; }
.age-gate__box h4 {
  font-family: var(--font-display); font-size: 24px; text-transform: uppercase;
  margin-top: 10px; letter-spacing: .5px;
}
.age-gate__box > p { color: var(--ink-soft); font-size: 14px; margin: 12px 0 24px; }
.age-gate__actions { display: flex; flex-direction: column; gap: 10px; }
.age-gate__fine { color: #55536e; font-size: 11.5px; margin: 18px 0 0; }

/* ---------------- 集卡成功弹窗 ---------------- */
.reward-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 22px;
  background: rgba(6, 6, 12, .78); backdrop-filter: blur(6px);
  animation: fadein .25s ease;
}
.reward-modal[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.reward-modal__box {
  position: relative; width: 100%; max-width: 420px; text-align: center;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--neon); border-radius: 26px; padding: 34px 30px 26px;
  box-shadow: 0 0 0 1px rgba(201, 242, 75, .3), 0 30px 70px rgba(0, 0, 0, .7);
  animation: pop .5s cubic-bezier(.2, 1.6, .4, 1);
  overflow: hidden;
}
.reward-modal__seal { font-size: 62px; animation: floaty 3s ease-in-out infinite; }
.reward-modal__box h3 {
  font-family: var(--font-display); font-size: 26px; text-transform: uppercase;
  margin-top: 6px; letter-spacing: .5px;
}
.reward-modal__box > p { color: var(--ink-soft); font-size: 14.5px; margin: 10px 0 22px; }
.reward-modal__label {
  display: block; text-align: left; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--neon); margin-bottom: 8px;
}
.reward-modal__select { width: 100%; max-width: none; height: 46px; margin-bottom: 16px; }
.reward-modal__later {
  margin-top: 14px; background: none; border: none; cursor: pointer;
  color: var(--ink-soft); font-size: 13px; font-family: inherit; text-decoration: underline;
}
.reward-modal__later:hover { color: var(--ink); }
/* 彩带 */
.reward-modal__confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.reward-modal__confetti i {
  position: absolute; top: -14px; width: 8px; height: 14px; border-radius: 2px;
  animation: confetti 2.6s linear infinite;
}
.reward-modal__confetti i:nth-child(4n+1) { background: var(--neon); }
.reward-modal__confetti i:nth-child(4n+2) { background: var(--pink); }
.reward-modal__confetti i:nth-child(4n+3) { background: var(--cyan); }
.reward-modal__confetti i:nth-child(4n)   { background: var(--violet); }
.reward-modal__confetti i:nth-child(1)  { left: 6%;  animation-delay: 0s; }
.reward-modal__confetti i:nth-child(2)  { left: 15%; animation-delay: .35s; }
.reward-modal__confetti i:nth-child(3)  { left: 24%; animation-delay: .8s; }
.reward-modal__confetti i:nth-child(4)  { left: 33%; animation-delay: .2s; }
.reward-modal__confetti i:nth-child(5)  { left: 42%; animation-delay: 1.1s; }
.reward-modal__confetti i:nth-child(6)  { left: 51%; animation-delay: .55s; }
.reward-modal__confetti i:nth-child(7)  { left: 60%; animation-delay: 1.4s; }
.reward-modal__confetti i:nth-child(8)  { left: 69%; animation-delay: .1s; }
.reward-modal__confetti i:nth-child(9)  { left: 78%; animation-delay: .95s; }
.reward-modal__confetti i:nth-child(10) { left: 86%; animation-delay: 1.7s; }
.reward-modal__confetti i:nth-child(11) { left: 93%; animation-delay: .45s; }
.reward-modal__confetti i:nth-child(12) { left: 99%; animation-delay: 1.25s; }
@keyframes confetti {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(420px) rotate(560deg); opacity: 0; }
}

/* 购物车里的免费行 */
.line--free .line__subtotal { color: var(--pink); }
.free-tag {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  background: var(--pink); color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}

/* ---------------- FAQ ---------------- */
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; overflow: hidden; transition: border-color .2s;
}
.faq-item:hover { border-color: rgba(139, 92, 246, .6); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 17px 22px; font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--neon); font-size: 21px; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 17px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------------- 页脚(大字报 CTA) ---------------- */
.footer { border-top: 1px solid var(--line); background: #08080f; margin-top: 60px; overflow: hidden; }
.footer__cta {
  max-width: 1120px; margin: 0 auto; padding: 70px 22px 30px; text-align: left;
}
.footer__cta-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 7.5vw, 92px); line-height: .98; letter-spacing: -1px;
  overflow-wrap: break-word;
}
.footer__cta-title em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__contact { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.footer__meta {
  max-width: 1120px; margin: 0 auto; padding: 34px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 16px; text-transform: uppercase; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { color: var(--ink-soft); font-size: 13.5px; letter-spacing: .5px; text-transform: uppercase; }
.footer__links a:hover { color: var(--neon); }
.footer__tag { color: #55536e; font-size: 13px; max-width: 1120px; margin: 0 auto; padding: 0 22px 8px; }
.footer__copy {
  text-align: left; max-width: 1120px; margin: 0 auto;
  color: #55536e; font-size: 12.5px; padding: 0 22px 26px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  /* 手机端首屏必须一眼看全:标题 + 贴纸 + Shop now 按钮都要落在一屏里,
     所以这里把上下留白、贴纸区大小整体压缩一轮 */
  .hero { padding: 20px 0 22px; }
  .hero__grid, .detail, .cart-layout { grid-template-columns: 1fr; gap: 0; }
  .hero__eyebrow { font-size: 11px; padding: 6px 13px; letter-spacing: 1.6px; }
  .hero__title { margin: 12px 0 10px; }
  .hero__sub { font-size: 15px; margin-bottom: 12px; }
  /* 比视口窄一截,留出边距 — 不然贴纸贴着屏幕边缘,看着像被切掉了。
     4/3 而不是正方形:贴纸本来就只铺在中间一带,正方形会多出一大块空白 */
  .hero__canvas-box {
    max-width: min(270px, 72vw); aspect-ratio: 4 / 3; margin: 0 auto 4px;
  }
  /* 贴纸尺寸改成按容器百分比 —— 容器一缩,贴纸跟着等比缩,不会挤成一团 */
  .sticker { width: 38%; height: auto; aspect-ratio: 1 / 1; }
  .sticker--2 { width: 33%; }
  .sticker--3 { width: 29%; }
  .sticker--zap { width: 18%; font-size: 24px; }
  .hero__badge247 { right: 2%; top: 2%; font-size: 12px; padding: 7px 12px; }
  .hero__cta { justify-content: flex-start; }
  /* 标题里的换行是写死的,最长那行("CREAM CHARGER &")必须能塞进一行,
     否则会再折一次,变成又短又碎的好几行。按视口宽度缩放,窄屏也不会溢出。 */
  .hero__title { font-size: clamp(21px, 6.6vw, 34px); }
  .grid, .grid--3, .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { min-height: 250px; padding: 24px; }
  .cat-card__emoji { font-size: 110px; width: 110px; height: 110px; }
  .sec-head { flex-wrap: wrap; }
  /* flex 子项默认 min-width:auto —— 标题长了(比如 "SECURE PAYMENT")不肯换行,
     会整块顶出容器、贴到屏幕边上。允许它收缩并按词换行 */
  .sec-head h2 { min-width: 0; overflow-wrap: break-word; }
  .sec-head p { margin-left: 0; text-align: left; max-width: none; }
  .row-item { gap: 12px; padding: 18px 4px; }
  .row-item__no { display: none; }
  .row-item__icon { width: 40px; font-size: 26px; }
  .row-item__title { flex: 1 1 auto; min-width: 0; font-size: 15px; }
  .row-item__caption { display: none; }
  .row-item__arrow { font-size: 17px; }
  .footer__meta { flex-direction: column; align-items: flex-start; }
  .rewards-layout, .rewards-home, .delivery-map { grid-template-columns: 1fr; gap: 30px; }
  .free-deal__city { font-size: 17px; }
  .free-deal__amount { font-size: 24px; }
  .stamp-grid { gap: 9px; }
  .stamp-card { padding: 20px 20px; }
  .stamp-card__divider { margin: 16px -20px; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 22px 14px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15px; }
  .nav__links a:last-child { border-bottom: none; }
  .nav__contact { font-size: 0; padding: 8px 11px; }
  .nav__contact::before { content: "📞"; font-size: 16px; }
  .nav__contacts { gap: 6px; }
  .cbtn { width: 32px; height: 32px; }
  .cbtn svg { width: 15px; height: 15px; }
  .section__head h2 { font-size: 27px; }
  .summary { position: static; }
  /* 手机上标题卡压在插画上会把插画整个盖住(屏幕太窄,卡片几乎占满),
     所以改成上下排:插画在上、文字在下,两边都看得清。
     插画保持 1200/260 原始比例,不拉伸变形,只是整体缩小。 */
  .delivery-route__inner { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
  .delivery-route__scene { aspect-ratio: 1200 / 260; }
  .delivery-route__car { font-size: 22px; }
  .delivery-route__card {
    position: static; transform: none;
    padding: 12px 18px; backdrop-filter: none;
  }
  .delivery-route__card h1 { font-size: 18px; }
  .delivery-route__card p { font-size: 12px; }
  .deliverycalc-row { grid-template-columns: 1fr; }
  .deliverycalc-perks { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__cols { justify-content: flex-start; gap: 40px; }
}
@media (max-width: 480px) {
  .grid, .grid--3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .duo { grid-template-columns: 1fr; }
  .duo .card__media { min-height: 170px; font-size: 62px; }
  .duo .card__body { padding: 16px 16px 18px; }
  .duo .card__name { font-size: 17px; }
  .nav__inner { gap: 8px; padding: 0 12px; }
  .nav__brand { font-size: 13px; gap: 6px; }
  .nav__logo { font-size: 16px; }
  .nav__contacts { gap: 4px; }
  .cbtn { width: 29px; height: 29px; }
  .cbtn svg { width: 14px; height: 14px; }
  .nav__cart { margin-left: 4px; }
  .nav__toggle { margin-left: 2px; width: 32px; }
  .nav__links { padding: 8px 14px 14px; }
  .card__body { padding: 12px 13px 15px; }
  .card__foot { flex-wrap: wrap; gap: 8px; }
  .price { font-size: 16px; }
  /* 手机上按 44px 走 —— 低于这个尺寸手指很难点准 */
  .btn-mini { width: 44px; height: 44px; font-size: 20px; }
  .qty-select { height: 44px; }
  .sticker--zap { font-size: 21px; }
}
@media (max-width: 600px) {
  /* 购物车行:窄屏改成两行 */
  .line { flex-wrap: wrap; row-gap: 10px; padding: 16px 0; }
  .line__media { width: 56px; height: 56px; }
  .line__info { flex: 1 1 auto; min-width: 0; }
  .line__remove { order: 1; flex: none; }
  .line__row2 {
    display: flex; align-items: center; justify-content: space-between;
    order: 2; flex-basis: 100%;
  }
  .qty { margin-right: 0; }
  .line__subtotal { width: auto; }
}

/* ---------------- 商品详情页:图集 + 卖点 + 介绍 + 参数 ---------------- */
.pdp { padding-top: 40px; }

/* 主图大、其余小 —— 四张一样大平铺会显得零散没重点 */
/* 行高由小图的 1:1 决定,主图跨 2 行就自然是正方形 ——
   用 grid-auto-rows:1fr 会让主图被拉得又高又窄 */
.pdp__gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.pdp__shot {
  margin: 0; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line);
  /* 官方图是白底,直接贴在深色页面上会是一块刺眼的白;
     垫一层深色底 + 轻微降亮度,让它融进整体又不失真 */
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  position: relative; aspect-ratio: 1 / 1;
}
.pdp__shot--hero { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.pdp__shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(.93) saturate(1.04);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), filter .3s;
}
.pdp__shot:hover img { transform: scale(1.04); filter: brightness(1) saturate(1.08); }
/* 白底图和深色页面之间的柔和过渡 */
.pdp__shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 62%, rgba(11, 11, 19, .35));
}

/* 卖点数字条 */
.pdp__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin: 22px 0 6px;
}
.pdp__stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color .25s, transform .2s;
}
.pdp__stat:hover { border-color: rgba(201, 242, 75, .45); transform: translateY(-2px); }
.pdp__stat-v {
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  color: var(--neon); line-height: 1.1; letter-spacing: -.5px;
}
.pdp__stat-l {
  font-size: 11.5px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 1.4px;
}

.pdp__cols {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 34px;
  align-items: start; margin-top: 34px;
}
.pdp__h {
  font-family: var(--font-display); font-size: 15px; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--ink-soft); margin-bottom: 16px;
}
.pdp__about p { color: var(--ink-soft); font-size: 15px; line-height: 1.75; margin-bottom: 15px; }
/* 首段加大加亮,给这一整块一个视觉入口 */
.pdp__lead { font-size: 18px !important; color: var(--ink) !important; line-height: 1.6 !important; }

.pdp__specs {
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.specs__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.specs__row:last-child { border-bottom: none; }
.specs dt {
  color: var(--ink-soft); font-size: 12px; flex: none;
  text-transform: uppercase; letter-spacing: .7px;
}
.specs dd { margin: 0; font-size: 14px; font-weight: 700; text-align: right; }

.pdp__note {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
}
.pdp__note p {
  color: #6e6b87; font-size: 12px; line-height: 1.65;
  margin: 0 0 5px; padding-left: 15px; position: relative;
}
.pdp__note p::before { content: "·"; position: absolute; left: 4px; }
.pdp__note p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .pdp { padding-top: 26px; }
  /* 窄屏:主图整行,其余两列 */
  /* 三列:主图占整行,剩下三张小图正好并成一排,不会落单留空位 */
  .pdp__gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  /* 窄屏主图压扁一点,免得一屏全被它占满 */
  .pdp__shot--hero { grid-column: span 3; grid-row: span 1; aspect-ratio: 4 / 3; }
  .pdp__stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
  .pdp__stat { padding: 14px 15px; }
  .pdp__stat-v { font-size: 21px; }
  .pdp__cols { grid-template-columns: 1fr; gap: 26px; margin-top: 26px; }
  .pdp__lead { font-size: 16.5px !important; }
  .pdp__specs { padding: 19px; }
  .specs__row { flex-direction: column; gap: 2px; }
  .specs dd { text-align: left; }
}

/* ---------------- 前台内联编辑(仅 staff 可见)---------------- */
#cmsEditToggle {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--neon);
  background: var(--surface); color: var(--neon); font-weight: 700; font-size: 14px;
  font-family: inherit; cursor: pointer; box-shadow: var(--glow-neon);
}
#cmsEditToggle:hover { background: var(--neon); color: #10120a; }
@media (max-width: 600px) {
  #cmsEditToggle {
    right: 14px; bottom: 14px; width: 48px; height: 48px; padding: 0;
    font-size: 0; display: flex; align-items: center; justify-content: center;
  }
  #cmsEditToggle::before { content: "✏️"; font-size: 20px; }
  body.cms-editing #cmsEditToggle::before { content: "✅"; }
}
body.cms-editing .cms-field {
  outline: 2px dashed var(--cyan); outline-offset: 2px; border-radius: 4px;
  cursor: text; transition: background .15s;
}
body.cms-editing .cms-field:hover { background: rgba(77, 214, 255, .08); }
body.cms-editing .cms-field:focus { outline-color: var(--neon); background: rgba(201, 242, 75, .08); }
.cms-field--saved { outline: 2px solid var(--neon) !important; }
.cms-field--error { outline: 2px solid var(--pink) !important; }
