:root {
  --app-bg: #0b101a;
  --app-panel-top: #12141a;
  --app-panel-bottom: #0f1117;
  --app-text: #e8edf2;
  --app-heading: #f7fbff;
  --app-muted: #9fb0c2;
  --app-border: #1b2331;
  --app-card-shadow: 0 18px 50px rgba(3, 7, 18, 0.45);
  --app-note: #c7d6ec;
  --app-entry-gradient-top: rgba(255, 255, 255, 0.02);
  --app-entry-gradient-bottom: rgba(255, 255, 255, 0);
  --app-entry-border: #1b2331;
  --app-entry-shadow: rgba(255, 255, 255, 0.02);
  --app-icon-bg: rgba(103, 232, 249, 0.12);
  --app-icon-border: rgba(103, 232, 249, 0.35);
  --app-chip-bg: rgba(103, 232, 249, 0.08);
  --app-chip-border: rgba(103, 232, 249, 0.2);
  --app-overall-bg: rgba(34, 197, 94, 0.08);
  --app-btn-base-bg: #0f141f;
  --app-btn-base-border: #2a3a55;
  --app-btn-primary-top: #1a2436;
  --app-btn-primary-bottom: #152033;
  --app-btn-primary-border: #24334c;
  --status-online-text: #4ade80;
  --status-offline-text: #f87171;
  --status-online-dot: #22c55e;
  --status-offline-dot: #f87171;
}

body.light {
  --app-bg: #f4f7ff;
  --app-panel-top: #ffffff;
  --app-panel-bottom: #f4f6ff;
  --app-text: #0f1a2b;
  --app-heading: #0d1730;
  --app-muted: #556078;
  --app-border: #dbe5fb;
  --app-card-shadow: 0 24px 60px rgba(39, 64, 122, 0.12);
  --app-note: #526089;
  --app-entry-gradient-top: #fbfdff;
  --app-entry-gradient-bottom: #f4f7ff;
  --app-entry-border: #dbe5fb;
  --app-entry-shadow: rgba(46, 73, 130, 0.1);
  --app-icon-bg: #f2f6ff;
  --app-icon-border: #dbe5fb;
  --app-chip-bg: rgba(99, 179, 237, 0.12);
  --app-chip-border: rgba(99, 179, 237, 0.35);
  --app-overall-bg: rgba(99, 179, 237, 0.12);
  --app-btn-base-bg: #ffffff;
  --app-btn-base-border: #dbe3f5;
  --app-btn-primary-top: #fdfdff;
  --app-btn-primary-bottom: #edf2ff;
  --app-btn-primary-border: #c9d9ff;
  --status-offline-text: #ef4444;
  --status-online-dot: #23c16b;
  --status-offline-dot: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--app-bg);
  color: var(--app-text);
  transition: background 0.3s ease, color 0.3s ease;
}

.app-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 96px;
  width: 100%;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.app-card {
  border-radius: 22px;
  border: 1px solid var(--app-border);
  background: linear-gradient(180deg, var(--app-panel-top), var(--app-panel-bottom));
  box-shadow: var(--app-card-shadow);
}

.hero-card .card-body {
  padding: 32px;
}

.hero__logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(45, 110, 253, 0.25);
}

.hero__brand h1 {
  margin: 4px 0 6px;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: 0.3px;
  color: var(--app-heading);
}

.sub {
  margin: 0;
  color: var(--app-muted);
  font-size: 14px;
}

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

.section-head h3 {
  margin: 0;
  color: var(--app-heading);
}

.section-sub {
  margin: 6px 0 10px;
  color: var(--app-muted);
  font-size: 14px;
}

.notice-steps {
  margin: 16px 0 0 20px;
  padding-left: 4px;
  color: var(--app-note);
}

.intro-card p {
  margin-bottom: 8px;
}

.intro-card .introduction {
  color: var(--app-note);
}

.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--app-entry-border);
  background: linear-gradient(180deg, var(--app-entry-gradient-top), var(--app-entry-gradient-bottom));
  box-shadow: inset 0 0 0 1px var(--app-entry-shadow);
  flex-wrap: wrap;
}

.entry__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--app-icon-bg);
  border: 1px solid var(--app-icon-border);
}

.entry__meta {
  flex: 1 1 200px;
}

.entry__title {
  font-weight: 600;
  color: var(--app-heading);
}

.entry__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.entry__note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--app-note);
  font-weight: 500;
}

.entry__status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--app-muted);
  background: var(--app-chip-bg);
  border: 1px solid var(--app-chip-border);
  padding: 3px 9px;
  border-radius: 999px;
}

.entry__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--app-chip-bg);
  border: 1px solid var(--app-chip-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  justify-content: flex-start;
}

.overall-status {
  margin-top: 24px;
  background: var(--app-overall-bg);
}

.entry-status__text {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--app-muted);
}

.entry-status__state {
  font-weight: 600;
}

.entry-status__state.status-online {
  color: var(--status-online-text);
}

.entry-status__state.status-offline {
  color: var(--status-offline-text);
}

.entry-status__time {
  color: var(--app-muted);
}

.app-btn {
  appearance: none;
  border: 1px solid var(--app-btn-base-border);
  background: var(--app-btn-base-bg);
  color: var(--app-text);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.app-btn-primary {
  background: linear-gradient(180deg, var(--app-btn-primary-top), var(--app-btn-primary-bottom));
  border-color: var(--app-btn-primary-border);
}

.app-btn-secondary {
  background: transparent;
  border-color: var(--app-border);
}

.app-btn:hover,
.app-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--app-btn-primary-border);
  color: var(--app-heading);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status-online-dot);
}

.dot.status-offline {
  background: var(--status-offline-dot);
}

.site-footer {
  font-size: 13px;
  color: var(--app-muted);
  text-align: center;
}

@media (max-width: 480px) {
  .app-wrapper {
    padding: 0 16px 72px;
  }

  .hero-card .card-body {
    padding: 24px;
  }

  .entry {
    padding: 16px;
  }

  .entry__icon {
    width: 42px;
    height: 42px;
  }
}
