:root {
  --bg: #f4f7f3;
  --surface: #ffffff;
  --ink: #1e2a24;
  --muted: #65736b;
  --line: #dce5dc;
  --green: #3f7d4f;
  --green-dark: #2f633c;
  --green-soft: #e7f1e8;
  --amber: #b8791f;
  --amber-soft: #fbf1dd;
  --red: #b23b3b;
  --shadow: 0 10px 30px rgba(37, 70, 48, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(63, 125, 79, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 125, 79, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.site-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.01em; }
.brand-icon { width: 30px; height: 30px; image-rendering: pixelated; }
.site-nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.site-nav a:hover { color: var(--green); }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
}

h1 { margin: 0 0 18px; font-size: clamp(32px, 5vw, 52px); line-height: 1.18; letter-spacing: -0.02em; }
h1 span { color: var(--green); }
.lede { margin: 0 0 28px; color: var(--muted); font-size: 17px; max-width: 32em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }

.hint { min-height: 1.6em; margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.card-label { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.address-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 10px 10px 14px;
}
.address-box code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  color: var(--ink);
}
.copy-btn {
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
}
.copy-btn:hover { background: var(--green-dark); }
.card-note { margin: 12px 0 20px; font-size: 13px; color: var(--muted); }
.status-line { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.online { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.dot.offline { background: var(--red); box-shadow: 0 0 0 4px #f8e7e7; }
.dot.loading { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }

.section { padding: 40px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 26px; letter-spacing: -0.01em; }
.refresh {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}
.refresh:hover { color: var(--green); border-color: var(--green); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  min-height: 108px;
}
.stat-wide { grid-column: 1 / -1; min-height: auto; }
.stat-label { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.stat-value { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.2; }
.stat-value small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.stat-value.small { font-size: 20px; }
.stat-motd { margin: 0; white-space: pre-line; color: var(--ink); }

.news-list { display: grid; gap: 14px; }
.news-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 18px 22px;
}
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.news-date { font-size: 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.news-tag { font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 2px 9px; }
.news-item h3 { margin: 0 0 6px; font-size: 17px; }
.news-item p { margin: 0; color: var(--muted); font-size: 14px; white-space: pre-line; }

footer { border-top: 1px solid var(--line); padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 48px; }
  .site-nav { gap: 14px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-wide { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
