@charset "UTF-8";
:root {
  color-scheme: light;
  --red: #e60012;
  --blue: #0281c9;
  --line: #ccc;
  --weak: #ccc;
  --text: #333;
  font-family: Tahoma, "Microsoft YaHei", Arial, Helvetica, sans-serif;
  font-size: 12px;
}
* { box-sizing: border-box; }
html { background: #f2f2f2; }
body { margin: 0; color: var(--text); background: #f2f2f2; font-family: Tahoma, "Microsoft YaHei", Arial, Helvetica, sans-serif; font-size: 12px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
ul, p, h1, h2 { margin-top: 0; }
.red { color: #ff3300; }
.blue { color: #0281c9; }
[hidden] { display: none !important; }

.headers { background: #fff; }
.headers .container { width: 1170px; max-width: calc(100% - 28px); margin: 0 auto; display: flex; padding: 20px 0; min-height: 140px; }
.headers .logo { display: block; flex: 0 0 126px; width: 126px; height: 100px; margin-right: 20px; overflow: hidden; }
.headers .logo img { display: block; width: 126px; height: 100px; object-fit: contain; }
.headers .info { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.info-top { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0; margin: 5px 0 20px; min-height: 18px; }
.info-top p { margin: 0 35px 0 0; color: #222; font: bold 14px Tahoma, "Microsoft YaHei", Arial, sans-serif; white-space: nowrap; }
.admin-entry { margin-left: auto; color: #3b92d5; font-size: 12px; line-height: 18px; white-space: nowrap; }
.admin-entry:hover, .filter-link:hover { color: #ba2636; text-decoration: underline; }
.info-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.info-footer ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; }
.info-footer ul.nums { border: 1px solid #ddd; padding: 5px 10px; margin-right: 15px; }
.info-footer ul.nums li { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: #0c4c93; margin-right: 14px; color: #fff; line-height: 30px; text-align: center; font-weight: bold; font-size: 18px; }
.info-footer ul.nums li:last-child { margin-right: 0; }
.info-footer ul.times { font-size: 18px; font-weight: bold; line-height: 42px; }
.info-footer ul.times li { text-align: center; margin-right: 4px; }
.info-footer ul.times li.numb { color: #fff; background: #737572; width: 44px; height: 42px; line-height: 42px; font-variant-numeric: tabular-nums; }
.info-footer ul.times li.time-unit { color: #333; font-size: 12px; font-weight: normal; margin-right: 9px; }
.info-footer ul.times li:last-child { margin-right: 0; }
.open-time { margin-left: 15px; color: #999; font-size: 12px; white-space: nowrap; }

.sectionContent { width: 1170px; max-width: calc(100% - 28px); margin: 10px auto 0; }
.contentTop .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 33px; background: #fff; line-height: 33px; border-left: 1px solid #ddd; border-right: 1px solid #ddd; }
.topL { display: flex; align-items: center; flex-wrap: wrap; margin-left: 22px; text-align: center; white-space: nowrap; }
.topL > span { margin-right: 7px; color: #999; }
.topL label { display: inline-flex; align-items: center; gap: 3px; margin-right: 12px; cursor: pointer; font-family: "Microsoft YaHei", Arial, sans-serif; }
.topL input { vertical-align: middle; cursor: pointer; margin: 0; }
.topR { height: 29px; position: relative; flex: 0 0 auto; display: flex; justify-content: flex-end; align-items: center; padding-right: 10px; }
.date-filters { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.date-filters > span { color: #777; }
.filter-link { border: 0; padding: 0 2px; background: transparent; color: #3b92d5; font-size: 12px; line-height: 24px; }
.filter-link.active { color: #ba2636; font-weight: bold; }
.date-filters i { color: #ccc; font-style: normal; margin: 0 5px; }

.contentMain { position: relative; width: 100%; background: #fff; box-shadow: 0 4px 8px rgba(0,0,0,.1); }
.table-scroll { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; background: #fff; }
.trend-table { position: relative; z-index: 1; width: 1170px; min-width: 1170px; table-layout: fixed; border: 1px solid #ccc; border-collapse: collapse; border-spacing: 0; text-align: center; font-family: Verdana, Arial, sans-serif; font-size: 12px; background: #fff; }
.trend-table col.period-col { width: 92px; }
.trend-table col.draw-col { width: 32px; }
.trend-table col.distribution-col { width: 25px; }
.trend-table col.metric-col { width: 40px; }
.trend-table col.count-col { width: 28px; }
.trend-table th, .trend-table td { border: 1px solid #ccc; border-collapse: collapse; padding: 0 2px; text-align: center; white-space: nowrap; overflow: hidden; }
.trend-table thead th { height: 25px; background: #f8f8f8; color: #333; font-weight: normal; }
.trend-table thead .group-head th { height: 33px; background: #f4f4f4; color: #333; font-weight: normal; }
.trend-table thead .number-head th { height: 24px; font-size: 11px; }
.trend-table th.rline, .trend-table td.rline { border-right: 2px solid #ccc; }
.trend-table td { height: 27px; line-height: 24px; color: #ccc; }
.trend-table .period { color: #333 !important; background: #fff; font-family: Verdana, Arial, sans-serif; }
.trend-table .lotteryNumber { color: #d2284d; font-weight: bold; }
.trend-table .metric-cell { color: #333; }
.trend-table .fenbu { color: #ccc; }
.trend-table .miss-value { color: #a9cde5; font-variant-numeric: tabular-nums; }
.hide-omissions .miss-value { color: transparent !important; }
.trend-table .hit-ball { display: inline-block; width: 20px; height: 20px; border-radius: 50%; line-height: 20px; text-align: center; margin: auto; color: #fff; background: rgb(10,90,163); font-family: Verdana, Arial, sans-serif; }
.trend-table .hit-ball.first-hit { background: rgb(190,30,64); }
.trend-table .count-mark { display: inline-block; min-width: 19px; height: 20px; line-height: 20px; border-radius: 50%; color: #fff; font-weight: normal; }
.trend-table .count-odd { background: #dfb06a; }
.trend-table .count-big { background: #6eb5b6; }
.trend-table .count-prime { background: #719ce3; }
.trend-table .count-zero { color: #ccc; background: transparent; }
.trend-table .round:nth-of-type(5n) td { border-bottom: 2px solid #ccc; }
.trend-table tbody tr:hover td { background-color: #fffdf8; }
.trend-table tbody tr:hover .hit-ball { filter: brightness(.96); }
.trend-table .count td { height: 27px; background: #fafafa; color: #333; }
.trend-table .count td:first-child { text-align: left; padding-left: 12px; font-family: "Microsoft YaHei", Arial, sans-serif; }
.trend-table .count .summary-label { color: #333; }
.trend-table .empty-state { height: 110px; color: #999; text-align: center; }
#mycanvas { position: absolute; z-index: 3; left: 0; top: 0; width: 1170px; height: 100%; pointer-events: none; }
.table-scroll.lines-off #mycanvas { display: none; }

.contentBottom { background: #fff; margin-top: 10px; box-shadow: 0 4px 8px rgba(0,0,0,.1); border: 1px solid #ddd; font-family: "Microsoft YaHei", Arial, sans-serif; }
.contentBottom h2 { padding-left: 20px; margin: 0; color: #235aad; font-size: 12px; font-weight: normal; height: 30px; line-height: 30px; border-bottom: 1px solid #ddd; }
.contentBottom ul { padding: 10px 20px; margin: 0; list-style: none; }
.contentBottom ul li { min-height: 25px; line-height: 25px; color: #555; }
.footer { background: #f5f5f5; color: #999; padding: 10px 14px; margin-top: 10px; line-height: 22px; text-align: center; }
.footer-inner { width: 1170px; max-width: 100%; margin: 0 auto; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.admin-section { margin-top: 16px; }
.admin-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 15px 0 20px; }
.admin-header h1 { margin: 0; color: #235aad; font-size: 22px; font-weight: normal; }
.admin-header p { margin: 8px 0 0; color: #777; line-height: 1.7; }
.admin-eyebrow { color: #999 !important; font-size: 10px; letter-spacing: 1px; }
.back-link { color: #3b92d5; white-space: nowrap; }
.admin-content { min-height: 400px; }
.login-card { width: min(430px, 100%); margin: 30px auto 70px; padding: 28px; background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 8px rgba(0,0,0,.08); }
.login-card h2 { margin: 0 0 8px; font-size: 20px; font-weight: normal; color: #235aad; }
.login-card > p { margin: 0 0 22px; color: #888; }
.stack-form, .admin-form { display: flex; flex-direction: column; gap: 10px; }
.stack-form label, .admin-form label { color: #555; }
.stack-form input, .admin-form input, .admin-form textarea { width: 100%; border: 1px solid #ccc; border-radius: 2px; background: #fff; padding: 10px; outline: none; color: #333; }
.stack-form input:focus, .admin-form input:focus, .admin-form textarea:focus { border-color: #75a9d2; }
.primary-button { border: 1px solid #126ab2; border-radius: 2px; padding: 9px 14px; background: #1976bd; color: #fff; font-weight: bold; font-size: 12px; }
.secondary-button, .danger-button { border: 1px solid #ccc; border-radius: 2px; padding: 7px 10px; color: #555; background: #fff; font-size: 12px; }
.danger-button { color: #d33952; border-color: #e6b9c0; background: #fff; }
.form-message { min-height: 16px; margin: 0; color: #d33952; font-size: 12px; line-height: 1.5; }
.form-message.success { color: #168b55; }
.admin-dashboard { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.admin-panel { min-width: 0; background: #fff; border: 1px solid #ddd; padding: 18px; }
.admin-panel h2 { font-size: 15px; font-weight: normal; color: #235aad; margin: 0 0 8px; }
.panel-desc { color: #888; font-size: 12px; line-height: 1.7; margin: 0 0 16px; }
.admin-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-form textarea { min-height: 140px; resize: vertical; font-family: Consolas, monospace; font-size: 12px; line-height: 1.6; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.admin-table-wrap { overflow: auto; border: 1px solid #ddd; }
.admin-table { width: 100%; min-width: 570px; border-collapse: collapse; text-align: left; font-size: 12px; }
.admin-table th, .admin-table td { padding: 10px; border: 1px solid #ddd; white-space: nowrap; }
.admin-table th { background: #f4f4f4; color: #555; font-weight: normal; }
.admin-table td { color: #53617a; }
.admin-table .row-actions { display: flex; gap: 6px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.admin-toolbar p { color: #888; font-size: 12px; margin: 0; }
.source-tag { display: inline-block; padding: 2px 5px; background: #f1f4fa; color: #7b879c; font-size: 10px; }

@media (max-width: 1198px) {
  .headers .container, .sectionContent { width: calc(100% - 28px); }
  .info-top p { margin-right: 18px; }
}
@media (max-width: 760px) {
  .headers .container { padding: 14px 0; min-height: 0; align-items: flex-start; }
  .headers .logo { flex-basis: 70px; width: 70px; height: 70px; margin-right: 12px; }
  .headers .logo img { width: 70px; height: 70px; }
  .info-top { margin-top: 2px; margin-bottom: 10px; row-gap: 5px; }
  .info-top p { font-size: 12px; margin-right: 12px; }
  .admin-entry { margin-left: 0; }
  .info-footer ul.nums { margin-right: 8px; padding: 4px; }
  .info-footer ul.nums li { width: 24px; height: 24px; flex-basis: 24px; margin-right: 4px; font-size: 13px; line-height: 24px; }
  .info-footer ul.times { font-size: 14px; line-height: 30px; }
  .info-footer ul.times li.numb { width: 29px; height: 30px; line-height: 30px; }
  .info-footer ul.times li.time-unit { margin-right: 4px; font-size: 11px; }
  .open-time { display: none; }
  .contentTop .top { align-items: flex-start; flex-direction: column; padding: 4px 0; }
  .topL { margin-left: 10px; line-height: 25px; }
  .topR { height: auto; width: 100%; justify-content: flex-start; padding: 0 8px; overflow-x: auto; }
  .date-filters { gap: 3px; }
  .sectionContent { max-width: calc(100% - 16px); }
  .contentBottom ul { padding: 8px 12px; }
  .contentBottom ul li { line-height: 1.8; margin-bottom: 3px; }
  .footer-inner { flex-direction: column; text-align: left; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-dashboard { grid-template-columns: 1fr; }
  .admin-panel { padding: 14px 10px; }
  .admin-form .field-row { grid-template-columns: 1fr; }
}
