:root {
  --deep: #08203f;
  --blue: #123f7a;
  --gold: #e2c07f;
  --gold-lt: #f6e9d2;
  --ink: #12365f;
  --stage: 480px;
}

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

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

img { border-style: none; }

/* ============ 开屏 ============ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: var(--deep) center/cover no-repeat;
  transition: opacity .65s ease;
}
.splash.is-hide { opacity: 0; pointer-events: none; }

.splash__book {
  width: 46vw;
  max-width: 200px;
  aspect-ratio: 592 / 781;
  background: center/contain no-repeat;
  animation: bookIn 1.5s cubic-bezier(.2, .85, .2, 1) both;
}
@keyframes bookIn {
  from { opacity: 0; transform: translateY(46px) scale(.82) rotateZ(-4deg); }
  to   { opacity: 1; transform: none; }
}

.splash__tip {
  font-size: 13px;
  letter-spacing: 3px;
  color: #4072a4;
  animation: fade 1.8s ease-in-out infinite;
}
@keyframes fade { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ============ 翻页容器 ============ */
.deck {
  position: relative;
  width: 100%;
  max-width: var(--stage);
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  /* 只能点底部按钮翻页：这里关掉用户滑动，JS 仍可用 scrollTo 定位 */
  overflow: hidden;
  scrollbar-width: none;
  box-shadow: 0 0 60px rgba(0, 0, 0, .6);
}
.deck::-webkit-scrollbar { display: none; }

.page {
  position: relative;
  height: 100vh;
  height: 100dvh;
  background: var(--blue) center/cover no-repeat;
  overflow: hidden;
}
/* 详情页统一铺一张背景图（挂在里面的 .board__canvas 上，跟着内容滚）。
   设计稿是这张图本身的尺寸：1000 × 2500。下面详情页的所有尺寸都按稿上的像素写，
   再乘 --u 换算成实际长度，这样文字和背景图始终同比缩放，怎么改屏幕都不走形。
   舞台宽度是 min(100vw, --stage)，稿宽 1000，所以稿上 1px = min(.1vw, --stage/1000)。
   这里的底色是画布之外的兜底，取的是背景图最下面那圈蓝，接缝看不出来。
   必须写 background-color 而不是 background 简写，否则会把 .page 的定位一起重置掉 */
.page--entry {
  --u: min(.1vw, calc(var(--stage) / 1000));
  background-color: #88ccf9;
}

/* ============ 封面入口层：盖在翻页容器之上，必须点按钮才进入 ============ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 45;
  width: 100%;
  max-width: var(--stage);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 0 24px calc(env(safe-area-inset-bottom) + 40px);
  background: var(--blue) center/cover no-repeat;
  transition: opacity .5s ease, visibility .5s ease;
}
.gate.is-hide { opacity: 0; visibility: hidden; }

/* 封面图标和下面的期数整体上移 150px，两者的间距再收紧 50px
   （所以期数比图标多挪 50px）。这里用 relative + top 而不是 margin：
   相对定位只挪视觉位置、不参与布局计算，下面的「点击进入」按钮不会跟着动 */
.gate__book {
  position: relative;
  top: -140px;
  width: 60%;
  max-width: 250px;
  animation: coverFloat 5s ease-in-out infinite;
}
.gate__book img {
  display: block;
  width: 100%;
}
@keyframes coverFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.gate__meta {
  position: relative;
  top: -220px; /* 150 上移 + 50 收紧间距 */
  text-align: center;
}
.gate__issue {
  font-size: 17px;
  letter-spacing: 2px;
  color: #3f71a4;
}
/* 期号数字只放大，颜色跟着「第X期」一起走，整行一个色 */
.gate__issue b {
  font-size: 26px;
  margin: 0 4px;
}
.gate__range {
  margin-top: 10px;
  font-size: 15px;
  letter-spacing: 4px;
  color: #4071a4;
}

/* 按钮单独往下沉，和上面上移的图标、期数拉开距离。
   同样用 relative，不改变封面层的整体居中 */
.gate__btn {
  position: relative;
  top: 130px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.gate__btn img {
  display: block;
  width: 216px;
  max-width: 68vw;
  height: auto;
}
.gate__btn:active { transform: scale(.96); }
/* 封面停留 3 秒后由 JS 加上 is-blink，一呼一吸地闪三下就停 */
.gate__btn.is-blink img { animation: gateBlink 1.1s ease-in-out 3; }
@keyframes gateBlink {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .38; transform: scale(1.04); }
}


/* ============ 本期概要页：金框 + 居中文字 + 点击查看 ============ */
.brief {
  position: fixed;
  inset: 0;
  z-index: 44;
  width: 100%;
  max-width: var(--stage);
  margin: 0 auto;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  /* 左右收窄，给放大后的正文腾出宽度，避免 9 字一句被折行 */
  padding: calc(env(safe-area-inset-top) + 54px) 20px calc(env(safe-area-inset-bottom) + 42px);
  background: var(--blue) center/cover no-repeat;
  transition: opacity .5s ease, visibility .5s ease;
  overflow-y: auto;
}
.brief.is-show { display: flex; }
.brief.is-hide { opacity: 0; visibility: hidden; }

/* 框高度跟着文字走，不再撑满整屏。日期和正文同在这一个闭合的卡片里，
   所以边框、渐变底都挂在 box 上，body 只管内边距 */
.brief__box {
  position: relative;
  width: 100%;
}
/* 底色、边框、地图底纹都铺在下面这两层上，不挂在 box 自己身上：
   只有这样才能让三者一起从底部淡出、融进页面背景，卡片下沿不留一条硬边。
   要是把遮罩直接加在 box 上，里面的文字会跟着一起淡掉 */
.brief__box::before,
.brief__box::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 10px;
  pointer-events: none;
  /* 从这里往下逐渐透明，到卡片底沿完全化开。
     iOS 15.4 以前的微信只认带前缀的写法，两条都留着 */
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
/* 上白下蓝的底色，连边框一起淡出。
   文字是深蓝的，所以底色再怎么变都得压在浅色区间里，白字会看不见 */
.brief__box::before {
  border: 1px solid #22abff;
  background: linear-gradient(180deg, #f4fbff, #cdecff);
}
/* 县市区地图底纹。单独一层是为了能压低透明度——线条太实会和正文抢眼睛。
   图片地址由模板从 assets 带进来 */
.brief__box::after {
  background: var(--brief-map) center / contain no-repeat;
  opacity: .55;
}

.brief__head {
  /* 上面那两层是绝对定位的，会盖在普通内容上面。
     文字这两块跟着定位并抬一层，才能压在底色和底纹之上，
     也才不会被底部的淡出遮罩带着一起变淡 */
  position: relative;
  z-index: 1;
  /* 顶部留一大截空白，日期不贴着卡片上沿 */
  padding: 79px 14px 0;
  text-align: center;
}
.brief__date {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--ink);
}

.brief__body {
  position: relative;
  z-index: 1;
  padding: 15px 12px 58px;
  text-align: center;
}
.brief__line {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.45;
  letter-spacing: 1px;
  color: var(--ink);
}
.brief__line:last-child { margin-bottom: 0; }
.brief__dots {
  margin: 10px 0 13px;
  font-size: 19px;
  letter-spacing: 5px;
  color: rgba(18, 54, 95, .45);
}

.brief__btn {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.brief__btn img {
  display: block;
  width: 150px;
  max-width: 48vw;
  height: auto;
}
.brief__btn:active { transform: scale(.96); }

/* ============ 书记选择页：点名条进各自的详情页 ============ */
.roster {
  position: fixed;
  inset: 0;
  z-index: 43;
  width: 100%;
  max-width: var(--stage);
  margin: 0 auto;
  display: none;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 52px) 34px calc(env(safe-area-inset-bottom) + 26px) 18px;
  background: var(--blue) center/cover no-repeat;
  transition: opacity .5s ease, visibility .5s ease;
}
.roster.is-show { display: flex; }
.roster.is-hide { opacity: 0; visibility: hidden; }

.roster__list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.roster__list::-webkit-scrollbar { display: none; }

/* 名条：金色斜切姓名 + 蓝底职务，整条可点 */
.roster__item {
  flex: none;
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: none;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.roster__item:active { transform: scale(.985); }

.roster__name {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 13px 28px 13px 18px;
  margin-right: -15px;
  background: linear-gradient(135deg, #f8eedb, #e0c69c);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
}
.roster__title {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 11px 16px 11px 26px;
  background: linear-gradient(96deg, #17417a, #3d82c8);
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 1px;
}
/* 长职务均分两行，避免末行只剩一个字（不支持的浏览器按普通换行，无副作用） */
.roster__title b {
  font-weight: 400;
  text-wrap: balance;
}

/* 后台传了名条图就整条用图，不再套金色/蓝色底。
   手机上整条铺满偏大，收窄 60px 并居中 */
.roster__item--img {
  width: calc(100% - 60px);
  align-self: center;
  border-radius: 0;
  box-shadow: none;
}
.roster__item--img img { display: block; width: 100%; height: auto; }

.roster__end {
  flex: none;
  align-self: center;
  margin: 20px 0 4px;
  padding: 9px 32px;
  border: 1px solid rgba(226, 192, 127, .75);
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: var(--gold-lt);
  font-size: 17px;
  letter-spacing: 3px;
  cursor: pointer;
}
.roster__end:active { background: rgba(226, 192, 127, .2); }

.roster__tip {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 3px;
  color: #4072a4;
  pointer-events: none;
}

/* ============ 内页 ============ */
.sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* 长图铺满整屏。翻页按钮是浮在上面的，不在这里占位置 */
  padding: 0;
}

/* ============ 详情页：背景图上的名衔图 + 可点文字行 ============ */
/* 尺寸全部写成「设计稿像素 × var(--u)」，稿的基准见上面 .page--entry 的注释。
   行数不固定，内容多了整块滚动 */
.board {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.board::-webkit-scrollbar { display: none; }

/* 背景图和上面的内容一起滚动，才看得到稿子底部那片山——图是 1:2.5 的长条，
   手机屏没这么高，钉死在屏幕上必然裁掉一截。
   高度至少给足一整张图（稿 2500），内容更多就接着往下长，图之外由页面底色接住 */
.board__canvas {
  display: flex;
  flex-direction: column;
  min-height: calc(2500 * var(--u));
  /* 上边距 = 稿上名衔图的起始高度 112，再往上提 50（整块内容一起上移）。
     底部不留白：白卡片要一直铺到画布最下面，翻页按钮是浮在它上面的。
     safe-area 那一项是给全屏场景兜底，微信里它是 0 */
  padding: calc(62 * var(--u) + env(safe-area-inset-top)) calc(93 * var(--u)) 0;
  /* 图的地址由模板内联进 background-image，这里只管怎么铺：按宽度铺满、顶端对齐。
     写成长属性而不是 background 简写，免得把内联的地址覆盖掉 */
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

/* 顶部姓名 + 职务。放了名衔图就用图，没放就用下面两行文字顶上 */
.board__plate {
  flex: none;
  align-self: flex-start;
  margin-bottom: calc(57 * var(--u));
}
.board__plate img {
  display: block;
  /* 按高度对齐，宽度随图自己走。各位书记的职务长短不一（「涪城区委书记」六个字，
     「科技城新区党工委书记」十个字），名衔图的宽度也就不一样；
     锁死宽度会把长的那几张整体压小，字号跟别人对不上 */
  width: auto;
  height: calc(208 * var(--u));
  /* 万一哪张特别宽，等比缩进卡片宽度里，不顶出去也不压扁 */
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.board__name {
  display: block;
  font-size: calc(60 * var(--u));
  font-weight: 700;
  letter-spacing: calc(4 * var(--u));
  color: #1b6ab5;
}
.board__title {
  display: inline-block;
  margin-top: calc(14 * var(--u));
  padding-top: calc(14 * var(--u));
  border-top: 1px solid rgba(27, 106, 181, .35);
  font-size: calc(32 * var(--u));
  letter-spacing: calc(3 * var(--u));
  color: #2f7cc4;
}

/* 半透明白卡片，只有左上右三条边，向下一直铺出屏幕。
   flex: 1 0 auto 是为了内容少时也能填满剩下的高度，看着就是「没有底边」 */
.board__list {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  padding: calc(60 * var(--u)) calc(41 * var(--u)) calc(env(safe-area-inset-bottom) + 96px);
}
/* 白底和边线单独一层，只让这一层向下渐隐；文字压在它上面，颜色不受影响
   —— 设计稿里最后几条字也是实的，淡出的只有底色和边线 */
.board__list::before {
  content: '';
  position: absolute;
  inset: 0;
  border: max(1px, calc(2 * var(--u))) solid #79c2d8;
  border-bottom: 0;
  border-radius: calc(26 * var(--u)) calc(26 * var(--u)) 0 0;
  background: rgba(255, 255, 255, .72);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 86%);
          mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 86%);
  pointer-events: none;
}

/* 一行 = 金色圆点 + 文字，整行可点。不做成按钮的样子：能点哪儿由文字自己交代
   （稿上是在文字末尾写「>>>>>>」）。position 是必需的，否则会被上面那层白底盖住 */
.board__row {
  position: relative;
  display: flex;
  padding-left: calc(18 * var(--u));
  color: #152337;
  font-size: calc(42 * var(--u));
  /* 字距不是随手加的：稿上一行正好 14 个字、右端落在 851，
     14 × (42 + 4.5) = 651 = 851 − 200（正文左边），少了它每行会多挤进一两个字 */
  letter-spacing: calc(4.5 * var(--u));
  line-height: calc(62 * var(--u));
  text-decoration: none;
}
/* 条目之间隔一条浅灰虚线，左右正好是卡片的内容宽度 */
.board__row + .board__row {
  margin-top: calc(24 * var(--u));
  padding-top: calc(24 * var(--u));
  border-top: max(1px, calc(2 * var(--u))) dashed #e4e7ec;
}
/* 只有带链接的行才是 <a>，按下给一点反馈 */
a.board__row:active { opacity: .62; }

.board__dot {
  flex: none;
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  /* 跟第一行文字居中对齐：(行高 62 − 直径 20) / 2 */
  margin: calc(21 * var(--u)) calc(28 * var(--u)) 0 0;
  border-radius: 50%;
  background: #d08f3f;
}

.board__txt {
  flex: 1;
  min-width: 0;
  /* 每行拉到右边对齐，末行不拉。中文里效果最明显，长短不一的行不会显得毛边 */
  text-align: justify;
  text-justify: inter-ideograph;
}

.sheet__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* sheet 已经没有内边距了，这里自己撑开 */
  margin: calc(env(safe-area-inset-top) + 52px) 18px 18px;
  border: 1px dashed rgba(226, 192, 127, .5);
  border-radius: 16px;
  text-align: center;
}
.sheet__empty p { margin: 0; font-size: 19px; }
.sheet__empty span { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ============ 详情页底部：上一位 / 返回 / 下一位 ============ */
/* 这一排是浮在长图上的：不占版面高度，所以长图能一直铺到屏幕底部，
   按钮后面既没有深色横条，也不会露出页面的装饰背景图。
   按钮自己带蓝色阴影，压在图上照样看得清。
   1fr / auto / 1fr 三栏：返回永远在正中间，两侧箭头各居半边中心 */
.nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;
  padding: 12px 16px calc(env(safe-area-inset-bottom) + 14px);
}

/* 三颗按钮同一套模样：正圆 + 金色细边 + 灰底 + 白色内容，
   蓝色阴影把它们从背景里托起来 */
.nav__side,
.nav__menu {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1.5px solid rgba(226, 192, 127, .9);
  border-radius: 50%;
  background: #646b78;
  color: #fff;
  /* 两层阴影：外面一圈亮蓝色扩散开，才看得出是「蓝色阴影」；
     里面贴身一层深色收边，压在浅色长图上时轮廓不至于发虚。
     原来只有一层深藏青，压在深色图上几乎看不见 */
  box-shadow:
    0 9px 22px rgba(30, 95, 184, .78),
    0 2px 6px rgba(6, 22, 48, .45);
  cursor: pointer;
}
.nav__side svg { width: 27px; height: 27px; }
.nav__side:active,
.nav__menu:active { background: #757d8b; }
/* 没有上一页/下一页时压暗，也不再投影，一眼看出点不动 */
.nav__side.is-off {
  opacity: .42;
  box-shadow: none;
  cursor: default;
}
/* 按下去阴影收一点，像被按进去了。置灰那颗要排除，不然按它也会亮起阴影 */
.nav__side:not(.is-off):active,
.nav__menu:active {
  box-shadow:
    0 4px 12px rgba(30, 95, 184, .6),
    0 1px 4px rgba(6, 22, 48, .4);
}

.nav__menu {
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* 320 类窄屏：整体收小一号 */
@media (max-width: 359px) {
  .nav { gap: 5px; padding: 10px 12px calc(env(safe-area-inset-bottom) + 12px); }
  .nav__side,
  .nav__menu { width: 44px; height: 44px; }
  .nav__side svg { width: 24px; height: 24px; }
  .nav__menu { font-size: 13px; letter-spacing: 0; }
}

/* ============ 翻页动效 ============ */
/* 翻页是瞬间改 deck.scrollTop 落到目标页的（见 site.js 里 goPage 的说明），
   所以动效交给页内容器：整块内容顺着翻页方向滑进来。页面自己的底色不参与动画，
   底下不会闪出空白；位移超出的部分由 .page 的 overflow: hidden 裁掉。
   .sheet 是详情页的内容层，.end 是结尾页的，两处都要跟着翻 */
.page.is-turn-next .sheet,
.page.is-turn-next .end { animation: turnInNext .42s cubic-bezier(.22, .61, .36, 1) both; }
.page.is-turn-prev .sheet,
.page.is-turn-prev .end { animation: turnInPrev .42s cubic-bezier(.22, .61, .36, 1) both; }

@keyframes turnInNext {
  from { opacity: 0; transform: translateY(9%) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes turnInPrev {
  from { opacity: 0; transform: translateY(-9%) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* 底部那排按钮比长图晚一点、也短一点地跟上来，翻页的层次感更明显 */
.page.is-turn-next .nav,
.page.is-turn-prev .nav { animation: turnInBar .34s ease .08s both; }

@keyframes turnInBar {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* 按下箭头时缩一下，和封面的「点击查看」一个手感 */
.nav__side:not(.is-off):active,
.nav__menu:active { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  .page.is-turn-next .sheet,
  .page.is-turn-prev .sheet,
  .page.is-turn-next .end,
  .page.is-turn-prev .end,
  .page.is-turn-next .nav,
  .page.is-turn-prev .nav { animation: none; }
}

/* ============ 结尾页 ============ */
.end {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 28px calc(env(safe-area-inset-bottom) + 150px);
  /* 整组内容（装饰线、标题、期数日期、查看往期、回到第一页）一起上移 */
  transform: translateY(-150px);
  text-align: center;
}
.end__line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.end__title { margin: 0; font-size: 25px; letter-spacing: 3px; color: #1e77b5; }
.end__sub { margin: 0; font-size: 14px; color: #4072a4; }

.end__btn {
  margin-top: 8px;
  padding: 11px 34px;
  border: 1px solid #ceae5e;
  border-radius: 999px;
  color: #ceae5e;
  font-size: 15px;
  letter-spacing: 2px;
  text-decoration: none;
}
.end__btn:active { background: rgba(206, 174, 94, .16); }

.end__back {
  margin: 22px 0 0;
  font-size: 13px;
  color: #4072a4;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============ 悬浮控件 ============ */
.hud {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(100%, var(--stage));
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: opacity .4s ease, visibility .4s ease;
}
.hud__bgm {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 28, 58, .5);
  pointer-events: auto;
}
.hud__bgm img { width: 100%; height: 100%; filter: brightness(0) invert(1); opacity: .85; }
.hud__bgm.is-on img { animation: spin 4s linear infinite; }
.hud__bgm.is-off img { opacity: .4; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 往期列表 / 提示页 ============ */
.simple {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  max-width: var(--stage);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 36px) 20px 40px;
  background: linear-gradient(170deg, #2f6fb5, #123f7a 55%, #08203f);
}
.simple__title { margin: 0 0 6px; font-size: 22px; letter-spacing: 2px; }
.simple__sub { margin: 0 0 26px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.simple__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
}
.simple__row b { font-size: 16px; white-space: nowrap; }
/* 期号后面跟本期标题。标题长了就整段换到下一行，不截字 */
.simple__row-main {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
}
.simple__row-title {
  min-width: 0;
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
}
.simple__row-date { flex: none; font-size: 12px; color: rgba(255, 255, 255, .6); }
/* 白色边线、胶囊形、内部镂空 */
.simple__link {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 30px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  text-decoration: none;
}
.simple__link:active { background: rgba(255, 255, 255, .16); }
.simple__note {
  margin-top: 30px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, .25);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .72);
}
.simple__note code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .3);
  font-size: 12px;
}

/* ============ 轻提示 ============ */
/* 选择页压在最上层，提示要盖过它才看得见 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22%;
  transform: translate(-50%, 8px);
  z-index: 90;
  max-width: 74vw;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(8, 32, 63, .88);
  border: 1px solid rgba(226, 192, 127, .5);
  color: var(--gold-lt);
  font-size: 14px;
  letter-spacing: 2px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* 未发布期数的预览标记，要压在所有蒙层之上 */
.draft-flag {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  max-width: 88vw;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(196, 62, 46, .92);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
}

/* 在编稿预览（后台手机框里看到的那份）。换成蓝色和「未发布」区分开：
   一个是「这一期还没发」，一个是「这份连审都还没过」，性质不一样。
   这个标记大多出现在很窄的手机框里，所以字号和内边距都收一收 */
.draft-flag--work {
  background: rgba(26, 95, 180, .92);
  font-size: 10.5px;
  padding: 4px 11px;
}

.demo-flag {
  position: fixed;
  left: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  z-index: 40;
  max-width: 62vw;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(226, 192, 127, .92);
  color: #3b2a08;
  font-size: 10.5px;
  line-height: 1.5;
}
