:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-strong: #eff4fb;
  --border: #d7e2f0;
  --text: #17324d;
  --muted: #5d738c;
  --accent: #0077b6;
  --accent-soft: #dff1fb;
  --success: #18794e;
  --warning: #b76e00;
  --shadow: 0 20px 50px rgba(19, 50, 77, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 119, 182, 0.16), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
  color: var(--text);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
}

.description {
  max-width: 760px;
  margin: 12px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.data-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.data-list div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-strong);
}

.data-list dt {
  font-size: 13px;
  color: var(--muted);
}

.data-list dd {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  word-break: break-all;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.status-live {
  color: var(--success);
  background: #e8f7ef;
}

.status-waiting {
  color: var(--warning);
  background: #fff3de;
}

.message-box {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: #0f2236;
  color: #d7ecff;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.refresh-button {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0077b6, #0096c7);
  cursor: pointer;
}

.refresh-button:hover {
  filter: brightness(1.05);
}

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

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

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

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

.empty-row {
  text-align: center;
  color: var(--muted);
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1120px);
    padding-top: 28px;
  }

  .card {
    padding: 18px;
    border-radius: 18px;
  }

  .section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .refresh-button {
    width: 100%;
  }
}
