/* 面试作战助手 · 前端通用样式（移动端优先） */
:root {
  --brand: #1a8fe3;
  --brand-soft: #eef7fe;
  --brand-line: #c8e3f8;
  --ink: #1b1d21;
  --ink-2: #4a4f57;
  --ink-3: #7b828c;
  --bg: #f6f7f9;
  --card: #fff;
  --line: #e6e8ec;
  --green: #0a8a5f;
  --green-bg: #eaf7f1;
  --amber: #a5690a;
  --amber-bg: #fdf4e3;
  --red: #b42318;
  --red-bg: #fef3f2;
  --gold-bg: linear-gradient(135deg, #fdf3d8 0%, #f8e3ab 100%);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.7; font-size: 15px;
  min-height: 100vh; display: flex; flex-direction: column;
}
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 18px 48px; flex: 1; }

.brand {
  display: inline-flex; align-items: center; gap: 7px; background: var(--gold-bg);
  border: 1px solid #e8cc86; color: #6b5210; font-size: 12.5px; font-weight: 700;
  letter-spacing: .3px; padding: 5px 13px; border-radius: 999px; margin-bottom: 16px;
}
h1 { font-size: 23px; line-height: 1.4; font-weight: 800; letter-spacing: -.3px; margin-bottom: 10px; }
h2 { font-size: 17px; font-weight: 800; margin: 26px 0 10px; }
.sub { color: var(--ink-2); font-size: 14px; margin-bottom: 22px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.hint { font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-bottom: 8px; line-height: 1.6; }
input[type="text"], textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fcfcfd; line-height: 1.6;
}
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
textarea { min-height: 150px; resize: vertical; }
.field { margin-bottom: 18px; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: none; border-radius: 10px; padding: 14px 20px;
  font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
  background: var(--brand); color: #fff; text-decoration: none; transition: opacity .15s;
}
button:hover, .btn:hover { opacity: .9; }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand-line); }
.btn.ghost:hover { background: var(--brand-soft); }

.msg { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; display: none; border: 1px solid; line-height: 1.65; }
.msg.show { display: block; }
.msg.err { background: var(--red-bg); border-color: #f5c9c4; color: var(--red); }
.msg.ok { background: var(--green-bg); border-color: #c6e8d8; color: var(--green); }
.msg.info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }

.token {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 19px; font-weight: 700;
  letter-spacing: 2px; color: var(--brand); background: var(--brand-soft);
  border: 1px dashed var(--brand-line); border-radius: 10px; padding: 14px; text-align: center;
  word-break: break-all; margin: 12px 0;
}

.steps { list-style: none; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #f0f1f4; font-size: 14px; color: var(--ink-3); }
.steps li:last-child { border-bottom: none; }
.steps .dot { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #f0f1f4; color: var(--ink-3); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.steps li span:nth-child(2) { flex: 1; }
.steps .check { flex: 0 0 auto; color: var(--green); font-weight: 800; font-size: 15px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s; }
.steps li.done { color: var(--ink); }
.steps li.done .dot { background: var(--green-bg); color: var(--green); }
.steps li.done .check { opacity: 1; transform: scale(1); }
.steps li.active { color: var(--ink); font-weight: 700; }
.steps li.active .dot { background: var(--brand); color: #fff; }

.bar { height: 6px; background: #eceef1; border-radius: 99px; overflow: hidden; margin: 18px 0 8px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .5s ease; }

.spin { width: 30px; height: 30px; border: 3px solid var(--brand-line); border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 16px; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

footer { text-align: center; font-size: 12px; color: var(--ink-3); padding: 20px; line-height: 1.8; }
.faq { font-size: 13.5px; color: var(--ink-2); }
.faq dt { font-weight: 700; color: var(--ink); margin-top: 12px; }

/* ---- 文件上传 ---- */
.drop {
  border: 1.5px dashed var(--brand-line); border-radius: 10px; padding: 18px 14px;
  text-align: center; background: #fcfcfd; cursor: pointer; transition: border-color .15s, background .15s;
  display: block; width: 100%; font-family: inherit;
}
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop.busy { opacity: .6; pointer-events: none; }
.drop .ic { font-size: 20px; line-height: 1; margin-bottom: 6px; }
.drop .t { font-weight: 700; font-size: 14px; color: var(--ink); }
.drop .s { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--ink-3); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.us { font-size: 12.5px; border-radius: 8px; padding: 9px 11px; margin-bottom: 9px; display: none; border: 1px solid; line-height: 1.6; }
.us.show { display: block; }
.us.ok { background: var(--green-bg); border-color: #c6e8d8; color: var(--green); }
.us.err { background: var(--red-bg); border-color: #f5c9c4; color: var(--red); }
.us.warn { background: var(--amber-bg); border-color: #f0dcb4; color: var(--amber); }
.us.info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.us .fn { font-weight: 700; }
.filepick { display: none; }
@media (prefers-reduced-motion: reduce) { .drop { transition: none; } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
