/* ===========================================================================
 * 机动车检验行业数字化服务门户 · 设计系统（UI Kit）
 * ---------------------------------------------------------------------------
 * 加载顺序：assets/style.css → assets/ui.css →（页面内联 <style>）
 * 本文件是页面的统一视觉底座：设计令牌 + 组件 + 布局 + 工具类。
 * 约定：
 *   1) 页面只写"该页独有的样式"，通用组件一律用本文件的类，不再各页重复定义；
 *   2) 颜色/间距/圆角/阴影一律引用令牌（var(--xxx)），不写死色值；
 *   3) 品牌主色 --brand 对齐 Logo 底色 #375d7b，保证 Logo 与页面同调。
 * =========================================================================== */

/* ---------------------------------------------------------------------------
 * 1. 设计令牌（Design Tokens）
 * ------------------------------------------------------------------------- */
:root {
  /* 品牌色阶：由 Logo 底色 #38607a 取样反推的 9 级色阶（改色请同步 assets/logo*.png） */
  --brand-50:  #f2f6f9;
  --brand-100: #e4edf3;
  --brand-200: #c6d9e6;
  --brand-300: #9dbed2;
  --brand-400: #6c9ab7;
  --brand-500: #4b7a99;
  --brand-600: #38607a;   /* 主色 = Logo 底色 */
  --brand-700: #2d4e63;
  --brand-800: #243e50;
  --brand-900: #1c303f;

  /* 品牌辅助红（Logo 中心点缀色 #ea2a34）：仅用于点睛，不作正文色 */
  --brand2-50:  #fdeced;
  --brand2-100: #fbd9db;
  --brand2-500: #ea2a34;
  --brand2-600: #c81f28;
  --brand2-700: #a01720;

  /* 强调色（金色，取自原站点点缀色） */
  --accent-50:  #fff9ec;
  --accent-100: #fdf0d4;
  --accent-500: #e6a817;
  --accent-600: #c98f0d;
  --accent-700: #9c6f0a;

  /* 语义色 */
  --success: #1a7a3a;  --success-bg: #e6f7ed;  --success-line: #bfe6cd;
  --warn:    #b85c00;  --warn-bg:    #fff3e6;  --warn-line:    #f3d9a8;
  --danger:  #a61b1b;  --danger-bg:  #fdecec;  --danger-line:  #f3c9c9;
  --info:    var(--brand-600); --info-bg: var(--brand-50); --info-line: var(--brand-200);

  /* 中性色 */
  --ink:    #16202e;   /* 标题 */
  --text:   #333c47;   /* 正文 */
  --muted:  #6b7480;   /* 次要文字 */
  --faint:  #8b95a1;   /* 弱化文字 */
  --line:   #e8ecf1;   /* 分割线 */
  --line-2: #dde3ea;   /* 深一档的线 */
  --bg:     #f5f6f8;   /* 页面底色 */
  --bg-soft:#fafbfd;   /* 浅底块 */
  --card:   #ffffff;

  /* 兼容旧变量名（页面内联样式仍有引用） */
  --brand: var(--brand-600);
  --brand-light: var(--brand-500);
  --accent: var(--accent-500);

  /* 间距（4 的倍数） */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 48px; --sp-9: 64px;

  /* 圆角 */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-full: 999px;

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(16,32,56,.06);
  --sh-2: 0 4px 14px rgba(16,32,56,.10);
  --sh-3: 0 12px 32px rgba(8,20,50,.16);
  --sh-focus: 0 0 0 3px rgba(55,93,123,.22);

  /* 字号 */
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-md: 16px;   /* 正文/说明用（比 --fs-base 大一号，便于阅读） */
  --fs-lg: 16px; --fs-xl: 17px; --fs-2xl: 21px; --fs-3xl: 26px; --fs-4xl: 34px;

  /* 动效 */
  --t-fast: .15s; --t: .2s;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* 布局 */
  --maxw: 1180px;
  --nav-h: 64px;

  /* 兼容旧变量 */
  --card-r: var(--r-md);
}

/* ---------------------------------------------------------------------------
 * 2. 基础重置与可访问性
 * ------------------------------------------------------------------------- */
a { color: var(--brand-600); }
a:hover { color: var(--brand-500); }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--brand-100); color: var(--brand-800); }

/* 滚动条（WebKit） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c8d2dd; border-radius: var(--r-full); border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a9b7c6; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* 无障碍：仅屏幕阅读器可见 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 尊重系统"减少动效" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------------
 * 3. 导航与页脚（覆盖 style.css，保证全站一致）
 * ------------------------------------------------------------------------- */
.navbar { box-shadow: var(--sh-1); }
.nav-links a { transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.nav-links a:hover { background: var(--brand-50); }
.nav-links a.active {
  background: var(--brand-50); color: var(--brand-600); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--brand-600);
}
.nav-actions .btn { white-space: nowrap; }

/* 窄屏：导航横向滚动，避免换行挤压 */
@media (max-width: 1080px) {
  .nav-links { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -ms-overflow-style: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
}

/* ---------------------------------------------------------------------------
 * 4. 页面骨架：页头 / 区块 / 面包屑
 * ------------------------------------------------------------------------- */
/* 页面统一页头（列表页、详情页用）：左侧标题组，右侧操作区 */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6);
}
.page-head .ph-main { min-width: 0; }
.page-head h1, .page-head h2 { font-size: var(--fs-3xl); color: var(--ink); line-height: 1.35; }
.page-head .ph-sub { font-size: var(--fs-base); color: var(--muted); margin-top: var(--sp-2); }
.page-head .ph-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }

/* 面包屑 */
.breadcrumb { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-3); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb .sep { margin: 0 var(--sp-2); color: var(--faint); }
.breadcrumb .cur { color: var(--text); }

/* 区块标题（居中，首页用）：标题下加品牌短线，形成统一识别 */
.section-title h2 { color: var(--brand-700); position: relative; padding-bottom: var(--sp-3); }
.section-title h2::after {
  content: ''; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 36px; height: 3px; border-radius: 2px; background: var(--brand-600);
}
.section-title p { color: var(--muted); }

/* 页面标题（左对齐，列表页用）同样带品牌短线 */
.page-head .ph-main > h1::after, .page-head .ph-main > h2::after {
  content: ''; display: block; width: 36px; height: 3px; border-radius: 2px;
  background: var(--brand-600); margin-top: var(--sp-2);
}

.section-alt { background: var(--bg-soft); }

/* ---------------------------------------------------------------------------
 * 4b. 首屏与品牌呈现（Logo 锁形、品牌底纹）
 * ------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 420px at 18% -10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 52%, var(--brand-700) 100%);
  position: relative;
}
/* 顶部一条品牌红细线，呼应 Logo 中心红（点睛，不喧哗） */
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand2-500) 50%, transparent);
  opacity: .85;
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.9); }

/* Logo 锁形：图标 + 文字，全站统一 */
.brand-lock { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-lock .bl-mark {
  width: 38px; height: 38px; border-radius: 9px; display: block; flex: none;
  box-shadow: 0 2px 8px rgba(16,32,56,.18);
}
.brand-lock .bl-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-lock .bl-name { font-size: var(--fs-lg); font-weight: 700; color: var(--brand-700); }
.brand-lock .bl-sub { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .5px; }

/* 首屏大 Logo */
.hero-logo img {
  width: 96px; height: 96px; border-radius: 22px; display: block;
  box-shadow: 0 10px 26px rgba(6,18,32,.35); background: var(--brand-600);
}
.hero-logo .lg-name { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: 3px; color: #fff; }
.hero-btns .btn-primary { background: #fff; color: var(--brand-700); border-color: #fff; }
.hero-btns .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.hero-btns .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* ---------------------------------------------------------------------------
 * 5. 按钮
 * ------------------------------------------------------------------------- */
.btn {
  font-family: inherit; line-height: 1.4; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.btn-primary { background: var(--brand-600); border-color: var(--brand-600); }
.btn-primary:hover { background: var(--brand-500); border-color: var(--brand-500); }
.btn-primary:active { background: var(--brand-700); transform: translateY(1px); }

.btn-ghost { border-color: var(--line-2); color: var(--brand-600); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand-400); background: var(--brand-50); }

.btn-subtle { background: var(--brand-50); color: var(--brand-700); border-color: transparent; }
.btn-subtle:hover { background: var(--brand-100); }

.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover { background: #f9dede; }

.btn-lg { padding: 12px 24px; font-size: var(--fs-md); border-radius: var(--r-sm); }
.btn-sm { padding: 6px 13px; font-size: var(--fs-sm); }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%;
  animation: uiSpin .7s linear infinite;
}
@keyframes uiSpin { to { transform: rotate(360deg); } }

/* 按钮组 */
.btn-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------------------
 * 6. 表单控件
 * ------------------------------------------------------------------------- */
.form-row { margin-bottom: var(--sp-3); }
.form-row > label {
  display: block; font-size: var(--fs-sm); color: #47546a; margin-bottom: var(--sp-1);
  font-weight: 500;
}
.form-row > label .req { color: var(--danger); font-style: normal; margin-left: 2px; }
.form-row > label .hint { color: var(--faint); font-weight: 400; }

.form-row input[type=text], .form-row input[type=password], .form-row input[type=email],
.form-row input[type=search], .form-row input[type=number], .form-row select, .form-row textarea,
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: var(--fs-base); font-family: inherit; color: var(--text); background: var(--card);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-row select, .select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%236b7480' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus,
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: var(--sh-focus);
}
.form-row input::placeholder, .form-row textarea::placeholder, .input::placeholder, .textarea::placeholder {
  color: #a7b0bb;
}
.form-row .err-msg { font-size: var(--fs-xs); color: var(--danger); margin-top: var(--sp-1); display: none; }
.form-row.has-err input, .form-row.has-err select, .form-row.has-err textarea { border-color: var(--danger-line); }
.form-row.has-err .err-msg { display: block; }
.form-row > .tip { font-size: var(--fs-xs); color: var(--faint); margin-top: var(--sp-1); }

/* 两列/多列表单 */
.form-2 { display: flex; gap: var(--sp-3); }
.form-2 > * { flex: 1; min-width: 0; }
@media (max-width: 768px) { .form-2 { flex-direction: column; gap: 0; } }

/* ---------------------------------------------------------------------------
 * 7. 卡片
 * ------------------------------------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
}
.card + .card { margin-top: var(--sp-4); }
.card > h3, .card-title { font-size: var(--fs-lg); color: var(--ink); margin-bottom: var(--sp-3); }
.card-hover { transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) var(--ease); }
.card-hover:hover { box-shadow: var(--sh-2); border-color: var(--brand-200); transform: translateY(-2px); }
.card-flat { box-shadow: var(--sh-1); }

/* 列表容器（列表页用） */
.list-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}

/* 工具栏（筛选条） */
.toolbar { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-4); flex-wrap: wrap; align-items: center; }
.toolbar input[type=text], .toolbar input[type=search], .toolbar select {
  padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: var(--fs-base); font-family: inherit; background: var(--card);
}
.toolbar input[type=text], .toolbar input[type=search] { flex: 1; min-width: 200px; }
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--sh-focus); }

/* ---------------------------------------------------------------------------
 * 8. 标签 / 徽标 / 状态
 * ------------------------------------------------------------------------- */
.tag, .chip, .badge {
  display: inline-block; font-size: var(--fs-xs); line-height: 1.6; padding: 2px 10px;
  border-radius: var(--r-full); border: 1px solid transparent;
}
.tag { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.tag-green, .st-ok      { background: var(--success-bg); color: var(--success); }
.tag-orange, .st-rep    { background: var(--warn-bg); color: var(--warn); }
.tag-red, .st-bad       { background: var(--danger-bg); color: var(--danger); }
.tag-gray, .st-old      { background: #f0f2f5; color: #7b8794; }
.tag-blue, .st-wait     { background: var(--info-bg); color: var(--info); }

/* 可点击的筛选标签 */
.chip-tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs);
  padding: 4px 12px; border-radius: var(--r-full); border: 1px solid var(--line-2);
  background: var(--card); color: #4a5460; cursor: pointer; transition: all var(--t-fast) var(--ease);
}
.chip-tag:hover { border-color: var(--brand-300); color: var(--brand-600); }
.chip-tag.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* 状态标签（全站统一语义，各页共用同一套颜色）
 *   st-ok   绿：有效 / 成功 / 进行中 / 已发布 / 录用
 *   st-wait 蓝：待处理 / 待授权 / 草稿 / 待查看
 *   st-soon 蓝：待实施 / 过渡期（法规库）
 *   st-rep  橙：进行中 / 提醒（面试、已查阅）
 *   st-old  灰：非活动 / 已下架 / 已关闭 / 已过期
 *   st-bad  红：已废止 / 不符合 / 失败
 */
.st { display: inline-block; font-size: var(--fs-xs); padding: 2px 10px; border-radius: var(--r-full); }
.st-ok   { background: var(--success-bg); color: var(--success); }
.st-wait { background: var(--info-bg); color: var(--info); }
.st-soon { background: #e8f1fb; color: #1c5d99; }
.st-rep  { background: var(--warn-bg); color: var(--warn); }
.st-old  { background: #f0f2f5; color: #7b8794; }
.st-bad  { background: var(--danger-bg); color: var(--danger); }

/* ---------------------------------------------------------------------------
 * 9. 空状态 / 加载态
 * ------------------------------------------------------------------------- */
.empty, .law-empty {
  padding: var(--sp-8) var(--sp-5); text-align: center; color: var(--muted);
  font-size: var(--fs-base); line-height: 1.9;
}
.empty .empty-icon { font-size: 30px; opacity: .5; display: block; margin-bottom: var(--sp-2); }
.empty .empty-act { margin-top: var(--sp-3); }

.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f6f8fa 37%, #eef1f5 63%);
  background-size: 400% 100%; animation: uiSkeleton 1.4s ease infinite; border-radius: var(--r-sm); }
.skeleton-row { height: 14px; margin: var(--sp-2) 0; }
@keyframes uiSkeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------------------------
 * 10. 提示 / 消息
 * ------------------------------------------------------------------------- */
.notice, .alert {
  border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-base); line-height: 1.75;
}
.notice { background: var(--accent-50); border-left: 4px solid var(--accent-500); color: #7a5c12; padding: 12px 16px; }
.alert { padding: 11px 15px; border-left: 4px solid var(--info); background: var(--info-bg); color: var(--brand-800); }
.alert-success { border-left-color: var(--success); background: var(--success-bg); color: #14602e; }
.alert-warn    { border-left-color: var(--accent-600); background: var(--warn-bg); color: #8a5a00; }
.alert-danger  { border-left-color: var(--danger); background: var(--danger-bg); color: #8c1a1a; }
.alert a { font-weight: 600; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: var(--r-sm);
  font-size: var(--fs-base); opacity: 0; pointer-events: none; transition: .25s; z-index: 999;
  max-width: 84vw; text-align: center; box-shadow: var(--sh-3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--danger); }

/* ---------------------------------------------------------------------------
 * 11. 弹窗 / 抽屉
 * ------------------------------------------------------------------------- */
.modal-mask { display: none; position: fixed; inset: 0; background: rgba(12,24,40,.45); z-index: 900; }
.modal {
  display: none; position: fixed; z-index: 901; left: 50%; top: 60px; transform: translateX(-50%);
  width: min(760px, 94vw); max-height: 82vh; overflow: auto; background: var(--card);
  border-radius: var(--r-md); box-shadow: var(--sh-3);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 20px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1;
}
.modal-head h3 { font-size: var(--fs-xl); color: var(--brand-600); }
.modal-head .m-close { font-size: 22px; color: var(--muted); text-decoration: none; line-height: 1; }
.modal-head .m-close:hover { color: var(--ink); }
.modal-body { padding: var(--sp-5); }

.drawer-mask { display: none; position: fixed; inset: 0; background: rgba(12,24,40,.42); z-index: 940; }

/* 小尺寸弹窗（登录/注册/找回密码等表单类弹窗） */
.modal-sm { width: min(440px, 94vw); top: 80px; }
.modal-sm .modal-head h3 { font-size: 16px; }

.drawer-mask.open { display: block; }

/* ---------------------------------------------------------------------------
 * 12. 表格 / 分页
 * ------------------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--bg-soft); color: #47546a; font-weight: 600; font-size: var(--fs-sm); }
.table tbody tr:hover { background: var(--brand-50); }

.pager { display: flex; gap: var(--sp-1); align-items: center; justify-content: center; padding: 18px 0 4px; flex-wrap: wrap; }
.pager a, .pager span.pg {
  font-size: var(--fs-sm); padding: 5px 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: #47546a; background: var(--card); cursor: pointer; text-decoration: none;
}
.pager a:hover { border-color: var(--brand-400); color: var(--brand-600); }
.pager a.on { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.pager a.dis, .pager span.pg.dis { opacity: .45; pointer-events: none; }
.pager .pg-info { font-size: var(--fs-xs); color: var(--muted); margin-left: var(--sp-2); }

/* ---------------------------------------------------------------------------
 * 13. 工具类（少量，够用即可）
 * ------------------------------------------------------------------------- */
.u-flex    { display: flex; }
.u-between { display: flex; align-items: center; justify-content: space-between; }
.u-center  { display: flex; align-items: center; justify-content: center; }
.u-wrap    { flex-wrap: wrap; }
.u-gap-1 { gap: var(--sp-1); } .u-gap-2 { gap: var(--sp-2); } .u-gap-3 { gap: var(--sp-3); }
.u-gap-4 { gap: var(--sp-4); } .u-gap-6 { gap: var(--sp-6); }
.u-mt-2 { margin-top: var(--sp-2); } .u-mt-3 { margin-top: var(--sp-3); }
.u-mt-4 { margin-top: var(--sp-4); } .u-mt-6 { margin-top: var(--sp-6); }
.u-mb-2 { margin-bottom: var(--sp-2); } .u-mb-3 { margin-bottom: var(--sp-3); }
.u-mb-4 { margin-bottom: var(--sp-4); } .u-mb-6 { margin-bottom: var(--sp-6); }
.u-muted { color: var(--muted); } .u-faint { color: var(--faint); }
.u-sm { font-size: var(--fs-sm); } .u-xs { font-size: var(--fs-xs); }
.u-bold { font-weight: 600; } .u-nowrap { white-space: nowrap; }
.u-mono { font-family: Consolas, "Courier New", monospace; }
.u-hide { display: none !important; }

code, .code {
  font-family: Consolas, "Courier New", monospace; font-size: .92em;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-xs);
  padding: 1px 5px; color: var(--brand-700);
}

.divider { height: 1px; background: var(--line); margin: var(--sp-7) 0; border: 0; }

/* ---------------------------------------------------------------------------
 * 14. 响应式统一断点（768 / 640）
 * ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .page-head { align-items: flex-start; }
  .page-head h1, .page-head h2 { font-size: var(--fs-2xl); }
  .card { padding: var(--sp-4); }
  .modal { top: 20px; max-height: 88vh; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: var(--sp-7) 0; }
  .section-title h2 { font-size: var(--fs-2xl); }
}

/* ---------------------------------------------------------------------------
 * 15. 打印（评审场景常需打印页面）
 * ------------------------------------------------------------------------- */
@media print {
  .navbar, .footer, .nav-actions, .toolbar, .pager, .toast, .modal, .modal-mask { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding: 0 0 12pt; }
  a { color: var(--ink); text-decoration: none; }
}

/* ---------------------------------------------------------------------------
 * 16. 版式与导航（简约 · 一目了然 · 大方）
 *     设计取向：面向检验机构从业人员与监管人员 —— 正文字号偏大、留白充足、
 *     颜色克制（品牌蓝只用于导航激活项与主按钮），信息层级靠间距和字重拉开。
 * ------------------------------------------------------------------------- */
body {
  font-size: 16px; line-height: 1.75; color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* 正文可读性：默认段落与列表行高统一 */
p, li { line-height: 1.8; }

/* 导航：64px 定高、留白清晰、激活项一条品牌线 */
.navbar {
  height: var(--nav-h); background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line); box-shadow: none;
}
.nav-inner { max-width: var(--maxw); height: var(--nav-h); gap: 24px; padding: 0 24px; }
.nav-links { gap: 2px; flex: 1 1 auto; }
.nav-links a {
  padding: 7px 14px; font-size: 15px; font-weight: 500; color: #46536b;
  border-radius: var(--r-sm); position: relative;
}
.nav-links a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav-links a.active {
  color: var(--brand-700); background: transparent; font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--brand-600);
}
.nav-actions { margin-left: auto; gap: var(--sp-2); }
.nav-actions .btn.active { background: var(--brand-700); border-color: var(--brand-700); }
.brand-lock .bl-name { font-size: 16px; }
.brand-lock .bl-sub { font-size: 11px; letter-spacing: .6px; color: var(--faint); }

/* 区块节奏：留白更大，视觉更"大方" */
.section { padding: 72px 0; }
.section-title { margin-bottom: 40px; }
.section-title h2 { font-size: 28px; letter-spacing: .5px; }
.section-title p { font-size: 15px; margin-top: 6px; }

/* 卡片：常态只有一条极浅边框，悬浮才抬起（减少视觉噪音） */
.card, .app-card, .svc-card, .stat-card, .cust-item, .list-panel,
.job-list, .news-list, .case-list, .law-list {
  border-color: var(--line); box-shadow: none;
}
.app-card, .svc-card, .stat-card { padding: 24px; }
.svc-card ul { margin-left: 20px; }
.svc-card li { margin-bottom: 4px; }

/* 首页数据看板：数字更醒目 */
.stat-value { font-size: 32px; letter-spacing: .5px; }
.stat-label { font-size: 14px; }

/* 表格与表单在"看得清"上更宽裕 */
.table th, .table td { padding: 12px 14px; }

/* 移动端：导航横向滚动；第一屏更紧凑 */
@media (max-width: 1080px) {
  .nav-inner { gap: 12px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .section { padding: 48px 0; }
  .section-title h2 { font-size: 22px; }
  .page-head h1, .page-head h2 { font-size: 20px; }
  .nav-actions .btn-sm { padding: 6px 12px; }
}

/* ---------------------------------------------------------------------------
 * 17. 汽车科技感视觉层（专业 · 克制）
 *     手法：深蓝基色 + 冷色高光（科技青）+ 精密网格 + 等宽数字 + 细线框，
 *     不放霓虹、不做花哨动效 —— 科技感来自"精密与秩序"，而不是颜色堆叠。
 * ------------------------------------------------------------------------- */
:root {
  --tech-cyan: #38bdf8;         /* 高光/指示色（仅用于线条与点缀） */
  --tech-cyan-deep: #0ea5e9;
  --tech-glow: rgba(56,189,248,.30);
  --grid-w: rgba(255,255,255,.055);   /* 深色区网格线 */
  --grid-d: rgba(56,93,123,.075);     /* 浅色区网格线 */
}

/* 17.1 首屏：渐变 + 精密网格 + 顶部光带 */
.hero { overflow: hidden; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-w) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-w) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 0%, #000 30%, transparent 76%);
          mask-image: radial-gradient(125% 95% at 50% 0%, #000 30%, transparent 76%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-logo img { border: 1px solid rgba(255,255,255,.20); }

/* 17.2 能力要点条（首屏底部，全为平台真实能力，不编造数据） */
.cap-bar {
  display: flex; gap: var(--sp-6); flex-wrap: wrap; justify-content: center;
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.14);
}
.cap-bar .cap { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.86); }

/* 17.3 状态指示灯（科技感小元素） */
.tech-dot {
  width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--tech-cyan); box-shadow: 0 0 0 3px rgba(56,189,248,.17);
  display: inline-block;
}
.tech-dot.live { animation: techPulse 2.6s var(--ease) infinite; }
@keyframes techPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(56,189,248,.17); opacity: 1; }
  50%      { box-shadow: 0 0 0 6px rgba(56,189,248,.06); opacity: .78; }
}

/* 17.4 卡片：顶端技术高光线（默认不可见，悬浮浮现，避免视觉噪音） */
.card, .role-card, .app-card, .svc-card, .stat-card { position: relative; }
.card::before, .role-card::before, .app-card::before,
.svc-card::before, .stat-card::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--tech-cyan) 52%, transparent 92%);
  opacity: 0; transition: opacity var(--t) var(--ease); border-radius: var(--r-md) var(--r-md) 0 0;
}
.card:hover::before, .role-card:hover::before, .app-card:hover::before,
.svc-card:hover::before, .stat-card:hover::before { opacity: 1; }

/* 17.5 数据看板：等宽数字 + 刻度线，强化"仪表"观感 */
.stat-card { background: linear-gradient(180deg, #fff, #fcfdfe); }
.stat-value { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; letter-spacing: 1px; }
.stat-card::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 40px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-300), transparent);
}

/* 17.6 主按钮：纵向微渐变 + 内高光（金属质感，克制） */
.btn-primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
  border-color: var(--brand-700); box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  border-color: var(--brand-600);
}

/* 17.7 页头：左侧品牌渐变竖条（专业标识），去掉标题下的短横线 */
.page-head .ph-main { position: relative; padding-left: 16px; }
.page-head .ph-main::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-600), var(--tech-cyan));
}
.page-head .ph-main > h1::after, .page-head .ph-main > h2::after { display: none; }

/* 17.8 表格与分区标题：冷色细线，秩序感 */
.table th {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  letter-spacing: .3px; border-bottom: 1px solid var(--line-2);
}
.card-title, .card > h3 { position: relative; padding-left: 11px; }
.card-title::before, .card > h3::before {
  content: ''; position: absolute; left: 0; top: .34em; bottom: .34em; width: 3px;
  border-radius: 2px; background: var(--brand-600);
}

/* 17.9 页脚：深色渐变 + 网格 + 标题短线 */
.footer {
  background: linear-gradient(180deg, #16202e 0%, #0f1720 100%);
  position: relative; overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-w) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-w) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .5;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 100%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 100% at 50% 100%, #000 30%, transparent 80%);
}
.footer-inner, .footer-bottom { position: relative; z-index: 1; }
.footer h4 { position: relative; padding-bottom: 10px; }
.footer h4::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--brand-500), var(--tech-cyan));
}

/* 17.11 未登录引导条（渐进式门禁的强化引导：页面可进，看功能时提示注册） */
.gate-bar {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  background: linear-gradient(90deg, var(--brand-50), #f7fbfe);
  border: 1px solid var(--brand-100); border-left: 3px solid var(--brand-600);
  border-radius: var(--r-md); padding: 12px 16px; margin-bottom: var(--sp-5);
  font-size: var(--fs-base);
}
.gate-bar .gb-text { flex: 1; min-width: 200px; color: #33465c; }
.gate-bar .gb-acts { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
@media (max-width: 640px) {
  .gate-bar { padding: 10px 12px; }
  .gate-bar .gb-text { font-size: var(--fs-sm); }
}

/* 17.12 页脚备案信息（工信部要求：底部展示主办单位与备案号，备案号链接查询系统） */
.footer-icp { margin-top: 6px; font-size: 12px; color: #7f8c9c; }
.footer-icp a { color: #9fb6cd; text-decoration: none; }
.footer-icp a:hover { color: var(--tech-cyan); text-decoration: underline; }
.footer-icp .pending { color: #d8b46a; }

/* 17.10 浅色区块的网格底纹（可选，用于强调"技术/数据"区块） */
.tech-grid-light {
  background-image:
    linear-gradient(var(--grid-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-d) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------------------------------------------------------------------------
 * 18. 身份分流卡（首页「快速进入」）
 *     目的：机构人员 / 一线检验人员 / 监管人员三类访客，各一眼找到自己的入口。
 * ------------------------------------------------------------------------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-5); }
.role-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.role-card:hover { box-shadow: var(--sh-2); border-color: var(--brand-200); transform: translateY(-2px); }
.rc-head { display: flex; align-items: center; gap: var(--sp-3); }
.rc-icon {
  width: 42px; height: 42px; flex: none; border-radius: var(--r-sm); background: var(--brand-50);
  color: var(--brand-600); font-size: 19px; display: flex; align-items: center; justify-content: center;
}
.rc-head h3 { font-size: var(--fs-lg); color: var(--ink); line-height: 1.4; }
.rc-sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.rc-list { list-style: none; flex: 1; }
.rc-list li { border-top: 1px dashed var(--line); }
.rc-list li:first-child { border-top: none; }
.rc-list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: 10px 2px; font-size: var(--fs-base); color: #46536b; text-decoration: none;
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}
.rc-list a::after { content: '›'; color: var(--faint); font-size: 17px; line-height: 1; }
.rc-list a:hover { color: var(--brand-600); padding-left: 6px; }
.rc-list a:hover::after { color: var(--brand-500); }

/* ---------------------------------------------------------------------------
 * 19. 组件补充：原分散在各页内联样式里重复定义，此处统一下沉
 *     （类名保持不变，页面删除重复定义即可，JS 无需改动）
 * ------------------------------------------------------------------------- */

/* 16.1 区块小标题 + 计数（列表页通用：左筛选 右计数+操作） */
.sub-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); flex-wrap: wrap; margin-bottom: 14px;
}
.sub-head h3 { font-size: 19px; color: var(--brand-600); }
.sub-head .cnt { font-size: var(--fs-base); color: var(--muted); }
.hr-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: 14px; }
.hr-head .cnt { font-size: var(--fs-base); color: var(--muted); }

/* 16.2 工具条（.hr-toolbar 与 .toolbar 等价，保留旧类名） */
.hr-toolbar { display: flex; gap: 10px; margin-bottom: var(--sp-4); flex-wrap: wrap; align-items: center; }
.hr-toolbar input[type=text], .hr-toolbar input[type=search] {
  flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); font-size: var(--fs-base); font-family: inherit;
}
.hr-toolbar select { padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: var(--fs-base); background: var(--card); }
.hr-toolbar input:focus, .hr-toolbar select:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--sh-focus); }

/* 16.3 标签页 */
.tabs { display: flex; gap: 6px; margin-bottom: var(--sp-4); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-item {
  padding: 9px 18px; font-size: var(--fs-base); color: #47546a; cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.tab-item:hover { color: var(--brand-600); }
.tab-item.active { color: var(--brand-600); font-weight: 600; border-bottom-color: var(--brand-600); }

/* 16.4 信息条目（信息发布 / 新闻管理弹窗 / 案例共用的一套行式组件） */
.job-list, .news-list, .case-list {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.job-item, .news-item, .case-item { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.job-item:last-child, .news-item:last-child, .case-item:last-child { border-bottom: none; }
.job-item:hover, .news-item:hover, .case-item:hover { background: var(--bg-soft); }
.job-top, .news-top, .case-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
}
.job-title, .news-title, .case-title { font-size: var(--fs-lg); font-weight: 700; color: var(--ink); line-height: 1.5; }
.job-salary { font-size: var(--fs-md); font-weight: 700; color: var(--warn); white-space: nowrap; }
.job-org { font-size: var(--fs-base); color: #4a5460; margin: 4px 0 6px; }
.job-meta, .news-date { font-size: var(--fs-sm); color: var(--muted); }
.job-tags, .cust-tags { margin-top: 8px; }
.job-jd, .news-sum { font-size: var(--fs-sm); color: #5a6470; margin-top: 8px; line-height: 1.75; }
.job-foot, .news-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); margin-top: var(--sp-3); flex-wrap: wrap;
}
.job-time, .news-src { font-size: var(--fs-xs); color: var(--muted); }
.job-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* 16.5 法规/提示小条 */
.law-note { font-size: var(--fs-sm); color: #8a6d1f; background: var(--accent-50); padding: 6px 10px; border-radius: var(--r-xs); margin-top: 8px; }
.law-note.pending { background: var(--warn-bg); color: #8a5a00; }

/* 16.6 客户/会员卡（首页客户墙 + 会员风采共用） */
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); }
.cust-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 16px 18px; font-size: var(--fs-base); color: #4a5460;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.cust-item:hover { box-shadow: var(--sh-2); border-color: var(--brand-200); }
.cust-item .region, .cust-item .cust-region { display: block; font-size: var(--fs-xs); color: var(--accent-600); margin-bottom: 6px; }
.cust-name { font-size: var(--fs-md); color: #2b3745; font-weight: 600; line-height: 1.6; }
.cust-sum { font-size: var(--fs-sm); color: #5a6470; margin-top: 8px; line-height: 1.75; }
.cust-period { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }

/* 16.7 详情卡（新闻详情 / 后续法规详情复用） */
.detail-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 30px 34px; }
.detail-card .d-cat { margin-bottom: 10px; }
.detail-card .d-title { font-size: var(--fs-2xl); color: var(--ink); line-height: 1.5; margin-bottom: var(--sp-3); }
.detail-card .d-meta { font-size: var(--fs-sm); color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.detail-card .d-body { font-size: var(--fs-md); color: var(--text); line-height: 1.9; padding: 16px 0 6px; white-space: pre-wrap; }
.detail-card .d-src { font-size: var(--fs-xs); color: var(--muted); margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* 16.8 游客引导卡（渐进式门禁统一款：虚线浅底，页内呈现而非跳转登录） */
.guest-card {
  background: var(--bg-soft); border: 1px dashed var(--line-2); border-radius: var(--r-md);
  padding: var(--sp-6); text-align: center;
}
.guest-card h3, .guest-card h4 { font-size: var(--fs-xl); color: var(--ink); margin-bottom: var(--sp-3); }
.guest-card p { font-size: var(--fs-base); color: var(--muted); line-height: 1.9; margin-bottom: var(--sp-4); }
.gc-acts { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.gc-list { list-style: none; text-align: left; font-size: var(--fs-sm); color: var(--muted); line-height: 2; border-top: 1px dashed var(--line); padding-top: 14px; }
.gc-list li::before { content: '✓ '; color: var(--brand-600); }
/* 页级独立引导面板（整页只有引导时用，如信息发布页游客态） */
.guest-panel { max-width: 640px; margin: 8px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 32px; text-align: center; }

/* 16.9 模态关闭按钮：兼容旧的 .modal-head a 写法 */
.modal-head a.m-close, .modal-head > a { font-size: 22px; color: var(--muted); text-decoration: none; line-height: 1; }
.modal-head a.m-close:hover, .modal-head > a:hover { color: var(--ink); }

/* 16.10 表单错误态 */
.err, .err-msg { color: var(--danger); font-size: var(--fs-sm); }

@media (max-width: 768px) {
  .job-foot, .news-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .guest-panel { padding: 24px 18px; }
  .detail-card { padding: 18px 16px 24px; }
  .detail-card .d-title { font-size: var(--fs-xl); }
}
