/* ==========================================================================
   彩数宝 前台样式 · 设计系统
   主色 #e02020 (红) / 强调 #2e7ce0 (蓝) / 文字 #1f2937 / 次要 #8a94a6
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font: 14px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1f2937; background: #f4f5f7;
  -webkit-font-smoothing: antialiased;
}
a { color: #374151; text-decoration: none; transition: color .15s; }
a:hover { color: #e02020; }
ul { list-style: none; }
.wrap { width: 1120px; margin: 0 auto; }

/* ---------- 头部 ---------- */
.header { background: linear-gradient(135deg, #e02020 0%, #c31432 100%); box-shadow: 0 2px 8px rgba(224, 32, 32, .25); }
.header-inner { display: flex; align-items: center; height: 76px; }
.logo { display: flex; align-items: baseline; gap: 12px; }
.logo-txt { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: 3px; text-shadow: 0 2px 4px rgba(0,0,0,.15); }
.logo-sub { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.5; }
.nav { display: flex; margin-left: 56px; height: 76px; }
.nav li a {
  display: flex; align-items: center; height: 100%; color: rgba(255,255,255,.92);
  font-size: 16px; font-weight: 500; padding: 0 30px; position: relative; transition: background .15s;
}
.nav li a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav li.on a { background: rgba(0,0,0,.18); color: #fff; font-weight: 600; }
.nav li.on a::after {
  content: ""; position: absolute; left: 30px; right: 30px; bottom: 0;
  height: 3px; background: #ffd257; border-radius: 3px 3px 0 0;
}
.logo-img { height: 46px; display: block; }
.fav-btn {
  margin-left: auto; color: #fff; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.7); border-radius: 18px; padding: 5px 16px;
}
.fav-btn:hover { background: rgba(255,255,255,.15); color: #ffd257; border-color: #ffd257; }

/* ---------- 主体 ---------- */
.main { padding: 16px 0 28px; min-height: 500px; }
.flash { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 10px 14px; margin-bottom: 12px; border-radius: 8px; }

.row3 { display: flex; gap: 14px; margin-bottom: 14px; }
.col-left { width: 218px; flex-shrink: 0; }
.col-mid { flex: 1; min-width: 0; }
.col-right { width: 236px; flex-shrink: 0; }
/* 三栏底部对齐 */
.row3 .col-left, .row3 .col-mid, .row3 .col-right { display: flex; flex-direction: column; }
.row3 .col-left .panel:last-child, .row3 .col-right .panel:last-child { flex: 1; margin-bottom: 0; display: flex; flex-direction: column; }
.row3 .col-left .panel:last-child .panel-bd { flex: 1; align-content: space-evenly; }
.row3 .col-right .panel:last-child .art-list { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.row3 .col-mid .mid-grid { flex: 1; }
.mid-grid .panel { display: flex; flex-direction: column; }
.mid-grid .panel .art-list { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }

/* ---------- 卡片面板 ---------- */
.panel {
  background: #fff; border: 1px solid #eceef1; border-radius: 10px;
  margin-bottom: 14px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .04);
}
.panel-hd {
  display: flex; align-items: center; padding: 13px 16px 12px;
  font-size: 15px; font-weight: 600; color: #1f2937;
  border-bottom: 1px solid #f1f3f6; position: relative;
}
.panel-hd::before {
  content: ""; width: 4px; height: 15px; background: #e02020;
  border-radius: 2px; margin-right: 9px; flex-shrink: 0;
}
.panel-hd .more { margin-left: auto; font-weight: 400; font-size: 12px; color: #9ca3af; }
.panel-hd .more::after { content: " ›"; }
.panel-hd .more:hover { color: #e02020; }
.panel-hd .tabs { margin-left: auto; font-weight: 400; font-size: 13px; display: flex; gap: 6px; }
.panel-hd .tabs a { padding: 3px 14px; border-radius: 16px; color: #6b7280; }
.panel-hd .tabs a.on { background: #e02020; color: #fff; }
.panel-bd { padding: 12px 16px; }

/* ---------- 左侧：彩票导航 ---------- */
.nav-box .nav-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px dashed #f1f3f6; }
.nav-box .nav-row:last-child { border-bottom: none; }
.nav-box b { color: #9ca3af; font-weight: 500; width: 44px; flex-shrink: 0; font-size: 13px; }
.nav-box span a { color: #e02020; margin-right: 10px; font-weight: 500; }
.nav-box span a:hover { text-decoration: underline; }

/* ---------- 快捷入口 ---------- */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 0; border: 1px solid #f1f3f6; border-radius: 10px;
  font-size: 20px; background: #fafbfc; transition: all .2s;
}
.quick-grid a span { font-size: 12px; color: #4b5563; }
.quick-grid a:hover { border-color: #e02020; background: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(224,32,32,.10); }
.quick-grid a:hover span { color: #e02020; }

/* ---------- 公告 ---------- */
.notice-bar {
  background: #fff; border: 1px solid #eceef1; border-radius: 10px;
  padding: 10px 16px; margin-bottom: 14px; color: #4b5563;
  display: flex; align-items: center; overflow: hidden;
  box-shadow: 0 1px 3px rgba(17,24,39,.04);
}
.notice-scroll { flex: 1; min-width: 0; overflow: hidden; }
.notice-track {
  display: inline-flex; white-space: nowrap; will-change: transform;
  animation: notice-marquee 20s linear infinite;
}
.notice-track:hover { animation-play-state: paused; }
.notice-seq { display: inline-flex; }
.notice-item { margin-right: 60px; }
@keyframes notice-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.notice-bar b { color: #e02020; margin-right: 4px; }
.notice-bar b::before { content: "📢 "; }
.notice-bar a { color: #2e7ce0; }

/* ---------- 开奖表 ---------- */
.kj-table { width: 100%; border-collapse: collapse; }
.kj-table td, .kj-table th { padding: 11px 8px; text-align: center; border-bottom: 1px solid #f4f6f8; }
.kj-table tr:last-child td { border-bottom: none; }
.kj-hd th { background: #fafbfc; color: #6b7280; font-weight: 500; font-size: 13px; }
.kj-table tbody tr:hover td, .kj-table tr:hover td { background: #fafbfd; }
.kj-name, .kj-name a { color: #1f2937; font-weight: 600; }
.kj-name a:hover { color: #e02020; }
.kj-balls { text-align: left; padding-left: 16px; white-space: nowrap; }
.ball {
  display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center;
  background: linear-gradient(145deg, #ff5a3c, #e02020); color: #fff; border-radius: 50%;
  font-style: normal; font-weight: 700; font-size: 14px; margin-right: 5px;
  box-shadow: 0 2px 4px rgba(224, 32, 32, .3);
}
.ball-test {
  background: linear-gradient(145deg, #ffc14d, #f59e0b);
  box-shadow: 0 2px 4px rgba(245, 158, 11, .3);
}
.kj-extra { color: #9ca3af; font-size: 12px; margin-left: 8px; }
.trial-source { display: block; color: #6b7280; font-size: 11px; line-height: 1.5; white-space: normal; margin-top: 3px; }
.ico { font-style: normal; opacity: .75; }
.ico:hover { opacity: 1; }
.kj-table-full td, .kj-table-full th { padding: 9px; }
.kj-table-full .kj-balls { text-align: center; padding-left: 8px; }

/* ---------- 工具链接 ---------- */
.tool-links { display: flex; flex-wrap: wrap; }
.tool-links a { width: 50%; padding: 7px 0; color: #4b5563; font-size: 13px; }
.tool-links a::before { content: "· "; color: #e02020; font-weight: 700; }
.tool-links a:hover { color: #e02020; }
.tool-links-col a { width: 100%; }
.tool-links-col a.on { color: #e02020; font-weight: 600; }

/* ---------- 文章列表（flex布局，标题省略+日期右对齐） ---------- */
.art-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed #f4f6f8;
}
.art-list li:last-child { border-bottom: none; }
.art-list li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #d1d9e6; flex-shrink: 0; transition: background .15s;
}
.art-list li:hover::before { background: #e02020; }
.art-list li a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.art-list li em { font-style: normal; color: #9ca3af; font-size: 12px; flex-shrink: 0; }
.art-list-lg li { padding: 11px 0; font-size: 15px; }
.art-list .empty { color: #9ca3af; }

/* ---------- 中栏预测速递 ---------- */
.mid-grid { display: flex; gap: 14px; }
.mid-grid .panel { flex: 1; min-width: 0; margin-bottom: 0; }

/* ---------- 频道板块 ---------- */
.channel {
  background: #fff; border: 1px solid #eceef1; border-radius: 10px;
  margin-bottom: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(17,24,39,.04);
}
.channel-hd {
  border-bottom: 1px solid #f1f3f6; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fafbfc;
}
.channel-title {
  background: linear-gradient(135deg, #3b8cf0, #2e7ce0); color: #fff !important;
  padding: 6px 20px; border-radius: 18px; font-weight: 600; font-size: 14px;
  box-shadow: 0 2px 6px rgba(46, 124, 224, .3);
}
a.channel-title:hover { background: linear-gradient(135deg, #2e7ce0, #2568c2); }
.channel-links { font-size: 13px; color: #d1d5db; }
.channel-links a { margin: 0 4px; color: #6b7280; }
.channel-links a:hover { color: #e02020; }
.channel-links a.hot { color: #e02020; font-weight: 600; }
.channel-bd { display: flex; }
.ch-left { flex: 1 1 0; min-width: 0; padding: 16px 20px; border-right: 1px solid #f4f6f8; display: flex; flex-direction: column; }
.ch-left .art-list { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.ch-mid { flex: 1 1 0; min-width: 0; padding: 16px 22px; border-right: 1px solid #f4f6f8; display: flex; flex-direction: column; }
.ch-mid .art-list { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.ch-right { flex: 1 1 0; min-width: 0; padding: 16px 20px; display: flex; flex-direction: column; }
.ch-right .art-list { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.sub-hd {
  color: #1f2937; font-weight: 600; margin: 10px 0 8px; padding-bottom: 9px;
  border-bottom: 1px solid #f1f3f6; font-size: 15px;
  display: flex; align-items: center;
}
.sub-hd::before { content: ""; width: 3px; height: 13px; background: #2e7ce0; border-radius: 2px; margin-right: 8px; }
.ch-left .sub-hd:first-child, .ch-mid .sub-hd:first-child { margin-top: 0; }
.sub-hd .more { margin-left: auto; font-weight: 400; font-size: 12px; color: #9ca3af; }
.sub-hd .more::after { content: " ›"; }
.sub-hd .more:hover { color: #e02020; }
.ch-listitem { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ch-listitem a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ch-listitem em { font-style: normal; color: #9ca3af; font-size: 12px; flex-shrink: 0; }
.channel .art-list li { padding: 7px 0; }
.expert-img { width: 100%; border: 1px solid #f1f3f6; border-radius: 10px; }
.channel.hide { display: none; }

/* ---------- 频道切换选项卡（居中两个栏目加背景） ---------- */
.lot-tabs {
  display: flex; justify-content: center; gap: 10px;
  background: #eef1f5; border-bottom: 3px solid #2e7ce0;
  padding: 10px 10px 0; margin: 4px 0 14px; border-radius: 10px 10px 0 0;
}
.lot-tab {
  padding: 10px 42px; font-size: 17px; font-weight: 600; color: #374151;
  background: #fff; border-radius: 10px 10px 0 0;
}
.lot-tab.on { background: #2e7ce0; color: #fff; }
.lot-tab:hover { color: #2e7ce0; }
.lot-tab.on:hover { color: #fff; }

/* ---------- 字谜栏目 ---------- */
.zimi-box { padding: 14px 20px 8px; border-bottom: 1px solid #f4f6f8; }
.zimi-hd {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  padding-bottom: 10px; border-bottom: 1px dashed #e5e9ef;
}
.zimi-title {
  font-size: 16px; font-weight: 700; color: #1f2937;
  border-bottom: 2px solid #2e7ce0; padding: 2px 10px 6px;
}
.zimi-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.zimi-links a { color: #2e7ce0; font-size: 13px; }
.zimi-links a:hover { color: #e02020; }
.zimi-list {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; padding: 6px 0 2px;
}
.zimi-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dotted #f1f3f6; }
.zimi-list li a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zimi-list li em { font-style: normal; color: #9ca3af; font-size: 12px; flex-shrink: 0; }
.zimi-list li.empty { color: #9ca3af; grid-column: 1 / -1; border-bottom: none; }

/* ---------- 文章页文字广告 ---------- */
.art-ad { text-align: center; margin: 14px 0 6px; }
.art-ad a { color: #e02020; font-weight: 900; font-size: 32px; line-height: 1.5; overflow-wrap: anywhere; }
.art-ad a:hover { text-decoration: underline; }

/* ---------- 频道页（/3d/ /p3/） ---------- */
.ch-subnav {
  background: #fff; border: 1px solid #eceef1; border-radius: 10px;
  padding: 11px 16px; margin-bottom: 14px; color: #e5e7eb;
  box-shadow: 0 1px 3px rgba(17,24,39,.04);
}
.ch-subnav b { color: #1f2937; font-size: 16px; margin-right: 14px; }
.ch-subnav a { color: #e02020; margin: 0 6px; }
.ch-subnav a:hover { text-decoration: underline; }
.ch-row { display: flex; gap: 14px; }
.ch-main { flex: 1; min-width: 0; }
.ch-side { width: 265px; flex-shrink: 0; }
.cpanel {
  background: #fff; border: 1px solid #eceef1; border-radius: 10px;
  margin-bottom: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(17,24,39,.04);
}
.cpanel-hd { display: flex; align-items: center; gap: 18px; padding: 13px 18px; border-bottom: 1px solid #f1f3f6; }
.cpanel-title { font-size: 16px; font-weight: 700; color: #1f2937; }
.cpanel-tabs a { color: #6b7280; margin-right: 16px; padding-bottom: 13px; }
.cpanel-tabs a.cur { color: #e02020; font-weight: 600; border-bottom: 3px solid #e02020; }
.cpanel-more { margin-left: auto; font-size: 12px; }
.cpanel-more a { color: #9ca3af; margin-left: 12px; }
.cpanel-more a::after { content: " ›"; }
.cpanel-more a:hover { color: #e02020; }
.cpanel-desc { color: #9ca3af; font-size: 13px; }
.cpanel-bd { padding: 14px 18px; }
.cpanel-bd.gray, .gray { color: #9ca3af; }
.red { color: #e02020; }
.big { font-size: 18px; letter-spacing: 3px; }

/* 模拟选号 */
.sim-box { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sim-left { text-align: center; }
.sim-icon { font-size: 36px; }
.sim-period { color: #6b7280; font-size: 13px; }
.sim-balls { display: flex; gap: 12px; }
.sim-ball {
  width: 48px; height: 48px; line-height: 48px; text-align: center;
  background: linear-gradient(145deg, #ff5a3c, #e02020); color: #fff; border-radius: 50%;
  font-size: 24px; font-weight: 700; font-style: normal;
  box-shadow: 0 3px 8px rgba(224, 32, 32, .35);
}
.sim-info { color: #6b7280; }
.sim-btn {
  margin-left: auto; padding: 10px 26px; background: #fff; border: 1px solid #d1d5db;
  border-radius: 22px; font-size: 15px; cursor: pointer; transition: all .2s;
}
.sim-btn:hover { border-color: #e02020; color: #e02020; box-shadow: 0 2px 8px rgba(224,32,32,.15); }
.sim-deadline { width: 100%; text-align: right; color: #9ca3af; font-size: 12px; }

/* 两栏列表 */
.ch2col { display: flex; flex-wrap: wrap; }
.ch2col.hide { display: none; }
.ch2col li { width: 50%; display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.ch2col li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #d1d9e6; flex-shrink: 0; }
.ch2col li:hover::before { background: #e02020; }
.ch2col li a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ch2col li em { font-style: normal; color: #9ca3af; font-size: 12px; flex-shrink: 0; margin-right: 18px; }
.ch2col .empty { color: #9ca3af; width: 100%; }

/* 兵器库 */
.arsenal { display: flex; flex-wrap: wrap; gap: 8px 0; }
.arsenal a { width: 14.2%; min-width: 92px; text-align: center; color: #4b5563; padding: 14px 0; border-radius: 10px; transition: all .2s; }
.arsenal a:hover { color: #e02020; background: #fef5f5; transform: translateY(-2px); }
.arsenal i { display: block; font-size: 34px; font-style: normal; margin-bottom: 8px; }

/* 开奖公告 */
.kj-notice p { margin: 7px 0; }
.kj-notice-links a { color: #2e7ce0; margin-right: 12px; }

/* ---------- 走势图目录页 ---------- */
.zs-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 2px solid #2e7ce0; }
.zs-tabs a {
  padding: 9px 36px; background: #fff; border: 1px solid #eceef1; border-bottom: none;
  border-radius: 8px 8px 0 0; font-size: 15px; color: #4b5563;
}
.zs-tabs a.on { background: #2e7ce0; color: #fff; border-color: #2e7ce0; font-weight: 600; }
.zs-section { background: #fff; border: 1px solid #eceef1; border-radius: 10px; margin-bottom: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(17,24,39,.04); }
.zs-section-hd { background: #fafbfc; border-bottom: 1px solid #f1f3f6; padding: 12px 18px; font-weight: 600; font-size: 15px; }
.zs-section-bd { padding: 8px 18px 18px; }
.zs-cat { color: #f08519; margin: 12px 0 6px; font-weight: 500; }
.zs-linkrow a { display: inline-block; margin: 4px 20px 4px 0; color: #2e7ce0; }
.zs-linkrow a:hover { color: #e02020; }

/* ---------- 走势图页 ---------- */
.zs-subnav {
  background: #fff; border: 1px solid #eceef1; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 12px; line-height: 2.1;
  box-shadow: 0 1px 3px rgba(17,24,39,.04);
}
.zs-subcat { color: #f08519; margin-right: 6px; font-weight: 500; }
.zs-subnav a { margin-right: 14px; color: #2e7ce0; }
.zs-subnav a.on { background: #2e7ce0; color: #fff; padding: 3px 10px; border-radius: 14px; font-weight: 500; }
.zs-crumb { color: #9ca3af; margin-bottom: 12px; font-size: 13px; }
.zs-crumb a { color: #2e7ce0; }

.zs-titlebar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f1f3f6; }
.zs-title { color: #e02020; font-size: 17px; font-weight: 700; }
.zs-update { color: #9ca3af; font-size: 12px; }
.zs-qsform { margin-left: auto; display: flex; gap: 8px; }
.zs-qsform select { padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 6px; }
.zs-qsform button { padding: 4px 18px; background: #2e7ce0; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.zs-qsform button:hover { background: #2568c2; }
.zs-optbar { text-align: center; padding: 8px; background: #fafbfc; border-bottom: 1px solid #f1f3f6; color: #4b5563; font-size: 13px; }
.zs-optbar label { margin: 0 8px; cursor: pointer; }

.zs-wrap { position: relative; overflow-x: auto; }
.zs-svg { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }
.zst { border-collapse: collapse; width: 100%; }
.zst th, .zst td { border: 1px solid #eef2f7; text-align: center; font-size: 11px; padding: 0; min-width: 19px; height: 26px; }
.zst-group th { background: #f0f6ff; color: #2e7ce0; font-size: 13px; }
.zst-labels th { background: #f8fafd; color: #6b7280; font-weight: normal; }
.zst-fix { background: #fff !important; color: #4b5563; padding: 0 3px !important; white-space: nowrap; }
.zst-period { color: #6b7280; }
.zst-code { color: #e02020; font-weight: 700; letter-spacing: 1px; }
.zst-txt { background: #fff; color: #4b5563; white-space: nowrap; padding: 0 3px !important; }
td.g0, th.g0 { background: #f2f8fd; }
td.g1, th.g1 { background: #fdf3f5; }
td.g2, th.g2 { background: #fdf9ec; }
.zst-group th.g0, .zst-group th.g1, .zst-group th.g2 { background: #f0f6ff; }
.miss { color: #b6bfcc; }
.zb {
  display: inline-block; width: 19px; height: 19px; line-height: 19px; border-radius: 50%;
  color: #fff; font-style: normal; font-weight: 700; position: relative; z-index: 3;
}
.zb.g0 { background: #3d8fd8; }
.zb.g1 { background: #e8565f; }
.zb.g2 { background: #f0930f; }
.zst.no-miss .miss { visibility: hidden; }
.zst.with-aux .aux-row td { border-bottom: 1px solid #9dbcd8; }
.zst-stat td { background: #f8fafd; color: #374151; }
.zst-stat .zst-statname { background: #f0f6ff !important; color: #2e7ce0; }

.zs-help { display: flex; border-top: 1px solid #f1f3f6; }
.zs-help-name { width: 130px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #4b5563; border-right: 1px solid #f4f6f8; }
.zs-help-body { padding: 14px 18px; color: #6b7280; font-size: 13px; }
.zs-help-body p { margin: 3px 0; }
.zs-note { color: #6b7280; font-size: 13px; }

/* ---------- 遗漏表 ---------- */
.omit-table { width: 100%; border-collapse: collapse; }
.omit-table th, .omit-table td { border: 1px solid #eef2f7; text-align: center; padding: 10px; }
.omit-table th { background: #f0f6ff; color: #2e7ce0; }
.omit-pos { background: #f8fafd; font-weight: 600; }
.omit-hot { background: #fdeeee; color: #e02020; font-weight: 700; }
.omit-cold { background: #eaf3fd; color: #2e7ce0; }

/* ---------- 工具页 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card { border: 1px solid #eceef1; border-radius: 10px; padding: 18px; display: block; transition: all .2s; }
.tool-card:hover { border-color: #2e7ce0; box-shadow: 0 6px 16px rgba(46, 124, 224, .12); transform: translateY(-2px); }
.tool-card b { display: block; color: #1f2937; margin-bottom: 6px; font-size: 15px; }
.tool-card:hover b { color: #2e7ce0; }
.tool-card span { color: #9ca3af; font-size: 12px; }

/* 截图中的彩种工具目录 */
.tools-lottery-nav { display: flex; margin-bottom: 16px; background: #ececec; border: 1px solid #e0e3e7; }
.tools-lottery-nav a { flex: 1; position: relative; padding: 12px 24px; text-align: center; font-size: 20px; border-right: 2px solid #fff; }
.tools-lottery-nav a:last-child { border-right: 0; }
.tools-lottery-nav a.on { color: #fff; background: #3897d2; }
.tools-lottery-nav a.on::after { content: ""; position: absolute; bottom: -8px; left: calc(50% - 8px); border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid #3897d2; }
.tools-directory { border: 1px solid #d9dee5; background: #fff; }
.tools-section { border-top: 3px solid #459ed5; scroll-margin-top: 16px; }
.tools-section summary { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fcfcfc; border-bottom: 1px solid #d9dee5; color: #293744; font-size: 20px; cursor: pointer; list-style: none; }
.tools-section summary::-webkit-details-marker { display: none; }
.tools-chevron { width: 16px; height: 16px; border: 2px solid #dce1e5; border-radius: 50%; position: relative; }
.tools-chevron::after { content: ""; position: absolute; top: 3px; left: 3px; width: 5px; height: 5px; border-right: 2px solid #c7cdd3; border-bottom: 2px solid #c7cdd3; transform: rotate(-45deg); }
.tools-section[open] .tools-chevron::after { top: 2px; transform: rotate(45deg); }
.tools-section-body { display: flex; align-items: center; gap: 32px; padding: 30px 24px 34px; background: #f5f8fa; }
.tools-section:nth-child(even) .tools-section-body { background: #fff; }
.tools-emblem { flex: 0 0 120px; display: block; }
.tools-menu { flex: 1; min-width: 0; }
.tools-menu-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 12px; }
.tools-menu-row:last-child { margin-bottom: 0; }
.tools-menu a { color: #4b5563; font-size: 16px; line-height: 1.8; white-space: nowrap; }
.tools-menu a:hover { color: #e02020; text-decoration: underline; }
.tools-menu a:focus-visible, .tools-section summary:focus-visible, .tools-lottery-nav a:focus-visible { outline: 2px solid #2e7ce0; outline-offset: 3px; }
.tool-placeholder-body { min-height: 360px; }
@media (max-width: 768px) {
  .tools-lottery-nav a { font-size: 17px; padding: 10px; }
  .tools-section { scroll-margin-top: 120px; }
  .tools-section summary { font-size: 18px; padding: 12px; }
  .tools-section-body { flex-direction: column; gap: 16px; align-items: stretch; padding: 18px 16px 22px; }
  .tools-emblem { width: 80px; height: 80px; flex-basis: auto; align-self: center; }
  .tools-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .tools-menu-row { display: contents; }
  .tools-menu a { font-size: 14px; padding: 7px 0; white-space: normal; }
  .tool-placeholder .panel-hd { flex-wrap: wrap; gap: 10px; }
}

/* ---------- 资讯 ---------- */
.row-news { display: flex; gap: 14px; align-items: flex-start; }
.news-main { flex: 1; min-width: 0; }
.pager { text-align: center; padding: 14px; color: #9ca3af; }
.pager a { color: #2e7ce0; margin: 0 12px; }

/* ---------- 文章页 ---------- */
.art-detail h1 { font-size: 24px; text-align: center; padding: 18px 0 8px; font-weight: 700; }
.art-meta { text-align: center; color: #9ca3af; font-size: 12px; border-bottom: 1px dashed #eceef1; padding-bottom: 14px; }
.art-meta a { color: #2e7ce0; }
.art-body { padding: 18px 10px; font-size: 15px; line-height: 1.9; color: #374151; }
.art-body p { margin-bottom: 12px; }
.art-body img { max-width: 100%; border-radius: 8px; }
.art-body table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 13px; }
.art-body table th, .art-body table td { border: 1px solid #eceef1; padding: 8px 10px; text-align: center; }
.art-body table th { background: #f8fafd; color: #4b5563; font-weight: 600; }
.art-body table tr:hover td { background: #fafbfd; }
.art-body ul { padding-left: 22px; margin-bottom: 12px; }
.art-body ul li { list-style: disc; margin: 4px 0; }
.art-tip { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 12px; padding: 10px 14px; border-radius: 8px; }

/* ---------- 登录注册 ---------- */
.auth-box { width: 400px; margin: 48px auto; }
.auth-form label { display: block; margin-bottom: 16px; color: #4b5563; }
.auth-form input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; margin-top: 5px; font: inherit; transition: border .15s; }
.auth-form input:focus { border-color: #e02020; outline: none; box-shadow: 0 0 0 3px rgba(224,32,32,.08); }
.btn-main { width: 100%; background: linear-gradient(135deg, #e02020, #c31432); color: #fff; border: none; padding: 11px; font-size: 16px; border-radius: 8px; cursor: pointer; }
.btn-main:hover { opacity: .92; }
.auth-tip { text-align: center; margin-top: 14px; color: #9ca3af; }
.auth-tip a { color: #e02020; }

html { -webkit-text-size-adjust: 100%; }

/* ---------- 页脚 ---------- */
.footer { background: #fff; border-top: 1px solid #eceef1; margin-top: 24px; }
.footer-cols { display: flex; padding: 30px 0 24px; }
.fcol { flex: 1; }
.fcol h4 { font-size: 15px; margin-bottom: 14px; color: #1f2937; }
.fcol a { display: block; color: #6b7280; padding: 4px 0; font-size: 13px; }
.fcol a:hover { color: #e02020; }
.copyright { border-top: 1px solid #f1f3f6; text-align: center; color: #9ca3af; font-size: 12px; padding: 16px 0; }

/* ==========================================================================
   响应式适配
   ========================================================================== */

/* ---------- 平板 / 窄屏：流式布局 ---------- */
@media (max-width: 1160px) {
  .wrap { width: 100%; max-width: 1120px; padding-left: 14px; padding-right: 14px; }
}

/* ---------- 手机端 ---------- */
@media (max-width: 768px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  body { font-size: 14px; }

  /* 顶栏：只保留核心入口 */
  /* 头部：logo 一行 + 通栏均分导航，吸顶 */
  .header { position: sticky; top: 0; z-index: 100; }
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 10px; }
  .logo { align-items: center; gap: 8px; order: 1; }
  .logo-txt { font-size: 24px; letter-spacing: 2px; }
  .logo-img { height: 34px; }
  .logo-sub { display: inline-block; font-size: 13px; }
  .fav-btn { padding: 3px 12px; font-size: 12px; order: 2; }
  .nav { margin-left: 0; width: 100%; height: 44px; margin-top: 8px; order: 3; }
  .nav li { flex: 1; }
  .nav li a { justify-content: center; padding: 0; font-size: 15px; }
  .nav li.on a::after { left: 25%; right: 25%; }

  .main { padding-top: 12px; }

  /* 首页三栏 -> 单列：先开奖/公告，再工具，最后导航 */
  .row3 { flex-direction: column; gap: 12px; }
  .col-left, .col-right { width: 100%; }
  .col-mid { order: 1; }
  .col-right { order: 2; }
  .col-left { order: 3; }
  .mid-grid { flex-direction: column; gap: 12px; }
  .mid-grid .panel { margin-bottom: 0; }
  .panel { margin-bottom: 12px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }

  /* 公告栏 */
  .notice-bar { padding: 9px 12px; margin-bottom: 12px; }
  .notice-item { margin-right: 40px; }

  /* 开奖表：隐藏日期列、压缩间距 */
  .kj-table:not(.kj-table-full) th:nth-child(2),
  .kj-table:not(.kj-table-full) td:nth-child(2) { display: none; }
  .kj-table td, .kj-table th { padding: 9px 4px; font-size: 13px; }
  .kj-balls { padding-left: 6px; }
  .ball { width: 24px; height: 24px; line-height: 24px; font-size: 13px; margin-right: 3px; }
  .kj-extra { display: block; margin-left: 0; margin-top: 2px; }
  .kj-table-full { min-width: 540px; }
  .panel { overflow-x: auto; }

  /* 频道板块 */
  .channel { margin-bottom: 12px; }
  .channel-hd { flex-wrap: nowrap; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .channel-hd::-webkit-scrollbar { display: none; }
  .channel-title { flex-shrink: 0; padding: 5px 14px; font-size: 13px; }
  .channel-links { white-space: nowrap; }
  .channel-bd { flex-direction: column; }
  .ch-left, .ch-mid, .ch-right { width: 100%; padding: 12px 14px; border-right: none; border-bottom: 1px solid #f4f6f8; }
  .ch-right { border-bottom: none; }
  .expert-img { max-width: 340px; }
  .lot-tab { padding: 9px 0; flex: 1; text-align: center; font-size: 15px; }
  .lot-tabs { gap: 8px; }
  .zimi-box { padding: 12px 14px 6px; }
  .zimi-hd { flex-direction: column; align-items: flex-start; }
  .zimi-links { margin-left: 0; }
  .zimi-list { grid-template-columns: 1fr; }

  /* 频道页（/3d/ /p3/） */
  .ch-subnav { padding: 10px 12px; line-height: 2; }
  .ch-subnav b { display: block; margin-bottom: 2px; }
  .ch-row { flex-direction: column; }
  .ch-side { width: 100%; }
  .cpanel-hd { flex-wrap: wrap; gap: 8px 14px; padding: 12px 14px; }
  .cpanel-tabs a { margin-right: 10px; padding-bottom: 12px; }
  .cpanel-more { margin-left: 0; width: 100%; }
  .cpanel-more a { margin-left: 0; margin-right: 12px; }
  .cpanel-bd { padding: 12px 14px; }
  .ch2col li { width: 100%; }
  .ch2col li em { margin-right: 0; }
  .sim-box { gap: 14px; }
  .sim-balls { gap: 8px; }
  .sim-ball { width: 40px; height: 40px; line-height: 40px; font-size: 20px; }
  .sim-btn { margin-left: 0; width: 100%; padding: 11px 0; }
  .arsenal a { width: 25%; min-width: 0; padding: 10px 0; }
  .arsenal i { font-size: 28px; margin-bottom: 5px; }

  /* 走势图 */
  .zs-tabs { overflow-x: auto; scrollbar-width: none; }
  .zs-tabs::-webkit-scrollbar { display: none; }
  .zs-tabs a { padding: 8px 20px; white-space: nowrap; flex-shrink: 0; }
  .zs-section-bd { padding: 6px 14px 14px; }
  .zs-linkrow a { margin: 4px 14px 4px 0; }
  .zs-subnav { padding: 9px 12px; }
  .zs-titlebar { flex-wrap: wrap; gap: 8px; }
  .zs-qsform { margin-left: 0; width: 100%; }
  .zs-wrap { -webkit-overflow-scrolling: touch; }
  .zs-help { flex-direction: column; }
  .zs-help-name { width: 100%; padding: 10px 0 0; border-right: none; }
  .zs-help-body { padding: 8px 14px 12px; }

  /* 遗漏表 / 工具 */
  .omit-table th, .omit-table td { padding: 8px 2px; font-size: 12px; }
  .tool-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card { padding: 14px 16px; }

  /* 资讯 / 文章页：两栏 -> 单列 */
  .row-news { flex-direction: column; align-items: stretch; }
  .row-news .news-main { flex: none; width: 100%; max-width: 100%; }
  .news-main .art-list-lg li { gap: 8px; }
  .news-main .art-list-lg li > a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.7;
    max-height: 3.4em;
  }
  .news-main .art-list-lg li > em { white-space: nowrap; }

  /* 文章页 */
  .art-detail h1 { font-size: 19px; padding: 12px 0 8px; }
  .art-ad a { font-size: 26px; }
  .art-body { padding: 14px 2px; font-size: 15px; }
  .art-body table th, .art-body table td { padding: 8px 4px; }
  /* 开奖一览第三列：表头和三个号码均保持单行。 */
  .art-body table th:nth-child(3), .art-body table td:nth-child(3) { white-space: nowrap; }
  .art-list li { padding: 9px 0; }
  .art-list-lg li { padding: 10px 0; font-size: 14px; }

  /* 登录注册 */
  .auth-box { width: 100%; max-width: 400px; margin: 24px auto; padding: 0 4px; }

  /* 页脚：紧凑单列，每组标题+链接同行 */
  .footer { margin-top: 14px; }
  .footer-cols { display: block; padding: 12px 0 8px; }
  .fcol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; padding: 5px 0; }
  .fcol h4 { font-size: 13px; margin: 0; color: #9ca3af; font-weight: 600; flex-shrink: 0; }
  .fcol h4::after { content: "："; }
  .fcol a { display: inline; padding: 2px 0; font-size: 13px; }
  .copyright { padding: 12px 16px; font-size: 12px; line-height: 1.8; }
}

/* ---------- 小屏手机 ---------- */
@media (max-width: 390px) {
  .logo-txt { font-size: 21px; }
  .nav li a { font-size: 14px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ball { width: 22px; height: 22px; line-height: 22px; font-size: 12px; }
  .kj-table td, .kj-table th { padding: 8px 3px; font-size: 12px; }
}

/* 文档调整：信息页、规则和精简页脚 */
.footer-links { display: flex; justify-content: center; gap: 32px; padding: 22px 12px; }
.company-banner { background: linear-gradient(120deg, #e0f2fe, #bfdbfe); border-bottom: 3px solid #2e7ce0; padding: 42px 36px; margin-bottom: 18px; color: #176193; }
.company-banner strong { display: block; font-size: 34px; letter-spacing: 6px; }
.company-banner span { display: block; margin-top: 8px; }
.company-layout { display: flex; gap: 18px; align-items: flex-start; }
.company-nav { width: 220px; flex-shrink: 0; }
.company-nav a { display: block; padding: 16px 22px; border-bottom: 1px solid #eceef1; }
.company-nav a.on { background: #eff6ff; color: #2e7ce0; font-weight: 600; }
.company-content { flex: 1; min-width: 0; min-height: 320px; }
.company-content p { margin-bottom: 16px; }
.page-copy { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 2; }
.rules-content { max-width: 880px; line-height: 2; padding: 24px; }
.rules-content h3 { margin-top: 20px; }
.rule-source { color: #2e7ce0; text-decoration: underline; }
@media (max-width: 768px) {
  .company-layout { flex-direction: column; gap: 0; }
  .company-nav { width: 100%; display: flex; flex-wrap: wrap; }
  .company-nav .panel-hd { width: 100%; }
  .company-nav a { flex: 1; text-align: center; padding: 12px 6px; }
  .company-content { width: 100%; }
  .company-banner { padding: 24px 16px; }
  .company-banner strong { font-size: 24px; letter-spacing: 2px; }
  .footer-links { gap: 24px; }
}
