:root {
  color-scheme: light;
  --ink: #1b1f24;
  --muted: #59636e;
  --line: #d9dee5;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --accent: #375f45;
  --accent-soft: #e7eee7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
  background:
    linear-gradient(135deg, rgba(55, 95, 69, 0.08), transparent 38%),
    linear-gradient(180deg, var(--paper), #ece8dc);
}

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

.hero {
  max-width: 780px;
  padding: 48px 0 56px;
}

.compact-hero {
  padding-bottom: 40px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: 68px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.9;
}

.content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 64px;
}

.content-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard {
  margin: 0 0 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

.dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.dashboard-head h2 {
  margin: 0;
  font-size: 28px;
}

.dashboard-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.token-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.token-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.status-card {
  display: flex;
  min-width: 0;
  min-height: 178px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
}

.status-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.status-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

button {
  min-height: 46px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: #274831;
}

pre {
  grid-column: 1 / -1;
  min-height: 140px;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #243027;
  background: var(--accent-soft);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

article {
  min-width: 0;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
}

h2 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.35;
}

article p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.footer {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-separator {
  display: inline-block;
  margin: 0 10px;
  color: var(--muted);
}

.public-security-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.public-security-icon {
  width: 16px;
  height: 16px;
}

.result-panel {
  margin-top: 18px;
}

.result-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .page {
    padding-top: 42px;
  }

  .hero {
    padding-bottom: 34px;
  }

  .lead {
    font-size: 17px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .lead,
  article p {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .content {
    grid-template-columns: 1fr;
  }

  .dashboard {
    padding: 20px;
  }

  .dashboard-head,
  .status-grid {
    grid-template-columns: 1fr;
  }

  article {
    min-height: auto;
  }
}
