/* ============================================================
   客厅里的报纸和杂志
   ============================================================ */
.life-paper, .life-mag { cursor: pointer; }

/* 报纸物件的一点呼吸：纸边轻微起伏，像有风 */
.life-paper-pad, .life-mag-pad { fill: none; pointer-events: all; }

/* ---------------- 报纸面板 ---------------- */
.pp-sheet {
  max-width: 520px;
  background: #f2e8d2;
  border-color: #33281f;
  box-shadow: inset -4px -4px #dfd0b4, inset 4px 4px #fbf4e4, 0 0 0 4px #33281f, 0 18px 40px #00000066;
}
.pp-sheet .life-head {
  background: #33281f;
  border-bottom-color: #33281f;
}
.pp-sheet .life-title { color: #f6ecd8; letter-spacing: 3px; }
.pp-sheet .life-close {
  background: #5b4a3a; color: #f6ecd8; border-color: #33281f;
  box-shadow: inset -4px -4px #3a2f28, inset 4px 4px #77604a;
}
.pp-sheet .life-close:hover { background: #6d5947; }

.pp-body { padding: 0; }
.pp-scroll { max-height: 68vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.pp-mast { padding: 16px 18px 10px; text-align: center; }
.pp-name {
  font-size: 27px; letter-spacing: 8px; color: #241c15; line-height: 1.2;
  font-weight: 700; padding-left: 8px;
}
.pp-sub { margin-top: 6px; font-size: 11px; color: #6d5b47; letter-spacing: 1px; }
.pp-rule { height: 3px; background: #33281f; margin: 8px 14px 0; }
.pp-rule.thin { height: 1px; background: #a8947a; margin: 3px 14px 0; }

.pp-list { list-style: none; margin: 0; padding: 6px 8px 12px; }
.pp-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 10px; border-bottom: 1px dashed #cbb896; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pp-item:last-child { border-bottom: 0; }
.pp-item:active, .pp-item:hover { background: #eaddc0; }
.pp-rank {
  flex: 0 0 20px; font-size: 12px; line-height: 22px; text-align: center;
  color: #b4564b; font-weight: 700;
}
.pp-rank.top { color: #fff2e2; background: #b4564b; border-radius: 2px; }
.pp-t { flex: 1; font-size: 14px; line-height: 1.55; color: #2b221a; }
.pp-go { flex: 0 0 10px; font-size: 13px; color: #b8a184; line-height: 22px; }

.pp-foot {
  padding: 9px 18px 12px; font-size: 10.5px; color: #8a7761; line-height: 1.7;
  border-top: 1px solid #d6c4a4;
}

/* 文章详情 */
.pp-article { padding: 14px 18px 20px; }
.pp-back {
  display: inline-block; padding: 7px 12px; font-size: 12px; cursor: pointer;
  background: #e6d7ba; color: #4a3a2b; border: 2px solid #c2ae8c;
}
.pp-back:active { background: #d8c6a5; }
.pp-h { margin: 14px 0 6px; font-size: 19px; line-height: 1.5; color: #221a13; }
.pp-meta { font-size: 11px; color: #8a7761; letter-spacing: .5px; }
.pp-desc {
  margin: 12px 2px 0 0; font-size: 14px; line-height: 2; color: #3a2e23;
  text-align: justify;
}
.pp-src {
  display: inline-block; margin-top: 16px; padding: 10px 14px; font-size: 13px;
  color: #f6ecd8; background: #b4564b; text-decoration: none; border: 2px solid #8f3d35;
}
.pp-src:active { background: #9c463d; }
.pp-empty { padding: 26px 18px; font-size: 13px; color: #6d5b47; line-height: 2; }

/* ---------------- 杂志面板 ---------------- */
.mg-sheet {
  width: min(460px, 100%); max-width: 460px;
  /* 整张卡片不许超出屏幕：高了就在里面滚，外轮廓始终看得全 */
  max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #131a2c; border-color: #05070d;
  box-shadow: inset -4px -4px #0d1322, inset 4px 4px #22304a, 0 0 0 4px #05070d, 0 18px 44px #00000088;
}
.mg-sheet .life-head { background: #0d1322; border-bottom-color: #05070d; }
.mg-sheet .life-title { color: #f4e8d6; letter-spacing: 3px; }
.mg-sheet .life-close {
  background: #1d2a42; color: #f4e8d6; border-color: #05070d;
  box-shadow: inset -4px -4px #131a2c, inset 4px 4px #2c3d5c;
}
.mg-sheet .life-close:hover { background: #26364f; }

.mg-sheet .life-head, .mg-sheet .mg-nav { flex: 0 0 auto; }
.mg-sheet .life-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.mg-sheet .mg-view { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mg-view { max-height: 68vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* 封面 */
.mg-cover {
  position: relative; padding: 22px 20px 36px; min-height: 330px;
  background:
    radial-gradient(120% 90% at 84% 8%, #2b3d5c 0%, #131a2c 62%),
    #131a2c;
  overflow: hidden;
}
.mg-cover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: #d9634f;
}
.mg-brand { font-size: 11px; letter-spacing: 7px; color: #9fb4d4; }
.mg-logo { margin-top: 4px; font-size: 42px; line-height: 1; letter-spacing: 4px; color: #f6ecd8; font-weight: 700; }
.mg-issue { margin-top: 8px; font-size: 10.5px; color: #7d92b4; letter-spacing: 1.5px; }
.mg-band {
  display: inline-block; margin-top: 20px; padding: 3px 9px;
  background: #d9634f; color: #fff4e6; font-size: 11px; letter-spacing: 2px;
}
.mg-poster {
  margin-top: 12px; width: 100%; height: 152px; overflow: hidden;
  border: 2px solid #2a3a55; position: relative;
}
.mg-poster svg { display: block; width: 100%; height: 100%; }
.mg-h1 { margin: 12px 0 0; font-size: 26px; line-height: 1.4; color: #fffaf0; letter-spacing: 1px; }
.mg-sub { margin-top: 8px; font-size: 12.5px; line-height: 1.85; color: #a9bcd8; }
.mg-stamp { display: inline-block; margin-top: 6px; font-size: 10.5px; color: #6f84a4; letter-spacing: 0.6px; }
.mg-toc { margin-top: 22px; padding-top: 14px; border-top: 1px solid #2a3a55; }
.mg-toc-i {
  display: flex; gap: 10px; padding: 7px 0; font-size: 12px; color: #d8e3f2;
  cursor: pointer; align-items: baseline; line-height: 1.5;
}
.mg-toc-i > span:last-child {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mg-toc-i:active { color: #ffffff; }
.mg-toc-n { color: #d9634f; font-size: 10.5px; flex: 0 0 18px; }
.mg-toc-more { margin-top: 6px; padding: 6px 0 0; border-top: 1px dashed #2a3a55; font-size: 11px; color: #7d92b4; letter-spacing: .5px; }

/* 封面主图（每天抓来的头条剧照） */
.mg-hero {
  margin-top: 12px; width: 100%; height: 168px; overflow: hidden;
  border: 2px solid #2a3a55; position: relative; background: #0a1120;
}
.mg-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-hero::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 -26px 26px -18px #131a2c;
}

/* 文章页 */
.mg-article { padding: 18px 20px 22px; }
.mg-kicker { font-size: 10.5px; letter-spacing: 3px; color: #d9634f; }
.mg-h2 { margin: 10px 0 4px; font-size: 21px; line-height: 1.5; color: #f6ecd8; }
.mg-by { font-size: 10.5px; color: #6f84a4; letter-spacing: 1px; margin-bottom: 14px; }
.mg-p { font-size: 13.5px; line-height: 2.05; color: #cdd8e8; margin: 0 0 12px; text-align: justify; }
.mg-p b { color: #ffffff; font-weight: 600; }
.mg-quote {
  margin: 16px 0; padding: 12px 14px; border-left: 3px solid #d9634f;
  background: #182238; font-size: 13px; line-height: 1.9; color: #e6eef9;
}
.mg-facts { margin: 14px 0 0; padding: 12px 14px; background: #182238; border: 1px solid #26344c; }
.mg-facts div { font-size: 12px; line-height: 2; color: #b9c8dd; }
.mg-facts b { color: #f6ecd8; font-weight: 600; margin-right: 6px; }

/* 内页配图 */
.mg-fig {
  margin: 4px 0 14px; width: 100%; max-height: 210px; overflow: hidden;
  border: 2px solid #22314a; background: #0a1120;
}
.mg-fig img { display: block; width: 100%; max-height: 208px; object-fit: cover; }

/* 原文按钮 */
.mg-src {
  display: inline-block; margin-top: 16px; padding: 10px 14px;
  background: #1d2a42; color: #e7eef8; border: 3px solid #05070d;
  box-shadow: inset -3px -3px #131a2c, inset 3px 3px #2c3d5c;
  font-size: 12.5px; text-decoration: none; letter-spacing: 1px;
}
.mg-src:active { background: #26364f; }

/* 取稿中 */
.mg-wait {
  padding: 46px 20px; text-align: center; font-size: 13px; color: #8098b8;
  letter-spacing: 1px;
}

/* 翻页条 */
.mg-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: #0d1322; border-top: 3px solid #05070d;
}
.mg-btn {
  min-width: 74px; padding: 11px 12px; font-size: 13px; cursor: pointer;
  background: #1d2a42; color: #e7eef8; border: 3px solid #05070d;
  box-shadow: inset -3px -3px #131a2c, inset 3px 3px #2c3d5c;
}
.mg-btn:disabled { opacity: .28; cursor: default; }
.mg-btn:active:not(:disabled) { background: #26364f; }
.mg-count { font-size: 11.5px; color: #8098b8; letter-spacing: 1px; }

/* 手机上放宽一点，别挤着 */
@media (max-width: 480px) {
  .pp-name { font-size: 24px; letter-spacing: 6px; }
  .pp-t { font-size: 13.5px; }
  .mg-h1 { font-size: 23px; }
  .mg-h2 { font-size: 19px; }
  .pp-scroll, .mg-view { max-height: 64vh; }
}
