/* layout.css - 主要布局样式 */

/* 顶部导航栏 */
.main-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: rgba(20, 11, 46, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .logo-wrapper {
    display: flex;
    align-items: center;
  }
  
  .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .logo-text {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: -5px;
  }
  
  /* 顶部导航菜单 */
  .top-nav ul {
    display: flex;
    list-style: none;
  }
  
  .top-nav .nav-item {
    margin: 0 5px;
  }
  
  .top-nav .nav-item a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
  }
  
  .top-nav .nav-item a:hover {
    color: var(--primary-color);
  }
  
  .top-nav .nav-item.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
  }
  
  /* 用户操作区 */
  .user-actions {
    display: flex;
    align-items: center;
  }
  
  /* 内容区域 */
  .content-container {
    display: flex;
    flex: 1;
    overflow: hidden;
  }
  
  /* 侧边栏 */
  .sidebar {
    width: 280px;
    background: rgba(20, 11, 46, 0.5);
    border-right: 1px solid var(--border-color);
    z-index: 90;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .sidebar-inner {
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    position: sticky;
    top: 70px; /* 与顶部导航栏高度一致 */
    max-height: calc(100vh - 70px);
  }
  
  .mobile-sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .sidebar-section {
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
  }
  
  /* 主内容区 */
  .main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
  }
  
  /* 移动端遮罩层 */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 85;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
  }
  
  .sidebar-overlay.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  /* 弹出菜单 */
  .dropdown-menu {
    position: absolute;
    background: rgba(20, 11, 46, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
  }
  
  .dropdown-menu.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
  }
  
  .dropdown-menu ul {
    list-style: none;
  }
  
  .dropdown-menu li {
    padding: 0;
  }
  
  .dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .dropdown-menu li a:hover {
    background: rgba(194, 139, 55, 0.2);
    color: var(--primary-color);
  }
  
  .dropdown-menu .divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
  }
  
  .menu-icon {
    margin-right: 10px;
  }
  
  /* 通知面板 */
  .notification-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: rgba(20, 11, 46, 0.95);
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
  }
  
  .notification-panel.hidden {
    transform: translateX(100%);
  }
  
  .panel-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
  }
  
  .panel-header h3 {
    color: var(--primary-color);
  }
  
  .notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  /* 模态框 */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    transition: all 0.3s ease;
  }
  
  .modal.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  .modal-content {
    width: 90%;
    max-width: 800px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  
  .modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
  }
  
  .modal-header h3 {
    color: var(--primary-color);
  }
  
  .modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
  }