/* 首页历史记录与本站历史页共用。无需替换已有 style.css。 */
.latest-history{background:#fff;border-radius:0 0 8px 8px;overflow:hidden;box-shadow:0 4px 14px #18482d0a}
.history-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#005440;color:#fff;padding:12px 10px;font-size:15px}
.history-section-head a{font-size:12px;white-space:nowrap;color:#ffdc6c}
.history-record{padding:13px 10px 11px;border-bottom:1px solid #e3eaf0;background:#fff}
.history-record:nth-child(even){background:#f7fbfd}
.history-record-head{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:10px;font-size:13px;line-height:1.4}
.history-record-head b{color:#005440;font-weight:500;white-space:nowrap}
.history-record-head time{color:#7b898c;font-size:11px;text-align:right}
.history-balls{gap:3px;margin:0;min-height:0;align-items:flex-start}
.history-balls .ball-item{flex:1 1 0;min-width:0;width:auto}
.history-balls .ball b{font-size:21px}
.history-balls .ball-item small{font-size:11px;line-height:16px;margin-top:5px}
.history-balls .plus{flex:none;font-size:20px;line-height:42px;padding:0 1px}
.history-widget-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;font-size:10px;color:#81918c}
.history-widget-footer button,.history-toolbar button,.history-pagination button{border:1px solid #b5d7ca;background:#fff;color:#005440;border-radius:5px;padding:5px 11px;white-space:nowrap}
.history-sync{line-height:1.6}.is-error{color:#c95237!important}.history-empty{color:#84958c;padding:22px 10px;text-align:center;font-size:13px}
.history-page{padding-bottom:30px}.history-page-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;background:#005440;color:#fff;padding:18px 12px}
.history-page-header h1{font-size:19px;margin:0}.history-page-header a{font-size:13px;white-space:nowrap}
.history-type-tabs{display:flex;gap:5px;background:#eaf2fb;padding:14px 10px 0}.history-type-tabs a{flex:1;text-align:center;padding:12px 2px;background:#fff;border-radius:7px 7px 0 0;color:#33574d;font-size:15px}
.history-type-tabs a[aria-current=page]{background:#08c453;color:#fff;font-weight:700}
.history-content{margin:0 10px;background:#fff;border-radius:0 0 8px 8px;overflow:hidden}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:15px 10px 9px;flex-wrap:wrap}.history-toolbar h2{font-size:15px;color:#005440;margin:0;flex:1;white-space:nowrap}.history-toolbar label{font-size:12px;white-space:nowrap}.history-toolbar select{font:inherit;border:1px solid #c9dacf;border-radius:4px;background:#fff;padding:4px 2px;color:#33574d}.history-toolbar button{font-size:12px}
.history-page-status{font-size:11px;color:#81918c;padding:0 10px;margin:0 0 12px;line-height:1.7}
.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:20px 10px;font-size:12px}.history-pagination span{text-align:center}.history-pagination button:disabled,.history-toolbar button:disabled,.history-widget-footer button:disabled{opacity:.45;cursor:default}
.history-source-note{color:#899893;font-size:11px;text-align:center;padding:0 12px 20px;margin:0}
@media(max-width:390px){.history-section-head{font-size:13px}.history-balls{gap:2px}.history-balls .ball b{font-size:18px}.history-balls .ball-item small{font-size:10px}.history-balls .plus{font-size:16px;line-height:33px}.history-record-head{font-size:12px}.history-record-head time{font-size:10px}.history-page-header h1{font-size:17px}.history-page-header a{font-size:12px}.history-toolbar h2{font-size:13px}}
/* 历史入口优先于悬浮客服，避免入口被遮挡而误点客服。 */
.lottery #history,.history-section-head a{position:relative;z-index:21}

/* 弹窗：真实开奖文字，新澳门彩与香港彩各3期。 */
.popup-history { padding-top: 1px; }
.popup-history-group { margin: 0; }
.modal .popup-history-row { display:flex; align-items:baseline; justify-content:center; gap:4px; margin:8px 0; font-size:14px; font-weight:700; line-height:1.8; white-space:nowrap; }
.popup-history-period { color:#566b62; font-size:13px; font-weight:700; }
.popup-history-row strong { color:#005440; font-size:14px; font-weight:700; }
.popup-history-status { display:block; color:#8b9691; font-size:10px; line-height:1.5; margin:2px 0 5px; }
@media(max-width:350px) {
  .modal .popup-history-row { gap:3px; font-size:13px; }
  .popup-history-period { font-size:12px; }
  .popup-history-row strong { font-size:13px; }
}

/* 隐藏正常同步时间提示，异常或缓存状态仍明确提示。 */
.popup-history-status:not(.is-error) { display:none; }
