﻿:root {
  --bg-1: #f7efe1;
  --bg-2: #d6e8ff;
  --card: rgba(255, 255, 255, 0.86);
  --card-strong: rgba(255, 255, 255, 0.95);
  --text: #18314b;
  --muted: #61758c;
  --accent: #df5a2a;
  --accent-2: #0f6cbd;
  --ok: #0f9d58;
  --warn: #b45309;
  --border: rgba(24, 49, 75, 0.08);
  --shadow: 0 24px 60px rgba(24, 49, 75, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(255, 212, 160, 0.45), transparent 24%),
    linear-gradient(155deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

button {
  font: inherit;
}

.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.hero-panel,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel {
  border-radius: 28px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  min-width: 260px;
  display: grid;
  gap: 12px;
}

.hero-actions button,
.park-pill,
.ticket-item {
  border: none;
}

.hero-actions button {
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8f42 100%);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.hero-actions .secondary {
  background: linear-gradient(135deg, var(--accent-2) 0%, #5fa5e6 100%);
}

#statusText {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.park-switcher {
  display: flex;
  gap: 12px;
  margin: 20px 0 18px;
  flex-wrap: wrap;
}

.park-pill {
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(24, 49, 75, 0.08);
}

.park-pill.active {
  background: linear-gradient(135deg, #143f6b 0%, #2672b5 100%);
  color: white;
}

.stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stat-tile,
.mini-stat {
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
}

.stat-tile p,
.mini-stat p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.stat-tile h3,
.mini-stat h3 {
  margin: 0;
  font-size: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
  gap: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.card {
  border-radius: 28px;
  padding: 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.chart-wrap {
  height: 330px;
}

.chart-wrap.large {
  height: 380px;
}

.comparison-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(24, 49, 75, 0.08);
  text-align: left;
}

.comparison-table th {
  color: var(--muted);
  font-weight: 700;
}

.ticket-board {
  display: grid;
  gap: 12px;
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.ticket-item {
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  text-align: left;
  border: 1px solid transparent;
}

.ticket-item.active {
  border-color: rgba(15, 108, 189, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(228,240,255,0.9));
}

.ticket-item-top,
.source-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ticket-item-top h3,
.source-top h3,
.month-head h3 {
  margin: 0;
  font-size: 18px;
}

.ticket-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.ticket-prices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-tag.ok {
  background: rgba(15, 157, 88, 0.14);
  color: var(--ok);
}

.status-tag.warn {
  background: rgba(180, 83, 9, 0.14);
  color: var(--warn);
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-panels {
  display: grid;
  gap: 16px;
}

.month-panel {
  border: 1px solid rgba(24, 49, 75, 0.08);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.month-head {
  margin-bottom: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekday-row {
  margin-bottom: 8px;
}

.weekday-cell {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.day-cell {
  min-height: 68px;
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.7);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.day-cell strong {
  font-size: 16px;
}

.day-cell span {
  color: #c26612;
  font-size: 13px;
  font-weight: 800;
}

.day-cell.muted {
  background: rgba(24, 49, 75, 0.05);
}

.day-cell.muted span {
  color: var(--muted);
  font-weight: 600;
}

.day-cell.empty {
  background: transparent;
}

.calendar-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px dashed rgba(24, 49, 75, 0.16);
  color: var(--muted);
}

.source-card {
  margin-top: 18px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.source-item {
  border-radius: 22px;
  border: 1px solid rgba(24, 49, 75, 0.08);
  background: rgba(255, 255, 255, 0.74);
  padding: 16px;
}

@media (max-width: 1120px) {
  .dashboard-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 12px 36px;
  }

  .hero-panel {
    padding: 20px;
    grid-template-columns: 1fr;
    display: grid;
  }

  .stats-grid,
  .detail-summary {
    grid-template-columns: 1fr;
  }

  .chart-wrap,
  .chart-wrap.large {
    height: 300px;
  }

  .calendar-grid {
    gap: 6px;
  }

  .day-cell {
    min-height: 60px;
    padding: 8px 6px;
  }
}
