:root {
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --accent: #06b6d4;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e8ecf3;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --shadow: 0 8px 28px rgba(76, 81, 191, 0.10);
  --shadow-sm: 0 2px 10px rgba(30, 41, 59, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ===== Login ===== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #06b6d4 120%);
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(31, 28, 84, 0.28);
  padding: 38px 34px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.brand .logo {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.brand h1 { font-size: 20px; letter-spacing: .5px; }
.brand p { font-size: 12px; color: var(--muted); margin-top: 2px; }

.login-tabs { display: flex; gap: 8px; background: #f1f3f9; padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.login-tabs button {
  flex: 1; border: none; background: transparent; padding: 9px; border-radius: 9px;
  font-size: 14px; color: var(--muted); transition: .2s;
}
.login-tabs button.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 11px; font-size: 14px; transition: .2s; outline: none;
  background: #fbfcfe;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; }
.captcha-box {
  min-width: 96px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: 3px; font-size: 18px; color: #fff;
  border-radius: 11px; cursor: pointer; user-select: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.btn {
  border: none; border-radius: 11px; padding: 12px 18px; font-size: 14px;
  font-weight: 600; transition: .18s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; padding: 13px; }
.btn-ghost { background: #f1f3f9; color: var(--text); }
.btn-ghost:hover { background: #e7eaf3; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-success { background: #d1fae5; color: #047857; }
.btn-warning { background: #fef3c7; color: #b45309; }

.login-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.6; }
.login-hint b { color: var(--primary); }

/* ===== App Shell ===== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.side-brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.side-brand h2 { font-size: 15px; }
.side-brand span { font-size: 11px; color: var(--muted); }
.nav-group-title { font-size: 11px; color: var(--muted); padding: 14px 10px 6px; letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px;
  color: var(--muted); font-size: 14px; margin-bottom: 3px; transition: .15s;
}
.nav-item:hover { background: #f4f6fb; color: var(--text); }
.nav-item.active { background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.12)); color: var(--primary); font-weight: 600; }
.nav-item .ico { width: 20px; text-align: center; font-size: 16px; }
.sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 64px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px; position: sticky; top: 0; z-index: 5;
}
.topbar h3 { font-size: 17px; }
.topbar .sub { font-size: 12px; color: var(--muted); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
}
.user-chip .meta { line-height: 1.2; }
.user-chip .meta b { font-size: 13.5px; }
.user-chip .meta small { font-size: 11px; color: var(--muted); }
.content { padding: 26px; overflow: auto; }

/* ===== Cards / Grid ===== */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-head h2 { font-size: 20px; }
.page-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.stat-card .ico-bg {
  position: absolute; right: -10px; top: -10px; width: 70px; height: 70px; border-radius: 50%;
  opacity: .12; background: var(--primary);
}
.stat-card .label { font-size: 13px; color: var(--muted); }
.stat-card .num { font-size: 30px; font-weight: 700; margin-top: 6px; }
.stat-card .trend { font-size: 12px; margin-top: 4px; color: var(--success); }

.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h4 { font-size: 15px; }
.panel-body { padding: 18px 20px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* ===== Table ===== */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { text-align: left; padding: 12px 14px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); background: #fafbfe; }
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.tbl tr:hover td { background: #fafbff; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.b-enable { background: #d1fae5; color: #047857; }
.b-disable { background: #fee2e2; color: #dc2626; }
.b-expire { background: #fef3c7; color: #b45309; }
.b-trial { background: #e0e7ff; color: #4338ca; }
.b-month { background: #cffafe; color: #0e7490; }
.b-year { background: #f3e8ff; color: #7e22ce; }
.b-blue { background: #dbeafe; color: #1d4ed8; }
.b-orange { background: #ffedd5; color: #c2410c; }
.b-purple { background: #f3e8ff; color: #7e22ce; }
.b-green { background: #d1fae5; color: #047857; }
.b-gray { background: #e5e7eb; color: #4b5563; }

.btn-info { background: #e0e7ff; color: #4338ca; }
.app-row:hover td { background: #f5f7ff; }

.row-actions { display: flex; gap: 6px; }

/* ===== Modal ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(30,33,66,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 460px; box-shadow: 0 24px 60px rgba(31,28,84,.3); overflow: hidden; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.modal-body { padding: 20px 22px; max-height: 70vh; overflow: auto; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.empty { text-align: center; color: var(--muted); padding: 40px; font-size: 14px; }

/* ===== 投递详情 ===== */
.app-detail { font-size: 14px; }
.ad-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ad-avatar { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--p1), var(--p2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.ad-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ad-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 4px; }
.ad-grid > div { background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
.ad-grid label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ad-grid span { font-weight: 600; }
.ad-section { margin-top: 18px; }
.ad-section h5 { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.ad-nores { color: var(--muted); font-size: 13px; padding: 12px 14px; background: #f8fafc; border-radius: 10px; }
.stepper { display: flex; align-items: center; }
.step { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.step .dot { width: 12px; height: 12px; border-radius: 50%; background: #d1d5db; border: 2px solid #e5e7eb; box-sizing: border-box; }
.step.active { color: var(--p2); font-weight: 700; }
.step.active .dot { background: var(--p2); border-color: var(--p2); box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.step.done { color: #047857; }
.step.done .dot { background: #10b981; border-color: #10b981; }
.step-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 8px; min-width: 16px; }
.step-line.done { background: #10b981; }

/* ===== 简历生成表单 ===== */
.modal.wide { max-width: 880px; }
.res-form { font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.rf-block { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fafbff; }
.rf-block-h { font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.we-row { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: 8px; align-items: start; position: relative; margin-bottom: 10px; }
.we-row .we-desc { grid-column: 1 / -1; resize: vertical; }
.we-del { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: none; background: #fee2e2; color: #dc2626; cursor: pointer; font-size: 12px; line-height: 22px; }
.rf-preview { margin-top: 16px; background: #f1f5f9; border-radius: 12px; padding: 14px; overflow: auto; max-height: 60vh; }
.rf-preview svg { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); display: block; }
.modal-body svg { max-width: 100%; height: auto; }

/* ===== 投递漏斗概览 ===== */
.funnel { display: flex; gap: 10px; flex-wrap: wrap; }
.fn-item { flex: 1; min-width: 88px; text-align: center; background: #f8fafc; border-radius: 12px; padding: 12px 8px; border: 1px solid var(--line); }
.fn-num { font-size: 24px; font-weight: 800; line-height: 1; }
.fn-label { font-size: 12px; color: var(--muted); margin-top: 6px; }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); z-index: 99; animation: pop .25s; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.section-title { font-size: 15px; font-weight: 600; margin: 4px 0 14px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: linear-gradient(var(--primary), var(--primary-2)); }

.list-line { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.list-line:last-child { border-bottom: none; }
.list-line .l { color: var(--muted); }
.list-line .r { font-weight: 600; }
.reminder { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; background: #fff7ed; margin-bottom: 9px; font-size: 13.5px; }
.reminder .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warning); }
.reminder.danger { background: #fef2f2; }
.reminder.danger .dot { background: var(--danger); }

/* 学科课时 chips */
.hours-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hour-chip { font-size: 12px; padding: 3px 9px; border-radius: 20px; background: #eef2ff; color: #4338ca; }
.hour-chip b { color: #1e293b; }
.hour-chip.empty { background: #fee2e2; color: #dc2626; }
.sch-time { font-weight: 600; color: var(--primary); }

/* 学生弹窗 学科课时行 */
.sh-row { display: flex; gap: 8px; margin-bottom: 8px; }
.sh-row input { flex: 1; }

/* 待办日历主题(橙/米) */
.todo-theme { --t-orange: #f97316; --t-orange2: #fb923c; }
.todo-theme .cal-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
@media (max-width: 900px) { .todo-theme .cal-wrap { grid-template-columns: 1fr; } }
.cal-card, .plan-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h4 { font-size: 16px; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 6px 11px; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0; }
.cal-day { min-height: 52px; border: 1px solid var(--line); border-radius: 11px; padding: 7px; font-size: 13px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: .15s; background: #fff; }
.cal-day:hover { border-color: var(--t-orange); }
.cal-day.muted { color: #cbd5e1; pointer-events: none; }
.cal-day.sel { background: linear-gradient(135deg, var(--t-orange), var(--t-orange2)); color: #fff; border-color: transparent; }
.cal-day .cnt { font-size: 11px; color: var(--muted); }
.cal-day.sel .cnt { color: #fff; }
.plan-card h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 12px; }
.plan-ico { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--t-orange), var(--t-orange2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.plan-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: #fff7ed; margin-bottom: 8px; }
.plan-item .t { font-weight: 700; color: var(--t-orange); font-size: 13px; min-width: 46px; }
.plan-item .tt { font-size: 14px; }
.plan-empty { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 13px; }
.btn-orange { background: linear-gradient(135deg, var(--t-orange), var(--t-orange2)); color: #fff; box-shadow: 0 6px 18px rgba(249,115,22,.25); }
.btn-orange:hover { filter: brightness(1.05); }
.week-tag { font-size: 11px; background: #fef3c7; color: #b45309; padding: 2px 8px; border-radius: 20px; }

/* AI 简历海报 */
.poster { width: 320px; border-radius: 18px; padding: 24px 22px; background: linear-gradient(160deg, #6366f1, #8b5cf6 55%, #06b6d4); color: #fff; box-shadow: var(--shadow); margin: 0 auto; }
.poster .p-name { font-size: 25px; font-weight: 800; }
.poster .p-role { font-size: 13px; opacity: .85; margin-top: 2px; }
.poster .p-line { height: 1px; background: rgba(255,255,255,.3); margin: 15px 0; }
.poster .p-row { display: flex; justify-content: space-between; font-size: 13px; margin: 9px 0; }
.poster .p-row b { font-weight: 600; opacity: .8; }
.poster .p-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.poster .p-skills span { font-size: 12px; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 20px; }
.poster .p-foot { font-size: 11px; opacity: .7; margin-top: 16px; text-align: center; }

/* ===== 学生排课：横幅 + 课表卡片 + 月历 ===== */
.sched-banner {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 55%, #f59e0b 120%);
  border-radius: var(--radius); padding: 22px 26px; color: #fff; margin-bottom: 18px;
  box-shadow: 0 10px 26px rgba(249, 115, 22, .22);
}
.sched-banner .sb-title { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.sched-banner .sb-desc { font-size: 13.5px; opacity: .92; margin-top: 7px; line-height: 1.6; max-width: 760px; }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { border: 1.5px solid var(--line); background: #fff; border-radius: 11px; padding: 9px 20px; font-size: 14px; color: var(--muted); font-weight: 600; transition: .18s; }
.tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; box-shadow: var(--shadow); }

.panel-head .hint-inline { font-size: 12.5px; color: var(--muted); font-weight: 500; max-width: 60%; text-align: right; }

.sched-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.sc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sc-name { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.grade-tag { font-size: 11px; background: #eef2ff; color: #4338ca; padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.sc-course { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.sc-course:first-of-type { border-top: none; }
.subj-tag { font-size: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; padding: 3px 11px; border-radius: 8px; font-weight: 600; min-width: 56px; text-align: center; }
.sc-when { color: var(--text); font-weight: 600; min-width: 132px; }
.sc-tea { color: var(--muted); flex: 1; }
.sc-acts { display: flex; gap: 4px; }
.icon-btn { border: none; background: #f4f6fb; border-radius: 8px; width: 30px; height: 30px; font-size: 14px; transition: .15s; }
.icon-btn:hover { background: #e7eaf3; }

.cal-name { font-size: 11px; color: #b45309; line-height: 1.3; }
.cal-day.today { border-color: var(--t-orange); background: #fff7ed; }
.cal-more { font-size: 10.5px; color: var(--muted); }
.cal-foot-tip { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ===== 招聘网站对接 ===== */
.sync-panel { border-color: #c7d2fe; }
.sync-panel .panel-head { background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(139,92,246,.06)); }
.sync-row { font-size: 13px; color: var(--text); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ch-badge { font-size: 12px; background: #eef2ff; color: #4338ca; padding: 4px 12px; border-radius: 20px; font-weight: 600; border: 1px solid #e0e7ff; }
.sync-tip { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.sync-tip b { color: var(--primary); }
.sync-note p { font-size: 13px; color: var(--text); line-height: 1.7; margin-bottom: 10px; }
.sync-note b { color: var(--primary); }
.sync-warn { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 12px 14px; color: #b45309 !important; }
.sync-warn b { color: #c2410c !important; }
/* 简历同步：邮箱推荐 + 配置 */
.sync-rec { font-size: 13px; color: var(--text); line-height: 1.7; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.rec-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-right: 6px; }
.rec-recommend { background: #16a34a; color: #fff; }
.mail-cfg { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; align-items: center; background: #f8f9ff; border: 1px solid #e6e8ff; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.mail-cfg label { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.mail-cfg input { width: 100%; }
/* 简历生成配置折叠 */
.adv-cfg { margin-top: 12px; border: 1px dashed #d6d3e8; border-radius: 10px; padding: 4px 12px; }
.adv-cfg summary { cursor: pointer; font-size: 13px; color: var(--primary); padding: 6px 0; user-select: none; }
/* 简历海报 SVG 预览 */
#ai-preview svg { width: 100%; max-width: 320px; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(80,60,160,.18); display: block; margin: 0 auto; }
.poster .p-skills span, .p-skills span { display: inline-block; }

/* ===== 备注时间线 ===== */
.note-line { border-left: 3px solid var(--primary); background: #f8f9ff; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.note-time { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.note-text { font-size: 13.5px; color: var(--text); line-height: 1.6; white-space: pre-wrap; }

/* ===== 政策制度模块 ===== */
.filter-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-bar input { flex: 1; min-width: 220px; }
.filter-bar select { width: 160px; }
.muted-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.badge.b-soft { background: #eef2ff; color: #4338ca; }
.btn-orange { background: linear-gradient(135deg,#fb923c,#f97316); border-color: #f97316; color: #fff; }
.btn-orange:hover { filter: brightness(1.05); }

/* ===== 群需求采集 ===== */
.demand-alert { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: linear-gradient(135deg,#fff7ed,#ffedd5); border: 1px solid #fdba74; color: #9a3412; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; box-shadow: 0 6px 18px rgba(249,115,22,.12); }
.demand-alert b { color: #c2410c; font-size: 16px; }
.demand-alert .btn { margin-left: auto; }
.demand-list { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.demand-card { border: 1px solid #e8e4f5; border-radius: 14px; padding: 14px 16px; background: #fff; transition: .18s; }
.demand-card:hover { border-color: #c7bff0; box-shadow: 0 8px 22px rgba(80,60,160,.10); }
.demand-card.is-new { border-left: 4px solid #f97316; background: linear-gradient(90deg,#fffaf5,#fff); }
.dc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dc-title { font-size: 15.5px; font-weight: 700; color: var(--text); }
.dc-meta { margin-top: 8px; font-size: 13px; color: #6b7280; line-height: 1.9; }
.dc-raw { margin-top: 8px; font-size: 12.5px; color: #9ca3af; background: #f8f9ff; border-radius: 8px; padding: 8px 10px; line-height: 1.6; }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.dc-src { font-size: 11.5px; color: var(--muted); }

/* ===== 渠道徽章 / 首页实时大屏 ===== */
.ch-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.ch-tag.ch-mini { font-size: 11.5px; padding: 2px 7px; border-radius: 7px; }
.ch-wecom { background: #e0edff; color: #1d4ed8; }
.ch-personal { background: #dcfce7; color: #047857; }
.ch-manual { background: #f1f5f9; color: #475569; }
.ch-mp { background: #fff1e6; color: #c2410c; }
.ch-video { background: #fde8f3; color: #be185d; }
.ch-referral { background: #ede9fe; color: #6d28d9; }
.ch-other { background: #f1f5f9; color: #475569; }
.ch-lead { background: #fff7ed; color: #c2410c; }

/* 子账号可接收客资渠道 */
.ch-mini-tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #eef2f7; color: #475569; margin: 1px 2px; }
.quick-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: .16s; }
.chip-btn:hover { border-color: var(--primary); color: var(--primary); }
.chip-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.ch-check { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.ch-check label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text); cursor: pointer; }

.head-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ch-filter { display: flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 10px; }
.ch-fbtn { border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; transition: .16s; }
.ch-fbtn:hover { color: var(--text); }
.ch-fbtn.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(30,41,59,.10); }

.demand-card.ch-wecom { border-left: 3px solid #3b82f6; }
.demand-card.ch-personal { border-left: 3px solid #10b981; }
.demand-card.ch-mp { border-left: 3px solid #f97316; }
.demand-card.ch-video { border-left: 3px solid #ec4899; }
.demand-card.ch-referral { border-left: 3px solid #8b5cf6; }
.demand-card.ch-other { border-left: 3px solid #94a3b8; }
.demand-card.ch-wecom.is-new { background: linear-gradient(90deg,#f5f9ff,#fff); border-left-color: #2563eb; }
.demand-card.ch-personal.is-new { background: linear-gradient(90deg,#f4fdf8,#fff); border-left-color: #059669; }
.demand-card.ch-mp.is-new { background: linear-gradient(90deg,#fff9f3,#fff); border-left-color: #ea580c; }
.demand-card.ch-video.is-new { background: linear-gradient(90deg,#fff5fa,#fff); border-left-color: #db2777; }
.demand-card.ch-referral.is-new { background: linear-gradient(90deg,#f8f5ff,#fff); border-left-color: #7c3aed; }
.demand-card.ch-other.is-new { background: linear-gradient(90deg,#f8fafc,#fff); }

/* 需求卡：联系谁 / 备注 / 共享标记 */
.dc-tags { display: flex; align-items: center; gap: 6px; flex: none; }
.badge.b-share { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.badge.b-assign { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge.b-private { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.dc-contact { margin-top: 9px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: #334155; background: #f0f9ff; border: 1px solid #dbeafe; border-radius: 9px; padding: 7px 11px; }
.dc-contact b { color: #0f172a; font-weight: 700; }
.dc-way { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: #1d4ed8; background: #fff; border: 1px solid #dbeafe; border-radius: 6px; padding: 1px 7px; }
.mini-copy { border: 1px solid #c7d2fe; background: #fff; color: #4338ca; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; cursor: pointer; transition: .15s; }
.mini-copy:hover { background: #eef2ff; }
.dc-note { margin-top: 7px; font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px dashed #fcd34d; border-radius: 8px; padding: 6px 10px; }
.dc-claim { font-size: 12px; color: #4338ca; background: #eef2ff; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.dc-claim.none { color: #64748b; background: #f1f5f9; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #334155; background: #f5f7ff; border: 1px solid #e0e7ff; border-radius: 10px; padding: 10px 12px; margin: 4px 0 10px; cursor: pointer; }
.check-line input { width: 16px; height: 16px; accent-color: var(--primary); }
.radio-group { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 6px; }
.radio-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #334155; background: #f5f7ff; border: 1px solid #e0e7ff; border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.radio-line input { width: 16px; height: 16px; accent-color: var(--primary); }

.screen-panel { margin-bottom: 22px; }
.screen-panel .panel-head h4 { letter-spacing: .5px; }
.sc-tools { display: flex; align-items: center; gap: 12px; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #059669; font-weight: 600; }
.live-tag i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); } 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.sc-stat { font-size: 12.5px; color: var(--muted); }

.sc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sc-col { border-radius: 14px; padding: 14px; border: 1px solid var(--line); background: #fbfcff; }
.sc-col.ch-wecom { background: linear-gradient(160deg,#f2f7ff,#fbfcff); border-color: #dbe7fb; }
.sc-col.ch-personal { background: linear-gradient(160deg,#f2fdf7,#fbfcff); border-color: #d5f2e4; }
.sc-col.ch-lead { background: linear-gradient(160deg,#fff8f1,#fffdfb); border-color: #fce3cc; }
.sc-h { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px dashed rgba(100,116,139,.25); }
.sc-ico { font-size: 17px; }
.sc-name { font-size: 14px; font-weight: 700; }
.sc-num { margin-left: auto; font-size: 26px; font-weight: 800; color: #1d4ed8; line-height: 1; }
.sc-col.ch-personal .sc-num { color: #059669; }
.sc-col.ch-lead .sc-num { color: #ea580c; }
.sc-unit { font-size: 11.5px; color: var(--muted); }
.sc-body { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sc-item { background: #fff; border-radius: 10px; padding: 9px 11px; border: 1px solid #eef1f7; }
.sc-item.is-new { border-color: #fcd34d; box-shadow: 0 0 0 2px rgba(251,191,36,.10); }
.sc-t { font-size: 13.5px; font-weight: 700; }
.sc-m { font-size: 12px; color: #475569; margin-top: 3px; }
.sc-time { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.sc-empty { font-size: 12.5px; color: var(--muted); padding: 10px 2px; }

@media (max-width: 820px) {
  .sc-cols { grid-template-columns: 1fr; }
  .form-grid2 { grid-template-columns: 1fr; }
}
