html,
body {
  height: 100%;
}

body {
  background: #f5f7fa;
}

/* ==================== 登录页样式 ==================== */
.login-page {
  min-height: 100vh;
  display: flex;
  background: #f0f2f5;
}

/* 左侧品牌面板 */
.login-brand {
  flex: 0 0 42%;
  background: linear-gradient(160deg, #0f172a 0%, #0d2f6e 40%, #1a6dd3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.login-brand::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  top: -150px;
  right: -180px;
}

.login-brand::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  bottom: -80px;
  left: -60px;
}

.login-brand-inner {
  text-align: center;
  color: #fff;
  z-index: 1;
  padding: 40px;
}

.login-brand-icon {
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.login-brand-inner h1 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}

.login-brand-inner > p {
  margin: 0 0 40px;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 4px;
}

.login-brand-features {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.brand-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.brand-feature-num {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.brand-feature-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* 右侧表单面板 */
.login-form-area {
  flex: 0 0 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form-card {
  width: 100%;
  max-width: 420px;
}

.login-form-header {
  margin-bottom: 40px;
}

.login-form-header h2 {
  margin: 0 0 8px;
  font-size: 30px;
  color: #1f2937;
  font-weight: 700;
}

.login-form-header p {
  margin: 0;
  font-size: 15px;
  color: #9ca3af;
}

/* 输入组 */
.login-input-group {
  margin-bottom: 24px;
}

.login-input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.login-input-wrap {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 18px;
  transition: color 0.3s;
  z-index: 2;
  pointer-events: none;
}

.login-input-wrap .layui-input {
  height: 48px;
  line-height: 48px;
  padding: 0 44px 0 42px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  background: #f9fafb;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  background-color: #f9fafb;
}

.login-input-wrap .layui-input:focus {
  border-color: #1a6dd3;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26,109,211,0.08);
}

.login-input-wrap .layui-input:focus + .login-input-bar {
  width: 100%;
}

.login-input-wrap .layui-input:focus ~ .login-input-icon {
  color: #1a6dd3;
}

.login-input-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #1a6dd3;
  border-radius: 0 0 10px 10px;
  transition: width 0.3s ease;
}

/* 密码切换按钮 */
.login-pwd-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}

.login-pwd-toggle:hover {
  color: #1a6dd3;
}

/* 额外选项行 */
.login-form-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.login-remember {
  display: flex;
  align-items: center;
}

.login-forgot {
  font-size: 13px;
  color: #1a6dd3;
  text-decoration: none;
  transition: opacity 0.2s;
}

.login-forgot:hover {
  opacity: 0.8;
}

/* 登录按钮 */
.login-btn-wrap {
  margin-bottom: 24px;
}

.login-submit-btn {
  width: 100%;
  height: 50px;
  line-height: 50px;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 4px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a6dd3, #008efe) !important;
  border: none !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,109,211,0.35);
}

.login-submit-btn:hover {
  box-shadow: 0 6px 20px rgba(26,109,211,0.5);
  transform: translateY(-1px);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-btn-loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
}

/* 其他链接 */
.login-other-links {
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}

.login-other-links a {
  color: #1a6dd3;
  text-decoration: none;
  transition: opacity 0.2s;
}

.login-other-links a:hover {
  opacity: 0.8;
}

.login-other-divider {
  margin: 0 12px;
  color: #e5e7eb;
}

/* 响应式：小屏变上下布局 */
@media (max-width: 768px) {
  .login-page {
    flex-direction: column;
  }
  
  .login-brand {
    flex: 0 0 auto;
    padding: 48px 24px;
  }
  
  .login-brand-inner {
    padding: 24px;
  }
  
  .login-brand-inner h1 {
    font-size: 26px;
    letter-spacing: 1px;
  }
  
  .login-brand-inner > p {
    margin-bottom: 28px;
    font-size: 13px;
  }
  
  .login-brand-features {
    gap: 24px;
  }
  
  .brand-feature-num {
    font-size: 20px;
  }
  
  .login-form-area {
    flex: 1 0 auto;
    padding: 32px 24px;
  }
  
  .login-form-header {
    margin-bottom: 28px;
  }
  
  .login-form-header h2 {
    font-size: 24px;
  }
  
  .login-form-card {
    max-width: 100%;
  }
}

/* 旧版兼容登录卡片保留（以防其他页面引用） */
.login-card {
  width: 420px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.login-title {
  margin-bottom: 24px;
  text-align: center;
}

.login-title h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.login-title p {
  margin: 0;
  color: #6b7280;
}

.admin-layout {
  height: 100vh;
  overflow: hidden;
}

.layui-layout-admin .admin-side {
  top: 0;
  width: 220px;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.layui-layout-admin .admin-body {
  top: 0;
  right: 0;
  bottom: 0;
  left: 220px;
}

.admin-side .layui-side-scroll {
  position: absolute;
  top: 60px;
  right: 0;
  bottom: 0;
  left: 0;
  width: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.admin-side .layui-side-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.admin-logo {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 60px;
  line-height: 60px;
  padding-left: 22px;
  box-sizing: border-box;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #0d2f6e 0%, #1a6dd3 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-logo span {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 8px;
}

.admin-side {
  background: #0a1a2e;
}

.admin-side .layui-nav-tree {
  width: 220px;
}

.admin-side .layui-nav {
  background: transparent;
}

/* 一级菜单标题 */
.admin-side .layui-nav-item > a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

/* 一级菜单标题 hover */
.admin-side .layui-nav-item > a:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(26, 109, 211, 0.08);
}

/* 已展开的一级菜单标题 */
.admin-side .layui-nav-itemed > a {
  color: rgba(255, 255, 255, 0.9);
}

/* 树菜单项统一样式 */
.admin-side .layui-nav-tree .layui-nav-item a {
  height: 44px;
  line-height: 44px;
  transition: all 0.2s;
}

/* 子菜单项 */
.admin-side .layui-nav-child dd a {
  padding-left: 44px;
  color: rgba(255, 255, 255, 0.5);
}

/* 子菜单项 hover */
.admin-side .layui-nav-child dd a:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(26, 109, 211, 0.08);
}

/* 当前激活的子菜单项 */
.admin-side .layui-nav-tree .layui-this > a {
  background: #1a6dd3 !important;
  color: #fff !important;
}

.admin-side .layui-nav-tree .layui-this > a:hover {
  background: #005fbd !important;
}

/* 展开图标颜色 */
.admin-side .layui-nav-more {
  color: rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.35);
}

.admin-side .layui-nav-itemed > a .layui-nav-more {
  border-top-color: rgba(255, 255, 255, 0.6);
}

/* 侧栏分割装饰 */
.admin-side .layui-nav-tree .layui-nav-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* 滚动条 */
.admin-side .layui-side-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.admin-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f5f7fa;
}

.admin-header {
  height: 64px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.admin-header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.4;
  gap: 6px;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #909399;
  font-size: 12px;
}

.admin-breadcrumb em {
  font-style: normal;
  color: #c0c4cc;
}

.admin-header-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.admin-header-title strong {
  font-size: 20px;
  color: #303133;
}

.admin-header-title span {
  color: #909399;
  font-size: 13px;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-notice {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f7fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-notice .layui-badge-dot {
  position: absolute;
  top: 10px;
  right: 10px;
}

.header-user {
  position: relative;
}

.header-user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.header-user-trigger:hover {
  background: #f5f7fa;
}

.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #008efe;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.header-user-meta {
  line-height: 1.3;
}

.header-user-meta strong,
.header-user-meta span {
  display: block;
}

.header-user-meta span {
  color: #909399;
  font-size: 12px;
}

.header-dropdown,
.notice-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 1000;
}

.header-dropdown.show,
.notice-dropdown.show {
  display: block;
}

.header-dropdown a,
.header-dropdown button {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: #303133;
  cursor: pointer;
}

.header-dropdown a:hover,
.header-dropdown button:hover {
  background: #f5f7fa;
}

.notice-wrap {
  position: relative;
}

.notice-dropdown {
  width: 260px;
}

.notice-item {
  padding: 10px 4px;
  border-bottom: 1px solid #f0f0f0;
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-item strong,
.notice-item span {
  display: block;
}

.notice-item span {
  margin-top: 6px;
  font-size: 12px;
  color: #909399;
}

.admin-iframe-wrap {
  flex: 1;
  padding: 16px 16px 0;
  box-sizing: border-box;
}

.admin-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.page-panel {
  padding: 16px;
  min-height: 100vh;
  box-sizing: border-box;
}

.page-full {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-card-fill {
  flex: 1;
}

.page-card-fill .layui-card-body,
.card-table-wrap .layui-card-body {
  display: flex;
  flex-direction: column;
}

.card-table-wrap {
  height: 100%;
}

.table-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.table-toolbar-left,
.table-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ebeef5;
  color: #909399;
  font-size: 12px;
}

.table-pagination .pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-pagination .layui-laypage {
  margin: 0;
 }

.table-actions {
  white-space: nowrap;
}

.table-actions .layui-btn {
  margin-right: 6px;
}

.dialog-form {
  padding: 20px 20px 6px 0;
}

.page-card {
  margin-bottom: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ==================== 统计卡片（含色彩变体） ==================== */
.stat-box {
  padding: 20px 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.stat-box:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-box p {
  margin: 0 0 4px;
  color: #909399;
  font-size: 13px;
}

.stat-box h3 {
  margin: 0 0 4px;
  font-size: 28px;
  color: #303133;
  line-height: 1.2;
}

.stat-box span {
  font-size: 12px;
  color: #909399;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 统计卡片颜色变体 */
.stat-blue .stat-icon { background: #edf4fd; color: #1a6dd3; }
.stat-blue h3 { color: #1a6dd3; }
.stat-green .stat-icon { background: #f0fdf4; color: #10b981; }
.stat-green h3 { color: #10b981; }
.stat-red .stat-icon { background: #fef2f2; color: #ef4444; }
.stat-red h3 { color: #ef4444; }
.stat-orange .stat-icon { background: #fff7ed; color: #f97316; }
.stat-orange h3 { color: #f97316; }

/* ==================== 工作台卡片通用 ==================== */
.dashboard-page {
  padding: 16px;
  box-sizing: border-box;
}

.dashboard-row {
  margin-top: 16px;
}

.dashboard-card {
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
}
.dashboard-card .layui-card-header {
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.card-header-icon { font-size: 18px; }
.warning-icon { color: #ef4444; }
.warranty-icon { color: #f59e0b; }
.status-icon { color: #008efe; }
.device-icon { color: #8b5cf6; }
.quick-icon { color: #10b981; }
.todo-icon { color: #6366f1; }

.card-header-link {
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color 0.2s;
}
.card-header-link:hover { color: #1a6dd3; }

/* ==================== 通用标签/状态 ==================== */
.dash-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.tag-danger { background: #fef2f2; color: #dc2626; }
.tag-warning { background: #fffbeb; color: #d97706; }
.tag-success { background: #f0fdf4; color: #16a34a; }
.tag-info { background: #edf4fd; color: #008efe; }
.tag-gray { background: #f3f4f6; color: #6b7280; }

.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.dash-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-danger::before { background: #ef4444; }
.dot-danger { color: #dc2626; }
.dot-warning::before { background: #f59e0b; }
.dot-warning { color: #d97706; }
.dot-success::before { background: #10b981; color: #16a34a; }

.dash-badge-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.dash-link {
  color: #1a6dd3;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.dash-link:hover { opacity: 0.7; }

.dashboard-time {
  color: #6b7280;
  font-size: 13px;
}

/* ==================== 质保到期 ==================== */
.warranty-list {
  padding: 4px 0;
}
.warranty-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
}
.warranty-item:last-child { border-bottom: 0; }
.warranty-item:hover { background: #fafbfc; }
.warranty-urgent { border-left: 3px solid #ef4444; }
.warranty-warning { border-left: 3px solid #f59e0b; }
.warranty-normal { border-left: 3px solid #10b981; }

.warranty-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.warranty-device { font-size: 14px; }

.warranty-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.warranty-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.warranty-progress-bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
.warranty-progress-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  min-width: 4px;
}
.warranty-days {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  flex-shrink: 0;
}
.warranty-days span { color: #9ca3af; }
.warranty-days strong { color: #1f2937; }

/* ==================== 设备状态分布 ==================== */
.status-chart {
  margin-bottom: 16px;
}
.status-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.status-bar-row:last-child { margin-bottom: 0; }
.status-label {
  width: 48px;
  font-size: 13px;
  color: #374151;
  flex-shrink: 0;
}
.status-bar-track {
  flex: 1;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.status-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.status-count {
  width: 36px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-align: right;
  flex-shrink: 0;
}
.status-summary {
  display: flex;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}
.status-summary-item {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-summary-item strong {
  color: #1f2937;
}

/* ==================== 快捷入口 ==================== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  background: #fafbfc;
  text-decoration: none;
  color: #374151;
  font-size: 12px;
  transition: all 0.3s;
}
.quick-action-item i { font-size: 24px; color: #6b7280; transition: color 0.3s; }
.quick-action-item:hover {
  border-color: #1a6dd3;
  background: #edf4fd;
  color: #1a6dd3;
}
.quick-action-item:hover i { color: #1a6dd3; }

/* ==================== 待办事项 ==================== */
.todo-list { padding: 4px 0; }
.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  transition: background 0.2s;
}
.todo-item:last-child { border-bottom: 0; }
.todo-item:hover { background: #f9fafb; }
.todo-item .layui-icon-right {
  margin-left: auto;
  font-size: 12px;
  color: #d1d5db;
}
.todo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.todo-dot.danger { background: #ef4444; }
.todo-dot.warning { background: #f59e0b; }
.todo-dot.info { background: #008efe; }
.todo-dot.gray { background: #9ca3af; }
.todo-text strong { color: #1f2937; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .stat-box { padding: 14px 16px; gap: 12px; }
  .stat-box h3 { font-size: 22px; }
  .stat-icon { width: 42px; height: 42px; font-size: 20px; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tree-table-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
}

.tree-table-layout.stretch {
  flex: 1;
}

.tree-table-layout.stretch > .layui-card {
  height: 100%;
}

.layui-tree-entry .layui-tree-txt {
  font-size: 14px;
}

.info-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-kv .item {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #ebeef5;
  border-radius: 8px;
}

.info-kv .item label {
  display: block;
  color: #909399;
  margin-bottom: 8px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.detail-hero-main,
.detail-hero-side {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  padding: 20px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-title-row h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #303133;
}

.detail-title-row p {
  margin: 0;
  color: #909399;
}

.detail-switcher {
  width: 240px;
}

.detail-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-highlight-card {
  padding: 16px;
  background: linear-gradient(180deg, #f8fbff, #f4f8fd);
  border: 1px solid #e6eef8;
  border-radius: 10px;
}

.detail-highlight-card span {
  display: block;
  color: #909399;
  margin-bottom: 8px;
  font-size: 12px;
}

.detail-highlight-card strong {
  color: #1f2d3d;
  font-size: 18px;
  line-height: 1.4;
}

.detail-panel-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
}

.detail-reminders {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-reminder {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #ebeef5;
  background: #fafafa;
}

.detail-reminder label {
  display: block;
  margin-bottom: 6px;
  color: #909399;
  font-size: 12px;
}

.detail-reminder strong {
  font-size: 16px;
}

.detail-reminder.tone-safe {
  background: #f0f9eb;
  border-color: #d9f0c7;
  color: #67c23a;
}

.detail-reminder.tone-warning {
  background: #fff7e6;
  border-color: #ffe0a3;
  color: #e6a23c;
}

.detail-reminder.tone-danger {
  background: #fef0f0;
  border-color: #f7c4c4;
  color: #f56c6c;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fef0f0;
  color: #f56c6c;
  font-size: 12px;
}

.detail-tag.safe {
  background: #f0f9eb;
  color: #67c23a;
}

/* 区段标题 */
.detail-block-title {
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 4px solid #1a6dd3;
  font-size: 16px;
  font-weight: 700;
  color: #303133;
  line-height: 1.3;
}

/* Tab 栏 */
.detail-tab-bar {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: #f4f6f9;
  border-radius: 10px;
}

.detail-tab {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 14px;
  color: #606266;
  background: transparent;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.detail-tab:hover {
  color: #1a6dd3;
  background: rgba(26, 109, 211, 0.06);
}

.detail-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #008efe, #2da68f);
  box-shadow: 0 2px 8px rgba(26, 109, 211, 0.25);
}

/* Tab 面板 */
.detail-tab-panel {
  display: none;
}

.detail-tab-panel.active {
  display: block;
}

.detail-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-section-card {
  margin-bottom: 0;
}

.detail-group-list {
  display: grid;
  gap: 14px;
}

.detail-subgroup {
  padding: 14px;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  background: #fbfdff;
}

.detail-subgroup-title {
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #008efe;
  color: #303133;
  font-size: 14px;
  font-weight: 600;
}

.detail-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-data-item {
  padding: 14px 16px;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  background: #f8fafc;
}

.detail-data-item label {
  display: block;
  margin-bottom: 6px;
  color: #909399;
  font-size: 12px;
}

.detail-data-item strong {
  color: #303133;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-all;
}

/* ==================== 找回密码页样式 ==================== */
/* 步骤指示器 */
.forgot-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 0;
}

.forgot-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.forgot-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.forgot-step span {
  font-size: 13px;
  color: #9ca3af;
  white-space: nowrap;
  transition: color 0.3s;
}

.forgot-step.active .forgot-step-circle {
  border-color: #1a6dd3;
  background: #1a6dd3;
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,109,211,0.3);
}

.forgot-step.active span {
  color: #1a6dd3;
  font-weight: 600;
}

.forgot-step.done .forgot-step-circle {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.forgot-step.done .forgot-step-circle::after {
  content: '✓';
}

.forgot-step.done span {
  color: #10b981;
}

.forgot-step-line {
  width: 60px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 8px;
  align-self: flex-start;
  margin-top: 18px;
  transition: background 0.3s;
}

.forgot-step.done + .forgot-step-line {
  background: #10b981;
}

/* 验证码输入行 */
.forgot-code-row {
  display: flex;
  gap: 12px;
  align-items: center;
  border: none !important;
}

.forgot-code-row .login-input-bar {
  display: none;
}

.forgot-code-input {
  flex: 1;
  position: relative;
}

.forgot-code-btn {
  flex-shrink: 0;
  height: 48px;
  padding: 0 18px;
  border: 1px solid #1a6dd3;
  border-radius: 10px;
  background: #fff;
  color: #1a6dd3;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.forgot-code-btn:hover {
  background: #1a6dd3;
  color: #fff;
}

.forgot-code-btn:disabled {
  border-color: #e5e7eb;
  color: #9ca3af;
  background: #f9fafb;
  cursor: not-allowed;
}

/* 密码强度指示 */
.forgot-pwd-tips {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 12px;
}

.pwd-strength-bar {
  flex: 1;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.pwd-strength-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.pwd-strength-bar i.weak { background: #f56c6c; }
.pwd-strength-bar i.medium { background: #e6a23c; }
.pwd-strength-bar i.strong { background: #10b981; }

.pwd-strength-text {
  color: #9ca3af;
  flex-shrink: 0;
}

/* 返回链接 */
.forgot-back-link {
  text-align: center;
  margin-top: 16px;
}

.forgot-back-link a {
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.forgot-back-link a:hover {
  color: #1a6dd3;
}

/* 找回密码响应式 */
@media (max-width: 768px) {
  .forgot-step-line {
    width: 36px;
    margin: 0 4px;
  }
  
  .forgot-step span {
    font-size: 11px;
  }
  
  .forgot-code-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .forgot-code-btn {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .layui-layout-admin .admin-side {
    width: 200px;
  }

  .layui-layout-admin .admin-body {
    left: 200px;
  }

  .admin-side .layui-side-scroll,
  .admin-side .layui-nav-tree {
    width: 200px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tree-table-layout {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  .detail-section-grid,
  .detail-highlight-grid,
  .detail-data-grid {
    grid-template-columns: 1fr;
  }

  .detail-switcher {
    width: 100%;
  }

  .detail-title-row {
    flex-direction: column;
  }
}
<｜｜DSML｜｜parameter>

