/* 管理系统页面样式（由 pages/admin-system.html 内联样式迁移） */

/* 管理系统页面头部高度自定义 */
.page-topbar {
  height: 60px; /* 管理系统专用高度 - 现在可以修改了 */
}

/* 管理系统专用容器 */
.admin-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* 页面内容与卡片 */
.page-content {
  padding: 0;
  width: 100%;
  max-width: none;
  margin-top: 0;
}
.page-header { text-align: center; margin-bottom: var(--spacing-8); }
.page-title { font-size: var(--font-size-3xl); color: #333333; margin-bottom: var(--spacing-4); }
.page-description { font-size: var(--font-size-lg); color: #666666; }

/* 管理系统布局 */
.admin-dashboard {
  display: flex;
  gap: var(--spacing-6);
  min-height: 600px;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 侧边栏样式 */
.admin-sidebar {
  width: 280px;
  background: #525d63;
  border: none;
  border-radius: 0;
  padding: var(--spacing-4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: calc(100vh - 60px);
  height: auto;
  position: sticky;
  top: 60px;
  margin-left: 0;
  flex-shrink: 0;
}

.sidebar-nav {
  width: 100%;
  max-height: calc(100vh - 60px - 2 * var(--spacing-4));
  overflow-y: auto;
  overflow-x: hidden;
}

/* 自定义滚动条样式 - 只在需要时显示 */
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  margin-bottom: var(--spacing-2);
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: var(--spacing-3) var(--spacing-4);
  text-decoration: none;
  color: #666666;
  /* border-radius: var(--radius-md); */
  transition: all var(--transition-base);
  font-size: var(--font-size-base);
  margin-left: -15px;
  margin-right: -15px;
  padding-left: calc(var(--spacing-4) + 15px);
  padding-right: calc(var(--spacing-4) + 15px);
  
}

.sidebar-link:hover {
  background-color: #363636;
  color: #333333;
  border-left: none;
  border-right: none;

}

.sidebar-item.active .sidebar-link {
  /* background-color: #383737; */
  color: #ffffff;
}

.sidebar-icon {
  font-size: 1.2rem;
  margin-right: var(--spacing-3);
  width: 24px;
  text-align: center;
}

.sidebar-text {
  font-weight: var(--font-weight-medium);
  color: #ffffff;
  flex: 1;
}

.sidebar-arrow {
  font-size: 0.8rem;
  color: #ffffff;
  margin-left: auto;
  transition: transform var(--transition-base);
  transform: none;
  cursor: pointer;
}

/* 展开状态的箭头旋转 */
.sidebar-item.expanded .sidebar-arrow {
  transform: rotate(180deg);
}

/* 子菜单样式 */
.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: rgba(0, 0, 0, 0.1);
}

.sidebar-item.expanded .submenu {
  max-height: 200px;
  transition: max-height 0.3s ease-in;
}

.submenu-item {
  margin: 0;
}

.submenu-link {
  display: block;
  padding: var(--spacing-2) var(--spacing-4);
  padding-left: calc(var(--spacing-4) + 24px + var(--spacing-3) + 15px);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  background-color: #525d63;
}

.submenu-link:hover {
  color: #ff7a45;
  background-color: #363636;
}

/* 子菜单活跃状态 */
.submenu-item.active .submenu-link {
  background-color: #ff7a45;
  color: #ffffff;
}

/* 主内容区域 */
.admin-main-content {
  flex: 1;
  background: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-right: var(--spacing-4);
  position: relative;
}

/* 标签容器样式 */
.tab-container {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
  flex-wrap: wrap;
}

/* 欢迎标签样式 */
.welcome-badge {
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  opacity: 1;
  transform: scale(1);
  border: 1px solid #000000;
  position: relative;
  cursor: pointer;
}

/* 标签悬停效果 */
.welcome-badge:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 当前页面标签样式 - 默认为非活跃状态 */
.current-page-badge {
  /* 移除绝对定位，使用flex布局自动排列 */
  border: 1px solid #000000;
}

/* 活跃标签增强效果 */
.welcome-badge.active-tab {
  background-color: #fff5f0 !important;
  border: 2px solid #ff7a45 !important;
  box-shadow: 0 2px 10px rgba(255, 122, 69, 0.2) !important;
}


/* 首页欢迎页面的静态关闭按钮也使用橙色 */
#welcome .welcome-close-static {
  border: 1px solid #ff7a45 !important;
}

#welcome .welcome-close-static .close-x {
  color: #ff7a45 !important;
}

/* 默认隐藏所有标签的圆点 */
.welcome-badge .welcome-dot {
  display: none;
}

/* 活跃标签显示圆点（包括欢迎标签和子菜单标签） */
.welcome-badge.active-tab .welcome-dot {
  display: flex !important;
  align-self: center;
}

/* 活跃标签使用橙色主题 */
.welcome-badge.active-tab {
  border: 1px solid #ff7a45 !important;
}

.welcome-badge.active-tab .welcome-dot {
  background: #ff7a45 !important;
}

.welcome-badge.active-tab .welcome-text {
  color: #ff7a45 !important;
}

.welcome-badge.active-tab .welcome-close {
  border: 1px solid #ff7a45 !important;
}

.welcome-badge.active-tab .close-x {
  color: #ff7a45 !important;
}

/* 左边的点 */
.welcome-dot {
  width: 6px;
  height: 6px;
  background: #000000;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 欢迎文字 */
.welcome-text {
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

/* 右边的圆圈和X */
.welcome-close {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #000000;
  margin-left: 4px;
  text-decoration: none;
}

.welcome-close:hover {
  background: #f8f8f8;
}

.close-x {
  color: #000000;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

/* 首页按钮样式 */
.welcome-home {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #ff7a45;
  margin-left: 4px;
  text-decoration: none;
}

.welcome-home:hover {
  background: #fff5f0;
  transform: scale(1.1);
}

.home-icon {
  font-size: 10px;
  line-height: 1;
}

/* 静态关闭按钮样式（不可点击） */
.welcome-close-static {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000000;
  margin-left: 4px;
  cursor: default;
}

/* 欢迎页面视频样式 */
.welcome-video-section {
  width: 100%;
  max-width: 475px;
  margin: 60px auto 0;
}

.welcome-video-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

/* 切换视频后的蓝色背景 */
.welcome-video-container.video-switched {
  background-color: #4A90E2; /* 蓝色背景 */
}

.video-overlay {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 15px;
}

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

.video-header h3 {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: "华文欣魏", "STXinwei", serif;
  letter-spacing: 2px;
  transform: scaleY(1.3);
  margin: 0;
  padding: 0;
}

.welcome-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 响应式视频样式 */
@media (max-width: 1200px) {
  .welcome-video-section {
    max-width: 450px;
  }
}

@media (max-width: 992px) {
  .welcome-video-section {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .welcome-video-section {
    max-width: 350px;
    margin: 40px auto 0;
  }
  
  .video-overlay {
    padding: 10px;
  }
  
  .video-header h3 {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .welcome-video-section {
    max-width: 300px;
    margin: 30px auto 0;
  }
  
  .video-overlay {
    padding: 8px;
  }
  
  .video-header h3 {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .welcome-video-section {
    max-width: 250px;
    margin: 20px auto 0;
  }
  
  .video-overlay {
    padding: 6px;
  }
  
  .video-header h3 {
    font-size: 11px;
  }
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.section-header {
  margin-bottom: var(--spacing-6);
  border-bottom: none;
  padding-bottom: var(--spacing-4);
}

.section-header h2 {
  color: #333333;
  margin-bottom: var(--spacing-2);
  font-size: var(--font-size-2xl);
}

.section-header p {
  color: #666666;
  margin: 0;
  line-height: 1.6;
}

.section-stats {
  display: flex;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

.stat-card {
  background: #f8f9fa;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--spacing-4);
  text-align: center;
  min-width: 150px;
}

.stat-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: #FF4500;
  margin-bottom: var(--spacing-1);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: #666666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .admin-dashboard {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    position: static;
    margin-bottom: var(--spacing-4);
  }

  .sidebar-menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
  }

  .sidebar-item {
    margin-bottom: 0;
  }

  .sidebar-link {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-sm);
  }
}

