:root {
  --brand: #459ADD;
  --brand-deep: #2f7fc4;
  --brand-soft: #eaf4fc;
  --bg: #f2f2f2;
  --card: #ffffff;
  --ink: #333333;
  --muted: #999999;
  --line: #eeeeee;
  --live: #ff4d4f;
  --wait: #459ADD;
  --done: #b0b8c0;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
* { box-sizing: border-box; }
html {
  background: #f2f2f2 url("/static/img/deco/jrs_sy_png.png") top center / 100% auto no-repeat;
}
html, body { margin: 0; padding: 0; }
body {
  background: transparent;
  color: var(--ink);
  font: 14px/1.6 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
.wrap { width: min(1200px, calc(100% - 20px)); margin: 0 auto; }

/* ===== Header ===== */
.top {
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(69, 154, 221, 0.35);
}
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .5px;
}
.logo img {
  width: auto;
  height: 34px;
  max-width: 120px;
  border-radius: 4px;
  background: transparent;
  object-fit: contain;
}
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
}
.nav a.on,
.nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}
.nav-btn {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  background: rgba(255,255,255,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center/20px no-repeat;
  color: transparent;
  overflow: hidden;
}

.league-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.leagues {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 2px;
  scrollbar-width: none;
}
.leagues::-webkit-scrollbar { display: none; }
.leagues a {
  flex: 1 0 auto;
  min-width: 56px;
  color: #333;
  text-align: center;
  padding: 14px 10px;
  font-size: 14px;
  font-weight: 700;
  position: relative;
}
.leagues a span { display: block; }
.leagues a:hover { color: var(--brand); }
.leagues a:hover::after,
.leagues a.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid var(--brand);
}

main { padding: 16px 0 36px; }
.intro {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.intro h1 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
  color: #1f1f1f;
}
.intro p {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.85;
  text-align: justify;
  word-break: break-word;
}
.crumb {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.crumb a { color: var(--muted); }

/* ===== Section ribbon ===== */
.sec-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: url("/static/img/deco/img_title.png") left center / auto 100% no-repeat, linear-gradient(90deg, var(--brand) 0%, #5aaeeb 100%);
  color: #fff;
  padding: 7px 28px 7px 14px;
  margin: 6px 0 12px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  box-shadow: 2px 2px 0 rgba(47, 127, 196, 0.25);
}
.sec-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
}
.sec-head img { width: 16px; height: 16px; }

.date-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f7f7;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
  color: #666;
  font-size: 13px;
  font-weight: 600;
}
.date-bar::before {
  content: "";
  width: 10px;
  height: 16px;
  background: var(--brand);
  transform: skewX(-18deg);
  border-radius: 1px;
}
.date-bar em { font-style: normal; color: var(--brand); margin-left: 4px; }

/* ===== Hot cards ===== */
.hot-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 12px 10px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  position: relative;
}
.hot-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hot-rail::-webkit-scrollbar { height: 3px; }
.hot-rail::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }
.hot-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  border: 1px solid #cfe6f8;
  border-radius: 8px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
  min-height: 156px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.hot-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(69, 154, 221, 0.16);
  color: var(--ink);
}
.hot-league {
  align-self: flex-start;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.hot-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex: 1;
}
.ht {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  flex: 1;
  line-height: 1.25;
  min-width: 0;
}
.ht .team-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.ht img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.hot-vs {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 4px 10px rgba(69, 154, 221, 0.35);
}
.hot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 700;
}

/* ===== Match list ===== */
.sheet {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.match {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.match:last-child { border-bottom: 0; }
.match:hover { background: #fafcfe; }
.match-time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.match-time .clock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}
.match-time .clock img { width: 16px; height: 16px; }
.match-date {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.league-tag {
  color: #999;
  font-size: 12px;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-width: 0;
}
.side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.side.home { justify-content: flex-end; text-align: right; }
.side.home { flex-direction: row; }
.side.away { flex-direction: row; }
.side img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}
.side a,
.side strong {
  color: #333;
  font-weight: 700;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side a:hover { color: var(--brand); }
.mid { text-align: center; }
.mid .vs {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #333;
}
.mid .state {
  display: none;
}
.live-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  justify-self: end;
}
.live-btn.live { background: var(--live); }
.live-btn.done { background: var(--done); }
.live-btn:hover { filter: brightness(1.05); color: #fff !important; }
.signals {
  display: none;
}
.match.detail {
  display: block;
  padding: 20px 16px;
  border: 0;
}
.match.detail .match-body {
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  margin: 10px 0;
}
.match.detail .side {
  flex-direction: column;
  text-align: center;
  justify-content: center;
  gap: 8px;
}
.match.detail .side img { width: 56px; height: 56px; }
.match.detail .side a,
.match.detail .side strong {
  white-space: normal;
  font-size: 15px;
}
.match.detail .mid .vs { font-size: 22px; }
.match.detail .mid .state {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  color: #fff;
  background: var(--brand);
}
.match.detail .mid .state.live { background: var(--live); }
.match.detail .mid .state.done { background: var(--done); }
.match.detail .signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.sig {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}
.sig:hover { background: var(--brand); color: #fff; }

/* ===== News / video ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.news-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.news-item:last-child { border-bottom: 0; }
.news-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  background: #f0f0f0;
}
.news-item h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.4; }
.news-item h3 a { color: #333; }
.news-item h3 a:hover { color: var(--brand); }
.news-item p {
  margin: 0;
  color: #999;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item time { color: #bbb; font-size: 12px; }
.replay {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.replay li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.replay li:last-child { border-bottom: 0; }
.replay a { color: #333; font-weight: 600; }
.replay a:hover { color: var(--brand); }
.replay span { color: #999; white-space: nowrap; font-size: 12px; }
.more { margin: 12px 0 0; text-align: center; }
.more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
}
.more a:hover { background: var(--brand-deep); color: #fff; }

.panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #1f1f1f;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
}
.panel p { margin: 0 0 8px; color: #666; font-size: 13px; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #333;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--brand);
  font-weight: 800;
}
.faq details[open] summary::before { content: "–"; }
.faq details p { margin: 8px 0 0 18px; }

.article .lead,
.article .body {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.article .body { margin-top: 12px; line-height: 1.8; }
.article .body img { display: block; max-width: 100%; margin: 10px auto; }
.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.meta div {
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}
.meta dt { color: var(--muted); font-size: 12px; }
.meta dd { margin: 0; word-break: break-all; font-weight: 700; }
.near { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.lines { padding-left: 18px; }
.empty {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow);
}
.pager {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
.pager a {
  background: var(--brand);
  color: #fff;
  padding: 7px 14px;
  border-radius: 4px;
  font-weight: 700;
}
.pager a:hover { background: var(--brand-deep); color: #fff; }

.foot {
  background: #333;
  color: #bbb;
  padding: 24px 0 28px;
  margin-top: 10px;
}
.foot-brand {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.foot-desc { margin: 0 0 10px; max-width: 900px; font-size: 13px; line-height: 1.7; }
.fine { color: #888; font-size: 12px; margin: 6px 0 0; }

.block { margin-bottom: 16px; }

@media (max-width: 780px) {
  .nav-btn { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--brand);
    flex-direction: column;
    padding: 8px 12px 14px;
    z-index: 60;
    box-shadow: 0 8px 16px rgba(0,0,0,.15);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; background: rgba(0,0,0,.08); }
  .intro h1 { font-size: 18px; }
  .match {
    grid-template-columns: 64px minmax(0, 1fr) 72px;
    padding: 10px 10px;
  }
  .match-body { grid-template-columns: minmax(0,1fr) 36px minmax(0,1fr); }
  .side img { width: 22px; height: 22px; }
  .side a, .side strong { font-size: 12px; }
  .live-btn { min-width: 64px; min-height: 28px; font-size: 12px; padding: 0 8px; }
  .hot-card { flex-basis: 200px; }
  .news-item { grid-template-columns: 96px minmax(0,1fr); }
  .news-item img { width: 96px; height: 68px; }
  .meta { grid-template-columns: 1fr; }
  .replay li { flex-direction: column; gap: 4px; }
  .replay span { white-space: normal; }
  .leagues a { min-width: 64px; padding: 8px 4px; font-size: 12px; }
}
