:root {
  --bg: #0b101a;
  --panel: #12141a;
  --panel2: #0f1117;
  --text: #e8edf2;
  --muted: #9fb0c2;
  --border: #1b2331;
  --accent: #67e8f9;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

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(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

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

/* light theme */
body.light {
  --bg: #f4f7ff;
  --panel: #ffffff;
  --panel2: #f8faff;
  --text: #0f1a2b;
  --muted: #556078;
  --border: #e2e8f5;
  background: var(--bg);
}

body.light .card {
  background: linear-gradient(180deg, #ffffff, #f4f6ff);
  box-shadow: 0 24px 60px rgba(39, 64, 122, 0.12);
}

body.light .notice-card {
  background: linear-gradient(180deg, #fdfdff, #f7fbff);
}

body.light .notice-card .notice-steps {
  color: #526089;
}
body.light .intro-card .introduction {
  color: #526089;
}

body.light .hero__logo {
  box-shadow: 0 16px 30px rgba(48, 90, 202, 0.2);
}

body.light .entry {
  background: linear-gradient(180deg, #fbfdff, #f4f7ff);
  border-color: #dbe5fb;
  box-shadow: 0 16px 30px rgba(46, 73, 130, 0.1);
}

body.light .entry__icon {
  background: #f2f6ff;
  border-color: #dbe5fb;
}

body.light .entry-status {
  background: rgba(99, 179, 237, 0.12);
  border-color: rgba(99, 179, 237, 0.35);
}

body.light .entry__status {
  background: rgba(99, 179, 237, 0.12);
}

body.light .entry-status__state.bad {
  color: #ef4444;
}

body.light .btn {
  background: #ffffff;
  border-color: #dbe3f5;
  color: #14213d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

body.light .btn.primary {
  background: linear-gradient(180deg, #fdfdff, #edf2ff);
  border-color: #c9d9ff;
}

body.light .dot {
  background: #23c16b;
}

body.light .dot.bad {
  background: #ef4444;
}

body.light .overall-status {
  background: rgba(99, 179, 237, 0.12);
}

/* layout */
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: 0 18px 50px rgba(3, 7, 18, 0.45);
  padding: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

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


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

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

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

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

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

.section-head + .notice-steps,
.section-head + .entry-list {
  margin-top: 8px;
}

/* notice */
.notice-steps {
  margin: 16px 0 0 20px;
  color: #c7d6ec;
  padding-left: 4px;
}

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

.intro-card .introduction {
  color: #c7d6ec;
}

.intro-card p.section-sub {
  color: var(--muted);
}

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

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

.entry__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(103, 232, 249, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.35);
}

.entry__meta {
  flex: 1 1 180px;
}

.entry__title {
  font-weight: 600;
}

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

.entry__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(103, 232, 249, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

.entry__status .dot {
  width: 8px;
  height: 8px;
}

.entry__status .entry-status__state.bad {
  color: #f87171;
}

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

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

.entry-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(103, 232, 249, 0.08);
  border: 1px solid rgba(103, 232, 249, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  justify-content: flex-start;
}

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

.entry-status__state {
  color: #4ade80;
  font-weight: 600;
}

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

.entry-status__state.bad {
  color: #f87171;
}

.overall-status {
  justify-content: space-between;
  margin-top: 22px;
  background: rgba(34, 197, 94, 0.08);
}

/* buttons */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #0f141f;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  border-color: #2a3a55;
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(180deg, #1a2436, #152033);
  border-color: #24334c;
}

.btn.secondary {
  background: transparent;
}

/* footer */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

.dot.bad {
  background: #f87171;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  align-items: center;
  text-align: center;
}

/* mobile optimization */
@media (max-width: 480px) {
  .wrap {
    padding: 32px 16px 72px;
  }

  .card {
    padding: 18px;
  }

  .hero__brand {
    gap: 14px;
  }

  .hero__logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  h1 {
    font-size: 24px;
  }

  .entry {
    padding: 14px 16px;
    gap: 12px;
  }

  .entry__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
  }
}
