:root {
  --app-height: 100vh;
  --bg-root: #090c10;
  --bg-panel: #0d1117;
  --bg-subtle: #161b22;
  --bg-hover: #21262d;
  --border: #30363d;
  --border-bright: #484f58;

  --text-main: #c9d1d9;
  --text-bright: #f0f6fc;
  --text-dim: #8b949e;
  --text-dimmer: #484f58;

  --neon-green: #2ea043;
  --neon-green-bright: #3fb950;
  --neon-cyan: #38bdf8;
  --neon-purple: #a855f7;
  --neon-amber: #e3b341;
  --neon-red: #f85149;

  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Microsoft YaHei", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-mono);
}

html, body {
  height: var(--app-height, 100%);
  width: 100%;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-root);
  color: var(--text-main);
  font-size: 13px;
}

button, .btn-hacker, .btn-enter, .btn-back, .tool-link {
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0 !important;
}

.btn-hacker {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-bright);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-hacker:hover {
  background: var(--bg-hover);
  border-color: var(--border-bright);
  color: var(--neon-cyan);
}

.btn-hacker.primary {
  border-color: #2ea043;
  color: var(--neon-green-bright);
}

.btn-hacker.primary:hover {
  background: rgba(46, 160, 67, 0.15);
}

.btn-hacker.danger {
  border-color: rgba(248, 81, 73, 0.5);
  color: var(--neon-red);
}

.btn-hacker.danger:hover {
  background: rgba(248, 81, 73, 0.15);
  border-color: var(--neon-red);
}

/* 弹窗通用样式 */
.hacker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 9, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.hacker-dialog {
  background: #0d1117;
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), 0 0 5px var(--border);
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  padding: 22px;
}

.dialog-title {
  font-size: 14px;
  color: var(--neon-green-bright);
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.dialog-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.dialog-label .req {
  color: var(--neon-amber);
  font-weight: bold;
}

.dialog-input {
  width: 100%;
  background: #010409;
  border: 1px solid var(--border);
  color: var(--text-bright);
  padding: 8px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 12px;
  outline: none;
}

.dialog-input:focus {
  border-color: var(--neon-cyan);
}

/* 轻提示 Toast */
.toast-banner {
  position: fixed;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 17, 23, 0.96);
  border: 1px solid var(--neon-amber);
  color: var(--neon-amber);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 1200;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
