:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #182132;
  --muted: #5a6475;
  --line: #d9deea;
  --accent: #0057b8;
  --accent-soft: #e8f0ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, #eef4ff 0, transparent 35%),
    radial-gradient(circle at 90% 100%, #ecf6f2 0, transparent 40%), var(--bg);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  margin: 8px 0;
  color: var(--muted);
  word-break: break-all;
}

.panel {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 18px;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.hidden {
  display: none;
}

.wx-tip {
  border-color: #ffd27d;
  background: #fff9ec;
}

.wx-tip p {
  margin: 0;
  color: #745206;
}

.notice p {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid #d98a00;
  background: #fff8e8;
  color: #745206;
  border-radius: 8px;
}

.notice ol {
  margin-top: 10px;
}

ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.league-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.league-link {
  display: inline-block;
  border: 1px solid #bfd1ef;
  border-radius: 999px;
  background: #f6f9ff;
  color: #274878;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.league-link.active {
  border-color: #6c93d8;
  background: #e3eeff;
  color: #0e3e80;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  color: #293246;
  background: #f4f7fd;
}

td {
  color: var(--muted);
}

.sub-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.sub-links .primary {
  display: inline-block;
  font-weight: 600;
}

.sub-links .secondary {
  display: inline-block;
  font-size: 13px;
  color: #4f76a9;
}

.copy-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: #4f76a9;
  cursor: pointer;
  font: inherit;
}

.copy-btn:disabled {
  opacity: 0.8;
  cursor: default;
}

.sub-links .secondary::before {
  content: "";
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .container {
    padding-top: 24px;
  }

  .table-wrap {
    overflow-x: hidden !important;
  }

  table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
  }

  th:nth-child(1),
  td:nth-child(1) {
    width: 30%;
    white-space: nowrap;
  }

  th:nth-child(2),
  td:nth-child(2),
  th:nth-child(3),
  td:nth-child(3) {
    width: 35%;
  }

  th,
  td {
    padding: 8px 4px;
  }

  .sub-links {
    gap: 6px;
    white-space: normal;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 28px;
  }
}
