/* ===== 招生统一管理系统 - 全局样式 ===== */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
}

/* ===== 通用组件 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--gray-300); color: var(--gray-600); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* 开关 (switch) */
.switch { position: relative; display: inline-block; width: 38px; height: 22px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gray-300); border-radius: 22px; transition: 0.2s;
}
.switch .slider:before {
    position: absolute; content: ""; height: 16px; width: 16px;
    left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.2s;
}
.switch input:checked + .slider { background: var(--success); }
.switch input:checked + .slider:before { transform: translateX(16px); }

/* 表格 + 过滤条 */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td {
    padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--gray-200); vertical-align: middle;
}
.data-table thead th {
    background: var(--gray-100); font-weight: 700; color: var(--gray-600);
    position: sticky; top: 0;
}
.data-table tbody tr:hover { background: var(--gray-50); }
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group label .required { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); }
.form-control:read-only { background: var(--gray-100); }
.form-row { display: flex; gap: 16px; }
.form-row > .form-group { flex: 1; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

select.form-control { cursor: pointer; }
textarea.form-control { min-height: 80px; resize: vertical; }

/* ===== 表单校验（行内错误反馈）===== */
/* 通过 .is-invalid 为输入框添加红色边框及阴影，.field-error 用于显示具体提示语。*/
.form-control.is-invalid,
.form-control.is-invalid:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.field-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    line-height: 1.4;
    min-height: 16px;
}
.field-error:empty { display: none; }

/* ===== 注册实时校验（身份证/手机号有效·无效反馈）===== */
.form-control.input-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.form-control.input-ok {
    border-color: #07c160;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.12);
}
.field-hint {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 4px;
    min-height: 16px;
}
.field-hint.hint-error { color: var(--danger); }
.field-hint.hint-ok { color: #07c160; }

/* ===== 卡片 ===== */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}
.card-title { font-size: 18px; font-weight: 700; color: var(--gray-800); }

/* ===== 表格 ===== */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: var(--gray-50); padding: 12px 16px; text-align: left; font-weight: 600; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
.table tbody tr:hover { background: var(--gray-50); }

/* ===== 徽章 ===== */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-pending { background: var(--warning-light); color: #92400e; }
.badge-passed { background: var(--success-light); color: #065f46; }
.badge-rejected { background: var(--danger-light); color: #991b1b; }
.badge-classed { background: var(--info-light); color: #1e40af; }
.badge-published { background: #e0e7ff; color: #3730a3; }

/* ===== 导航栏 ===== */
.navbar {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}
.navbar-brand { font-size: 18px; font-weight: 700; color: var(--primary); text-decoration: none; display: flex; align-items: center; }
/* 2026-08-26 改版：欢迎语（品牌右侧），菜单 margin-left:auto 整体靠右 */
.nav-user { font-size: 14px; color: var(--gray-500); white-space: nowrap; }
.navbar-nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
/* 退出按钮化（与门户"报名"按钮视觉层级对应，红色系表警示） */
.nav-logout {
    padding: 7px 18px;
    margin-left: 10px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--danger);
    background: #fff;
    border: 1px solid #fecaca;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.nav-logout:hover { background: #fef2f2; border-color: var(--danger); }
.nav-link { padding: 8px 16px; border-radius: var(--radius); font-size: 14px; color: var(--gray-600); text-decoration: none; cursor: pointer; transition: all 0.2s; }
.nav-link:hover { background: var(--gray-100); color: var(--primary); }
.nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* ===== 消息铃铛（P1） ===== */
.nav-bell { position: relative; margin-left: 12px; cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 6px; }
.nav-bell .bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: #f5222d; color: #fff;
  font-size: 12px; line-height: 18px; text-align: center;
}
.msg-panel {
  position: absolute; right: 20px; top: 64px; width: 340px; max-width: 90vw;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.15);
  z-index: 1000; overflow: hidden;
}
.msg-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100); font-weight: 600;
}
.msg-panel-actions a { font-size: 13px; color: var(--primary); margin-left: 12px; cursor: pointer; }
.msg-panel-body { max-height: 60vh; overflow-y: auto; padding: 8px 0; }
.msg-empty { padding: 40px 0; text-align: center; color: var(--gray-500); font-size: 14px; }
.msg-item { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); cursor: pointer; }
.msg-item.unread { background: #f0f6ff; }
.msg-item-head { display: flex; justify-content: space-between; align-items: center; }
.msg-item-title { font-weight: 600; font-size: 14px; }
.msg-dot { width: 8px; height: 8px; border-radius: 50%; background: #f5222d; }
.msg-item-content { margin-top: 6px; font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.msg-item-time { margin-top: 6px; font-size: 12px; color: var(--gray-400); }

/* ===== 统计卡片 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.stat-card .stat-value { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card .stat-trend { font-size: 12px; margin-top: 6px; font-weight: 500; }
.stat-card .stat-trend.up { color: var(--success); }
.stat-card .stat-trend.down { color: var(--danger); }

/* ===== 进度条 ===== */
.progress-steps { display: flex; align-items: center; margin: 24px 0; }
.progress-step { display: flex; align-items: center; gap: 8px; }
.progress-step .step-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: var(--gray-200); color: var(--gray-500); }
.progress-step.active .step-circle { background: var(--primary); color: #fff; }
.progress-step.done .step-circle { background: var(--success); color: #fff; }
.progress-step .step-label { font-size: 13px; color: var(--gray-500); }
.progress-step.active .step-label, .progress-step.done .step-label { color: var(--gray-800); font-weight: 600; }
.progress-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 8px; }
.progress-line.done { background: var(--success); }

/* ===== 模态框 ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal,
.modal-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* ===== 2026-09-09 转专业 / 退学申请卡片样式 ===== */
.hint { color: var(--gray-400, #9ca3af); font-size: 12px; font-weight: normal; }
.req { color: #ef4444; }
.err-tip { color: #ef4444; font-size: 12px; min-height: 16px; margin-top: 2px; }
.loading-tip, .empty-tip { color: var(--gray-500, #6b7280); font-size: 13px; padding: 8px 0; }
.warn-tip {
    color: #b45309; font-size: 12px; margin: 4px 0 12px;
    background: #fffbeb; border: 1px solid #fde68a; padding: 8px 10px; border-radius: 6px;
}
.req-status {
    border: 1px solid var(--gray-200, #e5e7eb); border-radius: 8px;
    padding: 10px 12px; margin-bottom: 10px; font-size: 13px;
}
.req-status-pending { border-color: #f59e0b; }
.req-status-approved { border-color: #10b981; }
.req-status-rejected { border-color: #ef4444; }
.rs-row {
    display: flex; gap: 10px; padding: 4px 0;
    border-bottom: 1px dashed var(--gray-100, #f3f4f6);
}
.rs-row:last-child { border-bottom: none; }
.rs-label { width: 84px; color: var(--gray-500, #6b7280); flex-shrink: 0; }
.rs-value { flex: 1; color: var(--gray-800, #1f2937); word-break: break-all; }
.locked-tip {
    color: #b45309; font-size: 12px; margin-top: 8px;
    background: #fffbeb; border: 1px solid #fde68a; padding: 8px 10px; border-radius: 6px;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--gray-200); }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-400); padding: 0 4px; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 8px; }

/* ===== Toast 提示 ===== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 20px; border-radius: var(--radius); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease; max-width: 400px; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }
.toast-warning { background: var(--warning); }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state .empty-text { font-size: 15px; }

/* ===== 表头 / 表单 label 上的"二级提示"小标签（半透明，不喧宾夺主） ===== */
.col-hint,
.label-hint {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 500;
    cursor: help;
    vertical-align: middle;
    line-height: 1.4;
}
.col-hint:hover,
.label-hint:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* ===== 分页 ===== */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 20px; align-items: center; }
.pagination .page-item { padding: 6px 12px; border-radius: var(--radius); font-size: 13px; cursor: pointer; border: 1px solid var(--gray-200); background: #fff; }
.pagination .page-item:hover { background: var(--gray-100); }
.pagination .page-item.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-item:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 标签页 ===== */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; }
.tab { padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab:hover { color: var(--gray-800); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== 侧边栏布局（管理端）===== */
.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar { width: 220px; background: #fff; border-right: 1px solid var(--gray-200); padding: 16px 0; flex-shrink: 0; }
.admin-sidebar .menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 24px; font-size: 14px; color: var(--gray-600); cursor: pointer; transition: all 0.2s; }
.admin-sidebar .menu-item:hover { background: var(--gray-50); color: var(--primary); }
.admin-sidebar .menu-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; border-right: 3px solid var(--primary); }
.admin-content { flex: 1; padding: 24px; overflow-x: auto; }

/* ===== 文件上传 ===== */
.upload-area { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 24px; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-area .upload-icon { font-size: 32px; color: var(--gray-400); }
.upload-area.uploaded { border-style: solid; background: #f0fff4; }
.upload-area .upload-status { display: flex; align-items: center; justify-content: center; gap: 6px; }
.upload-area .upload-status .check { display: inline-block; }
.text-muted { color: var(--gray-500); font-size: 13px; }
.btn-link { background: transparent; color: var(--primary); border: none; cursor: pointer; padding: 2px 6px; }
.btn-link:hover { text-decoration: underline; }

/* ===== 自动补全搜索框 ===== */
.autocomplete-wrapper { position: relative; }
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 2px solid var(--primary);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}
.autocomplete-item:hover { background: var(--primary-light); }
.autocomplete-item .item-name { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.autocomplete-item .item-desc { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.autocomplete-item .item-code { font-size: 12px; color: var(--info); margin-top: 2px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
    .admin-sidebar { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
 *  首页门户 
 * ============================================================ */

/* 顶部通告栏：全屏通栏深蓝渐变，左滚动公告 + 右咨询热线 */
.topbar {
  height: 40px;
  background: linear-gradient(90deg, #1E3A5F, #2563EB);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.topbar .topbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar .ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 40px;
  line-height: 40px;
}
.topbar .ticker-track {
  display: inline-block;
  padding-left: 100%;
  will-change: transform;
  animation: ticker-scroll 18s linear infinite;
}
.topbar .ticker:hover .ticker-track { animation-play-state: paused; }
.topbar .ticker-track a { color: #fff; text-decoration: none; }
.topbar .ticker-track a:hover { text-decoration: underline; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.topbar .hotline {
  flex-shrink: 0;
  white-space: nowrap;
  opacity: .95;
}

/* 主导航：固定置顶、白底、滚动后毛玻璃 */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.site-nav.scrolled {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(15,23,42,.06);
}
.site-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  /* 2026-09-06 改版：固定 24px 内边距（不再用 5%，避免窄屏挤压品牌区）；
     与 hero/section 同 1200px 容器，左右基准一致，整体对齐观感更稳 */
  padding: 0 24px;
  display: flex;
  align-items: center;
}
.site-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav .nav-brand .brand-logo {
  width: 36px; height: 36px; border-radius: 8px; object-fit: contain;
  background: #fff; display: none;
}
/* 品牌文字块：标题 + 英文小字竖排（home.html 2026-09-06 改版） */
.site-nav .nav-brand .brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}
.site-nav .nav-brand .brand-title { font-size: 18px; font-weight: 700; color: #0F172A; }
/* 品牌区 ↔ 菜单区 之间的硬分隔线（视觉分组；窄屏自动隐藏） */
.site-nav .nav-divider {
  width: 1px;
  height: 28px;
  background: #E2E8F0;
  margin: 0 24px 0 8px;
  flex-shrink: 0;
}
.site-nav .nav-menu {
  flex: 1;
  display: flex;
  /* 2026-08-26 改版：各分区菜单靠右，与右侧登录/报名按钮衔接 */
  justify-content: flex-end;
  gap: 24px;
  margin-right: 32px;
}
.site-nav .nav-menu a {
  position: relative;
  font-size: 15px;
  color: #475569;
  text-decoration: none;
  padding: 6px 2px;
  transition: color .3s;
}
.site-nav .nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: #2563EB;
  transition: width .3s;
}
.site-nav .nav-menu a:hover,
.site-nav .nav-menu a.active { color: #2563EB; }
.site-nav .nav-menu a:hover::after,
.site-nav .nav-menu a.active::after { width: 100%; }
.site-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav .nav-login {
  font-size: 15px;
  color: #475569;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.site-nav .nav-register {
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.site-nav .nav-register:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37,99,235,.28);
}
/* 移动端汉堡 */
.site-nav .nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
}
.site-nav .nav-toggle span {
  display: block; width: 22px; height: 2px; background: #475569; margin: 4px auto;
}
.site-nav .nav-drawer {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  flex-direction: column;
  padding: 8px 5%;
  z-index: 49;
}
.site-nav .nav-drawer.open { display: flex; }
.site-nav .nav-drawer a {
  padding: 14px 4px;
  font-size: 16px;
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid #F1F5F9;
}

/* Hero 首屏 */
.home-hero {
  position: relative;
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 60%, #0EA5E9 100%);
  color: #fff;
  overflow: hidden;
}
.home-hero .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 5%;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 520px;
}
.home-hero .hero-left { flex: 0 0 55%; max-width: 55%; }
.home-hero .hero-right { flex: 1; position: relative; min-height: 320px; }
.home-hero .hero-logo {
  width: 88px; height: 88px; border-radius: 50%; background: #fff;
  object-fit: contain; margin-bottom: 18px; display: none;
}
.home-hero .hero-pill {
  display: inline-block;
  background: #F59E0B;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.home-hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}
.home-hero p {
  font-size: 18px;
  color: #DBEAFE;
  margin-bottom: 28px;
}
.home-hero .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.home-hero .btn-primary-cta,
.home-hero .btn-ghost-cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.home-hero .btn-primary-cta {
  background: #fff; color: #2563EB;
}
.home-hero .btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.home-hero .btn-ghost-cta {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.7);
}
.home-hero .btn-ghost-cta:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}
/* 右列浮动小卡片（4×4 网格=16 个候选位置，5 块按 CSS 写死的固定位置分布） */
.home-hero .hero-floats {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  padding: 26px 22px;
  gap: 6px;
  pointer-events: none;
}
.home-hero .float-card {
  position: static;
  align-self: center; justify-self: center;
  background: #fff; color: #0F172A;
  border-radius: 12px;
  padding: 9px 13px;
  text-align: center; min-width: 84px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  font-size: 13px;
  white-space: nowrap;
}
.home-hero .float-card b { display: block; font-size: 19px; color: #2563EB; line-height: 1.2; }
/* 非显示块：占位但不可见（位置由 CSS .fc5 固定） */
.home-hero .float-card.float-card--hidden { background: transparent; box-shadow: none; visibility: hidden; pointer-events: none; }
/* 5 个块在 16 格中的固定位置（写死，分散且恒定不变） */
.home-hero .float-card.fc1 { grid-column: 2; grid-row: 1; }
.home-hero .float-card.fc2 { grid-column: 4; grid-row: 2; }
.home-hero .float-card.fc3 { grid-column: 1; grid-row: 3; }
.home-hero .float-card.fc4 { grid-column: 3; grid-row: 4; }
.home-hero .float-card.fc5 { grid-column: 3; grid-row: 2; }

/* 通用区块容器（保留 id 结构，仅改视觉） */
.home-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 5%;
}
.home-section .sec-title {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}
.home-section .sec-title::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  border-radius: 2px;
  background: #2563EB;
  margin: 12px auto 0;
}
.home-section .sec-body { font-size: 15px; color: #475569; line-height: 1.8; }

/* 学校简介：图文混排 */
.intro-wrap { display: flex; gap: 32px; align-items: flex-start; }
.intro-wrap .intro-img { flex: 0 0 40%; max-width: 40%; display: none; }
.intro-wrap .intro-img img { width: 100%; border-radius: 12px; }
.intro-wrap .intro-text { flex: 1; font-size: 15px; line-height: 1.8; color: #475569; }

/* 办学特色卡片（home.js 渲染为 .feature-item，这里直接按卡片样式呈现） */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-item {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
  font-size: 15px;
  color: #475569;
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.feature-item::before { content: ""; }
.feature-item .feat-icon {
  display: inline-flex; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #0EA5E9);
  color: #fff; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 14px;
}
.feature-item strong { display: block; font-size: 18px; font-weight: 700; color: #0F172A; margin-bottom: 8px; }
.feature-item span[style*="color:#6b7280"] { font-size: 14px; color: #94A3B8 !important; }

/* 校园风光：网格 + 灯箱 */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 8px; border: 1px solid #E2E8F0; cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.gallery img:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.lightbox {
  position: fixed; inset: 0; background: rgba(15,23,42,.85);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 8px; }
.lightbox .lb-close {
  position: absolute; top: 24px; right: 32px; color: #fff; font-size: 32px; cursor: pointer;
}

/* 新闻 / 公告 列表 */
.home-list {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.home-list .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s;
}
.home-list .row:last-child { border-bottom: none; }
.home-list .row:hover { background: #F8FAFC; }
.home-list .row .t { color: #0F172A; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 16px; }
.home-list .row .t:hover { color: #2563EB; text-decoration: underline; }
.home-list .row .d { color: #94A3B8; font-size: 13px; flex-shrink: 0; }
.home-list .row.has-cover { align-items: flex-start; }
.home-list .row .cover { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; flex-shrink: 0; margin-right: 16px; background: #F3F4F6; }
.home-list .row .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.home-list .row .main .head { display: flex; justify-content: space-between; align-items: center; }
.home-list .row .s { color: #64748B; font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.home-list .row .c { color: #475569; font-size: 14px; line-height: 1.8; margin-top: 6px; background: #F9FAFB; border-left: 3px solid #2563EB; padding: 10px 14px; border-radius: 4px; white-space: pre-wrap; word-break: break-word; }
.home-list .row .c[hidden] { display: none; }
.home-list .notice .t {
  padding-left: 12px;
  position: relative;
}
.home-list .notice .t::before {
  content: '公告';
  position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: #fff; background: #F59E0B;
  border-radius: 999px; padding: 2px 8px; margin-left: -40px;
}

/* 招生信息 */
.enroll-wrap {
  display: flex; gap: 32px; align-items: stretch;
}
.enroll-info {
  flex: 1;
  background: #EFF6FF;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.enroll-info .kv { display: flex; padding: 12px 0; border-bottom: 1px dashed #DBEAFE; font-size: 15px; }
.enroll-info .kv:last-child { border-bottom: none; }
.enroll-info .kv .k { width: 120px; color: #64748B; flex-shrink: 0; }
.enroll-info .kv .v { flex: 1; color: #0F172A; font-weight: 600; }
.enroll-side { flex: 0 0 280px; display: flex; flex-direction: column; justify-content: center; gap: 16px; align-items: center; }
.enroll-side .qr { width: 160px; height: 160px; border-radius: 12px; background: #fff; border: 1px solid #E2E8F0; object-fit: contain; }
.enroll-side .btn-download {
  background: #2563EB; color: #fff; border: none; border-radius: 8px;
  padding: 12px 28px; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.enroll-side .btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37,99,235,.28); }
.major-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.major-tags .tag { background: #DBEAFE; color: #2563EB; padding: 6px 16px; border-radius: 20px; font-size: 14px; }

/* 联系方式 */
.contact-wrap { display: flex; gap: 32px; flex-wrap: wrap; }
.contact-list { flex: 1; min-width: 280px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 8px 22px; box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.contact-list .c-row { display: flex; padding: 14px 0; border-bottom: 1px solid #F1F5F9; font-size: 15px; }
.contact-list .c-row:last-child { border-bottom: none; }
.contact-list .c-label { width: 140px; color: #64748B; flex-shrink: 0; }
.contact-list .c-val { flex: 1; color: #0F172A; }
.contact-list .c-val a { color: #2563EB; text-decoration: none; }
.contact-map { flex: 1; min-width: 280px; border-radius: 16px; overflow: hidden; border: 1px solid #E2E8F0; min-height: 240px; display: none; }

/* 友情链接 */
.links-grid { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; }
.links-grid a {
  display: inline-block; padding: 8px 16px;
  background: #fff; border: 1px solid #E2E8F0;
  border-radius: 999px; color: #475569; text-decoration: none;
  font-size: 14px; line-height: 1.4; transition: all .15s;
}
.links-grid a:hover { color: #fff; background: #2563EB; border-color: #2563EB; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(37,99,235,.25); }

/* 底部 footer：深色四列 */
.home-footer {
  margin-top: 40px;
  background: #0F172A;
  color: #CBD5E1;
  padding: 50px 5% 36px;
  font-size: 14px;
}
/* 上半段：学校简介占满整行 + 联系方式摘要 */
.home-footer .footer-brand {
  max-width: 1200px; margin: 0 auto 28px;
  display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 24px;
}
.home-footer .f-logo { width: 44px; height: 44px; border-radius: 10px; background: #fff; object-fit: contain; margin-bottom: 4px; display: none; }
.home-footer .f-desc { color: #94A3B8; line-height: 1.8; font-size: 13px; max-width: 760px; }
.home-footer .f-contact { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 13px; color: #CBD5E1; margin-top: 4px; }
.home-footer .f-contact span { position: relative; }

/* 下半段：友情链接 / 版权 两列 */
.home-footer .footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
}
.home-footer .footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
.home-footer .footer-col a { display: block; color: #CBD5E1; text-decoration: none; padding: 5px 0; font-size: 13px; transition: color .15s; }
.home-footer .footer-col a:hover { color: #60A5FA; }
.home-footer .footer-meta { text-align: left; color: #94A3B8; font-size: 13px; margin-top: 0; line-height: 2; }
.home-footer .footer-records { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; font-size: 12.5px; color: #64748B; margin-top: 28px; }
.home-footer .footer-records a { color: #60A5FA; text-decoration: none; transition: color .15s; border-bottom: 1px dotted #60A5FA; padding-bottom: 1px; }
.home-footer .footer-records a:hover { color: #93C5FD; }
.home-footer .footer-records a[href=""] { display: none; }
.home-footer .footer-records span { color: #64748B; }

/* 区块背景交替 */
.bg-soft { background: #F0F4FF; }
.bg-gray { background: #F8FAFC; }

/* 首页响应式 */
@media (max-width: 1199px) {
  .home-hero .hero-inner { min-height: 400px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .home-footer .footer-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .site-nav .nav-menu, .site-nav .nav-actions { display: none; }
  .site-nav .nav-toggle { display: block; }
  .home-hero .hero-inner { flex-direction: column; padding: 48px 5%; min-height: auto; }
  .home-hero .hero-left, .home-hero .hero-right { max-width: 100%; flex: 1 1 100%; }
  .home-hero .hero-right { min-height: 220px; margin-top: 24px; }
  .home-hero h1 { font-size: 30px; }
  .intro-wrap { flex-direction: column; }
  .intro-wrap .intro-img { max-width: 100%; flex: 1 1 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .enroll-wrap { flex-direction: column; }
  .enroll-side { flex: 1 1 100%; }
  .home-footer .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .home-footer .footer-col a { display: inline-block; margin: 0 8px; }
  .home-footer .f-desc, .home-footer .footer-meta { text-align: center; }
  .home-footer .f-contact { justify-content: center; }
}

/* ============================================================
 *  补充UI设计：表单、更多链接、骨架屏、可配背景、可左可右简介、
 *              通知公告置顶喇叭、招生简章封面、联系方式图标、
 *              友情链接底部列、风景图标题、移动端表单
 * ============================================================ */

/* Hero 背景图支持：图存在时叠加渐变蒙版 + 缩放展示 */
.home-hero.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.home-hero.has-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,58,95,.78) 0%, rgba(37,99,235,.65) 60%, rgba(14,165,233,.6) 100%);
  pointer-events: none;
}
.home-hero .hero-inner { position: relative; z-index: 1; }
.home-hero .hero-deco { width: 80%; max-width: 420px; height: auto; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.25); display: none; }
.home-hero .hero-deco.show { display: block; }

/* 学校简介：图文可左可右 */
.intro-wrap.intro-right { flex-direction: row-reverse; }
.intro-wrap .intro-img.show { display: block; }
.intro-wrap .intro-img img { display: block; }

/* 新闻 / 通知 区块标题：左对齐 + "更多" 链接 */
.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 5%;
}
.home-section .sec-title.left {
  text-align: left;
  margin-bottom: 0;
}
.home-section .sec-title.left::after { display: none; }
.home-section .sec-header .sec-title.left { padding: 0; }
.more-link {
  color: #2563EB;
  font-size: 14px;
  text-decoration: none;
  transition: opacity .15s;
}
.more-link:hover { opacity: .7; text-decoration: underline; }

/* 通知公告：左侧橙色胶囊标签 + 置顶喇叭 */
.home-list .row .pin-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #FEF3C7; color: #F59E0B;
  font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
  margin-right: 8px;
}
.home-list .row .pin-tag::before {
  content: "\1F50A"; /* speaker emoji as fallback icon */
  font-size: 12px;
}

/* 校园风光：图片可带标题 */
.gallery .g-item { position: relative; overflow: hidden; border-radius: 8px; }
.gallery .g-item img { transition: transform .35s; }
.gallery .g-item .g-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(15,23,42,.78), rgba(15,23,42,0));
  color: #fff; font-size: 13px;
  padding: 22px 12px 10px;
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.gallery .g-item:hover .g-caption { opacity: 1; }
.gallery .g-item:hover img { transform: scale(1.05); }

/* 招生信息：简章封面图 */
.enroll-side .qr { display: none; }
.enroll-side .qr.show { display: block; }
.enroll-side .btn-download:active { transform: scale(.98); }

/* 联系方式：左侧带图标 + tel:/mailto: 可点击 */
.contact-list .c-label {
  display: flex; align-items: center; gap: 8px;
}
.contact-list .c-label::before {
  content: "";
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: #EFF6FF;
  border-radius: 50%;
  display: inline-block;
}
/* 不同 label 自动套不同图标 */
.contact-list .c-label[data-icon="addr"]::before,
.contact-list .c-label[data-icon="地址"]::before { content: "\1F4CD"; background: transparent; font-size: 16px; }
.contact-list .c-label[data-icon="tel"]::before,
.contact-list .c-label[data-icon="电话"]::before { content: "\260E"; background: transparent; font-size: 16px; }
.contact-list .c-label[data-icon="mail"]::before,
.contact-list .c-label[data-icon="邮箱"]::before { content: "\2709"; background: transparent; font-size: 16px; }
.contact-list .c-label[data-icon="time"]::before,
.contact-list .c-label[data-icon="时间"]::before,
.contact-list .c-label[data-icon="工作时间"]::before { content: "\23F0"; background: transparent; font-size: 16px; }
.contact-list .c-val a { color: #2563EB; }
.contact-list .c-val a:hover { text-decoration: underline; }

/* 在线报名表单（§10） */
.apply-form {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(15,23,42,.08);
  padding: 36px;
}
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}
.form-row label .req { color: #EF4444; margin-left: 2px; }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #0F172A;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-row-full { grid-column: 1 / -1; }

.radio-group { display: flex; gap: 10px; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #E2E8F0; border-radius: 8px;
  padding: 8px 16px; cursor: pointer;
  font-size: 14px; color: #475569;
  transition: all .15s;
}
.radio-pill input { accent-color: #2563EB; }
.radio-pill:has(input:checked) {
  border-color: #2563EB; color: #2563EB; background: #EFF6FF;
}

.checkbox-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #475569;
}
.checkbox-row input { accent-color: #2563EB; width: 16px; height: 16px; }
.checkbox-row a { color: #2563EB; text-decoration: none; }
.checkbox-row a:hover { text-decoration: underline; }

.form-actions { display: flex; gap: 14px; justify-content: center; padding-top: 8px; }
.btn-submit, .btn-reset {
  border: none;
  border-radius: 8px;
  padding: 12px 36px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-submit {
  background: #2563EB; color: #fff;
  box-shadow: 0 6px 18px rgba(37,99,235,.25);
}
.btn-submit:hover { background: #1D4ED8; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(37,99,235,.32); }
.btn-submit:active { transform: scale(.98); }
.btn-submit:disabled { background: #94A3B8; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-reset {
  background: #F1F5F9; color: #475569;
}
.btn-reset:hover { background: #E2E8F0; }

.apply-tip { margin-top: 12px; text-align: center; font-size: 14px; min-height: 20px; }
.apply-tip.success { color: #10B981; }
.apply-tip.error { color: #EF4444; }

/* 底部友情链接列 */
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #CBD5E1; text-decoration: none; font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: #60A5FA; }

/* 骨架屏：未填充的容器显示闪烁占位 */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-on #featureGrid:empty::before,
.skeleton-on #campusGallery:empty::before,
.skeleton-on #newsList:empty::before,
.skeleton-on #noticeList:empty::before,
.skeleton-on #linksList:empty::before,
.skeleton-on #contactList:empty::before,
.skeleton-on #majorTags:empty::before,
.skeleton-on #introBody:empty::before {
  content: "";
  display: block;
  min-height: 120px;
  border-radius: 8px;
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s linear infinite;
}
.skeleton-on #featureGrid:empty::before   { min-height: 160px; }
.skeleton-on #campusGallery:empty::before { min-height: 220px; }

/* 全局按钮点击缩小 */
.btn:active { transform: scale(.98); }

/* 在线报名表单 移动端单列 */
@media (max-width: 767px) {
  .apply-form { padding: 22px 16px; border-radius: 16px; }
  .apply-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-actions { flex-direction: column; }
  .btn-submit, .btn-reset { width: 100%; }
  .sec-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 1199px) and (min-width: 768px) {
  .apply-form { padding: 28px; }
  .apply-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
 *  师资力量板块（前台）
 * ============================================================ */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}
.teacher-card {
  background: #fff;
  border: 1px solid #EEF2F7;
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(30,41,59,.12);
  border-color: #C7D2FE;
}
.teacher-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 14px;
  background-size: cover; background-position: center;
  background-color: #E0E7FF;
}
.teacher-avatar-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #4F46E5;
}
.teacher-name { font-size: 16px; font-weight: 700; color: #1F2937; }
.teacher-title { font-size: 13px; color: #4F46E5; margin-top: 4px; font-weight: 600; }
.teacher-subject { font-size: 13px; color: #6B7280; margin-top: 2px; }

/* 教师详情模态窗 */
.teacher-modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.teacher-modal {
  position: relative;
  width: 100%; max-width: 640px;
  max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  padding: 28px 28px 24px;
}
.teacher-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: #F1F5F9; color: #475569; font-size: 24px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .15s, transform .2s, color .15s;
  z-index: 2;
}
.teacher-modal-close:hover { background: #fff; color: #1F2937; transform: rotate(90deg); }
.teacher-modal-head {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 18px; margin-bottom: 4px;
  border-bottom: 1px solid #F1F3F5;
}
.teacher-modal-avatar {
  width: 78px; height: 78px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff;
  box-shadow: 0 6px 16px rgba(99,102,241,.35); border: 3px solid #fff;
}
.teacher-modal-name { font-size: 21px; font-weight: 700; color: #1F2937; }
.teacher-modal-meta { font-size: 13.5px; color: #6B7280; margin-top: 4px; }

/* 专业介绍：顶部 banner 封面（有图显示图+蒙版，无图显示渐变+首字水印） */
.mi-banner {
  position: relative; height: 160px; margin: -28px -28px 0;
  border-radius: 16px 16px 0 0; overflow: hidden;
  background: linear-gradient(135deg,#6366f1 0%,#8b5cf6 55%,#a855f7 100%);
}
.mi-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mi-banner-fallback {
  position: absolute; right: 16px; bottom: 2px;
  font-size: 92px; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.22); user-select: none; pointer-events: none;
}
.mi-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.82) 0%, rgba(15,23,42,.30) 48%, rgba(15,23,42,0) 100%);
}
.mi-banner-text { position: absolute; left: 22px; right: 22px; bottom: 16px; color: #fff; }
.mi-banner-name { font-size: 23px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.mi-banner-meta { font-size: 13.5px; opacity: .92; margin-top: 5px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.mi-body { padding-top: 18px; }
.mi-modal .teacher-modal-close { background: rgba(15,23,42,.45); color: #fff; }
.mi-modal .teacher-modal-close:hover { background: rgba(15,23,42,.72); color: #fff; transform: rotate(90deg); }

/* 字段：图标 + 标签 */
.tm-row { padding: 16px 0; border-bottom: 1px solid #F1F3F5; }
.tm-row:last-child { border-bottom: none; padding-bottom: 0; }
.tm-label {
  display: flex; align-items: center;
  font-size: 14px; font-weight: 700; color: #4338CA;
  margin-bottom: 8px; letter-spacing: .5px;
}
.tm-ico { width: 16px; height: 16px; margin-right: 7px; flex-shrink: 0; }
.tm-value { font-size: 14.5px; color: #374151; line-height: 1.85; white-space: pre-wrap; }

/* 新闻详情模态窗 */
.news-modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.news-modal {
  position: relative;
  width: 100%; max-width: 640px;
  max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  padding: 28px 28px 24px;
}
.news-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: #F1F5F9; color: #475569; font-size: 22px; line-height: 1;
  cursor: pointer; transition: background .15s;
}
.news-modal-close:hover { background: #E2E8F0; }
.news-modal-head { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #F1F3F5; }
.news-modal-title { font-size: 20px; font-weight: 700; color: #1F2937; line-height: 1.5; }
.news-modal-meta  { font-size: 13px; color: #6B7280; margin-top: 6px; }
.news-modal-cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.news-modal-summary {
  font-size: 14px; color: #4B5563; line-height: 1.75;
  background: #F8FAFC; border-left: 3px solid #6366F1;
  padding: 12px 14px; border-radius: 6px; margin-bottom: 18px;
  white-space: pre-wrap;
}
.news-modal-body { font-size: 15px; color: #374151; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 767px) {
  .teacher-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .teacher-card { padding: 16px 10px; }
  .teacher-avatar { width: 64px; height: 64px; }
  .teacher-modal { padding: 22px 18px 18px; border-radius: 12px; max-height: 92vh; }
  .teacher-modal-head { gap: 12px; }
  .teacher-modal-avatar { width: 60px; height: 60px; font-size: 22px; }
  .mi-banner { margin: -22px -18px 0; border-radius: 12px 12px 0 0; height: 130px; }
  .mi-banner-name { font-size: 20px; }
  .mi-banner-fallback { font-size: 70px; }
  .mi-banner-text { left: 18px; right: 18px; bottom: 12px; }
  .mi-body { padding-top: 16px; }
  .tm-label { font-size: 13.5px; }
}
