:root {
  --blue: #459add;
  --blue-dark: #3e8ac6;
  --ink: #333;
  --muted: #888;
  --line: #eee;
  --live: #e02020;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f5f7fb url("/static/icon/page-bg.png") center top no-repeat;
  background-size: 100% auto;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.6;
}
a { color: var(--blue-dark); text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1200px, calc(100% - 24px)); margin: 0 auto; }
.topbar { background: var(--blue); }
.topbar-inner { display: flex; align-items: center; min-height: 72px; gap: 12px; }
.brand { display: flex; align-items: center; margin-right: 28px; }
.brand img { height: 52px; width: auto; display: block; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  color: #fff;
  font-size: 18px;
  padding: 8px 16px;
  position: relative;
}
.main-nav a.on { font-weight: 700; }
.main-nav a.on::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  border-bottom: 3px solid #fff;
}
.subbar { background: #fff; box-shadow: 0 1px 0 #ececec; }
.league-nav { display: flex; gap: 4px 8px; overflow-x: auto; padding: 12px 0; }
.league-nav a { color: #333; font-size: 15px; padding: 4px 10px; white-space: nowrap; }
.league-nav a.on { font-weight: 700; color: var(--blue); }
main { padding: 16px 0 48px; }
h1 { font-size: 26px; line-height: 1.3; margin: 8px 0 10px; }
h2 { font-size: 18px; margin: 0; }
.home-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.lead { color: #666; margin: 0 0 12px; font-size: 14px; }
.crumb { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.crumb a { color: var(--blue); }
.hot-box { margin-bottom: 18px; }
.hot-head {
  background: var(--blue);
  color: #fff;
  border-radius: 8px 8px 0 0;
  padding: 12px 16px;
}
.hot-head h2 { font-size: 17px; }
.hot-scroller {
  background: #fff;
  border: 1px solid #e7eef5;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow-x: auto;
  padding: 12px;
}
.hot-list { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.hot-card {
  flex: 0 0 242px;
  width: 242px;
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(4, 8, 10, .08);
}
.hot-league {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  font-weight: 700;
  color: #000;
}
.hot-league a { color: inherit; }
.hot-teams {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  min-height: 92px;
  padding: 12px 8px;
  color: #222;
}
.hot-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.hot-side i {
  font-style: normal;
  font-size: 14px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-side img { width: 28px; height: 28px; object-fit: contain; }
.hot-score {
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  background: #f3f4f6;
  color: #7a7a7a;
}
.hot-score.start { background: #fff0f0; color: var(--live); }
.hot-score.end { background: #f2f2f2; color: #444; }
.hot-status { height: 34px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.hot-status.wait { background: #fff7e8; color: #a66b00; }
.hot-status.start { background: #ff3b30; color: #fff; }
.hot-status.end { background: #f4f5f7; color: #666; }
.board, .panel {
  background: #fff;
  border-radius: 10px;
  margin-top: 16px;
  overflow: hidden;
}
.board-head, .panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 0;
  border-bottom: 1px solid #eee;
}
.ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 36px 0 14px;
  margin: 0;
  color: #fff;
  background: var(--blue);
  clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
  border-radius: 6px 0 0 0;
  white-space: nowrap;
}
.ribbon img { width: 22px; height: 22px; }
.sport-tabs { display: flex; gap: 18px; padding: 0 12px 8px; }
.sport-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 16px;
  padding: 6px 2px;
  cursor: pointer;
  white-space: nowrap;
}
.sport-tabs button.on { font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); }
.tab-panel { display: none; }
.tab-panel.on { display: block; }
.zb-list { list-style: none; margin: 0; padding: 0; background: #fff; }
.zb-date {
  color: var(--blue);
  font-size: 16px;
  padding: 14px 16px 6px;
  list-style: none;
}
.zb-date::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-right: 8px;
  background: var(--blue);
  transform: skewX(-25deg);
  vertical-align: -2px;
}
.zb-date em { font-style: normal; }
.zb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border-top: 1px solid #eee;
}
.qiu { width: 18px; height: 18px; flex: none; }
.zb-time { width: 52px; flex: none; color: #333; }
.zb-league { width: 92px; flex: none; font-size: 13px; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zb-league a { color: #666; }
.zb-teams { flex: 1; display: flex; align-items: center; min-width: 0; }
.side { display: flex; align-items: center; gap: 8px; width: 168px; min-width: 0; }
.side.home { justify-content: flex-end; }
.side i {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zb-teams img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.zb-score { width: 92px; text-align: center; font-weight: 700; flex: none; }
.zb-score span { margin: 0 4px; color: #999; font-weight: 400; font-size: 12px; }
.status-live .zb-score { color: var(--live); }
.zb-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 108px;
  height: 32px;
  border-radius: 5px;
  background: #bbb;
  color: #fff;
  flex: none;
}
.zb-btn.start, .zb-btn.wait { background: var(--blue); }
.zb-btn.start:hover, .zb-btn.wait:hover { background: var(--blue-dark); }
.zb-btn img { width: 16px; height: 16px; margin: 0; }
.zb-btn span { font-size: 14px; color: #fff; }
.more-link { display: block; text-align: right; padding: 10px 14px 14px; }
.date-nav, .pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.date-nav a, .pager a, .pager span {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  padding: 4px 12px;
  color: #333;
}
.date-nav a.on, .pager span { background: var(--blue); color: #fff; border-color: var(--blue); }
.panel { padding-bottom: 8px; }
.panel-head { align-items: center; }
.panel-head a { color: var(--blue); font-size: 14px; padding-bottom: 8px; }
.text-list, .play-list, .news-list { list-style: none; padding: 8px 12px 12px; margin: 0; }
.text-list li, .play-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #f2f2f2;
}
.news-list li { border-bottom: 1px solid #f2f2f2; }
.news-list a { display: flex; gap: 12px; padding: 10px 4px; color: inherit; }
.news-list img { width: 140px; height: 90px; object-fit: cover; border-radius: 4px; flex: none; background: #f3f5f7; }
.news-list span { display: flex; flex-direction: column; gap: 4px; }
.news-list strong { color: #222; }
.news-list em, .news-list small { color: var(--muted); font-style: normal; font-size: 13px; }
.tag { font-size: 12px; color: var(--blue); background: #eef6fc; border-radius: 999px; padding: 2px 8px; }
.empty { color: var(--muted); padding: 16px; }
.detail-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #e7eef5;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
}
.detail-board img { width: 48px; height: 48px; object-fit: contain; }
.detail-board b { display: block; font-size: 32px; }
.vs { color: #999; font-weight: 700; }
.signal { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 8px; }
.signal .line {
  display: inline-block;
  appearance: none;
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
}
.signal .line:hover { background: var(--blue-dark); }
.hint { color: var(--muted); font-size: 13px; }
.signal-box { padding: 12px 16px 16px; }
.signal-box .ribbon { margin-bottom: 12px; }
.article {
  background: #fff;
  border-radius: 10px;
  padding: 8px 18px 18px;
}
.article .meta { color: var(--muted); }
.article .cover img { width: min(100%, 680px); border-radius: 6px; }
.content p { margin: 0 0 12px; }
.site-footer { background: #333; color: #777; padding: 18px 0 22px; font-size: 12px; text-align: center; }
.site-footer a { color: #777; margin: 0 8px; }
.site-footer p { margin: 6px 0; }
@media (max-width: 800px) {
  .brand { margin-right: 0; }
  .brand img { height: 42px; }
  .main-nav a { font-size: 15px; padding: 6px 8px; }
  .topbar-inner { flex-wrap: wrap; padding: 8px 0; }
  .hot-card { flex-basis: 78vw; width: 78vw; }
  .board-head { flex-wrap: wrap; }
  .zb-row { flex-wrap: wrap; }
  .zb-league { width: auto; flex: 1; }
  .zb-teams { flex: 1 0 100%; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 6px 8px; align-items: center; }
  .side { width: auto; }
  .zb-btn { grid-column: 1 / -1; justify-self: end; margin-left: 0; }
  .news-list img { width: 108px; height: 72px; }
}
