/* 统一门户 / 权限管理 页面样式（Element Plus 之外的补充）
   注意：不要污染库存管理原有 css/style.css */
[v-cloak] { display: none !important; }

html, body, #app { height: 100%; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #f0f2f5;
  color: #303133;
}

/* ---------------- 登录页 ---------------- */
/* 2026-10-20：背景换成浅紫科技图 login_bg_v4.png（1091×421），登录框由右侧移到左侧。
   图片是 2.59:1 的宽图，按宽度铺满才能不裁掉右侧图形 → 顶部对齐，底部用同色渐变把图尾"淡出"，
   避免下方露出一条生硬的纯色分界；登录框固定左侧空白区，与右侧图形互不遮挡。 */
.login-wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: flex-start;
  background-color: #e8e3f7;
  background-image: url('../login_bg_v4.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  position: relative; overflow: hidden;
  padding-left: 8%;
}
/* 底部渐变遮罩：把背景图下缘过渡成本页底色（不拦截鼠标事件） */
.login-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(180deg, rgba(232,227,247,0) 0%, rgba(232,227,247,0.85) 55%, #e8e3f7 100%);
  pointer-events: none; z-index: 0;
}
.login-card {
  position: relative; z-index: 1;
  width: 357px; /* 380px 缩短 0.6cm(≈22.7px) 2026-10-21 海哥要求 */ padding: 42px 38px 34px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(15, 35, 70, 0.30);
}
.login-title { font-size: 21px; font-weight: 600; text-align: center; color: #1f2d3d; letter-spacing: 2px; }
.login-sub { font-size: 12.5px; color: #8a94a6; text-align: center; margin: 6px 0 26px; }
.login-logo-img {
  width: 84px; height: auto; margin: 0 auto 14px;
  display: block;
}
.login-hint { font-size: 12px; color: #a8abb2; text-align: center; margin-top: 14px; line-height: 1.7; }
.login-foot { position: absolute; bottom: 18px; width: 100%; text-align: center; color: #7c7595; font-size: 12px; z-index: 1; }
/* 公安备案号（登录页右上角） */
.login-police {
  position: absolute; top: 18px; right: 26px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: #6b6486;
}
.login-police a { color: inherit; text-decoration: none; }
.login-police a:hover { text-decoration: underline; }
.login-police svg { width: 14px; height: 14px; flex: none; opacity: .95; }
@media (max-width: 560px) {
  .login-police { top: 10px; right: 12px; font-size: 11px; }
  .login-police svg { width: 12px; height: 12px; }
}

/* ---------------- 主框架 ---------------- */
.layout { height: 100%; }
/* 玻璃拟态主题：淡蓝渐变 + 毛玻璃 + 圆角轻盈 */
body {
  background: linear-gradient(135deg, #cbe5ff 0%, #eef6ff 40%, #f5faff 70%, #e1f0ff 100%);
  background-attachment: fixed;
}
#app { background: transparent; }

.pt-header {
  height: 56px; display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: #1f2d3d; padding: 0 16px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(31, 112, 200, .08);
}
.pt-brand {
  width: 210px; display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 700; padding-left: 16px;
  box-sizing: border-box; white-space: nowrap; overflow: hidden;
  color: #1f2d3d;
}
.pt-brand.collapsed { width: 64px; padding-left: 12px; }
.pt-brand .pt-brand-logo {
  width: 28px; height: 28px; flex: 0 0 28px;
  object-fit: contain;
}
.pt-brand.collapsed .pt-brand-logo { width: 32px; height: 32px; flex: 0 0 32px; }
.pt-fold { cursor: pointer; font-size: 18px; opacity: .7; margin-right: 14px; color: #5a6c8a; }
.pt-fold:hover { opacity: 1; color: #2563eb; }
.pt-cur { font-size: 14px; color: #4a5c7a; font-weight: 500; }
.pt-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.pt-user { cursor: pointer; display: flex; align-items: center; gap: 6px; color: #3a4a66; outline: none; }
.pt-user .el-icon { color: #7b8aa8; }
.pt-role {
  background: rgba(37, 99, 235, 0.10); color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px; padding: 2px 10px; font-size: 12px;
}

/* 左侧导航：毛玻璃面板 */
.pt-aside {
  background: rgba(255, 255, 255, 0.58);
  transition: width .22s; overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 2px 0 14px rgba(31, 112, 200, .07);
}
.pt-aside .el-menu { border-right: none; background: transparent !important; padding: 10px 10px; }
/* 菜单项：圆角胶囊 */
.pt-aside .el-menu-item,
.pt-aside .el-sub-menu__title {
  color: #4a5570 !important; height: 44px; line-height: 44px;
  border-radius: 10px; margin: 3px 0;
  transition: background-color .18s, color .18s, box-shadow .18s;
}
.pt-aside .el-menu-item:hover,
.pt-aside .el-sub-menu__title:hover {
  background-color: rgba(255, 255, 255, 0.55) !important;
  color: #2563eb !important;
  box-shadow: 0 2px 8px rgba(31, 112, 200, .08);
}
/* 选中态：蓝色渐变填充按钮 */
.pt-aside .el-menu-item.is-active {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%) !important;
  color: #fff !important; font-weight: 600;
  box-shadow: 0 4px 12px rgba(53, 122, 189, .35);
}
.pt-aside .el-menu-item .el-icon { color: #6f7d9c; transition: color .18s; }
.pt-aside .el-menu-item:hover .el-icon,
.pt-aside .el-menu-item.is-active .el-icon { color: #fff; }
.pt-menu-title { color: #7d8aa6; font-size: 11px; padding: 14px 12px 6px; letter-spacing: 1.5px; font-weight: 600; }

.pt-main { padding: 0; background: transparent; position: relative; overflow: hidden; }
.pt-frame { width: 100%; height: 100%; border: 0; display: block; background: transparent; }

/* ---------------- 工作台 ---------------- */
.ws { padding: 20px 22px 28px; height: 100%; box-sizing: border-box; overflow: auto; }
.ws-hi { font-size: 19px; font-weight: 700; color: #1f2d3d; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.ws-sub { color: #5a6c8a; font-size: 13px; margin: 6px 0 20px; }
.app-card {
  border-radius: 14px; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.62);
  height: 100%;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(31, 112, 200, .08), 0 1px 3px rgba(31, 112, 200, .04);
}
.app-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(31, 112, 200, .14), 0 3px 8px rgba(31, 112, 200, .06);
}
.app-card .ac-top { display: flex; align-items: center; gap: 12px; }
.app-card .ac-ico {
  width: 44px; height: 44px; border-radius: 10px; flex: 0 0 44px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
}
.app-card .ac-name { font-size: 16px; font-weight: 700; color: #1f2d3d; }
.app-card .ac-code { font-size: 12px; color: #7b8aa8; margin-top: 2px; }
.app-card .ac-desc {
  color: #55627a; font-size: 13px; line-height: 1.65; margin: 12px 0 14px; min-height: 42px;
}
.ws-empty { padding: 60px 0; text-align: center; }

/* ---------------- 权限管理（admin.html） ---------------- */
.ad-wrap { padding: 16px 18px 26px; }
.ad-bar { display: flex; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.ad-bar .sp { margin-left: auto; }
.ad-tip { color: #909399; font-size: 12px; }
.perm-box {
  border: 1px solid #e4e7ed; border-radius: 6px; padding: 10px 12px;
  max-height: 340px; overflow: auto; background: #fafcff;
}

/* 通用业务表格（替代 el-table，避开 iframe 渲染 bug） */
.ad-tbl-wrap {
  width: 100%; overflow-x: auto; background: #fff;
  border: 1px solid #ebeef5; border-radius: 4px;
}
table.ad-tbl {
  width: 100%; border-collapse: collapse; font-size: 13px; color: #303133;
  table-layout: auto;
}
table.ad-tbl thead th {
  background: #f5f7fa; font-weight: 600; color: #606266;
  padding: 10px 8px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid #ebeef5;
}
table.ad-tbl tbody td {
  padding: 9px 8px; border-bottom: 1px solid #ebeef5; vertical-align: middle;
}
table.ad-tbl tbody tr:hover td { background: #f5f7fa; }
table.ad-tbl tbody tr:nth-child(even) td { background: #fafbfc; }
table.ad-tbl tbody tr:nth-child(even):hover td { background: #f5f7fa; }
table.ad-tbl th.c-seq, table.ad-tbl td.c-seq { width: 56px; text-align: center; color: #909399; }
table.ad-tbl th.c-status, table.ad-tbl td.c-status { width: 90px; text-align: center; }
table.ad-tbl th.c-type, table.ad-tbl td.c-type { width: 110px; text-align: center; }
table.ad-tbl th.c-num, table.ad-tbl td.c-num { width: 78px; text-align: center; }
table.ad-tbl th.c-op, table.ad-tbl td.c-op { width: 210px; white-space: nowrap; }
table.ad-tbl td.c-empty { text-align: center; color: #c0c4cc; padding: 30px 0; }
.perm-app { padding: 6px 0; border-bottom: 1px dashed #e9ebef; }
.perm-app:last-child { border-bottom: none; }
.perm-app .pa-head { display: flex; align-items: center; gap: 8px; }
.perm-app .pa-name { font-weight: 700; color: #1f2d3d; }
.perm-mods { padding: 6px 0 2px 26px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.perm-lock { color: #e6a23c; font-size: 12px; }
