/* 49图库 前台样式（仿 49208.com 版式）2026-10-30 */
:root{
  --green:#07c160;
  --green-d:#06ad56;
  --red:#ff3333;
  --blue:#3399ff;
  --ballgreen:#13cb46;
  --txt:#333;
  --sub:#999;
  --line:#ededed;
  --bg:#f5f5f5;
  --card:#fff;
  --navh:46px;
  --tabh:50px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:#fff;color:var(--txt);
  font:14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",Helvetica,Arial,"Microsoft YaHei",sans-serif;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block;border:0}
button{font-family:inherit}
.app{max-width:480px;margin:0 auto;background:#fff;min-height:100vh;position:relative;padding-bottom:calc(var(--tabh) + env(safe-area-inset-bottom))}
.body-gap{height:var(--navh)}

/* ---------- 顶部导航 ---------- */
.topbar{
  position:fixed;top:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:480px;height:var(--navh);z-index:120;
  background:#fff;border-bottom:1px solid #f2f2f2;
  display:flex;align-items:center;padding:0 8px;
}
.tb-left{flex:0 0 auto;min-width:96px}
.tb-badge{
  display:inline-flex;flex-direction:column;justify-content:center;
  background:var(--green);color:#fff;border-radius:6px;padding:3px 8px;
  font-size:11px;line-height:1.25;letter-spacing:.2px;
}
.tb-badge b{font-size:12px;font-weight:600;display:flex;align-items:center;gap:2px}
.tb-badge i{font-style:normal;font-size:9px;opacity:.85}
.tb-title{flex:1;text-align:center;font-size:20px;font-weight:500;color:#111;letter-spacing:1px}
.tb-right{flex:0 0 auto;display:flex;gap:8px;min-width:96px;justify-content:flex-end}
.tb-right a{display:flex;flex-direction:column;align-items:center;font-size:13px;color:#000;line-height:1.1}
.tb-right svg{width:18px;height:18px;margin-bottom:2px}

/* ---------- 轮播 ---------- */
.banner{position:relative;overflow:hidden;background:#eee}
.banner-track{display:flex;transition:transform .4s ease;will-change:transform}
.banner-track .slide{flex:0 0 100%;position:relative}
.banner-track img{width:100%;height:auto;display:block}
.banner-dots{position:absolute;left:0;right:0;bottom:6px;display:flex;justify-content:center;gap:5px}
.banner-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.6);display:block}
.banner-dots i.on{background:#fff;width:14px;border-radius:3px}

/* ---------- 公告 ---------- */
.notice{height:31px;display:flex;align-items:center;gap:6px;padding:0 10px;background:#fff;overflow:hidden}
.notice svg{flex:0 0 auto;width:16px;height:16px;fill:#ff3333}
.notice-wrap{flex:1;overflow:hidden;position:relative;height:31px}
.notice-text{
  position:absolute;left:0;top:0;white-space:nowrap;font-size:12.5px;color:#333;line-height:31px;
  animation:marquee 26s linear infinite;
}
.notice-wrap:hover .notice-text{animation-play-state:paused}
@keyframes marquee{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}

/* ---------- 澳彩 / 港彩 ---------- */
.lot-cards{display:flex;gap:5px;padding:5px;background:#fff}
.lot-card{
  flex:1;display:block;text-align:center;padding:5px 0 6px;border-radius:4px;
  background:#fff;border:1px solid #eee;color:var(--txt);
}
.lot-card b{display:block;font-size:16px;font-weight:600;line-height:1.35}
.lot-card span{display:block;font-size:14px;color:var(--sub);line-height:1.4}
.lot-card.on{background:var(--green);border-color:var(--green);color:#fff}
.lot-card.on span{color:#fff}

/* ---------- 开奖盒 ---------- */
.draw{margin:16px 5px 8px;border:1px solid var(--green);border-radius:5px;background:#fff;padding:10px 8px 6px;position:relative}
.draw-live{
  position:absolute;top:-21px;left:50%;transform:translateX(-50%);
  min-width:96px;height:26px;line-height:26px;text-align:center;
  background:var(--green);color:#fff;font-size:15px;border-radius:8px 8px 0 0;
  clip-path:polygon(6% 0,94% 0,100% 100%,0 100%);
}
.draw-hd{display:flex;align-items:center;justify-content:space-between;font-size:14px;line-height:20px;gap:4px}
.draw-q{color:#333;white-space:nowrap}
.draw-q b{color:var(--green);font-weight:600}
.draw-cd{color:#333;white-space:nowrap;display:flex;align-items:center;gap:2px}
.draw-cd i{font-style:normal;color:var(--red);letter-spacing:.5px;font-weight:600}
.draw-his{color:var(--green);white-space:nowrap}
.draw-balls{display:flex;align-items:flex-start;justify-content:space-between;margin-top:10px}
.ball-wrap{display:flex;flex-direction:column;align-items:center;width:50px}
.ball{
  width:50px;height:50px;border-radius:50%;background:#fff;border:5px solid #ccc;
  display:flex;align-items:center;justify-content:center;
  font-size:24px;font-weight:700;line-height:1;color:#333;
}
.ball.red{border-color:var(--red)}
.ball.blue{border-color:var(--blue)}
.ball.green{border-color:var(--ballgreen)}
.ball-txt{margin-top:8px;font-size:15px;color:#333;line-height:1.2;white-space:nowrap}
.ball-plus{align-self:flex-start;height:50px;display:flex;align-items:center;font-size:24px;color:#888;font-weight:700;padding:0 2px}
.draw-ft{text-align:center;color:#ff4400;font-size:13px;margin-top:8px;line-height:1.4}
.draw-empty{padding:14px 0;text-align:center;color:var(--sub);font-size:14px}

/* ---------- 快捷链接 4 列 ---------- */
.qlinks{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:10px 5px;background:#fff}
.qlinks a{
  height:31px;border-radius:4px;background:#f8f8f8;display:flex;align-items:center;justify-content:center;
  font-size:14.5px;color:#444;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 4px;
}

/* ---------- 图标入口 5 列 ---------- */
.entries{background:#fff;border-top:5px solid var(--bg);padding:14px 5px 4px}
.entries .row{display:grid;grid-template-columns:repeat(5,1fr);gap:16px 4px}
.entry{display:flex;flex-direction:column;align-items:center}
.entry .ico{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}
.entry .ico svg{width:26px;height:26px;fill:#fff}
.entry span{margin-top:8px;font-size:15px;color:#333;line-height:1.1;white-space:nowrap}
.g1{background:linear-gradient(135deg,#5fe0b0,#22c58a)}
.g2{background:linear-gradient(135deg,#56a8f5,#2b7fe0)}
.g3{background:linear-gradient(135deg,#ffa726,#f57c00)}
.g4{background:linear-gradient(135deg,#9cdc4e,#4caf50)}
.g5{background:linear-gradient(135deg,#4fc3f7,#1e9bd7)}
.g6{background:linear-gradient(135deg,#d07ef0,#a94bd0)}
.g7{background:linear-gradient(135deg,#ef6a5e,#d64545)}
.g8{background:linear-gradient(135deg,#5c6bc0,#3949ab)}
.g9{background:linear-gradient(135deg,#4dd0e1,#00acc1)}
.g10{background:linear-gradient(135deg,#ff8a80,#e5533d)}

/* ---------- 年份 ---------- */
.years{background:#fff;display:flex;gap:16px;overflow-x:auto;padding:10px 10px 12px;scrollbar-width:none}
.years::-webkit-scrollbar{display:none}
.year{display:flex;flex-direction:column;align-items:center;flex:0 0 auto;min-width:72px}
.year .yc{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--green)}
.year .yc.gray{background:#d9d9d9}
.year .yc svg{width:24px;height:24px}
.year span{margin-top:8px;font-size:14.5px;color:#333;white-space:nowrap}
.year.on span{color:var(--green)}

/* ---------- 系列 ---------- */
.series{background:#fff;display:flex;gap:8px;overflow-x:auto;padding:6px 5px 10px;scrollbar-width:none}
.series::-webkit-scrollbar{display:none}
.series a{
  flex:0 0 auto;height:32px;padding:0 16px;border-radius:4px;background:#f5f5f5;color:#333;
  display:flex;align-items:center;font-size:15px;
}
.series a.on{background:var(--green);color:#fff}
.series a{background:var(--green);color:#fff}
.series a.more{background:#f0f0f0;color:#666}
.series.tabs a{background:#f5f5f5;color:#333}
.series.tabs a.on{background:var(--green);color:#fff}

/* ---------- 图片卡片 ---------- */
.grid{display:flex;gap:5px;padding:0 10px;align-items:flex-start;background:#fff}
.grid .col{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}
.card{
  display:block;width:100%;background:#fff;border:1px solid #bbb;border-radius:4px;overflow:hidden;
}
.card .ph{display:block;width:100%;background:#f2f2f2;min-height:60px;overflow:hidden}
.card .ph img{width:100%;height:auto;display:block}
.card .cap{padding:8px 6px;text-align:center;font-size:14.5px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.loading{padding:16px 0;text-align:center;color:var(--sub);font-size:13px}
.empty{padding:40px 20px;text-align:center;color:var(--sub);font-size:14px;line-height:1.8}

/* ---------- 寻宝 / 网址大全 ---------- */
.ws-top{background:var(--green);padding-bottom:10px}
.ws-nav{display:flex;align-items:center;justify-content:center;gap:46px;height:52px;color:#fff;font-size:18px}
.ws-nav a{color:#fff;position:relative;line-height:1;padding-bottom:6px}
.ws-nav a.on{font-weight:700}
.ws-nav a.on:after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:24px;height:3px;border-radius:2px;background:#fff}
.ws-search{display:flex;align-items:center;gap:10px;padding:0 10px}
.ws-search .inp{flex:1;display:flex;align-items:center;background:#fff;border-radius:16px;height:32px;padding:0 12px}
.ws-search .inp svg{width:15px;height:15px;stroke:#bbb;fill:none;stroke-width:2;flex:0 0 auto}
.ws-search .inp input{flex:1;min-width:0;border:0;outline:0;font-size:14px;background:transparent;margin-left:6px;color:#333;-webkit-appearance:none}
.ws-search button{border:0;background:transparent;color:#fff;font-size:15px;padding:0 4px}
.ws-tabs{background:#fff;display:flex;justify-content:center;gap:90px;height:46px;align-items:center;border-bottom:1px solid #f0f0f0}
.ws-tabs a{font-size:17px;color:#333;position:relative;line-height:46px}
.ws-tabs a.on{color:var(--green);font-weight:600}
.ws-tabs a.on:after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:30px;height:3px;border-radius:2px;background:var(--green)}
.ws-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px 0;padding:10px 4px 8px;background:#fff}
.ws-item{display:flex;flex-direction:column;align-items:center;padding:5px 2px;min-width:0}
.ws-item .lg{width:88px;max-width:100%;height:48px;border-radius:4px;object-fit:contain;background:#fff}
.ws-item .lg.ph{display:flex;align-items:center;justify-content:center;background:#f2f2f2;color:#888;font-size:12px;text-align:center;overflow:hidden}
.ws-item .nm{margin-top:6px;font-size:14px;color:#333;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.ws-empty{padding:60px 20px;text-align:center;color:var(--sub);font-size:14px;line-height:1.8}

/* ---------- 悬浮按钮 ---------- */
.fab{
  position:fixed;bottom:calc(var(--tabh) + 18px + env(safe-area-inset-bottom));
  right:max(10px, calc(50% - 240px + 10px));
  width:52px;height:52px;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.16);
  display:flex;align-items:center;justify-content:center;z-index:110;
}
.fab svg{width:24px;height:24px;stroke:var(--green);stroke-width:2.4}

/* ---------- 底部导航 ---------- */
.tabbar{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:480px;height:calc(var(--tabh) + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);
  background:#fff;display:flex;z-index:120;box-shadow:0 -1px 6px rgba(0,0,0,.07);
}
.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999;font-size:12px;line-height:1;position:relative}
.tabbar a svg{width:22px;height:22px;margin-bottom:3px;fill:#999}
.tabbar a.on{color:var(--green)}
.tabbar a.on svg{fill:var(--green)}
.tabbar a.mid{justify-content:flex-end;padding-bottom:4px}
.tabbar a.mid.on{color:var(--green)}
.tabbar a.mid .midc{
  position:absolute;top:-14px;left:50%;transform:translateX(-50%);
  width:42px;height:42px;border-radius:50%;background:var(--green);
  display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(7,193,96,.4);
}
.tabbar a.mid .midc svg{width:24px;height:24px;fill:#fff;margin:0}
.tabbar .hot{
  position:absolute;top:-18px;right:10px;background:#ff3b30;color:#fff;font-size:10px;line-height:1;
  padding:2px 4px;border-radius:6px;
}

/* ---------- 详情页 ---------- */
.detail-top{
  position:fixed;top:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;height:var(--navh);
  background:#fff;display:flex;align-items:center;padding:0 10px;z-index:120;border-bottom:1px solid #f2f2f2;
}
.detail-top .back{width:34px;height:34px;display:flex;align-items:center;justify-content:center;margin-left:-6px}
.detail-top .back svg{width:20px;height:20px;stroke:#333;stroke-width:2;fill:none}
.detail-top .tt{flex:1;text-align:center;font-size:16px;color:#333;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.detail-top .acts{display:flex;gap:12px}
.detail-top .acts a{display:flex;flex-direction:column;align-items:center;font-size:12px;color:var(--green);line-height:1.1}
.detail-top .acts svg{width:18px;height:18px;stroke:var(--green);stroke-width:1.8;fill:none;margin-bottom:1px}
.pic-wrap{padding:6px 0;background:#f2f2f2}
.pic-wrap img{width:100%;height:auto;display:block;background:#fff}
.pic-bar{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#fff;font-size:14px}
.pic-bar .nm{color:#333;font-weight:600;font-size:16px}
.pic-bar .dt{color:var(--sub);font-size:13px}
.pic-nav{display:flex;gap:8px;padding:0 12px 12px;background:#fff}
.pic-nav a{flex:1;height:38px;border-radius:4px;background:#f5f5f5;display:flex;align-items:center;justify-content:center;font-size:15px;color:#333}
.pic-nav a.on{background:var(--green);color:#fff}
.pic-nav a.dis{color:#bbb}
.sec-t{background:#fff;border-top:8px solid var(--bg);padding:12px 10px 6px;font-size:16px;color:#333}
.related{display:flex;gap:8px;overflow-x:auto;padding:0 10px 14px;background:#fff;scrollbar-width:none}
.related::-webkit-scrollbar{display:none}
.related a{flex:0 0 auto;width:110px}
.related img{width:110px;height:140px;object-fit:cover;border-radius:4px;background:#f7f7f7}
.related span{display:block;margin-top:6px;font-size:13px;color:#333;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- 开奖记录 ---------- */
.rec-list{padding:8px 10px}
.rec-item{background:#fff;border-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.06);padding:10px;margin-bottom:8px}
.rec-hd{display:flex;justify-content:space-between;font-size:14px;color:#333;margin-bottom:6px}
.rec-hd em{font-style:normal;color:var(--green);font-weight:600}
.rec-hd i{font-style:normal;color:var(--sub);font-size:12px}
.rec-balls{display:flex;flex-wrap:wrap;gap:6px}
.rec-ball{width:32px;height:32px;border-radius:50%;border:3px solid #ccc;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:#333}
.rec-ball.red{border-color:var(--red);color:var(--red)}
.rec-ball.blue{border-color:var(--blue);color:var(--blue)}
.rec-ball.green{border-color:var(--ballgreen);color:#0a9c36}

/* ---------- 页脚 ---------- */
.foot{padding:18px 14px 26px;text-align:center;color:#bbb;font-size:12px;line-height:1.9;background:#fff;border-top:8px solid var(--bg)}

@media (max-width:360px){
  .tb-badge{font-size:10px}
  .tb-title{font-size:18px}
  .ball,.ball-wrap{width:42px}
  .ball{height:42px;font-size:21px}
  .ball-plus{height:42px;font-size:20px}
  .qlinks a{font-size:13px}
  .entry span,.year span{font-size:13px}
}
