/* 公共样式 - 录用证明H5 */
/* 品牌主色（取自检验医学新媒体logo：深蓝+亮蓝+红十字） */
:root {
  --brand-primary: #1D2087;     /* 深蓝（logo上弧深色部分） */
  --brand-accent: #05A2E9;      /* 亮蓝（logo上弧亮色部分） */
  --brand-dark: #1D2087;        /* 深蓝（标题/重点文字） */
  --brand-light-bg: #E8F2FB;    /* 极浅蓝（次要按钮/卡片底色） */
  --brand-light-border: #B5D9F2;/* 浅蓝（边框/分割线） */
  --brand-red: #E50112;         /* 红（logo十字/错误提示） */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #f5f5f3;
  color: #2c2c2a;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.app {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.header {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--brand-red);
}
.header h1 { font-size: 17px; font-weight: 600; flex: 1; text-align: center; }
.header .back { color: #fff; text-decoration: none; font-size: 14px; width: 40px; }
.header .placeholder { width: 40px; }
.content { flex: 1; padding: 20px 18px 30px; }
.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 10px;
}
.step { flex: 1; text-align: center; position: relative; }
.step .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e4e3df;
  color: #888780;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.step.active .dot { background: var(--brand-primary); color: #fff; }
.step.done .dot { background: var(--brand-light-border); color: var(--brand-dark); }
.step .label { font-size: 12px; color: #888780; }
.step.active .label { color: var(--brand-primary); font-weight: 600; }
.card {
  background: #f8f8f6;
  border: 1px solid #e4e3df;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--brand-primary);
  border-radius: 2px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  color: #585854;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d6cf;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--brand-primary); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: #888780; margin-top: 4px; }
.link-item { display: flex; gap: 8px; margin-bottom: 8px; }
.link-item .form-input { flex: 1; }
.link-item .btn-remove {
  background: #fff;
  border: 1px solid #f0cfca;
  color: #791F1F;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  cursor: pointer;
}
.add-link {
  background: #fff;
  border: 1px dashed var(--brand-light-border);
  color: var(--brand-dark);
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 14px;
}
.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}
.btn:active { opacity: 0.7; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-secondary { background: var(--brand-light-bg); color: var(--brand-dark); border: 1px solid var(--brand-light-border); }
.btn-ghost { background: transparent; color: #585854; border: 1px solid #d8d6cf; }
.btn-danger { background: transparent; color: #791F1F; border: 1px solid #f0cfca; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.info-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #e4e3df;
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: #888780; min-width: 80px; flex-shrink: 0; }
.info-value { flex: 1; color: #2c2c2a; word-break: break-all; }
.tip {
  background: #f0f6fd;
  border: 1px solid #c5dcf5;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #0C447C;
  margin: 12px 0;
}
.tip-amber { background: #fdf8ee; border-color: #f0dfb5; color: #633806; }
.tip-red { background: #fef6f5; border-color: #f0cfca; color: #791F1F; }
.article-item {
  background: #fff;
  border: 1px solid #e4e3df;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.article-item.has-error { border-color: #f0cfca; background: #fef6f5; }
.article-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.4;
}
.article-meta { font-size: 12px; color: #888780; }
.article-actions { margin-top: 10px; display: flex; gap: 8px; }
.article-actions .btn { flex: 1; padding: 8px; font-size: 13px; }
.loading {
  text-align: center;
  padding: 40px 20px;
  color: #888780;
  font-size: 14px;
}
.loading .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e4e3df;
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  max-width: 80%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.show { opacity: 1; }
.footer { text-align: center; padding: 20px; color: #888780; font-size: 12px; }