/*!
 * home-member-cta.css —— 首页「会员权益」引导条（2026-09-24）
 * ---------------------------------------------------------------------------
 * 仅 index.html 引用（页面级隔离）；DOM 由 home-member-cta.js 注入到公告条下方。
 *
 * 宽度口径（重要）：与站内 .wrap / .hn-bar / .hb-booth-band 完全一致 ——
 *   max-width:1280px + padding:0 20px + margin:auto。
 *   历史教训：首页几条内容块曾经各写各的 max-width（1240 / 无 / 1280），
 *   宽屏上左右各差 20px，用户一眼就看出「没铺满、跟别的对不齐」。
 *
 * 配色：白+奶油金底 + 金边（会员＝金），主按钮仍是站内红渐变（保证足够的对比与可点性）。
 *   与紧邻的橙色商家群引导条刻意区分：那条是橙金实心渐变，这条是浅底卡片，
 *   两条挨着不会糊成一片同色。
 * 规矩：不写 padding-bottom（手机底栏 96px 净空由别处负责）；不用 space-between 拉开行距。
 */
.hmc-band {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 20px;
}
.hmc-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: center;
  background-image: linear-gradient(118deg, #fffdf8 0%, #fff8ea 46%, #fdefd8 100%);
  border: 1px solid #efdec0;
  border-radius: 18px;
  padding: 18px 22px 16px;
  box-shadow: 0 8px 24px rgba(150, 102, 20, 0.08);
}
/* 顶部一条金色细线：便宜但很提气的「会员感」 */
.hmc-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #f7b733 0%, #e08a1e 44%, #c93628 100%);
}
.hmc-card.is-premium { border-color: #ecdcb6; }
.hmc-card.is-vip {
  border-color: #e8cd8b;
  background-image: linear-gradient(118deg, #fffcf3 0%, #fdf4e0 46%, #f9e8c6 100%);
  box-shadow: 0 10px 28px rgba(150, 102, 20, 0.14);
}

/* 左侧皇冠 */
.hmc-ico {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-image: linear-gradient(135deg, #f7b733 0%, #e08a1e 100%);
  box-shadow: 0 8px 18px rgba(224, 138, 30, 0.32);
}
.hmc-ico svg { width: 28px; height: 28px; display: block; }

/* 中间文本 */
.hmc-main { min-width: 0; }
.hmc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hmc-eyebrow {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #96631a;
  background: #fff;
  border: 1px solid #f0dfba;
  border-radius: 999px;
  padding: 3px 10px;
}
.hmc-title {
  margin: 0;
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #2a221d;
  letter-spacing: 0.2px;
}
.hmc-sub {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #8b7c68;
}

/* 权益要点 */
.hmc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}
.hmc-chip {
  font-size: 12.5px;
  line-height: 1.4;
  color: #97692a;
  background: #fff;
  border: 1px solid #f1e2c6;
  border-radius: 999px;
  padding: 4px 11px;
}

/* 右侧按钮 */
.hmc-acts {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 196px;
}
.hmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.hmc-btn.primary {
  color: #fff;
  background-image: linear-gradient(135deg, #d24233 0%, #a63329 100%);
  box-shadow: 0 6px 16px rgba(178, 52, 41, 0.28);
}
.hmc-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(178, 52, 41, 0.34);
}
.hmc-btn.ghost {
  color: #5b5048;
  background: #fff;
  border: 1px solid #e8dfd6;
}
.hmc-btn.ghost:hover { color: #c93628; border-color: #e6c3bc; }

/* 底部轮播槽 —— 会员动态 / 会员权益 / 平台数据 */
.hmc-ticker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px dashed #ecdcb8;
  border-radius: 12px;
  padding: 7px 12px;
}
/* ⚠️ 三个标签叠在一起只切 opacity —— 不用 display:none。
   translate.js 扫不到 display:none 的文本，用 display 切换会让非中文下
   没露过面的标签永远留着中文（与 .hn-title 同一招）。 */
.hmc-tk-tags {
  position: relative;
  flex: none;
  width: 68px;
  height: 20px;
}
.hmc-tk-tag {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hmc-tk-tag.on { opacity: 1; }
.hmc-tk-tag.feed { background: #fdeceb; color: #c93628; }
.hmc-tk-tag.tip { background: #fdf3dc; color: #a8791b; }
.hmc-tk-tag.stat { background: #eef2f6; color: #5d7285; }
.hmc-tk-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 20px;
  overflow: hidden;
}
.hmc-tk-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.hmc-tk-item.on { opacity: 1; transform: none; }
.hmc-tk-text {
  font-size: 13px;
  color: #7a6b58;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 轮播槽右端的固定入口（填满横排 + 多一次点击机会） */
.hmc-tk-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: #a8791b;
  text-decoration: none;
  white-space: nowrap;
}
.hmc-tk-more:hover { color: #c93628; }

/* ---------------------------------------------------------------------------
 * 置顶推广条（会员专享）
 * ---------------------------------------------------------------------------
 * 卡片里最重的一行：跨整行 + 暖金底 + 描边，视觉权重高于上面的 chips。
 * ⚠️ 「会员专享」四个字是真的（普通会员 pinLimit = 0，接口给的），别改成「热门」之类
 *    暗示很多人正在用的说法。额度数字全部来自接口。
 */
.hmc-pin {
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 18px;
  border-radius: 13px;
  background-image: linear-gradient(100deg, #fff7e6 0%, #fff1d4 100%);
  border: 1px solid #f2d79b;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
/* 左侧一条金色竖线：不加的话这行的底色跟卡片奶油底太接近，「显眼」就打折了 */
.hmc-pin::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-image: linear-gradient(180deg, #f0a92c 0%, #d9821a 100%);
}
.hmc-pin:hover {
  border-color: #e9c477;
  box-shadow: 0 5px 16px rgba(190, 140, 30, 0.16);
}
.hmc-pin-ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-image: linear-gradient(135deg, #f0a92c 0%, #d9821a 100%);
  box-shadow: 0 4px 10px rgba(217, 130, 26, 0.3);
}
.hmc-pin-ico svg { width: 19px; height: 19px; display: block; }
.hmc-pin-body { flex: 1; min-width: 0; display: block; }
.hmc-pin-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.hmc-pin-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background-image: linear-gradient(135deg, #e0662d 0%, #c93628 100%);
  border-radius: 5px;
  padding: 2px 7px;
}
.hmc-pin-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #5c3d0d;
}
.hmc-pin-text {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #957a45;
}
.hmc-pin-quota {
  flex: none;
  font-size: 12.5px;
  font-weight: 700;
  color: #a8791b;
  background: #fff;
  border: 1px solid #f0dcae;
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* 窄屏：改成两行网格（图标 + 正文一行，额度胶囊在正文下面另起一行）。
   ⚠️ 这里必须用 grid，不能靠 flex-wrap 让它自然换行：
      .hmc-pin-body 是 flex:1（flex-basis:0），flex 会把「图标 + 正文 + 额度胶囊」
      硬塞进同一行，正文只分到 40px 宽 → 每个字一行，整条被撑到 588px 高（实测踩中）。
   grid 的 minmax(0,1fr) 才是可预期的。 */
@media (max-width: 900px) {
  .hmc-pin {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px 10px;
    align-items: start;
  }
  .hmc-pin-body { grid-column: 2; }
  .hmc-pin-quota { grid-column: 2; justify-self: start; margin-left: 0; }
}
@media (max-width: 640px) {
  .hmc-pin { padding: 9px 11px 9px 15px; gap: 8px 9px; grid-template-columns: 30px minmax(0, 1fr); }
  .hmc-pin-ico { width: 30px; height: 30px; border-radius: 9px; }
  .hmc-pin-ico svg { width: 17px; height: 17px; }
  .hmc-pin-title { font-size: 13.5px; }
  .hmc-pin-text { font-size: 11.5px; }
  .hmc-pin-quota { font-size: 11.5px; padding: 4px 10px; }
}

/* 窄屏：图标与文字一行、按钮占满一行、轮播槽照旧跨全宽 */
@media (max-width: 900px) {
  .hmc-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px 14px;
    padding: 16px 16px 14px;
  }
  .hmc-ico {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    /* 窄屏时主文本会堆成好几行，图标再垂直居中就会「孤零零飘在左边中间」——
       贴顶对齐到标签/标题那一行才像一组。 */
    align-self: start;
    margin-top: 2px;
  }
  .hmc-ico svg { width: 24px; height: 24px; }
  .hmc-title { font-size: 16.5px; }
  .hmc-acts {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: 0;
  }
  .hmc-acts .hmc-btn { flex: 1; }
}
/* ---------------------------------------------------------------------------
 * 手机版重排（2026-09-24 用户看完截图要求「样式美化一下」）
 * ---------------------------------------------------------------------------
 * 上一版手机上暴露的问题：
 *   1. 「会员权益」标签和标题挤在同一行 → 标题被迫折行，层级看不出主次
 *   2. 副标题四行密不透风，没有呼吸感
 *   3. 两颗按钮并排抢位，主按钮文字被挤到贴边
 *   4. 顺序不合理：按钮夹在权益说明和置顶条中间，CTA 下面还有个「重点权益」
 * 这一版：
 *   · 标签 → 标题 竖排，标题放大到 17px
 *   · 行高 1.68 + 更多留白，副标题读数不超过 3 行（配合文案缩短）
 *   · **重排顺序**：权益说明 → 置顶推广（重点）→ 按钮 → 动态播报
 *   · 主按钮整行 44px；次按钮降级成居中的文字链，不再和主按钮抢视线
 * ------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hmc-band { margin-top: 12px; }
  .hmc-card {
    padding: 15px 14px 13px;
    border-radius: 16px;
    gap: 13px 10px;
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .hmc-ico { width: 42px; height: 42px; border-radius: 12px; }
  .hmc-ico svg { width: 22px; height: 22px; }
  /* 标签单独一行，标题另起 —— 手机上「会员权益 开通会员，全年额度放开」挤一行太局促 */
  .hmc-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .hmc-eyebrow { font-size: 10.5px; padding: 2px 8px; }
  .hmc-title { font-size: 17px; letter-spacing: 0.2px; line-height: 1.35; }
  .hmc-sub { font-size: 12.5px; line-height: 1.68; margin-top: 7px; color: #8a7a66; }
  .hmc-chip { font-size: 11.5px; padding: 3px 9px; }
  /* 手机上一行只放得下一条 chip，三条会把这整块顶到 330px 高（首页要往下滚很久）。
     而且 chips 讲的就是副标题里那句话（10 条 / 100 至 1,000 条 / 解锁各类联系方式），
     窄屏下**整组隐藏**：不丢信息，还省一大截高度。 */
  .hmc-chips { display: none; }

  /* ⚠️ order 必须五个都给全：只写其中两个的话，没写的默认 0 会跑到最前面
     （比如会把轮播槽顶到按钮上面去）。这里 = 图标+正文(1) → 置顶(2) → 按钮(3) → 轮播(4) */
  .hmc-ico,
  .hmc-main { order: 1; }
  .hmc-pin { order: 2; }
  .hmc-acts { order: 3; }
  .hmc-ticker { order: 4; }

  /* 按钮：主按钮整行，次按钮变文字链
     ⚠️ 必须显式 `flex: none` 覆盖上面 ≤900 那条 `.hmc-acts .hmc-btn { flex: 1 }`：
        竖排时 flex 主轴变成**纵向**，`flex:1` 里的 flex-basis:0 会把按钮高度压成
        min-content（实测 46px → 24px，字贴着边），height:46px 根本不起作用。 */
  .hmc-acts {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .hmc-acts .hmc-btn { flex: none; width: 100%; }
  .hmc-btn { height: 46px; font-size: 15px; border-radius: 12px; }
  .hmc-btn.primary { box-shadow: 0 7px 18px rgba(178, 52, 41, 0.3); }
  .hmc-btn.ghost {
    height: 36px;
    background: transparent;
    border: 0;
    color: #a09080;
    font-size: 13px;
    font-weight: 600;
  }
  .hmc-btn.ghost:hover { color: #c93628; }

  /* 置顶条：收紧内边距与字号，正文压到 2 行 */
  .hmc-pin { padding: 10px 11px 10px 14px; gap: 8px 9px; grid-template-columns: 30px minmax(0, 1fr); }
  .hmc-pin-ico { width: 30px; height: 30px; border-radius: 9px; }
  .hmc-pin-ico svg { width: 17px; height: 17px; }
  .hmc-pin-head { gap: 6px; }
  .hmc-pin-tag { font-size: 10.5px; padding: 2px 6px; }
  .hmc-pin-title { font-size: 14px; }
  .hmc-pin-text { font-size: 11.5px; line-height: 1.58; margin-top: 4px; }
  .hmc-pin-quota { font-size: 11.5px; padding: 4px 10px; }

  .hmc-ticker { padding: 6px 9px; gap: 8px; }
  .hmc-tk-tags { width: 60px; }
  .hmc-tk-tag { font-size: 10.5px; }
  .hmc-tk-text { font-size: 12px; }
  .hmc-tk-more { display: none; }
}

/* 用户开了「减少动态效果」：轮播槽只停不转（脚本里已按同一 media query 判断） */
@media (prefers-reduced-motion: reduce) {
  .hmc-btn { transition: none; }
  .hmc-tk-tag,
  .hmc-tk-item { transition: none; }
}
