/* ============ 信息科排班系统 - 高级视觉样式 ============ */
[v-cloak]{ display:none !important; }
:root{
  --brand:#2f5bff; --brand-2:#22b8cf; --ink:#17233d; --ink-2:#5a6a85;
  --bg1:#f4f7ff; --bg2:#eef3fc; --line:rgba(23,35,61,.08);
  --shadow:0 8px 24px rgba(31,45,77,.07);
  --radius:14px;
  /* Element Plus 主题覆写 */
  --el-color-primary:#2f5bff;
  --el-color-primary-light-3:#6b8dff;
  --el-color-primary-light-5:#9db4ff;
  --el-color-primary-light-7:#c6d4ff;
  --el-color-primary-light-8:#dbe4ff;
  --el-color-primary-light-9:#eef2ff;
  --el-color-primary-dark-2:#264cd6;
  --el-border-radius-base:8px;
  --el-border-radius-small:6px;
}
*{ box-sizing:border-box; }
html,body{ -webkit-font-smoothing:antialiased; }
body{
  margin:0;
  font-family:"PingFang SC","Microsoft YaHei","Segoe UI",-apple-system,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(47,91,255,.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(34,184,207,.07), transparent 55%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  background-attachment:fixed;
}

/* ---------- 顶栏 ---------- */
.topnav{
  background:linear-gradient(92deg,#111a2e 0%,#1c2f56 55%,#234d8f 100%);
  color:#fff; display:flex; align-items:center; padding:0 22px; height:58px;
  position:sticky; top:0; z-index:100;
  box-shadow:0 6px 18px rgba(16,24,46,.18);
}
.topnav .brand{ font-weight:800; font-size:16px; letter-spacing:.5px; margin-right:26px;
  display:flex; align-items:center; gap:8px; white-space:nowrap; }
.topnav .brand::before{ content:"◈"; font-size:18px; color:#7ee0ff; }
.topnav a{ color:rgba(255,255,255,.78); text-decoration:none; padding:0 14px; line-height:40px;
  display:inline-block; font-size:13.5px; border-radius:10px; margin:0 2px; transition:.2s; }
.topnav a:hover{ color:#fff; background:rgba(255,255,255,.10); }
.topnav a.active{ color:#fff; background:linear-gradient(90deg,var(--brand),var(--brand-2));
  box-shadow:0 4px 12px rgba(47,91,255,.35); font-weight:600; }
.topnav .right{ margin-left:auto; color:rgba(255,255,255,.65); font-size:12.5px; }
.topnav .right a{ color:#ff9aa5; }

/* ---------- 页面容器/卡片 ---------- */
.page{ padding:20px 24px 48px; max-width:1680px; margin:0 auto; }
.card{ background:#fff; border-radius:var(--radius); padding:18px 20px; margin-bottom:16px;
  border:1px solid var(--line); box-shadow:var(--shadow); transition:transform .18s ease, box-shadow .18s ease; }
.card:hover{ box-shadow:0 12px 30px rgba(31,45,77,.10); }
.card-title{ font-size:15px; font-weight:800; margin:0 0 14px; display:flex; align-items:center; gap:8px;
  color:#1b2740; }
.card-title::before{ content:""; width:4px; height:15px; border-radius:3px;
  background:linear-gradient(180deg,var(--brand),var(--brand-2)); }
.toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.muted{ color:#8a97ad; font-size:12px; }
.mt8{margin-top:8px;} .mt16{margin-top:16px;}
.pager{ display:flex; justify-content:flex-end; margin-top:14px; }

/* ---------- 班次画笔 chips ---------- */
.shift-chips{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.chip{ border:1px solid #e2e8f5; border-radius:999px; padding:5px 14px; cursor:pointer; font-size:13px;
  background:#fff; transition:.15s; user-select:none; }
.chip:hover{ transform:translateY(-1px); box-shadow:0 4px 10px rgba(31,45,77,.10); }
.chip.active{ outline:2px solid #ff5a76; outline-offset:1px; box-shadow:0 4px 12px rgba(255,90,118,.25); }

/* ---------- 排班表 ---------- */
.sch-wrap{ overflow:auto; max-height:72vh; border:1px solid #e6ecf9; border-radius:10px; background:#fff; }
table.sch{ border-collapse:separate; border-spacing:0; font-size:13px; white-space:nowrap; width:100%; }
table.sch th, table.sch td{ border-right:1px solid #eef1f8; border-bottom:1px solid #eef1f8; text-align:center; }
table.sch th{ background:#f6f8ff; color:#44506b; font-weight:700; padding:8px 5px; min-width:36px;
  position:sticky; top:0; z-index:5; }
table.sch th.namecol, table.sch td.namecol{ position:sticky; left:0; background:#f6f8ff; z-index:8; min-width:118px;
  border-right:1px solid #dde5f5; }
table.sch td.namecol{ background:#fff; z-index:7; }
table.sch th.restcol{ min-width:92px; background:#fff7ec; color:#b26a00; }
table.sch td.cell{ cursor:pointer; padding:0; }
table.sch td.cell .in{ min-width:36px; height:36px; line-height:36px; padding:0 3px; user-select:none;
  border-radius:0; }
table.sch td.cell:hover{ outline:2px solid var(--brand); outline-offset:-2px; }
table.sch td.cell.selected{ outline:2px solid #ff5a76; outline-offset:-2px; }
table.sch td.today{ box-shadow: inset 0 0 0 2px var(--brand); }
.sch-summary{ display:flex; gap:22px; flex-wrap:wrap; color:#66728c; font-size:12.5px; margin-top:12px; align-items:center; }
.sch-summary b{ font-size:15px; }

/* ---------- Element Plus 细节 ---------- */
.el-button{ font-weight:500; border-radius:8px; }
.el-table{ --el-table-header-bg-color:#f7f9ff; --el-table-row-hover-bg-color:#f4f7ff; border-radius:10px; overflow:hidden; }
.el-table th.el-table__cell{ color:#44506b; font-weight:600; background:#f7f9ff; }
.el-dialog{ border-radius:18px; }
.el-dialog__title{ font-weight:700; color:#1b2740; }
.el-message-box{ border-radius:16px; }
.el-pagination.is-background .el-pager li{ border-radius:8px; }
.el-tag{ border-radius:6px; }
.el-input-number, .el-date-editor{ --el-input-border-radius:8px; }
.el-empty__description p{ color:#8a97ad; }

/* 输入/下拉获得焦点稍高亮 */
.el-input__wrapper.is-focus, .el-select__wrapper.is-focused, .el-textarea__inner:focus{
  box-shadow:0 0 0 1px var(--brand) inset, 0 0 0 3px rgba(47,91,255,.12) !important;
}

/* ===== 高端简洁 · 细节升级 ===== */
html{ scroll-behavior:smooth; }
body{
  background:
    radial-gradient(1400px 700px at 88% -12%, rgba(47,91,255,.09), transparent 60%),
    radial-gradient(1000px 560px at -8% 112%, rgba(34,184,207,.08), transparent 55%),
    linear-gradient(165deg, #f5f7fd 0%, #eef2fa 100%);
}
/* 顶栏：更轻盈 */
.topnav{ height:54px; padding:0 26px; backdrop-filter:blur(10px);
  background:linear-gradient(92deg, #101a2e 0%, #1b2f55 60%, #1f4d8c 100%); }
.topnav .brand{ letter-spacing:1px; }
.topnav a{ border-radius:999px; padding:0 16px; }
/* 页面呼吸感 */
.page{ padding:26px 30px 60px; }
/* 卡片更柔更利落 */
.card{ border-radius:16px; padding:20px 22px; margin-bottom:18px; box-shadow:0 6px 18px rgba(31,45,77,.05); }
.card-title{ letter-spacing:.4px; margin-bottom:16px; }
.toolbar{ margin-bottom:16px; }
/* 表格/输入等主色跟随主题变量，无需额外处理 */

/* 细滚动条（Chrome/Edge） */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb{ background:rgba(47,91,255,.25); border-radius:8px; border:2px solid transparent; background-clip:content-box; }
::-webkit-scrollbar-thumb:hover{ background:rgba(47,91,255,.45); background-clip:content-box; border:2px solid transparent; }
::-webkit-scrollbar-track{ background:transparent; }

/* 按钮统一圆角/过渡 */
.el-button{ transition:transform .12s ease, box-shadow .15s ease, opacity .15s ease; }
.el-button:not(.is-disabled):hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgba(47,91,255,.16); }
.el-button--text:hover{ transform:none; box-shadow:none; }

/* ===== 管理端菜单与页面切换 ===== */
.topnav-links{
  display:flex; align-items:center; gap:3px; padding:4px;
  border:1px solid rgba(255,255,255,.11); border-radius:999px;
  background:rgba(255,255,255,.065);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.topnav .topnav-links a{
  position:relative; overflow:hidden; height:32px; line-height:32px;
  margin:0; padding:0 15px; border-radius:999px; background:transparent;
  transition:color .24s ease, background .24s ease, box-shadow .24s ease, transform .24s ease;
}
.topnav .topnav-links a::before{
  content:""; position:absolute; inset:0; border-radius:inherit; opacity:0;
  background:linear-gradient(120deg,rgba(255,255,255,.18),rgba(255,255,255,.05));
  transition:opacity .24s ease;
}
.topnav .topnav-links a:hover{ color:#fff; transform:translateY(-1px); }
.topnav .topnav-links a:hover::before{ opacity:1; }
.topnav .topnav-links a.active{
  color:#153b73; background:linear-gradient(180deg,#fff,#f3f8ff);
  border-color:rgba(255,255,255,.76);
  box-shadow:0 8px 20px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.96);
  transform:translateY(-1px);
}
.topnav .topnav-links a.active::before{ opacity:0; }
.page{ animation:adminPageIn .32s cubic-bezier(.22,.78,.28,1) both; }
.page > .card{ animation:adminCardIn .38s cubic-bezier(.22,.78,.28,1) both; }
.page > .card:nth-child(2){ animation-delay:.045s; }
.page > .card:nth-child(3){ animation-delay:.08s; }
@keyframes adminPageIn{
  from{ opacity:0; transform:translateY(7px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes adminCardIn{
  from{ opacity:0; transform:translateY(6px) scale(.997); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
@media (max-width:760px){
  .topnav-links{ width:100%; justify-content:center; order:3; margin-top:4px; }
  .topnav .topnav-links a{ padding:0 11px; font-size:12.5px; }
}

/* ===== 网页端修改密码 ===== */
.password-card{
  max-width:620px; margin:30px auto; padding:0; overflow:hidden;
  border:1px solid rgba(41,68,126,.11); border-radius:24px;
  box-shadow:0 18px 50px rgba(31,48,88,.10);
}
.password-hero{
  display:flex; align-items:center; gap:16px; padding:25px 28px;
  color:#fff;
  background:
    radial-gradient(420px 110px at 12% 0, rgba(122,191,255,.26), transparent 75%),
    linear-gradient(112deg,#12244a 0%,#1a427d 58%,#176f8e 100%);
}
.password-mark{
  width:50px; height:50px; flex:none; display:grid; place-items:center;
  border-radius:16px; color:#fff; font-size:14px; font-weight:900;
  background:linear-gradient(145deg,#4d89ff,#25c1ce);
  box-shadow:0 12px 28px rgba(21,91,190,.32), inset 0 1px 0 rgba(255,255,255,.32);
}
.password-title{ font-size:19px; font-weight:900; letter-spacing:.2px; }
.password-sub{ margin-top:6px; color:rgba(229,240,255,.72); font-size:12px; }
.password-body{ padding:25px 28px 28px; background:#fff; }
.password-form .el-form-item{ margin-bottom:18px; }
.password-form .el-form-item__label{
  height:auto; margin-bottom:7px; color:#4b5b76; font-size:13px; font-weight:700;
}
.password-form .el-input__wrapper{ min-height:46px; border-radius:12px; background:#f7f9fe; }
.password-field{ margin-bottom:17px; }
.password-label{
  display:block; margin-bottom:7px; color:#4b5b76; font-size:13px; font-weight:700;
}
.password-input{
  width:100%; height:46px; padding:0 14px; outline:none;
  border:1px solid rgba(41,68,126,.13); border-radius:12px;
  color:#17233d; background:#f7f9fe; font-family:inherit; font-size:14px;
  transition:border-color .18s, box-shadow .18s, background .18s;
}
.password-input:hover{ border-color:rgba(49,94,251,.28); }
.password-input:focus{
  border-color:#315efb; background:#fff;
  box-shadow:0 0 0 3px rgba(49,94,251,.10), 0 8px 20px rgba(49,94,251,.08);
}
.password-input::placeholder{ color:#a4afc0; }
.password-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }
.password-policy{
  margin-top:18px; padding:12px 14px; border-radius:12px;
  color:#7c889e; background:#f7f9fe; font-size:12px; line-height:1.7;
}
.password-msg{
  min-height:20px; margin-top:12px; color:#f56c6c; font-size:12px; text-align:center;
}
.password-modal{
  position:fixed; inset:0; z-index:3000; display:flex; align-items:center; justify-content:center;
  padding:20px; background:rgba(7,17,35,.50); backdrop-filter:blur(7px);
}
.password-dialog{
  width:min(100%,480px); overflow:hidden; border-radius:24px; background:#fff;
  box-shadow:0 30px 90px rgba(3,12,31,.34);
  animation:passwordDialogIn .2s ease-out;
}
.password-dialog-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:18px;
  padding:24px 26px 20px; color:#fff;
  background:
    radial-gradient(360px 90px at 12% 0, rgba(122,191,255,.25), transparent 76%),
    linear-gradient(112deg,#12244a 0%,#1a427d 60%,#176f8e 100%);
}
.password-dialog-head .password-title{ color:#fff; }
.password-dialog-head .password-sub{ color:rgba(229,240,255,.72); }
.password-dialog-body{ padding:24px 26px 26px; background:#fff; }
.password-close{
  width:32px; height:32px; flex:none; border:0; border-radius:10px; cursor:pointer;
  color:rgba(255,255,255,.82); background:rgba(255,255,255,.10);
  font-size:22px; line-height:1; transition:background .18s, color .18s;
}
.password-close:hover{ color:#fff; background:rgba(255,255,255,.20); }
.password-modal-btn{
  min-width:104px; height:42px; padding:0 18px; border-radius:11px; cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:750;
  transition:transform .15s, box-shadow .15s, background .15s;
}
.password-modal-btn:hover{ transform:translateY(-1px); }
.password-modal-btn.ghost{
  border:1px solid #dfe6f2; color:#5b6982; background:#f7f9fd;
}
.password-modal-btn.primary{
  border:0; color:#fff; background:linear-gradient(100deg,#315efb,#2474ee 55%,#24b7cf);
  box-shadow:0 10px 24px rgba(49,94,251,.24);
}
@keyframes passwordDialogIn{
  from{ opacity:0; transform:translateY(10px) scale(.985); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
@media (max-width:700px){
  .password-card{ margin:18px 12px; border-radius:18px; }
  .password-hero{ padding:21px 20px; }
  .password-body{ padding:21px 20px 24px; }
}

/* ---------- 手机端通用适配 ---------- */
@media (max-width: 768px){
  html, body{ overflow-x:hidden; }
  body{ -webkit-text-size-adjust:100%; }

  .topnav{
    height:auto; min-height:52px; padding:8px 10px; gap:5px;
    align-items:center; flex-wrap:wrap;
  }
  .topnav .brand{ margin-right:auto; font-size:14px; }
  .topnav .right{ margin-left:0; font-size:11.5px; }
  .topnav-links{
    order:3; width:100%; margin-top:3px; padding:3px;
    justify-content:flex-start; flex-wrap:nowrap; overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .topnav .topnav-links a{
    flex:none; padding:0 11px; font-size:12px; white-space:nowrap;
  }

  .page{ padding:14px 10px 32px; }
  .page > .card{ animation:none; }
  .card{ padding:14px 12px; margin-bottom:12px; border-radius:14px; }
  .card-title{ font-size:14px; margin-bottom:12px; }
  .toolbar{ gap:7px; margin-bottom:12px; }
  .toolbar > .el-button,
  .toolbar > .el-dropdown,
  .toolbar > .el-input,
  .toolbar > .el-select,
  .toolbar > .el-date-editor{ margin-left:0 !important; }
  .el-date-editor.el-input,
  .el-date-editor.el-input__wrapper{ width:100% !important; max-width:100%; }
  .el-select{ max-width:100%; }

  .el-form-item__label{
    display:block; float:none; width:auto !important; height:auto;
    padding:0 0 5px; text-align:left !important; line-height:1.35;
  }
  .el-form-item__content{ margin-left:0 !important; }
  .el-dialog{
    width:auto !important; max-width:calc(100vw - 18px);
    margin:8vh auto !important;
  }
  .el-message-box{ max-width:calc(100vw - 18px); }

  .el-table{ font-size:12px; }
  .el-table .cell{ word-break:break-word; }
  .pager{ justify-content:center; }
  .el-pagination{ flex-wrap:wrap; justify-content:center; row-gap:6px; }

  .sch-wrap{ overflow-x:auto !important; -webkit-overflow-scrolling:touch; }
  table.sch{ min-width:760px; }
  table.sch th, table.sch td{ padding:3px 1px; font-size:11px; }
}

@media (max-width: 480px){
  .topnav .brand{ font-size:13px; }
  .topnav .topnav-links a{ padding:0 9px; font-size:11.5px; }
  .page{ padding-left:8px; padding-right:8px; }
  .card{ padding:12px 9px; }
  .el-dialog{ margin-top:4vh !important; }
}
