/* 通天论坛风格：开奖区 + 新港彩资料 */
.tt-kj-tabs {
  display: flex;
  background: #e7f1fd;
  border-bottom: solid 2px #1d79eb;
}
.tt-kj-tabs .tt-tab {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  color: #333;
  border: none;
  background: transparent;
}
.tt-kj-tabs .tt-tab.active {
  color: #fff;
  background: linear-gradient(#1d79eb, #0b5fc7);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.tt-kj-panel {
  background: #fff;
  padding: 8px 6px;
}
.tt-kj-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
}
.tt-kj-top .tt-issue { color: #f00; }
.tt-kj-top .tt-cd { font-family: monospace; font-size: 18px; color: #f00; }
.tt-kj-top .tt-his {
  color: #00f;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
}
.tt-kj-bot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: #333;
}
.tt-fresh {
  background: #f00;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}
.tt-fresh:disabled { opacity: .6; }

.tt-ball-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 2px;
  border-top: 1px dashed #84baf7;
  border-bottom: 1px dashed #84baf7;
}
.tt-ball-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tt-ball-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.2);
}
.tt-ball-ring.ball-red { background: linear-gradient(135deg, #ff4d4d, #c00); }
.tt-ball-ring.ball-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tt-ball-ring.ball-green { background: linear-gradient(135deg, #10b981, #047857); }
.tt-ball-ring.ball-special { outline: 2px dashed rgba(255,255,255,.9); }
.tt-ball-ring.ball-empty { background: #ccc; color: #666; font-size: 11px; }
.tt-ball-name { font-size: 10px; color: #333; margin-top: 2px; text-align: center; }
.tt-plus { flex: 0 0 14px; text-align: center; font-weight: bold; color: #f00; line-height: 34px; }

/* 页头分类：6 列网格，字居中、列对齐 */
#tt-app .header { height: auto; }
#tt-app .header .nav ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  justify-content: stretch;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
#tt-app .header .nav ul li {
  width: auto;
  margin: 0;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
  border-right: solid 1px rgba(0, 0, 0, 0.15);
  border-bottom: solid 1px rgba(0, 0, 0, 0.15);
}
#tt-app .header .nav ul li:nth-child(6n) {
  border-right: none;
}
#tt-app .header .nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  line-height: 1.2;
  padding: 0 4px;
  font-size: 13px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#tt-app .header .nav ul li a.active {
  background: #1d79eb;
  text-decoration: none;
}
@media screen and (max-width: 720px) {
  #tt-app .header .nav ul li a { font-size: 12px; padding: 0 2px; }
}

/* 资料表：表头表身居中、垂直居中 */
#tt-app .ptyx {
  table-layout: fixed;
  width: 100%;
}
#tt-app .ptyx th,
#tt-app .ptyx td {
  text-align: center;
  vertical-align: middle;
  padding: 6px 4px;
  line-height: 1.35;
  word-break: break-all;
}
#tt-app .ptyx th {
  font-size: 16px;
}
.ptyx .yanse,
.ptyx td .yanse {
  color: #f00;
  background: #ff0;
  font-weight: bold;
  padding: 0 2px;
}
.ptyx td.tt-zl-mid { color: #00f; font-size: 15px; }
.ptyx td.tt-zl-right { white-space: nowrap; }
.tt-dc-ok { color: #f00; font-weight: bold; }
.tt-dc-bad { color: #999; }
.tt-dc-pending { color: #00f; }
.ptyx .tt-empty { text-align: center; color: #999; padding: 12px; }

/* 友情链接：尽量对齐源站 flfl.js 的 yqlj 样式 */
.tt-yqlj-wrap { padding: 4px !important; }
.tt-yqlj-wrap .yqlj {
  table-layout: auto;
  color: #000;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  text-align: center;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px dashed #67a4f5;
}
.tt-yqlj-wrap .yqlj td {
  font-weight: bold;
  border: 1px solid #fefefe;
  font-size: 18pt;
  width: 33.33%;
  padding: 4px 5px 3px;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}
.tt-yqlj-wrap .yqlj a {
  display: block;
  height: 35px;
  line-height: 32px;
  padding-left: 0;
  font-weight: bold;
  text-align: center;
  border: solid 1px #67a4f5;
  border-radius: 20px;
  background: #eee;
  background: linear-gradient(to top, #fff, #eee, #fff);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tt-yqlj-wrap .yqlj a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 720px) {
  .tt-yqlj-wrap .yqlj td { font-size: 14px; padding: 4px 3px 3px; }
  .tt-yqlj-wrap .yqlj a { font-size: 14px; }
}

/* 底部：复用前端采集 commonbot 图片与说明 */
.tt-common-bot.footer { padding: 4px 4px 12px; }
.tt-common-bot .tt-bot-tit {
  margin-bottom: 4px;
}
.tt-bot-imgs {
  background: #fff;
  padding: 4px;
}
.tt-bot-imgs img {
  display: block;
  width: 100%;
  max-width: 100%;
  vertical-align: middle;
}
.tt-bot-imgs img + img {
  margin-top: 4px;
}
.tt-common-bot .tt-bot-info {
  margin: 8px 0 0;
  padding: 0 8%;
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.tt-common-bot .tt-bot-info dt {
  font-weight: bold;
  margin-bottom: 6px;
}
.tt-common-bot .tt-bot-info dd {
  padding: 6px 0;
  margin: 0;
  border-bottom: solid 1px #000;
}
.tt-common-bot .tt-bot-info dd:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
@media screen and (max-width: 720px) {
  .tt-common-bot .tt-bot-info { font-size: 13px; padding: 0 5%; }
}

.tt-loading { text-align: center; padding: 24px; color: #fff; font-weight: bold; }
.tt-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 99;
  font-size: 13px;
}
