@charset "utf-8";
/********************************
 * 后台管理系统响应式UI优化
 * 蓝黄色调设计系统
 * Created By Deerflow
 *******************************/

/* ==================== 色彩系统定义 ==================== */
:root {
  /* 主色调 - 蓝色系 */
  --primary-blue: #1E88E5;          /* 主蓝色 */
  --primary-blue-dark: #1565C0;     /* 深蓝色 */
  --primary-blue-light: #42A5F5;    /* 浅蓝色 */
  --primary-blue-hover: #0D47A1;    /* hover蓝色 */
  
  /* 辅助色 - 黄色系 */
  --accent-yellow: #FFC107;         /* 主黄色 */
  --accent-yellow-dark: #FFA000;    /* 深黄色 */
  --accent-yellow-light: #FFD54F;   /* 浅黄色 */
  --accent-yellow-hover: #FF8F00;   /* hover黄色 */
  
  /* 中性色系 */
  --neutral-dark: #263238;          /* 深灰 */
  --neutral-medium: #546E7A;        /* 中灰 */
  --neutral-light: #90A4AE;         /* 浅灰 */
  --neutral-lighter: #ECEFF1;       /* 更浅灰 */
  --neutral-white: #FFFFFF;         /* 白色 */
  
  /* 功能色 */
  --success-green: #4CAF50;
  --warning-orange: #FF9800;
  --danger-red: #F44336;
  --info-cyan: #00BCD4;
  
  /* 背景色 */
  --bg-primary: #F5F7FA;
  --bg-secondary: #E8EDF2;
  --bg-card: #FFFFFF;
  
  /* 文字色 */
  --text-primary: #263238;
  --text-secondary: #546E7A;
  --text-light: #90A4AE;
  --text-white: #FFFFFF;
  
  /* 边框色 */
  --border-light: #E0E6ED;
  --border-medium: #CFD8DC;
  
  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(38, 50, 56, 0.1);
  --shadow-md: 0 4px 8px rgba(38, 50, 56, 0.15);
  --shadow-lg: 0 8px 16px rgba(38, 50, 56, 0.2);
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
  --gradient-accent: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
  --gradient-hero: linear-gradient(135deg, #1565C0 0%, #1E88E5 50%, #42A5F5 100%);
}

/* ==================== 全局样式重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== 响应式容器系统 ==================== */
.admin-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-main-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ==================== 顶部导航栏 ==================== */
.topbar-wrap {
  background: var(--gradient-hero);
  height: 60px;
  line-height: 60px;
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 15px;
  transition: all 0.3s ease;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sidebar-toggle-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.sidebar-toggle-btn .toggle-icon {
  width: 20px;
  height: 3px;
  background: var(--accent-yellow);
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
}

.sidebar-toggle-btn .toggle-icon::before,
.sidebar-toggle-btn .toggle-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 3px;
  background: var(--accent-yellow);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sidebar-toggle-btn .toggle-icon::before {
  top: -7px;
}

.sidebar-toggle-btn .toggle-icon::after {
  top: 7px;
}

.collapsed .sidebar-toggle-btn .toggle-icon {
  transform: rotate(45deg);
}

.collapsed .sidebar-toggle-btn .toggle-icon::before {
  transform: rotate(90deg) translate(-7px, 0);
}

.collapsed .sidebar-toggle-btn .toggle-icon::after {
  opacity: 0;
}

.topbar-logo-wrap {
  display: flex;
  align-items: center;
}

.topbar-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-yellow);
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.topbar-logo:hover {
  color: var(--accent-yellow-light);
  transform: scale(1.05);
}

.topbar-right {
  display: flex;
  align-items: center;
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.admin-info:hover {
  background: rgba(255, 255, 255, 0.15);
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-avatar .avatar-icon {
  font-size: 18px;
  color: var(--primary-blue-dark);
}

.admin-details {
  display: flex;
  flex-direction: column;
}

.admin-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.admin-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-btn.btn-edit {
  background: rgba(255, 193, 7, 0.2);
  color: var(--accent-yellow);
}

.action-btn.btn-edit:hover {
  background: rgba(255, 193, 7, 0.3);
  transform: translateY(-2px);
}

.action-btn.btn-logout {
  background: rgba(244, 67, 54, 0.2);
  color: #FFCDD2;
}

.action-btn.btn-logout:hover {
  background: rgba(244, 67, 54, 0.3);
  transform: translateY(-2px);
}

.navbar-list {
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar-list li a {
  color: var(--text-white);
  padding: 8px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-list li a:hover {
  background: rgba(255, 193, 7, 0.2);
  color: var(--accent-yellow);
  transform: translateY(-2px);
}

.navbar-list li a.on {
  background: var(--accent-yellow);
  color: var(--primary-blue-dark);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.top-info-wrap {
  display: flex;
  align-items: center;
}

.top-info-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-info-list li a {
  color: var(--text-white);
  padding: 8px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 13px;
}

.top-info-list li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-yellow);
}

/* ==================== 侧边栏遮罩层 ==================== */
.sidebar-mask {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  transition: opacity 0.3s ease;
}

@media screen and (max-width: 767px) {
  .sidebar-mask.active {
    display: block;
  }
}

/* ==================== 侧边栏导航 ==================== */
.sidebar-wrap {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.sidebar-wrap.collapsed {
  width: 60px;
}

.sidebar-wrap.collapsed .sidebar-title h1 {
  display: none;
}

.sidebar-wrap.collapsed .sidebar-list li a span {
  display: none;
}

.sidebar-wrap.collapsed .sidebar-list li a {
  justify-content: center;
  padding: 12px 10px;
}

.sidebar-wrap.collapsed .sub-menu {
  position: absolute;
  left: 60px;
  top: 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.sidebar-wrap.collapsed .sidebar-list li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
}

.sidebar-wrap.collapsed .sub-menu li a {
  padding: 10px 15px;
  justify-content: flex-start;
}

.sidebar-wrap.collapsed .sub-menu li a span {
  display: inline;
}

.sidebar-title {
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  background: var(--gradient-primary);
  color: var(--text-white);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent-yellow);
}

.sidebar-title h1 {
  font-weight: 600;
  font-size: 18px;
}

.sidebar-toggle {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--text-white);
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--accent-yellow);
}

.sidebar-toggle span {
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: all 0.3s ease;
}

.sidebar-toggle span::before,
.sidebar-toggle span::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.sidebar-toggle span::before {
  top: -5px;
}

.sidebar-toggle span::after {
  top: 5px;
}

.sidebar-wrap.collapsed .sidebar-toggle span {
  transform: rotate(45deg);
}

.sidebar-wrap.collapsed .sidebar-toggle span::before {
  transform: rotate(90deg) translate(-5px, 0);
}

.sidebar-wrap.collapsed .sidebar-toggle span::after {
  opacity: 0;
}

.sidebar-content {
  padding: 10px 0;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.sidebar-list li:hover {
  background: var(--bg-secondary);
}

.sidebar-list li a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  gap: 10px;
}

.sidebar-list li a:hover {
  color: var(--primary-blue);
  background: rgba(30, 136, 229, 0.05);
  padding-left: 25px;
}

.sidebar-list li a .icon-font {
  color: var(--primary-blue);
  font-size: 16px;
  transition: all 0.3s ease;
}

.sidebar-list li a:hover .icon-font {
  color: var(--accent-yellow);
  transform: scale(1.2);
}

.sub-menu {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 5px 0;
  display: none;
  animation: slideDown 0.3s ease;
}

.sidebar-list li:hover .sub-menu {
  display: block;
}

.sub-menu li {
  padding-left: 30px;
  border-bottom: none;
}

.sub-menu li.on {
  background: var(--gradient-primary);
}

.sub-menu li.on a {
  color: var(--text-white);
  font-weight: 600;
}

.sub-menu li.on .icon-font {
  color: var(--accent-yellow);
}

.sub-menu li a {
  padding: 10px 15px;
  font-size: 13px;
  color: var(--text-secondary);
}

.sub-menu li a:hover {
  color: var(--primary-blue);
  background: rgba(30, 136, 229, 0.1);
}

.sub-menu .icon-font {
  font-size: 12px;
  color: var(--neutral-light);
}

/* ==================== 主内容区 ==================== */
.main-wrap {
  margin-left: 260px;
  margin-top: 60px;
  padding: 20px;
  background: var(--bg-primary);
  min-height: calc(100vh - 60px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.sidebar-wrap.collapsed + .main-wrap {
  margin-left: 60px;
}

.main-wrap.sidebar-collapsed {
  margin-left: 60px;
}

/* ==================== 仪表板头部 ==================== */
.dashboard-header {
  margin-bottom: 25px;
  padding: 25px 30px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-blue);
}

.dashboard-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.dashboard-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* ==================== 快捷操作区域 ==================== */
.short-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  background: var(--bg-card);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}

.shortcut-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.shortcut-icon {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.shortcut-item:hover .shortcut-icon {
  color: var(--accent-yellow);
  transform: scale(1.2);
}

.shortcut-text {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* ==================== 统计卡片 ==================== */
.stats-wrap {
  margin-top: 25px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--text-white);
}

.stat-icon.stat-blue {
  background: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
}

.stat-icon.stat-yellow {
  background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
  color: var(--primary-blue-dark);
}

.stat-icon.stat-green {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

.stat-icon.stat-orange {
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* ==================== 面包屑导航 ==================== */
.crumb-wrap {
  background: var(--bg-card);
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-blue);
}

.crumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.crumb-list a {
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.crumb-list a:hover {
  color: var(--accent-yellow);
  text-decoration: underline;
}

.crumb-step {
  color: var(--neutral-light);
  font-weight: 300;
}

.crumb-name {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==================== 搜索区域 ==================== */
.search-wrap {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--accent-yellow);
}

.search-tab {
  width: 100%;
}

.search-tab tr {
  line-height: 40px;
}

.search-tab th {
  text-align: right;
  padding-right: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  width: 120px;
}

.search-tab td {
  padding: 0 10px;
}

/* ==================== 结果展示区 ==================== */
.result-wrap {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 15px;
}

.result-title h1 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-title h1::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent-yellow);
  border-radius: 2px;
}

.result-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-content {
  padding: 10px 0;
}

/* ==================== 表格样式 ==================== */
.result-tab,
.insert-tab {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.result-tab th,
.insert-tab th {
  background: var(--gradient-primary);
  color: var(--text-white);
  font-weight: 600;
  padding: 15px;
  text-align: left;
  border-bottom: 2px solid var(--accent-yellow);
  font-size: 14px;
}

.result-tab td,
.insert-tab td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.result-tab tr {
  transition: all 0.3s ease;
}

.result-tab tr:nth-child(odd) {
  background: var(--bg-secondary);
}

.result-tab tr:hover {
  background: rgba(30, 136, 229, 0.05);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.result-tab th.tc,
.result-tab td.tc {
  text-align: center;
}

.mobile-card-list {
  display: none;
}

.insert-tab th {
  text-align: right;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  width: 150px;
  border-right: 2px solid var(--primary-blue);
}

.insert-tab td {
  background: var(--bg-card);
}

/* ==================== 按钮系统 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--primary-blue-dark);
  border: 2px solid transparent;
}

.btn-accent:hover {
  background: var(--accent-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-success {
  background: var(--success-green);
  color: var(--text-white);
}

.btn-success:hover {
  background: #388E3C;
  transform: translateY(-2px);
}

.btn-warning {
  background: var(--warning-orange);
  color: var(--text-white);
}

.btn-warning:hover {
  background: #F57C00;
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger-red);
  color: var(--text-white);
}

.btn-danger:hover {
  background: #D32F2F;
  transform: translateY(-2px);
}

.btn-info {
  background: var(--info-cyan);
  color: var(--text-white);
}

.btn-info:hover {
  background: #0097A7;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--text-white);
}

/* 按钮尺寸 */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ==================== 表单元素 ==================== */
.common-text,
.admin_input_style {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid var(--border-medium);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.common-text:focus,
.admin_input_style:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1), var(--shadow-md);
  background: var(--neutral-white);
  outline: none;
}

.common-text:hover,
.admin_input_style:hover {
  border-color: var(--primary-blue-light);
}

textarea.common-text {
  min-height: 100px;
  resize: vertical;
}

select.common-text {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23546E7A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* 必填项标识 */
.require-red {
  color: var(--danger-red);
  font-weight: 600;
  margin-right: 5px;
}

/* ==================== 分页系统 ==================== */
.list-page {
  padding: 20px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.list-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  padding: 5px 10px;
  border: 2px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 13px;
}

.list-page a:hover {
  background: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.list-page .current {
  background: var(--gradient-accent);
  color: var(--primary-blue-dark);
  border: 2px solid var(--accent-yellow);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* ==================== 快捷操作区 ==================== */
.short-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.short-wrap a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 2px solid var(--border-light);
}

.short-wrap a:hover {
  background: var(--gradient-primary);
  color: var(--text-white);
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.short-wrap a i {
  color: var(--primary-blue);
  font-size: 16px;
}

.short-wrap a:hover i {
  color: var(--accent-yellow);
}

/* ==================== 系统信息列表 ==================== */
.sys-info-list {
  list-style: none;
}

.sys-info-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.sys-info-list li:hover {
  background: var(--bg-secondary);
  padding-left: 10px;
}

.res-lab {
  display: inline-block;
  min-width: 150px;
  color: var(--text-secondary);
  font-weight: 500;
}

.res-info {
  color: var(--text-primary);
  font-size: 15px;
}

/* ==================== 登录页面样式 ==================== */
.admin_login_wrap {
  max-width: 420px;
  margin: 80px auto 0;
  padding: 40px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--accent-yellow);
}

.admin_login_wrap h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.adming_login_border {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 8px;
  border: 2px solid var(--border-light);
}

.admin_input {
  margin-top: 20px;
}

.admin_items li {
  margin-bottom: 20px;
  list-style: none;
}

.admin_input label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
}

.admin_copyright {
  text-align: center;
  margin-top: 30px;
  color: var(--text-light);
  font-size: 12px;
}

.admin_copyright a {
  color: var(--primary-blue);
}

.admin_copyright a:hover {
  color: var(--accent-yellow);
}

/* ==================== 动画效果 ==================== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================== 响应式设计 ==================== */
/* 大屏幕设备 (桌面电脑, 1200px 及以上) */
@media screen and (min-width: 1200px) {
  .sidebar-wrap {
    width: 260px;
  }
  
  .main-wrap {
    margin-left: 260px;
    padding: 30px;
  }
}

/* 中等屏幕设备 (平板电脑, 992px 到 1199px) */
@media screen and (max-width: 1199px) and (min-width: 992px) {
  .sidebar-wrap {
    width: 220px;
  }
  
  .main-wrap {
    margin-left: 220px;
    padding: 25px;
  }
  
  .topbar-logo {
    font-size: 18px;
  }
  
  .navbar-list li a {
    padding: 8px 15px;
  }
}

/* 小屏幕设备 (平板, 768px 到 991px) */
@media screen and (max-width: 991px) and (min-width: 768px) {
  .sidebar-wrap {
    width: 200px;
  }
  
  .main-wrap {
    margin-left: 200px;
    padding: 20px;
  }
  
  .topbar-logo {
    font-size: 16px;
  }
  
  .navbar-list li a {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .top-info-list li a {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .result-tab th,
  .result-tab td {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* 超小屏幕设备 (手机, 576px 到 767px) */
@media screen and (max-width: 767px) and (min-width: 576px) {
  .sidebar-wrap {
    width: 60px;
    transform: translateX(-100%);
  }
  
  .sidebar-wrap.mobile-open {
    transform: translateX(0);
    width: 200px;
  }
  
  .main-wrap {
    margin-left: 0;
    padding: 15px;
  }
  
  .topbar-wrap {
    height: 50px;
    line-height: 50px;
    padding: 0 15px;
  }
  
  .topbar-logo {
    font-size: 14px;
  }
  
  .navbar-list {
    display: none;
  }
  
  .top-info-list li a {
    padding: 5px 8px;
    font-size: 11px;
  }
  
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
  }
  
  .result-wrap,
  .search-wrap,
  .crumb-wrap {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .result-tab th,
  .result-tab td {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .insert-tab th {
    width: 120px;
    font-size: 12px;
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .short-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .shortcut-item {
    padding: 18px 10px;
  }
  
  .shortcut-icon {
    font-size: 24px;
    margin-bottom: 6px;
  }
  
  .shortcut-text {
    font-size: 12px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .stat-icon {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
  
  .stat-value {
    font-size: 22px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .admin_login_wrap {
    margin: 40px 20px 0;
    padding: 30px 20px;
  }
  
  .admin_login_wrap h1 {
    font-size: 22px;
  }
}

/* 极小屏幕设备 (小手机, 576px 以下) */
@media screen and (max-width: 575px) {
  .sidebar-wrap {
    width: 100%;
    transform: translateX(-100%);
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    background: var(--bg-card);
  }
  
  .sidebar-wrap.mobile-open {
    transform: translateX(0);
  }
  
  .main-wrap {
    margin-left: 0;
    margin-top: 50px;
    padding: 10px;
  }
  
  .topbar-wrap {
    height: 50px;
    line-height: 50px;
    padding: 0 10px;
  }
  
  .topbar-logo {
    font-size: 12px;
  }
  
  .navbar-list,
  .top-info-list,
  .admin-details {
    display: none;
  }
  
  .admin-info {
    padding: 5px 10px;
  }
  
  .admin-avatar {
    width: 32px;
    height: 32px;
  }
  
  .admin-avatar .avatar-icon {
    font-size: 16px;
  }
  
  .action-btn {
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px;
  }
  
  .action-btn span {
    display: none;
  }
  
  .dashboard-header {
    padding: 15px 20px;
  }
  
  .dashboard-title {
    font-size: 18px;
  }
  
  .dashboard-subtitle {
    font-size: 12px;
  }
  
  .short-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .shortcut-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    padding: 15px;
  }
  
  .shortcut-icon {
    font-size: 24px;
    margin-bottom: 0;
  }
  
  .shortcut-text {
    font-size: 14px;
    text-align: left;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 18px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
  }
  
  .result-wrap,
  .search-wrap,
  .crumb-wrap {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
  }
  
  .crumb-list {
    font-size: 12px;
    flex-wrap: wrap;
  }
  
  .search-tab th {
    width: 80px;
    font-size: 12px;
  }
  
  .result-tab {
    font-size: 11px;
  }
  
  .result-tab th,
  .result-tab td {
    padding: 6px 8px;
  }
  
  /* 表格响应式处理 */
  .result-tab {
    display: none;
  }
  
  /* 移动端卡片式布局 */
  .mobile-card-list {
    display: block;
  }
  
  .mobile-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
  }
  
  .mobile-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  
  .mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  .mobile-card-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-right: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .mobile-card-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
  }
  
  .mobile-card-badge.recommend {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-green);
  }
  
  .mobile-card-badge.not-recommend {
    background: rgba(144, 164, 174, 0.1);
    color: var(--text-light);
  }
  
  .mobile-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-secondary);
  }
  
  .mobile-card-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .mobile-card-info-item .icon {
    color: var(--primary-blue);
  }
  
  .mobile-card-image {
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .mobile-card-image img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
  }
  
  .mobile-card-actions {
    display: flex;
    gap: 10px;
  }
  
  .mobile-card-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    border-radius: 8px;
  }
  
  .insert-tab {
    display: block;
  }
  
  .insert-tab tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
  }
  
  .insert-tab th,
  .insert-tab td {
    width: 100%;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  
  .insert-tab th {
    background: var(--bg-secondary);
    padding: 10px;
  }
  
  .insert-tab td {
    padding: 10px;
  }
  
  .btn {
    padding: 5px 10px;
    font-size: 11px;
    width: 100%;
    margin-bottom: 5px;
  }
  
  .btn-block {
    width: 100%;
  }
  
  .short-wrap {
    flex-direction: column;
    gap: 5px;
  }
  
  .short-wrap a {
    width: 100%;
    padding: 8px 12px;
    font-size: 11px;
  }
  
  .sys-info-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .res-lab {
    min-width: auto;
    font-size: 12px;
  }
  
  .res-info {
    font-size: 13px;
  }
  
  .list-page {
    padding: 15px 0;
    flex-wrap: wrap;
  }
  
  .list-page a {
    min-width: 30px;
    height: 30px;
    font-size: 11px;
  }
  
  .admin_login_wrap {
    margin: 20px 10px 0;
    padding: 20px 15px;
    border-radius: 8px;
  }
  
  .admin_login_wrap h1 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .adming_login_border {
    padding: 20px 15px;
  }
  
  .admin_items li {
    margin-bottom: 15px;
  }
  
  .admin_input label {
    font-size: 12px;
  }
  
  .admin_input_style {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .common-text {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ==================== 辅助类 ==================== */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.hidden {
  display: none !important;
}

.visible-mobile {
  display: none;
}

.visible-desktop {
  display: block;
}

@media screen and (max-width: 767px) {
  .visible-mobile {
    display: block;
  }
  
  .visible-desktop {
    display: none;
  }
}

/* ==================== Deerflow品牌签名 ==================== */
.deerflow-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--gradient-accent);
  color: var(--primary-blue-dark);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.deerflow-badge:hover {
  background: var(--accent-yellow-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}

.deerflow-badge::before {
  content: '✦';
  color: var(--primary-blue);
  font-size: 14px;
}

/* ==================== 打印样式 ==================== */
@media print {
  .sidebar-wrap,
  .topbar-wrap,
  .deerflow-badge,
  .btn {
    display: none !important;
  }
  
  .main-wrap {
    margin: 0;
    padding: 20px;
  }
  
  .result-tab,
  .insert-tab {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* ==================== 无障碍设计 ==================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #003366;
    --accent-yellow: #FFD700;
    --text-primary: #000000;
    --bg-primary: #FFFFFF;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* ==================== 浏览器兼容性 ==================== */
/* IE11 兼容性 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .sidebar-wrap {
    display: block;
  }
  
  .main-wrap {
    display: block;
    margin-left: 260px;
  }
  
  .btn {
    display: inline-block;
  }
}

/* Firefox 特定样式 */
@-moz-document url-prefix() {
  .sidebar-wrap {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--bg-secondary);
  }
}

/* Safari/Chrome 滚动条样式 */
.sidebar-wrap::-webkit-scrollbar {
  width: 8px;
}

.sidebar-wrap::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.sidebar-wrap::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

.sidebar-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue-dark);
}