:root {
  --bg: #eef4ff;
  --bg-accent: #e2ecff;
  --panel: rgba(255,255,255,.92);
  --panel-strong: #ffffff;
  --table-head: #f3f7ff;
  --line: rgba(59, 103, 190, .14);
  --text: #17233b;
  --muted: #667792;
  --brand: #4f7cff;
  --brand-strong: #315ee8;
  --brand-soft: #e9f0ff;
  --green: #1fa36b;
  --green-soft: #e8fbf2;
  --gold: #c78a18;
  --gold-soft: #fff5df;
  --red: #d9534f;
  --shadow: 0 16px 40px rgba(79, 110, 180, .12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  background:
    radial-gradient(circle at top left, #ffffff 0%, #f7faff 28%, transparent 58%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 46%, #f7fbff 100%);
  color: var(--text);
}
.page {
  width: min(100%, 1440px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 14px 18px;
}
.card {
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.hero {
  padding: 18px 18px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.hero-glow {
  background:
    radial-gradient(circle at top right, rgba(79,124,255,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.96));
}
.hero-main { min-width: 0; flex: 1; }
.eyebrow {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
h1 { margin: 6px 0 10px; font-size: 34px; line-height: 1.15; }
.subtitle { margin: 0; max-width: 920px; color: var(--muted); line-height: 1.6; font-size: 16px; }
.subtitle a, .footer-links a { color: var(--brand-strong); text-decoration: none; }
.subtitle a:hover, .footer-links a:hover { text-decoration: underline; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.stat { padding: 14px 14px 13px; min-width: 0; }
.label { color: var(--muted); font-size: 13px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.value { font-weight: 800; font-size: 28px; line-height: 1.08; letter-spacing: -.02em; }
.value.small { font-size: 22px; }
.value.tiny { font-size: 18px; color: var(--green); }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.full-width { grid-column: auto; }
.section-card { position: relative; }
.section-card::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, rgba(79,124,255,.88), rgba(79,124,255,0));
}
.section-blue::before { background: linear-gradient(90deg, rgba(79,124,255,.92), rgba(79,124,255,0)); }
.section-green::before { background: linear-gradient(90deg, rgba(31,163,107,.92), rgba(31,163,107,0)); }
.section-gold::before { background: linear-gradient(90deg, rgba(199,138,24,.92), rgba(199,138,24,0)); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.section-head h2 { margin: 0; font-size: 20px; }
.hint { color: var(--muted); font-size: 12px; }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
th, td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.35;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}
th {
  color: #4f6280;
  background: linear-gradient(180deg, #f7faff 0%, #edf3ff 100%);
  position: sticky;
  top: 0;
  font-weight: 800;
  white-space: normal;
}
td { color: var(--text); }
tr:last-child td { border-bottom: none; }
.card > .table-wrap, .card > ul { padding: 0 14px 14px; }
.card > .section-head { padding: 14px 14px 0; }
.status-bad { color: var(--red); }
.status-ok { color: var(--green); }
.addr { word-break: break-all; overflow-wrap: anywhere; max-width: none; }
.order-table col.id-col { width: 8%; }
.order-table col.amount-col { width: 14%; }
.order-table col.plan-col { width: 12%; }
.order-table col.time-col { width: 28%; }
.order-table col.addr-col { width: 38%; }
.order-table td.col-time,
.order-table td.col-wallet { white-space: nowrap; }
.top-table col.wallet-col { width: 34%; }
.top-table col.active-col { width: 14%; }
.top-table col.rank-col { width: 12%; }
.top-table col.teamstake-col { width: 16%; }
.top-table col.teamsize-col { width: 10%; }
.top-table col.paid-col { width: 14%; }
.footer-title-row { margin-top: 12px; }
.footer-sections { margin-top: 12px; }
.footer-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.footer-links { padding: 0 0 14px; }
.footer-links h2 { margin: 0; font-size: 18px; }
.footer-links ul { margin: 0; padding: 0 18px 0 30px; }
.footer-links li { margin: 6px 0; color: var(--text); line-height: 1.5; word-break: break-all; font-size: 13px; }
@media (max-width: 768px) {
  .page { width: 100%; max-width: 100%; padding: 10px 10px 14px; }
  .hero { padding: 14px 14px 12px; gap: 10px; }
  h1 { font-size: 28px; margin-bottom: 8px; }
  .subtitle { font-size: 14px; line-height: 1.55; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px 10px; }
  .label { font-size: 12px; margin-bottom: 4px; }
  .value { font-size: 23px; }
  .value.small { font-size: 18px; }
  .value.tiny { font-size: 15px; }
  .section-head h2 { font-size: 18px; }
  .hint { font-size: 11px; }
  th, td { padding: 8px 6px; font-size: 12px; line-height: 1.3; }
  .footer-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .page { width: 100%; max-width: 100%; padding: 8px 8px 12px; }
  .hero { padding: 12px 12px 11px; margin-bottom: 8px; }
  .eyebrow { font-size: 11px; }
  h1 { font-size: 24px; margin: 4px 0 7px; }
  .subtitle { font-size: 13px; line-height: 1.5; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
  .stat { padding: 10px 8px; }
  .label { font-size: 10px; margin-bottom: 4px; }
  .value { font-size: 18px; }
  .value.small { font-size: 14px; }
  .value.tiny { font-size: 12px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .section-head h2 { font-size: 17px; }
  .hint { font-size: 10px; }
  .card > .table-wrap, .card > ul { padding: 0 10px 10px; }
  .card > .section-head { padding: 10px 10px 0; }
  .footer-links { padding: 0 0 10px; }
  .footer-links ul { padding: 0 12px 0 24px; }
  .footer-links li { font-size: 12px; margin: 5px 0; }

  .order-table th.col-id,
  .order-table td.col-id,
  .order-table th.col-amount,
  .order-table td.col-amount,
  .order-table th.col-plan,
  .order-table td.col-plan,
  .top-table th.col-active,
  .top-table td.col-active,
  .top-table th.col-rank,
  .top-table td.col-rank,
  .top-table th.col-teamstake,
  .top-table td.col-teamstake,
  .top-table th.col-teamsize,
  .top-table td.col-teamsize,
  .top-table th.col-paid,
  .top-table td.col-paid {
    text-align: center;
  }
  .order-table th.col-time,
  .order-table td.col-time,
  .order-table th.col-wallet,
  .order-table td.col-wallet,
  .top-table th.col-wallet,
  .top-table td.col-wallet {
    text-align: left;
  }

  .table-wrap { overflow-x: auto; }
  .order-table { min-width: 560px; }
  .top-table { min-width: 760px; }
  .mobile-card-table thead { display: table-header-group; }
  .mobile-card-table tbody { display: table-row-group; }
  .mobile-card-table tr { display: table-row; }
  .mobile-card-table td,
  .mobile-card-table th { display: table-cell; }
  .mobile-card-table td::before { content: none; }
  .mobile-card-table { table-layout: fixed; width: max-content; min-width: 100%; }
  .mobile-card-table th { white-space: nowrap; }
  .order-table col.id-col { width: 52px; }
  .order-table col.amount-col { width: 84px; }
  .order-table col.plan-col { width: 76px; }
  .order-table col.time-col { width: 146px; }
  .order-table col.addr-col { width: 240px; }
  .top-table col.wallet-col { width: 380px; }
  .top-table col.active-col { width: 88px; }
  .top-table col.rank-col { width: 92px; }
  .top-table col.teamstake-col { width: 92px; }
  .top-table col.teamsize-col { width: 72px; }
  .top-table col.paid-col { width: 104px; }
  .order-table td.col-id,
  .order-table td.col-amount,
  .order-table td.col-plan,
  .order-table td.col-time,
  .order-table td.col-wallet,
  .top-table td.col-wallet,
  .top-table td.col-active,
  .top-table td.col-rank,
  .top-table td.col-teamstake,
  .top-table td.col-teamsize,
  .top-table td.col-paid {
    white-space: nowrap;
  }
}
