:root {
  --primary: #2f6fed;
  --primary-dark: #1d4fbf;
  --primary-light: #eaf1ff;
  --bg: #f5f7fc;
  --card: #ffffff;
  --text: #1f2533;
  --muted: #6b7488;
  --line: #e8ecf4;
  --ok: #18a058;
  --warn: #e8830c;
  --danger: #e54848;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 2px 14px rgba(28, 60, 130, 0.07);
  --shadow-lg: 0 14px 40px rgba(28, 60, 130, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

/* 顶栏 */
.topbar {
  display: flex; align-items: center; gap: 24px;
  height: 62px; padding: 0 26px;
  background: linear-gradient(95deg, var(--primary), var(--primary-dark));
  color: #fff; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 18px rgba(28, 60, 130, 0.22);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px; background: transparent; color: var(--primary);
  display: grid; place-items: center; font-weight: 900; font-size: 19px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.brand-name { white-space: nowrap; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a {
  color: rgba(255,255,255,.85); text-decoration: none; padding: 8px 14px; border-radius: 9px;
  font-size: 15px; transition: .15s;
}
.nav a:hover { background: rgba(255,255,255,.16); color: #fff; }
.nav a.active { background: transparent; color: var(--primary); font-weight: 600; }
.nav a.nav-user { background: rgba(255,255,255,.22); font-weight: 600; }
.nav a.nav-logout { background: rgba(255,255,255,.1); }

/* 布局 */
.layout { display: flex; min-height: calc(100vh - 62px - 56px); }
.sidebar {
  width: 224px; background: #fff; border-right: 1px solid var(--line);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 4px;
}
.sidebar-group { font-size: 12px; color: var(--muted); margin: 16px 10px 4px; font-weight: 800; letter-spacing: .6px; }
.sidebar a {
  display: block; padding: 10px 13px; border-radius: 9px; color: var(--text);
  text-decoration: none; font-size: 14px; transition: .15s;
}
.sidebar a:hover { background: var(--primary-light); }
.sidebar a.active { background: var(--primary); color: #fff; font-weight: 600; }
.sidebar a.exit { margin-top: auto; color: var(--danger); }
.app { flex: 1; padding: 26px; }
.footer {
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; background: #fff; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.footer-links { display: flex; gap: 18px; }
.footer a { color: var(--primary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
body:not(.admin-layout) .sidebar { display: none; }
body:not(.admin-layout) .app { max-width: 100%; }

/* 通用卡片/按钮 */
.exam-page, .exam-detail, .auth-page { max-width: 980px; margin: 0 auto; }
.exam-card, .review-card, .admit-card, .info-box, .auth-card, .exam-apply-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 10px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: .15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(47,111,237,.28); }
.btn.primary:hover { background: var(--primary-dark); color: #fff; }
.btn.danger, .danger { color: var(--danger); }
.btn.danger:hover { background: #fff0f0; border-color: var(--danger); color: var(--danger); }
.btn.secondary, .secondary { background: #f1f4fa; border-color: #e8ecf4; }
.btn.small, .small { font-size: 13px; padding: 7px 13px; }
.center-empty { text-align: center; color: var(--muted); padding: 64px 20px; }

/* 招考列表 */
.exam-list { display: block; margin-top: 20px; }
.exam-featured {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  min-height: 200px; display: flex; align-items: flex-end; margin-bottom: 22px;
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: var(--shadow-lg);
}
.exam-featured.has-banner { background-size: cover; background-position: center; }
.exam-featured-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.62) 100%); }
.exam-featured-body { position: relative; z-index: 1; padding: 26px 28px; }
.exam-featured-tag { display: inline-block; background: rgba(255,255,255,.22); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.exam-featured-title { margin: 12px 0 10px; font-size: 24px; font-weight: 800; line-height: 1.35; }
.exam-featured-meta { display: flex; gap: 10px; }
.exam-featured-meta .tag { background: rgba(255,255,255,.2); color: #fff; }
.exam-featured-meta .tag-gray { background: rgba(255,255,255,.14); color: #eef2fb; }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.exam-card { display: flex; flex-direction: column; transition: .18s; cursor: pointer; overflow: hidden; padding: 0; }
.exam-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cdd9f5; }
.exam-card-banner { height: 140px; background-size: cover; background-position: center; background-color: #eef1f7; }
.exam-card-body { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px; }
.exam-card-title { font-size: 17px; font-weight: 800; line-height: 1.4; }
.exam-card-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; }
.exam-card-summary { color: #4a5266; }
.exam-card-date { color: var(--primary); font-size: 13px; font-weight: 700; }

/* 报名触发与提示 */
.btn.lg { padding: 13px 26px; font-size: 15px; }
.exam-apply-trigger { width: 100%; margin-top: 8px; }
.muted-text { color: var(--muted); margin: 6px 0; }
.apply-form-remark { color: var(--muted); font-size: 13px; margin: 4px 0 16px; background: #f6f8fc; border-left: 3px solid var(--primary-light); padding: 8px 12px; border-radius: 0 6px 6px 0; }

/* 标签 */
.tag {
  display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--primary-light); color: var(--primary); margin-right: 6px;
}
.tag-gray { background: #eef0f5; color: var(--muted); }
.tag-ok { background: #e6f7ee; color: var(--ok); }
.tag-warn { background: #fff3e2; color: var(--warn); }
.tag-bad { background: #fdeaea; color: var(--danger); }
.tag-info { background: #e7efff; color: var(--primary); }

/* 详情页 */
.exam-detail-meta-top { margin: 6px 0 10px; color: var(--muted); font-size: 13px; }
.exam-publish-date { display: inline-block; padding: 4px 10px; background: #f1f4fa; border-radius: 6px; }
.exam-banner { margin: 14px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.exam-banner img { width: 100%; height: auto; display: block; }
.exam-editor { min-height: 220px; background: #fff; border-radius: var(--radius-sm); }
.exam-editor .ql-editor { min-height: 220px; font-size: 15px; line-height: 1.8; }
.exam-content { line-height: 1.8; }
.exam-content img { max-width: 100%; border-radius: 8px; }
.exam-content table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.exam-content th, .exam-content td { border: 1px solid var(--line); padding: 8px 10px; }
.exam-hero {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius); padding: 30px 28px; margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(28,60,130,.22);
}
.exam-hero h1 { margin: 0 0 10px; font-size: 26px; letter-spacing: .5px; }
.exam-hero p { margin: 0; opacity: .92; font-size: 14px; }

/* 我的报名卡片 */
.mine-card { padding: 0; cursor: default; }
.mine-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mine-head .exam-card-title { flex: 1; min-width: 120px; }
.mine-head .exam-card-meta { display: flex; align-items: center; gap: 8px; }
.mine-head .edit-count { font-size: 12px; color: var(--muted); }
.mine-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.mine-body .text-btn { align-self: flex-start; background: transparent; color: var(--primary); padding: 0; border: none; box-shadow: none; }
.mine-body .text-btn:hover { text-decoration: underline; }
.mine-detail { background: #f7f9fc; border-radius: var(--radius-sm); padding: 12px 14px; }
.apply-email-box { display: inline-block; background: #f1f4fa; border-radius: var(--radius-sm); padding: 10px 14px; }
.apply-email { font-weight: 700; color: var(--primary); text-decoration: none; }
.apply-email:hover { text-decoration: underline; }
.exam-info, .info-box { margin-top: 16px; }
.info-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.info-k { width: 96px; color: var(--muted); flex: none; }
.info-v { flex: 1; }

/* 报名表单 / 认证表单 */
.apply-form, .auth-form { display: grid; gap: 15px; margin-top: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; color: var(--muted); font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  background: #fbfcfe; transition: .15s;
}
.form-row input:hover, .form-row select:hover, .form-row textarea:hover { border-color: #c5d4f3; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(47,111,237,.13); }

/* 考生认证页 */
.auth-page { display: grid; place-items: center; min-height: 62vh; }
.auth-card { width: 380px; max-width: 92vw; border-top: 4px solid var(--primary); }
.auth-card h2 { margin: 4px 0 18px; font-size: 21px; text-align: center; }
.switch-link { text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.switch-link a { color: var(--primary); font-weight: 600; }

/* 准考证 / 成绩 */
.admit-card { border-left: 4px solid var(--primary); margin-top: 14px; }
.admit-title { font-weight: 800; margin-bottom: 10px; }
.score-box { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; padding: 14px 16px; background: var(--primary-light); border-radius: var(--radius-sm); font-weight: 600; }
.score-box .num { font-size: 28px; font-weight: 800; color: var(--primary); }
.review-card { margin-top: 14px; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-info { color: var(--muted); font-size: 13px; }

/* 后台表格 */
.admin-table-wrap { overflow-x: auto; margin-top: 16px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.admin-table th { background: #f5f8ff; color: var(--muted); font-weight: 700; }
.admin-table tr:hover td { background: #fafbff; }
.toolbar { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.admin-section { margin-bottom: 30px; }
.admin-section h2 { font-size: 19px; margin: 20px 0 12px; }

/* 通知 */
.notif-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; overflow: hidden; }
.notif-header { padding: 13px 16px; background: var(--primary-light); color: var(--primary-dark); font-weight: 700; cursor: pointer; user-select: none; }
.notif-list { border-top: 1px solid var(--line); }
.notif-item { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.notif-item.read { opacity: .75; background: #fafbff; }
.notif-item.read .notif-title { font-weight: 400; }
.notif-title { font-weight: 700; margin-bottom: 4px; }
.notif-content { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.notif-time { color: #9aa3b6; font-size: 12px; }

/* 后台登录表单 */
.admin-login-form { display: flex; flex-direction: column; gap: 14px; }
.admin-login-form .form-row { display: flex; flex-direction: column; gap: 6px; }
.admin-login-form .form-row label { font-size: 13px; color: var(--muted); font-weight: 600; }
.admin-login-form input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.admin-login-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,111,237,.13); }
.admin-login-form button[type="submit"] { width: 100%; margin-top: 4px; }

/* 公益助残入口（保留以备内页引用） */
.relief-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 16px; }
.relief-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); transition: .15s; }
.relief-tile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }

/* 招考看板 */
.exam-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 18px; }
.exam-card .num { font-size: 32px; font-weight: 800; color: var(--primary); }
.exam-card .lbl { color: var(--muted); }

/* 提示与杂项 */
.warn-text { color: var(--warn); font-size: 13px; }
.logo-preview, .banner-preview {
  width: 80px; height: 80px; border-radius: 10px; border: 1px dashed var(--line);
  background: #f7f9fc center/cover no-repeat; margin: 6px 0;
}
.banner-preview { width: 100%; height: 120px; border-radius: var(--radius-sm); }
.hint { color: var(--muted); font-size: 12px; margin-top: 10px; }
.opt-group { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 13px; transition: .15s; }
.opt:hover { border-color: var(--primary); }
.opt.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.file-list { margin-top: 10px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 9px 13px; background: #f7f9fc; border-radius: 8px; margin-bottom: 6px; }
.file-item a { color: var(--primary); text-decoration: none; }
.pos-row, .exam-apply-box { margin-top: 12px; }

/* Toast / Modal（由 ui.js 注入） */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #1f2533; color: #fff; padding: 11px 20px; border-radius: 10px; z-index: 999; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); animation: toast-in .22s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 998; animation: mask-in .18s ease; }
@keyframes mask-in { from { opacity: 0; } to { opacity: 1; } }
.modal, .modal-box {
  background: #fff; border-radius: var(--radius); padding: 24px; width: min(560px, 92vw);
  box-shadow: var(--shadow-lg); max-height: 86vh; overflow: auto; animation: modal-in .2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal h3 { margin: 0 0 16px; font-size: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* 清空报名数据 · 风险防护框 */
.danger-box { background: #fff6f6; border: 1px solid #ffd5d5; border-radius: var(--radius-sm); padding: 12px 14px; line-height: 1.7; }
.danger-box p { margin: 6px 0; }
.danger-title { font-weight: 800; color: var(--danger); font-size: 15px; }
.danger-box .muted { color: var(--muted); font-size: 13px; }

/* ========== 平台账号中心（SSO） ========== */
.sso-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.sso-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.4;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #f7f9fc; color: var(--muted);
}
.sso-pill.ok { background: #eafaf1; border-color: #bfe8d0; color: #1d7a4c; }
.sso-pill.warn { background: #fff7e6; border-color: #ffd591; color: #ad6800; }
.perm-groups { display: grid; gap: 10px; }
.perm-group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: #fcfdff; }
.perm-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); font-weight: 600; font-size: 13px;
}
.perm-group-head .muted { font-weight: 400; font-size: 12px; }
.perm-items { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.perm-items .opt { padding: 5px 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.perm-cell { font-size: 12px; color: var(--muted); max-width: 260px; }

/* ========== 报名表设计器（WPS 表单式） ========== */
.modal:has(.form-designer) { width: min(1180px, 96vw); }
.form-designer { display: flex; flex-direction: column; gap: 12px; }
.fd-topbar { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: #f7f9fc; display: flex; flex-direction: column; gap: 8px; }
.fd-top-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fd-rt-name { font-weight: 700; }
.fd-used { font-size: 12px; color: var(--muted); margin-left: auto; }
.fd-title { font-weight: 600; min-width: 260px; }
.fd-remark { flex: 1; min-width: 200px; }
.fd-layout { display: grid; grid-template-columns: 220px 1fr 340px; gap: 12px; align-items: start; }
.fd-palette, .fd-canvas { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 10px; max-height: 62vh; overflow: auto; }
.fd-palette-group-title { font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 6px; }
.fd-palette-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fd-palette-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-size: 12px; transition: .15s; }
.fd-palette-item:hover { border-color: var(--primary); background: #f0f6ff; }
.fd-pi-icon { font-size: 18px; }
.fd-pi-label { text-align: center; }
.fd-field { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 8px; cursor: pointer; background: #fff; transition: .15s; }
.fd-field:hover { border-color: #bcd4ff; }
.fd-field.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(40,108,225,.15); }
.fd-field.is-layout { background: #f3f6fb; border-style: dashed; }
.fd-field-head { display: flex; align-items: center; gap: 8px; }
.fd-field-type { font-size: 11px; color: #fff; background: #8aa0c0; border-radius: 4px; padding: 1px 6px; }
.fd-field.is-layout .fd-field-type { background: #c79a3a; }
.fd-field-label { font-weight: 600; flex: 1; }
.fd-req { font-size: 11px; color: #d4380d; background: #fff1f0; border-radius: 4px; padding: 1px 6px; }
.fd-field-ops { display: flex; gap: 4px; margin-top: 6px; justify-content: flex-end; }
.fd-right { display: flex; flex-direction: column; gap: 10px; }
.fd-props, .fd-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 10px; }
.fd-preview { background: #fbfcfe; }
.fd-props { max-height: 42vh; overflow: auto; }
.fd-preview { max-height: 42vh; overflow: auto; }
.fd-prop-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.fd-prop-row > label { min-width: 72px; font-size: 13px; }
.fd-prop-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.fd-subtitle { font-size: 12px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; border-top: 1px dashed var(--line); padding-top: 8px; }
.fd-hint { font-size: 12px; color: var(--muted); }
.fd-cols { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 8px; }
.fd-col-row { display: grid; grid-template-columns: 1fr 1fr 90px auto; gap: 4px; margin-bottom: 4px; }
.fd-visible { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 8px; }
.field-help { display: block; color: var(--muted); margin-top: 2px; font-weight: 400; font-size: 11px; }

/* 新字段类型渲染 */
.ff-section { margin: 6px 0 2px; }
.ff-section h4 { margin: 0; padding-left: 8px; border-left: 3px solid var(--primary); font-size: 15px; }
.ff-desc { background: #f3f6fb; border-radius: var(--radius-sm); padding: 8px 10px; color: var(--muted); font-size: 13px; margin: 6px 0; }
.ff-rating { display: flex; gap: 2px; }
.ff-star { cursor: pointer; font-size: 22px; color: #d9d9d9; user-select: none; }
.ff-star.on { color: #faad14; }
.ff-multiselect { min-height: 70px; width: 100%; }
.ff-daterange { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ff-file { display: flex; flex-direction: column; gap: 6px; }
.ff-file-preview a { color: var(--primary); font-size: 13px; word-break: break-all; }
.ff-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; overflow: auto; }
.ff-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.ff-table th, .ff-table td { border: 1px solid var(--line); padding: 3px 5px; }
.ff-table th { background: #f3f6fb; }
.ff-table input, .ff-table select { width: 100%; box-sizing: border-box; }

/* ============ 报名审核与成绩（折叠行 / 批量 / 准考证） ============ */
.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-row { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.review-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; user-select: none; flex-wrap: wrap; }
.review-head:hover { background: #f7f9fc; }
.review-head.open { background: #eef3fb; }
.review-head .row-cb { width: 16px; height: 16px; cursor: pointer; }
.review-head .r-name { font-weight: 800; font-size: 15px; }
.review-head .r-ann { color: var(--muted); font-size: 13px; }
.review-head .r-meta { color: var(--primary); font-size: 12px; margin-left: auto; }
.review-detail { padding: 4px 16px 16px; border-top: 1px dashed var(--line); }
.review-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; margin: 8px 0; }
.review-info .info-row { padding: 7px 0; }
.review-note { color: var(--danger); font-size: 13px; margin: 8px 0; }
.batch-bar { background: #f3f6fb; border-radius: var(--radius-sm); padding: 10px 14px; margin: 4px 0 14px; flex-wrap: wrap; }
.batch-bar .sel-count { font-size: 13px; color: var(--muted); margin: 0 8px; }
.admit-card { border: 1px solid #cfe0ff; background: linear-gradient(135deg, #f5f9ff, #eef4ff); border-radius: var(--radius-sm); padding: 14px 16px; margin: 12px 0; }
.admit-title { font-weight: 800; color: var(--primary-dark); margin-bottom: 8px; }
.admit-card .review-info { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.score-box { background: #f3faf6; border: 1px solid #cdeede; border-radius: var(--radius-sm); padding: 10px 12px; color: #1f7a4d; font-weight: 600; font-size: 13px; margin: 10px 0; }
.admit-fields-cfg { display: flex; flex-direction: column; gap: 6px; }
.admit-field-row { display: flex; gap: 6px; align-items: center; }
.admit-field-row input { flex: 1; }
.fd-subtitle { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ============ 响应式：平板 / 手机三端自适应 ============ */
/* 通用：表单控件在窄屏下占满宽度 */
input, select, textarea { max-width: 100%; }

/* 平板 */
@media (max-width: 1024px) {
  .app { padding: 18px; }
  .sidebar { width: 190px; }
  .exam-page, .exam-detail, .auth-page { max-width: 100%; padding: 0 8px; }
  .exam-featured-title { font-size: 21px; }
  .fd-layout { grid-template-columns: 180px 1fr 280px; }
  .table-scroll { overflow-x: auto; }
  table { width: 100%; }
}

/* 手机 */
@media (max-width: 768px) {
  .nav { width: 100%; margin-left: 0; gap: 4px; }
  .nav a { padding: 7px 10px; font-size: 13px; }
  .brand-name { display: none; }
  .footer { flex-direction: column; gap: 8px; height: auto; padding: 12px 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .layout { flex-direction: column; }
  .sidebar {
    width: 100%; flex-direction: row; flex-wrap: nowrap; gap: 4px;
    padding: 8px; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line);
  }
  .sidebar-group { display: none; }
  .sidebar a { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .sidebar a.exit { margin-top: 0; margin-left: auto; }
  .app { padding: 14px 12px; }

  .exam-page, .exam-detail, .auth-page { padding: 0; }
  .exam-hero { padding: 22px 18px; }
  .exam-hero h1 { font-size: 21px; }
  .exam-featured { min-height: 150px; }
  .exam-featured-body { padding: 18px 16px; }
  .exam-featured-title { font-size: 18px; }
  .exam-grid { grid-template-columns: 1fr; gap: 14px; }
  .exam-card-banner { height: 120px; }

  .info-row { flex-direction: column; gap: 2px; }
  .info-k { width: auto; }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row > label { width: auto; margin-bottom: 4px; }

  .table-scroll, .ff-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 640px; }

  /* 表单设计器：三栏堆叠为单列 */
  .fd-layout { grid-template-columns: 1fr; }
  .fd-palette, .fd-canvas { max-height: none; }
  .fd-palette-grid { grid-template-columns: 1fr 1fr; }
  .fd-props, .fd-preview { max-height: none; }
  .fd-topbar { flex-direction: column; align-items: stretch; }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .exam-hero p { font-size: 13px; }
  .exam-featured-tag { font-size: 11px; }
  .exam-featured-title { font-size: 16px; }
  .btn, .btn.lg { width: 100%; }
  .exam-apply-trigger { font-size: 14px; }
  .fd-palette-grid { grid-template-columns: 1fr; }
}

