/* 226128.com old-site style refresh */
:root {
  --bg: #f4f8ff;
  --panel: #ffffff;
  --line: #cfd9e6;
  --line-2: #b8c6d6;
  --text: #102033;
  --muted: #637287;
  --primary: #0f766e;
  --primary-2: #2563eb;
  --primary-3: #6d28d9;
  --accent: #16a34a;
  --yellow: #fff59a;
  --warn: #ca8a04;
  --danger: #dc2626;
  --top-stack-height: 306px;
  --bottom-nav-height: 64px;
}

html.front-refresh {
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 48%, #eef5ef 100%);
}

html.front-refresh body {
  margin: 0;
  min-height: 100vh;
  background: transparent !important;
  color: var(--text);
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html.front-refresh *,
html.front-refresh *::before,
html.front-refresh *::after {
  box-sizing: border-box;
}

html.front-refresh a {
  color: inherit;
  text-decoration: none;
}

html.front-refresh img {
  max-width: 100%;
  height: auto;
}

html.front-refresh marquee {
  white-space: nowrap;
}

.site-wrap {
  width: min(720px, calc(100% - 8px));
  margin: 0 auto;
  padding-bottom: calc(var(--bottom-nav-height) + 12px);
}

.header.index-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 50%;
  width: min(720px, calc(100% - 8px));
  height: var(--top-stack-height);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  transform: translateX(-50%);
}

.brand-row {
  min-height: 56px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 54%, var(--primary-3) 100%);
}

.brand-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  font-size: 19px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .4px;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
}

.brand-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.14);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
}

.top-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  height: 30px;
}

.top-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 30px;
  padding: 0 2px;
  border: 1px solid #ced7e2;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7fc 100%);
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-nav a:hover {
  background: #e8eef8;
}

.open-shell {
  height: 205px;
  overflow: hidden;
  border: 1px solid #d6dee9;
  border-radius: 5px;
  background: #fff;
}

.open-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.page-spacer {
  height: var(--top-stack-height);
}

.box {
  margin: 5px 0;
  overflow: hidden;
  border: 1px solid #d0d9e5;
  border-radius: 5px;
  background: #fff;
}

.news-box {
  min-height: 35px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg, #0f766e 0%, #2563eb 54%, #6d28d9 100%);
}

.news-title {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 35px;
  padding-left: 5px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.news-title img {
  display: block;
  width: 35px;
  height: 35px;
  margin-right: 5px;
}

.news-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 8px 0 6px;
  overflow: hidden;
}

.news-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 35px;
}

.today-box {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.today-strip {
  min-height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  color: #111827;
  border-top: 3px solid var(--primary-3);
  border-bottom: 3px solid var(--primary);
}

.promo-box {
  background: #fff;
}

.promo-body {
  padding: 6px;
  background: #fff;
}

.promo-card {
  overflow: hidden;
  border: 1px solid #d9e2ee;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.promo-card + .promo-card {
  margin-top: 6px;
}

.promo-card--wide img,
.promo-card--poster img,
.promo-grid img {
  display: block;
  width: 100%;
}

.promo-card--poster {
  position: relative;
}

.promo-caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.promo-grid img {
  border: 1px solid #dbe4ef;
  border-radius: 5px;
}

.content-root {
  display: block;
}

.data-box {
  background: #fff;
  scroll-margin-top: calc(var(--top-stack-height) + 10px);
}

.list-title {
  height: 28px;
  padding: 0 8px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 54%, var(--primary-3) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 28px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.box-body {
  padding: 0;
  background: #fff;
}

.data-frame {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
}

.data-frame--center {
  text-align: center;
}

.box-body table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
  color: #000;
  background: #fff;
  font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif !important;
}

.box-body .ref-table,
.box-body .attribute-table {
  border-collapse: collapse;
}

.box-body .ref-table tr:nth-child(even) td,
.box-body .attribute-table tr:nth-child(even) td {
  background: #fbfdff;
}

.box-body .ref-table td,
.box-body .ref-table th,
.box-body .attribute-table td,
.box-body .attribute-table th {
  border: 1px solid #c9d2dd !important;
  padding: 7px 6px;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  word-break: break-word;
}

.box-body .ref-table th {
  background: #fff59a;
  text-align: center;
  font-weight: 900;
}

.box-body .ref-table td {
  background: #fff;
}

.box-body .ref-table .highlight,
.box-body .attribute-table .highlight,
.box-body .legacy-entry .highlight,
.box-body mark {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  background: #ffff00 !important;    /* 黄底 */
  color: #ff0000 !important;         /* 大红字 */
}
/* 全局 .highlight 兜底（浮动预览/前台各处都能显示） */
.highlight {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  background: #ffff00;
  color: #ff0000;
}

.box-body .tone-red,
.box-body font[color="#FF0000"],
.box-body font[color="#ff0000"] {
  color: var(--danger) !important;
  font-weight: 800;
}

.box-body .tone-blue,
.box-body font[color="#0000FF"],
.box-body font[color="#0066FF"],
.box-body font[color="#3366FF"] {
  color: var(--primary-2) !important;
  font-weight: 800;
}

.box-body .tone-green,
.box-body font[color="#008000"],
.box-body font[color="#009933"] {
  color: #16a34a !important;
  font-weight: 800;
}

.box-body .tone-gold,
.box-body font[color="#808000"],
.box-body font[color="#cc9900"] {
  color: #a16207 !important;
  font-weight: 800;
}

.box-body .tone-wine,
.box-body font[color="#800000"] {
  color: #7c2d12 !important;
  font-weight: 800;
}

.box-body .tone-yellow,
.box-body font[color="#FFFF00"] {
  color: #ca8a04 !important;
  font-weight: 800;
}

.section-title-muted {
  margin: 0;
  padding: 6px 8px 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.data-box--sanqi .data-frame,
.data-box--oneLine .data-frame,
.data-box--lianxiao .data-frame,
.data-box--wave .data-frame,
.data-box--selected24 .data-frame,
.data-box--attributes .data-frame {
  width: 100%;
}

.data-box--sanqi .box-body table,
.data-box--oneLine .box-body table,
.data-box--lianxiao .box-body table,
.data-box--wave .box-body table,
.data-box--selected24 .box-body table,
.data-box--attributes .box-body table {
  max-width: 700px;
  margin: 0 auto;
}

.data-box--sanqi .box-body,
.data-box--oneLine .box-body,
.data-box--lianxiao .box-body,
.data-box--wave .box-body,
.data-box--selected24 .box-body,
.data-box--attributes .box-body {
  padding: 0;
}

.data-box--sanqi .box-body td,
.data-box--sanqi .box-body th,
.data-box--oneLine .box-body td,
.data-box--oneLine .box-body th,
.data-box--lianxiao .box-body td,
.data-box--lianxiao .box-body th,
.data-box--wave .box-body td,
.data-box--wave .box-body th,
.data-box--selected24 .box-body td,
.data-box--selected24 .box-body th {
  text-align: center;
}

.data-box--selected24 .box-body td,
.data-box--selected24 .box-body th {
  font-size: 16px;
}

.data-box--selected24 .box-body td .tone-gold,
.data-box--selected24 .box-body td .tone-blue,
.data-box--selected24 .box-body td .tone-wine,
.data-box--selected24 .box-body td .tone-red,
.data-box--selected24 .box-body td .tone-green {
  font-size: 16px;
}

.data-box--attributes .box-body td,
.data-box--attributes .box-body th {
  font-size: 14px;
}

.data-box--attributes .box-body td.align-left {
  text-align: left;
}

.box-body .attribute-page {
  background: #fff;
}

.box-body .attribute-table {
  margin: 0 0 10px;
}

.box-body .attribute-table:last-child {
  margin-bottom: 0;
}

.box-body .attribute-table th {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 54%, var(--primary-3) 100%);
  color: #fff;
  text-align: center;
  font-weight: 900;
}

.box-body .attribute-table td:first-child {
  width: 28%;
}

.box-body .attribute-table td.align-left {
  text-align: left;
  padding-left: 8px;
  padding-right: 8px;
}

.box-body .zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 8px;
  list-style: none;
}

.box-body .zodiac-grid li {
  min-width: 0;
  border: 1px solid #dbe4ef;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.box-body .zodiac-grid dl {
  margin: 0;
  padding: 6px 4px;
  text-align: center;
}

.box-body .zodiac-grid dt {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.box-body .zodiac-grid dt img {
  display: block;
  width: 36px;
  height: 36px;
  margin: 3px auto;
  object-fit: contain;
}

.box-body .zodiac-grid dd {
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
}

.box-body .zodiac-grid dd span,
.box-body .attribute-table td span.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 4px;
  border-radius: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.box-body .attribute-table td span.num-blue,
.box-body .zodiac-grid dd span.num-blue {
  background: var(--primary-2);
}

.box-body .attribute-table td span.num-green,
.box-body .zodiac-grid dd span.num-green {
  background: #16a34a;
}

.box-body .attribute-table td span.num-blue,
.box-body .attribute-table td span.num-green {
  color: #fff;
}

.box-body .empty-state {
  padding: 16px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.page-footer {
  margin-top: 14px;
  padding: 12px 10px;
  border: 1px solid #d6deea;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.page-footer strong {
  color: var(--text);
}

.more-panel {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height) + 8px);
  z-index: 45;
  width: min(720px, calc(100% - 8px));
  transform: translateX(-50%);
  border: 1px solid #cfd9e6;
  border-radius: 6px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .16);
}

.more-panel__head {
  height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(90deg, #0f766e 0%, #2563eb 54%, #6d28d9 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 30px;
}

.more-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
}

.more-panel__grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid #d6deea;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff 0%, #f4f8ff 100%);
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.cgi-foot-links {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: min(720px, calc(100% - 8px));
  height: var(--bottom-nav-height);
  transform: translateX(-50%);
  border-top: 1px solid #d8e1ed;
  background: linear-gradient(180deg, #fff 0%, #f4f8ff 100%);
  box-shadow: 0 -4px 12px rgba(0,0,0,.05);
}

.cgi-pl-quick {
  position: relative;
  height: 100%;
}

.cgi-foot-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  height: 100%;
}

.cgi-foot-links ul li {
  width: 20%;
  height: 100%;
  text-align: center;
}

.cgi-foot-links ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 12px;
  font-weight: 800;
  color: #5b6470;
}

.cgi-foot-links ul li a.hover {
  color: var(--primary-2);
}

.cgi-foot-links ul li a span {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 1px;
  background-size: auto 25px;
  background-position: 50% 4px;
  background-repeat: no-repeat;
}

.cgi-foot-links ul li a span.home { background-image: url('/index_files/cfl1.png'); }
.cgi-foot-links ul li a.hover span.home { background-image: url('/index_files/cfl1-2.png'); }
.cgi-foot-links ul li a span.list { background-image: url('/index_files/list.png'); }
.cgi-foot-links ul li a span.cfl4 { background-image: url('/index_files/cfl4.png'); }
.cgi-foot-links ul li a span.bag { background-image: url('/index_files/bag.png'); }
.cgi-foot-links ul li.cfl-more {
  position: relative;
}
.cgi-foot-links ul li.cfl-more a {
  width: 100%;
}
.cgi-foot-links ul li.cfl-more a .more-dot {
  width: 42px;
  height: 42px;
  background: url('/index_files/cfl-more.png') no-repeat center 2px;
  background-size: 100% auto;
}

@media (max-width: 640px) {
  :root {
    --top-stack-height: 296px;
  }

  .site-wrap,
  .header.index-header,
  .more-panel,
  .cgi-foot-links {
    width: min(100% - 6px, 720px);
  }

  .brand-row,
  .open-shell,
  .top-nav,
  .news-box,
  .today-box,
  .promo-box {
    border-radius: 4px;
  }

  .brand-row {
    min-height: 52px;
    padding: 7px 8px;
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 17px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .brand-actions a {
    min-width: 46px;
    height: 32px;
    padding: 0 6px;
    font-size: 11px;
  }

  .top-nav a {
    font-size: 10px;
  }

  .open-shell {
    height: 205px;
  }

  .news-title,
  .news-text,
  .today-strip {
    font-size: 12px;
  }

  .promo-body {
    padding: 5px;
  }

  .promo-caption {
    font-size: 12px;
    left: 6px;
    right: 6px;
    bottom: 6px;
  }

  .list-title {
    font-size: 15px;
  }

  .box-body .ref-table td,
  .box-body .ref-table th,
  .box-body .attribute-table td,
  .box-body .attribute-table th {
    font-size: 13px;
    padding: 5px 5px;
  }

  .data-box--selected24 .box-body td,
  .data-box--selected24 .box-body th {
    font-size: 14px;
  }

  .box-body .zodiac-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
  }

  .box-body .zodiac-grid dt {
    font-size: 12px;
  }

  .box-body .zodiac-grid dt img {
    width: 32px;
    height: 32px;
  }

  .box-body .zodiac-grid dd span,
  .box-body .attribute-table td span.num {
    min-width: 22px;
    height: 20px;
    font-size: 11px;
  }

  .more-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  :root {
    --top-stack-height: 294px;
  }

  .top-nav {
    gap: 1px;
  }

  .top-nav a {
    padding: 0 1px;
  }

  .brand-actions {
    gap: 4px;
  }

  .brand-actions a {
    min-width: 44px;
  }

  .open-shell {
    height: 202px;
  }

  .promo-caption {
    font-size: 11px;
  }
}


/* old-site-shell */
.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 56%, var(--primary-3) 100%);
}

.logo {
  flex: 0 0 auto;
}

.logo-img {
  display: block;
  width: 42px;
  height: 42px;
}

.site-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.site-name {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .4px;
}

.site-subtitle {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,.9);
}

.bank-group {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.bank {
  flex: 0 0 auto;
}

.bank a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.14);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
}

.nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  height: 30px;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 30px;
  padding: 0 2px;
  border: 1px solid #cdd7e2;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav a:hover {
  background: #e8eef7;
}

.open-box {
  height: 205px;
  overflow: hidden;
  border: 1px solid #d3dde8;
  border-radius: 5px;
  background: #fff;
}

.open-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.data-frame--wide {
  width: 100%;
}

.data-box--selected24 .box-body {
  padding: 0;
}

.data-box--selected24 .box-body table {
  max-width: 660px;
  margin: 0 auto;
}

.data-box--selected24 .box-body td,
.data-box--selected24 .box-body th {
  text-align: center;
  font-size: 17px;
  line-height: 1.65;
  padding: 8px 8px;
}

.data-box--selected24 .box-body td .tone-gold,
.data-box--selected24 .box-body td .tone-blue,
.data-box--selected24 .box-body td .tone-wine,
.data-box--selected24 .box-body td .tone-red,
.data-box--selected24 .box-body td .tone-green {
  font-size: 17px;
}

.data-box--selected24 .box-body td {
  word-break: break-word;
}

.data-box--attributes .box-body td {
  text-align: center;
}

.data-box--attributes .box-body td.align-left {
  text-align: left;
}

@media (max-width: 640px) {
  .logo-box {
    gap: 8px;
    min-height: 52px;
    padding: 7px 8px;
  }

  .logo-img {
    width: 38px;
    height: 38px;
  }

  .site-name {
    font-size: 16px;
  }

  .site-subtitle {
    font-size: 10px;
  }

  .bank a {
    min-width: 46px;
    height: 30px;
    padding: 0 6px;
    font-size: 11px;
  }

  .nav a {
    font-size: 10px;
  }

  .open-box {
    height: 190px;
  }

  .data-box--selected24 .box-body td,
  .data-box--selected24 .box-body th {
    font-size: 15px;
    padding: 6px 5px;
  }

  .data-box--selected24 .box-body td .tone-gold,
  .data-box--selected24 .box-body td .tone-blue,
  .data-box--selected24 .box-body td .tone-wine,
  .data-box--selected24 .box-body td .tone-red,
  .data-box--selected24 .box-body td .tone-green {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 1px;
  }

  .nav a {
    padding: 0 1px;
    letter-spacing: 0;
  }

  .open-box {
    height: 184px;
  }
}


/* Keep the lottery iframe fully visible on narrow screens. */
@media (max-width: 640px) {
  :root { --top-stack-height: 306px; }
  .open-box { height: 205px; }
}
@media (max-width: 420px) {
  :root { --top-stack-height: 306px; }
  .open-box { height: 205px; }
}


/* green-title-theme-20260824 */
:root {
  --title-green-start: #a779ad;
  --title-green-mid: #cf8fa9;
  --title-green-end: #e8b7c2;
  --title-green-gradient: linear-gradient(90deg,#a779ad 0%,#cf8fa9 52%,#e8b7c2 100%);
}

html.front-refresh {
  background: linear-gradient(180deg,#f3f9f0 0%,#fbfdf9 48%,#f0f8ed 100%);
}

.logo-box,
.brand-row,
.news-box,
.list-title,
.box-body .attribute-table th,
.more-panel__head {
  background: var(--title-green-gradient) !important;
}

.nav {
  background: var(--title-green-gradient);
}

.nav a {
  border-color: rgba(255,255,255,.42);
  background: transparent;
  color: #fff !important;
}

.nav a:hover {
  background: rgba(255,255,255,.13);
}

.cgi-foot-links {
  border-top-color: #c8dfbe;
  background: linear-gradient(180deg,#fff 0%,#eff8ec 100%);
}

.today-strip {
  border-top-color: var(--title-green-end);
  border-bottom-color: var(--title-green-start);
}

.more-panel {
  border-color: #b9d9ad;
}

.cgi-foot-links ul li a.hover {
  color: var(--title-green-start);
}


/* pink-white-home-theme-20260824: keep all data tables and text colors intact. */
:root {
  --pink-deep: #9b4b70;
  --pink-main: #d183a2;
  --pink-soft: #f7e2e7;
  --pink-panel: #fff8fa;
  --pink-line: #dfbcc6;
  --pink-title-gradient: linear-gradient(90deg,#a779ad 0%,#cf8fa9 52%,#e8b7c2 100%);
}

html.front-refresh {
  background: linear-gradient(180deg,#fff7f9 0%,#fffdfd 48%,#fdf0f3 100%);
}

.logo-box {
  justify-content: space-between;
  min-height: 54px;
  padding: 1px 8px 1px 4px;
  border-color: #e7cbd2;
  background: linear-gradient(90deg,#fffafa 0%,#f8e0e5 52%,#efd5d5 100%) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.95) inset;
}

.logo-img {
  width: 230px;
  height: 52px;
}

.site-flag {
  display: grid;
  grid-template-columns: repeat(2, 18px);
  grid-template-rows: 17px 17px 10px;
  place-items: center;
  width: 41px;
  height: 47px;
  padding: 2px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #c91028;
  box-shadow: 0 1px 3px rgba(118,18,44,.24);
}

.site-flag span {
  color: #fff6e4;
  font-family: 'SimHei','Microsoft YaHei',sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.site-flag b {
  grid-column: 1 / -1;
  color: #ffe888;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
}

.nav {
  gap: 2px;
  padding: 2px;
  border: 1px solid #e6c8d0;
  border-radius: 4px;
  background: linear-gradient(90deg,#edcedb 0%,#f8e7ea 52%,#efd4d6 100%) !important;
}

.nav a {
  height: 24px;
  border-color: rgba(196,112,145,.42);
  border-radius: 3px;
  background: rgba(255,255,255,.88);
  color: #8b2f59 !important;
  font-size: 12px;
  line-height: 24px;
  text-shadow: 0 1px 0 #fff;
}

.nav a:hover {
  background: #fff0f3;
}

.open-box {
  border-color: #e2c1cb;
  background: #fffdfd;
  box-shadow: 0 1px 0 #fff inset;
}

.box {
  border-color: #e5c8d0;
  background: #fff;
}

.news-box {
  min-height: 36px;
  border-color: #dfbbc5;
  color: #7c294e;
  background: #f9e6ea !important;
}

.news-title {
  height: 36px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(90deg,#ba6c91 0%,#d88da7 100%);
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 36px;
  text-shadow: 0 1px 1px rgba(93,24,56,.3);
}

.news-body {
  padding: 0 10px;
}

.news-text {
  color: #7b2850;
  font-size: 13px;
  font-weight: 700;
  line-height: 36px;
}

.today-box {
  border: 0;
  background: transparent;
}

.today-strip {
  min-height: 42px;
  padding: 5px 12px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(90deg,#ead2d0 0%,#f3dce4 52%,#dfc4c0 100%);
  color: #111;
  font-family: 'Microsoft YaHei','PingFang SC',Arial,sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.35;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.today-strip span {
  white-space: nowrap;
}

.promo-box {
  margin: 7px 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.promo-body {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  padding: 0;
  background: transparent;
}

.promo-card {
  margin: 0 !important;
  border-color: #e5c8d0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(153,67,101,.08);
}

.promo-card--notice,
.promo-card--wide,
.promo-card--poster,
.promo-grid {
  grid-column: 1 / -1;
}

.promo-card--notice {
  border-color: #d361ca;
  background: #111;
}

.promo-card--notice img {
  display: block;
  width: 100%;
}

.promo-caption {
  display: none;
}

.promo-grid {
  gap: 7px;
}

.promo-grid img {
  border-color: #e5c8d0;
  border-radius: 5px;
}

.list-title,
#yxym .list-title,
.box-body .attribute-table th,
.more-panel__head {
  background: var(--pink-title-gradient) !important;
}

.more-panel {
  border-color: #dfc0ca;
  background: rgba(255,251,252,.98);
}

.more-panel__grid a {
  border-color: #e4c7cf;
  background: linear-gradient(180deg,#fff 0%,#fff3f6 100%);
  color: #7c294e;
}

.cgi-foot-links {
  border-top-color: #e0bec8;
  background: linear-gradient(180deg,#fffafb 0%,#f7e2e7 100%);
}

.cgi-foot-links ul li a {
  color: #7b5361;
}

.cgi-foot-links ul li a.hover {
  color: #b13e6c;
}

.page-footer {
  margin-top: 10px;
  padding: 4px 10px;
  border: 1px solid #d9b8bb;
  border-radius: 5px;
  background: linear-gradient(90deg,#ebd5d2 0%,#f0d0df 52%,#d9c0bc 100%);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,.62);
}

.page-footer .footer-line {
  margin: 0;
  padding: 8px 4px;
  border-top: 1px solid #352025;
}

.page-footer .footer-line:first-child {
  border-top: 0;
}

.page-footer .footer-brand {
  color: #702648;
  font-weight: 800;
}

@media (max-width: 640px) {
  .logo-box {
    min-height: 52px;
    padding-right: 6px;
  }

  .logo-img {
    width: min(230px,calc(100vw - 70px));
    height: auto;
    max-height: 50px;
  }

  .site-flag {
    transform: scale(.92);
    transform-origin: right center;
  }

  .nav a {
    height: 24px;
    font-size: 10px;
    line-height: 24px;
  }

  .today-strip {
    min-height: 40px;
    padding: 5px 7px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 3px;
    row-gap: 0;
    font-size: 14px;
    letter-spacing: 0;
  }

  .news-text {
    font-size: 12px;
  }

  .promo-body,
  .promo-grid {
    gap: 5px;
  }

  .page-footer {
    padding: 4px 7px;
    font-size: 12px;
  }

  .page-footer .footer-line {
    padding: 7px 2px;
  }
}

/* lottery-panel-height-fix-20260824 */
:root { --top-stack-height: 326px; }
.open-box { height: 225px; }
@media (max-width: 640px) { :root { --top-stack-height: 326px; } .open-box { height: 225px; } }
@media (max-width: 420px) { :root { --top-stack-height: 326px; } .open-box { height: 225px; } }

/* treasure-map-20260824: keep the customer supplied source image full-width. */
.data-box--treasureMap .box-body {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.treasure-map-figure {
  width: 100%;
  margin: 0;
  background: #fff;
  line-height: 0;
}

.treasure-map-figure img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto;
}

/* legacy-materials-20260824: two balanced navigation rows and unified imported data cards. */
:root { --top-stack-height: 352px; }

.nav.nav--two-row {
  grid-template-columns: repeat(30, minmax(0, 1fr));
  grid-template-rows: repeat(2, 24px);
  grid-auto-rows: 24px;
  height: 54px;
}

.nav.nav--two-row a:nth-child(-n + 5) { grid-column: span 6; }
.nav.nav--two-row a:nth-child(n + 6) { grid-column: span 5; }

.data-box--legacy .box-body {
  padding: 0;
}

.data-box--legacy .data-frame {
  max-width: 700px;
}

.legacy-material-list {
  width: 100%;
  background: #fff;
}

.legacy-entry {
  overflow: hidden;
  border-bottom: 1px solid #ecd5dc;
  background: #fff;
}

.legacy-entry:last-child {
  border-bottom: 0;
}

.legacy-entry__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 29px;
  padding: 4px 8px;
  border-bottom: 1px solid #f1dfe4;
  background: linear-gradient(90deg, #fff4f6 0%, #fffafb 52%, #fff0f4 100%);
  color: #7f3055;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.legacy-entry__period {
  white-space: nowrap;
}

.legacy-entry__result {
  min-width: 0;
  color: #a13e67;
  text-align: right;
}

.legacy-entry__body {
  padding: 7px 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
  word-break: break-word;
}

.legacy-entry__body table {
  width: 100%;
  margin: 0;
}

.legacy-entry__body p {
  margin: 0;
}

/* 三期必开 / 一句解特：固定列宽让每条记录对齐 */
.ref-table--three-period {
  table-layout: fixed !important;
  width: 100% !important;
}
.ref-table--three-period td:nth-child(1) { width: 20% !important; text-align: center; }
.ref-table--three-period td:nth-child(2) { width: 55% !important; text-align: center; }
.ref-table--three-period td:nth-child(3) { width: 25% !important; text-align: center; }

.ref-table--single-line {
  table-layout: fixed !important;
  width: 100% !important;
}
.ref-table--single-line th:nth-child(1) { width: 18% !important; text-align: center; }
.ref-table--single-line td:nth-child(2) { width: 60% !important; text-align: center; }
.ref-table--single-line th:nth-child(3) { width: 22% !important; text-align: center; }

.legacy-entry__empty {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
}

.material-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 12px;
  overflow: hidden;
  background: linear-gradient(90deg, #fff8fa 0%, #fceff3 50%, #fff8fa 100%);
  color: #b04f75;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .35px;
  text-align: center;
}

.material-divider__line {
  display: block;
  flex: 1;
  height: 1px;
  min-width: 18px;
  background: linear-gradient(90deg, transparent 0%, #e4aebe 100%);
}

.material-divider__line:last-child {
  background: linear-gradient(90deg, #e4aebe 0%, transparent 100%);
}

.material-divider em {
  min-width: 0;
  font-style: normal;
  white-space: nowrap;
}

.data-box--jixian9 .legacy-entry {
  border-bottom: 0;
}

.data-box--jixian9 .legacy-entry__head {
  display: none;
}

.jixian9-issue-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 31px;
  padding: 4px 9px;
  border-bottom: 1px solid #e1b9c5;
  background: linear-gradient(90deg, #b86d90 0%, #d892aa 52%, #e8b8c5 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.jixian9-issue-title span,
.jixian9-issue-title em {
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  padding: 1px 7px;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.jixian9-issue-title strong {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 7px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 1px;
}

.jixian9-grid {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  color: #222;
}

.jixian9-grid tr:nth-child(even) th,
.jixian9-grid tr:nth-child(even) td {
  background: #fff9fb;
}

.jixian9-grid th,
.jixian9-grid td {
  border: 1px solid #e5bdc9 !important;
  padding: 6px 5px;
  vertical-align: middle;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  word-break: break-word;
}

.jixian9-grid th {
  width: 20%;
  background: linear-gradient(180deg, #f8e0e7 0%, #f2ced9 100%);
  color: #8c3159;
}

.jixian9-grid td:nth-child(2) {
  width: 58%;
  background: #fff;
  color: #1f2937;
  font-size: 19px;
  letter-spacing: 1px;
}

.jixian9-grid td:nth-child(3) {
  width: 22%;
  background: #fff1f5;
  color: #a23f66;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  :root { --top-stack-height: 352px; }
  .nav.nav--two-row a { font-size: 10px; }
  .legacy-entry__head { min-height: 28px; padding: 4px 6px; font-size: 13px; }
  .legacy-entry__body { padding: 6px 5px; font-size: 15px; }
  .material-divider { min-height: 27px; gap: 6px; padding: 4px 8px; font-size: 11px; }
  .jixian9-issue-title { min-height: 30px; padding: 4px 6px; }
  .jixian9-issue-title strong { font-size: 15px; }
  .jixian9-grid th,
  .jixian9-grid td { padding: 5px 3px; font-size: 14px; }
  .jixian9-grid td:nth-child(2) { font-size: 17px; }
  .jixian9-grid td:nth-child(3) { font-size: 12px; }
}

@media (max-width: 420px) {
  :root { --top-stack-height: 352px; }
  .nav.nav--two-row { gap: 1px; padding: 1px; height: 51px; grid-template-rows: repeat(2, 24px); }
  .nav.nav--two-row a { min-width: 0; padding: 0 1px; font-size: 9px; letter-spacing: 0; }
  .legacy-entry__head { gap: 6px; font-size: 12px; }
  .legacy-entry__body { font-size: 14px; }
  .material-divider { padding: 4px 5px; font-size: 10px; letter-spacing: 0; }
  .material-divider__line { min-width: 10px; }
  .jixian9-issue-title span,
  .jixian9-issue-title em { padding: 1px 4px; font-size: 10px; }
  .jixian9-issue-title strong { font-size: 14px; letter-spacing: .5px; }
  .jixian9-grid th,
  .jixian9-grid td { font-size: 13px; }
  .jixian9-grid td:nth-child(2) { font-size: 16px; letter-spacing: .5px; }
  .jixian9-grid td:nth-child(3) { font-size: 11px; }
}
