:root {
  --ink: #17202f;
  --muted: #768094;
  --line: #e8eaf0;
  --blue: #6558e8;
  --blue-dark: #5b4fd4;
  --soft: #f6f7fa;
  --green: #15966a;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
.auth-page { min-height: 100vh; background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(420px, .92fr); }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 10vw; color: #fff; background: linear-gradient(145deg, #1f1845 0%, #40349b 54%, #6558e8 100%); }
.login-brand::before { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -150px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.04), 0 0 0 180px rgba(255,255,255,.025); }
.brand-mark { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 34px; border-radius: 15px; background: #fff; color: var(--blue); font-weight: 800; letter-spacing: -1px; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.brand-mark.small { width: 36px; height: 36px; margin: 0; border-radius: 10px; background: var(--blue); color: #fff; box-shadow: none; font-size: 12px; }
.eyebrow { margin: 0 0 14px; color: #b8aef7; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.login-brand h1 { position: relative; margin: 0; font-size: clamp(38px, 4vw, 62px); line-height: 1.12; letter-spacing: -.04em; }
.brand-copy { position: relative; max-width: 500px; margin: 26px 0 36px; color: #cfdbef; font-size: 17px; line-height: 1.8; }
.brand-points { position: relative; display: flex; gap: 20px; flex-wrap: wrap; color: #e9f0fb; font-size: 13px; }
.brand-points span::before { content: "✓"; margin-right: 7px; color: #78e0bd; }
.login-panel { display: grid; place-items: center; padding: 48px; background: #f8fafc; }
.login-card { width: min(410px, 100%); padding: 44px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 70px rgba(28,48,76,.10); }
.login-card h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.muted { color: var(--muted); }
.login-card > .muted { margin: 8px 0 30px; }
.login-card label { display: block; margin-top: 18px; color: #46546a; font-size: 13px; font-weight: 650; }
.login-card input { width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid #d9e0ea; border-radius: 10px; outline: 0; transition: .18s; }
.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(101,88,232,.15); }
.login-card button { width: 100%; margin-top: 26px; padding: 13px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }
.login-card button:hover { background: var(--blue-dark); }
.login-card button:disabled { opacity: .65; cursor: wait; }
.form-error { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fff0f0; color: #c73c3c; font-size: 13px; }
.login-hint { margin: 18px 0 0; text-align: center; color: #909bad; font-size: 12px; }
.home-page { min-height: 100vh; background: var(--soft); }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; background: #fff; border-bottom: 1px solid var(--line); }
.home-brand, .user-actions { display: flex; align-items: center; gap: 12px; }
.home-brand { color: var(--ink); text-decoration: none; }
.user-actions { color: var(--muted); font-size: 13px; }
.user-actions a { color: var(--blue); text-decoration: none; font-weight: 650; }
.user-actions button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; }
.page-nav { display: flex; align-items: center; gap: 24px; }
.page-nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 650; }
.page-nav a.active, .page-nav a:hover { color: var(--blue); }
.home-shell { max-width: 1240px; margin: 0 auto; padding: 48px 28px 80px; }
.hero { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.hero h1 { margin: 0 0 8px; font-size: 36px; letter-spacing: -.04em; }
.hero .muted { margin: 0; }
.hero-count { display: flex; align-items: baseline; gap: 7px; color: var(--muted); }
.hero-count strong { color: var(--blue); font-size: 34px; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.job-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 7px 24px rgba(28,48,76,.055); }
.job-card-head, .job-footer { display: flex; align-items: center; justify-content: space-between; }
.status { padding: 3px 9px; border-radius: 20px; color: #667085; background: #f1f3f6; font-size: 11px; font-weight: 700; }
.status-active { color: var(--green); background: #e8f8f2; }
.job-id { color: #a0a9b8; font-size: 11px; }
.job-card h2 { min-height: 54px; margin: 18px 0 5px; font-size: 20px; line-height: 1.35; }
.company { margin: 0; color: var(--muted); font-size: 13px; }
.job-owner { margin-top: 14px; padding: 9px 11px; border-radius: 8px; background: #f4f7fc; color: #5f6f84; font-size: 12px; }
.job-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 22px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.job-metrics div { display: flex; flex-direction: column; padding: 11px; background: #fafbfd; }
.job-metrics strong { font-size: 18px; }
.job-metrics span { color: var(--muted); font-size: 11px; }
.job-footer { padding-top: 15px; border-top: 1px solid var(--line); color: #8a95a6; font-size: 11px; }
.job-footer a { color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 650; }
.home-empty, .loading { grid-column: 1/-1; display: flex; flex-direction: column; gap: 7px; align-items: center; padding: 80px; color: var(--muted); background: #fff; border: 1px dashed #d6dce5; border-radius: 14px; }
.home-empty.compact { padding: 34px; margin-top: 16px; }
.admin-shell, .detail-shell { max-width: 1320px; margin: 0 auto; padding: 42px 28px 80px; }
.detail-shell { max-width: 1180px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.page-heading h1, .project-hero h1 { margin: 0 0 7px; font-size: 34px; letter-spacing: -.04em; }
.page-heading p { margin-bottom: 0; }
.primary-button { padding: 10px 16px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }
.primary-button.full { width: 100%; margin-top: 18px; }
.admin-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: start; }
.admin-card, .logic-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 7px 24px rgba(28,48,76,.045); }
.admin-card h2, .logic-card h2 { margin: 0 0 18px; font-size: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { margin: 0; }.section-head span { color: var(--muted); font-size: 11px; }
.member-list { display: flex; flex-direction: column; }
.member-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }.member-row > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; }.member-row span { color: var(--muted); font-size: 11px; }
.avatar { display: grid!important; place-items: center; flex: none!important; width: 36px; height: 36px; border-radius: 10px; background: #eaf0ff; color: var(--blue); font-weight: 800; }
.role-chip { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-style: normal; font-weight: 700; background: #eef1f5; color: #637084; }
.role-admin { background: #eee9ff; color: #6e46bf; }.role-consultant { background: #e7f0ff; color: #2460c6; }.role-sourcer { background: #e6f7f0; color: #167d5d; }
.field-label { display: block; color: var(--muted); font-size: 12px; }.field-label select, .assignment-row select, .dialog-form input, .dialog-form select { width: 100%; margin-top: 7px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.assignment-summary { display: flex; gap: 10px; margin: 17px 0; }.assignment-summary span { padding: 7px 10px; border-radius: 8px; background: #f3f6fb; color: var(--muted); font-size: 11px; }.assignment-summary strong { color: var(--ink); }
.assignment-row { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }.assignment-row > div { display: flex; flex-direction: column; }.assignment-row span { color: var(--muted); font-size: 11px; }
dialog { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 90px rgba(20,35,55,.24); }dialog::backdrop { background: rgba(16,29,48,.5); }.dialog-form { padding: 24px; }.dialog-form label { display: block; margin: 13px 0; color: var(--muted); font-size: 12px; }.icon-button { border: 0; background: none; font-size: 24px; cursor: pointer; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--blue); text-decoration: none; font-size: 13px; }
.project-hero { display: flex; justify-content: space-between; align-items: center; padding: 28px; margin-bottom: 20px; color: #fff; background: linear-gradient(135deg,#13233d,#245fc7); border-radius: 16px; }.project-hero p { margin: 8px 0 0; color: #c9d7ed; }.project-hero .status { color: #d7e5ff; background: rgba(255,255,255,.12); }.project-stats { display: flex; gap: 12px; }.project-stats div { display: flex; flex-direction: column; min-width: 100px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.1); }.project-stats strong { font-size: 24px; }.project-stats span { color: #cbd8eb; font-size: 11px; }
.project-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.info-list { display: grid; grid-template-columns: 110px 1fr; margin: 0; }.info-list dt,.info-list dd { padding: 11px 0; border-bottom: 1px solid var(--line); }.info-list dt { color: var(--muted); }.info-list dd { margin: 0; font-weight: 600; }
.role-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 20px; }.role-card { padding: 24px; border-radius: 15px; background: #fff; border: 1px solid var(--line); }.role-card > span { color: #a4adba; font-size: 11px; font-weight: 800; }.role-card h2 { margin: 12px 0 9px; }.role-card p { min-height: 88px; color: var(--muted); font-size: 13px; line-height: 1.7; }.role-card ul { padding-left: 18px; color: #4f5e72; font-size: 12px; line-height: 2; }.admin-role { border-top: 4px solid #744dcc; }.consultant-role { border-top: 4px solid #2d6ee0; }.sourcer-role { border-top: 4px solid #18a176; }
.logic-flow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 15px; }.logic-flow a { padding: 8px 12px; border-radius: 8px; background: #eef3ff; color: var(--blue); text-decoration: none; font-weight: 650; }.logic-card p { color: var(--muted); }
@media (max-width: 850px) { .login-shell { grid-template-columns: 1fr; } .login-brand { min-height: 320px; padding: 48px 8vw; } .brand-points { display: none; } .login-panel { padding: 30px 20px; } .login-card { padding: 32px 26px; }.admin-grid,.project-columns,.role-grid { grid-template-columns: 1fr; }.page-nav { display:none; } }
@media (max-width: 620px) { .topbar { padding: 0 18px; } .user-actions #welcome, .user-actions a { display: none; } .home-shell { padding: 32px 16px; } .hero { align-items: flex-start; } .job-grid { grid-template-columns: 1fr; } }

/* ===== 搜索参数配置（params.html） ===== */
.heading-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ghost-button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--blue); font-weight: 650; cursor: pointer; }
.ghost-button:hover { border-color: var(--blue); background: #f4f8ff; }
.ghost-button.danger { color: #c0392b; }
.ghost-button.danger:hover { border-color: #c0392b; background: #fff5f4; }
.primary-button.small { padding: 7px 13px; font-size: 13px; }
.param-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.param-tab { padding: 9px 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-weight: 650; cursor: pointer; }
.param-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.param-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 7px 24px rgba(28,48,76,.045); }
.param-card .section-head { align-items: center; }
.param-card .section-head > div { display: flex; align-items: center; gap: 12px; }
.level-legend { display: flex; gap: 8px; margin: 4px 0 14px; }
.legend-item { font-size: 12px; }
.param-tree { display: flex; flex-direction: column; gap: 4px; }
.pnode { border: 1px solid transparent; border-radius: 9px; }
.pnode:hover { border-color: var(--line); }
.pnode-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; }
.pnode-toggle { width: 22px; height: 22px; flex: none; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.pnode-toggle.leaf { cursor: default; color: #c3cad4; }
.pnode-level { flex: none; padding: 2px 8px; border-radius: 11px; font-size: 10px; font-weight: 700; }
.pnode-level.l1 { background: #eee9ff; color: #6e46bf; }
.pnode-level.l2 { background: #e7f0ff; color: #2460c6; }
.pnode-level.l3 { background: #e6f7f0; color: #167d5d; }
.pnode-name { font-size: 13.5px; font-weight: 600; }
.pnode-count { color: #a0a9b8; font-size: 11px; }
.pnode-actions { margin-left: auto; display: flex; gap: 5px; opacity: 0; transition: opacity .12s; }
.pnode-row:hover .pnode-actions { opacity: 1; }
.pnode-actions { opacity: .55; }
.pnode.disabled .pnode-name { color: #b3bac6; text-decoration: line-through; }
.pnode-children { margin: 2px 0 6px 26px; padding-left: 12px; border-left: 2px solid #eef1f6; }
.mini-btn { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font-size: 11px; cursor: pointer; }
.mini-btn:hover { border-color: var(--blue); color: var(--blue); }
.mini-btn.danger:hover { border-color: #c0392b; color: #c0392b; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 48px; color: var(--muted); text-align: center; }
.toast { position: fixed; top: 20px; right: 20px; z-index: 999; padding: 11px 18px; border-radius: 9px; background: #12213a; color: #fff; font-size: 13px; box-shadow: 0 12px 34px rgba(20,35,55,.28); animation: toast-in .22s ease; }
.toast.error { background: #c0392b; }
.toast.ok { background: #15966a; }
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
