/* ============================================================
   HUAT 发财网 · 全站样式
   风格：暖红中式 + 金色点缀（与三个 App 一致的家族感）
   ============================================================ */
:root {
  --red-deep:   #8C3B33;   /* 主色：App 同款红棕 */
  --red-dark:   #6E2B24;
  --red-bright: #C0392B;
  --gold:       #C9A227;
  --gold-light: #F0D98C;
  --gold-pale:  #FBF0D2;
  --cream:      #FBF3EC;   /* 页面底色 */
  --cream-2:    #F6E7DE;
  --pink-card:  #FDEDEA;
  --ink:        #3B2420;
  --ink-soft:   #7A5A52;
  --line:       #E3C9BE;
  --green-ok:   #4E7B4E;
  --blue-info:  #4A6FA5;
  --shadow:     0 2px 10px rgba(110, 43, 36, .10);
  --shadow-lg:  0 6px 24px rgba(110, 43, 36, .16);
  --radius:     14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 400px at 50% -100px, #F9E3D8 0%, var(--cream) 60%);
  color: var(--ink);
  font-size: 17px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.6;
}
a { color: var(--red-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font-family: inherit; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  background: linear-gradient(180deg, var(--red-deep), var(--red-dark));
  color: #fff;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  max-width: 1400px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: baseline; gap: 8px;
  font-weight: 800; font-size: 22px; color: #fff; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .huat {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 1px;
}
.logo .sub { font-size: 13.5px; font-weight: 400; opacity: .85; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  color: #fff; padding: 7px 13px; border-radius: 999px;
  font-size: 16.5px; white-space: nowrap;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(240,217,140,.55);
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.main-nav a:hover { background: rgba(255,255,255,.24); text-decoration: none; }
.main-nav .nav-donate-icon {
  width: 20px; height: 20px; object-fit: contain;
  vertical-align: -4px; margin-right: 2px;
}
/* 添香油导航钮：与添香油横幅同款翡翠绿+金 */
.main-nav a:has(.nav-donate-icon) {
  background: linear-gradient(90deg, #143D28, #1E5B3C 55%, #2E7D4F);
  border: 1.5px solid var(--gold);
  color: var(--gold-light); font-weight: 700;
}
.main-nav a:has(.nav-donate-icon):hover { filter: brightness(1.18); background: linear-gradient(90deg, #143D28, #1E5B3C 55%, #2E7D4F); }
.main-nav a.active:has(.nav-donate-icon) {
  background: linear-gradient(90deg, #1E5B3C, #2E7D4F);
  color: #fff; border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(240,217,140,.35);
}
.main-nav a.active {
  background: var(--gold-light); color: var(--red-dark); font-weight: 700;
}
/* 中等宽度：压缩导航，保证登录钮不掉到第二行 */
@media (min-width: 641px) and (max-width: 1450px) {
  .logo .sub { display: none; }
  .site-header .bar { gap: 8px; }
  .main-nav { gap: 3px; }
  .main-nav a { font-size: 14.5px; padding: 6px 10px; }
  .dl-btn, .lang-btn, .auth-btn { font-size: 14px; padding: 6px 11px; }
}
/* 英文版：词更长，桌面导航整体压一号保持单行 */
@media (min-width: 641px) {
  html[lang="en"] .main-nav a { font-size: 14px; padding: 6px 9px; }
  html[lang="en"] .logo { font-size: 20px; }
  html[lang="en"] .dl-btn, html[lang="en"] .lang-btn, html[lang="en"] .auth-btn { font-size: 13.5px; padding: 6px 10px; }
  html[lang="en"] .site-header .bar { gap: 6px; }
}
@media (min-width: 641px) and (max-width: 1150px) {
  html[lang="en"] .main-nav a { font-size: 12px; padding: 5px 6px; }
  html[lang="en"] .logo { font-size: 17px; }
  html[lang="en"] .dl-btn, html[lang="en"] .lang-btn, html[lang="en"] .auth-btn { font-size: 12px; padding: 5px 7px; }
  html[lang="en"] .site-header .bar { gap: 4px; }
  html[lang="en"] .main-nav { gap: 3px; }
}
/* 英文版窄桌面（≤1000px）：塞不下就退回和手机一样的整齐堆叠布局，不硬挤成乱行 */
@media (min-width: 641px) and (max-width: 1000px) {
  html[lang="en"] .site-header .bar { padding: 9px 12px; gap: 6px; row-gap: 8px; }
  html[lang="en"] .logo { order: 0; flex: 1; font-size: 19px; }
  html[lang="en"] #authArea { order: 1; margin-left: auto; }
  html[lang="en"] .site-header .bar::after { content: ""; flex-basis: 100%; height: 0; order: 2; }
  html[lang="en"] .main-nav { display: contents; }
  html[lang="en"] .main-nav a { order: 3; flex: 1 1 auto; text-align: center; font-size: 14px; padding: 6px 8px; }
  html[lang="en"] .main-nav a:has(.nav-donate-icon) { order: 5; }
  html[lang="en"] .dl-btn { order: 4; flex: 1 1 auto; font-size: 14px; padding: 6px 8px; }
  html[lang="en"] .lang-btn { order: 5; flex: 0 1 auto; font-size: 14px; padding: 6px 10px; }
}

/* 更窄的桌面/横放平板：再压一档 */
@media (min-width: 641px) and (max-width: 1120px) {
  .site-header .bar { gap: 5px; padding: 10px 10px; }
  .logo { font-size: 19px; }
  .main-nav { gap: 2px; }
  .main-nav a { font-size: 13px; padding: 5px 7px; }
  .dl-btn, .lang-btn, .auth-btn { font-size: 13px; padding: 5px 8px; }
  .main-nav .nav-donate-icon { width: 16px; height: 16px; }
}

/* 手机版：第一行 logo+登录，其余按钮排成整齐两行 */
@media (max-width: 640px) {
  .site-header .bar { padding: 8px 10px; gap: 5px; row-gap: 7px; }
  .logo { order: 0; flex: 1; font-size: 18px; }
  .logo .sub { display: none; }
  #authArea { order: 1; margin-left: auto; }
  .auth-btn { font-size: 14px; padding: 5px 14px; }
  /* 强制在登录钮后换行 */
  .site-header .bar::after { content: ""; flex-basis: 100%; height: 0; order: 2; }
  .main-nav { display: contents; }
  .main-nav a { order: 3; flex: 1 1 auto; text-align: center; font-size: 13.5px; padding: 5px 6px; }
  /* 第三行顺序：下载App在前，添香油在后 */
  .main-nav a:has(.nav-donate-icon) { order: 5; }
  .main-nav .nav-donate-icon { width: 15px; height: 15px; vertical-align: -3px; }
  .dl-btn { order: 4; flex: 1 1 auto; }
  .lang-btn { order: 5; flex: 0 1 auto; }
  .dl-btn, .lang-btn { font-size: 13.5px; padding: 5px 10px; }
  .hide-mobile { display: none; }
}
.lang-btn {
  background: #fff; color: var(--red-dark); border: none; border-radius: 999px;
  padding: 7px 15px; font-weight: 800; font-size: 15.5px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.18); white-space: nowrap;
}
.lang-btn:hover { background: var(--gold-light); }
/* 右上角登录钮：与真字分享区同款红底实心 */
.auth-btn {
  background: linear-gradient(180deg, #A0463C, var(--red-deep));
  color: #fff; border: 1.5px solid rgba(240,217,140,.7); border-radius: 999px;
  padding: 7px 15px; font-weight: 800; font-size: 15.5px; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); white-space: nowrap;
}
.auth-btn:hover { filter: brightness(1.12); }
.auth-btn.on { background: linear-gradient(180deg, #4E7B4E, #3A5F3A); border-color: var(--gold-light); }
#authPanel { position: fixed; top: 62px; right: 14px; z-index: 99; }
.auth-menu-item {
  display: block; padding: 10px 12px; border-radius: 10px;
  font-size: 16px; color: var(--ink); font-weight: 700;
  border-top: 1px dashed var(--line);
}
.auth-menu-item:hover { background: var(--pink-card); text-decoration: none; color: var(--red-deep); }
.auth-menu-item .menu-lamp { width: 22px; height: 15px; object-fit: contain; vertical-align: -2px; }
.my-post {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 8px; border-bottom: 1px dashed var(--line); font-size: 15.5px;
}
.my-post:last-child { border-bottom: none; }
.my-post .mp-del {
  margin-left: auto; background: none; border: none; cursor: pointer; font-size: 17px;
}
@media (max-width: 640px) { .auth-btn { font-size: 13px; padding: 4px 10px; } }
.dl-btn {
  background: linear-gradient(180deg, var(--gold-light), #E4C053);
  color: var(--red-dark); border: none; border-radius: 999px;
  padding: 7px 15px; font-weight: 800; font-size: 15.5px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.18); white-space: nowrap;
}
.dl-btn:hover { filter: brightness(1.06); }
.dl-panel {
  position: fixed; top: 62px; right: 14px; z-index: 99;
  width: 340px; max-width: 94vw;
  background: #fff; border: 2px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 12px;
  display: none;
}
.dl-panel.open { display: block; }
.dl-app {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 6px; border-bottom: 1px dashed var(--line);
}
.dl-app:last-child { border-bottom: none; }
.dl-app img {
  width: 52px; height: 52px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line);
}
.dl-app .dl-info { min-width: 0; flex: 1; }
.dl-app b { font-size: 16.5px; color: var(--red-dark); }
.dl-badges { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.store-badge {
  display: inline-block; background: #1A1A1A; color: #fff;
  border-radius: 8px; padding: 5px 12px; font-size: 13.5px; font-weight: 700;
  white-space: nowrap;
}
.store-badge:hover { text-decoration: none; background: #333; color: #fff; }
.store-badge.soon { background: #E8E0DC; color: #9A8A84; cursor: default; }
.books-panel { width: 250px; }
.books-panel .book-link {
  text-decoration: none; border-radius: 10px;
}
.books-panel .book-link:hover { background: var(--pink-card); }
.books-panel .book-link.current { background: var(--gold-pale); }
.books-panel .book-link img { width: 44px; height: 44px; }
.books-panel .book-link b { font-size: 17px; color: var(--red-dark); }
.books-panel .book-link .bl-emoji {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; background: var(--gold-pale); border-radius: 12px; border: 1px solid var(--line);
}
/* 从下拉跳到首页搜索区时，避开置顶导航栏 */
#bookSearch { scroll-margin-top: 78px; }
@media (max-width: 640px) { #bookSearch { scroll-margin-top: 148px; } }

/* ---------------- 幸运万字体验组件 ---------------- */
#luckyWidget { scroll-margin-top: 78px; }
@media (max-width: 640px) { #luckyWidget { scroll-margin-top: 148px; } }
.lucky-widget { margin: 14px 0; border: 1.5px solid var(--gold); text-align: center; padding: 22px 18px; }
.lucky-widget .lw-head {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 21px; font-weight: 800; color: var(--red-dark); margin-bottom: 4px;
}
.lucky-widget .lw-intro { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; }
.lucky-widget .lw-slots { justify-content: center; gap: 10px; }
.lw-slot-empty {
  display: inline-flex; align-items: center; justify-content: center;
  width: 92px; height: 42px; border-radius: 12px;
  border: 1.5px dashed var(--gold); background: var(--gold-pale);
  color: #C9A227; font-size: 19px; opacity: .65; cursor: pointer;
}
.lw-slot-empty:hover { opacity: 1; }
.lucky-widget .lw-addrow { margin: 14px auto 0; max-width: 400px; }
.lucky-widget .lw-nudge { justify-content: center; text-align: left; }
.lucky-widget .lw-divider { border-top: 1px dashed var(--line); margin: 18px 0 14px; }
.lucky-widget .lw-note { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }
.lucky-widget #lwResult { text-align: left; }
@media (max-width: 640px) {
  .lucky-widget { padding: 18px 12px; }
  .lucky-widget .lw-slots { gap: 8px; }
  .lw-slot-empty { width: 86px; height: 40px; }
}
.lw-nudge {
  margin-top: 10px; font-size: 14.5px; color: #9A7B18;
  background: var(--gold-pale); border-radius: 10px; padding: 8px 12px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.lw-nudge a { color: var(--red-deep); font-weight: 700; }
.lw-nudge .lw-login-btn {
  font-size: 15px; padding: 8px 18px; flex-shrink: 0;
  background: linear-gradient(180deg, #4E7B4E, #3A5F3A); color: #fff;
}
/* 图册结果卡 ⭐ 存号按钮 */
.lucky-save-btn {
  border: 1.5px dashed var(--gold); background: var(--gold-pale);
  color: #9A7B18; border-radius: 999px; cursor: pointer;
  font-size: 14.5px; font-weight: 700; padding: 7px 14px; font-family: inherit;
  vertical-align: middle; margin-left: 6px;
}
.lucky-save-btn:hover { filter: brightness(1.06); }
/* 图册页底部诱导条 */
.lw-nudge-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 98;
  display: flex; align-items: center; gap: 10px; max-width: min(94vw, 560px);
  background: #3B2B22; color: #F6E7C8; font-size: 14.5px;
  border: 1.5px solid var(--gold); border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.lw-nudge-bar a { color: var(--gold-light); font-weight: 700; }
.lw-nudge-bar .btn { font-size: 14px; padding: 7px 14px; white-space: nowrap; }
.lw-nudge-bar .lw-close {
  background: none; border: none; color: #C9B69A; cursor: pointer;
  font-size: 15px; padding: 2px 4px; flex-shrink: 0;
}
/* 首页幸运万字入口横幅 */
.lucky-banner {
  display: flex; align-items: center; gap: 16px; margin: 14px 0;
  background: linear-gradient(90deg, #4A2F14, #7A5417 55%, #9A7B18);
  border: 1.5px solid var(--gold); border-radius: var(--radius);
  padding: 14px 18px; color: #fff; box-shadow: var(--shadow);
  transition: transform .08s;
}
.lucky-banner:hover { transform: translateY(-2px); text-decoration: none; }
.lucky-banner .lb-icon { font-size: 38px; flex-shrink: 0; }
.lucky-banner .lb-text { flex: 1; min-width: 0; }
.lucky-banner .lb-text b { display: block; font-size: 20px; color: var(--gold-light); }
.lucky-banner .lb-text small { color: #F2E4BE; font-size: 14.5px; }
.lucky-banner .lb-btn {
  background: var(--gold-light); color: #4A2F14; font-weight: 800;
  border-radius: 999px; padding: 9px 18px; white-space: nowrap; flex-shrink: 0;
}
@media (max-width: 640px) {
  .lucky-banner { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .lucky-banner .lb-btn { width: 100%; text-align: center; }
  .lucky-save-btn { display: block; margin: 8px 0 0; }
}
/* 4D 成绩页右下角幸运万字浮动钮 */
.lucky-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  border-radius: 999px; padding: 12px 18px;
  background: linear-gradient(180deg, #FFF7DF, var(--gold-light));
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 24px; line-height: 1;
  transition: transform .1s;
}
.lucky-fab .lf-text { font-size: 15.5px; font-weight: 800; color: var(--red-dark); }
.lucky-fab:hover { transform: scale(1.05); text-decoration: none; }
@media (max-width: 640px) {
  .lucky-fab { padding: 10px 15px; font-size: 21px; }
  .lucky-fab .lf-text { font-size: 14px; }
}
/* 左下角分享钮（WhatsApp 绿） */
.share-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  border-radius: 999px; padding: 12px 16px; border: 2px solid #128C4A;
  background: linear-gradient(180deg, #34C368, #1DA851);
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  display: flex; align-items: center; gap: 6px;
  font-size: 21px; line-height: 1; font-family: inherit;
  transition: transform .1s;
}
.share-fab .sf-text { font-size: 15.5px; font-weight: 800; }
.share-fab:hover { transform: scale(1.05); }
@media (max-width: 640px) {
  .share-fab { padding: 10px 13px; font-size: 19px; }
  .share-fab .sf-text { font-size: 14px; }
}

/* ---------------- 八方来财广告布局 ----------------
   桌面：左右各 3 格 + 顶横幅 + 底横幅 = 8 方位
   手机：顶、底横幅 + 中部 2×3 小格 */
.page-grid {
  max-width: 1440px; margin: 0 auto; padding: 14px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: start;
}
.ads-col { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 70px; }
.main-col { min-width: 0; }

.ad-slot {
  background: var(--gold-pale);
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius);
  color: #9A7B18;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-size: 15px; line-height: 1.5;
  overflow: hidden; position: relative;
}
.ad-slot a.ad-fill { display:block; width:100%; height:100%; }
.ad-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-slot .dir {
  font-size: 22px; font-weight: 800; color: var(--gold);
  font-family: Georgia, serif;
}
.ad-slot .hint { opacity: .8; padding: 0 8px; }

/* ---------------- 八方明灯 ---------------- */
.lamp-slot { gap: 6px; padding: 10px 8px; }
.lamp-head { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lamp-zone {
  font-size: 13.5px; border: 1px solid var(--gold); border-radius: 999px;
  padding: 1px 9px; color: #9A7B18; white-space: nowrap;
}
.ad-slot .lamp-img {
  width: 60px; height: 56px; object-fit: contain; flex-shrink: 0;
  filter: grayscale(.8) opacity(.4);
}
.ads-col .lamp-slot { height: auto; min-height: 240px; justify-content: flex-start; padding-top: 16px; }
.lamp-slot.lit .lamp-img, .ad-slot.lit .lamp-img {
  filter: none;
  animation: lampGlow 2.4s ease-in-out infinite;
}
@keyframes lampGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 180, 60, .5)); }
  50% { filter: drop-shadow(0 0 16px rgba(255, 150, 40, .95)); }
}
.lamp-cta {
  font-size: 13.5px; color: #9A7B18; line-height: 1.5;
  text-decoration: none; border-bottom: 1px dotted var(--gold);
}
.lamp-cta:hover { color: var(--red-deep); text-decoration: none; }
.lamp-names { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; }
.lamp-name { font-weight: 800; font-size: 15.5px; color: var(--red-dark); }
.lamp-name small { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-soft); }
/* 北 · 至尊明灯：原米金配色 + 金光流动闪烁 */
.lamp-north {
  background: linear-gradient(110deg,
    var(--gold-pale) 25%, #FFE9A0 40%, #FFFBE8 50%, #FFE9A0 60%, var(--gold-pale) 75%);
  background-size: 250% 100%;
  animation: goldShimmer 3.2s linear infinite;
  border: 2.5px solid var(--gold);
  box-shadow: 0 0 14px rgba(201,162,39,.5), inset 0 0 20px rgba(255,220,120,.55);
}
@keyframes goldShimmer {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
.lamp-north .lamp-name { color: var(--red-dark); text-shadow: 0 0 8px rgba(255,215,120,.8); }
/* 灯的大小层级：北至尊最大 > 六方 > 南 */
.lamp-north .lamp-img { width: 92px !important; height: 92px !important; }
.lamp-south .lamp-img { width: 46px; height: 36px; }
/* 六方 · 大护持：暖金 */
.lamp-mid.lit { background: #FFF6DC; border: 2px solid var(--gold); }
/* 南 · 护持：米色（沿用默认） */
.lamp-south.lit { border-style: solid; }
/* 横幅灯位：横向排列 */
.ad-banner.lamp-slot { flex-direction: row; gap: 16px; }
.ad-banner .lamp-img { width: 58px; height: 60px; }
.lamp-guide { margin-top: 8px; }
.lamp-guide div { padding: 4px 0; border-top: 1px dashed var(--line); }
.lamp-guide div:first-child { border-top: none; }
/* 添香油页底部说明卡 */
.donate-note { font-size: 15.5px; margin-top: 18px; }
.donate-note .dn-legal {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line);
  color: var(--ink-soft); font-size: 13.5px;
}

@media (max-width: 640px) {
  .ad-banner.lamp-slot { flex-wrap: wrap; row-gap: 5px; padding: 10px 8px; }
  .ad-banner.lamp-slot .lamp-cta,
  .ad-banner.lamp-slot .lamp-names { flex-basis: 100%; text-align: center; }
  .lamp-count { white-space: nowrap; }
  /* 北方至尊灯在手机横幅里与南方同尺寸，避免跑位 */
  .lamp-north .lamp-img { width: 56px !important; height: 50px !important; }
  /* 4D 成绩页标题行：标题一行，刷新/分享两钮并排第二行 */
  .section-title #lastUpdated { flex-basis: 100%; margin-left: 0; }
  #fourdRefresh, #fourdShare {
    flex: 1 1 40%; font-size: 15px !important; padding: 8px 8px !important;
    white-space: nowrap;
  }
  /* 4D 工具卡：上一期 · 日期 · 下一期 强制同一行 */
  .fourd-tools .hist-row { gap: 6px; flex-wrap: nowrap; }
  .fourd-tools .hist-row .btn { flex: 1 1 0; min-width: 0; font-size: 15px; padding: 9px 4px; white-space: nowrap; }
  .fourd-tools .hist-cur { flex: 0 0 auto; padding: 3px 8px; }
  .fourd-tools .hist-cur b { font-size: 15.5px; }
}

@media (max-width: 980px) {
  .ads-mobile .lamp-slot { padding: 8px 4px; gap: 3px; height: auto; min-height: 100px; }
  .ads-mobile .lamp-img { width: 30px; height: 28px; }
  .ads-mobile .lamp-zone { display: none; }
  .ads-mobile .lamp-cta { font-size: 12px; }
  .ads-mobile .lamp-name { font-size: 12.5px; }
  .ads-mobile .lamp-name small { display: none; }
  .ads-mobile .lamp-count { font-size: 12px; }
  .ad-banner.lamp-slot { gap: 8px; height: auto; min-height: 68px; }
}
.lamp-slot { cursor: pointer; }
.lamp-count { font-size: 14.5px; color: var(--ink-soft); }
.lamp-count b { color: var(--red-deep); font-size: 15px; }
/* 明灯总览页名录 */
.lamp-roll { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lamp-entry {
  display: flex; align-items: center; gap: 12px;
  background: var(--cream-2); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
.lamp-entry.gold {
  background: linear-gradient(135deg, #FFFBEF, #FFF0C4);
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(201,162,39,.35);
}
.lamp-entry .le-img {
  width: 46px; height: 46px; object-fit: contain; flex-shrink: 0;
  animation: lampGlow 2.4s ease-in-out infinite;
}
.lamp-entry .le-info { min-width: 0; }
.lamp-entry b { font-size: 17px; color: var(--red-dark); }
.lamp-entry .le-wish { font-size: 14.5px; color: var(--ink); }
.lamp-entry small { color: var(--ink-soft); font-size: 13.5px; }

/* ---------------- 八方明灯 · 殿堂式灯区 ---------------- */
.zone-card {
  margin-top: 22px; border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--gold); box-shadow: var(--shadow-lg);
  background: #fff;
}
.zone-head {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 14px 16px; text-align: center;
}
.zone-north .zone-head { background: linear-gradient(135deg, #6E1F18, #A03A28 55%, #6E1F18); }
.zone-mid   .zone-head { background: linear-gradient(135deg, #4A3210, #7A5A22 55%, #4A3210); }
.zone-south .zone-head { background: linear-gradient(135deg, #5C2B24, #8C4A3C 55%, #5C2B24); }
.zone-head .zh-lamp { width: 52px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255,215,120,.8)); }
.zone-head .zh-info { display: flex; flex-direction: column; gap: 2px; }
.zone-head .zh-name {
  font-size: 22px; font-weight: 800; color: var(--gold-light);
  letter-spacing: 2px; text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.zone-head .zh-tier { font-size: 14.5px; color: #F2E4BE; }
.zone-body {
  padding: 18px 16px;
  background:
    radial-gradient(500px 160px at 50% 0, rgba(201,162,39,.14), transparent 70%),
    linear-gradient(180deg, #FFFDF6, #FBF3E4);
}
/* 金牌位式点灯名录 */
.plaque-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.lamp-plaque {
  text-align: center; padding: 14px 10px 12px;
  background: linear-gradient(180deg, #FFF9E8, #F7E7B8);
  border: 1.5px solid var(--gold); border-radius: 12px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.5), var(--shadow);
}
.lamp-plaque.supreme {
  background: linear-gradient(180deg, #FFF3C8, #EFD283);
  border: 2px solid #B8901B;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.6), 0 3px 12px rgba(184,144,27,.35);
}
.lamp-plaque .lp-img { width: 44px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255,200,80,.9)); }
.lamp-plaque .lp-name {
  display: block; margin-top: 6px; font-size: 18.5px; color: var(--red-dark); letter-spacing: 1px;
}
.lamp-plaque .lp-wish { margin-top: 4px; font-size: 14px; color: #7A5A22; line-height: 1.45; }
.lamp-plaque .lp-date { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
/* 空灯区 */
.zone-empty {
  text-align: center; padding: 22px 10px 18px; color: var(--ink-soft); font-size: 16px;
}
.zone-empty .ze-lamp {
  width: 62px; height: 56px; object-fit: contain; display: block; margin: 0 auto 8px;
  opacity: .45; filter: grayscale(.4);
}
@media (max-width: 640px) {
  .zone-head { gap: 10px; padding: 12px 10px; }
  .zone-head .zh-lamp { width: 42px; height: 38px; }
  .zone-head .zh-name { font-size: 18.5px; letter-spacing: 1px; }
  .zone-head .zh-tier { font-size: 13.5px; }
  .plaque-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 9px; }
}
.ad-banner { height: auto; min-height: 90px; margin: 0 auto 0; max-width: 1440px; }
.ad-banner-wrap { max-width: 1440px; margin: 14px auto 0; padding: 0 14px; }
.ad-banner-wrap.bottom { margin: 0 auto; padding: 0 14px 14px; }
.ads-col .ad-slot { height: 240px; }
.ads-mobile { display: none; }

@media (max-width: 980px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .ads-col { display: none; }
  .ads-mobile {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
    margin: 14px 0 0;
  }
  .ads-mobile .ad-slot { height: auto; min-height: 100px; font-size: 12px; padding: 8px 4px; }
  .ads-mobile .ad-slot .dir { font-size: 15px; }
  .ad-banner { height: 68px; }
}

/* ---------------- 通用组件 ---------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 23px; font-weight: 800; color: var(--red-dark);
  margin: 26px 0 12px;
}
.section-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--red-bright)); }
.section-title .more { margin-left: auto; font-size: 15.5px; font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; cursor: pointer;
  padding: 11px 22px; font-size: 17.5px; font-weight: 700;
  transition: transform .08s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(180deg, #A0463C, var(--red-deep)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), #E4C053); color: var(--red-dark); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border: 1.5px solid var(--red-deep); color: var(--red-deep); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.chip {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--pink-card); color: var(--red-deep);
  font-size: 15px; border: 1px solid var(--line);
}
.num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 66px; padding: 8px 14px; border-radius: 12px;
  background: linear-gradient(180deg, #A0463C, var(--red-dark));
  color: #fff; font-size: 30px; font-weight: 800; letter-spacing: 3px;
  font-family: Georgia, "Courier New", monospace;
  box-shadow: var(--shadow);
}
.num-badge.small { min-width: 52px; font-size: 21px; padding: 4px 10px; letter-spacing: 2px; }
.num-badge.gold { background: linear-gradient(180deg, #E4C053, #B8901B); color: #4A3505; }

/* ---------------- 首页 ---------------- */
.hero {
  text-align: center; padding: 34px 16px 26px;
  background:
    radial-gradient(600px 200px at 50% 0, rgba(201,162,39,.18), transparent 70%);
  border-radius: var(--radius);
}
.hero h1 {
  margin: 0 0 8px; font-size: 36px; color: var(--red-dark); letter-spacing: 2px;
}
.hero h1 .huat { color: var(--gold); font-family: Georgia, serif; }
.hero h1 .hero-icon { width: 48px; height: 48px; object-fit: contain; vertical-align: -9px; }
.hero p { margin: 0; color: var(--ink-soft); font-size: 18px; }
.hero .hero-sub { margin-top: 7px; font-size: 16.5px; font-weight: 700; color: var(--gold); }
/* 短句不可断行块：居中文字只在标点处换行 */
.nb { display: inline-block; }

.book-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .book-cards { grid-template-columns: 1fr; } }
.book-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 22px 18px 18px;
  color: #fff; box-shadow: var(--shadow); display: block;
  transition: transform .15s, box-shadow .2s;
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.book-card .icon { font-size: 38px; }
.book-card h3 { margin: 6px 0 4px; font-size: 24px; color: #fff; }
.book-card p { margin: 0; font-size: 15.5px; opacity: .92; }
.book-card .cnt {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.22); border-radius: 999px;
  font-size: 13.5px; padding: 2px 10px;
}
/* 图册卡：封面图占左侧，金色粗框，图与框留距离 */
.book-card:has(.cover), .book-card:has(.brand-wall) {
  display: flex; padding: 10px; gap: 14px; align-items: stretch;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow), 0 0 0 1px rgba(110,43,36,.25);
}
.book-card .cover {
  width: 43%; min-height: 230px; object-fit: cover; object-position: center top;
  flex-shrink: 0; display: block; border-radius: 9px;
}
.book-card .book-info { position: relative; padding: 8px 8px 8px 0; flex: 1; min-width: 0; }
.book-card .book-info h3 { margin: 0 0 6px; }
.book-card .book-info .cnt {
  position: static; display: inline-block; margin-bottom: 8px;
}
/* 大伯公封面：完整显示不裁切，空隙补图片同款粉底 */
.book-dabogong .cover { object-fit: contain; background: #FDC7DF; }
/* 4D 焦点卡：七家彩池徽章墙 */
.book-card .brand-wall {
  width: 40%; flex-shrink: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; justify-content: center; align-content: center;
  background: rgba(255,255,255,.12); border-radius: 9px; padding: 10px;
}
.brand-wall img {
  width: 42px; height: 42px; border-radius: 10px; object-fit: contain;
  background: #fff; padding: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.feature-cards .cover { width: 34%; }
.feature-cards .book-info { padding-top: 14px; }
.book-dabogong { background: linear-gradient(135deg, #9C4A3F, #6E2B24); }
.book-4d       { background: linear-gradient(135deg, #2C5AA0, #16325C); }
.book-share    { background: linear-gradient(135deg, #D3612F, #93331A); }
.book-guanyin  { background: linear-gradient(135deg, #7B68A6, #4F4176); }
.book-caishen  { background: linear-gradient(135deg, #C99227, #8F6511); }

/* 首页全图册搜索框：加金边高亮，一眼看出可搜索 */
.home-search {
  border: 2.5px solid var(--gold);
  box-shadow: 0 0 14px rgba(201,162,39,.4), var(--shadow);
}
.home-search .hs-title {
  font-size: 18px; font-weight: 800; color: var(--red-dark); margin-bottom: 10px;
}
.home-search .search-row input {
  background: #fff; border: 2px solid var(--red-deep);
  font-size: 20px; padding: 15px 18px;
}
.home-search .search-row input::placeholder { color: #B08A7E; }
.home-search .search-row .btn { font-size: 19px; padding: 13px 26px; }

/* 搜索卡内的三本图册封面 */
.book-covers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 14px;
}
.book-covers a { display: block; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--gold); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .2s; }
.book-covers a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.book-covers { align-items: start; }
.book-covers img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .book-covers { gap: 8px; }
}

/* 首页全图册搜索结果 */
.hs-book { display: flex; align-items: center; gap: 10px; margin: 14px 4px 8px; flex-wrap: wrap; }
.hs-tag {
  color: #fff; border-radius: 999px; padding: 3px 14px;
  font-size: 15px; font-weight: 700;
}
.hs-count { color: var(--ink-soft); font-size: 14.5px; }
.hs-more { margin-left: auto; font-size: 14.5px; }
.hs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px; margin-bottom: 6px;
}
.hs-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 12px; box-shadow: var(--shadow);
}
.hs-card:hover { border-color: var(--red-deep); text-decoration: none; }
.hs-card .hs-term { font-size: 17px; font-weight: 700; color: var(--ink); min-width: 0; flex: 1; }
.hs-thumb {
  width: 54px; height: 68px; object-fit: contain; flex-shrink: 0;
  background: #F7EFE0; border-radius: 8px; border: 1px solid var(--line);
}
.hs-thumb-icon {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.hs-card .hs-term small { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-soft); }

.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .feature-cards { grid-template-columns: 1fr; } }

/* ---------------- 查询页 ---------------- */
.dict-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.dict-tabs a {
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-soft); font-weight: 700; font-size: 16.5px;
}
.dict-tabs a:hover { text-decoration: none; border-color: var(--red-deep); }
.dict-tabs a.active { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.dict-tabs .tab-icon {
  width: 26px; height: 26px; border-radius: 7px; object-fit: cover;
  vertical-align: -7px; margin-right: 3px;
}

.search-box { padding: 20px; }
.mode-switch {
  display: inline-flex; border: 1.5px solid var(--red-deep); border-radius: 999px;
  overflow: hidden; margin-bottom: 14px;
}
.mode-switch button {
  border: none; background: #fff; color: var(--red-deep);
  padding: 9px 20px; font-size: 16.5px; font-weight: 700; cursor: pointer;
}
.mode-switch button.active { background: var(--pink-card); }
.mode-switch button.active::before { content: "✓ "; }
.search-row { display: flex; gap: 10px; }
.search-row input {
  flex: 1; min-width: 0;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--cream-2); padding: 13px 16px; font-size: 19px; color: var(--ink);
  outline: none;
}
.search-row input:focus { border-color: var(--red-deep); background: #fff; }
.search-tip { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
.result-meta { margin: 16px 4px 10px; color: var(--red-deep); font-weight: 700; }
.login-hint {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  padding-top: 12px; margin-top: 14px;
  font-size: 15px; color: var(--ink);
}
.hist-panel {
  width: 100%; margin-top: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.hist-item {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; font-size: 15.5px; color: var(--ink);
}
.hist-item:hover { border-color: var(--red-deep); text-decoration: none; }

.result-card { margin-bottom: 14px; }
.result-card .icon-area {
  background: #FBF6E3; border-radius: 12px; text-align: center;
  font-size: 72px; line-height: 1; padding: 34px 0; margin-bottom: 14px;
}
.result-card .cell-banner {
  background: #F7EFE0; padding: 0; height: 240px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.result-card .cell-img { max-height: 100%; max-width: 100%; object-fit: contain; }
.match-reason { color: var(--ink-soft); font-size: 15.5px; margin: 2px 0 6px; }
.derived-btn {
  background: linear-gradient(180deg, #FDE3DC, #F5BCAF);
  color: var(--red-dark); border: none; border-radius: 12px;
  padding: 9px 18px; font-size: 20px; font-weight: 800; letter-spacing: 1px;
  cursor: pointer; box-shadow: var(--shadow);
}
.derived-btn:hover { box-shadow: var(--shadow-lg); }
.result-card h3 { margin: 0 0 2px; font-size: 26px; color: var(--red-dark); }
.result-card .en { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 10px; }
.result-card .icon { font-size: 30px; float: right; }
.result-card .nums { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; align-items: center; }
.result-card .label { font-size: 15px; color: var(--ink-soft); margin: 10px 0 4px; }
.result-card .meaning {
  background: var(--pink-card); border-radius: 10px; padding: 10px 14px;
  font-size: 17px;
}
.result-card .meaning .en-meaning { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; }
.result-card .aliases { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------------- 4D 成绩页 ---------------- */
/* 刷新 / 分享成绩：地区筛选栏上方一行 */
.fourd-actions { display: flex; gap: 10px; margin: 4px 0 10px; }
.fourd-actions .btn { flex: 1; font-size: 16px; padding: 10px 12px; }

/* 地区筛选栏 */
.region-tabs { display: flex; gap: 8px; margin: 4px 0 14px; flex-wrap: wrap; }
.region-tabs .rt {
  flex: 1; min-width: 72px; cursor: pointer; font-family: inherit;
  padding: 10px 12px; font-size: 16px; font-weight: 700;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-soft);
}
.region-tabs .rt.active {
  background: var(--red-deep); border-color: var(--red-deep); color: #fff;
  box-shadow: var(--shadow);
}
.region-tabs .rt:hover { border-color: var(--red-deep); }
@media (max-width: 640px) { .region-tabs .rt { font-size: 15px; padding: 9px 6px; } }

.fourd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1200px) { .fourd-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .fourd-grid { grid-template-columns: 1fr; } }
.fourd-card { padding: 0; overflow: hidden; border-top: 5px solid var(--brand, var(--red-deep)); }
.fourd-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 800; font-size: 18px;
}
.fourd-head .brand-logo {
  width: 38px; height: 38px; border-radius: 10px; object-fit: contain;
  background: #fff; padding: 2px; flex-shrink: 0;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.fourd-head .brand-name { min-width: 0; }
.fourd-head .brand-name small { font-size: 14.5px; font-weight: 400; }
.fourd-head .draw-info {
  margin-left: auto; text-align: right;
  background: var(--cream-2);
  border-radius: 8px; padding: 4px 10px; line-height: 1.4; flex-shrink: 0;
}
.fourd-head .di-date { font-size: 16.5px; font-weight: 800; color: var(--red-dark); }
.fourd-head .di-no { font-size: 13.5px; font-weight: 400; color: var(--ink-soft); }
.prize-top { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; padding: 14px 10px 8px; gap: 6px; }
.prize-top .plabel { font-size: 14.5px; color: var(--ink-soft); }
.prize-top .pnum {
  font-size: 30px; font-weight: 800; letter-spacing: 3px; color: var(--red-dark);
  font-family: "Roboto Mono", ui-monospace, "SF Mono", Consolas, "DejaVu Sans Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.prize-top .p1 .pnum { color: #B8860B; font-size: 34px; }
.prize-list { padding: 4px 14px 14px; }
.prize-list h4 {
  margin: 10px 0 6px; font-size: 15.5px; color: var(--ink-soft); font-weight: 700;
  border-top: 1px dashed var(--line); padding-top: 10px;
}
.prize-nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
@media (max-width: 480px) { .prize-nums { grid-template-columns: repeat(4, 1fr); } }
.prize-nums span {
  text-align: center; background: var(--cream-2); border-radius: 8px;
  padding: 6px 0; font-weight: 700; letter-spacing: 2px; font-size: 18px;
  font-family: "Roboto Mono", ui-monospace, "SF Mono", Consolas, "DejaVu Sans Mono", monospace;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
/* 未接通数据源的彩池：接通中占位（绝不显示示例号码） */
.fourd-pending {
  text-align: center; padding: 34px 16px 38px;
  background: repeating-linear-gradient(45deg, #FBF6F2, #FBF6F2 10px, #F7F0EA 10px, #F7F0EA 20px);
}
.fourd-pending .fp-icon { font-size: 30px; opacity: .5; }
.fourd-pending .fp-text {
  margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--ink-soft);
}
.fourd-pending .fp-sub { margin-top: 5px; font-size: 14px; color: var(--ink-soft); opacity: .8; }

.fourd-note { color: var(--ink-soft); font-size: 15px; margin-top: 12px; }
.fourd-tools {
  margin-bottom: 14px; padding: 14px 18px;
  background: linear-gradient(180deg, #FFF9E8, #FFF0C9);
  border: 1.5px solid var(--gold);
}
.fourd-tools .next-draw {
  font-size: 18.5px; padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.fourd-tools .next-draw b { color: var(--red-dark); }
.fourd-tools .nd-main { font-size: 19px; }
.fourd-tools .nd-sub { margin-top: 6px; color: var(--ink); font-size: 16px; }
.fourd-tools .nd-note { margin-top: 5px; color: var(--ink-soft); font-size: 14.5px; }
/* 下期开彩居中；翻页三段拉满整行（左右按钮均分、日期居中） */
.fourd-tools .next-draw { text-align: center; }
.fourd-tools .hist-row {
  display: flex; align-items: stretch; gap: 12px;
}
.fourd-tools .hist-row .btn { flex: 1; padding: 12px 10px; font-size: 16.5px; }
.fourd-tools .hist-cur {
  flex: 1.2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.2; padding: 6px 12px;
  background: var(--cream-2); border-radius: 10px;
}
.fourd-tools .hist-cur b { font-size: 18px; color: var(--red-dark); white-space: nowrap; }
.fourd-tools .hist-cur small { font-size: 13.5px; color: var(--ink-soft); }
.fourd-tools .hist-back-row { margin-top: 8px; text-align: center; }
.fourd-tools .hist-back-row .btn { font-size: 15px; padding: 8px 20px; }
.fourd-tools .hist-note { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; }
.fourd-tools .hist-note:empty { display: none; }
.live-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#E74C3C;
  margin-right:6px; animation: blink 1.2s infinite; vertical-align: 1px; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------------- 真字分享区 ---------------- */
.share-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.share-toolbar .spacer { flex: 1; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 15.5px; }
.user-pill img { width: 28px; height: 28px; border-radius: 50%; }
.user-pill.big {
  padding: 10px 18px; font-size: 16.5px;
  border: 2px solid var(--green-ok); color: var(--ink);
  background: #F0F7F0;
}
.user-pill.big b { color: var(--red-dark); }

.post-form { padding: 18px; margin-bottom: 18px; }
.post-form .row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; margin-bottom: 10px; }
@media (max-width: 600px) { .post-form .row { grid-template-columns: 1fr; } }
.post-form select, .post-form input[type=text], .post-form textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--cream-2); padding: 10px 12px; font-size: 17px; color: var(--ink);
  font-family: inherit; outline: none;
}
.post-form select:focus, .post-form input:focus, .post-form textarea:focus { border-color: var(--red-deep); background: #fff; }
.post-form textarea { min-height: 90px; resize: vertical; }
.img-preview { max-height: 180px; border-radius: 10px; margin-top: 8px; display: none; }

.post-list { display: grid; gap: 14px; }
.post-card { padding: 12px 14px 6px; background: #fff; }
/* 站长审核台：待审核帖子整体关进金色大框，和已公开帖子分区 */
.admin-zone {
  margin: 16px 0 4px; padding: 12px 14px 6px;
  background: linear-gradient(180deg, #FFF7DC, #FBEEC6);
  border: 2px solid var(--gold); border-radius: var(--radius);
}
.admin-zone .az-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 19px; font-weight: 800; color: #7A5A22; margin-bottom: 10px;
}
.admin-zone .az-head .chip { background: #fff; color: #B8901B; font-weight: 800; }
.admin-zone .az-head .more { margin-left: auto; font-size: 15px; font-weight: 400; }
.admin-zone .post-card { margin-bottom: 10px; }
/* 🏆 真字报捷跑马灯 */
.won-ticker {
  display: flex; align-items: stretch; overflow: hidden;
  background: linear-gradient(90deg, #6E1F18, #93321F 50%, #6E1F18);
  border: 1.5px solid var(--gold); border-radius: 12px;
  margin-bottom: 14px; box-shadow: var(--shadow);
}
.won-ticker .wt-label {
  flex-shrink: 0; display: flex; align-items: center;
  background: linear-gradient(180deg, var(--gold-light), #E4C053);
  color: var(--red-dark); font-weight: 800; font-size: 14.5px;
  padding: 9px 13px; white-space: nowrap;
}
.wt-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.wt-track { display: flex; width: max-content; animation: wtScroll linear infinite; }
.wt-track:hover { animation-play-state: paused; }
.wt-group { display: inline-flex; align-items: center; }
.wt-item { color: #F6E7C8; font-size: 15px; white-space: nowrap; padding: 8px 0; }
.wt-num {
  color: var(--gold-light); font-size: 17.5px; letter-spacing: 2px;
  font-family: Georgia, monospace; margin: 0 2px;
}
.wt-prize { color: #FFD98A; margin: 0 2px; }
.wt-sep { color: rgba(240,217,140,.55); margin: 0 18px; }
@keyframes wtScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .won-ticker .wt-label { font-size: 14px; padding: 8px 9px; }
  .wt-item { font-size: 14px; }
  .wt-num { font-size: 16px; }
}

.post-card .pending-tag {
  display: inline-block; margin-bottom: 7px;
  background: linear-gradient(180deg, #E4B23C, #C9962A); color: #fff;
  font-size: 13.5px; font-weight: 800; border-radius: 999px; padding: 3px 14px;
}
.post-card .head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.post-card .avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--tc, var(--red-deep)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.post-card .who { font-size: 14.5px; color: var(--ink-soft); min-width: 0; }
.post-card .who b { color: var(--ink); font-size: 15px; }
.post-card .head .type-chip {
  margin-left: auto; background: var(--tc, var(--red-deep)); color: #fff;
  font-weight: 700; flex-shrink: 0; font-size: 13.5px; padding: 2px 10px;
}
/* FB 式信息流底：灰底衬白卡，与周围米色环境区分 */
.feed-zone {
  background: #F0F2F5; border: 1px solid #E2E0DC;
  border-radius: var(--radius); padding: 12px 12px 14px;
}
.feed-zone .post-card { margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.feed-zone .post-card:last-child { margin-bottom: 0; }
.feed-zone .loading, .feed-zone .empty-tip { color: #65676B; }
@media (max-width: 640px) { .feed-zone { padding: 8px 8px 10px; margin: 0 -4px; } }

/* 灵签卡：引言故事 → 鎏金号码带 → 照片（FB 式内容在上、照片在下） */
.post-card { transition: transform .12s, box-shadow .2s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.post-card .pc-photo {
  position: relative; margin-top: 2px; border-radius: 12px; overflow: hidden;
  cursor: zoom-in; border: 1px solid var(--line); line-height: 0;
}
.post-card .pc-photo img { width: 100%; max-height: 210px; object-fit: cover; display: block; }
.post-card .pc-zoom {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(30,15,8,.6); color: #fff;
  font-size: 13.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  pointer-events: none; line-height: 1.5;
}
.post-card .pc-numband {
  margin-top: 10px; padding: 8px 12px 10px;
  background:
    radial-gradient(300px 60px at 50% 0, rgba(201,162,39,.16), transparent 70%),
    linear-gradient(135deg, #FFF7DF, #FBE9BC);
  border: 1px solid var(--gold); border-radius: 12px;
}
.post-card .pnb-label {
  font-size: 14px; font-weight: 700; color: #9A7B18;
  letter-spacing: 1px; margin-bottom: 6px;
}
.post-card .pnb-row { display: flex; align-items: flex-end; gap: 10px; }
.post-card .pc-numband .nums { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.post-card .pnb-hint { flex-shrink: 0; font-size: 13px; color: #9A7B18; padding-bottom: 3px; }
/* 内容：FB 式素净文字，完整「」引号 */
.post-card .pc-quote {
  margin-top: 10px; font-size: 15.5px; color: var(--ink); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; cursor: pointer; word-break: break-word;
}
.post-card .pc-quote.open { -webkit-line-clamp: unset; }
.post-card .pc-quote b { color: var(--red-dark); }
/* 照片灯箱 */
.img-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(22, 10, 6, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; cursor: zoom-out;
}
.img-lightbox img {
  max-width: 100%; max-height: 92vh; border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.img-lightbox .lb-close {
  position: absolute; top: 14px; right: 16px;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 15px; font-weight: 700; border-radius: 999px; padding: 7px 16px;
}
.img-lightbox .lb-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 13.5px; font-weight: 700; border-radius: 999px; padding: 6px 16px;
  pointer-events: none;
}
/* FB 式赞数 + 整行点赞钮 */
.post-card .like-stat { margin-top: 9px; font-size: 14px; color: var(--ink-soft); }
.post-card .foot .like-btn {
  flex: 1; justify-content: center; background: none;
  color: var(--ink-soft); font-weight: 700; font-size: 15px; padding: 8px 0;
  border-radius: 8px;
}
.post-card .foot .like-btn:hover { background: var(--cream-2); color: var(--ink); }
.post-card .foot .like-btn.liked { color: var(--red-bright); }
.post-card .foot .post-share-btn {
  flex: 1; justify-content: center; font-weight: 800; font-size: 15px; padding: 8px 0;
  background: linear-gradient(180deg, #34C368, #1DA851); color: #fff;
  border: 1.5px solid #128C4A;
}
.post-card .foot .post-share-btn:hover { filter: brightness(1.06); background: linear-gradient(180deg, #34C368, #1DA851); color: #fff; }
/* 中奖时刻：分享 + 添油双按钮 */
.win-share-btn { background: linear-gradient(180deg, #34C368, #1DA851); color: #fff; }
.win-donate-btn { background: linear-gradient(90deg, #143D28, #1E5B3C 55%, #2E7D4F); color: var(--gold-light); border: 1.5px solid var(--gold); }
.lw-winactions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.lw-winactions .btn { font-size: 15.5px; padding: 9px 18px; }
@media (max-width: 640px) {
  .post-card .pc-photo img { max-height: 180px; }
}
.post-card .foot {
  display: flex; gap: 10px; margin-top: 8px; padding-top: 3px; align-items: center;
  border-top: 1px solid #EFE4DC;
}
.post-card .foot button {
  background: none; border: none; cursor: pointer; color: var(--ink-soft);
  font-size: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
}
.post-card .foot .like-btn {
  background: var(--pink-card); color: var(--red-deep); font-weight: 700; padding: 5px 13px;
}
.post-card .foot button:hover { background: var(--pink-card); color: var(--red-deep); }

.empty-tip { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---------------- 添香油 · 护持 ---------------- */
.donate-banner {
  display: flex; align-items: center; gap: 16px;
  margin-top: 14px; padding: 16px 22px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #143D28, #1E5B3C 45%, #2E7D4F);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg), inset 0 0 30px rgba(201,162,39,.22);
  color: #fff;
  transition: transform .15s, box-shadow .2s;
}
.donate-banner:hover { transform: translateY(-2px); text-decoration: none; }
.donate-banner .donate-box-img {
  width: 84px; height: 84px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.donate-banner .db-text { flex: 1; min-width: 0; }
.donate-banner .db-text b {
  display: block; font-size: 22px; letter-spacing: 1px;
  color: var(--gold-light);
}
.donate-banner .db-text small { color: #D8EBDD; font-size: 15.5px; }
.donate-banner .db-btn {
  white-space: nowrap;
  background: linear-gradient(180deg, var(--gold-light), #E4C053);
  color: var(--red-dark); font-weight: 800; font-size: 15px;
  padding: 10px 20px; border-radius: 999px; box-shadow: var(--shadow); font-size: 16.5px;
}
@media (max-width: 600px) {
  .donate-banner { flex-direction: column; text-align: center; justify-content: center; }
  .donate-banner .donate-box-img { margin: 0 auto; }
  .donate-banner .db-btn { width: 100%; text-align: center; }
}

.tier-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 1100px) { .tier-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tier-cards { grid-template-columns: 1fr; } }
.tier-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 20px 22px; text-align: center;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .2s;
}
.tier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tier-card .t-icon { font-size: 42px; }
.tier-card .t-img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto; display: block; }
.btn .btn-box { width: 22px; height: 22px; object-fit: contain; }
.tier-card h3 { margin: 8px 0 2px; font-size: 24px; color: var(--red-dark); }
.tier-card .t-amount { font-size: 22px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.tier-card .t-desc { color: var(--ink-soft); font-size: 16px; margin: 0 0 10px; min-height: 3em; }
/* 手机单列时不需要为对齐预留高度 */
@media (max-width: 640px) { .tier-card .t-desc { min-height: 0; } }
.tier-card .t-perks {
  list-style: none; margin: 0 0 16px; padding: 0;
  font-size: 15.5px; color: var(--ink); flex: 1;
}
.tier-card .t-perks li { padding: 4px 0; border-top: 1px dashed var(--line); }
.tier-card .t-perks li:first-child { border-top: none; }
.tier-card .t-perks li::before {
  content: ""; display: inline-block; width: 17px; height: 17px;
  background: url("../img/coin.png") center/contain no-repeat;
  vertical-align: -3px; margin-right: 5px;
}
.tier-card.featured {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #FFFBEF, #FFF6DC);
}
.tier-card .ribbon {
  position: absolute; top: 14px; right: -34px; transform: rotate(45deg);
  background: linear-gradient(90deg, var(--gold), #B8901B); color: #fff;
  font-size: 13.5px; font-weight: 700; padding: 4px 40px; letter-spacing: 2px;
}
.tier-suixi .t-icon { filter: none; }
.tier-card .t-tag {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(180deg, #C0392B, #96271B); color: #fff;
  font-size: 14px; font-weight: 700; border-radius: 999px; padding: 3px 12px;
  box-shadow: var(--shadow);
}
/* 「我要护持」按钮跳到添香油方式：预留置顶导航高度 */
#payTitle { scroll-margin-top: 84px; }
@media (max-width: 640px) { #payTitle { scroll-margin-top: 152px; } }
/* 添香油页：功德点 + 祝福横带 */
.merit-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.merit-chips span {
  background: var(--gold-pale); border: 1px solid var(--gold);
  color: #7A5A22; font-weight: 700; font-size: 14.5px;
  border-radius: 999px; padding: 6px 14px;
}
.blessing-band {
  margin: 6px 0 16px; padding: 12px 16px; text-align: center;
  background: linear-gradient(135deg, #6E1F18, #A03A28 55%, #6E1F18);
  color: var(--gold-light); font-size: 17px; font-weight: 700; letter-spacing: 1px;
  border-radius: var(--radius); border: 1.5px solid var(--gold);
  box-shadow: var(--shadow); text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
@media (max-width: 640px) {
  .blessing-band { font-size: 15px; }
  .merit-chips span { font-size: 13.5px; padding: 5px 11px; }
}
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pay-block { text-align: center; }
.pay-block h4 { margin: 0 0 10px; color: var(--red-dark); font-size: 17px; }
.pay-qr { max-width: 220px; width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.bank-info {
  background: var(--cream-2); border-radius: 10px; padding: 12px;
  font-size: 17px; font-weight: 700; letter-spacing: .5px;
}
.donor-list { display: flex; flex-direction: column; gap: 4px; }
.donor-item {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 9px 12px; border-radius: 10px; font-size: 17px;
}
.donor-item:nth-child(odd) { background: var(--cream-2); }
.donor-item .d-name { font-weight: 800; }
.donor-item.donor-red .d-name { color: var(--red-bright); }
.donor-item.donor-gold .d-name {
  color: #B8860B;
  text-shadow: 0 0 6px rgba(201,162,39,.35);
}
.donor-item .d-tier { font-size: 14px; color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 9px; }
.donor-item.donor-gold .d-tier { border-color: var(--gold); color: #9A7B18; background: var(--gold-pale); }
.donor-item .d-wish { color: var(--ink-soft); font-size: 15px; }
.donor-item .d-date { margin-left: auto; color: var(--ink-soft); font-size: 14px; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 30px; background: var(--red-dark); color: #EED9CF;
  text-align: center; padding: 22px 16px 26px; font-size: 15px; line-height: 1.9;
}
.site-footer .disclaimer {
  max-width: 760px; margin: 0 auto 6px;
  color: var(--gold-light); font-weight: 600;
}
.site-footer a { color: #fff; }

/* 号码点击复制的提示 */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 9px 22px; font-size: 14px; z-index: 999;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.toast.show { opacity: .94; }

.loading { text-align: center; color: var(--ink-soft); padding: 30px 0; }

/* ---------------- 幸运万字 / 真字报捷 ---------------- */
.lucky-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lucky-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #FFEDB0, #E4C053);
  color: var(--red-dark); border: 1px solid var(--gold);
  border-radius: 12px; padding: 7px 8px 7px 14px;
  font-size: 21px; font-weight: 800; letter-spacing: 2px;
  font-family: Georgia, monospace; box-shadow: var(--shadow);
}
.lucky-chip .lc-del {
  background: rgba(90,50,20,.14); border: none; color: var(--red-dark);
  border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 12px;
}
.lucky-chip .lc-del:hover { background: rgba(90,50,20,.28); }

.win-banner {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(60, 20, 15, .72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.win-banner .wb-box {
  background: linear-gradient(180deg, #FFFBEF, #FFF0C4);
  border: 3px solid var(--gold); border-radius: 20px;
  padding: 28px 26px; text-align: center; max-width: 480px; width: 100%;
  box-shadow: 0 10px 50px rgba(0,0,0,.5);
}
.win-banner .wb-fire { font-size: 40px; }
.win-banner h2 { color: var(--red-dark); margin: 8px 0 14px; font-size: 24px; }
.win-banner .wb-hits { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; font-size: 19px; }
.win-banner p { color: var(--ink-soft); font-size: 14.5px; }

.won-banner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, #FFF6DC, var(--gold-pale));
  border: 1.5px solid var(--gold); border-radius: 12px;
  padding: 8px 14px; margin-bottom: 12px;
  font-size: 14.5px; color: var(--ink);
  overflow-x: auto; white-space: nowrap;
}
.won-banner .wb-label {
  font-weight: 800; color: var(--red-dark); flex-shrink: 0;
  border-right: 1.5px solid var(--gold); padding-right: 10px;
}
.won-banner .wb-sep { color: var(--gold); }
.won-badge {
  display: inline-block; background: linear-gradient(180deg, var(--gold-light), #E4C053);
  color: var(--red-dark); font-weight: 800; font-size: 14px;
  border-radius: 999px; padding: 4px 14px; margin: 4px 0 6px;
}
.mark-won-btn {
  background: none; border: 1px dashed var(--gold); border-radius: 8px;
  color: #9A7B18; cursor: pointer; font-size: 14.5px; padding: 3px 10px;
}

/* ---------------- 手机版整体微调（响应式收尾） ---------------- */
/* clip 不产生滚动容器，保住顶栏 position:sticky；旧浏览器回退 hidden */
html, body { overflow-x: hidden; overflow-x: clip; }
@media (max-width: 640px) {
  .hero { padding: 22px 12px 18px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .section-title { font-size: 19px; gap: 8px; }
  .section-title .more { font-size: 14px; }
  /* 八方明灯页灯区标题：名称不折行，档位信息独立一行 */
  .zone-title { flex-wrap: wrap; row-gap: 2px; }
  .zone-title .zt-name { white-space: nowrap; font-size: 18.5px; }
  .zone-title .more { flex-basis: 100%; margin-left: 58px; margin-top: -2px; }
  .home-search .hs-title { font-size: 16.5px; }
  .home-search .search-row input { font-size: 17px; padding: 12px 14px; }
  .home-search .search-row .btn { font-size: 17px; padding: 11px 18px; }
  .dict-tabs { gap: 6px; flex-wrap: nowrap; }
  .dict-tabs a { flex: 1; text-align: center; font-size: 14.5px; padding: 7px 4px; white-space: nowrap; }
  .dict-tabs .tab-icon { width: 22px; height: 22px; vertical-align: -6px; }
  .mode-switch { width: 100%; }
  .mode-switch button { flex: 1; }
  .search-row input { font-size: 17px; padding: 11px 13px; }
  .result-card h3 { font-size: 23px; }
  .result-card .cell-banner { height: 200px; }
  .num-badge { font-size: 26px; min-width: 58px; letter-spacing: 2px; }
  .fourd-head { font-size: 15.5px; gap: 8px; }
  .fourd-head .draw-info { font-size: 12.5px; padding: 3px 8px; }
  .prize-top .pnum { font-size: 26px; }
  .prize-top .p1 .pnum { font-size: 30px; }
  .prize-nums span { font-size: 16px; }
  .book-card .cover { min-height: 190px; }
  .donate-banner { padding: 12px 14px; gap: 12px; }
  .donate-banner .db-text b { font-size: 19px; }
  .donate-banner .donate-box-img { width: 64px; height: 64px; }
  .tier-card .t-img { width: 80px; height: 80px; }
  .site-footer { font-size: 14px; }
  .btn { font-size: 16px; }
}

/* 收藏/主屏安装提示条 */
.install-bar {
  position: fixed; left: 50%; bottom: -120px; transform: translateX(-50%);
  z-index: 998; width: 640px; max-width: 94vw;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, #7E1F14, var(--red-deep));
  border: 2px solid var(--gold); border-radius: 16px;
  padding: 12px 14px; color: #fff; font-size: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  transition: bottom .35s ease;
}
.install-bar.show { bottom: 22px; }
.install-bar .ib-icon { font-size: 30px; }
.install-bar .ib-text { flex: 1; min-width: 0; line-height: 1.5; }
.install-bar .ib-text b { color: var(--gold-light); }
.install-bar .ib-ok { padding: 8px 18px; font-size: 16px; white-space: nowrap; }
.install-bar .ib-close {
  background: none; border: none; color: #E8C9BE; font-size: 18px;
  cursor: pointer; padding: 4px 8px; flex-shrink: 0;
}
.install-bar .ib-close:hover { color: #fff; }
