/* style.css — 门户复刻样式（对齐 12659 原版视觉） */
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  font: 400 14px/1.5 "Microsoft YaHei", Helvetica, Arial, sans-serif;
  background: #f0f5f9;
  max-width: 720px;
  margin: 0 auto;
  color: #333;
}
a { text-decoration: none; color: #333; }
ul, li { list-style: none; }
img { border: 0; vertical-align: top; }
.clearfix::after { content: ""; display: block; clear: both; visibility: hidden; height: 0; }
.nullbox { height: 10px; }
.hr10 { clear: both; height: 10px; overflow: hidden; }

/* 头部：由 /zy/zy.js 注入 iframe */
.header { background: #fff; }
.header iframe { display: block; width: 100%; border: 0; }

/* 频道导航 */
.channels-wrap { width: 100%; max-width: 720px; font-size: 16px; background: #fff; }
.channels { background: #fff; padding: 8px 5px 5px 5px; clear: both; border-top: 1px solid #d7d7d7; overflow: hidden; position: relative; display: flex; flex-wrap: wrap; }
.channels li { flex: 0 0 20%; width: 20%; box-sizing: border-box; text-align: center; line-height: 32px; height: 32px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.channels li a { display: block; position: relative; }
.channels li a.thisclass { color: #d52b2b; font-weight: 700; }

/* 搜索 */
.search { width: 100%; padding: 10px 0 0; position: relative; overflow: hidden; box-sizing: border-box; background: #fff; }
.bdcs-search-form { position: relative; padding: 0 65px 10px 5px; }
.search_txt { float: left; border: 1px solid #e8e8e8; width: 100%; height: 38px; line-height: 38px; padding: 0 4%; -webkit-appearance: none; background: #fff; font-size: 14px; box-sizing: border-box; }
.search_btn { position: absolute; right: 5px; top: 11px; width: 60px; height: 40px; line-height: 40px; border: none; background: #4763b2; color: #fff; font-size: 16px; text-align: center; }

/* 主体 */
.wrap { max-width: 720px; margin: 0 auto; background: #fff; }
.modd { background: #fff; padding: 0 10px; }
.title { height: 40px; line-height: 40px; border-bottom: 2px solid #4763b2; position: relative; }
.title h3 { font-size: 18px; color: #333; }
.title em { position: absolute; left: 0; top: 15px; width: 4px; height: 18px; background: #d52b2b; }
.title a { color: #333; }
.article-hot { margin-top: 2px; overflow: hidden; }
.article-hot li { border-bottom: 1px solid #eee; overflow: hidden; padding: 8px 0 6px; }
.article-hot li a.t { display: block; font-size: 16px; line-height: 24px; color: #333; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.article-hot li a.t::before { content: "· "; color: #d52b2b; }
.article-hot li p { color: #999; font-size: 13px; line-height: 20px; max-height: 40px; overflow: hidden; }

/* 面包屑 */
.toolbar { width: 100%; color: #3e98f0; border-bottom: 2px solid #3e98f0; height: 30px; line-height: 30px; margin: 10px auto 0; padding: 0 5px; box-sizing: border-box; background: #fff; }
.toolbar a { color: #3e98f0; }

/* 栏目列表 */
section.clist { background: #fff; padding: 0 10px; }
#infocon li { border-bottom: 1px solid #eee; overflow: hidden; padding: 8px 0 6px; }
#infocon li a { display: block; font-size: 16px; line-height: 24px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#infocon li a::before { content: "· "; color: #d52b2b; }
#infocon li p { color: #999; font-size: 13px; line-height: 20px; max-height: 40px; overflow: hidden; }
.pagination { text-align: center; padding: 15px 0; clear: both; overflow: hidden; }
.pagination a, .pagination strong { display: inline-block; padding: 4px 10px; margin: 0 2px; border: 1px solid #ddd; background: #fff; color: #333; font-size: 14px; }
.pagination strong { background: #4763b2; color: #fff; border-color: #4763b2; }

/* 文章页 */
section.wzlist { background: #fff; padding: 5px 12px 15px; }
.wtitle { text-align: center; border-bottom: 1px solid #eee; padding: 12px 0 8px; }
.wtitle h1 { font-size: 22px; line-height: 32px; color: #333; }
.wtitle p { color: #999; font-size: 13px; margin-top: 6px; }
.wtitle p a { color: #999; }
#content { padding: 12px 2px; font-size: 16px; line-height: 1.9; color: #444; }
#content p { margin: 0 0 14px; text-indent: 0; }
.art_xg { clear: both; border-top: 1px solid #eee; padding-top: 10px; overflow: hidden; }
.art_xg h4 { font-size: 15px; margin-bottom: 6px; }
.art_xg li { line-height: 28px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
section.xgwz { background: #fff; margin-top: 10px; padding: 8px 12px; }
section.xgwz b { display: block; font-size: 15px; border-left: 4px solid #d52b2b; padding-left: 8px; margin-bottom: 4px; }
section.xgwz li { line-height: 30px; border-bottom: 1px solid #f2f2f2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
section.xgwz li span { color: #999; margin-right: 8px; font-size: 13px; }
.asd { height: 10px; overflow: hidden; }

/* 底部导航 */
.nav-foot { overflow: hidden; padding-top: 10px; background: #fff; }
.nav-foot ul { overflow: hidden; padding: 10px 0; line-height: 25px; display: flex; flex-wrap: wrap; }
.nav-foot li { flex: 0 0 20%; width: 20%; box-sizing: border-box; text-align: center; }
.nav-foot a { color: #333; font-size: 16px; }
.footer-min { padding: 15px; text-align: center; background: #fff; }
.footer-min .app a { color: #555; font-size: 16px; }
.footer-min .copyright { margin-top: 5px; color: #888; font-size: 12px; }

/* 搜索结果页 */
.result-empty { padding: 30px; text-align: center; color: #999; background: #fff; }

/* ===== 开奖条（tb 头部 iframe 内）===== */
.kjtab { width: 100%; background: #fff; table-layout: fixed; border-collapse: collapse; font-family: "Microsoft YaHei", sans-serif; }
.kjtab td { padding: 0 1px; vertical-align: middle; }
.kjtab .kj-label { width: 18%; text-align: center; font-size: 14px; color: #bd3131; }
.kjtab .kj-label .kj-title { font-size: 14px; color: #bd3131; font-weight: 700; }
.kjtab .kj-label #q { color: #d52b2b; font-weight: 700; }
.kjtab td:nth-child(n+2) { width: 11%; }
.kjtab td.kj-rec { width: 5%; background: #ff0; text-align: center; }
.kjtab .o { border: 1px solid #ddd; margin: auto; width: 100%; text-align: center; }
.kjtab .num { color: #fff; font-weight: 700; font-size: 17px; line-height: 22px; }
.kjtab .txt { background: #fff; color: #333; font-size: 12px; font-weight: 700; line-height: 18px; }
.kjtab .txt .sep { margin: 0 2px; }
.kjtab .j { color: #ff3300; font-size: 15px; font-weight: 700; display: block; line-height: 16px; }

/* ===== 顶部金色头部（tb/index.html）===== */
.tb-body { max-width: 720px; margin: 0 auto; background: #f0f5f9; }
.tb-header { position: sticky; top: 0; z-index: 99; width: 100%; max-width: 720px; margin: 0 auto;
  background-image: linear-gradient(to right, #EAC117, #EAC117, #FFE5B4, #FFD801, #FFD801, #EAC117, #EAC117);
  border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; }
.tb-header .logo-box { height: 50px; padding: 0 6px; display: flex; align-items: center; justify-content: space-between; }
.tb-header .logo img { height: 42px; display: block; }
.tb-header .bank img { height: 42px; display: block; }
.tb-header .kjnav { border-top: 1px solid #000; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; overflow: hidden; }

/* ===== 号码球（历史/资料通用）===== */
.ball { display: inline-block; width: 26px; height: 26px; line-height: 26px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 15px; text-align: center; margin: 1px; }
.ball.te { box-shadow: 0 0 0 2px #555; }

/* ===== 资料页（ziliao）===== */
body.zl { background: #fff; font-size: 15px; }
.zl-wrap { max-width: 720px; margin: 0 auto; background: #fff; padding-bottom: 20px; }
.subnav { display: flex; background: #f8d769; justify-content: space-around; border-radius: 4px; margin: 6px; padding: 4px 0; }
.subnav a { text-align: center; font-size: 14px; font-weight: 700; color: #333; width: 20%; }
.subnav a img { width: 40px; height: 40px; display: block; margin: 0 auto; border: 0; }
.zl-cal { text-align: center; font-size: 15px; padding: 6px 4px; line-height: 26px; border-bottom: 1px dashed #999; }
.zl-cal .cal-d { color: #c00; }
.zl-cal .cal-l { color: #333; }
.zl-cal .cal-s { color: #00c; }
.zl-clock { text-align: center; color: #00c; font-size: 18px; }
.zl-banner { text-align: center; padding: 6px 2px; font-size: 18px; }
.zl-banner .d1 { color: #d00; font-weight: 900; font-size: 26px; font-family: Georgia, serif; }
.zl-sec { border: 3px double #c00; margin: 10px 6px; border-radius: 6px; overflow: hidden; }
.zl-sec > h2 { background: #ffe; color: #c00; font-size: 18px; text-align: center; padding: 6px 0; border-bottom: 1px solid #daa; }
.zl-sec .rows { padding: 4px 8px; }
.zl-row { line-height: 30px; font-size: 17px; border-bottom: 1px dashed #eee; word-break: break-all; }
.zl-row .qi { color: #00c; font-weight: 700; }
.zl-row .guess { color: #333; }
.zl-row b.hot { color: #f00; font-size: 18px; }
.zl-row .te { color: #c00; font-weight: 900; }
.zl-row .mark-ok { color: #090; font-weight: 700; }
.zl-row .mark-no { color: #00c; font-weight: 700; }
.zl-row .wait { color: #999; }
.zl-foot-note { text-align: center; color: #c00; font-weight: 700; padding: 6px; }
.zl-brands { padding: 8px; }
.zl-brands a { display: block; border: 2px solid #f60; color: #c30; border-radius: 40px; text-align: center; font-size: 18px; font-weight: 700; line-height: 42px; height: 42px; margin-bottom: 10px; }
.zl-brands a i { font-style: normal; color: #d00; }
.szbz-table { width: calc(100% - 16px); margin: 8px; border-collapse: collapse; }
.szbz-table td { border: 1px solid #ccc; text-align: center; padding: 4px 2px; font-size: 14px; }
.szbz-table td.zd { background: #eee; font-weight: 700; width: 40px; }
.szbz-table .te-num { color: #f00; font-weight: 900; }
.rec-list { padding: 4px 10px 10px; }
.rec-list a { display: block; background: #eef; border: 1px solid #99a; color: #339; border-radius: 6px; text-align: center; line-height: 40px; height: 40px; margin-bottom: 8px; font-size: 17px; font-weight: 700; }

/* ===== 开奖历史 his ===== */
body.his { background: #f7f7f7; }
.his-wrap { max-width: 720px; margin: 0 auto; background: #fff; min-height: 100vh; }
.his-tabs { display: flex; gap: 6px; padding: 6px 8px; background: #3d5aa8; }
.his-tabs a { flex: 1; text-align: center; color: #fff; line-height: 34px; font-size: 15px; font-weight: 700; border-radius: 8px; background: transparent; transition: background .15s; }
.his-tabs a:active { background: rgba(255,255,255,.14); }
.his-tabs a.on { color: #fff; }
.his-tabs a:nth-child(1).on { background: #d0342c; }
.his-tabs a:nth-child(2).on { background: #1f9d55; }
.his-tabs a:nth-child(3).on { background: #e8890c; }
.his-years { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 6; background: #fff; height: 50px; box-sizing: border-box; }
.qrow td { padding: 9px 8px; border-bottom: 1px solid #e8ecf2; }
.qh { font-size: 13px; color: #333; margin-bottom: 6px; text-align: left; }
.qh span { color: #8a94a0; font-size: 12px; }
.qb { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
#rows td { padding: 9px 10px; }
.qb .ball { height: 34px; line-height: 34px; font-size: 14px; border-radius: 3px; flex: 1 1 0; min-width: 0; color: #fff; font-weight: 700; text-align: center; box-shadow: none; }
.tef { font-style: normal; color: #333; font-weight: 700; font-size: 13px; padding: 0 2px; flex: 0 0 auto; }
.qb .ball.te { box-shadow: 0 0 0 2px #ffd23e; }
.qz { display: flex; gap: 4px; margin-top: 3px; font-size: 12px; color: #333; }
.qz span { flex: 1 1 0; min-width: 0; text-align: center; }
@media (min-width: 481px) { .qb .ball { flex: 0 0 38px; } .qz span { flex: 0 0 38px; } }
.qz .tez { color: #c00; font-weight: 700; }
.qw span { color: #777; font-size: 11px; }
.qb .ball.dim { opacity: .22; filter: grayscale(.4); }
.qz .dim { opacity: .22; }
.qw .tez { color: #c00; font-weight: 700; }
.fil { background: #fffdf2; border-bottom: 1px solid #eee; padding: 6px 8px 8px; }
.fr { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 5px; }
.fr > s { color: #c00; font-size: 12px; font-style: normal; flex: 0 0 26px; }
.fil button { border: 1px solid #e0b25a; background: #fff; color: #a05e00; padding: 2px 0; font-size: 12px; border-radius: 3px; flex: 1 1 0; min-width: 38px; text-align: center; }
.fil button.on { background: #ef8b00; border-color: #ef8b00; color: #fff; }
#zbtns { display: contents; }
.his-more { display: flex; gap: 10px; padding: 12px 10px 0; }
.foot-fixed { display: flex; background: #fff; border-top: 1px solid #e2e6ec; box-shadow: 0 -1px 8px rgba(20,40,80,.07); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding-bottom: env(safe-area-inset-bottom); }
.foot-fixed a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 0 5px; color: #8a94a0; font-size: 12px; text-decoration: none; line-height: 1.2; }
.foot-fixed a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot-fixed a.on { color: #2f6ea8; font-weight: 700; }
body.his { padding-bottom: 70px; }
/* 统一底栏（zx-foot-nav 立体版，供 his 等主站页复用） */
.zx-foot-nav{display:flex;background:#fff;border-top:1px solid #e6eaf0;box-shadow:0 -1px 6px rgba(20,40,80,.05);position:fixed;left:0;right:0;bottom:0;z-index:60;padding-bottom:env(safe-area-inset-bottom)}
.zx-foot-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 0 5px;color:#98a1ad;font-size:11px;text-decoration:none;line-height:1.2;border-radius:12px}
.zx-foot-nav a svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.zx-foot-nav a.on,.zx-foot-nav a.active{font-weight:700}
.zx-foot-nav a.on svg,.zx-foot-nav a.active svg{transform:translateY(-1px) scale(1.1)}
.zx-foot-nav a.on::after,.zx-foot-nav a.active::after{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}
.zx-foot-nav a:nth-child(1).on,.zx-foot-nav a:nth-child(1).active{color:#2f6ea8}
.zx-foot-nav a:nth-child(2).on,.zx-foot-nav a:nth-child(2).active{color:#d0342c}
.zx-foot-nav a:nth-child(3).on,.zx-foot-nav a:nth-child(3).active{color:#1e9e4a}
.his-more a { flex: 1; text-align: center; background: #4763b2; color: #fff; text-decoration: none; padding: 9px 0; border-radius: 5px; font-size: 15px; }
.his-more a:last-child { background: #fff; color: #4763b2; border: 1px solid #4763b2; }
.his-years button { border: 1px solid #bbb; background: #fff; padding: 3px 12px; border-radius: 14px; font-size: 14px; color: #333; }
.his-years button.on { background: #4763b2; border-color: #4763b2; color: #fff; }
.his-table { width: 100%; border-collapse: collapse; }
.his-table th { background: #f2f6ff; font-size: 13px; padding: 6px 2px; border-bottom: 1px solid #ddd; }
.his-table td { border-bottom: 1px solid #f0f0f0; text-align: center; padding: 4px 0; font-size: 13px; color: #666; }
.his-table .qi { color: #333; font-weight: 700; }
.his-table .tecell { position: relative; }
.his-table .te-tag { position: absolute; top: 2px; right: 2px; font-size: 10px; color: #999; }
.his-cal { text-align: center; padding: 8px 4px; font-size: 14px; line-height: 24px; border-bottom: 2px solid #4763b2; }
