/* 智衡学评系统 - 政务风样式 */
:root {
  --header-bg: linear-gradient(135deg, #1e6fd9 0%, #3b8eea 50%, #5ba3f5 100%);
  --sidebar-bg: #f0f5fc;
  --sidebar-active: #e3effd;
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --border: #d9e4f0;
  --text: #1a2b3c;
  --text-secondary: #5a6d7e;
  --talent-highlight: #fff8e6;
  --talent-border: #f5a623;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: var(--text); background: #f5f7fa; }

/* 顶栏 */
.app-header {
  height: 56px;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,115,232,.25);
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
.header-logo { display: flex; align-items: center; gap: 12px; }
.logo-img {
  width: 40px; height: 40px; display: block; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
}
.header-title { font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.header-subtitle { font-size: 12px; opacity: .85; margin-top: 2px; }
.header-user { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.header-user-info { text-align: right; }
.header-btn {
  padding: 5px 14px; border-radius: 4px; font-size: 13px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.15);
  color: #fff; transition: all .2s;
}
.header-btn:hover { background: rgba(255,255,255,.3); }
.header-btn.danger { border-color: #ffcdd2; color: #ffebee; }
.header-btn.danger:hover { background: rgba(244,67,54,.3); }

/* 布局 */
.app-body { display: flex; margin-top: 56px; min-height: calc(100vh - 56px); }

/* 侧栏 */
.app-sidebar {
  width: 220px; background: var(--sidebar-bg); border-right: 1px solid var(--border);
  position: fixed; top: 56px; bottom: 0; overflow-y: auto; z-index: 50;
  transition: transform .25s ease;
}
.app-sidebar.hidden { display: none; }
.subsystem-back {
  display: flex; align-items: center; gap: 6px; padding: 14px 16px;
  font-size: 13px; color: var(--primary); cursor: pointer; border-bottom: 1px solid var(--border);
  background: #fff; transition: background .2s;
}
.subsystem-back:hover { background: var(--sidebar-active); }
.subsystem-title {
  padding: 14px 16px 10px; font-size: 14px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border); background: #e8f1fb;
}
.subsystem-title span { margin-right: 6px; }
.menu-group { border-bottom: 1px solid var(--border); }
.menu-parent {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text);
  transition: background .2s; user-select: none;
}
.menu-parent:hover { background: #e8f0fe; }
.menu-parent.active { color: var(--primary); }
.menu-arrow { margin-left: auto; font-size: 10px; transition: transform .2s; }
.menu-arrow.open { transform: rotate(90deg); }
.menu-children { display: none; background: #fff; }
.menu-children.open { display: block; }
.menu-child {
  padding: 10px 16px 10px 40px; font-size: 13px; color: var(--text-secondary);
  cursor: pointer; transition: all .2s; border-left: 3px solid transparent;
}
.menu-child:hover { background: var(--sidebar-active); color: var(--primary); }
.menu-child.active {
  background: var(--sidebar-active); color: var(--primary);
  border-left-color: var(--primary); font-weight: 500;
}

/* 主内容 */
.app-main { flex: 1; padding: 20px; min-width: 0; transition: margin-left .25s ease; }
.app-main.portal-mode { margin-left: 0; max-width: none; width: 100%; padding: 0; background: #f0f5fc; }
.app-main.subsystem-mode { margin-left: 220px; padding: 20px; }

/* 面包屑 */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--text-secondary); margin-bottom: 16px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
}
.breadcrumb a, .breadcrumb .bc-link {
  color: var(--primary); cursor: pointer; text-decoration: none;
}
.breadcrumb a:hover, .breadcrumb .bc-link:hover { text-decoration: underline; }
.breadcrumb .bc-sep { color: #ccc; }
.breadcrumb .bc-current { color: var(--text); font-weight: 500; }

/* 平台首页 - 浅蓝高级风两幕式 */
.portal-page { width: 100%; }

/* ── 第一幕：数据驾驶舱 ── */
.portal-hero {
  position: relative; min-height: 88vh; padding: 40px 48px 48px;
  background: linear-gradient(165deg, #e8f2fd 0%, #f5f9ff 35%, #eef4fc 70%, #f8fbff 100%);
  overflow: hidden;
}
.portal-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(26,115,232,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,115,232,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.portal-hero::after {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,163,245,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-header { position: relative; z-index: 1; margin-bottom: 36px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--primary); font-weight: 500;
  padding: 4px 14px; background: rgba(255,255,255,.7);
  border: 1px solid rgba(26,115,232,.15); border-radius: 20px; margin-bottom: 14px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #38a169;
  box-shadow: 0 0 6px rgba(56,161,105,.6); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.hero-header h1 {
  margin: 0 0 8px; font-size: 32px; font-weight: 600; letter-spacing: .5px;
  background: linear-gradient(135deg, #1a3a5c 0%, #1a73e8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-header p { margin: 0; font-size: 15px; color: var(--text-secondary); }

.hero-metrics {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 32px;
}
@media (max-width: 1200px) { .hero-metrics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .hero-metrics { grid-template-columns: repeat(2, 1fr); } }

.hero-metric {
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 14px;
  padding: 24px 20px; cursor: pointer;
  box-shadow: 0 4px 24px rgba(26,115,232,.06), 0 1px 3px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-metric:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,115,232,.12), 0 2px 8px rgba(0,0,0,.04);
}
.hero-metric-value {
  font-size: 40px; font-weight: 700; line-height: 1.1; margin-bottom: 6px;
  background: linear-gradient(135deg, #1a73e8, #5ba3f5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-metric-value .unit { font-size: 18px; font-weight: 500; }
.hero-metric-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.hero-metric-trend { font-size: 12px; color: #38a169; font-weight: 500; }
.hero-metric-trend.warn { color: #d69e2e; }

.hero-charts {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-bottom: 28px;
}
@media (max-width: 1000px) { .hero-charts { grid-template-columns: 1fr; } }

.hero-chart-panel {
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.95); border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 24px rgba(26,115,232,.06);
}
.hero-chart-panel h3 {
  margin: 0 0 4px; font-size: 16px; font-weight: 600; color: #2c5282;
}
.hero-chart-panel .chart-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }
.hero-chart-panel canvas { max-height: 300px; }

.hero-status {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  padding: 16px 24px; background: rgba(255,255,255,.6);
  border: 1px solid rgba(26,115,232,.1); border-radius: 12px;
  font-size: 13px; color: var(--text-secondary);
}
.hero-status strong { color: var(--text); }
.hero-status-item { display: flex; align-items: center; gap: 8px; }
.hero-status-item .status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #38a169;
}

.hero-scroll-hint {
  position: relative; z-index: 1; display: block; margin: 32px auto 0;
  background: none; border: none; color: var(--primary); font-size: 13px;
  cursor: pointer; opacity: .7; transition: opacity .2s;
  animation: bounce 2s infinite;
}
.hero-scroll-hint:hover { opacity: 1; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── 过渡分隔 ── */
.portal-divider {
  height: 1px; background: linear-gradient(90deg, transparent, rgba(26,115,232,.2), transparent);
  margin: 0 48px;
}

/* ── 第二幕：业务子系统入口 ── */
.portal-launcher {
  padding: 56px 48px 64px;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f5fc 100%);
}
.launcher-header { text-align: center; margin-bottom: 40px; }
.launcher-header h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; color: var(--text); }
.launcher-header p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.launcher-header .online-badge {
  display: inline-block; margin-top: 12px; padding: 4px 16px;
  background: #e8f1fb; color: var(--primary); border-radius: 20px; font-size: 12px;
}

.launcher-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto;
}
.launcher-grid .module-card { grid-column: span 2; }
.launcher-grid .module-card:nth-child(4) { grid-column: 2 / 4; }
.launcher-grid .module-card:nth-child(5) { grid-column: 4 / 6; }
@media (max-width: 1100px) {
  .launcher-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
  .launcher-grid .module-card,
  .launcher-grid .module-card:nth-child(4),
  .launcher-grid .module-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 700px) {
  .launcher-grid { grid-template-columns: 1fr; max-width: 400px; }
}

.module-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 24px 24px; transition: all .3s ease; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 12px rgba(26,115,232,.04);
}
.module-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent, var(--primary)); opacity: .85;
}
.module-card:hover {
  border-color: rgba(26,115,232,.3);
  box-shadow: 0 16px 48px rgba(26,115,232,.12);
  transform: translateY(-6px);
}
.module-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
  background: var(--icon-bg, #e8f1fb);
}
.module-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.module-card p { margin: 0 0 20px; font-size: 13px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.module-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.module-badge {
  font-size: 11px; padding: 3px 10px; background: #e8f1fb; color: var(--primary); border-radius: 10px;
}
.module-enter-btn {
  height: 36px; padding: 0 20px; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .2s, transform .2s;
  display: flex; align-items: center; gap: 6px;
}
.module-enter-btn:hover { background: var(--primary-hover); transform: translateX(2px); }
.module-card[data-module="archive"] { --accent: #f5a623; --icon-bg: #fff8e6; }
.module-card[data-module="quality"] { --accent: #ecc94b; --icon-bg: #fffff0; }
.module-card[data-module="ai"] { --accent: #9f7aea; --icon-bg: #faf5ff; }
.module-card[data-module="report"] { --accent: #38b2ac; --icon-bg: #e6fffa; }
.module-card[data-module="config"] { --accent: #ed8936; --icon-bg: #fffaf0; }

/* 旧 portal 样式保留给子系统内 stat-grid */
.portal-welcome { margin-bottom: 20px; }
.portal-section-title {
  font-size: 16px; font-weight: 600; margin: 24px 0 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.page-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.page-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

/* 筛选区 */
.filter-bar {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 16px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}
.filter-item label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.filter-item input, .filter-item select {
  height: 32px; border: 1px solid var(--border); border-radius: 4px;
  padding: 0 10px; font-size: 13px; min-width: 140px; outline: none;
}
.filter-item input:focus, .filter-item select:focus { border-color: var(--primary); }
.btn-primary {
  height: 32px; padding: 0 20px; background: var(--primary); color: #fff;
  border: none; border-radius: 4px; font-size: 13px; cursor: pointer; transition: background .2s;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  height: 32px; padding: 0 16px; background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 4px; font-size: 13px; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { height: 26px; padding: 0 10px; font-size: 12px; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 12px; padding: 2px 6px; }
.btn-link:hover { text-decoration: underline; }

/* 表格 */
.table-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead { background: #e8f1fb; }
.data-table th {
  padding: 10px 12px; text-align: left; font-weight: 600; color: #2c5282;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid #eef2f7; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr.talent-row { background: var(--talent-highlight); }
.data-table tbody tr.talent-row:hover { background: #fff3d0; }
.talent-badge {
  display: inline-block; padding: 1px 8px; background: #fff3cd; color: #856404;
  border: 1px solid var(--talent-border); border-radius: 10px; font-size: 11px; margin-left: 6px;
}
.score-low { color: #e53e3e; font-weight: 600; }
.score-high { color: #38a169; font-weight: 600; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 11px; }
.tag-objective { background: #e6f7ee; color: #276749; }
.tag-subjective { background: #fef3e2; color: #c05621; }
.tag-mixed { background: #ebf4ff; color: #2b6cb0; }
.tag-pass { background: #e6f7ee; color: #276749; }
.tag-fail { background: #fed7d7; color: #c53030; }

/* 分页 */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary);
}
.pagination-btns { display: flex; gap: 4px; }
.page-btn {
  min-width: 28px; height: 28px; border: 1px solid var(--border); background: #fff;
  border-radius: 4px; cursor: pointer; font-size: 12px;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 16px; text-align: center;
}
.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.stat-trend { font-size: 11px; color: #38a169; margin-top: 4px; }

/* 权重配置 */
.weight-panel { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 24px; }
.weight-item { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.weight-label { width: 120px; font-size: 14px; }
.weight-slider { flex: 1; }
.weight-value { width: 60px; text-align: right; font-weight: 600; color: var(--primary); }
.weight-total { text-align: right; font-size: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* 开关 */
.switch { position: relative; width: 44px; height: 22px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0; background: #ccc; border-radius: 22px; cursor: pointer; transition: .3s;
}
.switch-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 2px; bottom: 2px;
  background: #fff; border-radius: 50%; transition: .3s;
}
.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider::before { transform: translateX(22px); }

/* 弹窗 */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay.fullscreen { background: rgba(0,0,0,.6); }
.modal-box {
  background: #fff; border-radius: 8px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.2); animation: modalIn .25s ease;
}
.modal-box.sm { width: 480px; }
.modal-box.md { width: 640px; }
.modal-box.lg { width: 800px; }
.modal-box.full { width: 95vw; height: 92vh; max-height: 92vh; }
@keyframes modalIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: #e8f1fb; border-radius: 8px 8px 0 0;
}
.modal-header h3 { margin: 0; font-size: 16px; color: #2c5282; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #999; }
.modal-close:hover { color: #333; }
.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); text-align: right; display: flex; gap: 8px; justify-content: flex-end; }

/* 报告弹窗 */
.report-header { display: flex; gap: 24px; margin-bottom: 20px; }
.report-info { flex: 1; }
.report-info h2 { margin: 0 0 8px; font-size: 22px; }
.report-meta { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.report-match {
  width: 160px; height: 160px; border-radius: 50%; background: linear-gradient(135deg, #1a73e8, #5ba3f5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.report-match .value { font-size: 42px; font-weight: 700; }
.report-match .label { font-size: 12px; opacity: .9; }
.report-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.chart-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 6px; padding: 16px; }
.chart-box h4 { margin: 0 0 12px; font-size: 14px; color: #2c5282; }
.talent-highlight-box {
  background: linear-gradient(135deg, #fff8e6, #fff3cd); border: 2px solid var(--talent-border);
  border-radius: 8px; padding: 16px; margin-bottom: 20px;
}
.talent-highlight-box h4 { margin: 0 0 8px; color: #856404; }
.score-detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.score-detail-table th, .score-detail-table td { padding: 8px 12px; border: 1px solid var(--border); text-align: center; }
.score-detail-table th { background: #e8f1fb; }

/* 就业看板 */
.employment-card {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 16px; margin-bottom: 12px;
}
.employment-card h4 { margin: 0 0 8px; }
.career-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.career-tag {
  padding: 4px 12px; background: #e8f1fb; color: var(--primary);
  border-radius: 16px; font-size: 12px;
}

/* Toast */
.toast {
  position: fixed; top: 70px; right: 24px; background: #333; color: #fff;
  padding: 10px 20px; border-radius: 6px; font-size: 13px; z-index: 300;
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* 空状态 */
.empty-state { text-align: center; padding: 40px; color: var(--text-secondary); }

/* 登录页 */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #e8f1fb; position: relative; overflow: hidden;
}
.login-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1e6fd9 0%, #3b8eea 40%, #e8f1fb 40%);
}
.login-container { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 20px; }
.login-card {
  background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(26,115,232,.18);
  padding: 40px 36px 28px; border: 1px solid var(--border);
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo-img {
  width: 64px; height: 64px; display: block; margin: 0 auto 16px;
  filter: drop-shadow(0 4px 12px rgba(26,115,232,.25));
}
.login-header h1 { margin: 0 0 6px; font-size: 22px; color: var(--text); }
.login-header p { margin: 0; font-size: 13px; color: var(--text-secondary); }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-field label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.login-field input {
  width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 6px;
  padding: 0 14px; font-size: 14px; outline: none; transition: border-color .2s;
}
.login-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,115,232,.12); }
.login-error { font-size: 13px; color: #e53e3e; min-height: 18px; text-align: center; }
.login-btn {
  height: 42px; background: var(--primary); color: #fff; border: none; border-radius: 6px;
  font-size: 15px; font-weight: 500; cursor: pointer; letter-spacing: 4px; transition: background .2s;
}
.login-btn:hover { background: var(--primary-hover); }
.login-footer {
  margin-top: 24px; text-align: center; font-size: 12px; color: var(--text-secondary);
  border-top: 1px solid #eef2f7; padding-top: 16px;
}

/* 操作列 */
.action-btns { display: flex; flex-wrap: wrap; gap: 4px; }

/* 表单录入 */
.form-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 24px 28px; max-width: 880px;
}
.form-section-title {
  font-size: 14px; font-weight: 600; color: #2c5282;
  margin: 20px 0 16px; padding-bottom: 8px; border-bottom: 1px solid #eef2f7;
}
.form-section-title:first-child { margin-top: 0; }
.form-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label {
  display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px;
}
.form-field .required { color: #e53e3e; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 12px; font-size: 14px; outline: none; font-family: inherit;
}
.form-field input, .form-field select { height: 36px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,115,232,.1);
}
.form-field-wide { grid-column: 1 / -1; }
.form-hint { display: block; font-size: 11px; color: #999; margin-top: 4px; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #eef2f7; }
.form-actions .btn-primary, .form-actions .btn-secondary { height: 36px; padding: 0 24px; }
