/* manage.css — 简历管理页 · 积极向上风（晴空蓝 + 暖阳白，明快有活力） */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #eaf3ff; --bg2: #f7fbff; --card: #ffffff; --card-solid: #ffffff;
  --line: #dbe6f3; --line2: #b7d0ec;
  --text: #24334a; --sub: #64748f;
  --blue: #2f7df6; --blue2: #1e5fd0; --green: #10b981; --orange: #f59e0b; --violet: #6366f1;
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626;
  --shadow: 0 2px 10px rgba(47, 125, 246, .08);
  --shadow-lg: 0 10px 30px rgba(47, 125, 246, .16);
}
body {
  font: 14px/1.6 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--text);
  background:
    radial-gradient(700px 340px at 88% -8%, rgba(251, 191, 36, .14), transparent 60%),
    radial-gradient(800px 400px at -8% 0%, rgba(47, 125, 246, .12), transparent 55%),
    radial-gradient(700px 400px at 50% 115%, rgba(16, 185, 129, .10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2) 60%, #fdfbf6);
  background-attachment: fixed;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c3d7ee; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

.env-banner { display: none; }

/* —— 顶部隐私安全条（高对比警示：让用户第一眼看到“非必填、由你决定”） —— */
.privacy-bar { display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  background: linear-gradient(90deg, #0c8f63, #0a86a8 55%, #1264c9);
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .3px;
  box-shadow: 0 2px 10px rgba(12, 143, 99, .35); }
.pb-shield { display: inline-flex; color: #fff; }
.pb-shield svg { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .5)); }
.pb-text strong { color: #ffe08a; font-weight: 800; }
.pb-more { margin-left: auto; border: 1.5px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 18px; transition: .18s; }
.pb-more:hover { background: #fff; color: #0c8f63; box-shadow: 0 2px 12px rgba(255, 255, 255, .4); }

/* —— 页脚（与其他页 .foot-in 同构，配色随本页） —— */
.app-footer { margin-top: 34px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.app-footer .foot-in { max-width: 1060px; margin: 0 auto; padding: 22px 20px 18px; text-align: center; }
.app-footer .foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 8px; }
.app-footer .foot-links a { color: var(--sub); font-size: 13px; padding: 4px 10px; border-radius: 6px; text-decoration: none; }
.app-footer .foot-links a:hover { color: var(--blue); background: #eaf2ff; }
.app-footer .foot-meta { color: #9aa4b8; font-size: 12px; line-height: 2; }

/* 整页自然滚动：右侧编辑区随内容延伸不再截断，左侧栏吸附固定 */
.app { display: flex; align-items: stretch; min-height: calc(100vh - 45px); }

/* —— 侧栏 —— */
.side { width: 264px; flex: 0 0 264px; background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px; gap: 14px; box-shadow: var(--shadow);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
/* 品牌区：简洁大方大气 —— 渐变方形标 + 大字距标题 */
.brand { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.logo { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; color: #fff;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue) 10%, var(--violet) 90%);
  box-shadow: 0 6px 16px rgba(47, 125, 246, .38), inset 0 1px 0 rgba(255, 255, 255, .35); }
.logo svg { display: block; }
.brand-text h1 { font-size: 17px; font-weight: 800; letter-spacing: 4px; color: #17233b; }
.brand-text p { font-size: 11px; letter-spacing: .5px; color: var(--sub); margin-top: 2px; }
.ver-badge { font-size: 10.5px; font-weight: 600; color: var(--sub); background: rgba(120,140,180,.12); padding: 1px 7px; border-radius: 999px; }
.ver-badge:empty { display: none; }
.side-actions { display: flex; flex-direction: column; gap: 8px; }
.side-actions .row { display: flex; gap: 8px; }
.side-actions .row .btn { flex: 1; min-width: 0; }

.btn { border: 1px solid var(--line2); background: var(--card); color: var(--text);
  border-radius: 9px; padding: 8px 12px; font-size: 13px; transition: .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn > [data-icon] { display: inline-flex; flex: 0 0 auto; }
.btn:hover { border-color: var(--blue); color: var(--blue); background: #f2f8ff; }
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--blue2)); border: none; color: #fff;
  font-weight: 600; box-shadow: 0 3px 10px rgba(47, 125, 246, .3); }
.btn.primary:hover { box-shadow: 0 5px 16px rgba(47, 125, 246, .45); filter: brightness(1.04); color: #fff; }
.btn.ghost { background: #f6faff; }
.btn.danger { color: var(--bad); border-color: #f3c1c1; }
.btn.danger:hover { background: #fff5f5; border-color: var(--bad); color: var(--bad); }
.btn.block { width: 100%; }
.btn.advice { background: #fff8ec; border-color: #f3dfb1; color: #9a6a06; font-weight: 600; }
.btn.advice:hover { background: #fdf1d7; color: #9a6a06; }
.btn:disabled { opacity: .55; cursor: default; }
.link { border: none; background: none; color: var(--blue); font-size: 12.5px; }
.link:hover { text-decoration: underline; }

.plist { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.pitem { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; background: #fbfdff; transition: .15s; }
.pitem:hover { border-color: var(--line2); background: #f4f9ff; }
.pitem.on { border-color: var(--blue); background: #eef5ff; box-shadow: 0 0 0 1px var(--blue) inset, 0 2px 8px rgba(47, 125, 246, .15); }
.pitem .dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; flex: 0 0 8px; }
.pitem.on .dot { background: var(--blue); box-shadow: 0 0 6px rgba(47, 125, 246, .6); }
.pitem .nm { flex: 1; min-width: 0; }
.pitem .nm b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitem .nm span { font-size: 11px; color: var(--sub); }
.pitem .pct { font-size: 11px; color: var(--blue); font-weight: 700;
  background: #e8f1ff; border-radius: 10px; padding: 1px 8px; }
.side-tip { font-size: 11px; color: #93a3bb; line-height: 1.5; display: flex; gap: 5px; align-items: flex-start; }
.side-tip .tip-ic { display: inline-flex; flex: 0 0 auto; margin-top: 2px; color: #a5b6cf; }
.env-banner .tip-ic { display: inline-flex; vertical-align: -3px; margin-right: 4px; }

/* —— 主区 —— */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px;
  background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--line); }
.profile-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.p-name { border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; font-size: 15px; font-weight: 700;
  width: 240px; background: #fff; color: var(--text); }
.p-name:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 125, 246, .12); }
.p-stat { font-size: 12.5px; white-space: nowrap; background: #f0f7ff;
  border-radius: 16px; padding: 5px 14px; font-weight: 600; color: #2c5fb3; }

/* —— 简历类型下拉（滑动胶囊，与弹窗侧栏同款动效） —— */
.ptag-drop { position: relative; }
.ptag-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  padding: 7px 10px; font: 600 13px/1.3 inherit; color: var(--text);
  background: #fff; min-width: 128px; transition: border-color .15s, box-shadow .15s;
}
.ptag-btn:hover, .ptag-drop.open .ptag-btn { border-color: var(--blue); }
.ptag-drop.open .ptag-btn { box-shadow: 0 0 0 3px rgba(47, 125, 246, .12); }
.ptag-arrow { display: inline-flex; color: var(--blue); transition: transform .2s ease; }
.ptag-drop.open .ptag-arrow { transform: rotate(90deg); }
.ptag-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 5px); z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 26px rgba(36, 51, 74, .16); padding: 3px;
  animation: panelIn .16s ease;
}
.ptag-pill { position: absolute; left: 3px; height: 30px; width: 0; border-radius: 8px;
  background: #eaf2ff; pointer-events: none;
  transition: top .18s ease, width .18s ease; }
.ptag-item {
  position: relative; z-index: 1; display: block; width: 100%; border: none; background: none;
  cursor: pointer; padding: 7px 9px; border-radius: 8px; text-align: left;
  font: 600 12.5px/1.3 inherit; color: var(--text); transition: color .15s;
}
.ptag-item.hot { color: var(--blue); }
.main-head-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.main-head-actions .btn { flex: 0 0 auto; height: 36px; white-space: nowrap; }

/* —— 未补齐项面板 —— */
.missing-panel { margin: 14px 20px 0; background: var(--card); border: 1px solid var(--line2);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg);
  animation: panelIn .22s ease; }
.missing-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px dashed var(--line2); font-size: 13.5px; }
.missing-count { flex: 1; font-size: 12px; color: var(--sub); }
.missing-head .link { margin-left: auto; }
.missing-list { padding: 8px 10px 12px; max-height: 340px; overflow-y: auto; }
.miss-group { margin: 6px 0; }
.miss-group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: #1d6fd4; font-weight: 700; padding: 5px 6px;
  background: #f0f7ff; border-radius: 8px; }
.miss-group-stat { font-size: 11.5px; color: var(--sub); font-weight: 600; }
.miss-item { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left;
  border: 1px solid transparent; background: #fbfdff; color: var(--text);
  font-size: 12.5px; padding: 7px 10px; border-radius: 8px; cursor: pointer; transition: .12s; }
.miss-item:hover { border-color: var(--blue); background: #f0f7ff; transform: translateX(2px); }
.miss-item .req { color: var(--bad); font-weight: 700; }
.miss-item .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.miss-empty { text-align: center; color: var(--ok); font-size: 13px; padding: 18px 0; }

/* —— 建议面板 —— */
.advice { margin: 14px 20px 0; background: #fffdf5; border: 1px solid #f3dfb1; border-radius: 12px; overflow: hidden; }
.advice-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px dashed #f0dcae;
  font-size: 13.5px; }
.advice-head #adviceScore { color: #9a6a06; font-weight: 700; }
.advice-head .link { margin-left: auto; color: #9a6a06; }
.advice-list { padding: 6px 8px 10px; max-height: 300px; overflow: auto; }
.adv { display: flex; gap: 9px; padding: 7px 10px; border-radius: 8px; font-size: 12.8px; align-items: flex-start; }
.adv:hover { background: rgba(243, 223, 177, .25); }
.adv .lv { flex: 0 0 auto; font-size: 11px; font-weight: 700; border-radius: 5px; padding: 1px 6px; margin-top: 2px; }
.adv.ok .lv { background: #dcfce7; color: #15803d; }
.adv.warn .lv { background: #fef3c7; color: #b45309; }
.adv.bad .lv { background: #fee2e2; color: #b91c1c; }
.adv.tip .lv { background: #dbeafe; color: #1d4ed8; }
.adv .tx b { color: #92400e; }

/* —— 编辑器 —— */
.editor { flex: 1; overflow: auto; padding: 18px 20px 60px; }
/* 注意：不能加 overflow:hidden / 背景滤镜——会让日期面板被模块边界裁剪或被后续模块盖住 */
.sect { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px;
  box-shadow: var(--shadow); position: relative; }
.sect > summary { padding: 13px 16px; font-weight: 700; cursor: pointer; user-select: none; list-style: none;
  display: flex; align-items: center; gap: 8px; }
.sect > summary::before { content: "▸"; margin-right: 0; color: var(--blue); transition: .2s; }
.sect[open] > summary::before { transform: rotate(90deg); }
.sect[open] > summary { border-bottom: 1px solid #eef4fb; }
/* 模块标题图标：统一线性图标放在浅色圆角芯片里 */
.sect .s-ic { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 8px; color: var(--blue); background: #eaf2ff; flex: 0 0 26px; }
.sect-stat { margin-left: auto; font-size: 12px; font-weight: 600; color: #2c5fb3;
  border: 1px solid var(--line); border-radius: 12px; padding: 1px 10px; background: #f0f7ff; }
.sect .body { padding: 6px 16px 16px; animation: sectIn .24s ease; }
@keyframes sectIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
/* brk 分组：相关性弱的内容另起一行，行组之间留出呼吸间距 */
.grid + .grid { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e7eef8; }
.f { display: flex; flex-direction: column; gap: 4px; }
.f.span2 { grid-column: 1 / -1; }
.f label { font-size: 12px; color: var(--sub); display: flex; align-items: center; gap: 4px; }
.f label .req { color: var(--bad); }
.auto-hint { font-size: 10.5px; color: var(--green); border: 1px solid #b5e3cf; border-radius: 5px;
  padding: 0 5px; background: #ecfdf5; }
.f input, .f textarea, .f select, .cmap-row input, .cmap-row select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font-size: 13.5px; background: #fbfdff; color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; }
.f textarea { resize: vertical; min-height: 60px; }
.f input:focus, .f textarea:focus, .f select:focus, .cmap-row input:focus, .cmap-row select:focus { outline: none; border-color: var(--blue);
  background: #fff; box-shadow: 0 0 0 3px rgba(47, 125, 246, .12); }
.f input::placeholder, .f textarea::placeholder, .cmap-row input::placeholder { color: #a8b6cc; }
.f.locked input, .f.locked textarea, .f.locked select { opacity: .5; background: #eef1f6; cursor: not-allowed; }
.f.locked .dp-show { opacity: .55; pointer-events: none; background: #eef1f6; }
.f.locked label { color: #9aa8bd; }

/* —— 下拉框：圆角 + 浅色统一 + 内容居中 —— */
.f select, .cmap-row select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border-radius: 10px; cursor: pointer;
  text-align: center; text-align-last: center;
  padding: 8px 26px 8px 12px;
  background-color: #fbfdff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%232f7df6' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 10px;
}
.f select:hover, .cmap-row select:hover { border-color: var(--blue); }
.f select option, .cmap-row select option { background: #ffffff; color: var(--text); text-align: center; }
.f select option:checked, .cmap-row select option:checked { background: #e8f1ff; color: var(--blue2); font-weight: 600; }

/* —— 自定义字段映射行：与表单控件同观感，横向排列 —— */
.cmap-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.cmap-row .cmap-kw { flex: 1; min-width: 0; }
.cmap-row select { flex: 1.25; min-width: 0; }
.cmap-row .pbtn { flex: 0 0 auto; }

/* —— 自定义下拉（替代原生 select 的选项列表）——
   打开后唯一高亮跟随鼠标，样式与选中项一致（蓝紫渐变），不再出现系统深色块 */
.selbox { position: relative; }
.sel-cur { border: 1px solid var(--line); border-radius: 10px; padding: 8px 26px 8px 12px;
  font-size: 13.5px; background: #fbfdff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%232f7df6' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 9px center;
  background-size: 10px; color: var(--text); text-align: center; cursor: pointer; user-select: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s; }
.selbox.empty .sel-cur { color: #a8b6cc; }
.selbox:not(.disabled):hover .sel-cur, .selbox.open .sel-cur { border-color: var(--blue); background-color: #fff; }
.selbox.open .sel-cur { box-shadow: 0 0 0 3px rgba(47, 125, 246, .12); }
.selbox:focus-visible .sel-cur { outline: none; border-color: var(--blue); }
.sel-panel { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 1200;
  background: #fff; border: 1px solid var(--line2); border-radius: 12px; padding: 5px;
  box-shadow: var(--shadow-lg); max-height: 246px; overflow-y: auto; animation: panelIn .16s ease; }
.sel-opt { position: relative; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: #33445f;
  text-align: center; cursor: pointer; transition: background .12s, color .12s, box-shadow .12s; }
/* 唯一高亮（hl）：初始落在已选中项，鼠标移入即跟随，样式与“选中”渐变一致 */
.sel-opt.hl { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(47, 125, 246, .35); }
/* 已选中项（非高亮态）显示对勾标记 */
.sel-opt.on:not(.hl)::after { content: ""; position: absolute; right: 8px; top: 50%; margin-top: -4px;
  width: 9px; height: 5px; border-left: 1.6px solid var(--blue); border-bottom: 1.6px solid var(--blue);
  transform: rotate(-45deg); }
.f.locked .selbox { opacity: .55; }
.f.locked .selbox .sel-cur { background-color: #eef1f6; cursor: not-allowed; }
.selbox.disabled { pointer-events: none; }

/* —— 布尔分段选择（是/否 点击选择） —— */
.boolseg { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: fit-content; }
.bseg { border: none; background: #fbfdff; color: var(--sub); font-size: 13px; font-weight: 600;
  padding: 7px 20px; transition: .15s; }
.bseg + .bseg { border-left: 1px solid var(--line); }
.bseg:hover { color: var(--text); background: #f0f7ff; }
.bseg.on { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 2px 8px rgba(47, 125, 246, .3); }

/* —— 照片上传（证件照/生活照） —— */
.photoblock { display: flex; align-items: center; gap: 14px; }
.photoprev { width: 96px; height: 120px; flex: 0 0 auto; border: 1.5px dashed var(--line2); border-radius: 10px;
  background: #f7fbff; display: grid; place-items: center; overflow: hidden;
  color: #a8b6cc; font-size: 24px; transition: .15s; }
.photoprev.has { border-style: solid; border-color: var(--blue); box-shadow: 0 2px 10px rgba(47, 125, 246, .2);
  cursor: zoom-in; }
.photoprev.has:hover { transform: scale(1.02); }
.photoprev img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.photoprev:not(.has) img { display: none; }

/* —— 照片灯箱（点击照片放大查看） —— */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(23, 35, 59, .68); backdrop-filter: blur(3px); animation: lbIn .18s ease; cursor: zoom-out; }
.lightbox[hidden] { display: none !important; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: panelIn .2s ease; }
.lb-inner img { max-width: min(86vw, 720px); max-height: 78vh; border-radius: 14px;
  box-shadow: 0 24px 70px rgba(10, 20, 40, .5); background: #fff; }
.lb-cap { color: #e8f0fb; font-size: 13px; letter-spacing: 2px; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 4px 18px; }
.photobar { display: flex; gap: 8px; align-items: center; }
.pbtn { border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: 8px; padding: 6px 14px; font-size: 12.5px; transition: .15s; }
.pbtn:hover { border-color: var(--blue); color: var(--blue); background: #f0f7ff; }
.pbtn.ghost { color: var(--sub); }
.pbtn.ghost:hover { color: var(--bad); border-color: #f3c1c1; background: #fff5f5; }

/* 多条经历卡片 */
.listwrap { display: flex; flex-direction: column; gap: 0; }
.litem { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px 14px; margin: 10px 0; position: relative;
  background: #fbfdff; animation: sectIn .24s ease; }
.litem .litem-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.litem .litem-head b { font-size: 13px; color: var(--blue); }
.litem .del { border: none; background: none; color: #c98181; font-size: 12px; }
.litem .del:hover { color: var(--bad); }
.addlist { border: 1.5px dashed var(--line2); border-radius: 11px; padding: 9px; width: 100%; background: none;
  color: var(--blue); font-size: 13px; font-weight: 600; transition: .15s; }
.addlist:hover { background: #f0f7ff; border-color: var(--blue); }

/* —— 自定义日期选择器 ——
   显示框只显示当前值（斜线格式），点击弹出面板；
   面板头部 « ‹ 年月 › »（«»调年、‹›调月），点年/月文字弹对应网格；年份 12 年一页，月份 4×3 */
.datepick { position: relative; }
.dp-show { border: 1px solid var(--line); border-radius: 8px; background: #fbfdff;
  color: var(--text); font-size: 13.5px; padding: 8px 30px 8px 12px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s; position: relative; }
.dp-show::after { content: ""; position: absolute; right: 11px; top: 50%; margin-top: -3px;
  width: 8px; height: 6px; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%232f7df6' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain; }
.dp-show:hover { border-color: var(--blue); background: #fff; }
.dp-show.empty { color: #a8b6cc; }
.dp-panel { position: absolute; top: calc(100% + 6px); left: 0; width: 252px;
  background: #ffffff; border: 1px solid var(--line2); border-radius: 12px;
  padding: 10px; z-index: 1000; box-shadow: var(--shadow-lg); animation: panelIn .18s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 1px; margin-bottom: 8px; }
.dp-nav { border: none; background: none; color: var(--blue); font-size: 14px; line-height: 1;
  padding: 4px 7px; cursor: pointer; border-radius: 7px; transition: .15s; }
.dp-nav:hover { background: #e8f1ff; }
.dp-head b { color: #1d6fd4; font-weight: 600; font-size: 13px; cursor: pointer; padding: 2px 4px;
  border-radius: 6px; transition: .15s; }
.dp-head b:hover { background: #e8f1ff; }
.dp-head b.on { color: var(--blue2); cursor: default; }
.dp-range { color: #1d6fd4; font-weight: 600; font-size: 13px; }
/* 月网格与年网格一致：4 列 × 3 行 */
.dp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.dp-grid.d4 { grid-template-columns: repeat(4, 1fr); }
.dp-grid.d7 { grid-template-columns: repeat(7, 1fr); }
.dp-week { color: var(--sub); font-size: 11px; text-align: center; padding: 3px 0; }
.dp-cell { border: none; background: none; color: var(--text); font-size: 12.5px; padding: 6px 4px;
  border-radius: 7px; cursor: pointer; text-align: center; transition: .12s; }
.dp-cell:hover { background: #e8f1ff; }
.dp-cell.on { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font-weight: 700;
  box-shadow: 0 2px 8px rgba(47, 125, 246, .35); }

/* —— 跳转高亮 —— */
@keyframes jumpGlow {
  0%, 100% { box-shadow: none; }
  25%, 65% { box-shadow: 0 0 0 3px rgba(47, 125, 246, .4), 0 0 18px rgba(47, 125, 246, .3); }
}
.jump-flash { animation: jumpGlow 1.6s ease; border-radius: 8px; }

/* —— 对话框 —— */
.dlg { position: fixed; inset: 0; background: rgba(36, 51, 74, .45); display: grid; place-items: center; z-index: 99; }
.dlg[hidden] { display: none !important; } /* 修复：display:grid 覆盖 hidden 导致对话框关不掉 */
.dlg-box { background: #fff; border-radius: 16px; padding: 20px; width: min(680px, 92vw); max-height: 88vh; overflow: auto;
  box-shadow: 0 20px 60px rgba(36, 51, 74, .25); animation: panelIn .2s ease; }
.dlg-box h3 { margin-bottom: 8px; color: #1d2b45; }
.dlg-tip { font-size: 12.5px; color: var(--sub); margin-bottom: 10px; }
.dlg-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px;
  line-height: 1.7; background: #fbfdff; color: var(--text); }
.dlg-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.dlg-actions .chk { font-size: 12.5px; color: var(--sub); display: flex; gap: 5px; align-items: center; }
.dlg-actions > div { display: flex; gap: 8px; }

/* —— 隐私说明弹窗 —— */
.privacy-box { width: min(480px, 92vw); text-align: center; padding: 28px 26px 22px; }
.privacy-hero { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; font-size: 30px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e8f7ef, #e8f1ff); box-shadow: 0 4px 14px rgba(22, 163, 74, .18); }
.privacy-box h3 { font-size: 17px; margin-bottom: 12px; }
.privacy-body { text-align: left; display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.privacy-body p { font-size: 13px; line-height: 1.75; color: #4a5b74; background: #f6faff;
  border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; padding: 8px 12px; }
.privacy-actions { padding: 0 12px; }

/* —— 拖拽导入 —— */
.dropzone { border: 2px dashed var(--line2); border-radius: 14px; background: #fbfdff;
  padding: 26px 16px; text-align: center; cursor: pointer; transition: .15s; }
.dropzone:hover { border-color: var(--blue); background: #f0f7ff; }
.dropzone.over { border-color: var(--blue); background: #e8f1ff; transform: scale(1.01); }
.dropzone .dz-icon { font-size: 30px; margin-bottom: 6px; }
.dropzone b { font-size: 14px; display: block; }
.dropzone p { font-size: 12px; color: var(--sub); margin-top: 4px; }
.dropzone .link2 { border: none; background: none; color: var(--blue); font-size: 12.5px;
  text-decoration: underline; cursor: pointer; padding: 0; }
.dropzone.busy { pointer-events: none; opacity: .6; }
.parse-log { margin-top: 12px; background: #f6f9fd; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 12px; color: #4a5b74; max-height: 150px; overflow: auto; line-height: 1.7; }
.parse-log b { color: var(--ok); }
.paste-fallback { margin-top: 12px; }
.paste-fallback > summary { font-size: 12.5px; color: var(--sub); cursor: pointer; user-select: none; }
.paste-fallback textarea { margin-top: 8px; }
.paste-fallback .btn { margin-top: 8px; }

/* —— AI 识别 —— */
.ai-zone { margin-top: 12px; border: 1px solid #d9e6fb; border-radius: 10px; background: #f5f9ff; padding: 10px 12px; }
.ai-zone > summary { font-size: 12.5px; color: #1d5fd0; font-weight: 600; cursor: pointer; user-select: none; }
.ai-tip { font-size: 11.5px; color: var(--sub); margin: 8px 0; line-height: 1.6; }
.ai-cfg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ai-cfg label:first-child { grid-column: 1 / -1; }
.ai-cfg label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--sub); }
.ai-cfg input, .ai-cfg select { border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font-size: 12px;
  background: #fff; color: var(--text); }
.ai-cfg input:focus, .ai-cfg select:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 125, 246, .1); }

/* toast 专用入场动画：必须带 translate(-50%)，否则动画期间丢失水平居中修正，
 * 动画结束后才恢复 → 出现"先偏一边再瞬移到中间"的跳动 */
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  background: rgba(36, 51, 74, .92); color: #fff; padding: 9px 18px; border-radius: 10px; font-size: 13px;
  z-index: 2147483100; box-shadow: 0 6px 20px rgba(36, 51, 74, .3); animation: toastIn .2s ease; }

/* —— 面板/对话框标题里的统一小图标 —— */
.mh-ic { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--blue); }
.miss-group-title .mi-ic { display: inline-flex; vertical-align: -2px; margin-right: 5px; }
.dropzone .dz-icon { display: flex; justify-content: center; color: var(--blue); margin-bottom: 6px; }
.privacy-hero { color: #0c8f63; }

/* AI 深度优化建议 */
.ai-adv-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ai-adv-stat { font-size: 12px; color: var(--sub); }
.ai-advice-list { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; max-height: 420px;
  overflow-y: auto; padding-right: 4px; }
.aiadv { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fbfdff; }
.aiadv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 8px; }
.aiadv-head b { font-size: 12.5px; color: var(--blue); flex: 1; }
.aiadv-head .btns { display: flex; gap: 6px; flex: 0 0 auto; }
.aiadv textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12.5px;
  line-height: 1.6; resize: vertical; max-height: 240px; overflow-y: auto; box-sizing: border-box;
  background: #fbfdff; color: var(--text); }
.aiadv.empty { color: var(--sub); font-size: 12.5px; }
.btn.mini { padding: 4px 10px; font-size: 12px; }
.btn.mini.ghost { color: var(--sub); border: 1px solid var(--line); background: #fff; }
.btn.mini.ghost:hover { color: var(--bad); border-color: #f3c1c1; }

/* ===== v2.24 dock 避让：底部悬浮导航不遮内容 ===== */
body { padding-bottom: 88px; }

/* v2.31 照片上传要求标注 */
.photo-hint { grid-column: 1 / -1; font-size: 11px; color: #8a93ad; line-height: 1.6; margin: 2px 0 0; }

/* 敏感信息提示（身份证号等） */
.sens-hint { grid-column: 1 / -1; font-size: 11.5px; color: #b45309; background: #fff8ec; border: 1px solid #f5deb8; border-radius: 8px; padding: 6px 10px; margin-top: 6px; line-height: 1.6; }
/* 照片/简历文件块与下一行的间距 */
.photoblock { margin-bottom: 12px; }

/* ===== 网页版新增（2026-10-10 移植）===== */
.side-nav { display:flex; flex-direction:column; gap:6px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(120,140,180,.15); }
.side-nav a { font-size:12.5px; color:var(--sub,#5f6b85); text-decoration:none; padding:6px 8px; border-radius:8px; }
.side-nav a:hover { background:rgba(120,140,180,.12); color:var(--ink,#1c2440); }
.gatecard { max-width:440px; margin:12vh auto 0; background:#fff; border:1px solid rgba(120,140,180,.2); border-radius:16px; padding:34px 30px; text-align:center; font-family:inherit; }
.gatecard .big { font-size:40px; margin-bottom:8px; }
.gatecard h2 { font-size:19px; margin:0 0 10px; }
.gatecard p { font-size:13px; color:#5f6b85; line-height:1.7; margin:0 0 18px; }

/* ===== 网页版 UX 修复（2026-10-10 晚）===== */
/* 布局改为整页自然滚动（见 .app/.side）：右侧编辑区随内容延伸，不再与侧栏同底截断 */
.main { overflow: visible; }
.editor { padding-bottom: 90px; }
/* AI 勾选行内小字 */
.ai-tip-inline { font-size: 12px; color: var(--sub); }
/* 头部统计：左侧弹性收缩防与按钮相撞 */
.profile-meta { flex: 1; min-width: 0; }
.p-stat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 未补齐面板展开时隐藏头部统计条，避免两条统计重叠 */
body.missing-open .profile-meta .p-stat { display: none; }
/* 左下导航：简约大方（小标题 + 素雅文字链接 + 线性小图标） */
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.side-nav .sn-title { font-size: 11px; letter-spacing: 2px; color: var(--sub); padding: 0 8px 4px; }
.side-nav a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub);
  text-decoration: none; padding: 7px 8px; border-radius: 8px; transition: .15s; }
.side-nav a:hover { background: rgba(47, 125, 246, .08); color: var(--blue2); }
.side-nav .sn-ic { display: inline-flex; color: #9aa8c4; transition: .15s; }
.side-nav a:hover .sn-ic { color: var(--blue2); }
/* 导入对话框 AI 区：平铺勾选式 */
.ai-zone.flat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; background: rgba(47, 125, 246, .04); }
.ai-zone.flat .ai-smart { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.55; cursor: pointer; }
.ai-zone.flat .ai-smart input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--blue); }
.ai-zone.flat .ai-smart b { color: var(--blue2); }
.ai-zone.flat .ai-tip { margin: 8px 0 10px; font-size: 12px; color: var(--sub); }
/* 深度优化免费提示：简约卡片风 */
.aiadv.empty { border: 1px dashed var(--line2); border-radius: 10px; padding: 14px 16px; font-size: 13px; color: var(--sub); background: rgba(47, 125, 246, .04); }
/* 专业版权益提示：金星 + 弹性排版 */
.aiadv.empty.vip-empty { display: flex; align-items: center; gap: 9px; }
.aiadv.empty.vip-empty svg { flex: 0 0 auto; color: #f59e0b; }
