/* ============================================================
 * 岗位匹配系统 - 全局样式（浅色高级科技主题 / Light Premium Tech）
 * 高端 · 国际化 · 未来感 · 科技感 · 强可读性
 * ============================================================ */
:root {
  /* 背景层（浅灰白基底） */
  --bg-base: #F1F2F4;
  --bg-glow-1: rgba(8, 43, 65, .12);     /* 深蓝 #082B41 */
  --bg-glow-2: rgba(16, 82, 134, .12);   /* 中蓝 #105286 */
  --bg-glow-3: rgba(253, 179, 56, .07);  /* 橙黄 #FDB338 点缀 */

  /* 玻璃面（浅色半透明白） */
  --surface:      rgba(255, 255, 255, .78);
  --surface-2:    rgba(255, 255, 255, .58);
  --surface-3:    rgba(255, 255, 255, .94);
  --border:       rgba(23, 29, 29, .08);
  --border-strong:rgba(23, 29, 29, .15);

  /* 文本（近黑 #171D1D 拉满可读性） */
  --text:      #171D1D;
  --text-dim:  #3b4748;
  --text-mute: #6b7778;

  /* 主题色：深蓝 #082B41 / 中蓝 #105286 / 橙黄 #FDB338 */
  --primary:        #082B41;
  --primary-2:      #105286;
  --primary-strong: #06223a;
  --primary-dark:   #105286;
  --primary-light:  rgba(8, 43, 65, .10);
  --accent:         #FDB338;

  --success:        #FDB338;   /* 主 CTA 用橙黄 */
  --success-light:  rgba(253, 179, 56, .14);
  --warning:        #d97706;
  --warning-light:  rgba(217, 119, 6, .10);
  --danger:         #dc2626;
  --danger-light:   rgba(220, 38, 38, .08);

  /* 灰阶（近黑 #171D1D 系） */
  --gray-50:  #f7f8f8;
  --gray-100: #F1F2F4;
  --gray-200: #e3e6e7;
  --gray-300: #cfd4d5;
  --gray-400: #9aa3a4;
  --gray-500: #6b7778;
  --gray-600: #455051;
  --gray-700: #2c3637;
  --gray-800: #1f2728;
  --gray-900: #171D1D;

  --radius: 14px;
  --shadow:    0 4px 24px rgba(23, 29, 29, .08);
  --shadow-lg: 0 18px 50px rgba(23, 29, 29, .14);
  --glow:        0 0 0 3px rgba(8, 43, 65, .14);
  --glow-strong: 0 0 0 4px rgba(8, 43, 65, .20);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .2px;
}

/* 全局科技背景：柔光晕 + 极淡网格（fixed，不随滚动） */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(58% 48% at 8% 0%,    var(--bg-glow-1), transparent 60%),
    radial-gradient(52% 44% at 100% 4%,  var(--bg-glow-2), transparent 55%),
    radial-gradient(44% 42% at 50% 104%, var(--bg-glow-3), transparent 60%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(23, 29, 29, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 29, 29, .04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 24%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 24%, #000 30%, transparent 100%);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 通用组件 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface-3); color: var(--text);
  padding: 8px 16px; border-radius: 9px; font-size: 14px; cursor: pointer;
  transition: all .18s ease; font-family: var(--font); white-space: nowrap;
  letter-spacing: .3px; box-shadow: 0 1px 2px rgba(23, 29, 29, .04);
}
.btn:hover { border-color: var(--primary); color: var(--primary); background: #fff; box-shadow: var(--glow); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border: none; color: #fff; font-weight: 700; box-shadow: 0 6px 18px rgba(8, 43, 65, .28); }
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, #105286, #1a6aa8); box-shadow: 0 8px 24px rgba(8, 43, 65, .38); }
.btn-success { background: linear-gradient(135deg, #FDB338, #f3a521); border: none; color: #171D1D; font-weight: 700; box-shadow: 0 6px 18px rgba(253, 179, 56, .30); }
.btn-success:hover { color: #171D1D; filter: brightness(1.05); box-shadow: 0 8px 24px rgba(253, 179, 56, .40); }
.btn-danger { background: #fff; border-color: rgba(220, 38, 38, .35); color: var(--danger); }
.btn-danger:hover { background: var(--danger-light); border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card + .card { margin-top: 16px; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.form-group .hint { font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; font-family: var(--font); background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 43, 65, .14), 0 0 14px rgba(8, 43, 65, .12);
}
.textarea { resize: vertical; min-height: 90px; line-height: 1.7; }
.input.invalid, .select.invalid { border-color: var(--danger); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(23, 29, 29, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  padding: 20px; animation: fadeIn .18s ease;
}
.modal {
  background: linear-gradient(180deg, #ffffff, #eef2f6);
  border-radius: 18px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(8, 43, 65, .08);
  border: 1px solid var(--border-strong);
  width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  animation: slideUp .22s ease;
}
.modal-lg { max-width: 780px; }
.modal-xl { max-width: 980px; }
.modal-xl .modal-body { padding: 18px 22px 22px; }
.modal-header { padding: 18px 22px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 17px; color: var(--text); letter-spacing: .4px; }
.modal-close {
  border: none; background: var(--gray-100); color: var(--gray-600); width: 30px; height: 30px;
  border-radius: 9px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--gray-200); color: var(--text); }
.modal-body { padding: 18px 22px 22px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- Toast ---------- */
#toast-box { position: fixed; top: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: rgba(255, 255, 255, .96); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px;
  font-size: 14px; color: var(--text); border-left: 4px solid var(--primary); animation: slideLeft .25s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast .t-icon { font-size: 16px; }
@keyframes slideLeft { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- 徽章/标签 ---------- */
.badge {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; background: var(--gray-100); color: var(--gray-600);
}
.badge-blue { background: rgba(16, 82, 134, .12); color: #105286; }
.badge-green { background: rgba(5, 150, 105, .10); color: #047857; }
.badge-orange { background: rgba(217, 119, 6, .12); color: #b45309; }
.badge-red { background: rgba(220, 38, 38, .10); color: #dc2626; }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }
.tag {
  display: inline-block; padding: 2px 8px; margin: 2px; border-radius: 6px;
  background: var(--gray-100); color: var(--gray-600); font-size: 12px;
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; padding: 10px 12px; background: var(--gray-100); color: var(--gray-600);
  font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--border); white-space: nowrap; letter-spacing: .3px;
}
.table td { padding: 11px 12px; border-bottom: 1px solid rgba(23, 29, 29, .07); vertical-align: middle; color: var(--text); }
.table tr:hover td { background: rgba(8, 43, 65, .05); }
.table .ops { white-space: nowrap; text-align: right; }
.table .ops .btn { margin-left: 6px; }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; font-family: var(--font); padding: 0 4px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.link-btn.danger:hover { color: var(--danger); text-decoration: underline; }
.link-btn.warn { color: var(--warning); }
.emp-link { cursor: pointer; color: var(--primary); font-weight: 600; }
.emp-link:hover { text-decoration: underline; }

.empty-tip { text-align: center; color: var(--text-mute); padding: 40px 0; font-size: 14px; }
.empty-tip .icon { font-size: 40px; margin-bottom: 10px; display: block; }

/* ---------- 布局 ---------- */
.page-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; background: linear-gradient(180deg, #082B41, #0a3a5c); border-right: 1px solid #06223a;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  box-shadow: 4px 0 24px rgba(8, 43, 65, .18);
}
.sidebar-logo { padding: 20px 20px 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sidebar-logo .logo-title { font-size: 17px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; letter-spacing: .4px; }
.sidebar-logo .logo-sub { font-size: 12px; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.sidebar-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px;
  color: rgba(255, 255, 255, .75); font-size: 14px; cursor: pointer; margin-bottom: 4px;
  transition: background .15s, color .15s, box-shadow .15s; border: none; background: none; width: 100%; text-align: left; font-family: var(--font);
}
.nav-item:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.nav-item.active { background: rgba(16, 82, 134, .55); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #FDB338; }
.nav-item .nav-icon { width: 20px; text-align: center; font-size: 16px; }
.sidebar-user { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.sidebar-user .u-name { font-weight: 600; color: #fff; font-size: 13.5px; }
.sidebar-user .u-role { font-size: 12px; color: rgba(255, 255, 255, .55); }
.sidebar-user .logout { margin-top: 8px; }
/* 工作模式：左下角「隶属公司」橙色方块（白字） */
.sidebar-user .u-company-row { margin-top: 12px; }
.sidebar-user .u-cap { display: block; font-size: 11px; color: rgba(255, 255, 255, .55); letter-spacing: .3px; margin-bottom: 5px; }
.sidebar-user .u-company {
  display: block; padding: 8px 12px; border-radius: 9px;
  background: linear-gradient(135deg, #FDB338 0%, #F08C00 100%);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; line-height: 1.4;
  box-shadow: 0 3px 10px rgba(253, 179, 56, .28);
  word-break: break-all;
}

/* 中间主界面：纯白 */
.main {
  flex: 1; min-width: 0; padding: 24px;
  background: #FFFFFF;
}
.page-head { margin-bottom: 20px; }
.page-head h2 { font-size: 20px; color: var(--text); letter-spacing: .4px; }
.page-head .sub { color: var(--text-mute); font-size: 13px; margin-top: 2px; }

/* ---------- 首页 ---------- */
.landing {
  min-height: 100vh; display: flex; flex-direction: column;
  /* 登录界面窗口外：深蓝 #082B41，叠加极淡蓝/橙光晕增加层次 */
  background:
    radial-gradient(62% 52% at 50% 0%,    rgba(16, 82, 134, .45), transparent 62%),
    radial-gradient(50% 46% at 100% 100%, rgba(253, 179, 56, .12), transparent 60%),
    #082B41;
}
.landing-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 20px 60px; }

/* 登录页：鉴权卡片（窗口内：浅灰白 #F1F2F4，输入框保持白底除外） */
.auth-card {
  width: 100%; max-width: 420px;
  background: #F1F2F4; border: 1px solid var(--border-strong);
  border-radius: 20px; box-shadow: var(--shadow-lg), 0 0 60px rgba(8, 43, 65, .18);
  padding: 34px;
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, rgba(8, 43, 65, .55), transparent 40%, transparent 60%, rgba(253, 179, 56, .50));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.auth-block { position: relative; }
.auth-title { font-size: 17px; color: var(--text); margin-bottom: 16px; letter-spacing: .5px; }
.auth-foot { text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.auth-foot .link-muted { color: var(--text-dim); font-size: 13.5px; text-decoration: none; }
.auth-foot .link-muted:hover { color: var(--primary); }
.admin-port { text-align: center; margin-top: 14px; }
.admin-port a {
  color: var(--text-mute); font-size: 12.5px; text-decoration: none;
  border-bottom: 1px dashed var(--border-strong); padding-bottom: 1px;
}
.admin-port a:hover { color: var(--primary); }

/* 首页登录弹窗 */
.login-icon { text-align: center; margin-bottom: 12px; font-size: 40px; }
.login-tip { font-size: 12px; color: var(--text-mute); text-align: center; margin-top: 12px; }
.apply-link { text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--text-dim); }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.toolbar .form-group { margin-bottom: 0; min-width: 150px; flex: 1; }
.toolbar .form-group.small { flex: 0 0 auto; min-width: auto; }
.toolbar .actions { display: flex; gap: 8px; }

/* ---------- 岗位卡片 ---------- */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pos-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .18s, border-color .18s, transform .18s; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pos-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateY(-3px); }
.pos-card .pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pos-card .pc-title { font-size: 15.5px; font-weight: 700; color: var(--text); }
.pos-card .pc-company { color: var(--text-mute); font-size: 13px; }
.pos-card .pc-salary { color: var(--danger); font-weight: 700; font-size: 15px; white-space: nowrap; }
.pos-card .pc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pos-card .pc-desc { color: var(--text-dim); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pos-card .pc-ops { display: flex; gap: 8px; margin-top: 4px; }
.match-percent { font-size: 22px; font-weight: 800; color: var(--primary); }

/* ---------- 匹配结果 ---------- */
.result-block { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.result-block .rb-head { padding: 14px 18px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; color: var(--text); }
.result-block .rb-body { padding: 16px 18px; }
.rb-before .rb-head { background: var(--primary-light); color: var(--primary-strong); }
.rb-after .rb-head { background: rgba(5, 150, 105, .10); color: #047857; }
.issue-item { border-left: 3px solid var(--warning); background: var(--surface-2); padding: 10px 14px; margin-bottom: 10px; border-radius: 0 8px 8px 0; color: var(--text-dim); }
.issue-item.high { border-left-color: var(--danger); background: var(--danger-light); }
.issue-item.medium { border-left-color: var(--warning); background: var(--warning-light); }
.issue-item.low { border-left-color: var(--text-mute); }
.issue-item .ii-title { font-weight: 600; font-size: 13.5px; color: var(--text); }
.issue-item .ii-line { font-size: 13px; margin-top: 3px; color: var(--text-dim); }
.issue-item .ii-line .lbl { color: var(--text-mute); font-weight: 600; margin-right: 4px; }
.issue-item .ii-reason { font-size: 12.5px; margin-top: 4px; color: var(--success); }
.opt-preview {
  background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 10px;
  padding: 16px; max-height: 420px; overflow-y: auto; white-space: pre-wrap;
  font-size: 13.5px; line-height: 1.8; font-family: "Microsoft YaHei", var(--font); color: var(--text-dim);
}
.opt-preview .mark { color: var(--primary); font-weight: 700; }
.opt-preview .divider { color: var(--text-mute); }

/* ---------- 上传区 ---------- */
.upload-zone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface);
  padding: 42px 20px; text-align: center; cursor: pointer; transition: all .18s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--primary-light); box-shadow: var(--glow); }
.upload-zone .uz-icon { font-size: 40px; display: block; margin-bottom: 10px; }
.upload-zone .uz-title { font-size: 15px; font-weight: 600; color: var(--text); }
.upload-zone .uz-sub { font-size: 12.5px; color: var(--text-mute); margin-top: 4px; }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.stat-card .sc-num { font-size: 26px; font-weight: 800; color: var(--text); }
.stat-card .sc-label { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; }

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.detail-item { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.detail-item .di-label { font-size: 12px; color: var(--text-mute); }
.detail-item .di-value { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 2px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--text); margin: 16px 0 8px; padding-left: 10px; border-left: 3px solid var(--primary); letter-spacing: .4px; }
.plain-text { background: var(--surface-2); border-radius: 10px; padding: 14px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.8; max-height: 300px; overflow-y: auto; color: var(--text-dim); }

/* ---------- 岗位文件导入 ---------- */
.pi-format { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.pi-format summary { cursor: pointer; padding: 12px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); user-select: none; }
.pi-format summary:hover { color: var(--primary); }
.pi-format-body { padding: 2px 16px 14px; font-size: 13px; line-height: 1.8; color: var(--text-dim); }
.pi-format-body p { margin: 8px 0; }
.pi-format-body ul { margin: 6px 0 6px 18px; padding: 0; }
.pi-format-body li { margin: 3px 0; }
.pi-example {
  background: var(--gray-50); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 12.5px; line-height: 1.7; color: var(--text-dim);
  overflow-x: auto; white-space: pre; margin: 8px 0;
}
.pi-table td { padding: 8px 8px; }
.pi-table .input, .pi-table .select { min-width: 0; width: 100%; padding: 7px 10px; font-size: 12.5px; }
.pi-dup { color: var(--warning); }
.pi-new { color: var(--success); }
.pi-warn {
  background: var(--warning-light); border: 1px solid var(--warning); color: #b45309;
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; line-height: 1.7; margin-bottom: 10px;
}

/* ---------- 岗位存疑（员工标记 → 管理员核实删除） ---------- */
.doubt-alert {
  background: var(--warning-light); border: 1px solid var(--warning); color: #b45309;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 13.5px; line-height: 1.7;
}
.doubt-alert b { color: #b45309; }

.doubt-badge { cursor: pointer; transition: box-shadow .15s; }
.doubt-badge:hover { box-shadow: 0 0 0 3px rgba(217, 119, 6, .22); }

.group-head { margin-bottom: 14px; }
.group-title { font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.group-sub { color: var(--text-mute); font-size: 13px; margin-top: 4px; }
.group-count { font-size: 13px; font-weight: 600; color: var(--text-mute); }
.pos-group-doubt { border-left: 4px solid var(--warning); }
.group-head-danger .group-title { color: #b45309; }

.doubt-item { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface); }
.doubt-item-head { font-weight: 600; color: var(--text); font-size: 13.5px; }
.doubt-item-reason {
  margin-top: 6px; font-size: 13px; color: var(--text-dim);
  background: var(--surface-2); padding: 6px 10px; border-radius: 6px;
}

.doubt-btn { border-color: rgba(217, 119, 6, .4); color: #b45309; background: var(--warning-light); }
.doubt-btn:hover { border-color: var(--warning); color: #b45309; background: rgba(217, 119, 6, .16); }

.pos-card.offline { opacity: .62; background: var(--surface); }
.pos-card.offline .pc-title { color: var(--text-mute); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .sidebar { width: 72px; }
  .sidebar-logo .logo-sub, .nav-item span, .sidebar-user .u-name, .sidebar-user .u-role, .sidebar-user .logout { display: none; }
  .sidebar-logo .logo-title { justify-content: center; font-size: 20px; }
  .nav-item { justify-content: center; padding: 12px; }
  .main { padding: 16px; }
  .mode-cards { grid-template-columns: 1fr; }
}

/* ---------- 公司标识（员工姓名前缀 chip）+ 申请选择按钮 ---------- */
.co-tag {
  display: inline-block; padding: 1px 6px; margin-right: 4px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: .3px; vertical-align: 1px; white-space: nowrap;
}
.co-pick {
  flex: 1 1 30%; min-width: 96px; padding: 8px 10px;
  border: 1.5px solid; border-radius: 9px; background: var(--surface-3);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; color: var(--text-dim);
}
.co-pick:hover { background: #fff; }
.co-pick.co-pick-active { color: #fff !important; }

/* 订单面板：单行表单 */
.order-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  background: var(--surface-2); padding: 14px; border-radius: 10px; margin-bottom: 12px;
}
.order-form .full { grid-column: 1 / -1; }
.order-form label { font-size: 12.5px; color: var(--text-dim); display: block; margin-bottom: 4px; }
.order-form .input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; background: #fff; color: var(--text); }
.order-form .input[readonly] { background: var(--gray-100); color: var(--text-mute); }
@media (max-width: 720px) { .order-form { grid-template-columns: 1fr; } }

/* ===================== 移动端自适应（≤600px 手机） ===================== */
@media (max-width: 600px) {
  /* —— 登录页：卡片缩窄、减少内边距、放大点按区 —— */
  .landing-main { padding: 24px 16px 48px; }
  .auth-card { padding: 24px 20px; border-radius: 16px; }
  .auth-title { font-size: 16px; margin-bottom: 14px; }
  .modal { max-width: 100%; margin: 12px; border-radius: 14px; }
  .modal-header, .modal-body { padding: 16px; }

  /* —— 登录后：深蓝侧栏转为顶部横向导航条 —— */
  .page-shell { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: sticky; top: 0; z-index: 60;
    flex-direction: row; align-items: center; gap: 6px;
    padding: 8px 10px; box-shadow: 0 2px 14px rgba(8, 43, 65, .18);
  }
  .sidebar-logo { padding: 4px 12px 4px 4px; border-bottom: none; border-right: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; }
  .sidebar-logo .logo-title { font-size: 15px; justify-content: flex-start; }
  .sidebar-logo .logo-sub { display: none; }
  .sidebar-nav { flex: 1; display: flex; flex-direction: row; padding: 0 6px; overflow-x: auto; }
  .sidebar-nav .nav-item { flex-direction: row; width: auto; margin-bottom: 0; padding: 9px 12px; white-space: nowrap; }
  .sidebar-nav .nav-item span { display: inline; }
  .sidebar-nav .nav-item.active { box-shadow: inset 0 -3px 0 #FDB338; }
  .sidebar-user { flex-direction: row; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-top: none; border-left: 1px solid rgba(255, 255, 255, .12); }
  .sidebar-user .u-name { display: block; font-size: 13px; }
  .sidebar-user .u-role { display: none; }
  .sidebar-user .u-company-row { display: none; }   /* 手机顶栏空间有限，公司方块移至桌面端展示 */
  .sidebar-user .logout { display: inline-flex; margin-top: 0; }
  .main { padding: 16px; }

  /* —— 触屏友好：放大输入框与按钮点按区 —— */
  .input, .select, .textarea { padding: 11px 12px; font-size: 15px; }
  .btn { padding: 11px 18px; font-size: 15px; }
  .btn-lg { padding: 13px 22px; font-size: 16px; }
  .pos-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
