/* ============================================================
   模板页列表页样式 - 整理美化版
   文件: /www/wwwroot/e.vfv.net/plugins/admin.page/css/page.css
   
   设计体系: V海暗色系 (Solarized Dark)
   主背景: #002B36 | 侧边栏: #01313f | 边框: #33555E
   强调色: 蓝色 #268BD2 | 青色 #2AA198 | 红色 #D30102
   ============================================================ */

/* ----------------------------------------------------------
   0. CSS变量 - 统一色彩令牌
   ---------------------------------------------------------- */
:root {
  /* 背景层级 */
  --list-bg-base: #002B36;
  --list-bg-raised: #01313f;
  --list-bg-overlay: #0d3440;
  --list-bg-hover: #0a3d4a;
  
  /* 边框层级 */
  --list-border: #33555E;
  --list-border-subtle: rgba(51, 85, 94, 0.5);
  --list-border-focus: #268BD2;
  
  /* 文字层级 */
  --list-text-primary: #d0edf7;
  --list-text-secondary: #93A1A1;
  --list-text-muted: #657B83;
  --list-text-accent: #268BD2;
  
  /* 功能色 */
  --list-blue: #268BD2;
  --list-cyan: #2AA198;
  --list-green: #859900;
  --list-yellow: #B58900;
  --list-orange: #CB4B16;
  --list-red: #D30102;
  --list-violet: #6c71c4;
  --list-magenta: #D33682;
  
  /* 间距 */
  --list-gap-xs: 4px;
  --list-gap-sm: 8px;
  --list-gap-md: 12px;
  --list-gap-lg: 16px;
  --list-gap-xl: 24px;
  
  /* 圆角 */
  --list-radius-sm: 4px;
  --list-radius-md: 6px;
  --list-radius-lg: 10px;
  
  /* 阴影 */
  --list-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --list-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --list-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.45);
  --list-shadow-glow-blue: 0 0 12px rgba(38, 139, 210, 0.15);
  
  /* 动效 */
  --list-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --list-duration: 0.2s;
  
  --vhai-neon-cyan:     #2AA198;   /* 青色：替换原天蓝，作为主强调色/字符串色 */
}

/* ----------------------------------------------------------
   1. 全局基础
   ---------------------------------------------------------- */
.range {
  width: 300px;
  display: flex;
}

#mobile-result {
  bottom: auto !important;
  top: 113px !important;
}

body {
  background-color: var(--list-bg-base);
  color: var(--list-text-secondary);
}

/* ----------------------------------------------------------
   2. 开关组件
   ---------------------------------------------------------- */
.switch {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 40px;
  zoom: 0.8;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #073642;
  border: 1px solid var(--list-border);
  transition: .5s;
  border-radius: 30px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.slider:before {
  content: "";
  height: 30px;
  width: 30px;
  border-radius: 20px;
  position: absolute;
  left: 8px;
  bottom: 5px;
  background-color: #586e75;
  border: 1px solid #657B83;
  transition: .4s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------------------------
   3. 搜索区域 - 卡片化容器
   ---------------------------------------------------------- */
.search-box .search-item-checkbox,
.search-box .search-item-checkbox-in,
.search-box .search-item-checkbox-not {
  width: 100%;
}

/* 搜索匹配高亮 */
.search-match {
  background-color: rgba(45, 51, 102, 0.85) !important;
  border: 1px solid var(--list-red) !important;
  border-radius: 2px;
  z-index: 3;
}

.search-item {
  display: inline-block;
  margin: 5px;
  background-color: var(--list-bg-raised);
  border: 1px solid var(--list-border);
  border-radius: var(--list-radius-sm);
  padding: 8px;
  color: var(--list-text-primary);
  transition: all var(--list-duration) var(--list-ease);
}

.search-item:hover {
  border-color: var(--list-blue);
  box-shadow: var(--list-shadow-glow-blue);
}

/* 响应式搜索项 */
@media screen and (min-width: 1921px) {
  .search-item { display: inline-block; margin: 5px; }
}
@media screen and (min-width: 1501px) and (max-width: 1921px) {
  .search-item { display: inline-block; margin: 5px; }
}
@media screen and (max-width: 1501px) and (min-width: 960px) {
  .search-item { display: inline-block; margin: 5px; }
}
@media only screen and (max-width: 960px) and (min-width: 480px) {
  .search-item { display: inline-block; margin: 5px; }
}
@media screen and (max-width: 480px) {
  .search-item {
    display: block;
    width: auto;
    background-color: var(--list-bg-raised);
    border-color: var(--list-border);
  }
  .main-header { display: none; }
  #form-search .search-switch { top: 5px !important; }
  .page-pagelist { display: block; }
}

.search-item .dropdown {
  display: inline-block;
}

.search-item-buttons {
  width: auto;
  max-width: 100%;
}

/* ----------------------------------------------------------
   4. 表格系统 - 核心视觉重构
   ---------------------------------------------------------- */
.table {
  background-color: var(--list-bg-base);
  border-color: var(--list-border);
  border-collapse: separate;
  border-spacing: 0;
}

/* 表头 - 沉稳的底色 + 清晰的底线 */
.table th {
  overflow: visible !important;
  background-color: var(--list-bg-raised);
  color: var(--list-text-primary);
  border-bottom: 2px solid var(--list-blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 12px 10px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* 表头文字增加微弱文字阴影提升可读性 */
.table th span,
.table th a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 数据单元格 - 均匀内边距 + 底部分隔线:不能垂直居中,否则提现池两个表格无法头部对齐 */
.table td {
  border-color: var(--list-border-subtle);
  border-top: none;
  border-bottom: 1px solid rgba(51, 85, 94, 0.25);
  color: var(--list-text-secondary);
  padding: 10px;
  /*vertical-align: middle;*/
  transition: background-color var(--list-duration) var(--list-ease),
              color var(--list-duration) var(--list-ease);
}

/* 奇偶行 - 极其微妙的区分（保持暗色主题的沉稳感） */
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(1, 49, 63, 0.35) !important;
}
.table-striped > tbody > tr:nth-of-type(even) {
  background-color: transparent !important;
}

/* 行悬停 - 蓝调高亮 + 文字提亮 */
.table tr:hover td,
.table-striped > tbody > tr:hover td {
  background-color: var(--list-bg-hover) !important;
  color: var(--list-text-primary) !important;
  /* 去掉刺眼的红框，改用微妙的左侧指示条 */
  border-left: 2px solid var(--list-blue);
  box-shadow: inset 0 0 30px rgba(38, 139, 210, 0.04);
}

/* 行悬停时的首单元格蓝色指示条 */
.table tr:hover td:first-child,
.table-striped > tbody > tr:hover td:first-child {
  border-left: 3px solid var(--list-blue);
  box-shadow: inset 3px 0 8px -2px rgba(38, 139, 210, 0.25);
}

/* ----------------------------------------------------------
   5. 合计/汇总行 - 视觉强化
   ---------------------------------------------------------- */
/* 本页合计行 */
.table tr.report td {
  font-weight: 700;
  letter-spacing: 0.5px;
  border-top: 2px solid var(--list-yellow) !important;
  border-bottom: 2px solid var(--list-yellow) !important;
}

/* 本页合计 - 深琥珀底 */
tr.report:not([style*="isAllTotal"]) td,
tr.report td[style*="background-color: rgb(238"] {
  background-color: rgba(181, 137, 0, 0.12) !important;
  color: var(--list-text-primary) !important;
}

/* 全部合计行 - 翠绿底 */
tr.report td[style*="background-color: rgb(195"] {
  background-color: rgba(42, 161, 152, 0.15) !important;
  color: var(--list-text-primary) !important;
  border-top: 2px solid var(--list-cyan) !important;
  border-bottom: 2px solid var(--list-cyan) !important;
}

/* 合计行图标 */
.table tr.report td i {
  margin-right: 6px;
}

/* ----------------------------------------------------------
   6. 操作按钮容器 - 分组化布局
   ---------------------------------------------------------- */
.doit-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center !important;
  align-content: center !important;
  font-size: 0 !important;
  line-height: 1 !important;
  position: relative;
  box-sizing: border-box;
}

/* 恢复按钮字体大小 */
.doit-container .btn,
.doit-container .btn-xs {
  font-size: 12px !important;
}

/* 按钮不被Flex拉伸 */
.doit-container > .btn,
.doit-container > button,
.doit-container > a.btn {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  flex-basis: auto !important;
  align-self: center !important;
}

.doit-container::before,
.doit-container::after {
  display: none !important;
}

@media (max-width: 240px) {
  .doit-container { gap: 4px !important; }
}

.doit-container[style*="210px"] {
  justify-content: flex-start !important;
}

/* ----------------------------------------------------------
   9. 链接色 - 统一交互色
   ---------------------------------------------------------- */
td a {
  color: var(--list-blue);
  text-decoration: none;
  transition: color var(--list-duration) var(--list-ease);
  border-bottom: 1px solid transparent;
}

td a:hover {
  color: var(--list-cyan);
  border-bottom-color: var(--list-cyan);
}

/* 表头下拉 */
th .dropdown-toggle {
  color: var(--list-blue);
}
th .dropdown-toggle:hover {
  color: var(--list-text-primary);
}

/* ----------------------------------------------------------
   10. 导航栏 - 暗色适配
   ---------------------------------------------------------- */
.skin-blue .main-header .navbar {
  background-color: var(--list-bg-raised);
  border-bottom: 1px solid var(--list-border);
  box-shadow: var(--list-shadow-sm);
}

.skin-blue .main-header .logo {
  background-color: var(--list-bg-base);
  color: var(--list-text-primary);
  border-bottom: 1px solid var(--list-border);
}

@media (min-width: 768px) {
  .navbar-nav > li > a {
    color: var(--list-text-primary) !important;
  }
  .navbar-nav > li > a:hover {
    background-color: var(--list-bg-overlay) !important;
    color: var(--list-text-primary) !important;
  }
}



/* ----------------------------------------------------------
   12. 表单交互元素
   ---------------------------------------------------------- */
.form-group > .value-box > .form-group > label {
  display: none;
}

.is-input {
  display: inline-block;
  min-width: 50px;
  min-height: 20px;
  background-color: #073642;
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--list-text-secondary);
  cursor: text;
  transition: all var(--list-duration) var(--list-ease);
}

.is-input:hover {
  background-color: var(--list-bg-overlay);
}

.is-input:focus {
  background-color: var(--list-bg-raised);
  box-shadow: 0 0 0 2px rgba(38, 139, 210, 0.15);
}

/* ----------------------------------------------------------
   13. 调节区域(tiaojie) - 主内容容器
   ---------------------------------------------------------- */
.tiaojie {
  width: 100%;
  padding-top: 40px;
  margin-top: -40px;
  min-height: 350px;
  background-color: var(--list-bg-base);
  border: 1px solid var(--list-border);
  border-radius: var(--list-radius-md);
  position: relative;
}

/* 下拉菜单 */
.tiaojie .dropdown-menu {
  max-height: 200px;
  overflow: auto;
  background-color: #073642;
  border: 1px solid var(--list-border);
  box-shadow: var(--list-shadow-md);
  border-radius: var(--list-radius-sm);
}

.tiaojie .dropdown-menu > li > a {
  color: var(--list-text-secondary);
  padding: 8px 16px;
  transition: background-color var(--list-duration) var(--list-ease);
}

.tiaojie .dropdown-menu > li > a:hover {
  background-color: var(--list-bg-overlay);
  color: var(--list-text-primary);
}

/* ----------------------------------------------------------
   14. Box容器 - 卡片化
   ---------------------------------------------------------- */
.box {
  border: none;
  border-radius: var(--list-radius-lg);
  overflow: hidden;
  box-shadow: var(--list-shadow-md);
}

.box.box-info {
  border-top: none;
}

.box-header {
  display: none; /* 按照原有逻辑隐藏 */
}

.box-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--list-border-subtle);
  background-color: transparent;
}

.box-body {
  background-color: transparent;
}

/* ----------------------------------------------------------
   15. 工具类
   ---------------------------------------------------------- */
.mr3 { margin-right: 3px; }
.pr3 { padding-right: 3px; }

.konge { margin-right: 3px; }

/* ----------------------------------------------------------
   16. 高亮/标记样式
   ---------------------------------------------------------- */
/* 括号匹配 */
.bracket-match {
  border: 1px solid var(--list-red) !important;
  background-color: rgba(211, 1, 2, 0.15) !important;
  border-radius: 2px;
}

/* 步骤标记 */
.step-marker {
  background-color: rgb(102, 82, 0) !important;
  border: 1px solid var(--list-yellow);
  color: #fff;
}

/* 搜索匹配 */
.search-match {
  background-color: rgba(45, 51, 102, 0.85) !important;
  border: 1px solid var(--list-red) !important;
  border-radius: 2px;
  z-index: 3;
}

/* em高亮 - 科技感渐变 */
em {
  font-style: normal;
  background: linear-gradient(135deg, #00ffcc, #00d4ff);
  color: #0a2540;
  padding: 2px 8px;
  border-radius: var(--list-radius-sm);
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
  transition: all var(--list-duration) var(--list-ease);
}

em:hover {
  background: linear-gradient(135deg, #00ff88, #00ffcc);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.6);
  transform: scale(1.03);
}

/* ----------------------------------------------------------
   17. 选中状态按钮（筛选项）
   ---------------------------------------------------------- */
.btn-selected-info {
  background: linear-gradient(135deg, #00d4aa 0%, #00b4d8 50%, #06b6d4 100%);
  color: #ffffff !important;
  border: 2px solid #22d3ee;
  box-shadow:
    0 0 16px rgba(34, 211, 238, 0.4),
    0 0 32px rgba(34, 211, 238, 0.15),
    var(--list-shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all var(--list-duration) var(--list-ease);
}

.btn-selected-info:hover {
  background: linear-gradient(135deg, #00e6b8 0%, #00c4e0 50%, #0cd4e8 100%);
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.5),
    0 0 40px rgba(34, 211, 238, 0.2),
    var(--list-shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-selected-info:active {
  transform: translateY(0);
  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.3),
    var(--list-shadow-sm),
    inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ----------------------------------------------------------
   18. 响应式 - 分页适配
   ---------------------------------------------------------- */
@media screen and (min-width: 960px) {
  .page-pagelist {
    display: flex;
  }
}

@media screen and (max-width: 960px) {
  .page-right {
    position: absolute;
    right: 0;
  }
  
  .page-pagelist {
    display: block;
    padding: 10px;
  }
  
  .pull-left.page-table-box,
  .pull-right .pagination {
    width: 100%;
    display: block !important;
  }
  
  .onez-table-extra {
    width: 100%;
  }
  
  .page-table-box .selpage,
  .onez-table-extra .selpage {
    width: auto;
  }
  
  /* 手机模式分页不换行 */
  .page-pagelist .pagination,
  .box-footer .pagination {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  
  /* 手机模式分页按钮缩小 */
  .pagination > li > a,
  .pagination > li > span {
    min-width: 32px;
    height: 32px;
    padding: 4px 6px;
    font-size: 12px;
  }
}

/* ----------------------------------------------------------
   19. 表格内元素微调
   ---------------------------------------------------------- */
/* 复选框列 */
.table input[type="checkbox"] {
  accent-color: var(--list-blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* 排序手柄 */
.table .handle {
  cursor: grab;
  color: var(--list-text-muted);
  padding: 4px 6px;
  border-radius: var(--list-radius-sm);
  transition: all var(--list-duration) var(--list-ease);
}

.table .handle:hover {
  color: var(--list-text-primary);
  background-color: var(--list-bg-overlay);
}

.table .handle:active {
  cursor: grabbing;
}

/* 表格内图片 */
.table td img {
  border-radius: var(--list-radius-sm);
  transition: transform var(--list-duration) var(--list-ease);
}

.table td img:hover {
  transform: scale(1.05);
}

/* 表格内代码/标签 */
.table td code {
  background-color: rgba(7, 54, 66, 0.8);
  color: var(--list-cyan);
  border: 1px solid var(--list-border);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 12px;
  font-family: 'Consolas', 'Monaco', monospace;
}

/* ----------------------------------------------------------
   20. 分页区域与表格的衔接
   ---------------------------------------------------------- */
/* 表格与下方分页的无缝衔接 */
.box-body + .box-footer.page-pagelist,
.tiaojie + .box-footer.page-pagelist {
  margin-top: -1px; /* 消除双边框 */
}

/* 分页区域的flex布局优化 */
.box-footer.page-pagelist {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(
    135deg,
    rgba(1, 49, 63, 0.95) 0%,
    rgba(0, 43, 54, 0.95) 100%
  );
  border-top: 1px solid var(--list-border);
  border-radius: 0 0 var(--list-radius-md) var(--list-radius-md);
}

/* 清除浮动的额外样式 */
.box-footer .clearfix {
  display: none;
}

/* ----------------------------------------------------------
   21. 微交互动画
   ---------------------------------------------------------- */
/* 按钮点击波纹（仅对 .btn-xs 操作按钮） */
.table .btn-xs {
  position: relative;
  overflow: hidden;
}

.table .btn-xs::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, opacity 0.4s;
  opacity: 0;
  pointer-events: none;
}

.table .btn-xs:active::after {
  width: 80px;
  height: 80px;
  opacity: 0;
  transition: 0s;
}

/* 行选中动画 */
.table tr.selected td {
  background-color: rgba(38, 139, 210, 0.1) !important;
  border-left: 3px solid var(--list-blue) !important;
}

/* ----------------------------------------------------------
   22. 表格内操作按钮视觉分组
   用分隔线区分不同类别的操作按钮
   ---------------------------------------------------------- */
/* 为操作列的按钮组添加视觉分组 */
.doit-container .btn-danger {
  margin-left: 8px;
  padding-left: 10px;
  border-left: 2px solid rgba(211, 1, 2, 0.3);
}

/* MD相关按钮组 */
.doit-container .preview-md-btn {
  border-color: rgba(38, 139, 210, 0.4);
}

/* ----------------------------------------------------------
   23. 空状态（无数据时）
   ---------------------------------------------------------- */
.table tbody:empty::after {
  content: '暂无数据';
  display: block;
  text-align: center;
  padding: 60px 20px;
  color: var(--list-text-muted);
  font-size: 15px;
  letter-spacing: 1px;
}

/* ----------------------------------------------------------
   24. 表格列排序指示器
   ---------------------------------------------------------- */
.table th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.table th[data-sort]:hover {
  background-color: var(--list-bg-overlay);
}

/* 排序状态指示 */
.table th[data-sort="asc"]::after {
  content: ' ↑';
  color: var(--list-blue);
  font-size: 11px;
}

.table th[data-sort="desc"]::after {
  content: ' ↓';
  color: var(--list-blue);
  font-size: 11px;
}

/* ----------------------------------------------------------
   25. 复制按钮 - 鼠标悬停才显示
   ---------------------------------------------------------- */
.copy-btn-hover {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  transform: translateX(4px) !important;
}

/* 鼠标进入 td 时显示复制按钮 */
td:hover .copy-btn-hover {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}
