/* 神算子论坛 — 对齐 https://ssz.66678.win/ 壳层与资料表；开奖区沿用 home-inline */
:root {
  --home-nav2-bg: #000080;
  --home-nav2-hover: #da183b;
  --home-tit-bg: #000080;
  --home-tit-highlight: #ffff00;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: url(/skins/ssz/assets/bg.jpg) top center no-repeat #fff;
  background-size: cover;
  background-attachment: fixed;
}
body {
  margin: 0 auto;
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  line-height: 1.75;
  font-size: 16px;
  font-family: "楷体", "微软雅黑", "Microsoft YaHei", sans-serif;
  word-break: break-all;
  word-wrap: break-word;
  background: #f0f5f9;
  color: #111;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  vertical-align: middle;
  border: 0;
}
a { text-decoration: none; color: inherit; }
ol, ul { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; border-spacing: 0; }

@media screen and (max-width: 750px) {
  body { font-size: 14px; }
}

.site-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}
.site-head { background: #fff; line-height: 0; }
.ssz-logo-box img,
.toplogo {
  display: block;
  width: 100%;
  height: auto;
}

.box {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}
.pad { padding: 4px; }

/* 导航：海军蓝圆钮 */
#nav2.nav2,
.nav2 {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 2px;
  font-size: 13px;
  background: #fff;
  z-index: 50;
}
.nav2 ul {
  padding: 2px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
}
.nav2 ul li {
  width: 100%;
  box-sizing: border-box;
  padding: 0 2px;
  flex: 1 1 0;
  min-width: 0;
}
.nav2 ul li a {
  display: block;
  padding: 3px 0;
  text-align: center;
  color: #fff;
  border-radius: 50px;
  background: var(--home-nav2-bg);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav2 ul li a:hover {
  background: var(--home-nav2-hover);
}
#nav2[data-fixed="fixed"],
.nav2[data-fixed="fixed"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 99;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
@media screen and (min-width: 800px) {
  .nav2 { padding: 4px; font-size: 16px; }
  .nav2 ul { padding: 4px 0; }
  .nav2 ul li { padding: 0 4px; }
  .nav2 ul li a { padding: 5px 0; }
}

/* 开奖区：复用默认站样式，彩种按钮对齐站点藏青主色 */
.skin-lottery-stack {
  margin: 3px 0;
  padding: 0 2px;
  max-width: 100%;
}
.skin-lottery-stack .tabs {
  margin-left: 0;
  margin-right: 0;
}
.skin-lottery-stack .tabs button {
  background: #e0e6f0;
  color: #000080;
}
.skin-lottery-stack .tabs button:not(.active) .tab-date {
  color: #6a6a9a;
}
.skin-lottery-stack .tabs button.active {
  background: #000080;
  color: #fff;
}
.skin-lottery-stack #widget.border-ws {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.skin-notice {
  margin: 6px 3px;
  padding: 8px 10px;
  background: #fff8e6;
  border: 1px solid #f0d9a0;
  font-size: 14px;
  line-height: 1.5;
}

.modules { padding: 0 0 12px; }
.module.skin-material-panel {
  margin: 4px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  scroll-margin-top: 86px;
}
.module-title {
  position: relative;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  padding: 10px 12px;
  line-height: 1.4;
  color: #ffff00;
  background: var(--home-tit-bg);
  border: 1px solid #000080;
  white-space: normal;
  word-break: keep-all;
}
.module-body {
  font-size: 15px;
  padding: 0;
  overflow-x: auto;
  background: #fff;
}
.module-body .muted,
.skin-panel-loading {
  color: #888;
  text-align: center;
  padding: 18px 12px;
}

/* style92875 资料表 */
.style92875 {
  width: 100%;
  background-color: #ffffff;
  text-align: center;
  border-collapse: collapse;
  border: 1px solid #000080;
}
.style92875 .header-row { background-color: #000080; height: 40px; }
.style92875 .header-row td {
  border-color: #000080;
  text-align: center;
  margin: 0;
  padding: 4px 0;
}
.style92875 .title-text { font-family: 楷体; }
.style92875 .title-webname {
  color: #ffffff;
  font-size: 16pt;
  font-weight: bold;
}
.style92875 .title-domain {
  color: #ff00ff;
  font-size: 16pt;
  font-weight: bold;
}
.style92875 .title-name {
  color: #ffffff;
  font-size: 20pt;
  font-weight: bold;
}
.style92875 .subtitle-row td { text-align: center; padding: 6px 0; }
.style92875 .subtitle-label {
  color: #ff0000;
  font-size: 12pt;
  font-weight: bold;
}
.style92875 .subtitle-domain {
  color: #339966;
  font-size: 14pt;
  font-weight: bold;
}
/* 男肖/女肖等正则图例：略小字号，避免换行成两行 */
.style92875 .subtitle-legend {
  color: #339966;
  font-size: 11pt;
  font-weight: bold;
  white-space: nowrap;
}
.style92875 .subtitle-legend-row td {
  padding: 4px 2px;
}
.style92875 .data-row td {
  height: auto;
  min-height: 40px;
  padding: 5px;
  border: 1px solid #000080;
}
.style92875 .data-content {
  font-family: 楷体;
  font-size: 13pt;
  font-weight: bold;
  text-align: center;
  margin: 0;
}
.style92875 .data-content[align="left"],
.style92875 .data-content.data-content--left {
  text-align: left;
}
.prediction-text { color: #008000; }
.result-text { color: #ff0000; }
.highlight { background-color: #ffff00; }

.box.pad.skin-material-panel {
  scroll-margin-top: 86px;
}

/* 神算子资料 feed */
.skin-material-panel .material-feed-content { padding: 0; }
.skin-material-panel .material-feed-row { border-bottom-color: #e0e6f0; }
.skin-material-panel a.material-feed-row:hover { background: rgba(0, 0, 128, 0.05); }
.skin-material-panel .material-feed-badge { background: #000080; }
.skin-material-panel .material-feed-period { color: #c00; font-weight: 700; }

/* Link Feed 内部推荐 nameTag */
.skin-link-feed .link-feed-rows .data-row td {
  text-align: left;
  height: auto;
  padding: 5px;
}
.skin-link-feed a.link-feed-name-tag {
  text-align: center;
  text-decoration: none;
  display: block;
  line-height: 32px;
  color: #0000ff;
  font-weight: bold;
}
.skin-link-feed .link-feed-tag {
  color: #008000;
}
.feed-row {
  display: grid;
  grid-template-columns: 72px 90px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 8px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}
.feed-badge {
  background: #000080;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 12px;
}
.feed-period { color: #c00; }
.feed-author { color: #666; font-size: 12px; }

.home-ads { padding: 4px 6px; }
.home-ads img {
  display: block;
  width: 100%;
  height: auto;
  margin: 4px 0;
}

.ssz-footer {
  padding: 16px 10px 40px;
  text-align: center;
  background: #fff;
  border-top: 1px solid #eee;
  color: #333;
  font-size: 13px;
  line-height: 1.7;
}
.ssz-footer p { margin: 8px 10px 0; color: #555; font-size: 12px; }
.ssz-brand { color: #000080; }
.cont.center { text-align: center; }

/* 历史弹窗 */
.skin-history-modal[hidden] { display: none !important; }
.skin-history-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.skin-history-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.skin-history-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #000080;
  border-radius: 8px;
}
.skin-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #000080;
  color: #fff;
}
.skin-history-header b { font-size: 16px; }
.skin-history-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.skin-history-list {
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.skin-history-item {
  background: #fff;
  border: 1px solid #d0d8e8;
  border-radius: 8px;
  padding: 10px;
}
.skin-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e2ebf6;
}
.skin-history-period { color: #000080; font-size: 14px; font-weight: 700; }
.skin-history-date { color: #6a7f9c; font-size: 12px; white-space: nowrap; }

.floating-nav .skin-btn-top {
  background: #000080;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.floating-nav .skin-btn-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-nav .skin-btn-top:hover { background: #da183b; }

/* —— C 类图纸卡（泳池精选同款：底图叠字） —— */
.ssz-promo {
  --promo-badge: linear-gradient(90deg, #1a4a9c, #000080);
  --promo-badge-glow: rgba(0, 80, 180, 0.5);
  margin: 8px 6px;
  min-height: 420px;
  border-radius: 12px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.ssz-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.05) 38%,
    rgba(0, 0, 0, 0.35) 62%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}
.ssz-promo > * {
  position: relative;
  z-index: 1;
}
.ssz-promo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 0;
  gap: 8px;
}
.ssz-promo-period,
.ssz-promo-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
}
.ssz-promo-period {
  background: rgba(30, 30, 30, 0.72);
}
.ssz-promo-tag {
  background: #c41e1e;
}
.ssz-promo-hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 16px 12px;
  gap: 10px;
}
.ssz-promo-brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.4);
  line-height: 1.15;
}
.ssz-promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  max-width: calc(100% - 24px);
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--promo-badge);
  box-shadow: 0 0 0 2px var(--promo-badge-glow), 0 2px 8px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.ssz-promo-panel {
  margin: 0 10px 12px;
  padding: 12px 14px 14px;
  border-radius: 14px;
  background: rgba(28, 28, 28, 0.62);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ssz-promo-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.ssz-promo-row .lab {
  flex: 0 0 auto;
  color: #f1d882;
  font-weight: 700;
  white-space: nowrap;
}
.ssz-promo-row .val {
  flex: 1;
  text-align: right;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  word-break: break-all;
}
.ssz-promo-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ssz-promo-block-lab {
  font-size: 13px;
  font-weight: 700;
  color: #f1d882;
  letter-spacing: 0.04em;
}
.ssz-promo-block-val {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-align: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
}
.ssz-promo-nums-line + .ssz-promo-nums-line {
  margin-top: 2px;
}
.ssz-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ssz-promo-grid--1 {
  grid-template-columns: 1fr;
}
.ssz-promo-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.ssz-promo-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.ssz-promo-cell {
  background: rgba(0, 0, 0, 0.38);
  border-radius: 10px;
  text-align: center;
  padding: 8px 6px;
}
.ssz-promo-cell .lab {
  font-size: 12px;
  color: #f1d882;
  font-weight: 700;
  margin-bottom: 2px;
}
.ssz-promo-cell .val {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}
.ssz-promo-pairs .ssz-promo-cell--pair {
  padding: 10px 4px;
}
.ssz-promo-pair {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.1;
}
.ssz-promo-pair b {
  font-size: 16px;
  font-weight: 800;
  color: #ffe08a;
  font-style: normal;
}
.ssz-promo-pair i {
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  color: #fff;
  letter-spacing: 0.04em;
}
.ssz-promo-poem {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(80, 40, 20, 0.45), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(241, 216, 130, 0.28);
}
.ssz-promo-poem-lab {
  font-size: 12px;
  font-weight: 700;
  color: #f1d882;
  margin-bottom: 4px;
}
.ssz-promo-poem-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff8e6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.ssz-promo-kill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(160, 24, 24, 0.42);
  border: 1px solid rgba(255, 120, 120, 0.35);
}
.ssz-promo-kill .lab {
  color: #ffd0d0;
  font-weight: 700;
  font-size: 13px;
}
.ssz-promo-kill .val {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* 按卡轻微色调区分角标 */
.ssz-promo[data-layout="tsp"] { --promo-badge: linear-gradient(90deg, #0f766e, #115e59); --promo-badge-glow: rgba(20, 140, 120, 0.45); }
.ssz-promo[data-layout="amtj"] { --promo-badge: linear-gradient(90deg, #7c3aed, #4c1d95); --promo-badge-glow: rgba(120, 80, 220, 0.45); }
.ssz-promo[data-layout="dj"] { --promo-badge: linear-gradient(90deg, #b91c1c, #7f1d1d); --promo-badge-glow: rgba(200, 60, 60, 0.45); }
.ssz-promo[data-layout="bgss"] { --promo-badge: linear-gradient(90deg, #a16207, #713f12); --promo-badge-glow: rgba(180, 130, 40, 0.45); }
.ssz-promo[data-layout="jhw"] { --promo-badge: linear-gradient(90deg, #c2410c, #7c2d12); --promo-badge-glow: rgba(220, 100, 40, 0.45); }

@media (max-width: 520px) {
  .nav2 ul li a { font-size: 12px; padding: 6px 1px; }
  .module-title { font-size: 15px; }
  .style92875 .title-webname,
  .style92875 .title-domain { font-size: 13pt; }
  .style92875 .title-name { font-size: 16pt; }
  .style92875 .data-content { font-size: 12pt; }
  .feed-row { grid-template-columns: 64px 1fr; }
  .feed-period,
  .feed-author { display: none; }
  .skin-history-modal { padding: 0; align-items: stretch; }
  .skin-history-dialog {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }
  .ssz-promo {
    height: 600px;
    min-height: 600px;
    max-height: 600px;
  }
  .ssz-promo-hero {
    flex: 0 0 auto;
    padding: 10px 12px 6px;
    gap: 6px;
  }
  .ssz-promo-brand { font-size: 22px; }
  .ssz-promo-badge { font-size: 12px; min-height: 26px; padding: 0 12px; }
  .ssz-promo-panel { margin: 0 8px 10px; padding: 10px 10px 12px; gap: 6px; }
  .ssz-promo-row { font-size: 12px; }
  .ssz-promo-block-val { font-size: 14px; padding: 5px 6px; }
  .ssz-promo-cell .val { font-size: 14px; }
  .ssz-promo-poem-text { font-size: 15px; letter-spacing: 0.08em; }
  .ssz-promo-kill .val { font-size: 16px; }
  .ssz-promo-pair b { font-size: 15px; }
  .ssz-promo-pair i { font-size: 13px; }
}
