@import url("/data/common/css/theme.css");

html {
  height: auto;
  overflow-x: hidden;
  overflow-y: visible;
}

body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--za-bg);
  font-family: var(--za-font);
  color: var(--za-text);
  height: auto;
  overflow-x: hidden;
  overflow-y: visible;
}

.cgi-wrap { padding: 8px 10px 16px; }

.box {
  margin-bottom: 12px;
  background: var(--za-bg-card);
  border-radius: var(--za-radius);
  box-shadow: var(--za-shadow);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.box.pad { padding: 0; }

/* UEditor 保存后的导航列表兼容 */
.cgi-wrap > ul[class*="list-paddingleft"],
.cgi-wrap > ul.list-paddingleft-2 {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  padding: 10px 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--za-border);
  box-shadow: var(--za-shadow-sm);
  list-style: none;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.cgi-wrap > ul[class*="list-paddingleft"] li,
.cgi-wrap > ul.list-paddingleft-2 li {
  flex: 0 1 auto;
  min-width: 18%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cgi-wrap > ul[class*="list-paddingleft"] li p,
.cgi-wrap > ul.list-paddingleft-2 li p {
  margin: 0;
}

.cgi-wrap > ul[class*="list-paddingleft"] li a,
.cgi-wrap > ul.list-paddingleft-2 li a {
  display: block;
  padding: 7px 10px;
  text-align: center;
  color: var(--za-primary);
  border-radius: 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* 顶部导航锚点 */
.nav2 {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  padding: 10px 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--za-border);
  box-shadow: var(--za-shadow-sm);
}

.nav2 ul {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
}

.nav2 ul li {
  flex: 0 1 auto;
  min-width: 18%;
  padding: 0;
}

.nav2 ul li a {
  display: block;
  padding: 7px 10px;
  text-align: center;
  color: var(--za-primary);
  border-radius: 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav2 ul li a:hover,
.nav2 ul li a:active {
  background: linear-gradient(135deg, var(--za-primary), var(--za-primary-light));
  color: #fff;
  border-color: transparent;
}

/* 区块标题 */
.list-title {
  background: linear-gradient(135deg, #0f2744 0%, var(--za-primary) 60%, var(--za-primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--za-gold);
  position: relative;
}

.list-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--za-gold-light);
}

.sub-title {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
  color: #fff;
  text-align: center;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sicai-head {
  background: linear-gradient(135deg, #0f2744 0%, var(--za-primary) 50%, var(--za-primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--za-gold);
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.15);
}

.haoju {
  text-align: center;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #92400e;
  border-left: 4px solid var(--za-gold);
  margin: 8px;
  border-radius: var(--za-radius-sm);
}

/* 表格 */
.qxtable, .duilianpt, .duilianpt1, .ziliao-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.qxtable td, .qxtable th,
.duilianpt td, .duilianpt th,
.duilianpt1 td, .duilianpt1 th,
.ziliao-table td, .ziliao-table th {
  border-bottom: 1px solid var(--za-border);
  padding: 10px 8px;
  font-size: 14px;
}

.qxtable tr:last-child td,
.duilianpt tr:last-child td,
.duilianpt1 tr:last-child td,
.ziliao-table tr:last-child td { border-bottom: none; }

.qxtable tr:nth-child(even) td,
.duilianpt tr:nth-child(even) td,
.duilianpt1 tr:nth-child(even) td { background: #f8fafc; }

.qxtable th, .duilianpt th, .duilianpt1 th {
  background: #f1f5f9;
  color: var(--za-primary);
  font-weight: 600;
}

.duilianpt1.zodiac-track td {
  white-space: normal;
  word-break: break-all;
  line-height: 1.8;
  font-size: 13px;
}

.qxtable td {
  white-space: normal;
  word-break: break-all;
  line-height: 1.7;
  font-size: 13px;
}

.num-track-table td {
  white-space: normal;
  line-height: 1.8;
  font-size: 14px;
  word-break: break-all;
  padding: 12px 8px;
}

.num-track-table th {
  font-size: 14px;
  font-weight: 600;
}

.num-track-table tr[style*="FFF8DC"] {
  background: linear-gradient(90deg, #fffbeb, #fef9c3) !important;
}

/* 列表 */
.post-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.post-list li {
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 14px;
  font-size: 14px;
  transition: background 0.15s;
}

.post-list li:last-child { border-bottom: none; }

.post-list li:hover { background: #f8fafc; }

.post-list li a {
  color: var(--za-text);
  text-decoration: none;
  display: block;
  line-height: 1.6;
}

.post-list .rank-link {
  display: block;
}

.post-list .rank-title {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.post-list .rank-nums {
  display: block;
  width: 100%;
  margin-top: 2px;
}

.post-list .rank-nums-row {
  display: block !important;
  width: 100%;
  font-size: 13px;
  line-height: 1.85;
  word-break: break-all;
  white-space: normal;
}

.post-list .rank-num-br {
  display: block;
  content: "";
  margin: 0;
  line-height: 0;
}

.rank-post-list li {
  padding: 12px 12px 10px;
}

.post-list .ci { font-weight: 700; color: var(--za-red); }

/* 卡片资料 */
.card-ziliao-list {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.card-ziliao-item {
  padding: 14px 12px;
  border-bottom: 1px solid var(--za-border);
  transition: background 0.15s;
}

.card-ziliao-item:last-child { border-bottom: 0; }

.card-ziliao-item:hover { background: #fafbfc; }

.card-ziliao-current {
  background: linear-gradient(90deg, #fffbeb, #fff);
  border-left: 4px solid var(--za-gold);
}

.card-ziliao-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--za-border);
}

.card-ziliao-period {
  font-size: 14px;
  font-weight: 700;
  color: var(--za-primary);
  background: #f0fdf4;
  padding: 2px 10px;
  border-radius: 12px;
}

.card-ziliao-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--za-red);
}

.card-ziliao-result {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.card-ziliao-result .zl-result {
  font-size: 13px;
}

.card-ziliao-line {
  font-size: 14px;
  line-height: 1.8;
  color: var(--za-text);
  padding: 2px 0;
  word-break: break-all;
}

.card-ziliao-line-wx {
  text-align: center;
  font-size: 16px;
  line-height: 2;
  font-weight: 700;
}

/* 号码区 */
.code-list {
  line-height: 2.2;
  font-size: 15px;
  text-align: center;
  padding: 16px 12px;
}

.zl { color: var(--za-red); font-weight: 700; }

.red { color: var(--za-red); }
.blue { color: var(--za-blue); }
.green { color: var(--za-green); }

.hit { background: linear-gradient(135deg, #fef08a, #fde047); padding: 0 4px; border-radius: 3px; }

/* 开奖结果：准=绿，错=红，待开=黄 */
.zl-result {
  display: inline-block;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.5;
  white-space: nowrap;
}

.zl-result.zl-hit {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.zl-result.zl-miss {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.zl-result.zl-pending {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.duilianpt1 th .zl-result,
.duilianpt1 td .zl-result,
.post-list .zl-result,
.num-track-table .zl-result {
  font-size: 13px;
}

/* 辅助 */
.tips-box {
  border: 1px solid #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  padding: 14px;
  text-align: center;
  line-height: 1.8;
  font-size: 14px;
  margin: 8px;
  border-radius: var(--za-radius-sm);
  color: var(--za-primary);
}

.category-legend {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 12px 14px;
  margin: 8px;
  font-size: 13px;
  line-height: 1.8;
  border-radius: var(--za-radius-sm);
}

.category-legend p { margin: 4px 0; }

.wuxing-ref-box {
  margin: 10px 8px;
  padding: 12px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--za-radius-sm);
  line-height: 1.9;
  font-size: 14px;
}

.wuxing-ref-title {
  font-weight: 700;
  color: var(--za-primary);
  margin: 0 0 8px;
  text-align: center;
}

.sxzt-table td { font-size: 14px; }

.zodiac-count { font-size: 13px; font-weight: normal; color: var(--za-text-muted); }

@media screen and (max-width: 420px) {
  .nav2 ul li a { font-size: 11px; padding: 6px 6px; }
  .list-title { font-size: 15px; padding: 10px 12px; }
  .card-ziliao-title { font-size: 14px; }
  .card-ziliao-line { font-size: 13px; }
}
