:root {
  color-scheme: light;
  --bg-1: #ecf4ff;
  --bg-2: #f7fbff;
  --bg-3: #eefaf8;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(0, 113, 227, 0.22);
  --text: #0b1220;
  --muted: #4b5b70;
  --accent: #0071e3;
  --accent-2: #06b6d4;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --shadow-1: 0 18px 46px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 8px 20px rgba(15, 23, 42, 0.06);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --code-bg: #0a1325;
  --code-head: #101c34;
  --code-text: #dce8ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1000px 460px at -12% -4%, rgba(0, 113, 227, 0.14), transparent 68%),
    radial-gradient(760px 420px at 108% -2%, rgba(6, 182, 212, 0.14), transparent 66%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 52%, var(--bg-3) 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(72px);
}

body::before {
  left: -140px;
  top: 22vh;
  background: rgba(0, 113, 227, 0.16);
}

body::after {
  right: -120px;
  top: 12vh;
  background: rgba(34, 211, 238, 0.14);
}

main,
.page {
  position: relative;
  z-index: 1;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 18px 64px;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 18px 56px;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

.top,
.card,
.hero,
.section,
.box,
.meta-card,
.board,
.status,
.podium-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), var(--surface));
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.top,
.card,
.hero,
.section,
.board,
.meta-card,
.status {
  animation: card-rise 420ms ease both;
}

.top,
.hero,
.section,
.card,
.board,
.status,
.meta-card,
.podium-card,
.box {
  position: relative;
  overflow: hidden;
}

.top::after,
.hero::after,
.section::after,
.card::after,
.board::after,
.meta-card::after,
.podium-card::after,
.box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
}

.top,
.hero,
.section,
.card,
.board,
.status {
  padding: 24px;
}

.top,
.hero,
.section,
.card,
.status {
  margin-top: 16px;
}

.top:first-child,
.hero:first-child,
.section:first-child,
.card:first-child,
.status:first-child {
  margin-top: 0;
}

.top h1,
.hero h1,
h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 56px);
}

p,
li,
.section-lead,
.note,
.footer,
small,
.meta-label,
.podium-meta {
  color: var(--muted);
  line-height: 1.78;
}

.footer {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
}

.topbar,
.nav,
.top-links,
.tabs,
.subtabs,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.topbar,
.nav,
.hero-actions {
  margin-top: 14px;
}

.topbar {
  margin-top: 0;
  justify-content: space-between;
  margin-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1d4a7f;
  text-transform: uppercase;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.nav a,
.top-links a,
.tab,
.subtab,
.btn,
.copy,
.copy-btn {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f213d;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 220ms ease;
}

.nav a:hover,
.top-links a:hover,
.tab:hover,
.subtab:hover,
.btn:hover,
.copy:hover,
.copy-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 999px;
  border-color: rgba(0, 113, 227, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: #0f4d95;
  font-weight: 600;
  line-height: 1;
}

.support-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: none;
}

.tab.active,
.subtab.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #2398ff);
  box-shadow: 0 10px 22px rgba(0, 113, 227, 0.28);
}

.btn-solid {
  background: #ffffff;
  color: #0b4a92;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #eef6ff;
  background: rgba(255, 255, 255, 0.12);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-2);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.entry-card strong {
  display: block;
  font-size: 19px;
  line-height: 1.3;
}

.entry-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.arrow {
  flex: none;
  color: var(--accent);
  font-size: 24px;
}

.note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.two-col,
.layout,
.meta,
.podium {
  display: grid;
  gap: 14px;
}

.two-col,
.layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 24px;
}

.box {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.meta-card {
  padding: 20px;
}

.meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-value {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #11284c;
}

.code {
  margin-top: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(130, 146, 181, 0.36);
  background: var(--code-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.codehead,
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: #c7d6f7;
  background: linear-gradient(180deg, rgba(33, 51, 84, 0.96), var(--code-head));
  border-bottom: 1px solid rgba(130, 146, 181, 0.26);
}

.codehead .copy,
.codehead .copy-btn,
.code-head .copy,
.code-head .copy-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #eaf1ff;
  border-color: rgba(255, 255, 255, 0.24);
}

.codehead .copy:hover,
.codehead .copy-btn:hover,
.code-head .copy:hover,
.code-head .copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: none;
}

pre {
  margin: 0;
  padding: 15px 18px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

pre code {
  color: var(--code-text);
  font-size: 13px;
  line-height: 1.75;
}

.tip {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 113, 227, 0.18);
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0.76));
  color: #294362;
}

.tip strong {
  display: block;
  margin-bottom: 4px;
  color: #12345d;
}

ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.tabs,
.subtabs {
  margin: 14px 0 10px;
}

.panel,
.subpanel {
  display: none;
}

.panel.active,
.subpanel.active {
  display: block;
}

.hero {
  margin-top: 0;
  padding: 28px;
  background:
    radial-gradient(400px 180px at 10% -8%, rgba(255, 255, 255, 0.58), transparent 64%),
    radial-gradient(280px 160px at 96% 0, rgba(6, 182, 212, 0.22), transparent 70%),
    linear-gradient(130deg, rgba(0, 113, 227, 0.88), rgba(17, 195, 210, 0.8));
  color: #f3f9ff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 24px 70px rgba(0, 77, 166, 0.26);
}

.hero p,
.hero .note,
.hero small {
  color: rgba(240, 248, 255, 0.9);
}

.hero .entry-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 54, 104, 0.2);
}

.hero .entry-card strong {
  color: #102f5a;
  font-weight: 700;
}

.hero .entry-card span {
  color: #4f647f;
}

.hero .entry-card .arrow {
  color: #1e6bd6;
}

.hero .entry-card:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(16, 54, 104, 0.32);
}

.support-page {
  max-width: 920px;
}

.support-hero {
  margin-top: 0;
}

.support-card {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.support-qr-frame {
  width: min(320px, 82vw);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.support-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.support-tips {
  margin-top: 16px;
  text-align: center;
}

.support-tips p {
  margin: 6px 0;
  color: #4d6078;
}

.section {
  margin-top: 18px;
}

.podium-wrap {
  margin-top: 24px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.board h2 {
  margin: 0;
}

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

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

th {
  font-size: 12px;
  font-weight: 700;
  color: #456083;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr {
  transition: background-color 160ms ease;
}

tbody tr:hover {
  background: rgba(0, 113, 227, 0.06);
}

.rank {
  width: 64px;
  font-weight: 700;
}

.rank.top {
  color: #c5851a;
}

.user {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  margin-top: 16px;
  color: var(--muted);
}

.podium {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  margin-top: 14px;
}

.podium-card {
  padding: 18px;
  text-align: center;
}

.podium-card.rank-1 {
  min-height: 288px;
  border-color: rgba(220, 159, 42, 0.32);
  background:
    radial-gradient(140px 90px at 50% 0, rgba(255, 214, 126, 0.42), transparent 72%),
    linear-gradient(180deg, rgba(255, 236, 188, 0.7), rgba(255, 255, 255, 0.86));
}

.podium-card.rank-2,
.podium-card.rank-3 {
  min-height: 228px;
}

.podium-card.rank-2 {
  background: linear-gradient(180deg, rgba(198, 213, 235, 0.5), rgba(255, 255, 255, 0.84));
}

.podium-card.rank-3 {
  background: linear-gradient(180deg, rgba(240, 210, 178, 0.52), rgba(255, 255, 255, 0.84));
}

.podium-order {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.rank-1 .podium-order {
  background: linear-gradient(135deg, #d49b2a, #f4bf60);
}

.rank-2 .podium-order {
  background: linear-gradient(135deg, #738db2, #9eb4d4);
}

.rank-3 .podium-order {
  background: linear-gradient(135deg, #ab7b4d, #cb9e72);
}

.podium-name {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  word-break: break-word;
}

.podium-value {
  margin-top: 8px;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.podium-meta {
  margin-top: 8px;
}

.empty,
.loading {
  color: var(--muted);
  padding: 18px 0 8px;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .entry-grid,
  .two-col,
  .layout,
  .podium {
    grid-template-columns: 1fr;
  }

  .podium-card.rank-1,
  .podium-card.rank-2,
  .podium-card.rank-3 {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  main,
  .page {
    padding: 24px 13px 52px;
  }

  .top,
  .hero,
  .card,
  .section,
  .board,
  .status,
  .meta-card,
  .podium-card,
  .box {
    border-radius: 18px;
    padding: 18px;
  }

  .hero {
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  th:nth-child(3),
  td:nth-child(3),
  th:nth-child(4),
  td:nth-child(4),
  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }
}
