@font-face {
  font-family: "Manrope47";
  src: url("/47/assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Plex47";
  src: url("/47/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f3ed;
  --surface: #fffef9;
  --ink: #0d1713;
  --soft: #526158;
  --line: rgba(13, 23, 19, 0.15);
  --green: #2dde88;
  --green-deep: #0c9960;
  --acid: #d9ff57;
  --orange: #ff6b45;
  --font: "Manrope47", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "Plex47", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 280px;
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(13, 23, 19, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 23, 19, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.tool-shell {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
  padding-block: 24px 40px;
}

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

.tool-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tool-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.tool-brand span {
  display: grid;
  line-height: 1;
}

.tool-brand strong {
  font-size: 17px;
  font-weight: 800;
}

.tool-brand small {
  margin-top: 4px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.tool-link,
.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tool-link {
  padding-inline: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 249, 0.6);
}

.tool-link:hover,
.tool-button:hover {
  transform: translateY(-1px);
}

.tool-main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 254, 249, 0.82);
  box-shadow: 0 22px 70px rgba(13, 23, 19, 0.1);
  backdrop-filter: blur(16px);
}

.tool-hero {
  position: relative;
  padding: clamp(28px, 6vw, 54px);
  border-bottom: 1px solid var(--line);
}

.tool-hero::after {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 222, 136, 0.28), transparent 68%);
  content: "";
  pointer-events: none;
}

.tool-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--green-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.tool-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.tool-hero > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--soft);
  font-size: 15px;
}

.tool-content {
  padding: clamp(24px, 5vw, 46px);
}

.state-panel {
  display: grid;
  gap: 24px;
  text-align: center;
}

.state-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 15px rgba(45, 222, 136, 0.1), 0 0 0 30px rgba(45, 222, 136, 0.045);
}

.state-mark svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--green-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.state-mark.is-loading svg {
  animation: rotate 1.2s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.state-copy h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.state-copy p {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--soft);
}

.reward-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  max-width: 620px;
  margin-inline: auto;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-align: left;
}

.reward-card span,
.metric-label {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.reward-card strong {
  display: block;
  margin-top: 3px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.reward-card small {
  color: var(--soft);
  font-size: 12px;
}

.tool-button {
  min-width: 160px;
  min-height: 50px;
  padding-inline: 24px;
  border: 0;
  background: var(--ink);
  color: #fffef9;
  box-shadow: 0 12px 28px rgba(13, 23, 19, 0.18);
}

.tool-button:hover {
  background: #263a30;
}

.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  transform: none;
}

.tool-button.is-success {
  background: var(--green-deep);
}

.status-note {
  min-height: 24px;
  margin: 0;
  color: var(--soft);
  font-size: 12px;
}

.status-note.is-error {
  color: #b23a20;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.status-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-card-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.status-indicator {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9ca59f;
  box-shadow: 0 0 0 5px rgba(156, 165, 159, 0.13);
}

.status-card.is-online .status-indicator {
  background: var(--green-deep);
  box-shadow: 0 0 0 5px rgba(12, 153, 96, 0.13);
}

.status-card.is-degraded .status-indicator {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 107, 69, 0.13);
}

.status-card.is-unknown .status-indicator {
  background: #8b938e;
  box-shadow: 0 0 0 5px rgba(139, 147, 142, 0.13);
}

@media (prefers-reduced-motion: reduce) {
  .status-card {
    transition: none;
  }
}

.status-message {
  min-height: 44px;
  margin: 18px 0 20px;
  color: var(--soft);
  font-size: 13px;
}

.status-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.status-metric strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink);
  color: #fffef9;
}

.status-summary p {
  margin: 0;
  color: rgba(255, 254, 249, 0.68);
  font-size: 13px;
}

.status-summary strong {
  display: block;
  margin-bottom: 2px;
  color: #fffef9;
  font-size: 17px;
}

.status-summary .tool-button {
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.tool-footer {
  margin: 18px 0 0;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.04em;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .tool-shell {
    width: min(100% - 20px, 620px);
    padding-top: 12px;
  }

  .tool-main {
    border-radius: 20px;
  }

  .tool-link span {
    display: none;
  }

  .tool-link::after {
    content: "返回";
  }

  .reward-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reward-card .tool-button {
    width: 100%;
  }

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

  .status-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .status-summary .tool-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
