:root {
  --purple: #8354b4;
  --red: #ef4031;
  --ink: #222;
  --muted: #9a9a9a;
  --line: #f2f2f2;
  --bg: #f2f2f2;
  --card: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.skip { position: absolute; left: 12px; top: -40px; background: #fff; padding: 6px 10px; }
.skip:focus { top: 8px; }
.wrap { width: min(1200px, calc(100% - 24px)); margin: 0 auto; }
.top { position: sticky; top: 0; z-index: 20; height: 64px; background: #fff; box-shadow: 0 1px 0 #eee; }
.top-bar { display: flex; align-items: center; height: 64px; gap: 8px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: #333; margin-right: 12px; }
.menu { display: flex; align-items: stretch; height: 64px; margin-left: 8px; }
.menu > a, .has-sub > a {
  display: flex; align-items: center; height: 64px; padding: 0 16px; color: #444; font-size: 16px;
}
.menu > a.on, .has-sub > a.on, .menu > a:hover, .has-sub:hover > a { background: var(--purple); color: #fff; }
.has-sub { position: relative; }
.has-sub ul {
  display: none; position: absolute; top: 64px; left: 0; min-width: 100%; margin: 0; padding: 0;
  list-style: none; background: #45464c; z-index: 30;
}
.has-sub li a { display: block; line-height: 36px; padding: 0 12px; color: #fff; font-size: 14px; text-align: center; }
.has-sub li a:hover { background: var(--purple); }
.has-sub:hover ul, .has-sub:focus-within ul { display: block; }
.nav-toggle, .nav-btn { display: none; }
main { padding: 16px 0 40px; }
.panel, .block {
  background: var(--card); border-radius: 2px; padding: 16px 18px 10px; margin-top: 14px;
}
.section-tit, .hd {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid #f6f7f7; margin: 8px 0 12px;
}
.section-tit .name h1, .section-tit .name h2, .hd h1, .hd h2, .subhead {
  margin: 0; font-size: 16px; font-weight: 600; color: #000;
}
.section-tit .name span, .hd h1, .hd h2, .subhead {
  display: inline-block; border-bottom: 2px solid var(--purple); padding-bottom: 10px; line-height: 1;
}
.section-tit .name em { color: #cacaca; font-style: normal; font-size: 14px; font-weight: 600; padding-left: 7px; }
.hd a, .more a, .section-tit .more { color: var(--purple); font-size: 12px; }
.intro { color: #666; margin: 8px 0 12px; font-size: 14px; }
.intro p { margin: 0 0 12px; line-height: 1.8; }
.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0 18px; }
.tbox {
  display: block; background: #fff; border-radius: 8px; box-shadow: 0 0 15px #ddd;
  padding: 12px 12px 8px; color: #333;
}
.tbox:hover { box-shadow: 0 0 10px #ef4031; }
.tline { display: flex; align-items: center; gap: 8px; height: 34px; }
.tline img { width: 26px; height: 26px; object-fit: contain; }
.tline span { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tline b { flex: 0 0 auto; font-weight: 400; color: #999; font-size: 13px; }
.tmeta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 14px; }
.tmeta span { color: #666; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pills a, .dates a {
  display: inline-block; min-width: 64px; text-align: center; line-height: 28px; padding: 0 12px;
  border-radius: 15px; border: 1px solid #e7e7e7; background: #fff; color: #000; font-size: 14px;
}
.pills a.on, .dates a.on { background: var(--purple); color: #fff; border-color: var(--purple); }
.daytag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; margin: 8px 0 4px -18px;
  padding: 0 14px 0 18px; background: #f2f2f2; border-radius: 0 15px 15px 0; font-size: 12px; font-weight: 600;
}
.split { display: grid; grid-template-columns: 1fr; gap: 14px; }
.dates { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mlist { display: flex; flex-direction: column; }
.mrow {
  display: grid; grid-template-columns: 108px minmax(0, 1fr) 84px; gap: 8px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid #f2f2f2; font-size: 15px;
}
.mmeta { display: flex; flex-direction: column; line-height: 1.3; }
.mmeta time { font-weight: 600; }
.mmeta em { color: #9a9a9a; margin-left: 8px; font-size: 14px; font-weight: 400; font-style: normal; }
.mleague { color: #9a9a9a; font-size: 14px; }
.mteams {
  display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); align-items: center; min-width: 0;
}
.side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.side.home { flex-direction: row-reverse; }
.side.away { justify-content: flex-start; }
.side em { font-style: normal; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side.home em { text-align: right; }
.logo { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; background: transparent; border: 0; }
.score { text-align: center; font-weight: 600; font-size: 16px; }
.score.vs { letter-spacing: 0; color: #222; }
.score i { font-style: normal; padding: 0 6px; color: #222; }
.mstat {
  justify-self: end; width: 84px; line-height: 28px; border-radius: 14px; text-align: center; font-size: 14px;
  background: #ebf1ef; color: #000;
}
.mstat.live { background: var(--red); color: #fff; }
.mstat.done { background: var(--purple); color: #fff; }
.mstat.wait { background: #ebf1ef; color: #000; }
.vitem, .nitem { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f6f7f7; }
.vitem strong, .nitem strong { display: block; color: #000; font-size: 14px; font-weight: 400; }
.vitem:hover strong, .nitem:hover strong { color: var(--purple); }
.vitem em, .nitem em, .nitem i { display: block; color: #a3a3a3; font-style: normal; font-size: 12px; }
.nitem img { width: 92px; height: 64px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.news-page .nitem img { width: 120px; height: 80px; }
.empty, .more { color: #999; font-size: 14px; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 0; }
.pager a, .pager span { min-width: 26px; height: 24px; line-height: 24px; text-align: center; border: 1px solid #dcdcdc; color: #949494; padding: 0 6px; }
.pager .on { background: #dd4d30; border-color: #dd4d30; color: #fff; }
.crumb { font-size: 14px; color: #949494; margin-bottom: 8px; }
.crumb a { color: #949494; }
.crumb a:hover { color: var(--purple); }
.crumb span::before, .crumb a + a::before, .crumb a + span::before { content: " / "; }
.board {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center;
  min-height: 160px; padding: 22px 12px; margin-bottom: 16px; background: var(--purple); color: #fff;
}
.bteam { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.bteam strong { font-size: 16px; font-weight: 400; }
.bteam .logo { width: 72px; height: 72px; background: transparent; }
.bmid { text-align: center; }
.bmid .mleague { color: #fff; background: transparent; font-size: 14px; }
.bscore { margin: 4px 0; font-size: 36px; font-weight: 600; }
.bmid time { display: block; color: #fff; font-size: 14px; }
.board .mstat { justify-self: center; margin-top: 8px; background: rgba(255,255,255,.18); color: #fff; }
.article h1 { margin: 8px 0; font-size: 22px; line-height: 1.4; }
.meta { color: #8d8d8d; margin-top: 0; font-size: 14px; }
.meta a { color: var(--purple); }
.cover { width: 100%; max-height: 420px; object-fit: cover; margin: 8px 0 16px; }
.content p { margin: 0 0 14px; font-size: 16px; color: #333; }
.lines { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.lines a, .btn { background: var(--purple); color: #fff; border-radius: 14px; padding: 6px 18px; line-height: 28px; }
.lines a:hover, .btn:hover { background: #6d4298; }
.empty-page { padding: 28px 18px 32px; }
.faq-item { border-bottom: 1px solid #f2f2f2; }
.faq-item summary {
  position: relative; cursor: pointer; list-style: none; padding: 14px 28px 14px 0;
  font-size: 15px; font-weight: 600; color: #222;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 18px; width: 8px; height: 8px;
  border-right: 2px solid var(--purple); border-bottom: 2px solid var(--purple);
  transform: rotate(45deg);
}
.faq-item[open] summary::after { transform: rotate(225deg); top: 22px; }
.faq-item p { margin: 0 0 14px; color: #666; font-size: 14px; }
.foot { background: #3a3d44; color: #9f9f9f; margin-top: 16px; padding: 16px 0; }
.copy { font-size: 13px; color: #9f9f9f; }
@media (min-width: 900px) {
  .tgrid { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.15fr .85fr; }
}
@media (max-width: 860px) {
  .nav-btn { display: flex; margin-left: auto; align-items: center; }
  .nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 64px; height: auto;
    background: #fff; flex-direction: column; align-items: stretch; box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .nav-toggle:checked ~ .menu { display: flex; }
  .menu > a, .has-sub > a { height: 44px; }
  .has-sub ul { position: static; display: flex; flex-wrap: wrap; background: #f7f7f7; }
  .has-sub li a { color: #444; }
  .has-sub:hover > a { background: transparent; color: #444; }
  .menu > a.on, .has-sub > a.on { background: var(--purple); color: #fff; }
  .mrow { grid-template-columns: 52px minmax(0, 1fr) 48px; gap: 4px; font-size: 13px; padding: 10px 0; }
  .mmeta time { font-size: 13px; }
  .mleague { font-size: 11px; }
  .mteams { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
  .logo { width: 20px; height: 20px; }
  .score { font-size: 13px; }
  .score i { padding: 0 2px; }
  .side { gap: 3px; }
  .side em { font-size: 12px; }
  .mstat { width: 48px; font-size: 11px; line-height: 24px; }
  .mmeta em { display: block; margin-left: 0; font-size: 11px; }
  .daytag { margin-left: -18px; }
  .bteam .logo { width: 52px; height: 52px; }
  .bscore { font-size: 26px; }
}
