/* ==========================================================================
   云德 SaaS 建站平台 · 客户网站后台（版式 1:1 复刻 300.cn 数字门户管理端）
   配色已品牌化：以云德 logo 青绿色（主色 #12BCBB）为源，深浅均由该色推导
     顶栏渐变  linear-gradient(158deg,#14B7B4 0%,#0E8FA6 100%)  高 60px
     主色      #12BCBB     强调色 #0DA5AD
     正文      #303133 / #606266 / #909399
     底色      #f8f8f8     边框 #e4e7ed / #ebeef5
     圆角      3px(按钮) / 4px(卡片)
   ========================================================================== */

:root {
  --np-primary: #12bcbb;
  --np-accent: #0da5ad;
  --np-accent-bg: #f0fbfb;
  --np-header-grad: linear-gradient(158deg, #14b7b4 0%, #0e8fa6 100%);
  --np-header-h: 60px;
  --np-aside-w: 300px;
  --np-aside-w-wide: 330px;
  --np-body-bg: #f8f8f8;
  --np-text: #303133;
  --np-text-strong: #202020;
  --np-text-regular: #606266;
  --np-text-secondary: #909399;
  --np-text-placeholder: #c0c4cc;
  --np-border: #e4e7ed;
  --np-border-light: #ebeef5;
  --np-border-lighter: #f6f6f6;
  --np-radius: 4px;
  --np-radius-sm: 3px;
  --np-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
  --np-success: #67c23a;
  --np-warning: #e6a23c;
  --np-danger: #f56c6c;
  --np-info: #909399;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", SimSun, sans-serif;
  font-size: 14px;
  color: var(--np-text);
  background: var(--np-body-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--np-accent); text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.hidden { display: none !important; }

/* ==========================  顶部导航  ========================== */
.np-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--np-header-h);
  background: var(--np-header-grad);
  display: flex;
  align-items: center;
  padding: 0 20px 0 18px;
  color: #fff;
}

.np-logo {
  height: 32px;
  flex: 0 0 auto;
  margin-right: 22px;
  display: block;
}

.np-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  height: 100%;
}

.np-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s;
}

.np-nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.np-nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.np-nav-item .site-tips {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 网站管理：语言站点下拉 */
.np-subnav {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 280px;
  background: #fff;
  border-radius: var(--np-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  padding: 10px;
  display: none;
  z-index: 200;
}

.np-nav-item:hover .np-subnav { display: block; }

.np-subnav .item-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--np-radius);
  cursor: pointer;
}

.np-subnav .item-node:hover { background: var(--np-accent-bg); }
.np-subnav .item-node.active { background: var(--np-accent-bg); }

.np-subnav .flag {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  background: #f2f4f7;
}

.np-subnav .site-title { font-size: 13px; color: var(--np-text); font-weight: 500; }
.np-subnav .site-language { font-size: 12px; color: var(--np-text-secondary); margin-left: 6px; }
.np-subnav .site-domain { font-size: 12px; color: var(--np-text-secondary); }

/* 顶栏右侧 */
.np-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.np-hicon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  opacity: 0.92;
  font-size: 17px;
}
.np-hicon:hover { opacity: 1; }

.np-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #fff;
  max-width: 260px;
}
.np-user .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.np-user .uname {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.np-user-menu {
  position: absolute;
  top: 52px; right: 18px;
  background: #fff;
  border-radius: var(--np-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  min-width: 150px;
  padding: 5px 0;
  display: none;
  z-index: 300;
}
.np-user-menu.open { display: block; }
.np-user-menu div {
  padding: 9px 18px;
  font-size: 14px;
  color: var(--np-text-regular);
  cursor: pointer;
}
.np-user-menu div:hover { background: #f5f7fa; color: var(--np-primary); }

/* ==========================  主体框架  ========================== */
.np-body {
  display: flex;
  padding-top: var(--np-header-h);
  min-height: 100vh;
}

.np-aside {
  width: var(--np-aside-w);
  flex: 0 0 var(--np-aside-w);
  background: #fff;
  border-right: 1px solid var(--np-border-light);
  min-height: calc(100vh - var(--np-header-h));
  display: flex;
  flex-direction: column;
}

.np-aside.wide { width: var(--np-aside-w-wide); flex-basis: var(--np-aside-w-wide); }

.np-aside-name {
  height: 53px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--np-text-strong);
  border-bottom: 1px solid var(--np-border-lighter);
  flex: 0 0 auto;
}

.np-aside-scroll { overflow-y: auto; flex: 1 1 auto; padding-bottom: 24px; }

.np-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--np-text-strong);
}

.np-link {
  display: block;
  padding: 9px 20px 9px 22px;
  font-size: 14px;
  color: var(--np-text-regular);
  cursor: pointer;
  border-left: 2px solid transparent;
}
.np-link:hover { color: var(--np-primary); }
.np-link.active {
  color: var(--np-accent);
  background: var(--np-accent-bg);
  border-left-color: var(--np-accent);
  font-weight: 500;
}

/* 网站管理：两列（分类 + 子项） */
.np-cms-aside { flex-direction: row; }

.np-cms-cats {
  width: 150px;
  flex: 0 0 150px;
  border-right: 1px solid var(--np-border-lighter);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* 分类列表本体（滚动区与「收起」按钮分开，按钮永远贴在底部） */
.np-cms-cats-scroll { flex: 1 1 auto; overflow-y: auto; padding-bottom: 8px; }

/* 收起 / 展开二级导航（把宽度让给右侧内容）—— 吸底，长侧栏里也随手点得到 */
.np-cms-fold {
  position: sticky;
  bottom: 0;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 8px 0 20px;
  font-size: 13px;
  color: var(--np-text-secondary);
  background: #fff;
  border-top: 1px solid var(--np-border-lighter);
  box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  user-select: none;
}
.np-cms-fold:hover { color: var(--np-accent); background: #f7f8fa; }
.np-cms-fold i { font-size: 13px; }

.np-cms-cat {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 20px;
  font-size: 14px;
  color: var(--np-text);
  cursor: pointer;
}
.np-cms-cat i { color: #a8abb2; font-size: 14px; width: 14px; }
.np-cms-cat:hover { background: #f7f8fa; }
.np-cms-cat.active { background: #dadde3; font-weight: 500; }

.np-cms-subs {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 24px;
  background: #fcfcfd;
}

.np-cms-sub {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  color: var(--np-text-regular);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.np-cms-sub:hover { color: var(--np-primary); }
.np-cms-sub.active { color: var(--np-accent); background: var(--np-accent-bg); font-weight: 500; }

.np-cms-sitebar {
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--np-border-lighter);
  font-size: 14px;
  font-weight: 700;
  color: var(--np-text-strong);
  flex: 0 0 auto;
}
.np-cms-sitebar .flag { font-size: 16px; margin-right: 6px; }
.np-cms-sitebar .bar-acts { display: flex; align-items: center; gap: 10px; }
.np-cms-sitebar .bar-acts i { color: #909399; cursor: pointer; font-size: 13px; }
.np-cms-sitebar .bar-acts i:hover { color: var(--np-accent); }

/* 页面可视化：整屏编辑器，侧栏只留分类栏（二级菜单整列收起，把宽度让给编辑窗口） */
.np-aside.np-cms-aside.solo { width: 118px; flex: 0 0 118px; }
.np-cms-aside.solo .np-cms-cats { width: 100%; flex: 1 1 auto; border-right: 0; }
.np-cms-aside.solo .np-cms-cat { height: 50px; gap: 8px; padding: 0 8px 0 12px; font-size: 13px; }
.np-aside.solo .np-cms-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 其余板块里「分组即功能」的单列（如数据分析的 5 项）：一列图标项，宽度放得下全名 */
.np-aside.np-cms-aside.solo1 { width: 196px; flex: 0 0 196px; }
.np-cms-aside.solo1 .np-cms-cats { width: 100%; flex: 1 1 auto; border-right: 0; }
.np-cms-aside.solo1 .np-cms-cat { height: 46px; }

/* 收起二级导航：整列收掉，侧栏只剩分类栏（宽 300/330 → 150），右侧内容区变宽 */
.np-aside.np-cms-aside.folded { width: 150px; flex: 0 0 150px; }
.np-cms-aside.folded .np-cms-subs { display: none; }
.np-cms-aside.folded .np-cms-cats { border-right: 0; }
/* 编辑页把内容区留白收紧，编辑窗口再宽一点 */
.np-content.ve-full { padding: 10px 12px 16px; }

/* ==========================  内容区  ========================== */
.np-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.np-crumb {
  height: 48px;
  flex: 0 0 48px;
  background: #fff;
  border-bottom: 1px solid var(--np-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 14px;
  color: var(--np-text-regular);
}
.np-crumb .path { display: flex; align-items: center; gap: 6px; }
.np-crumb .sep { color: var(--np-text-placeholder); }
.np-crumb .cur { color: var(--np-text-regular); }
.np-crumb .help { color: var(--np-text-secondary); cursor: pointer; font-size: 13px; }
.np-crumb .help:hover { color: var(--np-primary); }

.np-content {
  flex: 1 1 auto;
  padding: 16px 20px 40px;
  min-width: 0;
}

.np-panel {
  background: #fff;
  border-radius: var(--np-radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.np-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--np-text-strong);
  margin-bottom: 16px;
}
.np-panel-head::before {
  content: "";
  width: 3px; height: 15px;
  background: var(--np-accent);
  border-radius: 2px;
}
.np-panel-head .sub { font-weight: 400; font-size: 13px; color: var(--np-text-secondary); }

/* ==========================  按钮  ========================== */
.np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: var(--np-radius-sm);
  border: 1px solid var(--np-border);
  background: #fff;
  color: var(--np-text-regular);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s;
}
.np-btn:hover { color: var(--np-primary); border-color: #bcecea; background: #e8f9f8; }

.np-btn.primary {
  background: var(--np-primary);
  border-color: var(--np-primary);
  color: #fff;
}
.np-btn.primary:hover { background: #4ad0cc; border-color: #4ad0cc; color: #fff; }

.np-btn.text {
  border-color: transparent;
  background: transparent;
  color: var(--np-accent);
  padding: 0 6px;
  height: auto;
}
.np-btn.text:hover { color: #4ad0cc; background: transparent; }

.np-btn.sm { height: 28px; padding: 0 12px; font-size: 13px; }

/* ==========================  表单  ========================== */
.np-field { display: flex; align-items: flex-start; margin-bottom: 18px; }
.np-field > label {
  flex: 0 0 110px;
  text-align: right;
  padding-right: 12px;
  padding-top: 9px;
  font-size: 14px;
  color: var(--np-text-regular);
}
.np-field > label.req::before { content: "*"; color: var(--np-danger); margin-right: 3px; }
.np-field .ctl { flex: 1 1 auto; max-width: 620px; }
.np-field .hint { font-size: 12px; color: var(--np-text-secondary); margin-top: 4px; }

.np-input, .np-select, .np-textarea {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--np-text);
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: var(--np-radius-sm);
  outline: none;
}
.np-textarea { height: auto; min-height: 76px; padding: 8px 12px; resize: vertical; line-height: 1.6; }
.np-input:focus, .np-select:focus, .np-textarea:focus { border-color: var(--np-primary); }
.np-input::placeholder, .np-textarea::placeholder { color: var(--np-text-placeholder); }
.np-select { appearance: none; background-image: none; cursor: pointer; }

/* ==========================  表格  ========================== */
.np-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.np-toolbar .grow { flex: 1 1 auto; }

.np-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.np-table th {
  background: var(--np-body-bg);
  color: #666;
  font-weight: 600;
  text-align: left;
  height: 54px;
  padding: 0 12px;
  white-space: nowrap;
}
.np-table td {
  height: 53px;
  padding: 0 12px;
  color: var(--np-text-regular);
  border-bottom: 1px solid var(--np-border-lighter);
  vertical-align: middle;
}
.np-table tbody tr:hover { background: #f9fdfd; }
.np-table .thumb {
  width: 52px; height: 40px;
  border-radius: 3px;
  object-fit: cover;
  background: #f2f4f7;
  display: block;
}
.np-table .ops { display: flex; gap: 12px; white-space: nowrap; }
.np-table .empty { text-align: center; color: var(--np-text-secondary); padding: 48px 0; }

.np-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 3px;
  background: #f0f9eb;
  color: var(--np-success);
  border: 1px solid #e1f3d8;
}
.np-tag.gray { background: #f4f4f5; color: #909399; border-color: #e9e9eb; }
.np-tag.blue { background: #e8f9f8; color: var(--np-primary); border-color: #c6efee; }
.np-tag.orange { background: #fdf6ec; color: var(--np-warning); border-color: #faecd8; }

/* ==========================  分页  ========================== */
.np-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 16px;
  font-size: 13px;
  color: var(--np-text-regular);
}
.np-pager button {
  min-width: 30px; height: 30px;
  border: 1px solid var(--np-border);
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  color: var(--np-text-regular);
}
.np-pager button.on { background: var(--np-primary); border-color: var(--np-primary); color: #fff; }
.np-pager button:disabled { color: #c0c4cc; cursor: not-allowed; }
.np-pager .np-input.pgjump {
  width: 52px; height: 30px; text-align: center; padding: 0 4px;
}

/* ==========================  概览页  ========================== */
.np-hero {
  background: linear-gradient(180deg, #e7f8f7 0%, #f0fbfa 45%, #f8f8f8 100%);
  padding: 30px 0 26px;
  text-align: center;
}

.np-hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(90deg, #0da5ad 0%, #12bcbb 55%, #2ad9c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}

.np-hero-box {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #c6ecec;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(80, 140, 220, 0.1);
  padding: 16px 18px 12px;
  text-align: left;
}
.np-hero-box textarea {
  width: 100%;
  border: 0;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--np-text);
  min-height: 52px;
  background: transparent;
}
.np-hero-box textarea::placeholder { color: var(--np-text-placeholder); }
.np-hero-box .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.np-hero-box .foot .chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--np-text-regular);
  border: 1px solid var(--np-border-light);
  border-radius: 14px;
  padding: 4px 10px;
  cursor: pointer;
}
.np-hero-box .foot .chip:hover { color: var(--np-primary); border-color: #bcecea; }
.np-hero-box .send {
  width: 32px; height: 32px; border-radius: 50%;
  background: #dfe8f5; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.np-hero-box .send.on { background: var(--np-accent); }
.np-hero-box .send.on:hover { filter: brightness(1.06); }

.np-hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.np-hero-actions .chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--np-text-regular);
  background: #fff;
  border: 1px solid var(--np-border-light);
  border-radius: 15px;
  padding: 5px 14px;
  cursor: pointer;
}
.np-hero-actions .chip:hover { color: var(--np-primary); border-color: #bcecea; }

/* ---------- AI 驾驶舱：对话流 ---------- */
.np-hero-chat {
  max-width: 900px;
  margin: 0 auto 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 46vh;
  overflow-y: auto;
  text-align: left;
}
.np-hero-chat:empty { display: none; }
.np-chat-row { display: flex; gap: 10px; align-items: flex-start; }
.np-chat-row.me { flex-direction: row-reverse; }
.np-chat-avatar {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #12bcbb, #2ad9c8);
}
.np-chat-row.me .np-chat-avatar { background: #d3dbe6; color: #606266; }
.np-chat-bubble {
  max-width: 78%;
  background: #fff;
  border: 1px solid #e2f2f1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--np-text);
  box-shadow: 0 2px 8px rgba(80, 140, 220, 0.06);
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}
.np-chat-row.me .np-chat-bubble { background: #eefaf9; border-color: #cfeeed; }
.np-chat-bubble.err { background: #fff6f6; border-color: #f6d6d6; color: #c0392b; }
.np-chat-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.np-chat-links .go {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--np-primary);
  border: 1px solid #c6ecec; background: #fff;
  border-radius: 14px; padding: 4px 12px;
  cursor: pointer;
}
.np-chat-links .go:hover { background: var(--np-accent-bg); border-color: var(--np-accent); }
.np-chat-links .go.primary { background: var(--np-accent); border-color: var(--np-accent); color: #fff; }
.np-chat-links .go.primary:hover { filter: brightness(1.06); }
.np-chat-note { margin-top: 7px; font-size: 12px; color: var(--np-text-secondary); }
.np-chat-typing i { animation: np-blink 1s infinite; }
.np-chat-typing i:nth-child(2) { animation-delay: 0.18s; }
.np-chat-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes np-blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.np-hero-box.busy .send { opacity: 0.55; pointer-events: none; }
.np-hero-box .foot .chip.on { color: var(--np-accent); border-color: var(--np-accent); background: var(--np-accent-bg); }

.np-console-head { padding: 22px 24px 6px; }
.np-console-head h2 { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--np-text-strong); }
.np-console-head p { margin: 0; font-size: 13px; color: var(--np-text-secondary); }

.np-meta-card {
  background: #fff;
  border-radius: var(--np-radius);
  margin: 14px 24px 0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.np-meta-card .ver { font-size: 15px; color: var(--np-text); font-weight: 500; }
.np-meta-card .kv { font-size: 13px; color: var(--np-text-secondary); }
.np-meta-card .kv b { color: var(--np-text); font-weight: 500; margin-left: 6px; }

.np-panel.loose { margin: 16px 24px 0; }

.np-lang-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.np-lang-tab {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--np-border-light);
  border-radius: 6px;
  padding: 10px 14px;
  min-width: 210px;
  cursor: pointer;
  background: #fff;
}
.np-lang-tab:hover { border-color: #bcecea; }
.np-lang-tab.on { border-color: var(--np-accent); box-shadow: 0 0 0 1px var(--np-accent) inset; }
.np-lang-tab .flag { font-size: 22px; }
.np-lang-tab .nm { font-size: 13px; color: var(--np-text); font-weight: 500;
  max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-lang-tab .lg { font-size: 11px; color: #fff; background: #c8c9cc; border-radius: 2px; padding: 1px 5px; }
.np-lang-tab .dm { font-size: 12px; color: var(--np-text-secondary); }

.np-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 10px; }
.np-stat {
  border-radius: 6px;
  color: #fff;
  padding: 18px 18px 0;
  min-height: 116px;
  display: flex;
  flex-direction: column;
}
.np-stat .row { display: flex; justify-content: space-between; align-items: flex-start; }
.np-stat .num { font-size: 34px; font-weight: 700; line-height: 1.15; display: block; }
.np-stat .num.sm { font-size: 30px; }
.np-stat .lbl { font-size: 13px; opacity: 0.92; display: block; margin-top: 2px; }
.np-stat .act {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.08);
  margin-left: -18px; margin-right: -18px;
  padding: 9px 18px;
  font-size: 13px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.np-stat.b1 { background: linear-gradient(135deg, #12a9ad, #3ec3c0); }
.np-stat.b2 { background: linear-gradient(135deg, #2fc9c0, #47d6cd); }
.np-stat.b3 { background: linear-gradient(135deg, #f5a623, #ffbe4d); }
.np-stat.b4 { background: linear-gradient(135deg, #2bc9c6, #5adbd6); }

.np-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 6px;
}
.np-grid .cell {
  border: 1px solid var(--np-border-lighter);
  border-radius: 6px;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  background: #fff;
}
.np-grid .cell:hover { border-color: #bcecea; box-shadow: 0 2px 10px rgba(18, 188, 187, 0.14); }
.np-grid .cell .ic {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; flex: 0 0 32px;
}
.np-grid .cell .t { font-size: 13px; color: var(--np-text); }

/* ==========================  右侧浮动栏  ========================== */
.np-rail {
  position: fixed;
  right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.np-rail .item {
  width: 50px;
  background: #fff;
  border: 1px solid var(--np-border-light);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 9px 0;
  text-align: center;
  font-size: 12px;
  color: var(--np-text-regular);
  cursor: pointer;
}
.np-rail .item:hover { color: var(--np-primary); }
.np-rail .item .ic { font-size: 17px; display: block; margin-bottom: 3px; }
.np-rail .badge {
  position: relative;
}
.np-rail .badge::after {
  content: "99+";
  position: absolute; top: -6px; right: 4px;
  background: #f56c6c; color: #fff;
  font-size: 9px; line-height: 1;
  padding: 2px 4px; border-radius: 7px;
}
.np-rail .helper {
  width: 62px;
  border-radius: 6px 0 0 6px;
  overflow: hidden;
  background: #eef5ff;
  text-align: center;
  font-size: 12px;
  color: #0da5ad;
  padding-bottom: 6px;
}
.np-rail .helper .hd { height: 52px; background: linear-gradient(160deg, #b8efed, #8fdcd8); }
.np-rail .helper .tag { background: #0da5ad; color: #fff; font-size: 11px; padding: 2px 0; }

/* ==========================  提示条 / 空态  ========================== */
.np-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdf6ec;
  border: 1px solid #faecd8;
  color: #b88230;
  border-radius: var(--np-radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.np-empty { text-align: center; color: var(--np-text-secondary); padding: 60px 0; font-size: 14px; }

/* 登录页 */
.np-login-wrap {
  min-height: 100vh;
  background: linear-gradient(150deg, #e6f8f7 0%, #f3fcfc 40%, #edf8f9 100%);
  display: flex; align-items: center; justify-content: center;
}
.np-login {
  width: 380px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(13, 165, 173, 0.16);
  padding: 34px 34px 28px;
}
.np-login-logo { display: block; width: 190px; margin: 4px auto 18px; }
.np-login .sub { margin: 0 0 24px; font-size: 13px; color: var(--np-text-secondary); text-align: center; }
.np-login .np-input { margin-bottom: 14px; height: 40px; }
.np-login .np-btn { width: 100%; height: 40px; }
.np-login .err { color: var(--np-danger); font-size: 13px; line-height: 1.7; min-height: 18px; margin: 10px 0 0; }
.np-login .err a { color: var(--np-primary); font-weight: 500; }
.np-login .hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--np-text-secondary);
  text-align: center;
  border-top: 1px solid var(--np-border-lighter);
  padding-top: 14px;
}
.np-login .hint a { color: var(--np-primary); }

/* ==========================================================================
   深度功能页组件（覆盖网站管理 21 分类 / 营销管理 / 客户管理 / 安全中心 /
   数据分析 / 管理设置 的每一个功能页所需控件）
   ========================================================================== */

/* ----- 页签 ----- */
.np-tabs { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--np-border-light); padding: 0 4px; margin-bottom: 16px; }
.np-tab { position: relative; padding: 0 0 11px; font-size: 14px; color: var(--np-text-regular); cursor: pointer; white-space: nowrap; }
.np-tab:hover { color: var(--np-primary); }
.np-tab.on { color: var(--np-primary); font-weight: 600; }
.np-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--np-primary); border-radius: 2px; }
.np-tabs.card { border-bottom: none; background: #fff; border-radius: var(--np-radius); padding: 0 18px; margin-bottom: 14px; box-shadow: var(--np-shadow); }
.np-tabs.card .np-tab { padding: 14px 0; }

/* ----- 筛选行 ----- */
.np-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.np-filters .np-input, .np-filters .np-select { height: 32px; }
.np-filters .lbl { font-size: 13px; color: var(--np-text-regular); }
.np-filters .grow { flex: 1 1 auto; }

/* ----- 开关 ----- */
.np-switch { display: inline-flex; align-items: center; width: 40px; height: 20px; border-radius: 10px; background: #dcdfe6; cursor: pointer; position: relative; transition: background .2s; flex: 0 0 auto; }
.np-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.np-switch.on { background: var(--np-primary); }
.np-switch.on::after { left: 22px; }
.np-switch-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--np-border-lighter); }
.np-switch-row:last-child { border-bottom: none; }
.np-switch-row .nm { min-width: 190px; font-size: 14px; color: var(--np-text); }
.np-switch-row .hint { font-size: 12px; color: var(--np-text-secondary); margin-left: auto; margin-right: 12px; }

/* ----- 单选 / 复选 ----- */
.np-radios, .np-checks { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.np-radio, .np-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--np-text-regular); cursor: pointer; }
.np-radio .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #dcdfe6; position: relative; flex: 0 0 auto; }
.np-radio.on .dot { border-color: var(--np-primary); }
.np-radio.on .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--np-primary); }
.np-check .box { width: 14px; height: 14px; border-radius: 2px; border: 1px solid #dcdfe6; flex: 0 0 auto; }
.np-check.on .box { background: var(--np-primary); border-color: var(--np-primary); }

/* ----- 描述列表 / 键值对 ----- */
.np-desc { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--np-border-light); border: 1px solid var(--np-border-light); border-radius: var(--np-radius); overflow: hidden; }
.np-desc .it { background: #fff; padding: 13px 16px; display: flex; gap: 10px; font-size: 14px; }
.np-desc .it .k { color: var(--np-text-secondary); min-width: 92px; flex: 0 0 auto; }
.np-desc .it .v { color: var(--np-text); word-break: break-all; }
.np-desc .it .v.link { color: var(--np-primary); cursor: pointer; }
.np-desc.full .it { grid-column: 1 / -1; }

/* ----- 卡片网格 ----- */
.np-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.np-card { background: #fff; border: 1px solid var(--np-border-light); border-radius: var(--np-radius); padding: 16px 18px; transition: all .18s; }
.np-card:hover { border-color: #bcecea; box-shadow: 0 2px 12px rgba(18, 188, 187, .14); }
.np-card .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.np-card .hd .ic { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex: 0 0 auto; }
.np-card .hd .nm { font-size: 15px; font-weight: 600; color: var(--np-text); }
.np-card .hd .tag { margin-left: auto; }
.np-card .ds { font-size: 13px; color: var(--np-text-secondary); line-height: 1.7; min-height: 42px; }
.np-card .ft { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--np-border-lighter); font-size: 13px; }

/* ----- 上传框 ----- */
.np-upload { display: flex; flex-wrap: wrap; gap: 12px; }
.np-upload .sq { width: 104px; height: 104px; border: 1px dashed #dcdfe6; border-radius: var(--np-radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--np-text-secondary); font-size: 12px; background: #fafafa; cursor: pointer; }
.np-upload .sq i { font-size: 22px; }
.np-upload .sq:hover { border-color: var(--np-primary); color: var(--np-primary); }
.np-upload .wide { width: 100%; max-width: 520px; height: 150px; }
.np-upload .wide i { font-size: 26px; }

/* ----- 富文本编辑器外壳 ----- */
.np-editor { border: 1px solid var(--np-border); border-radius: var(--np-radius); overflow: hidden; }
.np-editor .bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px; background: #fafafa; border-bottom: 1px solid var(--np-border-light); }
.np-editor .bar span { min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; font-size: 13px; color: var(--np-text-regular); cursor: pointer; padding: 0 5px; }
.np-editor .bar span:hover { background: #e8f9f8; color: var(--np-primary); }
.np-editor .area { min-height: 210px; padding: 14px 16px; font-size: 14px; line-height: 1.9; color: var(--np-text); outline: none; }
.np-editor .area:empty::before { content: attr(data-ph); color: var(--np-text-placeholder); }
.np-editor .status { display: flex; gap: 16px; padding: 6px 12px; border-top: 1px solid var(--np-border-light); background: #fafafa; font-size: 12px; color: var(--np-text-secondary); }

/* ----- 代码块 ----- */
.np-code { background: #2d2d2d; color: #d4d4d4; border-radius: var(--np-radius); padding: 14px 16px; font-family: Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto; }

/* ----- 提示条 ----- */
.np-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--np-radius); font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.np-alert.info { background: #f0fafb; border: 1px solid #c6efee; color: #3d7a7c; }
.np-alert.ok { background: #f0f9eb; border: 1px solid #e1f3d8; color: #5e8a3f; }
.np-alert.warn { background: #fdf6ec; border: 1px solid #faecd8; color: #a17434; }
.np-alert.danger { background: #fef0f0; border: 1px solid #fde2e2; color: #b3554f; }
.np-alert i { margin-top: 2px; }

/* ----- 树 ----- */
.np-tree { font-size: 14px; }
.np-tree .node { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 3px; cursor: pointer; }
.np-tree .node:hover { background: #f7f8fa; }
.np-tree .node.on { background: var(--np-accent-bg); color: var(--np-primary); }
.np-tree .node .caret { color: var(--np-text-placeholder); width: 12px; }
.np-tree .node .ops { margin-left: auto; display: flex; gap: 12px; opacity: 0; }
.np-tree .node:hover .ops { opacity: 1; }
.np-tree .lv2 { padding-left: 30px; }
.np-tree .lv3 { padding-left: 52px; }

/* ----- 步骤条 ----- */
.np-steps { display: flex; align-items: center; gap: 0; margin-bottom: 22px; }
.np-steps .st { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--np-text-secondary); }
.np-steps .st .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #c0c4cc; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.np-steps .st.on { color: var(--np-primary); font-weight: 600; }
.np-steps .st.on .n { border-color: var(--np-primary); background: var(--np-primary); color: #fff; }
.np-steps .line { flex: 1 1 auto; height: 1px; background: var(--np-border); margin: 0 14px; min-width: 24px; }

/* ----- 进度 ----- */
.np-progress { height: 8px; border-radius: 4px; background: #ebeef5; overflow: hidden; }
.np-progress > i { display: block; height: 100%; background: var(--np-primary); border-radius: 4px; }

/* ----- 两栏 / 三栏 ----- */
.np-cols { display: grid; gap: 16px; }
.np-cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.np-cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.np-cols.c2-1 { grid-template-columns: 320px minmax(0, 1fr); }
.np-cols.c1-2 { grid-template-columns: minmax(0, 1fr) 340px; }

/* ----- KPI 小卡 ----- */
.np-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.np-kpi { background: #fff; border: 1px solid var(--np-border-light); border-radius: var(--np-radius); padding: 16px 18px; }
.np-kpi .lbl { font-size: 13px; color: var(--np-text-secondary); }
.np-kpi .num { font-size: 26px; font-weight: 700; color: var(--np-text-strong); margin-top: 6px; line-height: 1.2; }
.np-kpi .num small { font-size: 13px; font-weight: 400; color: var(--np-text-secondary); margin-left: 4px; }
.np-kpi .dt { font-size: 12px; margin-top: 6px; }
.np-kpi .dt.up { color: #f56c6c; }
.np-kpi .dt.down { color: #67c23a; }

/* ----- 小标签 / 圆点 ----- */
.np-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; background: #f4f4f5; color: var(--np-text-regular); font-size: 12px; }
.np-chip.blue { background: #e8f9f8; color: var(--np-primary); }
.np-chip.green { background: #f0f9eb; color: #529b2e; }
.np-chip.orange { background: #fdf6ec; color: #b88230; }
.np-chip.red { background: #fef0f0; color: #c45656; }
.np-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--np-text-placeholder); }
.np-dot.ok { background: var(--np-success); }
.np-dot.off { background: var(--np-text-placeholder); }
.np-dot.warn { background: var(--np-warning); }
.np-mono { font-family: Menlo, Consolas, monospace; font-size: 12.5px; color: var(--np-text-regular); }
.np-link-a { color: var(--np-primary); cursor: pointer; }
.np-link-a:hover { text-decoration: underline; }
.np-muted { color: var(--np-text-secondary); font-size: 13px; }

/* ----- 表单双列 ----- */
.np-formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
.np-formgrid .np-field.wide { grid-column: 1 / -1; }
.np-field .ctl .row { display: flex; gap: 10px; align-items: center; }
.np-field .ctl .row .grow { flex: 1 1 auto; }
.np-field .ctl .after { font-size: 12px; color: var(--np-text-secondary); margin-top: 4px; }

/* ----- 面板内分区标题 ----- */
.np-sub-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--np-text); padding: 16px 0 10px; border-bottom: 1px solid var(--np-border-lighter); margin-bottom: 16px; }
.np-sub-head .sub { font-weight: 400; font-size: 12.5px; color: var(--np-text-secondary); }
.np-sub-head .grow { flex: 1 1 auto; }

/* ----- 表格补充 ----- */
.np-table td.wrap { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-table .sw { display: inline-flex; align-items: center; }
.np-table thead th.sel, .np-table tbody td.sel { width: 44px; text-align: center; }
.np-table.card { background: #fff; }

/* ----- 帮助抽屉 ----- */
.np-drawer-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 60; }
.np-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; background: #fff; z-index: 61; box-shadow: -4px 0 20px rgba(0, 0, 0, .12); display: flex; flex-direction: column; }
.np-drawer .hd { height: 52px; display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--np-border-light); font-size: 15px; font-weight: 600; }
.np-drawer .hd .x { margin-left: auto; cursor: pointer; color: var(--np-text-secondary); }
.np-drawer .bd { flex: 1 1 auto; overflow: auto; padding: 18px; font-size: 13.5px; line-height: 1.9; color: var(--np-text-regular); }

@media (max-width: 1280px) {
  .np-grid { grid-template-columns: repeat(4, 1fr); }
  .np-stat-row { grid-template-columns: repeat(2, 1fr); }
  .np-formgrid { grid-template-columns: minmax(0, 1fr); }
  .np-cols.c2, .np-cols.c3, .np-cols.c2-1, .np-cols.c1-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   概况页 · 仪表盘板块（网站管理 / 营销管理 / 客户管理 / 安全中心 / IDC资源 / 个性化业务）
   1:1 复刻 300.cn 数字门户「概况」页，规格见 home-spec.js，图标见 assets/home/
   ========================================================================== */

/* ---------- 板块 / 分组标题 ---------- */
.np-hblk { padding: 20px 24px 22px; }
.np-blk-head {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 15px; font-weight: 700; color: var(--np-text-strong);
  margin-bottom: 18px;
}
.np-blk-head > span { position: relative; padding-left: 11px; }
.np-blk-head > span::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 2px; background: var(--np-accent);
}
.np-blk-head i { font-style: normal; font-size: 13px; font-weight: 400; color: var(--np-text-secondary); }

.np-ghead {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600; color: #3c3c3c;
  margin: 22px 0 14px; position: relative; padding-left: 11px;
}
.np-ghead:first-child { margin-top: 0; }
.np-ghead::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 14px; border-radius: 2px; background: var(--np-accent);
}
.np-ghead .tip { width: 16px; height: 16px; }
.np-ghead .desc { font-size: 12.5px; font-weight: 400; color: var(--np-text-secondary); }

/* ---------- 语言站点卡 ---------- */
.np-hblk .np-lang-tabs { gap: 12px; }
.np-hblk .np-lang-tab {
  min-width: 0; flex: 1 1 0; padding: 9px 12px; border-radius: 4px;
  background: #eff4f9; border-color: transparent; gap: 9px;
}
.np-hblk .np-lang-tab.on { background: #fff; border-color: var(--np-accent); box-shadow: 0 2px 8px rgba(18,188,187,.16); }
.np-hblk .np-lang-tab .flag { width: 30px; height: 22px; line-height: 22px; text-align: center; font-size: 20px; flex: 0 0 30px; }
.np-hblk .np-lang-tab .meta { min-width: 0; }
.np-hblk .np-lang-tab .nm { font-size: 12.5px; max-width: 120px; }
.np-hblk .np-lang-tab .lg { font-size: 11px; background: #d3dbe6; color: #606266; }
.np-hblk .np-lang-tab.on .lg { background: #c4efee; color: #0da5ad; }
.np-hblk .np-lang-tab .dm { font-size: 11.5px; margin-top: 1px; }
.np-hblk .np-lang-tab .prev { margin-left: auto; color: #c0c4cc; font-size: 13px; }

/* ---------- 渐变统计卡 ---------- */
.np-hstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.np-hstat {
  border-radius: 4px; color: #fff; overflow: hidden;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; min-height: 104px;
}
.np-hstat.b1 { background-image: url("assets/home/统计卡水印1.png"); }
.np-hstat.b2 { background-image: url("assets/home/统计卡水印2.png"); }
.np-hstat.b3 { background-image: url("assets/home/统计卡水印3.png"); }
.np-hstat.b4 { background-image: url("assets/home/统计卡水印4.png"); }
.np-hstat .top { display: flex; justify-content: space-between; padding: 16px 18px 12px; flex: 1 1 auto; }
.np-hstat .cell.r { text-align: right; }
.np-hstat .num { font-size: 34px; font-weight: 700; line-height: 1.1; display: block; }
.np-hstat .lbl { font-size: 12.5px; opacity: .95; display: block; margin-top: 2px; }
.np-hstat .act {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px; font-size: 12.5px;
  background: rgba(0, 0, 0, .07); cursor: pointer;
}
.np-hstat .act:hover { background: rgba(0, 0, 0, .13); }
.np-hstat .act .arw { width: 15px; height: 15px; }

/* ---------- 图标格子 ---------- */
.np-hicons { display: grid; gap: 12px; }
.np-hicons.cols-5 { grid-template-columns: repeat(5, 1fr); }
.np-hicons.cols-6 { grid-template-columns: repeat(6, 1fr); }
.np-hicons .cell {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 4px; background: #f4fbfb; border: 1px solid transparent;
  min-height: 60px; transition: all .16s;
}
.np-hicons .cell:nth-child(5n+1) { background: #f4fbfb; }
.np-hicons .cell:hover { border-color: #c4efee; background: #fff; box-shadow: 0 2px 10px rgba(18, 188, 187, .14); }
.np-hicons .cell .txt { min-width: 0; }
.np-hicons .cell .t { font-size: 13px; color: var(--np-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-hicons .cell .d { font-size: 12px; color: var(--np-text-secondary); margin-top: 3px; line-height: 1.35; }

/* 网站基础设置：无底卡，图标居中在文字上方 */
.np-hicons.cols-6 .cell {
  flex-direction: column; gap: 8px; text-align: center;
  background: transparent; border-color: transparent; padding: 8px 4px;
}
.np-hicons.cols-6 .cell:hover { background: #f4fbfb; border-color: transparent; box-shadow: none; }
.np-hicons.cols-6 .cell .t { font-size: 12.5px; }

.np-hicon { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.np-hicon.sm { width: 22px; height: 22px; flex: 0 0 22px; }
.np-hicon.lg { width: 38px; height: 38px; flex: 0 0 38px; }
/* 符号型图标：内联 <svg><use>，颜色走 currentColor（符号内自带 fill 的按原色保留） */
svg.np-hicon {
  display: block;
  color: var(--np-accent, #0da5ad);
  fill: currentColor;
  overflow: visible;
}
.np-hqr { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 第三方绑定卡 ---------- */
.np-hbind { display: grid; gap: 14px; }
.np-hbind.cols-6 { grid-template-columns: repeat(6, 1fr); }
.np-hbind.cols-8 { grid-template-columns: repeat(8, 1fr); }
.np-hbind .cell {
  border: 1px solid var(--np-border-light); border-radius: 4px;
  padding: 16px 8px 12px; text-align: center; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.np-hbind .cell:hover { border-color: #c4efee; }
.np-hbind .cell .t { font-size: 12.5px; color: var(--np-text); }
.np-hbind .state {
  font-size: 12px; padding: 2px 10px; border-radius: 3px;
  border: 1px solid var(--np-accent); color: var(--np-accent); background: #fff; cursor: pointer;
}
.np-hbind .state.on { border-color: #e9e9e9; color: #999; background: #f5f5f5; cursor: default; }

/* ---------- 客户管理 KPI ---------- */
.np-hkpi {
  display: grid; grid-template-columns: 1fr 400px; gap: 24px;
  padding-bottom: 22px; border-bottom: 1px solid var(--np-border-light);
}
.np-hkpi .left { position: relative; background: linear-gradient(120deg, #ecf8f7 0%, #f5fcfc 60%, #eef7f6 100%); border-radius: 4px; padding: 26px 24px; }
.np-hkpi .nums { display: flex; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.np-hkpi .cell { text-align: center; }
.np-hkpi .num { font-size: 34px; font-weight: 700; color: var(--np-accent); display: block; line-height: 1.1; }
.np-hkpi .lbl { font-size: 12.5px; color: var(--np-text-secondary); margin-top: 6px; display: block; }
.np-hkpi .right { padding: 4px 0 0 4px; }
.np-hkpi .right .hd { font-size: 14px; font-weight: 600; color: var(--np-text); margin-bottom: 6px; }
.np-hkpi .right .dsc { font-size: 12px; color: var(--np-text-secondary); display: flex; align-items: center; gap: 5px; margin-bottom: 14px; }
.np-hkpi .right .dsc .tip { width: 14px; height: 14px; }
.np-hkpi .qr { display: flex; gap: 28px; }
.np-hkpi .qr .item { text-align: center; }
.np-hkpi .qr .box { width: 84px; height: 84px; padding: 4px; border: 1px solid var(--np-border-light); border-radius: 4px; }
.np-hkpi .qr .cap { font-size: 12.5px; color: var(--np-text); margin-top: 8px; }
.np-hkpi .qr .sub { font-size: 11.5px; color: var(--np-text-secondary); }

/* ---------- 计数格 ---------- */
.np-hcounts { display: grid; gap: 12px; margin-top: 20px; }
.np-hcounts.cols-4 { grid-template-columns: repeat(4, 1fr); }
.np-hcounts .cell {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 4px; background: #f7f9fb; min-height: 60px;
}
.np-hcounts .cell:hover { background: #f1f6ff; }
.np-hcounts .n { font-size: 18px; font-weight: 600; color: var(--np-text); line-height: 1.2; }
.np-hcounts .t { font-size: 12.5px; color: var(--np-text-secondary); }

/* ---------- 安全中心 ---------- */
.np-hsec { display: grid; gap: 14px; margin-bottom: 14px; }
.np-hsec.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.np-hsec .card { border: 1px solid var(--np-border-light); border-radius: 4px; overflow: hidden; background: #fff; }
.np-hsec .hd {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  font-size: 14px; font-weight: 600; color: var(--np-text); background: #f8fafc;
}
.np-hsec .bd { padding: 8px 18px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.np-hsec .bd.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 132px; color: var(--np-text-secondary); font-size: 13px; }
.np-hsec .row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; }
.np-hsec .row .lb { font-size: 13px; color: var(--np-text-regular); display: flex; align-items: center; gap: 6px; }
.np-hsec .row .lb .tag,
.np-mini-tag {
  font-style: normal; font-size: 11px; color: #999; background: #e9e9e9;
  border-radius: 3px; padding: 1px 6px;
}
.np-hsec .row .ok { color: #67c23a; font-size: 15px; }

.np-hcerts { display: flex; gap: 14px; flex-wrap: wrap; }
.np-hcerts .cell {
  flex: 1 1 0; min-width: 260px;
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  border: 1px solid var(--np-border-light); border-radius: 4px; background: #fff;
}
.np-hcerts .t { font-size: 13.5px; color: var(--np-text); font-weight: 500; }
.np-hcerts .tag {
  font-size: 11.5px; color: #909399; background: #eaeaea;
  border-radius: 3px; padding: 2px 7px; margin-left: 6px;
}

/* ---------- IDC 资源 ---------- */
.np-hres { display: grid; gap: 14px; }
.np-hres.cols-5 { grid-template-columns: repeat(5, 1fr); }
.np-hres .cell {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border: 1px solid var(--np-border-light); border-radius: 4px; background: #fff;
}
.np-hres .cell .t { font-size: 13px; color: var(--np-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-hres .cell .v { font-size: 12px; color: var(--np-text-secondary); margin-top: 3px; }
.np-hres .cell .v b { color: var(--np-text); font-weight: 600; }
.np-mini {
  margin-left: auto; font-size: 12px; color: var(--np-accent); background: #e2f7f6;
  border: 0; border-radius: 3px; padding: 3px 10px; cursor: pointer; white-space: nowrap;
}
.np-mini:hover { background: #c9efee; }

/* ---------- 个性化业务 ---------- */
.np-hpanel { display: grid; gap: 14px; }
.np-hpanel.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.np-hpanel .card { border: 1px solid var(--np-border-light); border-radius: 4px; background: #fff; min-height: 180px; display: flex; flex-direction: column; }
.np-hpanel .hd {
  font-size: 13.5px; font-weight: 600; color: #3c3c3c;
  padding: 14px 16px 10px; position: relative;
}
.np-hpanel .hd::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 3px; height: 14px; border-radius: 2px; background: var(--np-accent);
}
.np-hpanel .bd { padding: 6px 16px 16px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
.np-hpanel .bd p { margin: 0; font-size: 12.5px; color: var(--np-text-secondary); line-height: 1.8; }
.np-hpanel .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.np-hpanel .chip {
  flex: 1 1 42%; text-align: center; font-size: 12.5px; color: var(--np-text);
  background: #f7f9fa; border-radius: 3px; padding: 9px 6px;
}
.np-hpanel .chip.btn { flex: 1 1 42%; background: #fff; border: 1px solid var(--np-border); cursor: pointer; }
.np-hpanel .chip.btn:hover { color: var(--np-accent); border-color: #bcecea; }
.np-hpanel .chip.plus { flex: 0 0 100%; color: #c0c4cc; font-size: 18px; background: #fff; border: 1px solid var(--np-border-light); cursor: pointer; }
.np-hpanel .chip.plus:hover { color: var(--np-accent); border-color: #bcecea; }
.np-hpanel .np-btn.block { width: 100%; margin-top: auto; }

/* ---------- 通用 ---------- */
.np-hblk [data-go].clickable,
.np-hblk [data-app] { cursor: pointer; }
.np-link { color: var(--np-accent); font-size: 12.5px; cursor: pointer; }
.np-link:hover { color: #4ad0cc; }

@media (max-width: 1400px) {
  .np-hicons.cols-5 { grid-template-columns: repeat(4, 1fr); }
  .np-hicons.cols-6 { grid-template-columns: repeat(4, 1fr); }
  .np-hbind.cols-6 { grid-template-columns: repeat(4, 1fr); }
  .np-hkpi { grid-template-columns: 1fr 320px; }
  .np-hres.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .np-hsec.cols-3 { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   CRUD 交互层（portal/api.js + portal/crud.js）
   弹窗 / 提示 / 表单 / 图片选择 / 素材网格 / 流量条
   ========================================================================== */

/* ---------------- 通用小件 ---------------- */
.np-muted { color: var(--np-text-secondary); font-size: 13px; }
.np-cell-wrap { max-width: 320px; word-break: break-all; color: var(--np-text-regular); }
.np-btn.danger { color: var(--np-danger); border-color: #fbc4c4; }
.np-btn.danger:hover { background: #fef0f0; border-color: #fbc4c4; color: var(--np-danger); }
.np-hint-bar { margin-top: 6px; padding: 10px 14px; background: #f0fbfb; border: 1px solid #c6efee; border-radius: var(--np-radius); font-size: 13px; color: #3d7a7c; display: flex; gap: 8px; align-items: flex-start; }
.np-title-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.np-title-cell .tt { font-weight: 500; color: var(--np-text); }
.np-title-cell .sl { color: var(--np-text-placeholder); font-size: 12px; }

/* ---------------- Toast ---------------- */
.np-toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.np-toast { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--np-border-light); box-shadow: 0 6px 24px rgba(0, 0, 0, .12); border-radius: 6px; padding: 10px 18px; font-size: 14px; color: var(--np-text); opacity: 0; transform: translateY(-10px); transition: all .22s; max-width: 620px; }
.np-toast.on { opacity: 1; transform: translateY(0); }
.np-toast i { color: #52c41a; font-size: 16px; }
.np-toast.err i { color: var(--np-danger); }
.np-toast.warn i { color: var(--np-warning); }

/* ---------------- 弹窗 ---------------- */
.np-modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 2500; display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px 40px; overflow-y: auto; animation: npFade .16s ease; }
@keyframes npFade { from { opacity: 0; } to { opacity: 1; } }
.np-modal { background: #fff; border-radius: 8px; width: 640px; max-width: 100%; box-shadow: 0 12px 48px rgba(0, 0, 0, .2); display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.np-modal.sm { width: 420px; }
.np-modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--np-border-lighter); font-size: 16px; font-weight: 600; color: var(--np-text-strong); flex: 0 0 auto; }
.np-modal-hd .x { cursor: pointer; color: var(--np-text-secondary); font-size: 15px; }
.np-modal-hd .x:hover { color: var(--np-primary); }
.np-modal-bd { padding: 20px; overflow-y: auto; flex: 1 1 auto; }
.np-modal-bd::-webkit-scrollbar { width: 8px; }
.np-modal-bd::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 4px; }
.np-modal-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--np-border-lighter); flex: 0 0 auto; }
.np-confirm-text { margin: 0; font-size: 14px; line-height: 1.8; color: var(--np-text-regular); }

/* ---------------- 表单 ---------------- */
.np-form { display: block; }
.np-field > label { flex: 0 0 118px; text-align: right; padding-right: 14px; padding-top: 8px; font-size: 14px; color: var(--np-text-regular); line-height: 1.5; }
.np-form .np-field .ctl { max-width: none; }
.np-image-field { display: flex; gap: 14px; align-items: flex-start; }
.np-image-field .pic { width: 150px; height: 100px; border: 1px dashed #dcdfe6; border-radius: 4px; background: #fafafa; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--np-text-secondary); font-size: 12px; cursor: pointer; overflow: hidden; flex: 0 0 auto; }
.np-image-field .pic:hover { border-color: var(--np-primary); color: var(--np-primary); }
.np-image-field .pic img { width: 100%; height: 100%; object-fit: contain; }
.np-image-field .pic.empty i { font-size: 20px; }
.np-image-field .acts { display: flex; flex-direction: column; gap: 8px; }
.np-images-field .list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.np-images-field .it { position: relative; width: 100px; height: 100px; border: 1px solid var(--np-border-light); border-radius: 4px; overflow: hidden; }
.np-images-field .it img { width: 100%; height: 100%; object-fit: cover; }
.np-images-field .it .del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 18px; text-align: center; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 3px; font-size: 11px; cursor: pointer; }

/* ---------------- 图片选择器 ---------------- */
.np-picker-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.np-picker-grid, .np-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.np-picker-grid .cell, .np-media-grid .cell { position: relative; border: 1px solid var(--np-border-light); border-radius: 6px; overflow: hidden; cursor: pointer; background: #fff; transition: all .16s; }
.np-picker-grid .cell:hover, .np-media-grid .cell:hover { border-color: var(--np-primary); box-shadow: 0 2px 12px rgba(64, 158, 255, .18); }
.np-picker-grid .cell.on { border-color: var(--np-primary); box-shadow: 0 0 0 2px rgba(64, 158, 255, .25); }
.np-picker-grid .cell img, .np-media-grid .cell img { width: 100%; height: 100px; object-fit: cover; display: block; background: #f7f8fa; }
.np-media-grid .cell .file { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #c0c4cc; background: #f7f8fa; }
.np-picker-grid .cell .nm, .np-media-grid .cell .nm { font-size: 12px; color: var(--np-text-secondary); padding: 5px 8px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-media-grid .cell .sz { font-size: 11px; color: var(--np-text-placeholder); padding: 0 8px 6px; }
.np-picker-grid .cell .del, .np-media-grid .cell .del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; line-height: 22px; text-align: center; background: rgba(0, 0, 0, .5); color: #fff; border-radius: 4px; font-size: 12px; opacity: 0; transition: opacity .16s; }
.np-picker-grid .cell:hover .del, .np-media-grid .cell:hover .del { opacity: 1; }
.np-media-grid .cell .del:hover { background: var(--np-danger); }
.np-media-grid { margin-top: 4px; }

/* ---------------- 列表辅助 ---------------- */
.np-bulkbar { display: flex; align-items: center; gap: 10px; background: #f0fbfb; border: 1px solid #c6efee; border-radius: var(--np-radius); padding: 8px 14px; margin-bottom: 12px; font-size: 13px; color: #3d7a7c; }
.np-bulkbar b { color: var(--np-primary); }

/* ---------------- 流量条 ---------------- */
.np-bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding: 12px 2px 0; }
.np-bars .b { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 8px; }
.np-bars .b span { width: 100%; background: linear-gradient(180deg, #3ec3c0, #12a9ad); border-radius: 3px 3px 0 0; transition: opacity .16s; }
.np-bars .b:hover span { opacity: .8; }
.np-bars .b i { font-style: normal; font-size: 10px; color: var(--np-text-placeholder); margin-top: 5px; transform: scale(.92); white-space: nowrap; }

/* ==========================================================================
   可视化管理 · 所见即所得编辑器（门户内的工具条 + iframe 舞台）
   ========================================================================== */
.ve { display: flex; flex-direction: column; gap: 10px; }
.ve-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--np-border-light); border-radius: var(--np-radius);
  padding: 8px 12px;
}
.ve-brand { font-weight: 700; color: var(--np-primary); font-size: 14px; white-space: nowrap; }
.ve-pages, .ve-dev { display: flex; gap: 4px; }
.ve-page, .ve-devbtn {
  border: 1px solid var(--np-border); background: #fff; color: var(--np-text-regular);
  border-radius: var(--np-radius-sm); padding: 4px 12px; font-size: 13px; cursor: pointer;
}
.ve-page:hover, .ve-devbtn:hover { border-color: var(--np-primary); color: var(--np-primary); }
.ve-page.on, .ve-devbtn.on { background: var(--np-primary); border-color: var(--np-primary); color: #fff; }
.ve-ops { margin-left: auto; display: flex; gap: 6px; }
.ve-op {
  border: 1px solid var(--np-border); background: #fff; color: var(--np-text-regular);
  border-radius: var(--np-radius-sm); padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.ve-op:hover { border-color: var(--np-primary); color: var(--np-primary); }
.ve-op.warn:hover { border-color: var(--np-warning); color: var(--np-warning); }
.ve-dirty { font-size: 12px; color: #b88230; background: #fdf6ec; border: 1px solid #f5dab1; border-radius: 10px; padding: 2px 10px; }
.ve-dirty b { font-weight: 700; }
.ve-save {
  border: 1px solid var(--np-primary); background: var(--np-primary); color: #fff; font-weight: 600;
  border-radius: var(--np-radius-sm); padding: 5px 18px; font-size: 13px; cursor: pointer;
}
.ve-save:hover:not(:disabled) { background: #0da5ad; border-color: #0da5ad; }
.ve-save:disabled { background: #e9edf2; border-color: #e9edf2; color: #a8abb2; cursor: not-allowed; }
.ve-stage {
  position: relative; background: #fff; border: 1px solid var(--np-border-light);
  border-radius: var(--np-radius); overflow: hidden; height: calc(100vh - 260px); min-height: 520px;
}
/* 整屏编辑：工具条压到一行后，舞台还能再高一点 */
.np-content.ve-full .ve-stage { height: calc(100vh - 206px); }
.ve-stage.mb { display: flex; justify-content: center; background: #eef1f5; padding: 18px 0; }
.ve-stage.mb iframe { width: 400px; border-radius: 18px; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
.ve-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.ve-loading {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  gap: 8px; background: rgba(255, 255, 255, .92); color: var(--np-text-secondary); font-size: 13px;
}
.ve-hint { font-size: 12px; color: var(--np-text-secondary); }
.ve-hint b { color: var(--np-primary); font-weight: 600; }

/* ==========================================================================
   网站设置 · 导航管理
   一行 = 一个导航项：拖拽柄 + 文字 + 链接类型 + 链接目标 + 行内操作。
   二级菜单用 .np-navsub 包一层并缩进，视觉上直接看出层级关系。
   ========================================================================== */
.np-navlist { border: 1px solid #ebeef5; border-radius: 6px; overflow: hidden; }
.np-navrow {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: #fff; border-bottom: 1px solid #f2f4f7;
}
.np-navrow:last-child { border-bottom: none; }
.np-navrow.dragging { opacity: .45; }
.np-navrow.drop-before { box-shadow: inset 0 3px 0 var(--np-primary, #409eff); }
.np-navrow.drop-after { box-shadow: inset 0 -3px 0 var(--np-primary, #409eff); }
.np-navrow .drag { cursor: grab; color: #c0c4cc; padding: 0 2px; user-select: none; }
.np-navrow .drag:active { cursor: grabbing; }
.np-navrow input.nv-title { width: 150px; flex: 0 0 150px; }
.np-navrow select.nv-kind { width: 112px; flex: 0 0 112px; }
.np-navrow .nv-target { width: 220px; flex: 0 0 220px; }
.np-navrow .nv-ops { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.np-navrow .nv-ops .np-btn.text { padding: 2px 6px; }
/* 二级菜单区：左侧竖线 + 缩进，一眼看出从属关系 */
.np-navsub { margin-left: 34px; background: #fafbfc; border-left: 2px solid #ebeef5; }
.np-navsub .np-navrow { background: transparent; border-bottom: 1px dashed #f2f4f7; padding-left: 10px; }
.np-navsub .np-navrow:last-child { border-bottom: none; }
.np-nav-empty { padding: 30px; text-align: center; color: var(--np-text-secondary, #909399); font-size: 13px; }

/* ==========================================================================
   表单管理 / 线索管理（阶段二第 2 批）
   两个页面共用同一套「左列表 + 右内容」骨架：
   左边是表单（表单管理）/ 表单分组（线索管理），右边是配置或数据。
   ========================================================================== */
.np-fm-wrap { display: flex; gap: 14px; align-items: flex-start; }
.np-fm-side { flex: 0 0 260px; }
.np-fm-main { flex: 1 1 auto; min-width: 0; }
.np-fm-list { max-height: 620px; overflow-y: auto; }
.np-fm-item { padding: 11px 14px; border-bottom: 1px solid #f2f4f7; cursor: pointer; }
.np-fm-item:hover { background: #f7f9fc; }
.np-fm-item.on { background: #eef7f7; box-shadow: inset 3px 0 0 var(--np-primary, #12bcbb); }
.np-fm-item .nm { font-size: 14px; color: #303133; }
.np-fm-item .sub { font-size: 12px; color: #909399; margin-top: 3px; }

/* 表单字段行：序号 + 说明 + 行内操作 */
.np-fm-fields { border: 1px solid #ebeef5; border-radius: 6px; overflow: hidden; }
.np-fm-field { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f2f4f7; background: #fff; }
.np-fm-field:last-child { border-bottom: none; }
.np-fm-field .idx { flex: 0 0 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: #f0f2f5; color: #909399; font-size: 12px; }
.np-fm-field .fmain { flex: 1 1 auto; min-width: 0; }
.np-fm-field .fmain b { font-weight: 500; font-size: 14px; margin-right: 6px; }
.np-fm-field .fmain .req, .np-fm-colL .req { color: #f2637b; font-style: normal; }
.np-fm-field .fops { display: flex; gap: 2px; white-space: nowrap; }
.np-fm-field .fops .np-btn.text { padding: 2px 6px; }

/* 表单右侧两栏：左配置右预览 */
.np-fm-cols { display: flex; gap: 18px; align-items: flex-start; }
.np-fm-colL { flex: 1 1 56%; min-width: 0; }
.np-fm-colR { flex: 1 1 44%; min-width: 0; }
.np-inline-head { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; }
.np-inline-head b { font-size: 14px; font-weight: 500; }
.np-inline-head .np-btn.sm { margin-left: auto; }

/* 前台预览 */
.np-fm-preview { border: 1px dashed #dfe3e8; border-radius: 8px; padding: 18px; background: #fff; }
.np-fm-preview .pv-head h4 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.np-fm-preview .pv-head p { margin: 0 0 14px; font-size: 13px; color: #909399; }
.np-fm-preview .pv-body { display: grid; gap: 12px; }
.np-fm-preview .pv-f { display: flex; flex-direction: column; gap: 5px; }
.np-fm-preview .pv-l { font-size: 12px; color: #909399; }
.np-fm-preview .pv-l .req { color: #f2637b; font-style: normal; }
.np-fm-preview .pv-input { padding: 9px 11px; border: 1px solid #e4e7ed; border-radius: 6px; font-size: 13px; color: #c0c4cc; }
.np-fm-preview .pv-ta { height: 62px; }
.np-fm-preview .pv-choices { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #606266; }
.np-fm-preview .pv-radio, .np-fm-preview .pv-check { display: inline-block; width: 12px; height: 12px; border: 1px solid #c0c4cc; vertical-align: -2px; }
.np-fm-preview .pv-radio { border-radius: 50%; }
.np-fm-preview .pv-check { border-radius: 2px; }
.np-fm-preview .pv-btn { margin-top: 14px; padding: 10px 26px; border: 0; border-radius: 6px; background: var(--np-primary, #12bcbb); color: #fff; font-size: 14px; cursor: default; }

/* 线索跟进时间线 */
.np-timeline { border-left: 2px solid #ebeef5; margin-left: 5px; padding-left: 16px; }
.np-tl { position: relative; padding-bottom: 14px; }
.np-tl:last-child { padding-bottom: 0; }
.np-tl > i { position: absolute; left: -22px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--np-primary, #12bcbb); }
.np-tl b { font-weight: 500; font-size: 13px; margin-right: 6px; }
.np-tl .bd { font-size: 13px; color: #606266; line-height: 1.7; margin: 4px 0 2px; white-space: pre-wrap; }

/* 权限矩阵 */
.np-perm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.np-perm-table th { text-align: left; padding: 8px 10px; background: #fafbfc; color: #606266; font-weight: 500; border-bottom: 1px solid #ebeef5; }
.np-perm-table td { padding: 7px 10px; border-bottom: 1px solid #f2f4f7; }
.np-perm-group { background: #f7f9fc; font-weight: 500; color: #303133; }
.np-perm-radios { display: flex; gap: 4px; }
.np-perm-radios label { cursor: pointer; }
.np-perm-radios input { margin-right: 3px; }
.np-role-chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #eef7f7; color: #0e8f8e; }

/* 侧栏「只读」小标：当前账号对这条分类只有查看权限 */
.np-cms-sub .np-ro { float: right; margin-right: 10px; padding: 0 6px; border-radius: 8px; font-size: 11px; line-height: 16px; background: #f4f4f5; color: #909399; }
/* 账号权限页里角色名旁边的系统标 */
.np-fm-item .np-tag { margin-left: 4px; }

/* ==========================================================================
   数据分析 · 图表组件（阶段二第 3 批）
   图表本体是内联 SVG（见 portal/charts.js），这里只管容器、图例、卡片。
   ========================================================================== */

/* ---------- KPI 卡片组 ---------- */
.np-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.np-kpi {
  position: relative; background: #fff; border: 1px solid var(--np-border-light);
  border-radius: var(--np-radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.np-kpi::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--np-primary); }
.np-kpi.tone-red::before { background: #f56c6c; }
.np-kpi.tone-green::before { background: #67c23a; }
.np-kpi.tone-blue::before { background: #5b8def; }
.np-kpi.tone-amber::before { background: #f5a623; }
.np-kpi .lbl { font-size: 12.5px; color: var(--np-text-secondary); }
.np-kpi .vl { font-size: 26px; font-weight: 600; color: var(--np-text-strong); line-height: 1.15; }
.np-kpi .vl i { font-size: 12.5px; font-weight: 400; color: var(--np-text-secondary); font-style: normal; margin-left: 3px; }
.np-kpi .dl { font-size: 12px; }
.np-kpi .dl i { font-style: normal; color: var(--np-text-placeholder); margin-left: 5px; }
.np-kpi .hn { font-size: 11.5px; color: var(--np-text-placeholder); line-height: 1.5; }

/* ---------- 折线图 ---------- */
.np-chart svg { display: block; }
.np-chart-lg { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.np-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--np-text-regular); }
.np-lg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.np-lg-tip { font-size: 12px; color: var(--np-text-placeholder); }

/* ---------- 环形图 ---------- */
.np-donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.np-donut svg { flex: 0 0 auto; }
.np-dg-legend { flex: 1 1 220px; min-width: 0; }
.np-dg-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed var(--np-border-lighter); }
.np-dg-row:last-child { border-bottom: 0; }
.np-dg-row i { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.np-dg-row .nm { flex: 1 1 auto; color: var(--np-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-dg-row .vl { color: var(--np-text-strong); font-weight: 500; }
.np-dg-row .pc { width: 52px; text-align: right; color: var(--np-text-secondary); font-size: 12px; }

/* ---------- 横向条形排行 ---------- */
.np-hbars { display: flex; flex-direction: column; }
.np-hbar { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.np-hbar .rk {
  flex: 0 0 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 3px;
  font-size: 11px; background: #f2f4f7; color: #909399;
}
.np-hbar .rk.top { background: #e8f8f8; color: #0e8f8e; }
.np-hbar .lb { flex: 0 0 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--np-text); }
.np-hbar .tr { flex: 1 1 auto; height: 8px; border-radius: 4px; background: #f4f5f7; overflow: hidden; min-width: 60px; }
.np-hbar .fl { display: block; height: 100%; border-radius: 4px; }
.np-hbar .vl { flex: 0 0 76px; text-align: right; color: var(--np-text-strong); font-variant-numeric: tabular-nums; }
.np-hbar .vl i { font-style: normal; font-size: 11.5px; color: var(--np-text-placeholder); margin-left: 2px; }
.np-hbar .sb { flex: 0 0 150px; text-align: right; font-size: 12px; color: var(--np-text-secondary); }

/* ---------- 柱状分布 ---------- */
.np-bucket { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding: 8px 2px 0; }
.np-bucket .cl { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.np-bucket .vv { font-size: 12px; color: var(--np-text-regular); margin-bottom: 4px; }
.np-bucket .bx { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.np-bucket .bx i { width: 60%; max-width: 46px; border-radius: 3px 3px 0 0; display: block; }
.np-bucket .lb { font-size: 11.5px; color: var(--np-text-secondary); margin-top: 6px; white-space: nowrap; }

/* ---------- 24 时段热度 ---------- */
.np-heat { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.np-heat .cl {
  border-radius: 3px; min-height: 42px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 11px; line-height: 1.25;
}
.np-heat .cl b { font-weight: 500; font-size: 11.5px; }
.np-heat .cl i { font-style: normal; opacity: .72; font-size: 10px; }
.np-heat-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--np-text-placeholder); margin-top: 5px; }

/* ---------- 表格里的百分比小条（charts.js 的 barPct） ---------- */
.np-barpct { display: inline-flex; align-items: center; gap: 7px; }
.np-barpct .tr { width: 56px; height: 6px; border-radius: 3px; background: #f4f5f7; overflow: hidden; display: inline-block; flex: 0 0 auto; }
.np-barpct .tr i { display: block; height: 100%; border-radius: 3px; }
.np-barpct b { font-variant-numeric: tabular-nums; }

/* ---------- 会话下钻 ---------- */
.np-sess { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.np-sess .it {
  border: 1px solid var(--np-border-light); border-radius: var(--np-radius);
  padding: 7px 11px; font-size: 12.5px; cursor: pointer; background: #fff; color: var(--np-text-regular);
}
.np-sess .it:hover { border-color: var(--np-primary); color: var(--np-primary); }
.np-sess .it.on { border-color: var(--np-primary); background: var(--np-accent-bg); color: var(--np-primary); }
.np-sess .it b { font-weight: 500; margin-left: 4px; }


/* ==========================================================================
   定时获取资讯（新闻资讯页右上角弹窗）
   两个 tab：定时规则设置 / 执行记录。顶部状态条说明「现在到底能不能真跑」。
   ========================================================================== */

/* ---------- tab ---------- */
.np-news-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--np-border-light); margin: -2px 0 18px; }
.np-news-tab { position: relative; padding: 0 2px 12px; font-size: 15px; color: var(--np-text-regular); cursor: pointer; user-select: none; }
.np-news-tab:hover { color: var(--np-primary); }
.np-news-tab.on { color: var(--np-primary); font-weight: 600; }
.np-news-tab.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; border-radius: 1px; background: var(--np-primary);
}

/* ---------- 顶部状态条 ---------- */
.np-news-status { margin-bottom: 16px; }
.np-news-status .row {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding: 12px 14px; font-size: 13px; line-height: 1.5; color: var(--np-text-regular);
  background: #fafcfc; border: 1px solid var(--np-border-light); border-radius: var(--np-radius);
}
.np-news-it { position: relative; padding-left: 15px; }
.np-news-it::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px;
  margin-top: -3.5px; border-radius: 50%; background: var(--np-text-placeholder);
}
.np-news-it.ok::before { background: var(--np-success); }
.np-news-it.warn::before { background: var(--np-warning); }
.np-news-warn {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 8px;
  padding: 9px 12px; font-size: 12.5px; line-height: 1.65;
  color: #a26a1a; background: #fdf6ec; border: 1px solid #faecd8; border-radius: var(--np-radius);
}
.np-news-warn i { margin-top: 3px; flex: 0 0 auto; }

/* ---------- 卡片 ---------- */
.np-news-card { border: 1px solid var(--np-border-light); border-radius: var(--np-radius); margin-bottom: 16px; background: #fff; overflow: hidden; }
.np-news-card > .hd {
  padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--np-text-strong);
  background: #fafcfc; border-bottom: 1px solid var(--np-border-lighter);
}
.np-news-card > .bd { padding: 20px 16px 4px; }

/* ---------- 表单项 ---------- */
.np-news-field { display: flex; align-items: flex-start; margin-bottom: 18px; }
.np-news-field > .lab {
  flex: 0 0 142px; text-align: right; padding-right: 14px; padding-top: 8px;
  font-size: 14px; color: var(--np-text-regular); line-height: 1.5;
}
.np-news-field > .lab.req::before { content: "*"; color: var(--np-danger); margin-right: 3px; }
.np-news-field > .ctl { flex: 1 1 auto; min-width: 0; }
.np-news-field .hint { font-size: 12px; color: var(--np-text-secondary); margin-top: 5px; line-height: 1.65; }
.np-news-field .hint.inline { display: inline; margin: 0; }
.np-news-field textarea.np-input { height: auto; min-height: 62px; padding: 8px 12px; resize: vertical; line-height: 1.6; font-family: inherit; }

/* ---------- 勾选 / 单选 ---------- */
.np-news-check {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 22px 10px 0; font-size: 13.5px; line-height: 20px;
  color: var(--np-text-regular); cursor: pointer;
}
.np-news-check input { margin: 0; cursor: pointer; accent-color: var(--np-primary); flex: 0 0 auto; }
.np-news-check.all { margin-right: 26px; color: var(--np-text); }
.np-news-check:hover { color: var(--np-primary); }
.np-news-checks { display: flex; flex-wrap: wrap; }
.np-news-radios { display: flex; flex-wrap: wrap; gap: 0 20px; }
.np-news-radios .np-news-check { margin: 0 0 10px; }

/* ---------- 开关 ---------- */
.np-news-switch {
  display: inline-flex; align-items: center; gap: 9px; height: 30px;
  padding: 0 13px 0 4px; border: 1px solid var(--np-border); border-radius: 16px;
  background: #fff; font-size: 13px; color: var(--np-text-secondary); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.np-news-switch i { position: relative; width: 34px; height: 18px; border-radius: 9px; background: #dcdfe6; transition: background .2s; flex: 0 0 auto; }
.np-news-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .2s; }
.np-news-switch.on { color: var(--np-primary); border-color: #bcecea; background: var(--np-accent-bg); }
.np-news-switch.on i { background: var(--np-primary); }
.np-news-switch.on i::after { left: 18px; }

/* ---------- 静态值与组合控件 ---------- */
.np-news-static { padding: 7px 0; font-size: 14px; color: var(--np-text); }
.np-news-tpl { display: flex; gap: 10px; align-items: center; }
.np-news-tpl .np-select { min-width: 0; }
.np-news-range { display: flex; gap: 10px; align-items: center; }
.np-news-range .np-input { width: 112px; }
.np-news-range > span { color: var(--np-text-secondary); font-size: 13px; }

/* ---------- 操作按钮区 ---------- */
.np-news-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 2px; }

/* ---------- 试跑 / 执行结果 ---------- */
.np-news-runout {
  margin: 14px 0 6px; padding: 14px 16px; font-size: 13.5px; line-height: 1.65;
  color: var(--np-text-regular); background: #fafcfc;
  border: 1px solid var(--np-border-light); border-left: 3px solid var(--np-primary);
  border-radius: var(--np-radius);
}
.np-news-runout.warn { border-left-color: var(--np-warning); background: #fdfbf6; }
.np-news-runout.err { border-left-color: var(--np-danger); background: #fef7f7; color: #c45656; }
.np-news-runout .hd { margin-bottom: 10px; font-size: 14px; color: var(--np-text-strong); }
.np-news-runout .hd b { color: var(--np-primary); font-size: 15px; }
.np-news-runout .np-empty { padding: 22px 0; }
.np-news-runout .list { counter-reset: nni; }
.np-news-runout .list li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px dashed var(--np-border-lighter); }
.np-news-runout .list li:last-child { border-bottom: none; }
.np-news-runout .list li::before {
  counter-increment: nni; content: counter(nni);
  position: absolute; left: 0; top: 10px; width: 17px; height: 17px;
  line-height: 17px; text-align: center; font-size: 11px; border-radius: 50%;
  background: var(--np-accent-bg); color: var(--np-accent);
}
.np-news-runout .list li a { color: var(--np-text); }
.np-news-runout .list li a:hover { color: var(--np-primary); text-decoration: underline; }
.np-news-runout .list .meta { display: block; margin-top: 3px; font-size: 12px; color: var(--np-text-secondary); }
.np-news-runout .skipped { margin-top: 12px; font-size: 12.5px; }
.np-news-runout .skipped summary { cursor: pointer; color: var(--np-text-secondary); outline: none; }
.np-news-runout .skipped summary:hover { color: var(--np-primary); }
.np-news-runout .skipped ul { margin-top: 8px; max-height: 190px; overflow-y: auto; }
.np-news-runout .skipped li { padding: 4px 0; line-height: 1.65; }
.np-news-runout .skipped em { font-style: normal; color: var(--np-text-secondary); }
.np-news-errlist { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--np-border); font-size: 12.5px; line-height: 1.8; color: var(--np-danger); }
.np-news-tip { margin-top: 10px; font-size: 12.5px; color: var(--np-text-secondary); line-height: 1.65; }

/* ---------- 资讯源折叠区 ---------- */
.np-news-src { margin-top: 16px; padding: 16px; background: #fafcfc; border: 1px solid var(--np-border-light); border-radius: var(--np-radius); }
.np-news-src > .hd { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--np-text-strong); }
.np-news-src .hint.inline { font-weight: 400; font-size: 12px; color: var(--np-text-secondary); margin-left: 8px; }
.np-news-src .np-table { background: #fff; border: 1px solid var(--np-border-light); }
.np-table.sm { font-size: 13px; }
.np-table.sm th, .np-table.sm td { padding: 9px 10px; }
.np-news-srcadd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.np-news-srcadd .np-input, .np-news-srcadd .np-select { min-width: 0; }

/* ---------- 明细弹窗 ---------- */
.np-news-detail .sum {
  padding: 10px 12px; margin-bottom: 12px; font-size: 13px; line-height: 1.7;
  color: var(--np-text-regular); background: #fafcfc;
  border: 1px solid var(--np-border-light); border-radius: var(--np-radius);
}
.np-news-detail ul { max-height: 420px; overflow-y: auto; }
.np-news-detail li { padding: 7px 0; font-size: 13px; line-height: 1.7; color: var(--np-text-regular); border-bottom: 1px dashed var(--np-border-lighter); }
.np-news-detail li:last-child { border-bottom: none; }
.np-news-detail li b { display: inline-block; min-width: 66px; font-weight: 500; color: var(--np-text-secondary); }
.np-news-detail li.published b { color: var(--np-success); }
.np-news-detail li.failed b { color: var(--np-danger); }
.np-news-detail li.skipped b, .np-news-detail li.rejected b { color: var(--np-text-placeholder); }
.np-news-detail li em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--np-text-secondary); }
.np-news-detail li a { color: var(--np-text); }
.np-news-detail li a:hover { color: var(--np-primary); }

/* ---------- 补充 tag 变体（来源/任务状态在用） ---------- */
.np-tag.ok { background: #f0f9eb; color: var(--np-success); border-color: #e1f3d8; }
.np-tag.err { background: #fef0f0; color: var(--np-danger); border-color: #fbc4c4; }
