/* ============================================================
   党峪京东家电线下实体店 · 11.11 团购会 海报页
   ------------------------------------------------------------
   设计方向：京东红 × 中式海报
   - 颜色：京东红作主色，暖白纸感做底，金色只做点缀（不超过 10% 面积）
   - 字体：标题/店名用宋体系（海报味）；信息与按钮用无衬线（读得清）
   - 层级：靠留白 + 阴影分层，不靠描边堆砌
   结构：横幅 → 门店视频 → 三步流程 → 店铺卡片 → 底部抽奖 → 弹窗/大图
   ============================================================ */

/* ==================== 设计 token ==================== */
:root {
  /* 品牌色 */
  --brand: #e1251b;
  --brand-deep: #b8170f;
  --brand-dark: #9c0f08;
  --brand-light: #ff5f45;
  --brand-tint: #fff1ec;

  /* 金（点缀，少量使用） */
  --gold: #f6c453;
  --gold-soft: #ffe3a8;
  --gold-deep: #d99b2b;

  /* 中性：暖白纸感，避免冷灰显得廉价 */
  --paper: #fffdfb;
  --paper-2: #fff8f5;
  --bg: #f7f3f1;
  --line: #f2e4de;
  --line-strong: #e8d4cc;

  /* 文字 */
  --ink: #231a17;
  --ink-2: #5b4c46;
  --ink-3: #918179;
  --ink-4: #b9aca5;

  /* 圆角 */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* 间距（4px 基准） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  /* 阴影：暖调，别用纯黑（会发灰） */
  --sh-1: 0 1px 2px rgba(122, 40, 22, 0.05), 0 2px 8px rgba(122, 40, 22, 0.05);
  --sh-2: 0 6px 18px rgba(122, 40, 22, 0.09), 0 1px 3px rgba(122, 40, 22, 0.06);
  --sh-3: 0 14px 38px rgba(122, 40, 22, 0.14), 0 2px 6px rgba(122, 40, 22, 0.06);
  --sh-red: 0 4px 16px rgba(190, 30, 20, 0.22);

  /* 字体族 */
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display: 'Songti SC', 'STSong', 'Source Han Serif SC', 'SimSun', serif;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 0.16s;
  --dur: 0.28s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-ui);
  /* 顶部一圈红雾做过渡，往下落到暖白纸底 */
  background:
    radial-gradient(120% 300px at 50% 0, rgba(225, 37, 27, 0.10), transparent 70%),
    linear-gradient(180deg, #fff6f2 0, var(--bg) 420px, #f5f1ef 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: calc(var(--sp-6) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }
.hidden { display: none !important; }

/* 键盘可达：统一焦点环 */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ==================== 顶部横幅 ==================== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: var(--sp-8) var(--sp-5) var(--sp-6);
  padding-top: calc(var(--sp-8) + env(safe-area-inset-top));
  background:
    radial-gradient(120% 90% at 18% 6%, rgba(255, 176, 140, 0.42), transparent 62%),
    radial-gradient(90% 80% at 88% 100%, rgba(120, 0, 0, 0.34), transparent 60%),
    linear-gradient(158deg, #f4532f 0%, var(--brand) 46%, var(--brand-deep) 78%, var(--brand-dark) 100%);
  box-shadow: 0 10px 30px rgba(160, 20, 12, 0.22);
}

/* 斜向柔光带：让整块红有"光打过来"的方向感 */
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -12%;
  pointer-events: none;
  background: linear-gradient(102deg,
      transparent 40%,
      rgba(255, 255, 255, 0.10) 48%,
      rgba(255, 255, 255, 0.16) 50%,
      rgba(255, 255, 255, 0.06) 53%,
      transparent 60%);
  transform: rotate(-3deg);
}

/* 右上角同心环：极淡，只提供纵深，不抢主体 */
.hero::after {
  content: '';
  position: absolute;
  top: -70px;
  right: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 32px rgba(255, 255, 255, 0.045),
    0 0 0 64px rgba(255, 255, 255, 0.03);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 5px;
  text-indent: 5px;
  color: rgba(255, 235, 224, 0.94);
  margin-bottom: var(--sp-2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 3px;
  text-indent: 3px;
  text-shadow:
    0 1px 0 rgba(110, 12, 5, 0.28),
    0 10px 28px rgba(70, 4, 0, 0.40);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 58%;
  margin: var(--sp-4) auto var(--sp-3);
}
.hero-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 168, 0.85));
}
.hero-divider span:last-child {
  background: linear-gradient(90deg, rgba(255, 226, 168, 0.85), transparent);
}
.hero-divider i {
  font-size: 9px;
  font-style: normal;
  color: var(--gold-soft);
  line-height: 1;
}

/* 卖点做成胶囊底：让「无需购物 / 100%」从正文里跳出来 */
.hero-sub {
  display: inline-block;
  margin: 0 auto;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.30);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
}

.hero-scroll-tip {
  margin-top: var(--sp-4);
  font-size: 12.5px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.82);
}

/* 活动倒计时（未开始 / 进行中 / 已结束） */
.act-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-top: var(--sp-4);
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: rgba(70, 4, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.act-countdown .act-label { color: rgba(255, 255, 255, 0.88); }
.act-countdown .act-time {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
}
.act-countdown .act-unit {
  font-size: 11px;
  margin: 0 2px 0 -2px;
  color: rgba(255, 255, 255, 0.78);
}
.act-countdown.ended {
  background: rgba(40, 2, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.20);
  font-weight: 700;
}

/* 兼容旧版横幅内元素（当前页面已不用，保留避免样式丢失） */
.hero-emblem {
  width: 46px;
  height: 46px;
  margin: 0 auto var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 226, 168, 0.7);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--gold-soft);
}
.hero-cta {
  display: block;
  max-width: 300px;
  margin: var(--sp-5) auto 0;
  padding: 15px 24px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 8px 22px rgba(80, 10, 0, 0.30);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease);
}
.hero-cta:active { transform: scale(0.97); }
.cta-main {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  color: #5a2a08;
}

/* ==================== 主体 ==================== */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-8);
}
.state-box { padding: 64px 0; text-align: center; }
.state-text { font-size: 14px; line-height: 1.9; color: var(--ink-3); }

/* ==================== 三步流程 ==================== */
.steps {
  position: relative;
  margin-bottom: var(--sp-5);
  padding: var(--sp-4) var(--sp-3);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-1);
}
.step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
/* 第 3 步文案更长，多分一点宽度，避免折行 */
.step-wide { flex: 1.5; }
.step-num {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-light), var(--brand) 55%, var(--brand-deep));
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(190, 30, 20, 0.26);
}
.step-txt {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.3px;
  text-align: center;
  color: var(--ink-2);
}
.step-arrow {
  flex-shrink: 0;
  margin-top: 6px;
  font-size: 15px;
  font-style: normal;
  line-height: 1;
  color: var(--line-strong);
}

/* 领奖须知：挂在三步卡底部，用虚线分隔（不另起一张白卡） */
.rules {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--line-strong);
  counter-reset: rule;
}
.rules-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--brand-deep);
}
.rules-title::before {
  content: '';
  flex: 0 0 auto;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--brand);
}
.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.rules-list li {
  counter-increment: rule;
  position: relative;
  padding-left: 19px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.rules-list li::before {
  content: counter(rule);
  position: absolute;
  top: 2.5px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

/* 区块标题（当前页面未用，保留通用样式） */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 2px var(--sp-3);
}
.section-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-deep);
}
.section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-light));
}
.section-note { font-size: 12.5px; color: var(--ink-3); }

/* ==================== 商家卡片 ==================== */
.grid {
  display: grid;
  grid-template-columns: 1fr;   /* 手机：单列 */
  gap: var(--sp-5);
}
.card {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-3);
  }
}

/* 店名行：左侧红条 + 宋体大字，像一块门头 */
.card-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--paper-2));
}
.card-head::before {
  content: '';
  flex: 0 0 auto;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-light));
}
.card-name {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 1px;
  color: var(--ink);
}

/* ==================== 小类分组：名称 → 图片 → 下个小类 ==================== */
.cat-section { padding: 0; }
.cat-section + .cat-section {
  padding-top: var(--sp-1);
  border-top: 1px solid var(--line);
}
/* 小类标题：左红竖条 + 文字 + 右侧渐隐细线（自动撑满，不用额外元素） */
.cat-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-4) var(--sp-4) var(--sp-3);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--brand-deep);
}
.cat-title::before {
  content: '';
  flex: 0 0 auto;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand) 0, var(--brand-light) 100%);
}
.cat-title::after {
  content: '';
  flex: 1;
  height: 1px;
  min-width: var(--sp-4);
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* ==================== 海报图：图 + 小字 = 一整块京东红卡 ==================== */
/* 两列瀑布：列宽一致，高度按图原比例，不做裁切 */
.img-grid {
  column-count: 2;
  column-gap: var(--sp-3);
  padding: 0 var(--sp-4) var(--sp-1);
}
.img-cell {
  break-inside: avoid;
  page-break-inside: avoid;
  position: relative;
  min-width: 0;
  margin: 0 0 var(--sp-3);
  padding: 0;                       /* 图片贴边，与文字条无缝相接 */
  background: var(--brand);         /* 整卡底色 = 文字条底色 */
  border-radius: var(--r-sm);
  overflow: hidden;                 /* 圆角交给父级裁切，接缝才不会有白边 */
  box-shadow: var(--sh-red);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.img-cell img {
  display: block;
  width: 100%;
  height: auto;                     /* 保留 848×1200 原比例，完整显示 */
  border-radius: 0;
  background: #f2ebe7;              /* 加载前的暖白占位，避免白块闪 */
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) {
  .img-cell:hover { box-shadow: 0 8px 22px rgba(190, 30, 20, 0.30); }
  .img-cell:hover img { transform: scale(1.025); }
}
.img-cell img:active { opacity: 0.92; }

/* 占位框：竖版 4:5，与实图高度接近 */
.img-cell .img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  border-bottom: 1px dashed rgba(255, 224, 138, 0.5);
  background: rgba(255, 255, 255, 0.10);
  color: var(--gold-soft);
  font-size: 22px;
}

/* 小字条：同底色，与图片连成一体 */
.img-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0;
  padding: 7px 8px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.3px;
  color: var(--gold-soft);          /* 京东红上的亮黄，对比够高 */
  background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.img-caption span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* 卡片底部：做成一枚轻量按钮，避免单行小字飘在角落 */
.card-foot {
  padding: var(--sp-2) var(--sp-4) var(--sp-4);
  text-align: right;
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--brand-deep);
  transition: background var(--dur-fast) var(--ease);
}
.card:hover .card-more { background: #ffe4dc; }

/* ==================== 页脚 ==================== */
.foot {
  padding: var(--sp-6) 0 var(--sp-1);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.9;
  letter-spacing: 0.3px;
  color: var(--ink-4);
}

/* ==================== 活动公告栏（lottery/notice.js 注入） ==================== */
/* notice.js 会把自带样式追加到 head（层级更靠后），这里用 body > 提权覆盖，
   只影响海报页；抽奖页等其他页面仍用组件原样式。
   宽度与 .wrap 内容区对齐：1120 - 32 = 1088 */
body > .lucky-notice {
  box-sizing: border-box;
  width: calc(100% - var(--sp-8));
  max-width: 1088px;
  margin: var(--sp-4) auto 0;
  padding: 13px 40px 13px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  box-shadow: var(--sh-1);
  color: var(--ink-2);
  font-family: var(--font-ui);
}
body > .lucky-notice .lucky-notice-head {
  margin-bottom: 3px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--brand-deep);
}
body > .lucky-notice .lucky-notice-body {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  word-break: break-word;
}
body > .lucky-notice .lucky-notice-body a { color: var(--brand-deep); }
body > .lucky-notice .lucky-notice-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

/* ==================== 门店视频 ==================== */
.video-box {
  position: relative;
  margin: 0 0 var(--sp-4);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #120806;
  box-shadow: var(--sh-2);
}
.store-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;             /* 元数据未就绪时按横版兜底 */
  object-fit: contain;
  background: #120806;
}
.video-unmute {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-3);
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(20, 6, 4, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  color: #fff;
  cursor: pointer;
}

/* ==================== 底部抽奖入口：整块红色收尾 ==================== */
.cta-final {
  position: relative;
  overflow: hidden;
  margin: var(--sp-6) 0 var(--sp-1);
  padding: var(--sp-6) var(--sp-4) var(--sp-5);
  border-radius: var(--r-xl);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(100% 80% at 50% 0, rgba(255, 160, 120, 0.34), transparent 62%),
    linear-gradient(160deg, #f0432c 0%, var(--brand) 44%, var(--brand-deep) 80%, var(--brand-dark) 100%);
  box-shadow: 0 14px 34px rgba(160, 20, 12, 0.28);
}
.cta-final::after {
  content: '';
  position: absolute;
  inset: -40% -10%;
  pointer-events: none;
  background: linear-gradient(102deg,
      transparent 42%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 58%);
  transform: rotate(-3deg);
}
.cta-final > * { position: relative; z-index: 1; }

.cta-final-ring {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.42);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cta-final-ring.done {
  background: linear-gradient(140deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.cta-final-count {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.cta-final-ring.done .cta-final-count { font-size: 24px; color: #7a3a06; }
.cta-final-hint {
  margin-bottom: var(--sp-4);
  font-size: 13px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.86);
}
.cta-final-btn {
  display: block;
  padding: 15px 0;
  border-radius: var(--r-pill);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: #6b2f08;
  background: linear-gradient(135deg, #fff0c8, var(--gold) 52%, var(--gold-deep));
  box-shadow: 0 10px 24px rgba(60, 8, 0, 0.30);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.cta-final-btn:active { transform: scale(0.98); }
.cta-final-btn.locked {
  background: rgba(255, 255, 255, 0.18);
  border: 1px dashed rgba(255, 255, 255, 0.48);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  pointer-events: none;
}
.cta-final-note {
  margin-top: var(--sp-3);
  font-size: 11.5px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.74);
}

/* 存海报发好友：红底上的白描边次按钮 */
.cta-share {
  display: inline-block;
  margin-top: var(--sp-4);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.10);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: #fff;
}
.cta-share:active { background: rgba(255, 255, 255, 0.2); }

/* ==================== 详情弹窗 ==================== */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(28, 10, 6, 0.74);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.24s var(--ease);
}
.modal-body {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 620px;
  margin: 4vh auto;
  max-height: 92vh;
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.16);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(20, 6, 4, 0.44);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.modal-scroll {
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-header-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, var(--brand), var(--brand-dark));
}
.modal-header-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 无门头照时给一块有设计感的红金底，而不是纯色空块 */
.modal-header-img.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 100% at 20% 10%, rgba(255, 180, 150, 0.40), transparent 60%),
    linear-gradient(160deg, var(--brand-light), var(--brand-deep));
}
.modal-header-img.no-img::after {
  content: '京东家电';
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 6px;
  text-indent: 6px;
  color: rgba(255, 226, 168, 0.9);
}
.modal-content { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.modal-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-align: center;
  color: var(--ink);
}
.modal-divider {
  width: 64px;
  height: 2px;
  margin: var(--sp-3) auto var(--sp-4);
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.modal-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.modal-desc:empty::after {
  content: '暂无介绍';
  color: var(--ink-4);
}
.modal-cta {
  display: block;
  margin-top: var(--sp-5);
  padding: 14px 0;
  border-radius: var(--r-pill);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(120% 140% at 20% 0, rgba(255, 150, 120, 0.55), transparent 60%),
    linear-gradient(135deg, var(--brand-light), var(--brand) 56%, var(--brand-deep));
  box-shadow: var(--sh-red);
}
.modal-cta:active { transform: scale(0.99); opacity: 0.94; }

/* ==================== 图片大图查看 ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: rgba(16, 9, 5, 0.95);
}
.lightbox > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100% - 74px);
  object-fit: contain;
  border-radius: var(--r-xs);
}
.lightbox-close {
  position: absolute;
  top: calc(var(--sp-3) + env(safe-area-inset-top, 0px));
  right: var(--sp-3);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:active { background: rgba(255, 255, 255, 0.3); }

/* 大图上方门头照条 */
.lightbox-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  max-width: 100%;
  padding: 0 var(--sp-2);
  flex-shrink: 0;
}
.lightbox-head img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 56vw;
  border-radius: var(--r-xs);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.lightbox-head-tag {
  max-width: 40vw;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ==================== 平板 / 桌面 ==================== */
@media (min-width: 560px) {
  .grid { gap: var(--sp-6); }
  .hero-cta { max-width: 260px; }
  .img-grid { column-gap: var(--sp-4); }
}
@media (min-width: 768px) {
  .hero { padding: 56px var(--sp-6) 48px; }
  .hero-title { font-size: 48px; letter-spacing: 4px; text-indent: 4px; }
  .hero-kicker { font-size: 14px; }
  .hero-emblem { width: 54px; height: 54px; font-size: 25px; }
  .hero::after { width: 300px; height: 300px; top: -100px; right: -110px; }
  .wrap { padding: var(--sp-6) var(--sp-6) var(--sp-8); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
  .step-txt { font-size: 13.5px; }
  .card-name { font-size: 19.5px; }
  .img-grid { column-count: 2; }
}

/* ==================== 减少动效偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card:hover { transform: none; }
  .img-cell:hover img { transform: none; }
}

/* ==================== 京东双11红包：悬浮入口 + 弹窗 ==================== */
.jd-fab {
  position: fixed;
  right: 14px;
  bottom: 82px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 8px;
  border: none;
  cursor: pointer;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 8px 20px rgba(190, 30, 20, 0.45);
  animation: jdFabLive 2.4s ease-in-out infinite, jdFabGlow 1.8s ease-in-out infinite;
}
.jd-fab-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1.5px solid #fff;
  background: #fff;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}
.jd-fab-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  text-align: center;
}
.jd-fab-text b {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.jd-fab-text i {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #ffd76a;
  margin-top: 2px;
  animation: jdTextNudge 1.5s ease-in-out infinite;
}
.jd-fab:active { animation: none; transform: scale(0.93); }

.jd-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jd-modal.hidden { display: none; }
.jd-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 6, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.jd-modal-card {
  position: relative;
  z-index: 1;
  width: min(86vw, 340px);
  padding: 30px 22px 22px;
  text-align: center;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 60%, var(--brand-dark) 100%);
  border: 1px solid rgba(255, 227, 168, 0.5);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  animation: jdCardIn 0.28s var(--ease) both;
}
.jd-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}
.jd-modal-emblem {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  background: #fff;
  animation: jdBob 2.4s ease-in-out infinite;
}
.jd-modal-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jd-modal-title {
  margin: 12px 0 6px;
  font-size: 21px;
  font-weight: 800;
  color: var(--gold-soft);
  text-shadow: 0 0 12px rgba(255, 220, 150, 0.5);
}
.jd-modal-sub {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.jd-modal-note {
  margin: 0 0 16px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 227, 168, 0.45);
  border-radius: 10px;
}
.jd-modal-btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-dark);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-radius: var(--r-pill);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(120, 60, 0, 0.35);
  white-space: nowrap;
  animation: jdPulse 1.6s ease-in-out infinite;
}
.jd-modal-btn:active { transform: scale(0.96); filter: brightness(1.05); }
.jd-modal-tip {
  margin: 12px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

/* 红包动效关键帧 */
@keyframes jdCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes jdBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes jdPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(190, 30, 20, 0.32), 0 0 0 0 rgba(255, 227, 168, 0.5); }
  50%      { box-shadow: 0 4px 14px rgba(190, 30, 20, 0.36), 0 0 0 9px rgba(255, 227, 168, 0); }
}

/* 悬浮按钮动感：浮动 + 呼吸缩放 + 轻微摇摆 */
@keyframes jdFabLive {
  0%   { transform: translateY(0) scale(1) rotate(0deg); }
  25%  { transform: translateY(-5px) scale(1.035) rotate(-1.6deg); }
  50%  { transform: translateY(-8px) scale(1.05) rotate(0deg); }
  75%  { transform: translateY(-5px) scale(1.035) rotate(1.6deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}
/* 金色光环脉冲（扩散更大更亮） */
@keyframes jdFabGlow {
  0%, 100% { box-shadow: 0 8px 20px rgba(190, 30, 20, 0.45), 0 0 0 0 rgba(255, 227, 168, 0.55); }
  50%      { box-shadow: 0 12px 28px rgba(190, 30, 20, 0.55), 0 0 0 13px rgba(255, 227, 168, 0); }
}
/* 引导文字左右轻滑 */
@keyframes jdTextNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}

@media (max-width: 380px) {
  .jd-fab { right: 12px; bottom: 78px; padding: 7px 14px 7px 7px; }
}
