@font-face {
  font-family: "Zpix";
  src: url("https://raw.githubusercontent.com/SolidZORO/zpix-pixel-font/233549e84627708336234ec4eebdfdb529aeaf89/dist/zpix.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg-base: #1a1918;
  --bg-panel: #242322;
  --border: #3e3c38;
  --text-main: #e6e4df;
  --text-muted: #8e8c87;
  --accent: #cf785d;
  --accent-soft: #d9a07f;
  --accent-glow: rgba(207, 120, 93, 0.16);
  --status-ready: #7ee787;
  --font-en-cli: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-zh-cli: "Zpix", "Fusion Pixel 12px Monospaced zh_hans", "Press Start 2P", monospace;
  --font-footer: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-en-cli);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.site-footer {
  padding: 1.5rem 2rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 1.2s;
}

.site-footer a {
  color: #7f7d79;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
  font-family: var(--font-footer);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #9a978f;
}

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

.panel {
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
  max-width: 540px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.panel-header {
  display: grid;
  grid-template-columns: 3.5rem 1fr 3.5rem;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.12);
}

.panel-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 3.5rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dot:nth-child(1) {
  background-color: #a25d53;
}

.dot:nth-child(2) {
  background-color: #b08a4e;
}

.dot:nth-child(3) {
  background-color: #6e9c64;
}

.panel-title {
  justify-self: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.panel-body {
  padding: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.line {
  display: flex;
  opacity: 0;
  animation: reveal 0.12s step-end forwards;
}

.line-1 {
  animation-delay: 0.06s;
}

.line-2 {
  animation-delay: 0.12s;
}

.line-3 {
  animation-delay: 0.18s;
}

.line-4 {
  animation-delay: 0.24s;
}

.label {
  color: var(--accent-soft);
  width: 5.5rem;
  flex-shrink: 0;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.value {
  color: var(--text-main);
}

.value-zh {
  font-family: var(--font-zh-cli);
  font-size: 0.95em;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: pixelated;
}

.value-ready {
  color: var(--status-ready);
  text-shadow: 0 0 8px rgba(126, 231, 135, 0.2);
}

.prompt-line {
  margin-top: 0.75rem;
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  padding-top: 0.25rem;
}

.prompt {
  color: var(--accent);
  user-select: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.command {
  display: flex;
  align-items: center;
  color: var(--text-main);
  min-width: 0;
  overflow-wrap: anywhere;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background-color: var(--accent-soft);
  margin-left: 0.25em;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  opacity: 0.8;
  box-shadow: 0 0 4px var(--accent-glow);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes reveal {
  to {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  main {
    padding: 1.25rem;
  }

  .panel {
    border-radius: 8px;
  }

  .panel-header {
    padding: 0.6rem 1rem;
    grid-template-columns: 3.25rem 1fr 3.25rem;
  }

  .panel-body {
    padding: 1.25rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .label {
    width: 4.5rem;
  }

  .prompt-line {
    margin-top: 0.5rem;
  }

  .panel-title {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  main,
  .line,
  .cursor,
  .site-footer {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
