/* ==========================================================================
   Theme: v1.07 Green + Information System layout (UI skin only)
   ========================================================================== */

:root {
  /* primary green system (v1.07) */
  --primary: #1ea938;
  --primary-hover: #22bd42;
  --primary-active: #189832;

  /* green accent */
  --green-soft: #2f9e4f;
  --green-light: #bbf7d0;
  --green-bg: #ecfdf3;

  /* alias — reused by hover/tag styles */
  --gold-soft: var(--green-soft);
  --gold-light: var(--green-light);
  --gold-bg: var(--green-bg);

  /* background system */
  --bg: #edeff0;
  --bg-soft: #e8f0ea;
  --surface: #ffffff;

  /* text system */
  --text: #000000;
  --text-secondary: #000000;
  --text-muted: #000000;

  /* border system */
  --border: #dce5df;
  --border-strong: #c5d4cb;

  /* status / highlight */
  --highlight: #1ea938;
  --highlight-soft: #ecfdf3;

  /* shadow system */
  --shadow: none;
  --shadow-soft: 0 4px 14px rgba(30, 169, 56, 0.06);

  /* layout helpers */
  --header-h: 46px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --brand-green: #18a34a;
}

.dark,
[data-theme="dark"] {
  --primary: #34c759;
  --primary-hover: #4cd964;
  --primary-active: #1ea938;

  --green-soft: #2f9e4f;
  --green-light: #1a3324;
  --green-bg: #0f1a14;

  --gold-soft: var(--green-soft);
  --gold-light: var(--green-light);
  --gold-bg: var(--green-bg);

  --bg: #0f1412;
  --bg-soft: #151c18;
  --surface: #1a221e;

  --text: #eef4f0;
  --text-secondary: #a8b5ad;
  --text-muted: #7a8a82;

  --border: #2a3830;
  --border-strong: #3a4f42;

  --highlight: #34c759;
  --highlight-soft: #1a3324;

  --shadow: none;
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   Base
   ========================================================================== */

* { border: 0; padding: 0; margin: 0; }

html, body {
  height: 100%;
  font: 14px/1.5 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Inter, system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100%;
  height: auto;
  background: var(--bg);
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ol, ul, li { list-style: none; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
table { empty-cells: show; border-collapse: collapse; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid var(--border); margin: 16px 0; padding: 0; }
a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
a:hover { text-decoration: none; color: var(--primary-hover); }

.clearfix:after { content: "."; display: block; height: 0; clear: both; overflow: hidden; visibility: hidden; }
.clearfix { *zoom: 1; }
.clear { clear: both; height: 0; line-height: 0; font-size: 0; visibility: hidden; overflow: hidden; }

/* ==========================================================================
   Layout shell
   ========================================================================== */

.container {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--bg);
  padding-bottom: 8px;
}

.p-all { padding: 0 8px 8px; }

.tzlb.p-all > .bg,
.yqjx.p-all > .bg,
.yjjt.p-all > .bg,
.jszq.p-all > .bg,
.sxsx.p-all > .bg,
.lxlm.p-all > .bg {
  margin-top: 8px;
}

.br-12 { border-radius: var(--radius); overflow: hidden; }

/* ==========================================================================
   Lottery semantic colors (data only — keep functional)
   ========================================================================== */

.wr { color: #a94442 !important; }
.wg { color: #080 !important; }
.wh { color: var(--text-muted) !important; }
.wb { color: #4a6fa5 !important; }
.wp { color: #7c5c8a !important; }
.wy { color: #ff0 !important; }
.wo { color: #f60 !important; }
.wpe { color: #6d28d9 !important; }
.wsr { color: #a94442 !important; }
.wsb { color: #4a6fa5 !important; }
.ww { color: #fff !important; }
.wbl { color: var(--text) !important; }

@media screen and (max-width: 505px) {
  .riqi { font-size: 11pt; }
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

#logo {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  position: fixed;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  min-height: var(--header-h);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

#logo.site-header { justify-content: space-between; }

.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1;
  max-width: calc(100% - 4rem);
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--text);
}

.site-logo .logo-r { color: #c0392b; }
.site-logo .logo-b { color: #2563eb; }
.site-logo .logo-t { color: var(--text-secondary); font-size: 0.9em; font-weight: 500; }
.site-logo-plain { color: var(--text); }

.site-logo-badge {
  font-size: 12px;
  line-height: 1;
  color: var(--primary);
  background: var(--gold-bg);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  border: 1px solid var(--gold-light);
}

.site-logo-img { max-height: 34px; width: auto; display: block; }

.site-header-back {
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--border);
  flex-shrink: 0;
  line-height: 1.45;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.site-header-back:hover {
  background: var(--gold-bg);
  color: var(--primary);
  border-color: var(--border-strong);
}

.header .nav { margin-top: var(--header-h); }
#logo a { display: inline-flex; align-items: center; }
#logo a img { max-height: 34px; }

.nav .banner { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }

.kj .ifm { background: var(--surface); }

/* 开奖 iframe 区域 +20% 高度 */
.pb-content.tzlb-content:has(.KJ-IFRAME) {
  height: 204px !important;
  min-height: 204px !important;
}

.kj .ifm .KJ-IFRAME,
.KJ-IFRAME {
  height: 204px !important;
  display: block;
}

.kjt li {
  display: inline-block;
  width: 50%;
  text-align: center;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.kjt li.liactive { background-color: var(--surface); }

.kjt li a {
  width: 100%;
  background: transparent;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 8px 0;
  transition: color 0.18s ease;
}

.kjt li.liactive a { color: var(--primary); font-weight: 500; }
.kjt li a:hover { color: var(--primary); }

.nav2 {
  width: 100%;
  max-width: 800px;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
  background: var(--surface);
}

.nav2 ul { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-around; }
.nav2 ul li { width: 25%; box-sizing: border-box; padding: 4px; }

.nav2 ul li a {
  display: block;
  height: 32px;
  line-height: 32px;
  text-align: center;
  color: #fff;
  border-radius: var(--radius);
  background: var(--primary);
  border: 1px solid var(--primary);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.nav2 ul li a:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.nav2 ul li a:active { background: var(--primary-active); border-color: var(--primary-active); }

#nav2[data-fixed="fixed"] {
  max-width: 48rem;
  background: var(--bg);
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  margin: auto;
  z-index: 10;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   Card / module system
   ========================================================================== */

.bg {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.lxlm-head,
.pb-head {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--primary);
}

.lxlm-tit,
.pb-tit {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  padding-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lxlm-tit::before,
.pb-tit::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  flex-shrink: 0;
}

.lxlm-qs {
  display: flex;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 0;
  margin-top: 8px;
}

.lxlm-qs li { display: flex; margin-right: 8px; }

.lxlm-qs li button {
  text-align: center;
  font-weight: 500;
  justify-content: center;
  align-items: center;
  width: 5rem;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hover-yes { background: var(--gold-bg); color: var(--primary); border-color: var(--border-strong); }
.hover-no { background: var(--bg-soft); color: var(--text); }

.dis { display: normal; }
.undis { display: none; }

.pb-note {
  display: flex;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 0;
}

.pb-note button { border-radius: var(--radius); padding: 4px 8px; border: 1px solid var(--border); }
.pb-note .button1 { color: var(--primary); margin-right: 8px; }
.pb-note .button2 { color: var(--text-secondary); }

.pb-content {
  background: var(--surface);
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--text);
}

.pb-content li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s ease;
}

.pb-content li:hover { background: var(--gold-bg); }

.pb-content li:last-child { border-bottom: 0; }
.pb-content li span { display: flex; float: right; color: var(--text); font-size: 13px; }

.pb-content.clear-span-style li span { display: inline; float: unset; }
.tzlb-content.clear-span-style li span { font-size: inherit; }
.pb-content.li-display-flex li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.jszq-content.clear-span-style .tbsx td span { background: unset; color: unset; }

/* ==========================================================================
   Forum feed / list modules (Hacker News style)
   ========================================================================== */

.tzlb-content {
  font-size: 14px;
  text-align: left;
  background: var(--surface);
  padding: 0 16px;
}

.tzlb-content li {
  padding: 14px 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  transition: background 0.18s ease;
}

.tzlb-content li:last-child { border-bottom: none; }

.tzlb-content li:hover { background: var(--gold-bg); }

.tzlb-content li a {
  display: block;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
  transition: color 0.18s ease;
}

.tzlb-content li a:hover { color: var(--primary); }

.tzlb-content li span { font-size: 14px; color: var(--text); }

.tzlb-content li font {
  color: var(--primary);
  font-size: 12px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  margin-left: 8px;
  padding: 2px 8px;
  vertical-align: middle;
  font-weight: 500;
}

/* ==========================================================================
   Data tables inside modules
   ========================================================================== */

.table-content table {
  background: var(--surface);
  width: 100%;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.table-content table td[colspan] { font-size: 14px; padding: 8px 0; }
.table-content table td,
.table-content table td[colspan="1"] {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 8px;
  font-size: 13px;
  color: var(--text);
}

/* 伯乐相马经解—肖—码 */
.table-content .yxym {
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
  background: transparent;
  width: 100%;
  border: 0;
}

.table-content .yxym th {
  height: 32px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: solid 1px rgba(255, 255, 255, 0.35) !important;
  background: var(--primary);
  padding: 8px 0;
}

/* 期内网格：浅灰内线 */
.table-content .yxym td {
  height: 32px;
  font-size: 14px;
  padding: 8px;
  transition: background 0.18s ease;
  background: var(--surface);
  border-bottom: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
  border-top: none !important;
  border-left: none !important;
}

.table-content .yxym tbody.yxym-issue tr:first-child td {
  border-top: 1px solid var(--border) !important;
}

.table-content .yxym td.td-issue {
  border-left: 1px solid var(--border) !important;
}

/* 每期外框：绿色描边（覆盖首行上边、末行下边、左期号列、右结果列） */
.table-content .yxym tbody.yxym-issue tr:first-child td {
  border-top: 2px solid #bbf7d0 !important;
}

.table-content .yxym tbody.yxym-issue tr:last-child td {
  border-bottom: 2px solid #bbf7d0 !important;
}

.table-content .yxym tbody.yxym-issue td.td-issue {
  border-left: 2px solid #bbf7d0 !important;
  border-bottom: 2px solid #bbf7d0 !important;
}

.table-content .yxym tbody.yxym-issue tr:first-child td.td-issue {
  border-top: 2px solid #bbf7d0 !important;
}

.table-content .yxym tbody.yxym-issue tr td.td3 {
  border-right: 2px solid #bbf7d0 !important;
}

.table-content .yxym tr:hover td.td2 { background: var(--green-bg); }

.table-content .yxym td.td-issue {
  width: 14%;
  min-width: 52px;
  color: var(--primary);
  background: var(--surface);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  vertical-align: middle;
  line-height: 1.35;
}

.table-content .yxym td.td1 {
  width: 16%;
  color: var(--text-muted, #555);
  background: var(--surface);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.table-content .yxym td.td2 {
  color: #0047ab;
  text-align: center;
  background: var(--surface);
  font-weight: 500;
}

.table-content .yxym td.td2 span {
  background: #ff0;
  color: #0047ab;
  padding: 0 4px;
  border-radius: var(--radius-sm);
}

.table-content .yxym td.td3 {
  width: 25%;
  color: var(--text);
  background: var(--surface);
  text-align: center;
  font-size: 13px;
}

@media screen and (max-width: 720px) {
  .table-content .yxym td { font-size: 13px; }
  .table-content .yxym td.td-issue { font-size: 14px; min-width: 44px; }
  .table-content .yxym td.td3 { width: 20%; }
}

/* ==========================================================================
   Legacy table styles (mtbl, quick-link, etc.)
   ========================================================================== */

.mtbl {
  width: 100%;
  border-collapse: separate;
  --tw-border-spacing-x: 0px;
  --tw-border-spacing-y: 0px;
  border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
  text-align: center;
  color: var(--text);
  word-break: break-word;
}

.mtbl tr:last-child td:first-child { border-bottom-left-radius: 6px; }
.mtbl tr:last-child td:last-child { border-bottom-right-radius: 6px; }
.mtbl td { padding: 8px; line-height: 22px; border-right: solid 1px var(--border); border-bottom: solid 1px var(--border); }
.mtbl td:first-child { width: 65px; text-align: center; border-left: solid 1px var(--border); background: var(--bg-soft); }
@media (min-width: 375px) { .mtbl td:first-child { width: 82px; } }
@media (min-width: 425px) { .mtbl td:first-child { width: 90px; } }
.mtbl td:last-child { width: 55px; text-align: center; background: var(--bg-soft); }
@media (min-width: 375px) { .mtbl td:last-child { width: 55px; } }
@media (min-width: 425px) { .mtbl td:last-child { width: 80px; } }
.mtbl td:nth-child(2) { background-color: var(--surface); font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--text); }
@media (min-width: 375px) { .mtbl td:nth-child(2) { font-size: 14px; line-height: 1.5; } }
b23-tbl.m td:nth-child(2) { word-spacing: 4px; }
@media (max-width: 360px) {
  .mtbl td:nth-child(2) p[style],
  .mtbl td:nth-child(2) div[style],
  .mtbl td:nth-child(2) span[style] { font-size: 12px !important; }
}
.mtbl td:last-child,
.mtbl td:first-child { font-size: 12px; color: var(--text); }
@media (min-width: 375px) { .mtbl td:last-child, .mtbl td:first-child { font-size: 13px; line-height: 1.4; } }
@media (min-width: 425px) { .mtbl td:last-child, .mtbl td:first-child { font-size: 14px; line-height: 1.5; } }
.mtbl td:last-child { font-weight: 500; }
.mtbl td.td1 { font-size: 14px; }
.mtbl td.td2 { font-size: 16px; font-weight: 600; color: var(--text); }
.mtbl td.td2 span { color: var(--primary); }
.mtbl td.td2 b { color: #a94442; background: var(--gold-bg); }
.mtbl td.td3 { font-size: 14px; }

.quick-link { background: var(--surface); text-align: center; padding: 0; }
.quick-link ul { display: flex; flex-direction: row; flex-wrap: wrap; padding: 8px; }
.quick-link ul li { width: 33.33%; padding: 8px; box-sizing: border-box; }
.quick-link ul.two-colspan li { width: 50%; font-size: 14px; }
.quick-link ul li a {
  display: block;
  padding: 8px 0;
  border: solid 1px var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: background 0.15s ease;
}
.quick-link ul li a:hover { background: var(--gold-bg); }
.quick-link-more a { color: #fff; background: var(--primary); border: 1px solid var(--primary); }
@media screen and (max-width: 750px) {
  .quick-link ul { padding: 8px; }
  .quick-link ul li { width: 33.33%; padding: 4px; }
  .quick-link ul.two-colspan li { width: 50%; }
}

/* ==========================================================================
   Content module variants
   ========================================================================== */

.yjjt-content,
.jxes-content,
.ptyx-content,
.yqjx-content,
.zbtk-content,
.jszq-content,
.zhzl-content,
.sxsx-content { font-size: 14px; color: var(--text); }

.yjjt-content li,
.yqjx-content li,
.sxsx-content li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s ease;
}

.yjjt-content li:hover,
.yqjx-content li:hover,
.sxsx-content li:hover {
  background: var(--gold-bg);
}

.yjjt-content li b,
.yqjx-content li b,
.zbtk-content li b,
.sxsx-content li b { color: var(--text); font-weight: 500; }

.yjjt-content li font,
.jxes-content li font,
.ptyx-content li font,
.yqjx-content li font,
.zbtk-content li font,
.jszq-content li font,
.zhzl-content li font,
.sxsx-content li font { color: var(--text); }

.yjjt-content li .juzi { color: var(--text); font-weight: 500; font-size: 14px; }
.yjjt-content li .jiexi { color: var(--text); }

#tbtk {
  font-size: 13px;
  color: var(--text);
  margin: 0;
  padding: 0;
  border-collapse: collapse;
  background: var(--surface);
}

#tbtk td {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--border);
  word-break: break-all;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.jszq-content .tbsx td {
  background: var(--surface);
  color: var(--text);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  border-color: var(--border);
}

.jszq-content .tbsx td.tdtit {
  text-align: center;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  background: var(--primary);
  font-weight: 500;
  border-bottom: none;
}

.jszq-content .tbsx td span { background: var(--green-bg); color: var(--primary); }
.jszq-content .tbsx td font { color: var(--text); }

.jszq-content .tb th {
  border: 1px solid var(--border);
  background: var(--primary);
  color: #fff;
  text-align: center;
  height: 2rem;
  line-height: 2rem;
  font-size: 13px;
  font-weight: 500;
}

.jszq-content .tb tr:hover td { background: var(--gold-bg); }

.jszq-content .tb td {
  border: 1px solid var(--border);
  height: 1.8rem;
  line-height: 1.8rem;
  font-size: 13px;
  word-break: break-all;
  color: var(--text);
}

.jszq-content .tb td.tdtit { border-top: 0; }

/* ==========================================================================
   Misc legacy blocks
   ========================================================================== */

bl4 td {
  font-weight: 500;
  border: 1px solid var(--border);
  font-size: 16px;
  padding: 8px;
  white-space: nowrap;
}

.bl4 {
  table-layout: auto;
  color: var(--text);
  border-radius: 0;
  overflow: hidden;
  text-align: center;
  background: var(--surface);
}

.bl4 a {
  line-height: 40px;
  text-align: center;
  border: solid 1px var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  display: block;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding-left: 0;
  transition: background 0.15s ease;
}

.bl4 a:hover { background: var(--gold-bg); color: var(--primary); }

.bbsbl1 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.bbsbl1 li {
  width: 33%;
  box-sizing: border-box;
  padding: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.bbsbl1 li a {
  display: block;
  height: 30px;
  line-height: 30px;
  text-align: center;
  color: var(--text);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}

.bbsbl1 li a:hover { color: var(--primary); }

.sxsx-content { background: var(--surface); }
.sxsx-content.is-collapsed { display: none; }
.sxsx-toggle { cursor: pointer; user-select: none; }
.sxsx-toggle-tip { font-size: 12px; font-weight: 400; margin-left: 8px; color: rgba(255, 255, 255, 0.82); }
.sxsx-toggle.is-open .sxsx-toggle-tip { opacity: 1; }

.sx table { border-collapse: collapse; border-spacing: 0; }
.sx table tr { display: table-row; vertical-align: inherit; border-color: inherit; }
.sx table td { border: 1px solid var(--border); padding: 8px; word-break: break-all; color: var(--text); }
.sx ul, .sx li, .sx dl, .sx dt, .sx dd { margin: 0; padding: 0; }
.sx ul { display: block; list-style-type: disc; }
.sx ul li img { vertical-align: middle; border: 0; width: 40px; height: 40px; }
.sx1 li { float: left; width: 33.333333%; padding: 8px 0; text-align: center; }
.sx span { height: 18px; line-height: 18px; margin: 0 2px; padding: 0 4px; font-size: 12px; color: #fff; display: inline-block; background-color: #c0392b; border-radius: 2px; }
.sx span.blue { background-color: #2563eb; }
.sx span.green { background-color: var(--primary); }

@media (min-width: 320px) and (max-width: 359px) { .sx1 li { width: 50%; } }
@media (min-width: 360px) and (max-width: 374px) { .sx1 li { width: 50%; } }
@media (min-width: 375px) and (max-width: 392px) { .sx ul li .tm01 span { margin: 0 1px; padding: 0 2px; } }
@media (min-width: 393px) and (max-width: 413px) { .sx ul li .tm01 span { margin: 0 1px; padding: 0 2px; } }
@media (min-width: 768px) { .sx1 li { width: 25%; } }

/* ==========================================================================
   Top table module
   ========================================================================== */

.topzq-tit {
  font-size: 15px;
  color: var(--text);
  padding-top: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  text-align: center;
}

.topzq-tb { width: 100%; box-sizing: border-box; background-color: var(--surface); }
.topzq-tb td { border: 1px solid var(--border); color: var(--text); padding: 8px 0; font-size: 14px; font-weight: 500; }
.topzq-tb td b { color: #a94442; background-color: var(--gold-bg); }
.topzq-tb td font { color: var(--text); background-color: var(--surface); font-size: 16px; }
.topzq-tb .tb1 { border-right: 0; color: var(--text); }
.topzq-tb .tb2, .topzq-tb .tb3 { border-left: 0; color: var(--text); }
.topzq-tb .tb4 { color: var(--text); }
.topzq-tb .tb4, .topzq-tb .tb5 { text-align: center; }
.topzq-tb .tb5 { background: var(--primary); color: #fff; letter-spacing: 1px; border: 1px solid var(--primary); }

@media screen and (max-width: 610px) {
  .topzq-tb .tb2 { font-size: 14px; }
  .topzq-tb .tb1 { font-size: 13px; }
}

@media screen and (max-width: 476px) {
  .topzq-tb .tb3 { font-size: 14px; }
  .topzq-tb .tb1 { font-size: 12px; }
  .topzq-tb .tb2 { font-size: 12px; }
  .topzq-tb td font { font-size: 14px; }
  .topzq-tb .tb4 { font-size: 13px; }
  .topzq-tb .tb5 { font-size: 14px; }
}

@media screen and (max-width: 374px) {
  .topzq-tb .tb3 { font-size: 13px; }
  .topzq-tb .tb2 { font-size: 12px; }
  .topzq-tb .tb4 { font-size: 12px; }
  .topzq-tb .tb5 { font-size: 13px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--surface);
  margin: 0 8px;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-bottom: none;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }

/* ==========================================================================
   Inline legacy color overrides (CSS-only skin, no DOM changes)
   ========================================================================== */

.pb-content.tzlb-content[style*="58f370"] {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border-top: 1px solid var(--border);
}

.pb-content.tzlb-content[style*="ffff"] {
  background-color: var(--surface) !important;
  color: var(--text) !important;
}

.bg[style*="border-radius"] {
  border-radius: var(--radius) !important;
}

/* Inline legacy bright colors → green theme (CSS-only) */
.pb-content [style*="00B050"],
.pb-content [style*="009900"],
.yjjt-content [style*="00B050"],
.yqjx-content [style*="00B050"],
.tzlb-content [style*="00B050"] {
  color: var(--primary) !important;
}

.pb-content [style*="FF00FF"],
.pb-content [style*="0070C0"] {
  color: var(--text) !important;
}

.pb-content [style*="FF0000"],
.yjjt-content [style*="FF0000"] {
  color: var(--primary) !important;
}
