/* HUANFEITECH 蔚来回执 · 企业风格样式 */

:root {
  --navy-950: #081726;
  --navy-900: #0b1f33;
  --navy-800: #12293f;
  --navy-700: #1a3a57;
  --blue-600: #1f5fbf;
  --blue-500: #2e6fd1;
  --blue-100: #e3edf9;
  --gold: #b9922f;
  --ink-900: #16202b;
  --ink-600: #4a5a6a;
  --ink-400: #8a97a6;
  --line: #d9e0ea;
  --bg: #f2f4f8;
  --card: #ffffff;
  --amber-700: #a8690f;
  --amber-bg: #fbf1dc;
  --green-700: #1e7a46;
  --green-bg: #e4f3ea;
  --red-600: #c0392b;
}

* { margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.6;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1180px; }

/* ---------- 页头 ---------- */

.site-header {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.logo {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.32em;
  white-space: nowrap;
}

.logo-main { color: #ffffff; }
.logo-tail { color: #7ea6d9; }

.header-tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.62);
}

.admin-header-right { display: flex; align-items: center; gap: 16px; }

.admin-badge {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 3px 10px;
  border-radius: 3px;
}

.logout-link { color: rgba(255, 255, 255, 0.72); font-size: 13px; text-decoration: none; }
.logout-link:hover { color: #fff; text-decoration: underline; }

.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue-600) 45%, var(--navy-800));
}

/* ---------- 主体 ---------- */

.page-head { margin: 34px 0 6px; }

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-900);
  padding-left: 12px;
  border-left: 4px solid var(--gold);
  line-height: 1.3;
}

.page-sub {
  margin-top: 6px;
  padding-left: 16px;
  color: var(--ink-600);
  font-size: 14px;
}

/* ---------- 步骤条 ---------- */

.steps {
  display: flex;
  list-style: none;
  margin: 26px 0 18px;
  padding: 0;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  color: var(--ink-400);
  font-size: 13px;
}

.step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #d7dfe9;
}

.step:first-child::before { display: none; }

.step .num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dfe6ef;
  color: var(--ink-400);
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid #c9d3e0;
  margin-bottom: 4px;
}

.step .lbl { display: block; }

.step.active { color: var(--ink-900); font-weight: 600; }
.step.active .num { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.step.done { color: var(--ink-600); }
.step.done .num { background: var(--blue-100); color: var(--blue-600); border-color: #bcd0ec; }
.step.done::before { background: #bcd0ec; }

/* ---------- 卡片与表单 ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 35, 60, 0.06);
  padding: 28px;
}

.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; }

.input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  border: 1px solid #c4cfdd;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink-900);
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(31, 95, 191, 0.14);
}

.input.is-ro { background: #f3f6fa; color: #5a6a7c; border-color: #dbe2ec; }
.input.is-locked { background: #eef1f6; color: #5a6a7c; }
.input::placeholder { color: #a7b2c0; }

.label {
  display: block;
  font-size: 13px;
  color: var(--ink-600);
  margin: 16px 0 6px;
  font-weight: 600;
}

.optional { color: var(--ink-400); font-weight: 400; }

.err { color: var(--red-600); font-size: 13px; margin: 8px 0 0; }

.hint { color: var(--ink-400); font-size: 12.5px; margin-top: 10px; line-height: 1.7; }

.hint.secure {
  background: #f6f8fb;
  border-left: 3px solid var(--blue-600);
  padding: 8px 10px;
  border-radius: 0 4px 4px 0;
}

.sec-title { font-size: 16px; color: var(--ink-900); margin: 8px 0 2px; font-weight: 600; }
.sec-title.sec-gap { margin-top: 22px; }
.sec-note { font-size: 13px; color: var(--ink-400); margin: 0 0 4px; }

.divider { height: 1px; background: var(--line); margin: 4px 0 18px; }

.btn {
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 6px;
  background: var(--navy-800);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: 0.05em;
  font-family: inherit;
  transition: background 0.15s;
}

.btn:hover { background: var(--navy-700); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-block { width: 100%; margin-top: 18px; }

.footnote { color: var(--ink-400); font-size: 12.5px; margin: 18px 2px 0; }

/* ---------- 回执结果 ---------- */

.receipt { text-align: left; }

.status-chip {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.status-chip.s0 { background: var(--amber-bg); color: var(--amber-700); }
.status-chip.s1 { background: var(--blue-100); color: var(--blue-600); }
.status-chip.s2 { background: var(--green-bg); color: var(--green-700); }

.receipt-title { font-size: 18px; margin: 14px 0 4px; color: var(--ink-900); line-height: 1.5; }

.receipt-list { margin: 16px 0 0; border-top: 1px solid var(--line); }

.rrow { display: flex; border-bottom: 1px solid #e8edf3; padding: 10px 2px; }
.rrow dt { width: 96px; flex: none; color: var(--ink-600); font-size: 13.5px; }
.rrow dd { margin: 0; font-size: 14.5px; color: var(--ink-900); word-break: break-all; }

.amount { font-size: 16px; font-weight: 600; }

.receipt-note { font-size: 12.5px; color: var(--ink-400); margin-top: 14px; }

/* ---------- 管理后台 ---------- */

.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 22px; }

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--ink-600);
  min-width: 96px;
}

.stat b { display: block; font-size: 22px; color: var(--ink-900); margin-top: 2px; }

.admin-sec { margin-top: 8px; }
.admin .sec-note { margin-bottom: 10px; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 26px;
}

table.admin { border-collapse: collapse; width: 100%; min-width: 1060px; font-size: 13.5px; }

.admin th {
  background: #f4f7fa;
  color: var(--ink-600);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f6;
  vertical-align: top;
  color: var(--ink-900);
}

.admin tr:last-child td { border-bottom: none; }

.admin .empty { text-align: center; color: var(--ink-400); padding: 28px 0; }

.mono { font-family: Consolas, Menlo, "Courier New", monospace; font-size: 13px; }
.nowrap { white-space: nowrap; }
.sub-text { color: var(--ink-400); font-size: 12px; }

.card-cell { max-width: 240px; word-break: break-all; }

.copy-btn {
  border: 1px solid #c4cfdd;
  background: #fff;
  border-radius: 4px;
  height: 24px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--ink-600);
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
}

.copy-btn:hover { border-color: var(--blue-600); color: var(--blue-600); }

.status-form { display: flex; gap: 6px; align-items: center; }

.status-select {
  height: 32px;
  border: 1px solid #c4cfdd;
  border-radius: 5px;
  padding: 0 6px;
  font-size: 13px;
  color: var(--ink-900);
  background: #fff;
  font-family: inherit;
}

.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 5px; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-done { background: var(--green-bg); color: var(--green-700); }
.badge-wait { background: var(--amber-bg); color: var(--amber-700); }

/* ---------- 登录页 ---------- */

.login-wrap { max-width: 420px; margin: 0 auto; padding: 72px 16px 0; }

.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand .logo { font-size: 22px; }

.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 10px 28px rgba(15, 35, 60, 0.08);
}

.login-title { font-size: 20px; font-weight: 600; color: var(--ink-900); }
.login-sub { font-size: 13px; color: var(--ink-400); margin: 4px 0 10px; }
.login-err { margin-bottom: 4px; }

/* ---------- 页脚 ---------- */

.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.55); margin-top: 56px; }

.footer-inner {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.footer-brand { letter-spacing: 0.3em; font-weight: 600; color: rgba(255, 255, 255, 0.78); }

/* ---------- 移动端 ---------- */

@media (max-width: 560px) {
  .card { padding: 20px 16px; }
  .page-head { margin-top: 26px; }
  .page-title { font-size: 21px; }
  .header-inner { height: 58px; }
  .logo { font-size: 17px; letter-spacing: 0.24em; }
  .header-tag { display: none; }
  .step { font-size: 12px; }
  .rrow dt { width: 86px; }
  .input-row { flex-direction: column; }
  .input-row .btn { width: 100%; }
}
