:root {
  --eo-ink: #12141a;
  --eo-ink-2: #1c2030;
  --eo-sand: #e8e2d6;
  --eo-fog: #9aa3b5;
  --eo-line: rgba(255, 255, 255, 0.08);
  --eo-amber: #d4a017;
  --eo-amber-dim: rgba(212, 160, 23, 0.15);
  --eo-ok: #3d9a6a;
  --eo-warn: #c9852a;
  --eo-danger: #c44b4b;
  --eo-info: #4a7fd4;
  --admin-bg: #f3f1ec;
  --admin-card: #ffffff;
  --admin-ink: #1a1d26;
  --admin-muted: #6b7285;
  --admin-line: #e5e1d8;
  --admin-accent: #1f4b3a;
  --admin-accent-2: #c45c26;
  --radius: 12px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Segoe UI Semibold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--eo-sand);
  background: var(--eo-ink);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
img { max-width: 100%; display: block; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--eo-line);
  background: rgba(255,255,255,0.04);
}
.badge.ok { color: #8fd4b0; border-color: rgba(61,154,106,.4); background: rgba(61,154,106,.12); }
.badge.warn { color: #f0c27a; border-color: rgba(201,133,42,.4); background: rgba(201,133,42,.12); }
.badge.danger { color: #f0a0a0; border-color: rgba(196,75,75,.4); background: rgba(196,75,75,.12); }
.badge.info { color: #a8c4f0; border-color: rgba(74,127,212,.4); background: rgba(74,127,212,.12); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--eo-amber);
  color: #1a1408;
  font-weight: 600;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost {
  background: transparent;
  border-color: var(--eo-line);
  color: var(--eo-sand);
}
.btn.soft {
  background: var(--eo-amber-dim);
  color: var(--eo-amber);
  border-color: rgba(212,160,23,.35);
}
.btn.danger {
  background: rgba(196,75,75,.18);
  color: #f0a0a0;
  border-color: rgba(196,75,75,.4);
}
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--eo-fog);
  margin-bottom: 6px;
}
.field label .req { color: #e07a5f; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--eo-line);
  background: rgba(255,255,255,0.03);
  outline: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(212,160,23,.55);
  box-shadow: 0 0 0 3px var(--eo-amber-dim);
}
.hint { font-size: 12px; color: var(--eo-fog); margin-top: 6px; }
.err { color: #f0a0a0; font-size: 12px; margin-top: 6px; }

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.upload-card {
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 12px;
  min-height: 110px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  text-align: center;
  font-size: 13px;
  color: var(--eo-fog);
}
.upload-card.on {
  border-style: solid;
  border-color: rgba(61,154,106,.5);
  background: rgba(61,154,106,.1);
  color: #8fd4b0;
}
.upload-card .ico { font-size: 22px; opacity: .8; }

.steps {
  display: flex;
  gap: 6px;
  margin: 8px 0 20px;
  overflow-x: auto;
}
.step-dot {
  flex: 1;
  min-width: 64px;
  text-align: center;
  font-size: 11px;
  color: var(--eo-fog);
}
.step-dot .bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 6px;
}
.step-dot.active .bar, .step-dot.done .bar { background: var(--eo-amber); }
.step-dot.active { color: var(--eo-sand); }

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--eo-line);
  border-radius: var(--radius);
  padding: 16px;
}
.card + .card { margin-top: 12px; }
.card h3 { margin: 0 0 8px; font-size: 15px; font-family: var(--display); }
.muted { color: var(--eo-fog); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.hr { height: 1px; background: var(--eo-line); margin: 16px 0; border: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #2a3144;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 99;
  font-size: 14px;
  border: 1px solid var(--eo-line);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--eo-line);
  font-size: 13px;
  cursor: pointer;
  background: transparent;
}
.chip.on {
  border-color: rgba(212,160,23,.5);
  background: var(--eo-amber-dim);
  color: var(--eo-amber);
}

.callout {
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(212,160,23,.08);
  border: 1px solid rgba(212,160,23,.25);
  color: #e8d5a3;
  font-size: 13px;
}
.callout.danger {
  background: rgba(196,75,75,.1);
  border-color: rgba(196,75,75,.3);
  color: #f0b0b0;
}
.callout.info {
  background: rgba(74,127,212,.1);
  border-color: rgba(74,127,212,.3);
  color: #b8cef0;
}

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 2px solid rgba(255,255,255,0.1);
  margin-left: 8px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--eo-fog);
}
.timeline li.done::before { background: var(--eo-ok); }
.timeline li.current::before { background: var(--eo-amber); box-shadow: 0 0 0 4px var(--eo-amber-dim); }
.timeline .t-title { font-size: 14px; }
.timeline .t-sub { font-size: 12px; color: var(--eo-fog); }

.empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--eo-fog);
}
