:root {
  --bg: #091218;
  --bg-soft: #0f1f29;
  --card: #142a37;
  --card-soft: #1a3444;
  --text: #e8eef3;
  --muted: #95acbc;
  --brand: #f59d35;
  --brand-strong: #ea6e36;
  --ok: #2ad39a;
  --warn: #ffd27a;
  --danger: #ef5c72;
  --line: rgba(232, 238, 243, 0.14);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Sora", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(42, 211, 154, 0.12), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(245, 157, 53, 0.2), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #102431 100%);
}

.site-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 1rem auto 0;
}

.site-header {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 18, 24, 0.82);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1b1008;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-nav a {
  text-decoration: none;
  color: #c5d8e6;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.site-nav a.active {
  color: #fff7e5;
  border-color: rgba(245, 157, 53, 0.55);
  background: rgba(245, 157, 53, 0.2);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
}

.site-main {
  padding: 1rem 0 3.5rem;
}

.page-hero,
.panel,
.plans,
.cta-bar {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 24, 32, 0.82);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 2rem 1.6rem;
}

.eyebrow {
  margin: 0;
  color: #9ec0d9;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
}

.page-hero h1 {
  margin: 0.65rem 0;
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  line-height: 1.16;
}

.page-hero p {
  margin: 0;
  color: #c5d8e6;
  max-width: 62ch;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 1.15rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  text-decoration: none;
  padding: 0.66rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  color: #1a0f0a;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat-grid,
.biz-grid,
.process-grid,
.plan-grid,
.me-grid,
.quick-grid {
  display: grid;
  gap: 0.75rem;
}

.stat-grid {
  margin-top: 1.2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.biz-card,
.process-card,
.plan,
.me-card,
.quick-card,
.match-card,
.prediction-card,
.saved-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(20, 42, 55, 0.92), rgba(13, 28, 37, 0.88));
  padding: 0.9rem;
}

.stat-card p,
.stat-card small {
  margin: 0;
  color: var(--muted);
}

.stat-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1.18rem;
}

.page-section {
  margin-top: 1rem;
}

.panel,
.plans,
.cta-bar {
  padding: 1.2rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.panel-head h2,
.plans h2,
.cta-bar h2 {
  margin: 0;
  font-size: 1.2rem;
}

.panel-head p,
.panel-sub,
.subtle {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.control-row {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.control-row > input[type="search"],
.control-row > input[type="text"],
.control-row > input[type="date"],
.control-row > select,
.control-row > button,
.chip-btn,
.mini-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  height: 38px;
  padding: 0 0.9rem;
  font-size: 0.84rem;
}

.control-row > input[type="search"],
.control-row > input[type="text"],
.control-row > input[type="date"] {
  min-width: 210px;
}

.control-row button,
.chip-btn,
.mini-btn {
  cursor: pointer;
}

.control-row button:hover,
.chip-btn:hover,
.mini-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

#scheduleSource,
#resultSource {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

#scheduleSource a,
#resultSource a {
  color: #9ec0d9;
  text-decoration: none;
}

#scheduleSource a:hover,
#resultSource a:hover {
  text-decoration: underline;
}

.quick-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip-btn.active {
  color: #fff4dc;
  border-color: rgba(245, 157, 53, 0.55);
  background: rgba(245, 157, 53, 0.18);
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chip-btn input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 0;
  margin: 0;
  accent-color: var(--brand);
}

.data-list,
.prediction-list,
.saved-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.7rem;
}

.results-table-wrap {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.results-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.results-table th,
.results-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.28rem;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  word-break: break-word;
}

.results-table th {
  color: #9ec0d9;
  font-weight: 700;
  background: rgba(14, 34, 48, 0.9);
}

.results-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.results-table .score-cell {
  color: #ffe8af;
  font-weight: 700;
}

.results-table th:nth-child(1),
.results-table td:nth-child(1) {
  width: 9%;
}

.results-table th:nth-child(2),
.results-table td:nth-child(2) {
  width: 9%;
}

.results-table th:nth-child(3),
.results-table td:nth-child(3) {
  width: 8%;
}

.results-table th:nth-child(4),
.results-table td:nth-child(4) {
  width: 11%;
}

.results-table th:nth-child(5),
.results-table td:nth-child(5) {
  width: 7%;
}

.results-table th:nth-child(6),
.results-table td:nth-child(6),
.results-table th:nth-child(8),
.results-table td:nth-child(8) {
  width: 13%;
}

.results-table th:nth-child(7),
.results-table td:nth-child(7),
.results-table th:nth-child(9),
.results-table td:nth-child(9),
.results-table th:nth-child(10),
.results-table td:nth-child(10) {
  width: 10%;
}

.results-table a {
  color: #9ec0d9;
  text-decoration: none;
}

.results-table a:hover {
  text-decoration: underline;
}

.match-card {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.match-time {
  color: #9ec0d9;
  font-size: 0.79rem;
}

.match-name {
  margin: 0;
  font-size: 0.97rem;
}

.match-meta {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.odds,
.score-box {
  display: flex;
  gap: 0.33rem;
}

.odds span,
.score-box span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  color: #deebf4;
}

.score-box span {
  color: #ffe8af;
  border-color: rgba(245, 157, 53, 0.35);
  background: rgba(245, 157, 53, 0.13);
  font-weight: 700;
}

.score-box small {
  color: #a9c0d0;
  font-size: 0.72rem;
}

.prediction-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
}

.pill {
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.pill.win {
  color: #68efc2;
  background: rgba(42, 211, 154, 0.16);
  border-color: rgba(42, 211, 154, 0.28);
}

.pill.draw {
  color: #ffd381;
  background: rgba(255, 210, 122, 0.18);
  border-color: rgba(255, 210, 122, 0.3);
}

.pill.lose {
  color: #ff99aa;
  background: rgba(239, 92, 114, 0.16);
  border-color: rgba(239, 92, 114, 0.28);
}

.prediction-card h3,
.saved-card h3 {
  margin: 0.55rem 0 0;
  font-size: 0.98rem;
}

.meta-line {
  margin-top: 0.45rem;
  color: #a9c0d0;
  font-size: 0.79rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.meta-line.warn {
  color: #ffd7a1;
}

.reason {
  margin: 0.55rem 0 0;
  color: #d7e7f3;
  line-height: 1.55;
  font-size: 0.84rem;
}

.confidence-block {
  margin-top: 0.5rem;
}

.confidence-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #cfe1ee;
}

.confidence-head strong {
  font-size: 0.9rem;
  color: #fff4de;
}

.confidence-bar {
  margin-top: 0.33rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  overflow: hidden;
}

.confidence-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2ad39a 0%, #f59d35 55%, #ea6e36 100%);
}

.biz-grid,
.process-grid {
  margin-top: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.biz-tag,
.plan .tier,
.me-label {
  margin: 0;
  color: #ffd581;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
}

.biz-card h3,
.process-card h3,
.plan h3,
.me-card h3,
.quick-card h3 {
  margin: 0.42rem 0;
  font-size: 1rem;
}

.biz-card p,
.process-card p,
.plan p,
.plan li,
.me-card p,
.quick-card p {
  margin: 0;
  color: #c2d6e5;
  line-height: 1.55;
  font-size: 0.85rem;
}

.process-card span {
  color: #9ec0d9;
  font-size: 0.74rem;
}

.plan-grid,
.me-grid,
.quick-grid {
  margin-top: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan ul {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
}

.plan.featured {
  border-color: rgba(245, 157, 53, 0.5);
  background:
    linear-gradient(160deg, rgba(234, 110, 54, 0.16), rgba(20, 42, 55, 0.92)),
    rgba(20, 42, 55, 0.92);
}

.cta-bar {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto 1.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  color: #a5bdcd;
  font-size: 0.83rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.empty {
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .biz-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-grid,
  .me-grid,
  .quick-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-card {
    grid-template-columns: 130px 1fr;
  }

  .match-card .odds,
  .match-card .score-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: calc(100% - 1rem);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    width: calc(100% - 2rem);
    margin: 0 auto;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.65rem;
    background: rgba(11, 22, 30, 0.97);
    z-index: 5;
  }

  .site-nav.open {
    display: flex;
  }

  .page-hero,
  .panel,
  .plans,
  .cta-bar {
    padding: 1rem;
  }

  .biz-grid,
  .process-grid,
  .plan-grid,
  .me-grid,
  .quick-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .match-card {
    grid-template-columns: 1fr;
  }

  .control-row > input[type="search"],
  .control-row > input[type="text"],
  .control-row > input[type="date"],
  .control-row > select,
  .control-row > button {
    width: 100%;
  }
}
