*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#f2f2f2;color:#111;font-family:Arial,"Microsoft YaHei",sans-serif;font-size:14px}
a{text-decoration:none;color:inherit}

.site3-shell{width:100%;max-width:720px;margin:0 auto;background:#fff;min-height:100vh;box-shadow:0 0 16px rgba(0,0,0,.08)}
.top-card{background:#fff}
.site3-showcase-image{display:block;width:100%;height:auto}
.site3-showcase-fallback{height:148px;background:linear-gradient(135deg,#ffd8e9,#fff5cb);display:flex;flex-direction:column;align-items:center;justify-content:center;border-bottom:3px solid #ef2c83}
.fortune-title{font-size:36px;font-weight:900;color:#111;text-shadow:2px 2px 0 #fff,0 3px 0 #ffca5e}
.fortune-domain{margin-top:10px;background:#fff7db;border:2px solid #d49838;border-radius:999px;padding:4px 22px;font-weight:900;color:#111}

.quick-nav{
  position:sticky;
  top:0;
  z-index:80;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:6px;
  padding:7px 8px 6px;
  background:#fff;
  border-bottom:1px solid #f7d4e4;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.quick-nav a{height:24px;line-height:24px;text-align:center;border-radius:999px;background:linear-gradient(#f75ba5,#e7247b);color:#fff;font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}

.notice-strip{height:30px;line-height:30px;text-align:center;padding:0 8px;border-top:1px solid #f7d4e4;border-bottom:1px solid #f7d4e4;background:#fff;color:#111;font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.site-tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:12px 10px 10px;background:#fff;border-bottom:1px solid #eceff5}
.tab-btn{height:52px;border:1px solid #d6dbe6;background:#f8fafc;color:#111;cursor:pointer;font-size:12px;font-weight:800;border-right:0;border-radius:0}
.tab-btn:first-child{border-top-left-radius:8px;border-bottom-left-radius:8px}
.tab-btn:last-child{border-right:1px solid #d6dbe6;border-top-right-radius:8px;border-bottom-right-radius:8px}
.tab-btn strong{display:block;font-size:13px;line-height:18px}
.tab-btn span{display:block;font-size:12px;line-height:16px;color:#111;font-weight:800}
.tab-btn.active{background:#16b968;color:#fff;border-color:#16b968}
.tab-btn.active span{color:#fff}

.draw-card{padding:16px 12px 18px;background:#fff;border-bottom:8px solid #f2f2f2}
.draw-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.draw-meta strong{font-size:22px;color:#061130;line-height:1.1}
.draw-meta a{font-size:13px;color:#10a843;font-weight:900}
.draw-countdown{text-align:center;color:#f1182f;font-size:15px;font-weight:900;margin:4px 0 12px}
.draw-countdown b{font-size:16px}
.draw-balls{display:flex;align-items:flex-start;justify-content:center;gap:8px;flex-wrap:nowrap}
.draw-ball{width:38px;height:38px;line-height:32px;border-radius:50%;background:#fff;text-align:center;font-size:16px;font-weight:900;color:#111;border:3px solid #f0181e;box-shadow:inset 0 0 0 2px #fff}
.ball-0{border-color:#1e90ff}
.ball-1{border-color:#f0181e}
.ball-2{border-color:#17af37}
.draw-plus{height:38px;line-height:34px;font-size:26px;font-weight:900;color:#9ca3af}
.draw-next{text-align:center;margin-top:10px;color:#ff172f;font-size:12px;font-weight:900}

.content-panels{padding:0;background:#fff}
.tab-panel{display:none}
.tab-panel.active{display:block}
.image-anchor{height:0;overflow:hidden}

.site3-media-card{margin:8px 0;background:#fff;border-top:1px solid #eee;border-bottom:1px solid #eee}
.site3-media-card img{display:block;width:100%;height:auto}

.template-title-bar{height:30px;line-height:30px;background:#eb2b82;color:#fff;text-align:center;font-size:12px;font-weight:900}
.template-title-bar span{
  color:#fff000;
  font-weight:900;
}
.template-title-bar strong{
  margin-left:8px;
  color:#fff;
  font-size:13px;
  font-weight:900;
}

.template-domain{text-align:center;color:#111;font-weight:900;font-size:13px;padding:6px 8px 5px;background:#fff;border-bottom:1px solid #eee}

.text-template-block{margin-top:0;background:#fff;border-bottom:1px solid #eee;scroll-margin-top:10px}
.template-list{width:100%}
.template-row{display:grid;grid-template-columns:64px minmax(0,1fr) 68px;gap:4px;align-items:center;min-height:32px;padding:4px 8px;border-top:1px solid #efefef;font-size:12px;line-height:1.35}
.row-issue{color:#111;font-weight:900;white-space:nowrap;text-align:left}
.row-content{color:#ff003c;font-weight:900;text-align:center;word-break:break-word}
.row-result{color:#f01934;font-weight:900;text-align:right;white-space:nowrap;font-size:12px}
.tpl-prefix{color:#ee16ad!important;font-weight:900}

.large-template-block{background:#fff;border-bottom:8px solid #f2f2f2;scroll-margin-top:10px}
.large-template-block .template-title-bar{height:32px;line-height:32px;background:#eb2b82;color:#fff;text-align:center;font-size:13px;font-weight:900}
.large-template-block .template-title-bar span{color:#ffe800;margin-right:8px}
.large-template-block .template-title-bar strong{color:#fff;font-size:14px}
.large-template-block .template-domain{text-align:center;color:#111;font-weight:900;font-size:16px;padding:8px 8px 7px;background:#fff;border-bottom:1px solid #eee}
.large-template-row{background:#fff;border-bottom:1px solid #eee}
.large-period-title{min-height:38px;line-height:38px;text-align:center;background:#fff3c8;color:#8a5a00;font-size:14px;font-weight:900;border-top:1px solid #f6dd8c;border-bottom:1px solid #f2b53d}
.large-content-wrap{position:relative;min-height:108px;padding:14px 86px 14px 12px;background:#fff}
.large-content-lines{color:#ff003c;font-size:13px;line-height:2;font-weight:900;white-space:normal;word-break:break-word}
.large-result{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#ff0000;font-size:13px;font-weight:900;white-space:nowrap}

.post-type-group{background:#fff;border-bottom:8px solid #f2f2f2;scroll-margin-top:10px}
.post-type-title{height:32px;line-height:32px;background:#eb2b82;color:#fff;text-align:center;font-size:13px;font-weight:900}
.post-type-title span{color:#ffe800;margin-right:6px}
.post-type-title strong{color:#fff}
.post-type-list{padding:0;background:#f3f3f3}
.post-type-row{display:block;margin:0;padding:0;border:0;border-bottom:1px solid #d7d7d7;background:#f3f3f3}
.post-type-link{display:grid;grid-template-columns:112px minmax(0,1fr) 52px;align-items:center;min-height:34px;padding:0 10px;color:#111}
.post-type-issue{display:block;background:transparent;color:#000;padding:0;border-radius:0;font-size:13px;font-weight:900;white-space:nowrap;overflow:visible}
.post-type-link strong{color:#ff0000;font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post-type-link em{display:block;color:#999;font-style:normal;text-align:right;font-size:18px;letter-spacing:1px;font-weight:900;white-space:nowrap;line-height:1}

.post-type-detail{background:#fff;border-bottom:8px solid #f2f2f2;scroll-margin-top:10px}
.post-type-detail-title{height:32px;line-height:32px;background:#eb2b82;color:#fff;text-align:center;font-size:13px;font-weight:900}
.post-type-detail-title span{color:#ffe800;margin-right:6px}
.post-type-detail-title strong{color:#fff}
.post-type-detail-row{display:grid;grid-template-columns:72px minmax(0,1fr) 68px;gap:6px;align-items:center;min-height:38px;padding:6px 8px;border-top:1px solid #eee;background:#fff}
.post-type-detail-issue{color:#111;font-size:12px;font-weight:900}
.post-type-detail-content{color:#ff003c;font-size:13px;line-height:1.7;font-weight:900;text-align:left;word-break:break-word}
.post-type-detail-result{color:#ff0000;font-size:12px;font-weight:900;text-align:right;white-space:nowrap}

.float-actions{position:fixed;right:10px;bottom:18px;z-index:50;display:flex;flex-direction:column;gap:8px}
.float-actions button{width:48px;height:48px;border:0;border-radius:50%;background:#ef2a83;color:#fff;font-size:12px;font-weight:900;box-shadow:0 4px 12px rgba(0,0,0,.24);cursor:pointer}

.notice-modal[hidden]{display:none}
.notice-modal{position:fixed;inset:0;z-index:100}
.notice-mask{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.notice-box{position:absolute;left:50%;top:50%;width:min(88vw,420px);transform:translate(-50%,-50%);background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.notice-title{background:#ef2a83;color:#fff;padding:10px;text-align:center;font-weight:900}
.notice-content{padding:16px;line-height:1.8;color:#333;max-height:50vh;overflow:auto}
.notice-close{display:block;width:calc(100% - 24px);margin:0 12px 12px;height:38px;border:0;border-radius:8px;background:#ef2a83;color:#fff;font-weight:900}

.site-footer,
.closing-text,
.demo-tip,
.post-board{display:none!important}

@media(max-width:420px){
  .site3-shell{max-width:none}
  .quick-nav{grid-template-columns:repeat(5,1fr);gap:4px;padding-left:6px;padding-right:6px}
  .quick-nav a{font-size:11px}
  .draw-ball{width:34px;height:34px;line-height:28px;font-size:14px}
  .template-row{grid-template-columns:58px minmax(0,1fr) 60px;font-size:11px;padding-left:6px;padding-right:6px}
  .large-content-wrap{padding-right:72px}
  .large-content-lines{font-size:12px}
  .large-result{right:8px;font-size:12px}
  .post-type-link{grid-template-columns:100px minmax(0,1fr) 48px;padding:0 8px}
  .post-type-link em{font-size:17px;letter-spacing:1px}
  .float-actions{right:6px}
  .float-actions button{width:42px;height:42px}
}


.bottom-image-list{display:block!important;background:#fff;border-top:8px solid #f2f2f2;padding-bottom:8px}
.bottom-image-list figure{margin:0;border-bottom:1px solid #e5e5e5}
.bottom-image-list img{display:block;width:100%;height:auto}

.post-detail-page-body{background:#fff;color:#111;font-family:Arial,"Microsoft YaHei",sans-serif}
.post-detail-page{width:100%;max-width:720px;margin:0 auto;background:#fff;min-height:100vh;padding-bottom:30px}
.post-detail-head{position:relative;height:44px;line-height:44px;border-bottom:1px solid #eee;text-align:center;color:#ef2a83}
.post-detail-head h1{margin:0;font-size:18px;font-weight:900;color:#ef2a83}
.post-detail-back{position:absolute;left:12px;top:0;height:44px;line-height:44px;font-size:28px;color:#ef2a83;font-weight:400}
.post-detail-card{width:calc(100% - 24px);margin:14px auto;border:1px solid #ff9aca;border-radius:5px;overflow:hidden;background:#fff}
.post-detail-card-title{height:34px;line-height:34px;text-align:center;background:#eb2b82;color:#fff;font-weight:900;font-size:14px}
.post-detail-card-row{min-height:42px;border-bottom:1px dashed #e6e6e6;padding:9px 10px;background:#fff}
.post-detail-card-row:last-child{border-bottom:0}
.post-detail-main{display:flex;align-items:flex-start;gap:8px;font-size:16px;font-weight:900;line-height:1.6;color:#111}
.post-detail-issue{flex:0 0 auto;color:#ff0000;white-space:nowrap}
.post-detail-content{flex:1;color:#111;word-break:break-word}
.post-detail-content .tpl-prefix{color:#ee16ad!important}
.post-detail-content div{display:inline}
.post-detail-content div+div{display:block;margin-top:2px}
.post-detail-result{margin-left:84px;color:#ff0000;font-size:13px;font-weight:900;line-height:1.5}
@media(max-width:420px){
  .post-detail-page{max-width:none}
  .post-detail-card{width:calc(100% - 18px);margin-top:12px}
  .post-detail-main{font-size:15px;gap:6px}
}
.site3-bottom-text{
  text-align:center !important;
}

.site3-bottom-text{
  text-align:center !important;
  padding:14px 10px 18px !important;
  background:#fff !important;
}

.site3-bottom-text h3{
  text-align:center !important;
  color:#ee16ad !important;
  font-size:16px !important;
  font-weight:900 !important;
  margin:0 0 8px !important;
}

.site3-bottom-text p{
  text-align:center !important;
  color:#003344 !important;
  font-size:13px !important;
  line-height:1.8 !important;
  margin:0 !important;
}
.template-desc-board{
  background:#fff;
  border-bottom:1px solid #e6d3b1;
  padding:8px 8px 7px;
  text-align:center;
  line-height:1.9;
  font-size:15px;
  font-weight:500;
}

.template-desc-board p{
  margin:0;
  color:#111;
}

.template-desc-board span{
  color:#1f58ff;
  font-weight:500;
}
/* STAGE3_SITE3_RULE_CLEAN: generated material state + hit highlight */
.hit-item{
  display:inline-block;
  background:#ffe35a;
  color:#d60000;
  border-radius:3px;
  padding:0 2px;
  font-weight:900;
}
.template-empty{
  margin:8px;
  padding:10px;
  border:1px dashed #f6b5c8;
  border-radius:6px;
  background:#fff8fb;
  color:#b91c1c;
  text-align:center;
  font-weight:800;
  line-height:1.6;
}
.template-row.is-generated .row-content,
.template-row.is-generated .row-result{
  font-weight:900;
}


/* ===== 图片模板文字层：site1-site4 统一前台叠加层 ===== */
.lhc-image-layer-template{
    position:relative;
    display:block;
    width:100%;
    overflow:hidden;
}
.lhc-image-layer-base{
    display:block;
    width:100%;
    height:auto;
}
.lhc-image-layer{
    position:absolute;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:1px 2px;
    white-space:pre-line;
    word-break:break-word;
    text-shadow:0 1px 2px rgba(255,255,255,.65);
    pointer-events:none;
}
.lhc-image-layer-img{
    object-fit:contain;
}
@media(max-width:640px){
    .lhc-image-layer{
        padding:0 1px;
        text-shadow:0 1px 1px rgba(255,255,255,.7);
    }
}

/* ===== 图片模板文字层 v4 通用叠加层 ===== */
.lhc-image-layer-template{position:relative;display:block;width:100%;overflow:visible}
.lhc-image-layer-base{display:block;width:100%;height:auto}
.lhc-image-layer{position:absolute;box-sizing:border-box;display:flex;align-items:center;justify-content:center;white-space:pre-line;word-break:break-word;pointer-events:auto}
.lhc-image-layer-img{object-fit:contain}
/* ===== 图片模板文字层 v4.2 通用叠加层 ===== */
.lhc-image-layer-template{position:relative;display:block;width:100%;overflow:visible}
.lhc-image-layer-base{display:block;width:100%;height:auto}
.lhc-image-layer,.lhc-image-fixed-layer{position:absolute;box-sizing:border-box;display:flex;align-items:center;justify-content:center;white-space:pre-line;word-break:break-word;pointer-events:auto}
.lhc-image-layer-img{object-fit:contain}

/* v9.3: desktop uses 720px container; mobile remains fluid. */
.site3-shell, .post-detail-page {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.site3-shell img,
.post-detail-page img {
  max-width: 100%;
}
.float-actions {
  right: 10px;
  bottom: 18px;
}
@media(max-width:420px){
  .site3-shell,.post-detail-page{max-width:none}
  .float-actions{right:6px}
}

/* v9.5: keep site3 desktop 720px and keep floating buttons at viewport right-bottom. */
.site3-shell,.post-detail-page{width:100% !important;max-width:720px !important;margin-left:auto !important;margin-right:auto !important;}
.site3-shell img,.post-detail-page img,.site3-shell video,.post-detail-page video{max-width:100%;height:auto;}
.float-actions{position:fixed !important;right:10px !important;bottom:18px !important;left:auto !important;z-index:80 !important;}
@media(max-width:420px){.site3-shell,.post-detail-page{max-width:none !important}.float-actions{right:6px !important;bottom:18px !important}}

/* 20260519: 网站3【三期必中】按三期一组，中间一行显示资料，两边只显示期号与开奖结果 */
.site3-sanqi-bizhong .template-row .row-content{min-height:1.4em}
.site3-sanqi-bizhong .template-row .row-content:empty::before{content:"\00a0"}

/* v20260521: site3 mobile readable fonts + overflow guard. */
html, body { max-width:100%; overflow-x:hidden; }
.site3-shell { overflow-x:hidden; }
.site3-shell img,.site3-shell video,.site3-shell canvas,.site3-shell svg { max-width:100%; height:auto; }
.lhc-image-layer-template { overflow:hidden !important; max-width:100%; }
.text-template-block .template-row,
.text-template-block .row-content,
.text-template-block .row-issue,
.text-template-block .row-result,
.text-template-block .template-domain,
.text-template-block .template-desc-board,
.text-template-block .template-empty {
  font-size:14px;
  line-height:1.5;
}
.large-template-block .large-content-lines,
.large-template-block .large-result,
.post-type-detail-content,
.post-type-detail-result,
.post-type-detail-issue,
.post-detail-content,
.post-detail-result,
.post-detail-issue {
  font-size:15px;
  line-height:1.65;
}
@media(max-width:420px){
  .text-template-block .template-row,
  .text-template-block .row-content,
  .text-template-block .row-issue,
  .text-template-block .row-result,
  .text-template-block .template-domain,
  .text-template-block .template-desc-board,
  .text-template-block .template-empty {
    font-size:14px !important;
    line-height:1.5 !important;
  }
  .large-template-block .large-content-lines,
  .large-template-block .large-result,
  .post-type-detail-content,
  .post-type-detail-result,
  .post-type-detail-issue,
  .post-detail-content,
  .post-detail-result,
  .post-detail-issue {
    font-size:15px !important;
    line-height:1.65 !important;
  }
}

/* image-layer-cross-device-v2 20260615: 图片模板文字层跨设备一致显示，不改后台保存的坐标/字号/颜色 */
html,body{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;}
.lhc-image-layer-template[data-lhc-image-layer-template="1"],.lhc-image-layer-template{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;overflow:hidden!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;}
.lhc-image-layer-base{display:block!important;width:100%!important;height:auto!important;}
.lhc-image-layer{position:absolute!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;white-space:pre-line!important;word-break:keep-all!important;overflow-wrap:normal!important;word-wrap:normal!important;line-break:strict!important;max-width:none!important;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;}
.lhc-image-layer-text{unicode-bidi:plaintext;}
.lhc-image-layer-img{object-fit:contain!important;}
.lhc-image-fixed-layer{position:absolute!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;}

/* image-layer-wrap-fix-v4 20260615: 诗词/长句允许换行，号码期数继续不换行 */
.lhc-image-layer-template{
  background:transparent!important;
}
.lhc-image-layer-text[data-layer-key*="poem"],
.lhc-image-layer-text[data-layer-key*="gift"],
.lhc-image-layer-text[data-layer-key*="orange"],
.lhc-image-layer-text[data-layer-key*="explain"],
.lhc-image-layer-text[data-layer-key*="desc"],
.lhc-image-layer-text[data-layer-key*="text"],
.lhc-image-layer-text[data-layer-key="one"],
.lhc-image-layer-text[data-layer-key="e1"],
.lhc-image-layer-text[data-layer-key="e2"],
.lhc-image-layer-text[data-layer-label*="诗"],
.lhc-image-layer-text[data-layer-label*="句"],
.lhc-image-layer-text[data-layer-label*="解释"],
.lhc-image-layer-text[data-layer-label*="说明"],
.lhc-image-layer-text[data-layer-label*="暗藏"],
.lhc-image-layer-text[data-layer-label*="赠"],
.lhc-image-layer-text[data-layer-label*="送区"]{
  white-space:pre-wrap!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  word-wrap:break-word!important;
  line-break:auto!important;
}

/* image-layer-wrap-final-v5 20260615: 只允许诗词/说明/解释/赠诗等长文字换行 */
.lhc-image-layer-template{
  background:transparent!important;
}
.lhc-image-layer-text[data-long-text="1"]{
  display:block!important;
  white-space:pre-wrap!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  word-wrap:break-word!important;
  line-break:auto!important;
}

/* image-layer-render-clean-v9 20260615 */
.lhc-image-layer-template[data-lhc-image-layer-template="1"],
.lhc-image-layer-template{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  background:transparent!important;
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}

.lhc-image-layer-base{
  display:block!important;
  width:100%!important;
  height:auto!important;
}

.lhc-image-layer-template .lhc-image-layer,
.lhc-image-layer-template .lhc-image-fixed-layer{
  position:absolute!important;
  box-sizing:border-box!important;
  transform:none!important;
  -webkit-transform:none!important;
  transform-origin:left top!important;
  -webkit-transform-origin:left top!important;
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}

.lhc-image-layer-template .lhc-image-layer-text{
  white-space:pre-line!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  word-wrap:normal!important;
}

.lhc-image-layer-template .lhc-image-layer-text[data-long-text="1"]{
  display:block!important;
  white-space:pre-wrap!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  word-wrap:break-word!important;
  line-break:auto!important;
}

.lhc-image-layer-template .lhc-image-layer-img,
.lhc-image-layer-template img.lhc-image-layer-img{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  object-fit:contain!important;
}

