/* =========================================================
   职业健康体检机构主检医师信息校核报送系统
   ========================================================= */
:root {
  --brand: #1a5fb4;
  --brand-dark: #123f7c;
  --brand-deep: #0f3260;
  --brand-light: #e9f1fb;
  --ink: #243447;
  --muted: #6b7c93;
  --line: #dfe6ef;
  --bg: #f3f6fa;
  --ok: #18794e;
  --warn: #a86400;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 45, 80, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
}

/* ---------- 登录 / 注册 ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 20px;
  background:
    radial-gradient(
      1100px 520px at 8% -12%,
      #dbe8f8 0,
      rgba(219, 232, 248, 0) 62%
    ),
    radial-gradient(
      900px 480px at 100% 110%,
      #e3edf9 0,
      rgba(227, 237, 249, 0) 58%
    ),
    linear-gradient(135deg, #f6f9fd 0%, #eaf1f9 100%);
}

.auth-shell {
  width: 100%;
  max-width: 1060px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(16, 42, 75, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.auth-side {
  position: relative;
  overflow: hidden;
  padding: 56px 50px 48px;
  color: #fff;
  background: linear-gradient(152deg, #0e2f5c 0%, #123f7c 42%, #1a5fb4 100%);
}

.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.55;
}

.auth-side::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -140px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(111, 176, 255, 0.35),
    rgba(111, 176, 255, 0) 68%
  );
}

.auth-side-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.seal {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  letter-spacing: 1px;
  margin-bottom: 26px;
}

.auth-org {
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 12px;
}

.auth-side h2 {
  font-size: 30px;
  line-height: 1.42;
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.auth-side .lead {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 30px;
  max-width: 360px;
}

.auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.86);
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-points .dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #cfe3ff;
}

.auth-meta {
  margin-top: auto;
  padding-top: 34px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
}

.auth-card {
  padding: 52px 54px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card h1 {
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 600;
}

.auth-card .sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}

.field .layui-input {
  height: 44px;
  line-height: 44px;
  border-radius: 9px;
  border-color: #d7e0ea;
  background: #fbfcfe;
  padding: 0 14px;
}

.field select.layui-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7c93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field .layui-input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.1);
  background: #fff;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-hint {
  font-size: 12px;
  color: #8a9ab0;
  margin-top: 5px;
}

.auth-submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #1a5fb4, #134a8e);
  color: #fff;
  font-size: 15px;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 6px;
  transition: 0.18s;
}

.auth-submit:hover {
  background: linear-gradient(135deg, #1f6cc9, #123f7c);
  box-shadow: 0 10px 22px rgba(26, 95, 180, 0.24);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-foot {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-foot a {
  color: var(--brand);
  text-decoration: none;
}

.auth-foot a:hover {
  text-decoration: underline;
}

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.7;
}

.alert-error {
  background: #fdf0ef;
  color: #a42a1f;
  border: 1px solid #f5cfcb;
}

.alert-info {
  background: #eef6ff;
  color: #194b7e;
  border: 1px solid #cfe3fb;
}

.alert-warn {
  background: #fff8e8;
  color: #8a5a00;
  border: 1px solid #f5e1b4;
}

.auth-card .layui-input {
  width: 100%;
}

/* ---------- 机构端 ---------- */
.portal-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.portal-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  background: linear-gradient(145deg, #1a5fb4, #123f7c);
  box-shadow: 0 6px 16px rgba(26, 95, 180, 0.22);
  flex: 0 0 auto;
}

.brand-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.portal-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.portal-user .who {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-user a {
  color: var(--muted);
  text-decoration: none;
}

.portal-user a:hover {
  color: var(--brand);
}

.portal-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 70px;
}

.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.page-title small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}

.deadline-chip {
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.deadline-chip strong {
  color: var(--brand-dark);
  font-weight: 600;
}

.deadline-chip.expired {
  color: #a42a1f;
  border-color: #f5cfcb;
  background: #fdf3f2;
}

/* 状态横幅 */
.status-banner {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid;
  font-size: 13.5px;
  line-height: 1.7;
}

.status-banner .icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #1a5fb4;
}

.status-banner.info .icon {
  background: #1a5fb4;
}
.status-banner.ok .icon {
  background: #18794e;
}
.status-banner.warn .icon {
  background: #b7791f;
}
.status-banner.danger .icon {
  background: #b42318;
}

.status-banner strong {
  font-weight: 600;
}

.status-banner.info {
  background: #eef6ff;
  border-color: #cfe3fb;
  color: #194b7e;
}

.status-banner.ok {
  background: #edfaf2;
  border-color: #c6ecd5;
  color: #146c3a;
}

.status-banner.warn {
  background: #fff8e8;
  border-color: #f5e1b4;
  color: #8a5a00;
}

.status-banner.danger {
  background: #fdf0ef;
  border-color: #f5cfcb;
  color: #a42a1f;
}

/* 卡片 */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.card-head h2 {
  font-size: 15.5px;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-head h2::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--brand);
}

.card-head .head-hint {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
}

.card-body {
  padding: 22px 24px;
}

/* 表单 */
.layui-form-label {
  width: 116px;
  float: left;
  padding: 10px 12px 10px 0;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.layui-input-block {
  margin-left: 146px;
  min-height: 40px;
}

.layui-input,
.layui-select,
.layui-textarea {
  border-radius: 8px;
  border-color: #d7e0ea;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
}

.layui-input,
.layui-select {
  height: 40px;
  line-height: 40px;
}

.layui-input:focus,
.layui-textarea:focus,
.layui-select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.09);
}

.layui-input[readonly],
.layui-input[disabled],
.layui-select[disabled] {
  background: #f5f7fa;
  color: #596a80;
  cursor: default;
}

.layui-form-item {
  margin-bottom: 15px;
}

.layui-form-mid {
  color: #8a9ab0;
  font-size: 12.5px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 28px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  background: #f7fafd;
  border: 1px dashed #d9e4f0;
  border-radius: 9px;
  padding: 10px 14px;
  margin: 2px 0 4px;
  line-height: 1.75;
}

/* 类别多选 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cat-grid .layui-form-checkbox[lay-skin="primary"],
.modal-cats .layui-form-checkbox[lay-skin="primary"] {
  position: relative;
  display: block;
  margin: 0 !important;
  padding: 9px 12px 9px 32px;
  border: 1px solid #e2e9f2;
  border-radius: 8px;
  background: #fbfdff;
  height: auto;
  min-height: 40px;
  line-height: 20px;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.modal-cats .layui-form-checkbox[lay-skin="primary"] {
  padding: 7px 10px 7px 30px;
  min-height: 36px;
  border-radius: 7px;
}

.cat-grid .layui-form-checkbox[lay-skin="primary"]:hover,
.modal-cats .layui-form-checkbox[lay-skin="primary"]:hover {
  border-color: #9fc0e8;
}

.cat-grid .layui-form-checkbox[lay-skin="primary"] > div,
.modal-cats .layui-form-checkbox[lay-skin="primary"] > div {
  padding: 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 20px;
}

.modal-cats .layui-form-checkbox[lay-skin="primary"] > div {
  font-size: 13px;
}

.cat-grid .layui-form-checkbox[lay-skin="primary"] > i,
.modal-cats .layui-form-checkbox[lay-skin="primary"] > i {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0;
  border: 1px solid #c7d2e0;
  border-radius: 4px;
  background: #fff;
  color: transparent;
  font-size: 12px;
  line-height: 16px;
}

.cat-grid .layui-form-checkbox[lay-skin="primary"].layui-form-checked,
.modal-cats .layui-form-checkbox[lay-skin="primary"].layui-form-checked {
  border-color: var(--brand);
  background: var(--brand-light);
}

.cat-grid .layui-form-checkbox[lay-skin="primary"].layui-form-checked > i,
.modal-cats .layui-form-checkbox[lay-skin="primary"].layui-form-checked > i {
  border-color: var(--brand) !important;
  background-color: var(--brand) !important;
  color: #fff !important;
}

.cat-grid.locked .layui-form-checkbox,
.modal-cats.locked .layui-form-checkbox {
  opacity: 0.72;
  cursor: default;
}

/* 医生表格 */
.table-wrap {
  overflow-x: auto;
}

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.plain th {
  background: #f7fafd;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 13px;
}

table.plain td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}

table.plain tr:last-child td {
  border-bottom: none;
}

table.plain tbody tr:hover td {
  background: #fbfdff;
}

table.plain .num {
  color: #9aa9bb;
  font-variant-numeric: tabular-nums;
  width: 56px;
}

table.plain .mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.doc-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 6px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12px;
  line-height: 21px;
  white-space: nowrap;
}

.pill.muted {
  background: #f1f4f8;
  color: #7a889b;
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: #8a9ab0;
  font-size: 13.5px;
}

.empty-state .big {
  display: block;
  font-size: 30px;
  color: #c3d0e0;
  margin-bottom: 8px;
}

.row-actions {
  white-space: nowrap;
}

.row-actions .layui-btn {
  margin-right: 6px;
}

.row-actions .layui-btn:last-child {
  margin-right: 0;
}

/* 底部操作条 */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 20px;
  box-shadow: 0 10px 30px rgba(20, 45, 80, 0.07);
  margin-top: 4px;
}

.action-bar .bar-hint {
  margin-right: auto;
  font-size: 12.5px;
  color: var(--muted);
}

.action-bar .layui-btn {
  height: 38px;
  line-height: 38px;
  border-radius: 8px;
  padding: 0 22px;
}

.layui-btn-normal {
  background-color: var(--brand);
}

.layui-btn-normal:hover {
  background-color: #16539e;
}

.layui-btn-primary {
  border-color: #d5dfeb;
}

/* ---------- 管理端 ---------- */
.admin-shell {
  min-height: 100vh;
  background: var(--bg);
}

.admin-topbar {
  background: var(--brand-deep);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 6px 18px rgba(9, 33, 63, 0.18);
}

.admin-topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 28px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.admin-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.admin-nav {
  display: flex;
  align-self: stretch;
  gap: 2px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13.5px;
  border-bottom: 3px solid transparent;
  transition: 0.16s;
}

.admin-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-nav a.active {
  color: #fff;
  border-bottom-color: #6fb0ff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12.5px;
  white-space: nowrap;
}

.admin-user a {
  color: #d8e6f8;
  text-decoration: none;
}

.admin-user a:hover {
  color: #fff;
}

.admin-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 28px 60px;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-page-head h1 {
  font-size: 21px;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.admin-page-head .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.admin-page-head .head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 统计卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px 18px 15px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -30px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(26, 95, 180, 0.05);
}

.stat-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 7px;
}

.stat-value {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-value small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
}

.stat-card.accent {
  background: linear-gradient(145deg, #1a5fb4, #123f7c);
  border: none;
  color: #fff;
}

.stat-card.accent .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

.stat-card.accent .stat-value {
  color: #fff;
}

.stat-card.accent::after {
  background: rgba(255, 255, 255, 0.09);
}

/* 筛选条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.filter-bar .layui-form-label {
  width: auto;
  float: none;
  padding: 8px 4px 8px 0;
}

.filter-bar .layui-input,
.filter-bar .layui-select {
  height: 36px;
  line-height: 36px;
  min-width: 150px;
}

.filter-bar .layui-input-inline {
  margin-right: 4px;
}

.filter-bar .layui-btn {
  height: 36px;
  line-height: 36px;
  border-radius: 8px;
  padding: 0 18px;
}

.filter-bar .spacer {
  flex: 1;
}

.filter-bar .filter-note {
  font-size: 12.5px;
  color: var(--muted);
}

/* layui 表格微调 */
.layui-table-view {
  margin: 0;
  border: none;
}

.layui-table th {
  background: #f7fafd !important;
  color: #5b6b80;
  font-weight: 600;
  font-size: 13px;
}

.layui-table td {
  font-size: 13px;
  color: #33445a;
}

.layui-table-cell {
  height: 44px;
  line-height: 44px;
}

.layui-table-page {
  background: #fff;
}

.layui-table-tool-self {
  display: none;
}

.layui-form-radio:hover > *,
.layui-form-radioed,
.layui-form-radioed > i {
  color: var(--brand) !important;
}

.layui-form-select dl dd.layui-this {
  background-color: var(--brand);
}

.layui-laypage-curr .layui-laypage-em {
  background-color: var(--brand);
}

/* 详情弹层 */
.detail-wrap {
  padding: 20px 24px 28px;
  font-size: 13.5px;
  color: var(--ink);
}

.detail-wrap h4 {
  margin: 22px 0 10px;
  font-size: 14px;
  color: var(--brand-dark);
  font-weight: 600;
}

.detail-wrap .layui-table {
  margin: 0;
}

.detail-wrap .layui-table th {
  width: 132px;
  background: #f7fafd;
  color: var(--muted);
  font-weight: 600;
  vertical-align: middle;
}

.detail-wrap .layui-table td {
  vertical-align: middle;
  line-height: 1.7;
}

.detail-wrap .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
}

.detail-wrap .warn-note {
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #fff8e8;
  border: 1px solid #f5e1b4;
  color: #8a5a00;
  font-size: 12.5px;
  line-height: 1.7;
}

/* 统计页 */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bar-list {
  display: grid;
  gap: 15px;
}

.bar-item .bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.bar-item .bar-top .name {
  color: var(--ink);
}

.bar-item .bar-top .value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 8px;
  border-radius: 99px;
  background: #eef2f8;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #3b82d6, #1a5fb4);
}

.bar-fill.accent {
  background: linear-gradient(90deg, #34a06a, #18794e);
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stat-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f7fafd;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

.stat-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f7;
}

.stat-table tr:last-child td {
  border-bottom: none;
}

.stat-table td.num,
.stat-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 徽标 */
.badge {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  background: #eef1f5;
  color: #667085;
  white-space: nowrap;
}

.badge-ok {
  background: #e6f6ec;
  color: #18794e;
}

.badge-warn {
  background: #fff4e0;
  color: #a86400;
}

.badge-danger {
  background: #fdeaea;
  color: #b42318;
}

.badge-muted {
  background: #eef1f5;
  color: #667085;
}

.badge-info {
  background: #e9f1fb;
  color: #1a5fb4;
}

/* 弹层表单 */
.modal-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.form-hint {
  font-size: 12px;
  color: #8a9ab0;
  margin-top: 6px;
  line-height: 1.6;
}

/* 修改密码等独立页 */
.solo-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(
      900px 460px at 10% -10%,
      #dfeaf8 0,
      rgba(223, 234, 248, 0) 60%
    ),
    linear-gradient(135deg, #f6f9fd 0%, #eaf1f9 100%);
}

.solo-card {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(16, 42, 75, 0.14);
  padding: 38px 42px 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.solo-card .solo-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.solo-card h1 {
  font-size: 20px;
  margin: 0;
  color: var(--ink);
}

.solo-card .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

.solo-card .layui-form-label {
  width: 92px;
}
.solo-card .layui-input-block {
  margin-left: 122px;
}
.solo-card .solo-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

/* 响应式 */
@media (max-width: 1100px) {
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-nav a {
    padding: 0 11px;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .auth-side {
    padding: 34px 32px 30px;
  }
  .auth-side h2 {
    font-size: 24px;
  }
  .auth-side .lead {
    margin-bottom: 18px;
  }
  .auth-points {
    display: none;
  }
  .auth-meta {
    padding-top: 18px;
  }
  .auth-card {
    padding: 34px 30px 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .admin-topbar-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 18px;
    gap: 10px;
  }
  .admin-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    height: 42px;
  }
  .admin-nav a {
    padding: 0 12px;
    white-space: nowrap;
  }
  .admin-user {
    font-size: 12px;
    gap: 10px;
  }
  .admin-main {
    padding: 18px 16px 50px;
  }
  .portal-header-inner {
    padding: 11px 16px;
  }
  .brand-sub {
    display: none;
  }
  .brand-title {
    font-size: 14px;
  }
  .portal-user .who {
    max-width: 120px;
  }
  .portal-main {
    padding: 18px 16px 60px;
  }
  .page-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .page-title {
    font-size: 19px;
  }
  .card-head {
    padding: 14px 16px;
  }
  .card-body {
    padding: 18px 16px;
  }
  .layui-form-label {
    width: 100px;
  }
  .layui-input-block {
    margin-left: 118px;
  }
  .modal-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-value {
    font-size: 22px;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .layui-form-label {
    width: auto;
    float: none;
    text-align: left;
    padding: 0 0 5px;
  }
  .layui-input-block {
    margin-left: 0;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 28px 22px 24px;
  }
  .auth-side {
    padding: 28px 24px;
  }
  .auth-side h2 {
    font-size: 21px;
  }
  .action-bar {
    padding: 11px 12px;
  }
  .action-bar .bar-hint {
    display: none;
  }
  .solo-card {
    padding: 28px 22px;
  }
  .solo-card .layui-form-label {
    width: auto;
    float: none;
    text-align: left;
    padding-bottom: 5px;
  }
  .solo-card .layui-input-block {
    margin-left: 0;
  }
}
