/* app.css —— 导航 + 各视图专属样式 + 响应式 */

/* ---------- 登录页 ---------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--c-bg); }
.login-box { text-align: center; width: min(380px, 92vw); }
.login-title { font-size: 22px; font-weight: 700; margin-bottom: 26px; letter-spacing: 2px; }
.login-error { height: 22px; margin-top: 14px; color: var(--c-danger); font-size: 13px; }
.pattern-wrap { position: relative; display: inline-block; touch-action: none; user-select: none; }
.pattern-svg { display: block; }
.p-dot { fill: #fff; stroke: #b9c2d0; stroke-width: 2; }
.p-dot.active { fill: var(--c-primary); stroke: var(--c-primary); }
.p-dot.err { fill: var(--c-danger); stroke: var(--c-danger); }
.p-line { stroke: var(--c-primary); stroke-width: 4; stroke-linecap: round; }
.p-line.err { stroke: var(--c-danger); }
.p-tip { fill: var(--c-primary); font-size: 12px; text-anchor: middle; }
.p-tip.err { fill: var(--c-danger); }

/* ---------- 简历工坊 ---------- */
.workshop { display: grid; grid-template-columns: minmax(0, 1fr) 240mm; gap: 16px; align-items: start; }
.workshop-form { min-width: 0; }
.workshop-preview { position: sticky; top: 62px; }
.preview-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-text-2); margin-bottom: 6px; }
.preview-frame { overflow: hidden; border: 1px solid var(--c-border); background: #fff; box-shadow: var(--shadow); }
@media (max-width: 1180px) {
  .workshop { grid-template-columns: 1fr; }
  .workshop-preview { position: static; }
}
.acc { border: 1px solid var(--c-border); border-radius: 8px; margin-bottom: 12px; background: #fff; }
.acc > summary { cursor: pointer; padding: 11px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.acc > summary::-webkit-details-marker { display: none; }
.acc[open] > summary { border-bottom: 1px solid var(--c-border); }
.acc-body { padding: 14px; }
.entry { border: 1px dashed var(--c-border); border-radius: 8px; padding: 12px; margin-bottom: 10px; background: #fcfcfd; }
.entry-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bullet-row { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; }
.bullet-row textarea { min-height: 46px; }
.bullet-row .b-toggle { flex: 0 0 auto; width: 30px; text-align: center; font-weight: 700; }
.bullet-tools { display: flex; gap: 4px; align-items: flex-start; }
.range-hint { font-size: 11px; color: var(--c-text-3); margin-top: 2px; }

/* ---------- 岗位雷达 ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { width: auto; min-width: 120px; }
.kw-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.job-list { display: flex; flex-direction: column; }
.job-row { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--c-border); align-items: flex-start; }
.job-row:last-child { border-bottom: none; }
.job-score { flex: 0 0 46px; font-weight: 700; color: var(--c-primary); text-align: center; font-size: 15px; }
.job-main { flex: 1; min-width: 0; }
.job-title { font-weight: 600; }
.job-sub { color: var(--c-text-2); font-size: 12px; margin-top: 2px; }
.job-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 12px; }
.jd-text { white-space: pre-wrap; background: #fafbfc; border: 1px solid var(--c-border); border-radius: 6px; padding: 10px; font-size: 12.5px; max-height: 320px; overflow: auto; }
.ai-panel { border: 1px solid var(--c-border); border-radius: 8px; padding: 12px; margin-top: 10px; background: #fbfcfe; }
.ai-item { padding: 6px 0; border-bottom: 1px dashed var(--c-border); }
.ai-item:last-child { border-bottom: none; }

/* ---------- 投递看板 ---------- */
.todo-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
@media (max-width: 800px) { .todo-bar { grid-template-columns: 1fr; } }
.todo-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--c-border); }
.todo-item:last-child { border-bottom: none; }
.todo-item.overdue { color: var(--c-danger); }
.board { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.board-col { background: #eef1f6; border-radius: 10px; padding: 8px; min-height: 200px; }
.board-col > h4 { font-size: 13px; padding: 4px 6px 8px; color: var(--c-text-2); display: flex; justify-content: space-between; }
.board-col.drag-over { outline: 2px dashed var(--c-primary); outline-offset: -2px; }
.app-card { background: #fff; border: 1px solid var(--c-border); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.app-card:active { cursor: grabbing; }
.app-card.dragging { opacity: .5; }
.app-card .ac-title { font-weight: 600; font-size: 13px; }
.app-card .ac-sub { font-size: 12px; color: var(--c-text-2); margin-top: 2px; }
.app-card .ac-meta { font-size: 11px; color: var(--c-text-3); margin-top: 4px; display: flex; justify-content: space-between; gap: 6px; }
.app-card .ac-follow.overdue { color: var(--c-danger); font-weight: 600; }
.col-add { width: 100%; margin-top: 4px; }

/* ---------- 笔记 ---------- */
.notes-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .notes-layout { grid-template-columns: 1fr; } }
.note-list { max-height: calc(100vh - 180px); overflow: auto; }
.note-item { padding: 10px 12px; border-bottom: 1px solid var(--c-border); cursor: pointer; }
.note-item:hover { background: #f7f9fc; }
.note-item.active { background: #eef3ff; }
.note-item .ni-title { font-weight: 600; font-size: 13px; }
.note-item .ni-tags { margin-top: 3px; display: flex; gap: 4px; flex-wrap: wrap; }
.tag-input { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border: 1px solid var(--c-border); border-radius: 6px; padding: 6px; min-height: 38px; }
.tag-input input { border: none; flex: 1; min-width: 90px; padding: 2px; }
.tag-input input:focus { box-shadow: none; }

/* ---------- 设置 ---------- */
.settings-block { max-width: 640px; }
.dow { display: flex; gap: 6px; flex-wrap: wrap; }
.dow button.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
