/* DELTA FORCE · tactical dark gate */
:root {
  --bg: #060a12;
  --panel: #0a1119;
  --panel-2: #0b1420;
  --line: #1b2a3a;
  --line-soft: #16232f;
  --txt: #e8eef4;
  --txt-dim: #93a6b9;
  --txt-mute: #6f8298;
  --accent: #2f8fdc;
  --accent-deep: #1663ad;
  --amber: #f0a860;
  --lime: #b5d96b;
  --danger: #ff6b6b;
  --ok: #6fe08a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body { position: relative; overflow-x: hidden; }

/* 背景网格 + 暗角 */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 165, 210, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 165, 210, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
}
.vignette {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(40, 90, 140, 0.16), transparent 60%),
    radial-gradient(90% 60% at 50% 110%, rgba(8, 14, 22, 0.9), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 596px;
  margin: 0 auto;
  padding: 42px 16px 30px;
}

/* 头部 */
.hero { text-align: center; margin-bottom: 30px; }

.brand {
  margin: 0;
  font-size: 33px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: #f4f8fc;
  text-shadow: 0 0 26px rgba(80, 160, 230, 0.28);
}

.brand-sub {
  margin: 12px 0 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #7f93a9;
  text-transform: uppercase;
}

/* 提示条 */
.notice {
  position: relative;
  border: 1px solid rgba(196, 76, 56, 0.30);
  border-left: 3px solid #c2452f;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(120, 34, 26, 0.24), rgba(52, 20, 16, 0.12));
  padding: 16px 18px 14px;
  margin-bottom: 26px;
  text-align: center;
}

.notice-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.9;
}
.notice-row + .notice-row { margin-top: 6px; }
.notice-row-center { font-size: 13px; color: #d8e3ee; }

.warn-ico { color: #f0a03c; font-size: 15px; }

.notice-text { color: #f1f6fa; font-weight: 600; letter-spacing: 0.01em; }

.notice-label { color: #cdd9e5; }

.chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 3px;
  border: 1px solid rgba(120, 150, 185, 0.28);
  background: rgba(14, 24, 36, 0.85);
  color: #dfeaf5;
  font-size: 12.5px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip:hover { border-color: rgba(90, 160, 220, 0.7); background: rgba(20, 40, 60, 0.95); color: #fff; }

/* 面板 */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(13, 22, 34, 0.92), rgba(8, 14, 22, 0.92));
  padding: 26px 22px 22px;
  margin-bottom: 26px;
}

.panel-tab {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateY(-50%);
  padding: 5px 12px 5px 11px;
  border: 1px solid #22364a;
  border-radius: 2px;
  background: #0a1421;
  color: #cfe0f0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.panel-body { position: relative; }

/* 日志 */
.log-rail {
  border-left: 1px solid rgba(140, 165, 190, 0.30);
  padding-left: 14px;
}

.log-entry + .log-entry { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(120, 145, 175, 0.16); }

.log-date {
  display: block;
  font-size: 12px;
  color: #8fa3b8;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.log-line {
  margin: 0;
  font-size: 13px;
  line-height: 2;
  color: #e6edf4;
  letter-spacing: 0.01em;
}
.log-line + .log-line { margin-top: 2px; }

.hl-a { color: var(--amber); }
.hl-b { color: var(--lime); }

/* 表单 */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #dbe6f1;
  margin-bottom: 9px;
}

.card-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #1e3044;
  border-radius: 3px;
  background: #050b13;
  color: #eef4fa;
  font-size: 14px;
  letter-spacing: 0.05em;
  font-family: "SFMono-Regular", ui-monospace, Consolas, "Courier New", monospace;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card-input::placeholder { color: #5c6f83; letter-spacing: 0.04em; }
.card-input:focus { border-color: #2f8fdc; box-shadow: 0 0 0 3px rgba(47, 143, 220, 0.14); }
.card-input.is-error { border-color: #b23c3c; box-shadow: 0 0 0 3px rgba(178, 60, 60, 0.14); }

.hint {
  margin: 9px 0 18px;
  font-size: 12px;
  color: var(--txt-mute);
  letter-spacing: 0.02em;
}

.btn-deploy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  border: 1px solid #2b8fe0;
  border-radius: 2px;
  background: linear-gradient(180deg, #1d7cc9 0%, #1663ad 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s, transform 0.06s;
  user-select: none;
}
.btn-deploy:hover { filter: brightness(1.12); }
.btn-deploy:active { transform: translateY(1px); }
.btn-deploy[disabled] { filter: saturate(0.5) brightness(0.8); cursor: progress; }
.btn-deploy.is-ok { background: linear-gradient(180deg, #1f9d5a 0%, #157347 100%); border-color: #37c47a; }
.btn-deploy.is-bad { background: linear-gradient(180deg, #a83232 0%, #7e2323 100%); border-color: #d05252; }
.tri { font-size: 12px; }

.msg {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--txt-mute);
}
.msg.is-ok { color: var(--ok); }
.msg.is-bad { color: var(--danger); }

.meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 11.5px;
  color: #6f8298;
}
.meta:empty { display: none; }

.foot {
  margin: 8px 0 26px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: #4f6479;
  text-transform: uppercase;
}

/* 动效 */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.shake { animation: shake 0.36s ease-in-out; }

@media (max-width: 480px) {
  .wrap { padding: 30px 12px 22px; }
  .brand { font-size: 25px; letter-spacing: 0.24em; text-indent: 0.24em; }
  .brand-sub { font-size: 9px; letter-spacing: 0.3em; text-indent: 0.3em; }
  .notice-row { font-size: 12.5px; }
  .panel { padding: 24px 16px 18px; }
  .btn-deploy { font-size: 13.5px; letter-spacing: 0.12em; }
  .log-line { font-size: 12.5px; line-height: 1.95; }
}
