/**
 * 主框架样式
 * 固定顶部导航 + 固定左侧菜单 + 右侧内容区
 */

/* 顶部导航 */
.layui-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.layui-header * {
  z-index: 9999;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}

.header-logo i {
  font-size: 26px;
  margin-right: 8px;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-center .layui-nav-item a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.header-center .layui-nav-item a:hover,
.header-center .layui-nav-item.layui-this a {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.header-right .layui-nav-item a {
  color: #fff;
  height: 50px;
  line-height: 50px;
}

.header-right .layui-nav-item > a {
  padding: 0 15px;
}

.header-right .layui-nav {
  height: 50px;
}

.header-right .layui-nav-item {
  height: 50px;
  line-height: 50px;
}

.header-right .layui-nav-child {
  top: 50px !important;
}

.header-right .layui-nav-more {
  border-color: #fff transparent transparent;
}

.header-right .layui-nav-mored {
  border-color: transparent transparent #fff;
}

/* 右上角下拉菜单 - 深色背景 */
.header-right .layui-nav-child {
  background: #2d3539;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  padding: 5px 0;
  min-width: 150px;
  z-index: 10000;
  top: 100%;
}

.header-right .layui-nav-child dd {
  margin: 0;
}

.header-right .layui-nav-child dd a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 10px 20px;
  height: auto;
  line-height: 1.5;
}

.header-right .layui-nav-child dd a:hover {
  background: rgba(102, 126, 234, 0.3);
  color: #fff;
}

.header-right .layui-nav-child .layui-divider {
  margin: 5px 0;
  background: rgba(255, 255, 255, 0.1);
}

/* 左侧菜单 */
.layui-side {
  position: fixed;
  top: 50px;
  left: 0;
  bottom: 0;
  width: 200px;
  background: #2d3539;
  overflow-x: hidden;
  z-index: 999;
}

.layui-side-scroll {
  width: 220px;
  height: 100%;
}

.layui-nav-tree {
  width: 200px;
  padding: 5px 0;
}

.layui-nav-tree .layui-nav-item {
  line-height: 45px;
}

.layui-nav-tree .layui-nav-item a {
  height: 45px;
  color: rgba(255, 255, 255, 0.85);
  padding: 0 15px 0 35px;
  font-size: 14px;
}

.layui-nav-tree .layui-nav-item a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.layui-nav-tree .layui-this a,
.layui-nav-tree .layui-this {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
}

.layui-nav-tree .layui-nav-child dd {
  margin: 0;
}

.layui-nav-tree .layui-nav-child dd a {
  padding-left: 50px;
  font-size: 13px;
  height: 40px;
  line-height: 40px;
}

.layui-nav-tree .layui-nav-child dd.layui-this a {
  background: rgba(102, 126, 234, 0.3);
}

.layui-nav-tree .layui-nav-arrow {
  right: 15px;
  color: rgba(255, 255, 255, 0.5);
}

/* 右侧内容区 */
.layui-body {
  position: fixed;
  top: 50px;
  left: 200px;
  right: 0;
  bottom: 0;
  background: #f0f2f5;
  overflow: hidden;
}

/* Tab 切换区 */
.layui-tab {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: none;
}

.layui-tab .layui-tab-title {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  height: 40px;
  margin: 0;
}

.layui-tab .layui-tab-title li {
  height: 40px;
  line-height: 40px;
  color: #666;
  font-size: 13px;
  padding: 0 20px;
}

.layui-tab .layui-tab-title li.layui-this {
  color: #667eea;
  background: #fff;
}

.layui-tab .layui-tab-title li.layui-this::after {
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.layui-tab .layui-tab-bar {
  display: none;
}

.layui-tab .layui-tab-content {
  flex: 1;
  overflow: hidden;
  background: #f0f2f5;
  padding: 15px;
}

.layui-tab .layui-tab-item {
  height: 100%;
  overflow: hidden;
}

/* iframe 内容区 */
.content-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 重置 layui 的一些样式 */
.layui-input,
.layui-select,
.layui-textarea {
  height: 34px;
  line-height: 34px;
}

.layui-form-label {
  padding: 8px 10px;
  font-size: 13px;
}

.layui-btn {
  height: 34px;
  line-height: 34px;
  font-size: 13px;
}

.layui-btn-sm {
  height: 28px;
  line-height: 28px;
  font-size: 12px;
  padding: 0 10px;
}

/* 搜索区域 */
.search-form {
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-form .layui-inline {
  margin-bottom: 10px;
  margin-right: 10px;
}

/* 数据表格容器 */
.table-container {
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 分页容器 */
.pagination-container {
  margin-top: 15px;
  text-align: right;
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}

/* 操作按钮组 */
.btn-group {
  display: flex;
  gap: 5px;
}

/* 响应式 */
@media screen and (max-width: 768px) {
  .layui-side {
    display: none;
  }
  .layui-body {
    left: 0;
  }
  .header-center {
    display: none;
  }
}
