/* ==========================================================================
   blocks.css — 通用页面区块：Hero · 口径说明条 · 详情头 · 折扣等级卡 · 正文导语
                独立页面外壳（落地页 / 收口页 / 404 / 关于）在 pages.css
   依赖：tokens.css / base.css / components.css / cards.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero（首页首屏）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--sp-8) var(--sp-6);
  background-color: var(--bg-1);
  background-image: var(--grad-hero);
  border-bottom: 1px solid var(--line);
}
.hero::after {                          /* 暗场网格纹理，收在 Hero 内 */
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tex-grid);
  background-size: var(--tex-grid-size);
  opacity: .5;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: 25px; margin-bottom: var(--sp-3); max-width: var(--w-prose); }
.hero .hero-lead {
  color: var(--txt-2);
  max-width: var(--w-prose);
  margin-bottom: var(--sp-5);
}
.hero .hero-acts { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.hero-stats > div { font-size: 12.5px; color: var(--txt-3); }
.hero-stats b {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--acc-400);
  font-variant-numeric: tabular-nums;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-stats b {
    background-image: var(--grad-num);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (min-width: 768px) {
  .hero { padding-block: var(--sp-10) var(--sp-7); }
  .hero h1 { font-size: 34px; line-height: 1.2; }
}

/* --------------------------------------------------------------------------
   口径说明条（不做成"提示弹窗"，纯静态说明）
   -------------------------------------------------------------------------- */
.notice {
  max-width: var(--w-prose);
  border-left: 3px solid var(--line-strong);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--txt-3);
  font-size: 13px;
  line-height: 1.85;
}
.notice p + p { margin-top: 6px; }

/* --------------------------------------------------------------------------
   详情页头部（图标 + 标题 + 折扣 + 行动）
   -------------------------------------------------------------------------- */
.ghead {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding-block: var(--sp-4) var(--sp-5);
  flex-wrap: wrap;
}
.ghead .icon-big {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: var(--r-icon);
  object-fit: cover;
  background: var(--bg-4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), var(--sh-inset);
}
.ghead .ghead-meta { flex: 1 1 260px; min-width: 0; }
.ghead h1 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: var(--sp-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
/* H1 里的版本后缀（如「送金吗喽」）：h1 是 flex，它自成一个 flex item，
   所以不需要手写间距。字号压到正文级，避免把 H1 读成一句更长的标题。 */
.ghead .ghead-ver {
  font-size: 13px;
  font-weight: 400;
  color: var(--txt-3);
}
.ghead .ghead-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--sp-4);
}
.ghead .ghead-acts { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
/* 决策区的补充说明（设计稿 04：「新区 3 · 礼包 5 · 更新 10-07 · 无需安装盒子」） */
.ghead .ghead-note {
  margin-top: var(--sp-3);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--txt-3);
}
@media (min-width: 600px) {
  .ghead .icon-big { width: 108px; height: 108px; }
  .ghead h1 { font-size: 25px; }
  .ghead .ghead-ver { font-size: 14px; }
}

/* 二维码：放在详情页右栏下载卡内（≥1280 才显示，右栏本身在更窄视口是隐藏的）。
   窄屏不显示 —— 手机上扫自己屏幕上的码没有意义，还给窄屏省版面与带宽。 */
.qr-box {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.qr-box img {
  width: 104px;
  height: 104px;
  padding: 5px;
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.qr-box span { font-size: 13px; color: var(--txt-2); line-height: 1.7; }

/* --------------------------------------------------------------------------
   折扣专区：等级卡（对应画布 03 屏）
   -------------------------------------------------------------------------- */
.zhe-levels { display: grid; gap: var(--sp-3); }
.zhe-level {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 76px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--dur-2) var(--ease-out);
}
.zhe-level:hover { box-shadow: inset 0 0 0 1px var(--acc-400); }
.zhe-level .zl-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.zhe-level .zl-info { flex: 1 1 auto; min-width: 0; }
.zhe-level .zl-name { display: block; font-size: 15px; font-weight: 700; color: var(--txt-1); }
.zhe-level .zl-count { display: block; font-size: 11.5px; color: var(--txt-3); margin-top: 2px; }
.zhe-level .zl-arrow { flex: none; color: var(--txt-3); display: flex; align-items: center; }
/* 三档色：与折扣角标同源 */
.zhe-level.is-s .zl-tag { background: var(--grad-hot); color: #1b0a12; }
.zhe-level.is-a .zl-tag { background: var(--grad-gold); color: #20140a; }
.zhe-level.is-b .zl-tag {
  background: rgba(56, 182, 255, .12);
  color: var(--cool-300);
  box-shadow: inset 0 0 0 1px rgba(56, 182, 255, .42);
}
.zhe-level.is-neutral .zl-tag { background: var(--bg-5); color: var(--txt-2); }
@media (min-width: 768px) {
  .zhe-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   正文导语（长文，收敛到唯一阅读宽度档）
   -------------------------------------------------------------------------- */
.intro {
  max-width: var(--w-prose);
  color: var(--txt-2);
  line-height: 1.9;
  margin-bottom: var(--sp-4);
}


/* --------------------------------------------------------------------------
   右侧栏卡片（XL 粘性栏用）
   -------------------------------------------------------------------------- */
.aside-card {
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.aside-card > h2 {
  font-size: 15px;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.aside-card > h2::before {
  content: "";
  width: 3px;
  height: 13px;
  background: var(--acc-400);
  border-radius: 2px;
}
.aside-card .aside-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.aside-card .aside-list li:last-child { border-bottom: 0; }
.aside-card .aside-list li > a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aside-card .aside-list li > .badge-discount { flex: none; }
.aside-card .aside-list .n { margin-left: auto; color: var(--txt-3); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   游戏截图条（详情页正文，简介下方）
   竖图 400×~864，横排；窄屏横向滚动而不是压成小方块 ——
   截图缩太小就失去「看画面」的意义，宁可让用户滑。
   宽度走 --shot-w 变量（由 <img> 的 width 属性给出），不写死。
   -------------------------------------------------------------------------- */
.shot-strip {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot-strip img {
  flex: none;
  height: 320px;
  width: auto;
  border-radius: var(--r-sm);
  background: var(--bg-4);
  border: 1px solid var(--line);
  object-fit: cover;
  scroll-snap-align: start;
}
/* 窄屏：图略高一些好滑，但不要高到一屏只剩图 */
@media (max-width: 599px) {
  .shot-strip img { height: 380px; }
}
/* 滚动条：细一点，别抢视觉 */
.shot-strip::-webkit-scrollbar { height: 6px; }
.shot-strip::-webkit-scrollbar-thumb { background: var(--bg-6); border-radius: 3px; }
