/* ============================================================
 * huaxia-shop-home-v3-test.css · 2026 秋季活动版样式
 *   2026-09-17 测试版新增：悬浮条 / 活动板块 / 弹窗
 *   主版 home-v3.css 保持不动，独立 css 增量
 * ============================================================ */

/* ============== 顶部悬浮活动提示条 ============== */
.hx-promo-bar {
  background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #b91c1c 100%);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
  position: relative;
  z-index: 49;  /* 必须 ≤ 49：低于 sticky 搜索栏 z-index: 50，不挡 cascade dropdown */
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.25);
}
.hx-promo-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hx-promo-bar-tag {
  background: #fbbf24;
  color: #7c2d12;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.hx-promo-bar-text {
  flex: 1;
  min-width: 280px;
  color: #fef3c7;
  font-size: 13px;
  line-height: 1.5;
}
.hx-promo-bar-text strong {
  color: #fbbf24;
  font-weight: 700;
  margin: 0 2px;
}
.hx-promo-bar-text em {
  font-style: normal;
  color: #fca5a5;
  font-size: 12px;
  margin-left: 4px;
}
.hx-promo-bar-btn {
  background: #fbbf24;
  color: #7c2d12;
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.hx-promo-bar-btn:hover {
  background: #fcd34d;
  transform: translateY(-1px);
}
.hx-promo-bar-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.hx-promo-bar-close:hover {
  color: #fff;
}

/* ============== 独立活动板块（2026-09-17 改配色：纯黑背景 + 金色 accent，匹配商城主背景 #0a0a0a）============== */
.hx-promo-section {
  background: #0a0a0a;
  padding: 48px 0;
  border-top: 1px solid #e3bc16;
  border-bottom: 1px solid rgba(229, 185, 57, 0.3);
}
.hx-promo-section .sec-head h2 {
  color: #e5e7eb;
}
.hx-promo-section .sec-head h2 em {
  color: #e3bc16;
  font-style: normal;
}
.hx-promo-section .eyebrow {
  color: #e3bc16;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.hx-promo-section .sec-lede {
  color: #94a3b8;
}
.hx-promo-section .sec-link {
  color: #e3bc16;
  text-decoration: none;
  font-weight: 600;
}
.hx-promo-section .sec-link:hover {
  text-decoration: underline;
  color: #fbbf24;
}

/* 2026-09-18 17:50 ¥2000/¥3000 两卡整图嵌入（替换原 .hx-promo-grid grid 布局） */
.hx-promo-grid-link {
  display: block;
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.hx-promo-grid-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.hx-promo-grid-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
@media (max-width: 768px) {
  .hx-promo-grid-link { margin: 20px 0; border-radius: 8px; }
}

.hx-promo-tier {
  background: #161922;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border-top: 4px solid;
  position: relative;
  border-left: 1px solid rgba(229, 185, 57, 0.15);
  border-right: 1px solid rgba(229, 185, 57, 0.15);
  border-bottom: 1px solid rgba(229, 185, 57, 0.15);
}
.hx-promo-tier-1 { border-top-color: #e3bc16; }
.hx-promo-tier-2 { border-top-color: #dc2626; }

.hx-promo-tier-num {
  font-size: 42px;
  font-weight: 800;
  color: #e3bc16;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hx-promo-tier-2 .hx-promo-tier-num { color: #fca5a5; }
.hx-promo-tier-num small {
  font-size: 24px;
  font-weight: 600;
  vertical-align: top;
  margin-left: 2px;
}
.hx-promo-tier h3 {
  font-size: 16px;
  color: #e5e7eb;
  margin: 0 0 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hx-promo-tier-nosplit {
  font-size: 11px;
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.4);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
}
.hx-promo-tier-meta {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
  background: rgba(229, 185, 57, 0.1);
  border: 1px solid rgba(229, 185, 57, 0.25);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'SF Mono', 'Menlo', monospace;
}
.hx-promo-list-heading {
  font-size: 11px;
  color: #94a3b8;
  margin: 4px 0 8px;
  font-style: italic;
}
.hx-promo-list-subheading {
  font-size: 12px;
  color: #e3bc16;
  font-weight: 600;
  margin: 10px 0 6px;
}

.hx-promo-gift {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(229, 185, 57, 0.10);
  border: 1px solid rgba(229, 185, 57, 0.2);
  border-radius: 6px;
  margin-bottom: 10px;
}
.hx-promo-gift-sub {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.25);
}
.hx-promo-gift-img {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.hx-promo-gift-info h4 {
  font-size: 14px;
  color: #e5e7eb;
  margin: 0 0 4px;
  font-weight: 600;
}
.hx-promo-gift-info p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.hx-promo-models {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  border-top: 1px dashed rgba(229, 185, 57, 0.3);
  padding-top: 14px;
}
.hx-promo-models li {
  font-size: 12px;
  color: #cbd5e1;
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.hx-promo-models li::before {
  content: "•";
  color: #e3bc16;
  position: absolute;
  left: 4px;
  font-weight: 700;
}
.hx-promo-models li a {
  color: #fbbf24;
  text-decoration: none;
  border-bottom: 1px dotted rgba(251, 191, 36, 0.4);
  transition: all 0.2s ease;
}
.hx-promo-models li a:hover {
  color: #fde68a;
  border-bottom-color: #fde68a;
}

.hx-promo-warning {
  margin-top: 14px;
  padding: 12px;
  background: rgba(245, 158, 11, 0.12);
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: 11px;
  color: #fde68a;
  line-height: 1.6;
}

/* 参与产品列表 */
.hx-promo-products {
  margin-top: 32px;
}
.hx-promo-products-title {
  font-size: 16px;
  color: #e5e7eb;
  margin-bottom: 16px;
  font-weight: 600;
}
.hx-promo-products-title strong {
  color: #fbbf24;
  font-size: 20px;
}
.hx-promo-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.hx-promo-product-card {
  position: relative;
  background: #161922;
  border: 1px solid rgba(229, 185, 57, 0.15);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  display: block;
}
.hx-promo-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 185, 57, 0.25);
  border-color: #e3bc16;
}
.hx-promo-product-img {
  width: 100%;
  height: 200px; /* 2026-09-18 第二次改：180px → 200px，再加 20px */
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hx-promo-product-name {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  padding: 10px 12px 4px;
  line-height: 1.4;
  min-height: 36px;
}
.hx-promo-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 10px;
  font-size: 11px;
  color: #94a3b8;
}
.hx-promo-product-sku {
  font-family: 'SF Mono', 'Menlo', monospace;
  background: rgba(229, 185, 57, 0.15);
  color: #cbd5e1;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
}
.hx-promo-product-price {
  color: #fbbf24;
  font-weight: 700;
  font-size: 13px;
}
.hx-promo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(185, 28, 28, 0.5);
}

.hx-promo-empty {
  margin-top: 24px;
  padding: 32px;
  background: #161922;
  border: 2px dashed rgba(229, 185, 57, 0.4);
  border-radius: 6px;
  text-align: center;
  color: #94a3b8;
}
.hx-promo-empty p { margin: 6px 0; }
.hx-promo-empty a {
  color: #e3bc16;
  text-decoration: none;
  font-weight: 600;
}

.hx-promo-cta {
  text-align: center;
  margin-top: 32px;
}
.hx-promo-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  padding: 14px 36px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
  transition: all 0.2s ease;
}
.hx-promo-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.5);
}

/* ============== 活动弹窗 ============== */
.hx-promo-modal-tier3000 {
  font-size: 15px !important;
  color: #b91c1c !important;
  font-weight: 600 !important;
  background: rgba(254, 226, 226, 0.6);
  border-left: 3px solid #dc2626;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 12px 0 !important;
  text-align: left;
  line-height: 1.6;
}
.hx-promo-modal-tier3000 strong {
  color: #b91c1c;
  font-size: 16px;
  font-weight: 700;
}
.hx-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hx-promo-modal[hidden] { display: none; }
.hx-promo-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
}
.hx-promo-modal-body {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: hx-promo-fade-in 0.3s ease;
}
@keyframes hx-promo-fade-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.hx-promo-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.hx-promo-modal-close:hover { color: #1f2937; }
.hx-promo-modal-tag {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #7c2d12;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.hx-promo-modal-body h2 {
  font-size: 22px;
  color: #b91c1c;
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.4;
}
.hx-promo-modal-body p { margin: 8px 0; }
.hx-promo-modal-tip {
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-top: 14px !important;
}
.hx-promo-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
}
.hx-promo-modal-btn-primary,
.hx-promo-modal-btn-secondary {
  padding: 10px 22px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
}
.hx-promo-modal-btn-primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  box-shadow: 0 3px 8px rgba(185, 28, 28, 0.25);
}
.hx-promo-modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
}
.hx-promo-modal-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}
.hx-promo-modal-btn-secondary:hover {
  background: #e2e8f0;
}

/* ============================================================
 * 2026-09-18 Slide 1「商城活动」整张用户设计图嵌入
 *   · 用户上传 20260918-155608.png（7149×4021 设计图）
 *   · 本地转 JPG 1800×1012（275KB）上传到 wp-content/uploads/2026/09/2026-autumn-promo-banner.jpg
 *   · Slide 1 HTML 整段替换为 <a slide-link> + <img>（badge/h1/lede/actions 全部删除）
 *   · 图片 cover 整个 slide，aspect-ratio 16:9 自动算高度
 *   · 关键：覆盖 .tb-hero 的 padding/border-radius/装饰（外部 home-v3.css 有 padding 32+44 + ::before/::after 装饰）
 *   · Slide 2/3 单独保留 padding 让文字内容有留白
 * ============================================================ */

/* .tb-hero 容器：去掉外部 padding/装饰/grid mask，保留圆角（让 banner 显示成圆角矩形） */
.tb-hero {
  padding: 0 !important;
  border-radius: var(--hx-radius-lg) !important;
  min-height: auto !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  isolation: isolate !important;
}
/* 隐藏外部 home-v3.css 的 .tb-hero::before (高光) + .tb-hero::after (网格 mask) */
.tb-hero::before, .tb-hero::after { display: none !important; }

/* Slide 1：img cover 整个 slide 区域（圆角继承父，让图片四周被裁剪成圆角） */
.tb-slide.s-orange { padding: 0 !important; }
.tb-slide.s-orange .tb-slide-banner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: var(--hx-radius-lg);
  z-index: 0;
}
/* 隐藏外部 .tb-slide::after 网格 mask（图片上不需要） */
.tb-slide.s-orange::after { display: none !important; }
/* slide-link 浮在图之上，确保 click 跳 /shop/activity */
.tb-slide.s-orange .tb-slide-link { z-index: 2; }

/* Slide 2/3 单独保留 padding（文字内容需要留白） */
.tb-slide.s-blue, .tb-slide.s-green { padding: 32px 44px !important; }
.tb-slide.s-blue::after, .tb-slide.s-green::after { display: revert !important; }

/* 移动端：保持比例，但允许 aspect 适应窄屏 */
@media (max-width: 768px) {
  .tb-hero { aspect-ratio: 4 / 3 !important; }
}

/* ============================================================
 * 2026-09-18 v3 主页弹窗：整张用户设计图嵌入 + 跳 /shop/activity（伪静态）
 *   · 整图 1024×1024 JPG 136KB 上传 wp-content/uploads/2026/09/2026-autumn-promo-modal.jpg
 *   · 弹窗 = alert 框 + 整张图（管子/礼盒/星星/缎带/2000+3000 阶梯/立即查看 全部在图里）
 *   · 整图被 `<a href="/shop/activity">` 包裹，点击跳活动公告页（伪静态）
 *   · 关闭按钮保留在右上角
 * ============================================================ */

.hx-promo-modal-v3 .hx-promo-modal-body {
  position: relative;
  width: 90%;
  max-width: 480px;
  padding: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* 整张图链接：包裹 img 让点击跳 /shop/activity */
.hx-promo-modal-v3 .hx-promo-modal-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

/* 整图：100% 宽度，按 aspect ratio 算高度（1:1）*/
.hx-promo-modal-v3 .hx-promo-modal-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 关闭按钮：右上角设计 */
.hx-promo-modal-v3 .hx-promo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-size: 20px;
  color: #6b7280;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.hx-promo-modal-v3 .hx-promo-modal-close:hover {
  background: #fff;
  color: #1f2937;
}

/* 移动端 */
@media (max-width: 600px) {
  .hx-promo-modal-v3 .hx-promo-modal-body { max-width: 360px; }
}