/* =========================================================
   site style — clean single source
   Structure: tokens → reset → layout → components → responsive
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --site-text: #102f4f;
  --site-text-deep: #0b2f55;
  --site-link: #0f4f86;
  --site-accent: #e53935;
  --site-accent-dark: #c8102e;
  --site-blue: #2f75b5;
  --site-blue-soft: #e3f0fb;
  --site-bg: #f0f7ff;
  --site-white: #ffffff;
  --site-ball-red: #e71607;
  --site-ball-blue: #2389e9;
  --site-ball-green: #1fb61d;
  --site-max-width: 800px;
  --site-nav-height: 56px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
span,
h1, h2, h3, h4, h5, h6,
p, a, ul, ol, li,
table, tbody, thead, tr, th, td,
nav, header, footer, section, article,
img, button, input, label {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

ul, ol { list-style: none; }
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
}
img {
  border: 0;
  vertical-align: middle;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font-family: inherit;
  outline: none;
}
button {
  cursor: pointer;
  background: none;
}
input[type="text"],
input[type="button"],
input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}

/* ---------- 3. Layout ---------- */
html {
  height: 100%;
  background: var(--site-bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  max-width: var(--site-max-width);
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  background: var(--site-white);
  color: var(--site-text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: break-word;
  overflow-x: hidden;
  padding-bottom: calc(var(--site-nav-height) + 14px + env(safe-area-inset-bottom, 0px));
}

/* PC：强制居中限宽，避免壳页/其它样式把正文拉满屏 */
html {
  background: #f3f4f6;
}
@media screen and (min-width: 801px) {
  /* 仅电脑加载背景图；手机不写 background-image，不会下载 */
  html {
    background-color: #f3f4f6;
  }
  html::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("../bg.jpg");
    background-repeat: repeat;
    background-position: left top;
    background-size: auto;
    opacity: 0.8;
  }
  body,
  body.app-shell {
    max-width: var(--site-max-width) !important;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #app-root,
  #app-main {
    max-width: 100%;
  }
  /* 桌面端把偏大的 pt 字号压回适合 800 宽的尺寸 */
  .duilianpt td { font-size: 16px; }
  .duilianpt th { font-size: 15px; }
  .duilianpt .zl { font-size: 17px; }
  .duilianpt1 td { font-size: 16px; }
  .duilianpt1 th { font-size: 15px; }
  .duilianpt1 .zl { font-size: 18px; }
  .gongshi td { font-size: 16px; }
  .c1785885284 { font-size: 18px; }
  .neon-marquee .latest-unlock {
    font-size: 18px;
  }
  .neon-marquee .latest-unlock .unlock-sx.unlock-sx-pick {
    font-size: 26px;
  }
  .neon-marquee .latest-unlock .unlock-sx.unlock-sx-groups {
    font-size: 20px;
  }
}

/* ---------- 4. Components ---------- */

/* Box shell */
.box {
  margin: 5px 0;
  border-radius: 5px;
  overflow: hidden;
  background-image: linear-gradient(
    to right,
    var(--site-accent),
    var(--site-blue-soft),
    var(--site-bg),
    var(--site-blue-soft),
    var(--site-accent)
  );
}
.pad { padding: 4px; }

/* Section title */
.list-title,
#yxym .list-title {
  height: 38px;
  line-height: 38px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--site-text-deep);
  background: linear-gradient(180deg, var(--site-accent) 0%, var(--site-bg) 100%);
  border-bottom: 1px solid var(--site-accent);
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

/* Post list (gs1/gs2/gs3) */
.post-list { text-align: center; }
.post-list li {
  padding: 3px;
  background: var(--site-white);
}
.post-list a {
  display: block;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border: 1px solid var(--site-accent);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, var(--site-bg) 48%, var(--site-blue-soft) 100%);
  box-shadow: 0 2px 6px rgba(36, 95, 157, 0.12);
  font-size: 20px;
  font-weight: 700;
  color: var(--site-text-deep);
}
.post-list a .ci {
  font-size: 25px;
  color: var(--site-link);
}
.gs1-section .post-list a .ci,
.gs2-section .post-list a .ci,
.gs3-section .post-list a .ci {
  color: inherit;
}

/* Gongshi table */
.gongshi { color: var(--site-text-deep); }
.gongshi th {
  height: 40px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--site-text-deep);
  background: var(--site-accent);
  border: 1px solid var(--site-accent);
}
.gongshi td {
  width: 33.33%;
  height: auto;
  padding: 2px;
  text-align: center;
  font-size: 18pt;
  font-weight: 700;
  border: 1px solid var(--site-accent);
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
}
.gongshi td a {
  display: block;
  color: var(--site-link);
  font-weight: 700;
}
.gongshi img { margin-right: 8px; }

/* Duilian tables */
.duilianpt,
.duilianpt1 {
  table-layout: auto;
  color: var(--site-text-deep);
  border-radius: 5px;
  overflow: hidden;
  text-align: center;
  background: var(--site-white);
}
.duilianpt tr { height: 35px; }
.duilianpt1 tr { height: 38px; }
.duilianpt td,
.duilianpt th,
.duilianpt1 td,
.duilianpt1 th {
  font-weight: 700;
  border: 1px solid var(--site-accent);
}
.duilianpt td,
.duilianpt th { font-size: 18pt; }
.duilianpt1 td { font-size: 18pt; }
.duilianpt1 th { font-size: 17pt; }
.duilianpt .zl { font-size: 20pt; }
.duilianpt1 .zl { font-size: 22pt; }
.duilianpt a { color: var(--site-link); }

/* Zodiac attribute tables (footer) */
.sx { background: var(--site-blue-soft); }
.sx th {
  height: auto;
  min-height: 34px;
  padding: 6px 4px;
  background: var(--site-blue-soft);
  color: var(--site-text-deep);
  font-size: clamp(15px, 4.2vw, 20px);
  white-space: nowrap;
}
.sx td {
  padding: 6px 3px;
  text-align: center;
  border: 1px solid #b8d5f2;
  background: var(--site-white);
  font-size: clamp(14px, 3.8vw, 18px);
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.sx td.a-left {
  text-align: left;
  padding-left: 4px;
  padding-right: 4px;
  font-size: clamp(12px, 3.2vw, 17px);
}
.sx span,
.sx span.red {
  display: inline-block;
  height: clamp(18px, 4.8vw, 24px);
  line-height: clamp(18px, 4.8vw, 24px);
  margin: 0 1px;
  padding: 0 3px;
  font-size: clamp(12px, 3.2vw, 15px);
  color: #fff;
  background: var(--site-ball-red);
  vertical-align: middle;
  white-space: nowrap;
  box-sizing: border-box;
}
.sx span.blue { background: var(--site-ball-blue); }
.sx span.green { background: var(--site-ball-green); }
ul.sx1 {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.sx1 li {
  float: none;
  width: 33.333%;
  padding: 6px 2px;
  box-sizing: border-box;
  text-align: center;
}
ul.sx1 li dl {
  margin: 0;
  padding: 0;
}
ul.sx1 li dl dt {
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-size: clamp(13px, 3.6vw, 17px);
  line-height: 1.25;
}
ul.sx1 li dl dd {
  margin: 3px 0 0;
  padding: 0;
  white-space: nowrap;
  line-height: 1.2;
}
ul.sx1 li dl dt img {
  width: clamp(28px, 8vw, 42px);
  height: clamp(28px, 8vw, 42px);
  margin: 0 2px;
  vertical-align: middle;
}

/* Footer fragment — larger base, no wrap, fluid shrink on small screens */
.footer-fragment,
.footer-fragment *,
.footer-fragment .list-title,
.footer-fragment .sx,
.footer-fragment .sx * {
  font-weight: 400;
  text-shadow: none;
  box-shadow: none;
}
.footer-fragment {
  font-size: clamp(14px, 3.8vw, 18px);
  margin-top: 0;
}
/* 属性知识紧贴上方帖子分区，去掉中间白缝 */
.gs2-section:has(+ .footer-fragment),
.gs2-section:has(+ .amct-fragment) {
  margin-bottom: 0;
  padding-bottom: 0;
}
.gs2-section + .footer-fragment,
.gs2-section + .amct-fragment,
.footer-fragment {
  margin-top: 0;
  padding-top: 0;
}
.amct-fragment .list-title {
  height: auto;
  min-height: 42px;
  line-height: 1.3;
  padding: 8px 4px;
  font-size: clamp(18px, 5vw, 24px) !important;
  box-sizing: border-box;
}
.footer-fragment .list-title {
  height: auto;
  min-height: 42px;
  line-height: 1.3;
  padding: 8px 4px;
  font-size: clamp(18px, 5vw, 24px) !important;
  box-sizing: border-box;
}
.footer-fragment.box {
  overflow: visible;
}
.footer-fragment .gongshi {
  width: 100%;
  table-layout: auto;
}
.footer-fragment .gongshi > tbody > tr > td,
#yxym.footer-fragment .gongshi > tbody > tr > td {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  overflow: visible;
  white-space: normal !important;
  word-break: normal;
  padding: 0;
}
.footer-fragment .sx {
  width: 100%;
  overflow: visible;
}
.footer-fragment .sx td,
.footer-fragment .sx th {
  height: auto;
  overflow: visible;
  white-space: nowrap !important;
  word-break: keep-all;
  overflow-wrap: normal;
  word-wrap: normal;
  text-overflow: clip;
}
.footer-fragment .gongshi th,
.footer-fragment .sx th {
  font-size: clamp(15px, 4.2vw, 20px);
}
.footer-fragment ul.sx1 li dl dd,
.footer-fragment ul.sx1 li dl dt {
  white-space: nowrap !important;
}
.footer-fragment .sx table {
  width: 100%;
  table-layout: fixed;
}
.footer-fragment .sx col[width="50"] {
  width: clamp(44px, 12vw, 64px);
}
/* 波色 / 合数单双：号码自动换行，完整显示 */
.footer-fragment .sx-wrap-table {
  width: 100%;
  table-layout: fixed;
}
.footer-fragment .sx-wrap-table td:first-child {
  width: clamp(44px, 12vw, 64px);
  white-space: nowrap !important;
  vertical-align: top;
  padding-top: 8px;
}
.footer-fragment .sx-wrap-table td.a-left {
  width: auto;
  white-space: normal !important;
  word-break: normal;
  overflow: visible;
  line-height: 1.45;
  vertical-align: top;
}
.footer-fragment .sx-wrap-table .sx-balls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 2px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.footer-fragment .sx-wrap-table .sx-balls span {
  flex: 0 0 auto;
  margin: 0;
}
.copyright {
  width: 80%;
  margin: 0 auto 5px;
  padding-bottom: 5px;
  text-align: center;
  border-bottom: 1px solid #000;
  color: #000;
}

/* KJ widget (index) */
.kj-widget-wrap {
  background: var(--site-white);
  border: 2px solid #ef1b1b;
  border-radius: 0;
  box-shadow: 0 6px 16px rgba(63, 127, 189, 0.16);
  overflow: hidden;
}
.kj-top-banner,
#yxym .list-title.kj-top-banner {
  background: var(--site-accent);
  color: #fff;
  text-shadow: none !important;
  box-shadow: none;
}
/* 开奖区块下：充值说明 / 高手认证 */
.home-info-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 8px;
  background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
  border-top: 1px dashed #f0c8a0;
}
.home-info-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 44px;
  max-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.15s ease;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}
.home-info-link:hover {
  color: #fff;
}
.home-info-link:active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.home-info-link-cz {
  color: #fff;
  background: linear-gradient(145deg, #ffb74d 0%, #f57c00 55%, #e65100 100%);
  border: 1px solid #ef6c00;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.home-info-link-gs {
  color: #fff;
  background: linear-gradient(145deg, #64b5f6 0%, #1e88e5 55%, #1565c0 100%);
  border: 1px solid #0d47a1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

/* 历史开奖记录 */
.kjls-head {
  padding: 10px 12px 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.kjls-head b { color: #c8102e; }
.kjls-list { margin: 0; padding: 0; list-style: none; }
.kjls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 10px 12px;
  border-top: 1px solid #f3d0d4;
  background: #fff;
}
.kjls-row:nth-child(odd) { background: #fffafa; }
.kjls-meta {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.kjls-issue {
  color: #c8102e;
  font-weight: 800;
  font-size: 16px;
}
.kjls-date { color: #64748b; font-size: 13px; }
.kjls-balls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px;
}
.kjls-ball {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 34px;
  line-height: 1;
}
.kjls-ball b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.kjls-ball i {
  margin-top: 3px;
  font-style: normal;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}
.kjls-red b { background: var(--site-ball-red); }
.kjls-blue b { background: var(--site-ball-blue); }
.kjls-green b { background: var(--site-ball-green); }
.kjls-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 30px;
  color: #c8102e;
  font-weight: 900;
  font-size: 16px;
}
.kjls-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 14px 10px 18px;
}
.kjls-pager a, .kjls-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.kjls-pager a {
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}
.kjls-pager span.is-cur {
  color: #fff;
  background: #c8102e;
  border: 1px solid #c8102e;
}
.kjls-empty {
  margin: 20px 12px;
  padding: 28px 16px;
  text-align: center;
  color: #9f1239;
  font-weight: 700;
}

/* 首页重要通知（至尊神贴上方，同开奖框样式） */
.home-notice-wrap {
  margin-top: 10px;
}
.home-notice-body {
  padding: 14px 12px 16px;
  background: #fff;
  text-align: center;
}
.home-notice-lead {
  margin: 0 0 12px;
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 800;
  color: #c62828;
  line-height: 1.55;
}
.home-notice-cta {
  margin: 0 0 12px;
}
.home-notice-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 800;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(145deg, #5b9dff 0%, #1565c0 100%);
  border: 1px solid #0d47a1;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.28);
}
.home-notice-note {
  margin: 0;
  padding: 10px 10px;
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 700;
  line-height: 1.6;
  color: #000000;
  background: #f7f9fc;
  border-left: 3px solid #90caf9;
  text-align: left;
}

/* 首页紧急公告卡（重要通知下方） */
.home-urgent-wrap {
  margin: 10px 8px 0;
}
.home-urgent-card {
  overflow: hidden;
  border: 2px solid #e5b32a;
  border-radius: 14px;
  background: #fdfbf7;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.home-urgent-head {
  padding: 14px 8px;
  text-align: center;
  color: #fff;
  font-size: clamp(16px, 4.8vw, 21px);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ff4e50 0%, #d82b2b 50%, #b30000 100%);
  box-shadow: 0 3px 10px rgba(216, 43, 43, 0.3);
}
.home-urgent-body {
  padding: 10px 8px 12px;
}
.home-urgent-block {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  box-sizing: border-box;
}
.home-urgent-block:last-child {
  margin-bottom: 0;
}
.home-urgent-block strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.45;
}
.home-urgent-block p {
  margin: 0;
  text-indent: 1.8em;
  text-align: justify;
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 700;
  line-height: 1.6;
  color: #444;
}
.home-urgent-red {
  background: #fff9f9;
  border-left: 4px solid #d82b2b;
}
.home-urgent-red strong {
  color: #d82b2b;
}
.home-urgent-gold {
  background: #fffdf5;
  border-left: 4px solid #e5b32a;
}
.home-urgent-gold strong {
  color: #c49619;
}
.home-urgent-kefu {
  margin-top: 4px;
  padding: 12px 10px 4px;
  text-align: center;
}
.home-urgent-kefu .home-notice-note + .home-notice-note {
  margin-top: 8px;
}

/* 静态说明页 */
.page-static-doc {
  padding-bottom: calc(var(--site-nav-height) + 28px + env(safe-area-inset-bottom, 0px));
}
.static-doc-wrap {
  background: var(--site-white);
}
.static-doc-body {
  padding: 12px 8px 16px;
}
.static-doc-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 12px 28px;
}
.static-doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  color: var(--site-text-deep);
  background: #eef5fc;
  border: 1px solid #b8d4ef;
}
.static-doc-btn.primary {
  color: #fff;
  background: linear-gradient(145deg, #5b9dff 0%, #1565c0 100%);
  border-color: #0d47a1;
}
/* 高手认证页：偏大字号、高对比色，方便中老年阅读 */
.gsrz-doc {
  font-size: clamp(17px, 4.6vw, 20px);
  line-height: 1.85;
}
.gsrz-doc .gsrz-block {
  margin: 0 0 18px;
  padding: 14px 12px;
  border: 2px solid #e8b4b0;
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 2px 8px rgba(180, 80, 90, 0.08);
}
.gsrz-doc .gsrz-block:nth-child(2) {
  border-color: #b8d4ef;
  background: #f8fbff;
}
.gsrz-doc .gsrz-h {
  margin: 0 0 14px;
  padding: 12px 12px;
  font-size: clamp(17px, 4.5vw, 21px);
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
  background: linear-gradient(145deg, #ef5350 0%, #c62828 100%);
  border-radius: 8px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.gsrz-doc .gsrz-block:nth-child(2) .gsrz-h {
  background: linear-gradient(145deg, #42a5f5 0%, #1565c0 100%);
}
.gsrz-doc .gsrz-p {
  font-size: inherit;
  line-height: inherit;
  color: #1a1a1a;
}
.gsrz-doc .gsrz-p p {
  margin: 0 0 14px;
  color: #222;
}
.gsrz-doc .gsrz-p p > b:first-child {
  color: #c62828;
  font-size: 1.08em;
}
.gsrz-doc .gsrz-block:nth-child(2) .gsrz-p p > b:first-child {
  color: #1565c0;
}
.gsrz-doc .gsrz-em {
  color: #c62828;
  font-weight: 800;
}
.gsrz-doc .gsrz-key {
  color: #0d47a1;
  font-weight: 800;
  background: #e3f2fd;
  padding: 0 0.15em;
  border-radius: 3px;
}
.gsrz-doc .gsrz-num {
  color: #e65100;
  font-weight: 800;
  font-size: 1.06em;
}
.gsrz-doc .gsrz-money {
  color: #ad1457;
  font-weight: 800;
  font-size: 1.08em;
  background: #fce4ec;
  padding: 0 0.2em;
  border-radius: 3px;
}
.gsrz-doc .gsrz-ok {
  color: #2e7d32;
  font-weight: 800;
}
.gsrz-doc .gsrz-warn-word {
  color: #b71c1c;
  font-weight: 800;
}
.gsrz-doc .gsrz-ol {
  margin: 0 0 14px;
  padding: 10px 10px 10px 1.6em;
  list-style: decimal;
  background: #fff8e7;
  border: 1px solid #ffe082;
  border-radius: 8px;
}
.gsrz-doc .gsrz-block:nth-child(2) .gsrz-ol {
  background: #e8f5e9;
  border-color: #a5d6a7;
}
.gsrz-doc .gsrz-ol li {
  margin: 0 0 10px;
  padding-left: 4px;
  list-style: decimal;
  color: #333;
  font-size: 1em;
  line-height: 1.75;
}
.gsrz-doc .gsrz-ol li::marker {
  color: #ef6c00;
  font-weight: 800;
}
.gsrz-doc .gsrz-block:nth-child(2) .gsrz-ol li::marker {
  color: #2e7d32;
}
.gsrz-doc .gsrz-declare {
  padding: 12px 12px;
  border-left: 5px solid #c8102e;
  background: #fff1f0;
  color: #b71c1c;
  font-weight: 800;
  font-size: 1.05em;
  line-height: 1.75;
  border-radius: 0 8px 8px 0;
}
.gsrz-doc .gsrz-declare .gsrz-num,
.gsrz-doc .gsrz-declare .gsrz-money {
  font-size: 1.12em;
}
#fixed-kj-strip + .box#yxym:not(.kj-widget-wrap) {
  margin-top: 30px;
}
#fixed-kj-strip + [data-include] > .box:first-child {
  margin-top: 0;
}

/* Macau zbct image grid (index template) */
.img10js2045MainItem {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  background: var(--site-white);
}
.img10js2045ImgItem {
  flex-basis: 33%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4em 0;
  color: #000;
}
.img10js2045ImgItem > div {
  font-family: "Microsoft YaHei", sans-serif;
  flex-basis: 90%;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  border-radius: 1em;
  text-align: center;
  font-weight: normal;
  font-size: 19px;
  line-height: 2em;
  cursor: pointer;
}

/* BBS body text */
.big-txt p {
  margin: 0 0 1.4em;
  line-height: 2.4;
}
.big-txt p:last-of-type { margin-bottom: 0.8em; }

/* Floating share (above float tools) */
.wechat-share-widget {
  position: fixed;
  right: 14px;
  bottom: calc(var(--site-nav-height) + 130px);
  z-index: 10025;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wechat-share-widget * { box-sizing: border-box; }
.share-float-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(45deg, #ff6b6b, #ee5a24, #e53935, #fdcb6e);
  background-size: 300% 300%;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(255, 107, 107, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: share-gradient-shift 4s ease infinite, share-float-bounce 3s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.wechat-share-widget.is-show .share-float-btn {
  display: flex;
}
.share-float-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 18px rgba(255, 107, 107, 0.5);
  border-radius: 14px;
}
.share-float-btn:active {
  transform: translateY(-2px) scale(1.02);
}
.share-float-btn .share-icon {
  width: 16px;
  height: 16px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.share-float-btn:hover .share-icon {
  transform: scale(1.15) rotate(-8deg);
}
@keyframes share-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes share-float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}
.share-modal-overlay.show {
  display: flex;
  opacity: 1;
}
.share-modal-content {
  width: 90%;
  max-width: 380px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.share-modal-overlay.show .share-modal-content {
  transform: scale(1) translateY(0);
}
.share-modal-header {
  background: linear-gradient(135deg, #09c45d, #05c456);
  color: #fff;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.share-modal-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  position: relative;
  z-index: 1;
}
.share-modal-body { padding: 20px; }
.share-link-container {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  word-break: break-all;
  max-height: 120px;
  overflow-y: auto;
  font-size: 14px;
  border: 1px solid #dee2e6;
  text-align: left;
  white-space: pre-line;
  line-height: 1.6;
  color: #222;
}
.share-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.share-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  font: inherit;
  color: inherit;
}
.share-platform:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.share-platform:active { transform: translateY(0); }
.platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}
.share-platform:hover .platform-icon { transform: scale(1.1); }
.platform-icon.wechat { background: linear-gradient(145deg, #09b83e, #07a832); }
.platform-icon.copy { background: linear-gradient(145deg, #007bff, #0056b3); }
.platform-icon.close { background: linear-gradient(145deg, #6c757d, #545b62); }
.platform-icon img {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.platform-text {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}
.countdown-info {
  text-align: center;
  font-size: 14px;
  color: #666;
  padding: 8px 12px;
  background: #fff3cd;
  border-radius: 20px;
  border: 1px solid #ffeaa7;
}
.countdown-number {
  color: #ff4500;
  font-weight: bold;
}

/* Float tools: refresh + back-to-top (match reference site) */
#page-float-tools {
  position: fixed;
  right: 5px;
  bottom: calc(var(--site-nav-height) + 14px);
  z-index: 10020;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: bottom 0.2s ease;
}
#page-float-tools .page-float-slot {
  width: 50px;
  height: 50px;
  box-sizing: border-box;
}
.page-float-icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #188ff4;
  cursor: pointer;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  box-shadow: none;
}
.page-float-icon-surface {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.18);
}
.page-float-icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
}
/* 点过后不要残留黑圈 / 焦点环 */
.page-float-icon-button:focus,
.page-float-icon-button:focus-visible,
.page-float-icon-button:active {
  outline: none !important;
  box-shadow: none !important;
}
.page-float-icon-button:focus .page-float-icon-surface,
.page-float-icon-button:focus-visible .page-float-icon-surface,
.page-float-icon-button:active .page-float-icon-surface {
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.18);
}
#page-float-tools #back-to-top {
  display: none;
}
#page-float-tools.is-page-scrolling #refresh-page,
#page-float-tools.is-page-scrolling #back-to-top {
  opacity: 0.62;
  transform: translateX(calc(100% - 12px));
}

/* Bottom nav + search — 4 equal columns, page-frame width */
#site-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  height: calc(var(--site-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 10000;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  background: #ffffff;
  border-top: 1px solid #d0d0d0;
  box-shadow: 0 -1px 0 #e5e5e5;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  box-sizing: border-box;
}
#site-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 6px 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c8102e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
#site-bottom-nav .nav-icon {
  display: block;
  width: 22px;
  height: 22px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}
#site-bottom-nav .nav-icon-home {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5V21a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1v-10.5z'/%3E%3C/svg%3E");
}
#site-bottom-nav .nav-icon-service {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v8z'/%3E%3Cpath d='M8 9h8M8 13h5'/%3E%3C/svg%3E");
}
#site-bottom-nav .nav-icon-user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7z'/%3E%3Cpath d='M5 20c1.5-3.5 4-5 7-5s5.5 1.5 7 5'/%3E%3C/svg%3E");
}
#site-bottom-nav .nav-icon-search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4a7 7 0 1 1 0 14 7 7 0 0 1 0-14z'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}
#site-bottom-nav .nav-label {
  display: block;
  color: #c8102e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
#site-bottom-nav .nav-item:active {
  background: #fff5f5;
}

#site-search-mask {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 12px;
  box-sizing: border-box;
}
#site-search-mask.show { display: flex; }
#site-search-mask .search-panel {
  width: 92%;
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  padding: 16px 14px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
#site-search-mask .search-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--site-text-deep);
  text-align: center;
}
#site-search-mask .search-field { margin: 0 0 10px; }
#site-search-mask .search-field label {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  color: #555;
  font-weight: 700;
}
#site-search-mask .search-field input {
  width: 100%;
  height: 40px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 15px;
  background: #fff;
  color: #222;
}
#site-search-mask .search-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
#site-search-mask .search-actions button {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
}
#site-search-mask .search-submit {
  background: #1565c0;
  color: #fff;
}
#site-search-mask .search-cancel {
  background: #eef1f4;
  color: #333;
}

/* ---------- Header ---------- */
.site-float-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  max-width: var(--site-max-width);
  margin: 0 auto;
  height: 55px;
  z-index: 9999;
  background: linear-gradient(180deg, #c8102e 0%, #e85d70 48%, #f6c2cc 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(101, 22, 40, 0.18);
}
/* 固定顶栏占位：只留这一处，避免 body padding + margin-top 叠出空白 */
.site-header-offset {
  height: 55px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
  font-size: 0;
}
/* 顶栏下方第一块内容贴齐，去掉 .box 默认 5px 顶距 */
.site-header-offset + #fixed-kj-strip,
.site-header-offset + .kj-widget-wrap,
.site-header-offset + .box,
.site-header-offset + .bbs-top-wrap {
  margin-top: 0 !important;
}
.page-home .site-header-offset + .box {
  margin-bottom: 0 !important;
}
.home-promo-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
.site-float-header .left-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 6px;
  line-height: 0;
  text-decoration: none;
}
.site-float-header .left-logo {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}
.site-float-header .home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-right: 4px;
  border-radius: 6px;
  background: #a50f24;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(101, 22, 40, 0.25);
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
}
.site-float-header .right-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

/* ---------- KJ strip variants ---------- */
/* 占位改由 .site-header-offset，不再给 body 加 padding-top */
.page-post {
  padding-top: 0;
}
.page-home {
  padding-top: 0;
}
.page-post .site-header-offset {
  height: 97px; /* 55 顶栏 + 42 开奖条 */
}
.page-post #fixed-kj-strip {
  position: fixed;
  top: 55px;
  left: 0;
  right: 0;
  width: auto;
  max-width: var(--site-max-width);
  margin: 0 auto !important;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  z-index: 9998;
  display: block;
  background: #fff;
  overflow: hidden;
  padding: 0 !important;
  line-height: 0;
  font-size: 0;
  box-sizing: border-box;
}
.page-post #fixed-kj-strip iframe {
  width: 100%;
  height: 42px;
  border: 0;
  display: block;
  vertical-align: top;
  background: #fff;
  margin: 0;
  padding: 0;
}
.page-post .bbs-top-wrap {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  font-size: 0;
}
.page-post .bbs-top-wrap > .box,
.page-post .bbs-top-wrap > .box.pad,
.page-post .bbs-top-wrap > table.duilianpt {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.5;
}
.page-post .bbs-slogan-row,
.page-post .bbs-slogan-row td {
  height: auto !important;
}
.page-post .bbs-slogan-row td {
  font-size: clamp(15px, 4.3vw, 18px) !important;
  line-height: 1.35 !important;
  height: auto !important;
  padding: 7px 8px !important;
  text-align: center !important;
  vertical-align: middle !important;
}
.page-post .apk-post-banner-row td {
  font-size: 14px !important;
  line-height: 1.5 !important;
  height: auto !important;
  padding: 6px 10px !important;
  text-align: center !important;
  vertical-align: middle !important;
}
.apk-post-banner-link {
  color: #c8102e;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  vertical-align: middle;
}
.apk-post-banner-link .apk-shouzhi {
  width: auto;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
}
#apk-float{
  display:none;
  position:fixed;
  left:0;
  right:auto;
  top:auto;
  bottom:calc(84px + env(safe-area-inset-bottom, 0px));
  z-index:10020;
  width:38px;
  height:42px;
  padding:0;
  background:transparent;
  box-shadow:none;
  border-radius:0;
  transition:transform .8s cubic-bezier(.22,1,.36,1),opacity .8s cubic-bezier(.22,1,.36,1);
  will-change:transform,opacity;
}
#apk-float.show{display:block}
#apk-float.is-tucked{
  opacity:.62;
  transform:translateX(calc(-100% + 8px));
}
#apk-float a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:38px;
  height:42px;
  box-sizing:border-box;
  padding:0 3px 1px 5px;
  color:#fff;
  text-decoration:none;
  font:700 11px/1.1 "Microsoft YaHei","PingFang SC",sans-serif;
  letter-spacing:0;
  text-align:center;
  text-shadow:0 1px 1px rgba(0,0,0,.28);
  background:linear-gradient(180deg,#ff8a7a 0%,#ff3b30 38%,#e10600 72%,#c10b12 100%);
  border-radius:0 21px 21px 0;
  border:1px solid rgba(255,255,255,.4);
  border-left:0;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.42),inset 0 -3px 4px rgba(0,0,0,.12),2px 3px 8px rgba(160,0,0,.28);
}
@media screen and (min-width:801px){
  #apk-float{left:max(0px, calc(50% - 400px));right:auto}
}
.page-post #fixed-kj-strip + [data-include],
.page-post #fixed-kj-strip + [data-include] > .box:first-child,
.page-post #fixed-kj-strip + .bbs-top-wrap,
.page-post #fixed-kj-strip + .bbs-top-wrap > .box:first-child {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.page-home #fixed-kj-strip {
  position: fixed;
  left: 0;
  right: 0;
  top: 55px;
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  z-index: 9998;
  display: none;
  background: transparent;
  pointer-events: none;
}
.page-home #fixed-kj-strip.show {
  display: block;
  pointer-events: auto;
}
.page-home #fixed-kj-strip iframe {
  width: 100%;
  height: 44px;
  border: 0;
  display: block;
  background: transparent;
}

/* ---------- Humor chart ---------- */
.humor-chart-wrap { background: #fff; }
.humor-chart-image {
  width: 100%;
  display: block;
  height: auto;
  border: 0;
}
.humor-chart-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 0 2px;
}
.humor-chart-btn {
  border: 1px solid #f0b8b4;
  background: #fff5f5;
  color: #002855;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.3;
  width: 100%;
  min-width: 0;
  cursor: pointer;
}
.humor-chart-btn.active {
  background: #c8102e;
  color: #fff;
  border-color: #c23f56;
}

/* ---------- ZBCT modal ---------- */
.zbct-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.zbct-modal.show { display: flex; }
.zbct-modal-panel {
  width: min(92vw, 520px);
  max-height: 88vh;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.zbct-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #ffe8e6;
  color: #002855;
  font-weight: 700;
}
.zbct-modal-close {
  border: 0;
  background: #c8102e;
  color: #fff;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
}
.zbct-modal-body {
  padding: 8px;
  text-align: center;
  overflow: auto;
  max-height: calc(88vh - 54px);
  background: #fff;
}
.zbct-modal-body img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 规律公式 ---------- */
.formula-charts-section {
  margin: 0 0 6px;
  overflow: hidden;
}
.formula-charts-section .list-title {
  height: auto;
  min-height: 42px;
  line-height: 1.35;
  padding: 8px 6px;
  font-size: clamp(16px, 4.4vw, 22px) !important;
  letter-spacing: 0.06em;
  box-sizing: border-box;
}
.formula-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  padding: 8px 0 8px;
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}
.formula-tab {
  appearance: none;
  flex: 0 0 20%;
  width: 20%;
  max-width: 20%;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: 8px 0;
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  background: #1e4b7b;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.formula-tab.is-on {
  background: linear-gradient(180deg, #e53935 0%, #c8102e 100%);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.35);
}
.formula-tab:active {
  transform: scale(0.96);
}
.formula-stage {
  display: block;
  width: 100%;
  padding: 0 0 8px;
  margin: 0;
  background: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.formula-stage > img {
  width: 100%;
  height: auto;
  display: block;
  background: #f4f4f4;
  pointer-events: none;
}

/* ---------- Inspiration gallery ---------- */
.inspiration-box {
  margin-bottom: 0;
}
.inspiration-gallery {
  width: 100%;
  background: #fff;
  overflow: hidden;
}
.inspiration-gallery img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: opacity 0.18s ease;
  opacity: 1;
}
.inspiration-gallery img.is-fading {
  opacity: 0.15;
}
.post-insp-sep {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  background: #fff;
}
.post-insp-sep img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}

/* ---------- Post period blocks ---------- */
.page-post #yxym .duilianpt1 tr,
.page-post #yxym .duilianpt1 td {
  height: auto !important;
}
.c1785885284 {
  border-top: 2px dotted red;
  background: #fff;
  padding: 4px 10px 5px;
  color: #000;
  font-size: 20px;
  text-align: center;
  line-height: 1.3;
  width: 100%;
  box-sizing: border-box;
}
.c1785885284 .ys { color: black; }
.c1785885284 .ys2 { color: indigo; }
.c1785885284 .ys2.ys2-blue { color: #0000ff; }
.c1785885284 .ys2.ys2-red { color: #ff0000; }
.c1785885284 .ys2.ys2-green { color: #0caa00; }
.c1785885284 .ys2.ys2-purple { color: #6a0dad; }
.c1785885284 .ys3 {
  display: inline-block;
  color: red;
  background-color: #FFFF00;
  padding: 1px 3px;
  margin: 0 1px;
  font-size: 1.2em;
  font-weight: 800;
  line-height: 1.25;
  vertical-align: baseline;
}
/* 未全中时的部分命中：仅红字，无黄底、不放大 */
.c1785885284 .ys3p {
  color: #ff0000;
  background: none;
  padding: 0;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  display: inline;
}
.c1785885284 .qi-pick .ys3 { margin-top: 0; }
.c1785885284 .ys4 {
  color: #ff0000;
  font-size: 1.18em;
  font-weight: 800;
}
.c1785885284 .zhun-img {
  height: clamp(1.35em, 6.2vw, 1.85em);
  width: auto;
  vertical-align: -0.28em;
  display: inline-block;
  margin-left: 3px;
}
.c1785885284 .qi-pick {
  display: block;
  margin-top: 2px;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: normal;
}
/* 单个号码/肖码：永不拆成两行（避免 27 → 2 / 7） */
.c1785885284 .qi-num,
.neon-marquee .qi-num,
.unlock-sx .qi-num {
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.c1785885284 .qi-pick-groups {
  display: block;
  margin-top: 2px;
  line-height: 1.55;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}
.c1785885284 .qi-pick-group {
  display: inline-block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  vertical-align: baseline;
  margin-right: 0.12em;
}
/* 三中三：黄底包住外面的 []，不放大以免被裁掉 */
.c1785885284 .qi-3z3 .ys3 {
  display: inline;
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
  padding: 0 3px;
  margin: 0;
  vertical-align: baseline;
}
/* 多行号码：【】行距适中，不拆号码内部 */
.c1785885284 .qi-pick-lines {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font: inherit;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: normal;
}
.c1785885284 .qi-pick-lines .qi-pick {
  display: block;
  margin: 0;
  padding: 1px 0;
  line-height: 1.2;
}
.c1785885284 .qi-pick-lines .qi-pick-groups {
  display: block;
  margin: 0;
  padding: 1px 0;
  line-height: 1.35;
}
.c1785885284 {
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: normal;
  box-sizing: border-box;
}
.page-post #yxym,
.page-post #yxym .big-txt,
.page-post #yxym .duilianpt1 {
  max-width: 100%;
  overflow-x: hidden;
}
.neon-marquee .qi-pick-lines {
  padding: 0;
}
.c1785885284 u {
  text-decoration: none;
  background-color: transparent;
}
/* Isolated period comment — overrides .big-txt p etc. */
#xuanchuanyu {
  display: block !important;
  margin: 2px auto 0 !important;
  margin-block: 2px 0 !important;
  padding: 1px 6px 2px !important;
  border: 0 !important;
  text-align: center !important;
  font-family: "Microsoft YaHei", Helvetica, sans-serif !important;
  font-size: clamp(14px, 4vw, 17px) !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  color: #000000 !important;
  background: transparent !important;
  background-color: transparent !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  width: 75% !important;
  max-width: 75% !important;
  box-sizing: border-box !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 点评插图：宽度 50%，高度按比例自适应 */
.remark-img-wrap {
  text-align: center !important;
  margin: 2px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 0 !important;
}
.remark-img-wrap .remark-img,
img.remark-img {
  width: 50% !important;
  max-width: 50% !important;
  height: auto !important;
  display: inline-block !important;
  vertical-align: middle;
  margin: 0 !important;
}

/* 预测框 ↔ 点评文字/图：压紧间距 */
.neon-marquee + #xuanchuanyu,
.neon-marquee + .remark-img-wrap,
#xuanchuanyu + .remark-img-wrap,
.remark-img-wrap + #xuanchuanyu {
  margin-top: 2px !important;
}

/* 属性定义（波色/家野等）：勿继承 duilianpt1 的 18pt 大字 */
.page-post .post-attr-def,
.app-shell .post-attr-def {
  margin: 12px 0 8px;
  padding: 0 2px;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  text-align: left !important;
}
.page-post .post-attr-def,
.page-post .post-attr-def p,
.page-post .post-attr-def td,
.page-post .post-attr-def span,
.app-shell .post-attr-def,
.app-shell .post-attr-def p,
.app-shell .post-attr-def td,
.app-shell .post-attr-def span {
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
}
.page-post .post-attr-bose .bose-line,
.app-shell .post-attr-bose .bose-line {
  margin: 0 0 8px !important;
  padding: 0 !important;
  word-break: break-all;
}
.page-post .post-attr-bose .bose-line:last-child,
.app-shell .post-attr-bose .bose-line:last-child {
  margin-bottom: 0 !important;
}
.page-post .post-attr-bose .bose-line > span,
.app-shell .post-attr-bose .bose-line > span {
  font-weight: 700 !important;
}
.page-post .post-attr-table td,
.app-shell .post-attr-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #f0e4e4;
  text-align: left !important;
}
.page-post .post-attr-table tr:last-child td,
.app-shell .post-attr-table tr:last-child td {
  border-bottom: 0;
}

/* Author title: 作者:同盟国 sits in zuozhebj.png pink frame */
#yxym #author-tmguo-nbds.author-head {
  margin: 0;
  padding: 0;
  background: #fff;
  box-shadow: none !important;
  text-shadow: none !important;
}
#yxym #author-tmguo-nbds .author-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 718 / 80;
  background: #fff url("../img/zuozhebj.png") center center / 100% 100% no-repeat;
  overflow: hidden;
}
#yxym #author-tmguo-nbds .author-banner-text {
  position: absolute;
  left: 50%;
  /* gold recess visual center (slightly above mid of banner) */
  top: 44%;
  transform: translate(-50%, -50%);
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(16px, 5.2vw, 26px);
  font-weight: 800;
  line-height: 1;
  color: #1a1208;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
#yxym #author-tmguo-nbds .author-name {
  color: #0000FF !important;
  font-size: 1.2em;
  font-weight: 800;
}
#yxym #author-tmguo-nbds .author-name.ys2-blue { color: #0000ff !important; }
#yxym #author-tmguo-nbds .author-name.ys2-red { color: #ff0000 !important; }
#yxym #author-tmguo-nbds .author-name.ys2-green { color: #0caa00 !important; }
#yxym #author-tmguo-nbds .author-name.ys2-purple { color: #6a0dad !important; }
#yxym #author-tmguo-nbds .author-sub {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  margin: 2px 0 4px;
  padding: 6px 0;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  isolation: isolate;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
#yxym #author-tmguo-nbds .author-sub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
    90deg,
    #ffe9b8 0%,
    #ffc98a 25%,
    #ffb3b0 50%,
    #ffe09a 75%,
    #ffe9b8 100%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  animation: author-tag-flow 2s linear infinite;
}
@keyframes author-tag-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
#yxym #author-tmguo-nbds .author-tag {
  position: relative;
  z-index: 1;
  color: #FF0000 !important;
  font-size: clamp(20px, 6vw, 28px);
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}
#yxym #author-tmguo-nbds .author-tag.ys2-blue { color: #0000ff !important; }
#yxym #author-tmguo-nbds .author-tag.ys2-red { color: #ff0000 !important; }
#yxym #author-tmguo-nbds .author-tag.ys2-green { color: #0caa00 !important; }
#yxym #author-tmguo-nbds .author-tag.ys2-purple { color: #6a0dad !important; }

.neon-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 3px;
  margin: 4px 2px 2px;
  border-top: 2px dotted red;
}
.neon-marquee::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 220%;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: conic-gradient(#ffd54f, #ff8a65, #ef5350, #42a5f5, #66bb6a, #ffd54f);
  animation: neon-marquee-spin 2s linear infinite;
}
.neon-marquee::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.45), 0 0 14px rgba(66, 165, 245, 0.28);
  pointer-events: none;
}
.neon-marquee .neon-marquee-inner {
  position: relative;
  z-index: 1;
  border-radius: 6px;
  background: #fff8e7 !important;
  border-top: 0 !important;
}
.neon-marquee .latest-unlock {
  display: block;
  margin-top: 12px;
  padding-top: 2px;
  color: #000;
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 400;
  letter-spacing: 0;
  background: transparent !important;
  background-image: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
.neon-marquee .latest-unlock .unlock-label {
  font-size: inherit;
  font-weight: 400;
  color: #000;
}
.neon-marquee .latest-unlock .unlock-sx {
  color: #d32f2f;
  font-size: clamp(26px, 7.2vw, 34px);
  font-weight: 800;
  background: transparent !important;
  background-image: none !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
  height: auto !important;
  line-height: 1.2 !important;
  vertical-align: -0.05em;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}
.neon-marquee .latest-unlock .unlock-sx.unlock-sx-pick,
.neon-marquee .unlock-sx.unlock-sx-pick {
  display: block !important;
  margin-top: 2px !important;
  line-height: 1.35 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
}
.neon-marquee .latest-unlock .unlock-sx.unlock-sx-groups {
  font-size: clamp(16px, 4.4vw, 22px);
}
.neon-marquee .latest-unlock .unlock-sx .qi-pick,
.neon-marquee .latest-unlock .unlock-sx .qi-pick-lines {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2 !important;
}
.neon-marquee .latest-unlock .unlock-sx .qi-pick-lines .qi-pick {
  margin: 0 !important;
  padding: 1px 0 !important;
  line-height: 1.2 !important;
}
.neon-marquee .qi-pick-lines .qi-pick-groups {
  display: block;
  margin: 0;
  padding: 1px 0;
  line-height: 1.35;
}
/* 往期多行【】同样压紧；行内残留 <br> 一律去掉，避免中间空行 */
.c1785885284 .qi-pick-lines + br,
.c1785885284 .qi-pick-lines br,
.neon-marquee .qi-pick-lines br {
  display: none;
}
/* Locked unlock line: full yellow-black mosaic + unlock tip */
.neon-marquee .latest-unlock.is-locked {
  display: block !important;
  margin-top: 10px !important;
  padding: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  background: transparent !important;
  text-shadow: none !important;
  box-shadow: none !important;
  user-select: none;
  -webkit-user-select: none;
}
.neon-marquee .latest-unlock.is-locked .unlock-mosaic-full {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92%, 420px);
  max-width: 100%;
  height: clamp(40px, 11vw, 52px);
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  overflow: hidden;
  background-color: #111;
  background-image:
    repeating-linear-gradient(
      0deg,
      #111 0 6px,
      #ffe400 6px 12px
    ),
    repeating-linear-gradient(
      90deg,
      #111 0 6px,
      #ffe400 6px 12px
    );
  background-size: 12px 12px, 12px 12px;
  background-blend-mode: difference;
  box-shadow: inset 0 0 0 1px rgba(255, 228, 0, 0.28);
}
.neon-marquee .latest-unlock.is-locked .unlock-mosaic-tip {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffe400 !important;
  font-size: clamp(14px, 4.2vw, 18px) !important;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}
.neon-marquee .latest-unlock.is-locked .unlock-coin {
  color: #ff1a1a !important;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);
}
@keyframes neon-marquee-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
}

/* ---------- BBS foot promo ---------- */
.bbs-foot-promo {
  margin: 60px 6px 10px !important;
  padding: 14px 10px 12px !important;
  border-top: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #222;
  text-align: left !important;
  background: linear-gradient(180deg, #fffdf6 0%, #ffffff 100%);
}
.bbs-foot-promo p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.55 !important;
  text-align: left !important;
}
.bbs-foot-promo .bbs-paid-info {
  margin: 0 0 12px !important;
  padding: 0 0 12px !important;
  border-bottom: 2px dashed #c9a227;
}
.bbs-foot-promo .bbs-paid-author,
.bbs-foot-promo .bbs-paid-count {
  margin: 0 0 6px !important;
  font-size: clamp(14px, 3.8vw, 16px);
  color: #222;
  line-height: 1.5 !important;
}
.bbs-foot-promo .bbs-paid-author .name {
  color: #c62828;
  font-weight: 800;
}
.bbs-foot-promo .bbs-paid-count .num {
  color: #c62828;
  font-weight: 800;
}
.bbs-foot-promo .bbs-paid-count .coin {
  color: #1565c0;
  font-weight: 800;
}
.bbs-foot-promo .bbs-vis-note {
  color: #0b2f55;
  font-weight: 700;
}
.bbs-foot-promo .bbs-paid-list-row {
  margin: 6px 0 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}
.bbs-foot-promo .bbs-paid-list-btn {
  color: #1565c0 !important;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.bbs-foot-promo .bbs-kefu-block {
  padding-top: 2px;
}
.czsm-embed.bbs-foot-promo {
  margin: 0 !important;
}

/* Paid list modal */
.bbs-paid-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}
.bbs-paid-modal.show {
  display: flex !important;
}
.bbs-paid-modal[hidden] {
  display: none !important;
}
.bbs-paid-modal-panel {
  width: min(92vw, 360px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
.bbs-paid-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 10px 12px;
  background: #ffe8e6;
  color: #0b2f55;
  font-size: 16px;
  font-weight: 800;
}
.bbs-paid-modal-close {
  border: 0;
  background: #c8102e;
  color: #fff;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.bbs-paid-modal-body {
  padding: 4px 12px 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* ~10 rows visible, rest scroll */
  max-height: min(380px, 52vh);
  background: #fffaf8;
  overscroll-behavior: contain;
}
.bbs-paid-modal-body .item {
  display: block;
  padding: 8px 4px;
  font-size: 15px;
  line-height: 1.4;
  color: #222;
  text-align: center;
  border-bottom: 1px dashed #e8c0bc;
}
.bbs-paid-modal-body .item:last-child {
  border-bottom: 0;
}
.bbs-paid-modal-hint {
  flex-shrink: 0;
  padding: 6px 10px 8px;
  text-align: center;
  font-size: 12px;
  color: #888;
  background: #fff;
  border-top: 1px solid #f0e0e0;
}
.bbs-foot-promo .bbs-kefu-title {
  margin: 0 0 10px !important;
  font-size: 17px;
  font-weight: 700;
  color: #0b2f55;
  line-height: 1.6 !important;
}
.bbs-foot-promo .bbs-kefu-title .brand {
  color: #c62828;
  font-size: 19px;
}
.bbs-foot-promo .bbs-kefu-link {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 12px;
  color: #fff !important;
  background: #1565c0;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  vertical-align: middle;
}
.bbs-foot-promo .bbs-kefu-note {
  margin: 0 0 12px !important;
  padding: 8px 10px !important;
  font-size: 13px;
  color: #555;
  background: #f7f9fc;
  border-left: 3px solid #90caf9;
}
.bbs-foot-promo .bbs-coin-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 12px !important;
}
.bbs-foot-promo .bbs-coin-list .item {
  display: block;
  padding: 8px 6px;
  border: 1px solid #f0e0b0;
  background: #fffaf0;
  color: #333;
  font-size: clamp(11px, 3.2vw, 15px);
  line-height: 1.4;
  font-weight: 700;
  box-sizing: border-box;
  text-align: center;
  word-break: break-all;
}
.bbs-foot-promo .bbs-coin-list .yen {
  color: #c62828;
  font-weight: 700;
}
.bbs-foot-promo .bbs-coin-list .coin {
  color: #1565c0;
  font-weight: 700;
}
.bbs-foot-promo .bbs-tip {
  margin: 0 0 8px !important;
  font-size: 13px;
  color: #6a4c00;
  line-height: 1.55 !important;
}
.bbs-foot-promo .bbs-warn {
  margin: 0 !important;
  font-size: 13px;
  color: #b71c1c;
  line-height: 1.55 !important;
}
.bbs-foot-promo .bbs-label {
  display: inline-block;
  margin-right: 4px;
  color: #e65100;
  font-weight: 700;
}

@media screen and (max-width: 580px) { .c1785885284 { font-size: 21px; } }
@media screen and (max-width: 530px) { .c1785885284 { font-size: 20px; } }
@media screen and (max-width: 480px) {
  .c1785885284 { font-size: 19px; }
}
@media screen and (max-width: 450px) { .c1785885284 { font-size: 18px; } }
@media screen and (max-width: 420px) { .c1785885284 { font-size: 18px; } }
@media screen and (max-width: 380px) {
  .c1785885284 { font-size: 17px; }
}
@media screen and (max-width: 350px) { .c1785885284 { font-size: 16px; } }
@media screen and (max-width: 320px) { .c1785885284 { font-size: 15px; } }

/* ---------- 5. Responsive ---------- */
@media screen and (max-width: 650px) {
  .wechat-share-widget {
    right: 8px;
    bottom: calc(var(--site-nav-height) + 130px);
  }
  .share-float-btn {
    width: 30px;
    height: 30px;
  }
  .share-float-btn .share-icon {
    width: 15px;
    height: 15px;
  }
  .share-platforms {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .share-modal-body { padding: 15px; }

  #page-float-tools {
    right: 5px;
    bottom: calc(var(--site-nav-height) + 10px);
  }
}

@media screen and (max-width: 610px) {
  .pad { padding: 2px; }
  #yxym .list-title { font-size: 20px; }
  .duilianpt td { font-size: 15pt; }
  .duilianpt .zl { font-size: 17pt; }
  .duilianpt th { font-size: 14pt; }
  .duilianpt1 td { font-size: 16pt; }
  .duilianpt1 .zl { font-size: 19pt; }
  .duilianpt1 th { font-size: 14pt; }
  .post-list a { font-size: 20px; }
}

@media screen and (max-width: 505px) {
  #yxym .list-title { font-size: 18px; }
  .gongshi td { font-size: 16pt; }
  .duilianpt td { font-size: 14pt; }
  .duilianpt .zl { font-size: 16pt; }
  .duilianpt th { font-size: 13pt; }
  .duilianpt1 td { font-size: 16pt; }
  .duilianpt1 .zl { font-size: 18pt; }
  .duilianpt1 th { font-size: 13pt; }
  .post-list a { font-size: 18px; }
}

@media screen and (max-width: 429px) {
  .duilianpt td { font-size: 13pt; }
  .duilianpt .zl { font-size: 15pt; }
  .duilianpt1 td { font-size: 15pt; }
  .duilianpt1 .zl { font-size: 17pt; }
  .post-list a { font-size: 18px; }
  .post-list a .ci { font-size: 21px; }
}

@media screen and (max-width: 409px) {
  #yxym .list-title { font-size: 17px; }
  .gongshi td { font-size: 14pt; }
  .duilianpt td,
  .duilianpt th { font-size: 13pt; }
  .duilianpt .zl { font-size: 14pt; }
  .duilianpt1 td { font-size: 14pt; }
  .duilianpt1 .zl { font-size: 16pt; }
  .duilianpt1 th { font-size: 12pt; }
  .post-list a { font-size: 17px; }
  .post-list a .ci { font-size: 22px; }
}

@media screen and (max-width: 374px) {
  #yxym .list-title { font-size: 15px; }
  .duilianpt td,
  .duilianpt th { font-size: 11pt; }
  .duilianpt .zl { font-size: 13pt; }
  .duilianpt1 td { font-size: 11pt; }
  .duilianpt1 .zl { font-size: 15pt; }
  .duilianpt1 th { font-size: 10pt; }
  .post-list a { font-size: 18px; }
  .post-list a .ci { font-size: 25px; }
}


/* =========================================================
 * 首页 gs2「五路财神·顶级至尊神贴」标题样式
 * - 背景使用与帖子页作者区相同的 zuozhebj.png
 * - 文字绝对居中落在粉色框金色凹槽内（对齐作者 banner 效果）
 * - 字号按粉色框实际宽度自适应（手机偏小、大屏放大）
 * - 后缀标题颜色直接写在 HTML span 的 style 上
 * ========================================================= */

/* 标题舞台：轻微浮动 + 外发光 */
.gs2-section .gs2-title-stage {
  position: relative;
  margin: 0;
  padding: 0;
  animation: gs2-stage-float 3.6s ease-in-out infinite;
  filter: drop-shadow(0 3px 6px rgba(201, 120, 40, 0.22));
}
@keyframes gs2-stage-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
/* 标题底部贴近下方帖子列表 */
.gs2-section .post-list {
  margin: 0;
  padding-top: 0;
}
.gs2-section .post-list > li:first-child {
  padding-top: 1px;
}

.gs2-section .list-title,
#yxym.gs2-section .list-title {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 718 / 80;
  padding: 0;
  margin: 0;
  line-height: 1;
  background: #fff url("../img/zuozhebj.png") center center / 100% 100% no-repeat;
  border-bottom: none;
  border-radius: 0;
  text-shadow: none;
  overflow: hidden;
  container-type: inline-size;
  container-name: gs2-title;
  box-shadow:
    0 0 0 1px rgba(255, 215, 120, 0.45),
    0 0 18px rgba(255, 170, 60, 0.35),
    inset 0 0 20px rgba(255, 230, 160, 0.15);
  animation: gs2-frame-glow 2.8s ease-in-out infinite;
}
@keyframes gs2-frame-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 215, 120, 0.4),
      0 0 14px rgba(255, 170, 60, 0.28),
      inset 0 0 16px rgba(255, 230, 160, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 230, 150, 0.75),
      0 0 26px rgba(255, 160, 40, 0.55),
      inset 0 0 24px rgba(255, 240, 180, 0.28);
  }
}

/* 扫光：从左到右掠过粉色框 */
.gs2-section .list-title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 236, 170, 0.35) 52%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: gs2-shine-sweep 3.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gs2-shine-sweep {
  0%, 55% { transform: translateX(-120%); opacity: 0; }
  60% { opacity: 1; }
  85% { transform: translateX(120%); opacity: 0.85; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* 标题文字：相对粉色框定位；优先按框宽(cqw)缩放，兼容回退用 vw */
.gs2-section .list-title .gs2-title-text {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(12px, 3.6vw, 22px);
  font-weight: 800;
  line-height: 1;
  color: #1a1208;
  pointer-events: none;
}
.gs2-section .list-title .gs2-brand {
  color: #c8102e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.gs2-section .list-title .gs2-dot {
  color: #1a1208;
  margin: 0 1px;
}

@supports (font-size: 1cqw) {
  .gs2-section .list-title .gs2-title-text {
    font-size: clamp(12px, 4.2cqw, 26px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gs2-section .gs2-title-stage,
  .gs2-section .list-title,
  .gs2-section .list-title::after {
    animation: none !important;
  }
}

/* =========================================================
 * 首页 gs 帖子列表行样式
 * 格式：[付费贴/发表贴/公开贴] N期:作者【帖子名称】→已更新/未更新
 * 【帖子名称】颜色：2红 / 2蓝 / 2绿 循环交替
 * 手机左对齐，宽屏居中；小屏整行缩放、强制单行
 * ========================================================= */
.gs2-section .post-list > li {
  container-type: inline-size;
  container-name: gs-post-row;
}
.gs2-section .post-list a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  flex-wrap: nowrap;
  gap: 0.14em;
  height: auto;
  min-height: 40px;
  line-height: 1.25;
  padding: 7px 6px;
  /* 手机略小一点；宽屏保持原字号 */
  font-size: clamp(11px, 3.55vw, 19px);
  white-space: nowrap;
  overflow: hidden;
}
@media screen and (min-width: 768px) {
  .gs2-section .post-list a {
    justify-content: center;
    text-align: center;
    font-size: clamp(12px, 3.9vw, 22px);
  }
}
@supports (font-size: 1cqw) {
  .gs2-section .post-list a {
    font-size: clamp(11px, 4cqw, 19px);
  }
  @media screen and (min-width: 768px) {
    .gs2-section .post-list a {
      font-size: clamp(12px, 4.4cqw, 22px);
    }
  }
}
/* 最前小名牌 */
.gs2-section .post-list .post-plate {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 1.45em;
  padding: 0 0.42em 0 0.5em;
  margin-right: 0.2em;
  border-radius: 0.2em 0.45em 0.45em 0.2em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.68em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.gs2-section .post-list .post-plate::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.18em;
  background: rgba(255, 255, 255, 0.55);
}
.gs2-section .post-list .post-plate-paid {
  background: linear-gradient(145deg, #ff8a80 0%, #e53935 55%, #c62828 100%);
}
.gs2-section .post-list .post-plate-login {
  background: linear-gradient(145deg, #64b5f6 0%, #1e88e5 55%, #1565c0 100%);
}
.gs2-section .post-list .post-plate-public {
  background: linear-gradient(145deg, #81c784 0%, #43a047 55%, #2e7d32 100%);
}
.gs2-section .post-list a .am-issue {
  font-weight: 800;
  flex-shrink: 0;
}
/* 【帖子名称】略大于正文，随整行字号一起缩放 */
.gs2-section .post-list .post-name {
  font-size: 1.22em;
  font-weight: 800;
  margin: 0;
  flex-shrink: 0;
}
/* 2红 2蓝 2绿 交替 */
.gs2-section .post-list li:nth-child(6n + 1) .post-name,
.gs2-section .post-list li:nth-child(6n + 2) .post-name {
  color: #ff0000;
}
.gs2-section .post-list li:nth-child(6n + 3) .post-name,
.gs2-section .post-list li:nth-child(6n + 4) .post-name {
  color: #0000ff;
}
.gs2-section .post-list li:nth-child(6n + 5) .post-name,
.gs2-section .post-list li:nth-child(6n + 6) .post-name {
  color: #008000;
}
.gs2-section .post-list .post-badge {
  margin-left: 0;
  font-weight: 800;
  font-size: 0.95em;
  white-space: nowrap;
  flex-shrink: 0;
}
/* →已更新（分区色） / →未更新 */
.gs2-section .post-list .post-badge-sell {
  color: #2e7d32;
}
.gs2-section .post-list .post-badge-login {
  color: #1565c0;
}
.gs2-section .post-list .post-badge-free {
  color: #2e7d32;
}
.gs2-section .post-list .post-badge-pending {
  color: #9a3412;
}
/* 帖子行末尾动图：跟字号走，不单独换行 */
.gs2-section .post-list .post-end-gif {
  display: block;
  width: 1.35em;
  height: 1.35em;
  margin-left: 0.1em;
  flex-shrink: 0;
  object-fit: contain;
  pointer-events: none;
}

/* 首页：现场摇奖直播（顶级至尊神贴上方） */
.live-draw-section {
  margin: 10px 0 0;
  overflow: hidden;
}
.live-draw-section .list-title.live-draw-toggle {
  display: block;
  width: 100%;
  height: auto;
  min-height: 38px;
  margin: 0;
  padding: 8px 6px;
  border: 0;
  line-height: 1.35;
  font: inherit;
  font-size: clamp(16px, 4.4vw, 21px);
  font-weight: 700;
  color: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.live-draw-section .live-draw-title-time {
  color: #ff0000;
}
.live-draw-body {
  background: #000;
  line-height: 0;
  font-size: 0;
}
.live-draw-frame {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  background: #000;
}
/* 登录/注册/会员等模板页样式（壳页与整页都会加载，避免片段丢 head 内联 CSS） */
.site-float-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  max-width: 800px;
  margin: 0 auto;
  height: 55px;
  z-index: 9999;
  background: linear-gradient(180deg, #c8102e 0%, #e85d70 48%, #f6c2cc 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(101, 22, 40, 0.18);
  transform: none;
}
.site-float-header .left-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 6px;
  line-height: 0;
  text-decoration: none;
}
.site-float-header .left-logo {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}
.site-float-header .right-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-float-header .home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  background: #a50f24;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(101, 22, 40, 0.25);
  text-decoration: none;
  white-space: nowrap;
}
.site-float-header .coin-pill {
  background: rgba(255, 255, 255, 0.92);
  color: #b91c1c;
  border: 1px solid #fff;
}
.site-header-offset {
  height: 55px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  pointer-events: none;
}
.page-body {
  margin-top: 0;
  padding-bottom: calc(56px + 24px + env(safe-area-inset-bottom, 0px));
}
.auth-card,
.member-card,
.unlock-mask {
  margin: 12px 8px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ffc9d4;
  box-shadow: 0 2px 10px rgba(234, 90, 104, 0.12);
}
.auth-card h1,
.member-card h1 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #9f1239;
}
.auth-card label,
.member-card label {
  display: block;
  margin: 10px 0 4px;
  font-weight: 600;
  color: #334155;
}
.auth-card input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.member-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #fda4af;
  border-radius: 6px;
  font-size: 16px;
}
.auth-card input.input-locked,
.member-card input.input-locked,
.post-dlg input.input-locked {
  background: #e5e7eb !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
  cursor: not-allowed;
}
.form-hint-muted {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.captcha-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.captcha-row input {
  flex: 1;
  min-width: 0;
}
.captcha-row .captcha-img,
.captcha-img {
  flex: 0 0 auto;
  width: 120px;
  height: 42px;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #fda4af;
  background: #fff5f7;
  object-fit: fill;
}
.form-hint-err {
  margin: 6px 0 0;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
}
.auth-card input.is-invalid {
  border-color: #dc2626;
  background: #fef2f2;
}
@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}
.auth-card input.auth-shake {
  animation: auth-shake 0.45s ease;
}
.btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: #c8102e;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}
.btn.secondary {
  background: #64748b;
}
.btn.block {
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.flash-ok {
  background: #ecfdf5;
  color: #047857;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.flash-err {
  background: #fef2f2;
  color: #b91c1c;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.unlock-mask {
  text-align: center;
  background: linear-gradient(180deg, #fff5f5, #fff);
}
.unlock-mask .price {
  font-size: 20px;
  color: #be123c;
  font-weight: 700;
  margin: 8px 0;
}
.series-post .series-row {
  padding: 6px 0;
  border-bottom: 1px dashed #ffc9d4;
}
.series-post .series-current {
  background: #fff7f9;
  margin: 0 -4px;
  padding: 8px 4px;
  border-radius: 6px;
}
.series-post .series-history {
  opacity: 0.95;
}
.content-block {
  margin: 8px 0;
}
.judge-hit {
  color: #ff0000;
  font-weight: 700;
}
.judge-miss {
  color: #888;
  font-weight: 700;
}

/* 解锁：未登录 / 余额不足弹窗（必须在壳加载的 CSS 里，片段不会带 head 样式） */
.latest-unlock.is-locked {
  cursor: pointer;
}
.post-dlg-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.48);
  box-sizing: border-box;
}
.post-dlg-mask.show {
  display: flex;
}
.post-dlg {
  width: min(92vw, 380px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.post-dlg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  background: #fff7f9;
  border-bottom: 1px solid #ffd6de;
}
.post-dlg-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.post-dlg-body {
  padding: 18px 14px 16px;
}
.post-dlg-tip {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: #374151;
  text-align: center;
}
.post-dlg-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.post-dlg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  border: 1px solid transparent;
  cursor: pointer;
}
.post-dlg-btn.primary {
  color: #fff;
  background: #c8102e;
  border-color: #a50f24;
}
.post-dlg-btn.ghost {
  color: #6b7280;
  background: #f3f4f6;
  border-color: #e5e7eb;
}
.post-dlg label {
  display: block;
  margin: 10px 0 4px;
  font-weight: 600;
  color: #334155;
}
.post-dlg input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #fda4af;
  border-radius: 6px;
  font-size: 16px;
}
/* Bottom nav + search mask (shared across all front pages) */
:root {
  --site-nav-height: 56px;
  --site-max-width: 800px;
}

#site-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  height: calc(var(--site-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 10000;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  background: #ffffff;
  border-top: 1px solid #d0d0d0;
  box-shadow: 0 -1px 0 #e5e5e5;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  box-sizing: border-box;
}
#site-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 6px 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c8102e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
#site-bottom-nav .nav-item.is-active {
  background: #fff5f5;
}
#site-bottom-nav .nav-icon {
  display: block;
  width: 22px;
  height: 22px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}
#site-bottom-nav .nav-icon-home {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5V21a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1v-10.5z'/%3E%3C/svg%3E");
}
#site-bottom-nav .nav-icon-service {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v8z'/%3E%3Cpath d='M8 9h8M8 13h5'/%3E%3C/svg%3E");
}
#site-bottom-nav .nav-icon-user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7z'/%3E%3Cpath d='M5 20c1.5-3.5 4-5 7-5s5.5 1.5 7 5'/%3E%3C/svg%3E");
}
#site-bottom-nav .nav-icon-search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4a7 7 0 1 1 0 14 7 7 0 0 1 0-14z'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}
#site-bottom-nav .nav-label {
  display: block;
  color: #c8102e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
#site-bottom-nav .nav-item:active {
  background: #fff5f5;
}

#site-search-mask {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 12px;
  box-sizing: border-box;
}
#site-search-mask.show { display: flex; }
#site-search-mask .search-panel {
  width: 92%;
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  padding: 16px 14px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
#site-search-mask .search-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #0b2f55;
  text-align: center;
}
#site-search-mask .search-field { margin: 0 0 10px; }
#site-search-mask .search-field label {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  color: #555;
  font-weight: 700;
}
#site-search-mask .search-field input {
  width: 100%;
  height: 40px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 15px;
  background: #fff;
  color: #222;
  box-sizing: border-box;
}
#site-search-mask .search-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
#site-search-mask .search-actions button {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
#site-search-mask .search-submit {
  background: #1565c0;
  color: #fff;
}
#site-search-mask .search-cancel {
  background: #eef1f4;
  color: #333;
}
#site-search-mask .search-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

/* ============ 站点适配 ============ */
.bottom-nav {
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
}
.footer-fragment ul.sx1 {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-fragment ul.sx1 li {
  float: none;
  width: 33.333%;
  padding: 6px 2px;
  box-sizing: border-box;
  text-align: center;
}
.footer-fragment ul.sx1 li dl {
  margin: 0;
  padding: 0;
}
.footer-fragment ul.sx1 li dl dt {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
  font-size: clamp(13px, 3.6vw, 17px);
  line-height: 1.25;
}
.footer-fragment ul.sx1 li dl dd {
  margin: 3px 0 0;
  padding: 0;
  white-space: nowrap;
  line-height: 1.2;
}
.footer-fragment ul.sx1 li dl dt img {
  width: clamp(28px, 8vw, 42px);
  height: clamp(28px, 8vw, 42px);
  margin: 0 2px;
  vertical-align: middle;
}
.footer-fragment table.gongshi {
  width: 100%;
  border-collapse: collapse;
}
.footer-fragment table.gongshi td,
.footer-fragment table.gongshi th {
  padding: 4px 6px;
}

/* ============ 会员中心（首页风格） ============ */
.pg-user .user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff7e6, #ffe9c7);
  border: 1px solid #f0d9a0;
  border-radius: 10px;
}
.pg-user .user-name {
  font-size: 17px;
  font-weight: 700;
  color: #7c1d06;
}
.pg-user .user-sub {
  font-size: 12px;
  color: #b08d57;
}
.pg-user .user-sub .ok-text {
  color: #c8102e;
  font-weight: 700;
}
.pg-user .user-nav {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  flex-wrap: wrap;
}
.pg-user .user-nav a {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f0d9a0;
  color: #8a5a00;
  font-size: 13px;
  text-decoration: none;
}
.pg-user .user-nav a.on {
  background: #c8102e;
  border-color: #c8102e;
  color: #fff;
}
.pg-user .user-nav a.user-nav-exit {
  color: #e11d48;
  border-color: #fecaca;
}
.pg-user .form-card {
  background: #fff;
  border: 1px solid #f0d9a0;
  border-radius: 12px;
  padding: 16px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(160, 90, 20, 0.06);
}
.pg-user .form-card h1 {
  font-size: 16px;
  color: #7c1d06;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #f0d9a0;
}
.pg-user .kv-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed #f5ead0;
  font-size: 14px;
}
.pg-user .kv-item span {
  color: #b08d57;
}
.pg-user .kv-item b {
  color: #7c1d06;
}
.pg-user .form-item label {
  color: #8a5a00;
  font-size: 13px;
}
.pg-user .table-wrap {
  background: #fff;
  border: 1px solid #f0d9a0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(160, 90, 20, 0.06);
}
.pg-user .table th {
  background: #fdf3dd;
  color: #7c1d06;
  font-size: 13px;
}
.pg-user .pager {
  padding: 12px 0;
}

/* ============ 在线客服（首页风格） ============ */
.pg-service .service-page {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}
.pg-service .service-head {
  background: linear-gradient(135deg, #7c1d06, #c8102e);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.pg-service .service-head h1 {
  font-size: 16px;
  margin: 0;
  color: #fff;
}
.pg-service .service-sub {
  font-size: 12px;
  color: #ffe9b0;
  opacity: 1;
}
.pg-service .sound-toggle {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.pg-service .chat-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 210px);
  min-height: 320px;
}
.pg-service .chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #fffdf7;
}
.pg-service .chat-msg {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.pg-service .chat-msg .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.pg-service .chat-msg.is-admin .avatar {
  background: linear-gradient(135deg, #c8102e, #f59e0b);
}
.pg-service .chat-msg.is-me .avatar {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}
.pg-service .msg-main {
  max-width: 76%;
}
.pg-service .msg-name {
  font-size: 11px;
  color: #b08d57;
  margin-bottom: 2px;
}
.pg-service .msg-bubble {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.pg-service .chat-msg.is-admin .msg-bubble {
  background: #fff3e0;
  border: 1px solid #f5d9a8;
  color: #7c1d06;
}
.pg-service .chat-msg.is-me .msg-bubble {
  background: #e8f7ec;
  border: 1px solid #c9eccf;
  color: #14532d;
}
.pg-service .msg-time {
  font-size: 11px;
  color: #c9a87c;
  margin-top: 2px;
}
.pg-service .chat-empty {
  color: #b08d57;
  text-align: center;
  padding: 40px 0;
  font-size: 13px;
}
.pg-service .chat-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #f0d9a0;
  background: #fffdf7;
}
.pg-service .chat-input textarea {
  flex: 1;
  border: 1px solid #e8d5b0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  resize: none;
  background: #fff;
}
.pg-service .chat-input .btn {
  align-self: flex-end;
}
.post-badge-idle {
  color: #9a3412;
}
.login-wall {
  background: #fff8e6;
  border: 1px dashed #f0c8a0;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  margin: 10px 0;
}
.login-wall .login-wall-txt {
  font-size: 15px;
  color: #7c1d06;
  margin: 0 0 12px;
}
.login-wall .btn-block {
  display: block;
  width: 220px;
  margin: 0 auto;
}


/* ============ 采集正文样式（目标站 style.css 提取） ============ */

  .c1785885284 { font-size: 18px; }

  .neon-marquee .latest-unlock {
    font-size: 18px;
  }

  .neon-marquee .latest-unlock .unlock-sx.unlock-sx-pick {
    font-size: 26px;
  }

  .neon-marquee .latest-unlock .unlock-sx.unlock-sx-groups {
    font-size: 20px;
  }


/* BBS body text */
.big-txt p {
  margin: 0 0 1.4em;
  line-height: 2.4;
}

.big-txt p:last-of-type { margin-bottom: 0.8em; }

.c1785885284 .ys { color: black; }

.c1785885284 .ys2 { color: indigo; }

.c1785885284 .ys2.ys2-blue { color: #0000ff; }

.c1785885284 .ys2.ys2-red { color: #ff0000; }

.c1785885284 .ys2.ys2-green { color: #0caa00; }

.c1785885284 .ys2.ys2-purple { color: #6a0dad; }

.c1785885284 .ys3 {
  display: inline-block;
  color: red;
  background-color: #FFFF00;
  padding: 1px 3px;
  margin: 0 1px;
  font-size: 1.2em;
  font-weight: 800;
  line-height: 1.25;
  vertical-align: baseline;
}

/* 未全中时的部分命中：仅红字，无黄底、不放大 */
.c1785885284 .ys3p {
  color: #ff0000;
  background: none;
  padding: 0;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  display: inline;
}

.c1785885284 .qi-pick .ys3 { margin-top: 0; }

.c1785885284 .qi-pick {
  display: block;
  margin-top: 2px;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: normal;
}

.c1785885284 .ys4 {
  color: #ff0000;
  font-size: 1.18em;
  font-weight: 800;
}

.c1785885284 .zhun-img {
  height: clamp(1.35em, 6.2vw, 1.85em);
  width: auto;
  vertical-align: -0.28em;
  display: inline-block;
  margin-left: 3px;
}

/* 单个号码/肖码：永不拆成两行（避免 27 → 2 / 7） */
.c1785885284 .qi-num,
.neon-marquee .qi-num,
.unlock-sx .qi-num {
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.c1785885284 .qi-pick-groups {
  display: block;
  margin-top: 2px;
  line-height: 1.55;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.c1785885284 .qi-pick-group {
  display: inline-block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  vertical-align: baseline;
  margin-right: 0.12em;
}

/* 三中三：黄底包住外面的 []，不放大以免被裁掉 */
.c1785885284 .qi-3z3 .ys3 {
  display: inline;
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
  padding: 0 3px;
  margin: 0;
  vertical-align: baseline;
}

/* 多行号码：【】行距适中，不拆号码内部 */
.c1785885284 .qi-pick-lines {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font: inherit;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: normal;
}

.c1785885284 .qi-pick-lines .qi-pick {
  display: block;
  margin: 0;
  padding: 1px 0;
  line-height: 1.2;
}

.c1785885284 .qi-pick-lines .qi-pick-groups {
  display: block;
  margin: 0;
  padding: 1px 0;
  line-height: 1.35;
}

.page-post #yxym,
.page-post #yxym .big-txt,
.page-post #yxym .duilianpt1 {
  max-width: 100%;
  overflow-x: hidden;
}

.neon-marquee .qi-pick-lines {
  padding: 0;
}

.c1785885284 u {
  text-decoration: none;
  background-color: transparent;
}

/* Isolated period comment — overrides .big-txt p etc. */
#xuanchuanyu {
  display: block !important;
  margin: 2px auto 0 !important;
  margin-block: 2px 0 !important;
  padding: 1px 6px 2px !important;
  border: 0 !important;
  text-align: center !important;
  font-family: "Microsoft YaHei", Helvetica, sans-serif !important;
  font-size: clamp(14px, 4vw, 17px) !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  color: #000000 !important;
  background: transparent !important;
  background-color: transparent !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  width: 75% !important;
  max-width: 75% !important;
  box-sizing: border-box !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}


/* 点评插图：宽度 50%，高度按比例自适应 */
.remark-img-wrap {
  text-align: center !important;
  margin: 2px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 0 !important;
}

.remark-img-wrap .remark-img,
img.remark-img {
  width: 50% !important;
  max-width: 50% !important;
  height: auto !important;
  display: inline-block !important;
  vertical-align: middle;
  margin: 0 !important;
}


/* 预测框 ↔ 点评文字/图：压紧间距 */
.neon-marquee + #xuanchuanyu,
.neon-marquee + .remark-img-wrap,
#xuanchuanyu + .remark-img-wrap,
.remark-img-wrap + #xuanchuanyu {
  margin-top: 2px !important;
}

#yxym #author-tmguo-nbds .author-name.ys2-blue { color: #0000ff !important; }

#yxym #author-tmguo-nbds .author-name.ys2-red { color: #ff0000 !important; }

#yxym #author-tmguo-nbds .author-name.ys2-green { color: #0caa00 !important; }

#yxym #author-tmguo-nbds .author-name.ys2-purple { color: #6a0dad !important; }

#yxym #author-tmguo-nbds .author-tag.ys2-blue { color: #0000ff !important; }

#yxym #author-tmguo-nbds .author-tag.ys2-red { color: #ff0000 !important; }

#yxym #author-tmguo-nbds .author-tag.ys2-green { color: #0caa00 !important; }

#yxym #author-tmguo-nbds .author-tag.ys2-purple { color: #6a0dad !important; }


.neon-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 3px;
  margin: 4px 2px 2px;
  border-top: 2px dotted red;
}

.neon-marquee::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 220%;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: conic-gradient(#ffd54f, #ff8a65, #ef5350, #42a5f5, #66bb6a, #ffd54f);
  animation: neon-marquee-spin 2s linear infinite;
}

.neon-marquee::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.45), 0 0 14px rgba(66, 165, 245, 0.28);
  pointer-events: none;
}

.neon-marquee .neon-marquee-inner {
  position: relative;
  z-index: 1;
  border-radius: 6px;
  background: #fff8e7 !important;
  border-top: 0 !important;
}

.neon-marquee .latest-unlock .unlock-label {
  font-size: inherit;
  font-weight: 400;
  color: #000;
}

.neon-marquee .latest-unlock .unlock-sx {
  color: #d32f2f;
  font-size: clamp(26px, 7.2vw, 34px);
  font-weight: 800;
  background: transparent !important;
  background-image: none !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
  height: auto !important;
  line-height: 1.2 !important;
  vertical-align: -0.05em;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.neon-marquee .latest-unlock .unlock-sx.unlock-sx-pick,
.neon-marquee .unlock-sx.unlock-sx-pick {
  display: block !important;
  margin-top: 2px !important;
  line-height: 1.35 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
}

.neon-marquee .latest-unlock .unlock-sx .qi-pick,
.neon-marquee .latest-unlock .unlock-sx .qi-pick-lines {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2 !important;
}

.neon-marquee .latest-unlock .unlock-sx .qi-pick-lines .qi-pick {
  margin: 0 !important;
  padding: 1px 0 !important;
  line-height: 1.2 !important;
}

.neon-marquee .qi-pick-lines .qi-pick-groups {
  display: block;
  margin: 0;
  padding: 1px 0;
  line-height: 1.35;
}

/* 往期多行【】同样压紧；行内残留 <br> 一律去掉，避免中间空行 */
.c1785885284 .qi-pick-lines + br,
.c1785885284 .qi-pick-lines br,
.neon-marquee .qi-pick-lines br {
  display: none;
}

/* Locked unlock line: full yellow-black mosaic + unlock tip */
.neon-marquee .latest-unlock.is-locked {
  display: block !important;
  margin-top: 10px !important;
  padding: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  background: transparent !important;
  text-shadow: none !important;
  box-shadow: none !important;
  user-select: none;
  -webkit-user-select: none;
}

.neon-marquee .latest-unlock.is-locked .unlock-mosaic-full {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92%, 420px);
  max-width: 100%;
  height: clamp(40px, 11vw, 52px);
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  overflow: hidden;
  background-color: #111;
  background-image:
    repeating-linear-gradient(
      0deg,
      #111 0 6px,
      #ffe400 6px 12px
    ),
    repeating-linear-gradient(
      90deg,
      #111 0 6px,
      #ffe400 6px 12px
    );
  background-size: 12px 12px, 12px 12px;
  background-blend-mode: difference;
  box-shadow: inset 0 0 0 1px rgba(255, 228, 0, 0.28);
}

.neon-marquee .latest-unlock.is-locked .unlock-mosaic-tip {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffe400 !important;
  font-size: clamp(14px, 4.2vw, 18px) !important;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.neon-marquee .latest-unlock.is-locked .unlock-coin {
  color: #ff1a1a !important;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);
}

@keyframes neon-marquee-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }

.neon-marquee .bbs-foot-promo {
  margin: 10px 0 2px !important;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* 跑马灯彩边加宽（收费帖内容多时不至于看不见彩框） */
.neon-marquee {
  padding: 6px !important;
  margin: 6px 0 8px !important;
  border-radius: 10px !important;
}
.neon-marquee::after {
  border-radius: 10px !important;
}
.neon-marquee .neon-marquee-inner {
  background: #fff8e7 !important;
}
.neon-marquee .bbs-foot-promo {
  margin: 10px 6px 6px !important;
  background: rgba(255, 255, 255, 0.97);
}

.pay-panel .btn-primary,
.bbs-foot-promo .btn-primary,
.pay-panel .btn.btn-primary {
  color: #ffffff !important;
}
