/* HEU 实名认证（学生证）· 独立页面追加样式
 *
 * 这份文件只**追加** base.css 里没有的东西；base.css 是从
 * platform/server-square/web/assets/square.css 逐字节拷贝过来的共用样式
 * （设计令牌、卡片、按钮、chip、note、表单、tabs、stat、toast、spinner 都在那里）。
 * 这样两个独立页面的观感与已经过所有者评审的服务器广场页面一致，
 * 而不是再发明一套。
 */

/* ---------------------------------------------------------- 登录门 ---- */
.gate-icon { font-size: 26px; margin-bottom: 6px; }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tech { margin-top: 22px; font-size: 12.5px; color: var(--text-3); }
.tech summary { cursor: pointer; }
.tech pre {
  white-space: pre-wrap;
  word-break: break-all;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin: 8px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

/* ------------------------------------------------------- 说明与隐私 ---- */
.steps { margin: 0; padding-left: 22px; }
.steps li { margin: 7px 0; }
.steps b { font-weight: 650; }

.privacy p { margin: 0 0 12px; }
.privacy p:last-child { margin-bottom: 0; }
.privacy b { font-weight: 650; }
.privacy code {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}
.privacy .emphasis {
  background: var(--brand-container);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 12px 0 0;
}

/* --------------------------------------------------------- 状态条 ---- */
.state-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.state-strip__main { flex: 1 1 260px; }
.state-strip__title { font-size: 17px; font-weight: 700; }
.state-strip__sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.state-lamp {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: var(--disabled);
}
.state-lamp--ok { background: var(--success); }
.state-lamp--wait { background: var(--warning); }
.state-lamp--bad { background: var(--error); }

/* --------------------------------------------------------- 上传区 ---- */
.photo-drop {
  width: 100%;
  min-height: 168px;
  cursor: pointer;
}
.photo-drop__hint { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }
.photo-preview {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface-muted);
}
.photo-preview img {
  max-width: 260px; max-height: 200px; width: auto; height: auto;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  display: block;
}
.photo-preview__meta { font-size: 12.5px; color: var(--text-3); line-height: 1.8; }
.req-list { margin: 0; padding-left: 20px; }
.req-list li { margin: 5px 0; }
.req-list code {
  background: var(--surface-muted); border: 1px solid var(--border);
  border-radius: 5px; padding: 0 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
}

/* --------------------------------------------------------- 表格 ---- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; font-weight: 600; color: var(--text-3);
  font-size: 12px; letter-spacing: .2px;
  padding: 9px 12px; border-bottom: 1px solid var(--divider);
  white-space: nowrap;
}
table.tbl td {
  padding: 10px 12px; border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr.is-on { background: var(--brand-container); }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl tbody tr.clickable:hover { background: var(--surface-muted); }
table.tbl td.num { font-variant-numeric: tabular-nums; }

/* CJK wraps at ANY character by default, so a squeezed column turns 哈尔滨工程大学 into one
 * character per line -- measured on the real queue table before this rule existed. Keep
 * identifier-ish cells on one line and let the table scroll horizontally instead; only the
 * free-text cells (驳回理由) are allowed to wrap. */
table.tbl--nowrap th, table.tbl--nowrap td { white-space: nowrap; }
table.tbl--nowrap td.wrap { white-space: normal; min-width: 210px; max-width: 320px; }
table.tbl--queue { min-width: 940px; }
table.tbl--mine { min-width: 820px; }

/* ----------------------------------------------------- 状态计数卡片 ---- */
.wrap--wide { max-width: 1440px; }
.admin--wide { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }
@media (max-width: 1120px) { .admin--wide { grid-template-columns: 1fr; } }

.count-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}
.count-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); padding: 11px 13px; cursor: pointer;
  text-align: left; font: inherit; color: inherit;
}
.count-card:hover { border-color: var(--brand); }
.count-card.is-on { border-color: var(--brand); background: var(--brand-container); }
.count-card__n { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.count-card__l { font-size: 12px; color: var(--text-3); }
.count-card--pending .count-card__n { color: var(--warning); }
.count-card--approved .count-card__n { color: var(--success); }

/* -------------------------------------------------------- 照片查看 ---- */
.viewer {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  padding: 12px;
  text-align: center;
}
.viewer img {
  max-width: 100%; max-height: 460px; width: auto; height: auto;
  border-radius: 8px; border: 1px solid var(--border);
  background: #fff; display: block; margin: 0 auto;
}
.viewer__ph { color: var(--text-3); font-size: 13px; padding: 26px 8px; }
.viewer__meta {
  margin-top: 10px; font-size: 12px; color: var(--text-3);
  font-variant-numeric: tabular-nums; line-height: 1.7; text-align: left;
}
.audit-note {
  font-size: 12.5px; color: var(--text-3);
  border-left: 3px solid var(--warning); padding-left: 10px; margin-top: 10px;
}

/* ------------------------------------------------------- 不可修改 ---- */
.guard {
  border: 1px solid var(--border);
  border-left: 4px solid var(--error);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  padding: 12px 14px;
  font-size: 13px;
}
.guard b { font-weight: 650; }

/* --------------------------------------------------------- 台账 ---- */
.log-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.log-list li {
  padding: 9px 0; border-bottom: 1px solid var(--divider);
  display: flex; gap: 12px; align-items: baseline;
}
.log-list li:last-child { border-bottom: 0; }
.log-list__act { flex: none; min-width: 118px; font-weight: 600; }
.log-list__when { flex: none; color: var(--text-3); font-size: 12px; min-width: 128px; }
.log-list__who { color: var(--text-3); font-size: 12px; }
.log-list__detail { color: var(--text-2); font-size: 12.5px; }

/* ---------------------------------------------------------- 其他 ---- */
.divider { height: 1px; background: var(--divider); margin: 20px 0; border: 0; }
.h3 { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
.rate-line { font-size: 12.5px; color: var(--text-3); margin-top: 10px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; }
.inline-form .field--grow { flex: 1 1 220px; }
.reason-box { width: 100%; min-height: 74px; resize: vertical; }
.pill {
  display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-muted); color: var(--text-3); border: 1px solid var(--border);
}
.pill--warn { background: var(--warning-container); color: #7a4600; border-color: transparent; }
@media (prefers-color-scheme: dark) { .pill--warn { color: #ffc46b; } }
.stack > * + * { margin-top: 16px; }
.mono-sm {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; word-break: break-all;
}
