/* 六合彩资料站 — 公共样式（主题 token 版） */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-family);
  background-color: var(--bg);
  background-image: none;
  color: var(--text-main);
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  max-width: 750px;
  margin: 0 auto;
  background-color: var(--container-bg);
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.container.has-site-bg-image {
  background-image: var(--site-bg-image, none);
  background-size: var(--site-bg-size, contain);
  background-repeat: var(--site-bg-repeat, no-repeat);
  background-position: var(--site-bg-position, center top);
  background-attachment: var(--site-bg-attachment, scroll);
}

/* 桌面端优先保证能看到背景图：背景挂到 body，内容容器改为半透明白底 */
@media screen and (min-width: 900px) {
  body {
    background-image: var(--site-bg-image, none);
    background-size: cover;
    background-repeat: var(--site-bg-repeat, no-repeat);
    background-position: center center;
    background-attachment: fixed;
  }

  .container.has-site-bg-image {
    background-image: none;
    background-color: rgba(255, 255, 255, 0.92);
  }
}

.header {
  text-align: center;
  padding: 12px 0;
  background: linear-gradient(135deg, var(--header-bg), #ffffff);
}
.header-top-image-wrap {
  width: 100%;
  line-height: 0;
  margin: -12px 0 10px;
}
.header-top-image {
  display: block;
  width: 100%;
  height: auto;
}
.header-main-image {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
.header .logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 2px;
}
.header .logo img { height: 50px; }

/* 开奖组件：对标 xgkj3.html 结构 */
.KJ-TabBox {
  color: #333;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", arial, sans-serif;
  border-bottom: 1px solid #e7e7e7;
}

.KJ-TabBox-tabs {
  display: flex;
  height: 36px;
  padding: 8px 0 0 8px;
  box-sizing: border-box;
  border-bottom: 2px solid #fff;
  list-style: none;
  margin: 0;
}
.KJ-TabBox-tabs,
.KJ-TabBox-tabs * {
  list-style: none !important;
}
.KJ-TabBox-tabs li::marker {
  content: "" !important;
}
.KJ-TabBox-tabs li {
  flex: 1;
  height: 26px;
  line-height: 26px;
  margin-right: 8px;
  text-align: center;
  border-radius: 4px;
  background: #eeeeee;
  color: #333333;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.KJ-TabBox-tabs li:last-child {
  margin-right: 8px;
}
.KJ-TabBox-tabs li.cur {
  color: #ffffff;
  background: #ff9900;
}
.KJ-TabBox-tabs li:nth-child(1).cur { background: #1fb61d; }
.KJ-TabBox-tabs li:nth-child(2).cur { background: #e71607; }
.KJ-TabBox-tabs li:nth-child(3).cur { background: #2389e9; }
.KJ-TabBox-tabs li:nth-child(4).cur { background: #b907c1; }

.new-KJ-TabBox-box {
  font-size: 16px;
  min-height: 130px;
  height: auto;
  color: #333;
  padding: 8px;
  box-sizing: border-box;
}
.new-KJ-TabBox-box a { text-decoration: none; }
.new-KJ-TabBox-box .kj-font-red { color: #f00 !important; }

.new-KJ-TabBox-box-tit {
  display: flex;
  align-items: center;
  min-height: 17px;
  line-height: 1.2;
  font-size: 17px;
  gap: 8px;
}
.new-KJ-TabBox-box-tit-l {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.new-KJ-TabBox-box-tit-m {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-weight: bold;
}
.new-KJ-TabBox-box-tit-r {
  flex: 0 0 auto;
  white-space: nowrap;
}

.new-KJ-TabBox-box-con {
  display: flex;
  margin: 8px 0;
}
.new-KJ-TabBox-box-con .kj-ball {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 61px;
  text-align: center;
  border-radius: 4px;
  margin-right: 6px;
  box-sizing: border-box;
  background: var(--ball-bg, #999999);
}
.new-KJ-TabBox-box-con .kj-ball:last-child { margin-right: 0; }
.new-KJ-TabBox-box-con .kj-ball:nth-last-child(3) { margin-right: 6px; }
.new-KJ-TabBox-box-con .kj-ball h2 {
  margin: 0;
  padding: 0;
  line-height: 24px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  font-family: Tahoma, Geneva, sans-serif;
}
.new-KJ-TabBox-box-con .kj-ball .whsx {
  display: inline-block;
  height: 19px;
  line-height: 19px;
  margin-top: 6px;
  padding: 0 6px;
  border-radius: 2px;
  color: #333;
  font-size: 14px;
  background: #fff;
}
.new-KJ-TabBox-box-con .kj-add {
  display: flex;
  align-items: center;
  margin-right: 8px;
  font-size: 32px;
  font-weight: bold;
  color: #333;
}

.new-KJ-TabBox-box-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.new-KJ-TabBox-box-foot-l {
  flex: 1 1 auto;
  min-width: 0;
}
.new-KJ-TabBox-box-foot-r-sx {
  display: inline-block;
  width: 40px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  color: #fff;
  border-radius: 4px;
  background: #ff9900;
}

/* 兼容：未启用开奖组件时沿用旧 tabs 样式 */
.lottery-tabs {
  display: flex;
  background: var(--primary);
}
.lottery-tabs .tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  cursor: pointer;
}
.lottery-tabs .tab.active {
  background: var(--primary-dark);
  color: #ffffff;
  font-weight: bold;
}
.lottery-tabs .tab:hover {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 650px) {
  .quick-anchor-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .KJ-TabBox-tabs li { font-size: 16px; margin-right: 6px; }
  .new-KJ-TabBox-box {
    font-size: 14px;
    min-height: 0;
    height: auto;
    padding: 8px 8px 10px;
  }
  .new-KJ-TabBox-box-tit {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "left right"
      "mid mid";
    align-items: center;
    row-gap: 4px;
    column-gap: 6px;
    font-size: 16px;
  }
  .new-KJ-TabBox-box-tit-l {
    grid-area: left;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }
  .new-KJ-TabBox-box-tit-m {
    grid-area: mid;
    text-align: left;
    font-weight: 700;
  }
  .new-KJ-TabBox-box-tit-r {
    grid-area: right;
    justify-self: end;
  }
  .new-KJ-TabBox-box-con .kj-ball { margin-right: 4px; }
  .new-KJ-TabBox-box-con .kj-ball:nth-last-child(3) { margin-right: 4px; }
  .new-KJ-TabBox-box-con .kj-ball h2 { font-size: 24px; }
  .new-KJ-TabBox-box-con .kj-ball .whsx {
    margin-top: 4px;
    padding: 0 2px;
    font-size: 12px;
  }
  .new-KJ-TabBox-box-con .kj-add {
    margin-right: 4px;
    font-size: 24px;
  }
  .new-KJ-TabBox-box-foot {
    flex-wrap: wrap;
    align-items: flex-start;
    font-size: 15px;
  }
  .new-KJ-TabBox-box-foot-l {
    white-space: normal;
    line-height: 1.35;
  }
  .new-KJ-TabBox-box-foot-r {
    margin-left: auto;
  }
  .ssz-block .ssz-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 7px 10px;
  }
  .ssz-block .ssz-big {
    font-size: clamp(20px, 6.2vw, 34px);
    padding: 10px 8px;
  }
}

@media screen and (max-width: 450px) {
  .quick-anchor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-anchor-pill {
    font-size: 12px;
    padding: 7px 4px;
  }

  .new-KJ-TabBox-box-tit {
    font-size: 15px;
  }
  .new-KJ-TabBox-box-con .kj-ball h2 {
    font-size: 22px;
    line-height: 22px;
  }
  .new-KJ-TabBox-box-con .kj-ball .whsx {
    font-size: 11px;
    padding: 0 2px;
  }
  .new-KJ-TabBox-box-foot {
    font-size: 14px;
  }
  .new-KJ-TabBox-box-foot-r-sx {
    width: 42px;
    height: 22px;
    line-height: 22px;
  }
}

.nav-grid { display: grid; padding: 10px; gap: 8px; }
.nav-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.nav-grid .nav-item {
  text-align: center;
  padding: 10px 4px;
  background: var(--row-even-bg);
  border-radius: 8px;
  font-size: 12px;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.nav-grid .nav-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.nav-grid .nav-icon { display: block; font-size: 18px; margin-bottom: 4px; }

.nav-menu {
  display: flex;
  background: var(--row-even-bg);
  padding: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}
.nav-menu a {
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 13px;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--primary); }

.nav-anchors {
  display: flex;
  flex-wrap: wrap;
  background: var(--row-even-bg);
  padding: 8px;
  gap: 6px;
}
.nav-anchors a {
  padding: 5px 12px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.nav-anchors a:hover {
  opacity: 0.86;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 日期栏 */
.date-bar {
  text-align: center;
  padding: 6px 10px;
  background: var(--bg, #f0f0f0);
  border-bottom: 1px solid var(--border, #ddd);
  font-size: 19pt;
  font-weight: bold;
  line-height: 1.6;
  margin: 5px 0;
}
@media screen and (max-width: 610px) {
  .date-bar { font-size: 15pt; }
}
@media screen and (max-width: 505px) {
  .date-bar { font-size: 12pt; }
}
@media screen and (max-width: 409px) {
  .date-bar { font-size: 11pt; }
}
@media screen and (max-width: 374px) {
  .date-bar { font-size: 10pt; }
}

/* 自动资料锚点：对标蓝色胶囊按钮 */
.floating-anchor-wrap {
  position: sticky;
  top: 0;
  z-index: 96;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.floating-anchor-logo {
  background: linear-gradient(135deg, var(--header-bg), #ffffff);
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  text-align: center;
  padding: 6px 10px;
}

.floating-anchor-logo .logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.12);
}

.quick-anchor-grid {
  --anchor-grid-bg: #ffffff;
  --anchor-pill-bg1: #2673e8;
  --anchor-pill-bg2: #1d5ec6;
  --anchor-pill-text: #ffffff;
  --anchor-pill-border: transparent;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: var(--anchor-grid-bg);
  border-bottom: 1px solid #e8e8e8;
  position: relative;
  z-index: 1;
}

.quick-anchor-pill {
  display: block;
  text-align: center;
  padding: 7px 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--anchor-pill-bg1) 0%, var(--anchor-pill-bg2) 100%);
  color: var(--anchor-pill-text);
  border: 1px solid var(--anchor-pill-border);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.16);
}

.quick-anchor-pill:hover {
  filter: brightness(1.05);
}

.nav-category { display: grid; padding: 10px; gap: 6px; }
.nav-category.cols-5 { grid-template-columns: repeat(5, 1fr); }
.nav-category a {
  text-align: center;
  padding: 10px 4px;
  background: var(--row-even-bg);
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s;
  border: 1px solid var(--border);
}
.nav-category a:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.marquee-bar {
  background: var(--notice-bg);
  color: var(--notice-text);
  padding: 8px 12px;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.site-tail-images {
  margin: 8px 0 10px;
  background: #ffffff;
}

.site-tail-images img {
  display: block;
  width: 100%;
  height: auto;
}

.domain-banner-row td.domain-banner-cell {
  text-align: left;
  background: #111111 !important;
  color: #ffffff;
  padding: 6px 8px;
  line-height: 1.5;
}

.domain-banner-cell img {
  width: 32px;
  height: 21px;
  vertical-align: middle;
  margin-right: 4px;
}

.foot-img {
  margin: 8px 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7df 100%);
  border: 1px solid #f0d494;
  border-radius: 8px;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.foot-img .copyright {
  margin: 0;
  font-size: 13px;
  color: #111111;
}

.foot-img .footer-site-line {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.9;
}

.foot-img .footer-domain-main {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid #ffc55a;
  background: linear-gradient(180deg, #fff7d6 0%, #ffd26e 100%);
  color: #a30d0d;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 110, 50, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 6px rgba(0, 0, 0, 0.22);
}

.foot-img .footer-site-name {
  display: inline-block;
  margin-left: 2px;
  color: #cb1111;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 84, 84, 0.28);
}

.foot-img .hl-domain {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #ffcf58;
  background: linear-gradient(180deg, #fffbe0 0%, #ffd54d 100%);
  color: #c61010;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 10px rgba(255, 80, 80, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.16);
  animation: footer-domain-pop 2.2s ease-in-out infinite;
}

@keyframes footer-domain-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@media screen and (max-width: 650px) {
  .floating-anchor-logo .logo {
    font-size: 18px;
  }

  .foot-img .footer-site-line {
    font-size: 13px;
    line-height: 1.8;
  }

  .foot-img .footer-domain-main {
    font-size: 20px;
    padding: 1px 10px;
  }

  .foot-img .footer-site-name {
    font-size: 16px;
  }

  .foot-img .hl-domain {
    font-size: 18px;
    padding: 1px 8px;
  }
}

.section-wrapper { scroll-margin-top: 56px; background: var(--section-bg); }

.ziliao-box { margin: 8px 0; scroll-margin-top: 56px; }
.ziliao-box .box-title { display: none; }

.ziliao-table,
.ziliao-table-cols,
.juesha-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  font-weight: bold;
}
.ziliao-table th,
.ziliao-table-cols th,
.juesha-table th {
  background: var(--table-header-bg);
  color: var(--table-header-text);
  padding: 9px 6px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--table-header-bg), #ffffff 35%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  letter-spacing: 0.8px;
}
.ziliao-table th { font-size: 15px; }
.ziliao-table-cols th,
.juesha-table th { font-size: 13px; }

.ziliao-table td,
.juesha-table td {
  padding: 6px 8px;
  border: 1px solid var(--border);
  font-size: 13pt;
  text-align: center;
  line-height: 1.8;
  color: var(--text-main);
}
.juesha-table td { font-size: 13px; padding: 6px 4px; }

.ziliao-table-cols td {
  padding: 4px 6px;
  border: 1px solid var(--border);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
  color: var(--text-main);
}
.ziliao-table-cols .td1 { width: 70px; font-size: 12px; }
.ziliao-table-cols .td2 { font-size: 14px; }
.ziliao-table-cols .td3 { width: 60px; font-size: 13px; }

.ziliao-table tr:nth-child(odd) td,
.juesha-table tr:nth-child(odd) td,
.ziliao-table-cols tr:nth-child(odd) td { background: var(--row-odd-bg); }
.ziliao-table tr:nth-child(even) td,
.juesha-table tr:nth-child(even) td,
.ziliao-table-cols tr:nth-child(even) td { background: var(--row-even-bg); }

.ziliao-table tr:hover td,
.ziliao-table-cols tr:hover td,
.juesha-table tr:hover td { background: var(--row-hover-bg) !important; }

.hit-bg {
  /* 命中统一黄底红字，避免被主题色覆盖导致不明显 */
  background-color: #ffeb3b;
  color: #d40000;
}
.hit-bg {
  box-shadow: inset 0 0 0 1px #d6b300;
}

.zrow-result {
  display: inline-block;
  padding: 0 4px;
  border-radius: 2px;
  color: #ff0000;
  font-weight: 700;
}

.zrow-result.hit {
  background-color: #ffeb3b;
  color: #d40000;
  font-weight: 700;
}

.ziliao-table td.note-cell {
  font-size: 12px;
  font-weight: normal;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
  padding: 8px;
  background: var(--row-even-bg);
}

.current-period-row td { background: var(--row-hover-bg) !important; }

.num-tag {
  display: inline-block;
  padding: 2px 6px;
  margin: 1px;
  border-radius: 3px;
  font-size: 12px;
  color: #fff;
}
.num-tag.hit { outline: 3px solid var(--hit-bg); }

.ssz-block {
  border: 1px solid color-mix(in srgb, var(--border), #666666 28%);
  background: #dcdcdc;
  text-align: left;
  overflow: hidden;
  border-radius: 2px;
}
.ssz-block .ssz-head {
  text-align: center;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: clamp(24px, 2.2vw, 38px);
  line-height: 1.25;
  padding: 10px 8px;
}
.ssz-block .ssz-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid color-mix(in srgb, var(--border), #808080 35%);
  font-size: clamp(16px, 1.5vw, 29px);
  font-weight: 800;
}
.ssz-block .ssz-line .k {
  color: #111111;
  white-space: nowrap;
}
.ssz-block .ssz-line .v {
  color: #ff0000;
  letter-spacing: 1px;
  word-break: break-all;
}
.ssz-block .ssz-big {
  border-top: 1px solid color-mix(in srgb, var(--border), #808080 35%);
  padding: 12px 8px;
  text-align: center;
  font-size: clamp(24px, 2.2vw, 42px);
  font-weight: 900;
  color: #0a0a0a;
}
.ssz-block .ssz-big .tail {
  display: inline-block;
  color: #ff0000;
  margin: 0 10px;
  font-size: 1.18em;
  line-height: 1.1;
}
.ssz-block .ssz-big .slogan {
  color: #0a0a0a;
}
.ssz-block.is-hit .ssz-big .tail {
  background: var(--hit-bg);
  color: var(--legacy-red);
  border-radius: 4px;
  padding: 0 8px 2px;
}

.ssz-red .ssz-head {
  background: #f70909;
  color: #ffe900;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.ssz-neon {
  background: radial-gradient(circle at 20% 12%, #2a1143, #0f0b1f 72%);
  border-color: #5f2ea7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 14px rgba(95, 46, 167, 0.25);
}
.ssz-neon .ssz-head {
  color: #7bffef;
  background: linear-gradient(90deg, #5f2ea7, #0c7d88);
  text-shadow: 0 0 8px rgba(123, 255, 239, 0.4);
}
.ssz-neon .ssz-line {
  border-top-color: rgba(123, 255, 239, 0.24);
}
.ssz-neon .ssz-line .k {
  color: #f5f3ff;
}
.ssz-neon .ssz-line .v {
  color: #ff4d9a;
  text-shadow: 0 0 6px rgba(255, 77, 154, 0.34);
}
.ssz-neon .ssz-big {
  border-top-color: rgba(123, 255, 239, 0.24);
  color: #f5f3ff;
}
.ssz-neon .ssz-big .tail {
  color: #ff4d9a;
}
.ssz-neon .ssz-big .slogan {
  color: #f5f3ff;
}

.ssz-strip {
  border-color: #c9c9c9;
  background:
    repeating-linear-gradient(
      90deg,
      #f4f4f4 0,
      #f4f4f4 20px,
      #ececec 20px,
      #ececec 40px
    );
}
.ssz-strip .ssz-head {
  color: #ffffff;
  background:
    linear-gradient(90deg, #bf0f0f 0%, #f31212 52%, #b70e0e 100%);
}
.ssz-strip .ssz-line {
  border-top-color: #bdbdbd;
}
.ssz-strip .ssz-line .k {
  color: #0c0c0c;
}
.ssz-strip .ssz-line .v {
  color: #df0505;
}
.ssz-strip .ssz-big {
  color: #111111;
  background: rgba(255, 255, 255, 0.55);
}

.gaoshou-section { margin: 8px 0 0; }
.gaoshou-section .gs-title {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 12px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bottom-content { padding: 10px; }
.bottom-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.bottom-cats a {
  padding: 5px 14px;
  background: var(--row-even-bg);
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s;
}
.bottom-cats a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.friend-links {
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--row-even-bg);
}
.friend-links a {
  margin: 0 8px;
  color: var(--text-main);
  transition: color 0.2s;
}
.friend-links a:hover { color: var(--primary); }

.footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--row-even-bg);
}

.cell-empty,
.ziliao-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 10px;
}

.contentdi {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
  font-weight: 700;
}

/* 金字塔三列表格：对标参考站的段落隔断与命中高亮 */
.jinzita-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e9d6d6;
  background: #ffffff;
}
.jinzita-table td {
  border: 1px solid #eddcdc;
  padding: 10px 8px;
  text-align: center;
  line-height: 1.35;
}
.jz-period-cell {
  width: 31%;
  color: #171717;
  font-size: clamp(22px, 3.8vw, 36px);
  font-weight: 800;
  text-decoration: underline;
  white-space: nowrap;
  background: #fbfbfb;
}
.jz-content-cell {
  width: 34%;
  color: #a33226;
  font-size: clamp(24px, 4.1vw, 38px);
  font-weight: 800;
  letter-spacing: 0.4px;
  background: #ffffff;
}
.jz-content-num {
  color: #a33226;
}
.jz-content-zodiac {
  color: #a33226;
}
.jz-sep {
  display: inline-block;
  margin: 0 2px;
}
.jz-result-cell {
  width: 35%;
  color: #8e2a1f;
  font-size: clamp(24px, 4.1vw, 38px);
  font-weight: 800;
  white-space: nowrap;
  background: #ffffff;
}
.jz-open {
  color: #ff2a1b;
  margin: 0 1px;
}
.jz-state {
  margin-left: 1px;
}
.jz-state-hit {
  color: #ff1400;
}
.jz-state-miss {
  color: #8e2a1f;
}
.jz-state-pending {
  color: #888888;
}
.jz-hit {
  display: inline-block;
  padding: 0 4px 1px;
  border-radius: 2px;
  background: #ffef6e;
  color: #cf1e13;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.jz-divider-row td {
  padding: 12px 8px;
  background: #f3f3f3;
  color: #202020;
  border-top: 1px solid #e4d8d8;
  border-bottom: 1px solid #e4d8d8;
}
.jz-divider-tag {
  margin-right: 8px;
  color: #0048c8;
  font-size: clamp(19px, 3.3vw, 28px);
  font-weight: 800;
}
.jz-divider-domain {
  color: #1b1b1b;
  font-size: clamp(24px, 4.1vw, 40px);
  font-weight: 800;
  text-decoration: underline;
  margin-right: 8px;
}
.jz-divider-slogan {
  color: #d10000;
  font-size: clamp(21px, 3.7vw, 34px);
  font-weight: 900;
  letter-spacing: 0.6px;
}

/* 资料区背景闪烁：只作用 #ziliao 容器 */
.effect-bg-blink #ziliao {
  position: relative;
  isolation: isolate;
}
.effect-bg-blink #ziliao::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: 4px;
  background:
    radial-gradient(circle at 22% 16%, color-mix(in srgb, var(--primary), #ffffff 48%) 0%, transparent 44%),
    radial-gradient(circle at 78% 80%, color-mix(in srgb, var(--accent), #ffffff 56%) 0%, transparent 45%),
    linear-gradient(120deg, color-mix(in srgb, var(--primary-light), #ffffff 30%), transparent 65%);
  mix-blend-mode: screen;
  animation: ziliao-bg-pulse var(--bg-blink-duration) steps(2, end) infinite;
}
.effect-bg-blink #ziliao > * {
  position: relative;
  z-index: 1;
}

@keyframes ziliao-bg-pulse {
  0% {
    opacity: 0.28;
    filter: hue-rotate(0deg) saturate(1.0);
  }
  35% {
    opacity: calc(0.66 + var(--bg-blink-intensity));
    filter: hue-rotate(14deg) saturate(1.28);
  }
  70% {
    opacity: calc(0.38 + var(--bg-blink-intensity));
    filter: hue-rotate(-12deg) saturate(1.12);
  }
  100% {
    opacity: 0.28;
    filter: hue-rotate(0deg) saturate(1.0);
  }
}

/* 高对比模式：提高边框与文字可读性 */
.contrast-high .ziliao-table,
.contrast-high .ziliao-table-cols,
.contrast-high .juesha-table {
  border-width: 2px;
}
.contrast-high .ziliao-table td,
.contrast-high .ziliao-table-cols td,
.contrast-high .juesha-table td {
  color: var(--text-main);
}
