/* ================================================
   NMS - 商务专业风格 CSS
   Business Professional Theme
   ================================================ */

/* ---------- 基础变量：稍浅的蓝色调 ---------- */
:root {
  --primary:       #2d5f8a;   /* 中蓝 - 更浅更柔和 */
  --primary-mid:   #3d8bd4;   /* 亮中蓝 */
  --accent:        #5ba3d9;   /* 浅蓝强调 */
  --accent-light:  #d8e6f0;
  --success:       #4caf50;
  --border:        #d0d7e3;
  --bg-page:       #f0f4f8;
  --text-main:     #1a2840;
  --text-muted:    #6b7a99;
  --white:         #ffffff;
  --shadow-sm:     0 2px 8px rgba(45,95,138,0.10);
  --shadow-md:     0 6px 24px rgba(45,95,138,0.14);
  --shadow-lg:     0 16px 48px rgba(45,95,138,0.18);
  --radius:        10px;
  --radius-sm:     6px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
}

/* ================================================
   登录 / 注册页
   ================================================ */
.login_body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a4a8a 0%, #2d6cc0 55%, #2196f3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.login_div {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: none;
}

.login_div::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Logo 区域 - 只显示文字，不显示 gif 图片 */
.login-logo-container {
  text-align: center;
  padding: 32px 40px 0;
}
.login-logo {
  display: none;   /* ② 隐藏登录页 logo 图片 */
}
.login-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 0 4px;
  display: block;
}

/* 标题 */
.login_div .login_title {
  margin: 0;
  padding: 12px 40px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  border: none;
}

/* 表单区域 */
.login_div .nav { padding: 0 40px; }
.login_div .nav .control-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  display: block;
}

/* 输入框 */
.login_body .form-control {
  height: 48px;
  font-size: 14px;
  color: var(--text-main);
  padding: 0 16px 0 50px;
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  width: 100%;
}
.login_body .form-control:focus {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.12);
  outline: none;
}
.login_body .form-control::placeholder { color: #b0bbd0; }

/* 输入图标 */
.login_body .login_input { position: relative; margin-bottom: 4px; }
.login_body .login_input .login_inputIcon {
  position: absolute;
  top: 50%; left: 14px;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.4; pointer-events: none;
}
.login_body .login_input .login_inputIcon img { width: 18px; height: 18px; }

/* 行间距 */
.login_nav, .login_psdNav { margin-bottom: 16px; }

/* 按钮区 */
.login_btn_div { padding: 8px 40px 0; margin-top: 10px; }
.login_body .login_btn_div .btn {
  width: 100%; height: 48px;
  font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none; border-radius: var(--radius-sm);
  color: var(--white); cursor: pointer;
  letter-spacing: 1px; text-transform: uppercase;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(33,150,243,0.25);
}
.login_body .login_btn_div .btn:hover {
  opacity: 0.93; transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(33,150,243,0.35);
}
.login_body .login_btn_div .btn:active { transform: translateY(0); opacity: 1; }

/* 注册/登录切换 */
.login_switch_div {
  text-align: center;
  padding: 16px 40px 28px;
  font-size: 13px; color: var(--text-muted);
}
.login_switch_div a {
  color: var(--accent); font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.login_switch_div a:hover { border-bottom-color: var(--accent); }

/* ③ 注册页邮件行样式（与密码行一致） */
.login_emailNav { margin-bottom: 16px; }

/* ④ 激活提示横幅 */
.register_success_tip {
  display: none;
  margin: 10px 40px 0;
  padding: 12px 16px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #2e7d32;
  line-height: 1.6;
  text-align: center;
}
.register_success_tip svg {
  vertical-align: middle;
  margin-right: 4px;
}

/* hidden */
.hidden { display: none !important; }

/* ================================================
   主界面 - 顶部导航栏
   ================================================ */
.header {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-mid) 100%);
  box-shadow: 0 2px 10px rgba(26,74,138,0.18);
  position: fixed;
  z-index: 9999;
  width: 100%;
}

/* ① logo 高度 80px */
.logo {
  background: var(--white);
  display: flex;
  align-items: center;
  height: 80px;          /* 修正为 80px */
  padding-left: 20px;
  border-bottom: none;
}
.logo img {
  height: 60px;          /* 图片也相应增高 */
  object-fit: contain;
}

/* 导航菜单配合 80px logo */
.nav-pills > li {
  width: auto;
  height: 60px;
  min-width: 100px;
  line-height: 60px;
  font-size: 14px;
}
.nav-pills > li > a {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px;
  color: rgba(255,255,255,0.88);
  font-weight: 500; border-radius: 0; height: 60px;
  transition: background 0.2s, color 0.2s; gap: 6px;
}
.nav-pills > li > a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.15);
  background-image: none;
}
.nav-pills > li.selected a {
  color: var(--white);
  background: rgba(255,255,255,0.22);
  background-image: none;
  border-bottom: 3px solid rgba(255,255,255,0.75);
}

.myinfo {
  float: right; padding: 0 20px;
  line-height: 60px; color: rgba(255,255,255,0.85);
}
.myinfo img, .public-home img { opacity: 0.85; transition: opacity 0.2s; }
.myinfo img:hover, .public-home img:hover { opacity: 1; }

/* ================================================
   内容区域
   ================================================ */
#functionsPanels { background: var(--bg-page) !important; }

/* ================================================
   Dashboard 卡片
   ================================================ */
.dashboardview { padding: 20px; }

.bg-dashboard {
  display: flex; flex-direction: column;
  height: 130px; padding: 18px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius); color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  border: none; margin-bottom: 16px;
}
.bg-dashboard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bg-dashboard .box-title {
  font-size: 11px; font-weight: 700; opacity: 0.75;
  text-transform: uppercase; letter-spacing: 1.2px;
}
.bg-dashboard .box-content { font-size: 30px; font-weight: 700; margin-top: auto; }
.bg-dashboard .box-content a { color: var(--white) !important; text-decoration: none; }

.chart-dashboard {
  width: 100%; height: 380px; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px; box-shadow: var(--shadow-sm); margin-top: 16px;
}

/* ================================================
   通用按钮
   ================================================ */
.btn { border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; transition: all 0.2s; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none; color: var(--white);
}
.btn-primary:hover {
  opacity: 0.9; box-shadow: 0 4px 12px rgba(33,150,243,0.3);
  transform: translateY(-1px); color: var(--white);
}
.btn-default {
  background: var(--white); border: 1.5px solid var(--border); color: var(--text-main);
}
.btn-default:hover {
  background: var(--accent-light); border-color: var(--accent); color: var(--accent);
}

/* ================================================
   表格
   ================================================ */
.table { border-radius: var(--radius-sm); }

.panel-body > .margin-bottom {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table > thead > tr > th {
  background: transparent;
  color: #3c5070;
  font-weight: 600; font-size: 13px; border: none;
  border-bottom: 2px solid #c8d8eb;
  padding: 12px 14px;
}
.table > thead > tr {
  background: #f4f7fb;
}
.table > tbody > tr > td {
  padding: 10px 14px; border-color: var(--border); font-size: 13px; vertical-align: middle;
}
.table-striped > tbody > tr:nth-of-type(odd) { background: #f7f9fc; }
.table-hover > tbody > tr:hover { background: #eaf3fb; }

/* ================================================
   面板 / Panel
   ================================================ */
.panel { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.panel-heading {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0; padding: 12px 18px; font-weight: 600;
}
.panel-body { padding: 20px 18px; }

/* ================================================
   Tree 侧边栏
   ================================================ */
.organWrap .organtree, #configtree {
  border-right: 1px solid var(--border); background: #fff; min-height: calc(100vh - 140px);
}
.REGION_treeContent, .REGION_configtreeContent {
  height: calc(100vh - 200px) !important; overflow-y: auto;
}
.REGION_treeContent::-webkit-scrollbar,
.REGION_configtreeContent::-webkit-scrollbar { width: 4px; }
.REGION_treeContent::-webkit-scrollbar-track,
.REGION_configtreeContent::-webkit-scrollbar-track { background: transparent; }
.REGION_treeContent::-webkit-scrollbar-thumb,
.REGION_configtreeContent::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ================================================
   System 页二级导航
   ================================================ */
.admin-subnav { flex-wrap: wrap; }
@media (max-width: 900px) {
  .admin-subnav-item { padding: 0 10px; font-size: 12px; }
}

/* ================================================
   面板表单
   ================================================ */
.regionframe-content, #functionsPanels { background: var(--bg-page); }
.panel-form .panel-body .row {
  padding: 8px 0; border-bottom: 1px solid var(--border); align-items: center;
}
.panel-form .panel-body .row:last-child { border-bottom: none; }
.panel-form .panel-body .col-xs-2 {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-align: right; padding-right: 12px;
}

/* ================================================
   响应式
   ================================================ */
@media (max-width: 768px) {
  .login_div { max-width: 95%; }
  .login_div .nav, .login_btn_div, .login_switch_div { padding-left: 24px; padding-right: 24px; }
  .bg-dashboard { height: 110px; }
  .bg-dashboard .box-content { font-size: 22px; }
}

/* ================================================
   覆盖 index.css 冲突样式（必须放在文件末尾）
   ================================================ */

/* ① 修正 logo 区域 - 覆盖 index.css 的 background 图片和高度 */
.logo {
  height: 80px !important;
  line-height: 80px !important;
  background: #fff !important;    /* 去掉 Title.gif 背景图 */
  display: flex !important;
  align-items: center !important;
  padding-left: 16px !important;
}
.logo img {
  height: 60px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* ④ 导航栏底色 - 覆盖 index.css 的 .header { background:#fff } */
.header {
  background: linear-gradient(90deg, #1a4a8a 0%, #2d6cc0 100%) !important;
}

/* 导航菜单文字颜色 - 覆盖 index.css 的 color:#555 */
.nav-pills > li > a {
  color: rgba(255,255,255,0.88) !important;
  background-image: none !important;
  background-color: transparent !important;
}
.nav-pills > li > a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.15) !important;
  background-image: none !important;
}
.nav-pills > li.selected a {
  color: #fff !important;
  background: rgba(255,255,255,0.22) !important;
  background-image: none !important;
  border-bottom: 3px solid rgba(255,255,255,0.8) !important;
}

/* 导航栏高度和 public-menu 背景 */
.public-menu {
  background: transparent !important;
}
.nav-pills > li {
  height: 60px !important;
  line-height: 60px !important;
  font-size: 14px !important;
  width: auto !important;
  min-width: 100px !important;
}

/* ② logout/myinfo 区域 - 缩小图标，固定右侧 */
.myinfo {
  padding: 0 12px !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
}
.myinfo img {
  width: 24px !important;
  height: 24px !important;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.myinfo img:hover { opacity: 1; }

.public-home {
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
  line-height: normal !important;
  padding: 0 8px !important;
}
.public-home img {
  width: 22px !important;
  height: 22px !important;
  opacity: 0.85;
}
.public-home img:hover { opacity: 1; }

/* ⑤ Status 页搜索框 - 修正 ct-search 里的 SVG 图标大小 */
.ct-search-wrap {
  padding: 8px 10px !important;
}
.ct-search-inner svg {
  width: 14px !important;
  height: 14px !important;
  left: 9px !important;
}
.ct-search-input {
  height: 30px !important;
  font-size: 12px !important;
  border-radius: 5px !important;
}
