/* 顶部导航栏 */
.navbar {
  background: transparent;
  backdrop-filter: blur(0);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: none;
  margin: 0;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  min-height: 70px;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  box-shadow: var(--shadow);
}

.theme-dark .navbar.scrolled,
.theme-darker .navbar.scrolled {
  background: rgba(18, 18, 18, 0.95);
}

.navbar a,
.navbar-btn,
.navbar-title {
  color: #fff;
  transition: color 0.3s ease;
}

.navbar.scrolled a,
.navbar.scrolled .navbar-btn,
.navbar.scrolled .navbar-title {
  color: var(--text);
}

.navbar-nav .nav-link a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.navbar-nav .nav-link a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .navbar-nav .nav-link a:hover {
  background: var(--bg);
}

/* 导航栏品牌标识 */
.navbar-brand {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 导航栏标题 */
.navbar-title {
  display: none;
  font-size: 16px;
  font-weight: 600;
}

/* 导航栏 logo 图片 */
.navbar-logo {
  max-width: 40px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 导航栏导航项容器 */
.navbar-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.navbar-nav li {
  list-style: none;
}

/* 导航栏按钮 */
.navbar-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.navbar-btn:hover {
  background: var(--bg);
}

/* 导航栏按钮图标 */
.navbar-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* 侧边栏 */
.sidebar {
  background: var(--card-bg);
  border-radius: 0 20px 20px 0;
  width: 260px;
  padding: 0;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
  margin: 0;
  overflow: hidden;
  position: fixed;
  height: calc(100vh - 70px);
  top: 70px;
  left: -260px;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.sidebar.open {
  left: 0;
}

/* 侧边栏头部 */
.sidebar-header {
  padding: 20px 16px;
  background: linear-gradient(135deg, var(--main) 0%, var(--accent) 100%);
  color: #fff;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* 侧边栏内容区域 */
.sidebar-content {
  padding: 16px;
}

/* 侧边栏导航 */
.sidebar-nav {
  padding: 0;
  margin-bottom: 20px;
}

.sidebar-nav h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.6;
  margin: 0 0 12px;
  padding: 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.sidebar-nav li {
  margin-bottom: 4px;
}

.sidebar-nav a {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.25s ease;
  font-size: 14px;
}

.sidebar-nav a:hover {
  background: var(--main);
  color: #fff;
  transform: translateX(4px);
}

/* 侧边栏分割线 */
.sidebar hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* 主题切换区域 */
.theme-section {
  margin-top: 8px;
}

.theme-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.6;
  margin: 0 0 12px;
  padding: 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.theme-btn {
  width: calc(50% - 4px);
  height: 48px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.theme-btn:hover {
  border-color: var(--main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-btn.active {
  border-color: var(--main);
  background: var(--main);
  transform: scale(1.02);
}

.theme-btn.active .theme-label {
  color: #fff;
}

.theme-btn.active span:first-child {
  border-color: rgba(255, 255, 255, 0.3);
}

.theme-btn span:first-child {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.theme-label {
  font-size: 11px;
  color: var(--text);
  opacity: 0.8;
  font-weight: 500;
}

.theme-btn[data-theme="system"] span:first-child {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-btn[data-theme="time"] span:first-child {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
}

.theme-btn[data-theme="default"] span:first-child {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.theme-btn[data-theme="light"] span:first-child {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-color: #ddd;
}

.theme-btn[data-theme="dark"] span:first-child {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.theme-btn[data-theme="red"] span:first-child {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.theme-btn[data-theme="green"] span:first-child {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.theme-btn[data-theme="blue"] span:first-child {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.theme-btn[data-theme="yellow"] span:first-child {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.theme-btn.reverse {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  flex-direction: row;
  gap: 8px;
}

.theme-btn.reverse .theme-label {
  color: #fff;
  opacity: 1;
  font-size: 13px;
  font-weight: 500;
}

.theme-btn.reverse span:first-child {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
}

.theme-btn.reverse:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.theme-btn.reverse.active {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 侧边栏菜单列表 */
.sidebar-menu {
  list-style: none;
}

/* 侧边栏菜单项 */
.sidebar-menu li {
  padding: 8px 0;
  cursor: pointer;
}

/* 侧边栏菜单项悬停状态 */
.sidebar-menu li:hover {
  color: var(--main);
}

/* 标签页容器 */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: 12px 0;
}

/* 标签页 */
.tab {
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

/* 激活状态的标签页 */
.tab.active {
  border-color: var(--main);
  color: var(--main);
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

/* 面包屑分隔符 */
.breadcrumb-item::after {
  content: "/";
  margin-left: 8px;
  color: var(--border);
}

/* 最后一个面包屑项无分隔符 */
.breadcrumb-item:last-child::after {
  content: "";
}

/* 分页容器 */
.pagination {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

/* 分页项 */
.page-item {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

/* 激活状态的分页项 */
.page-item.active {
  background: var(--main);
  color: #fff;
  border-color: var(--main);
}

/* 下拉菜单 */
.menu {
  list-style: none;
  background: var(--card-bg);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  width: 160px;
  margin: 12px 0;
}

/* 下拉菜单项 */
.menu-item {
  padding: 8px 16px;
  cursor: pointer;
}

/* 下拉菜单项悬停状态 */
.menu-item:hover {
  background: var(--bg);
}

/* 响应式设计 - 小屏幕隐藏导航链接 */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    display: none;
  }
  
  .navbar-title {
    display: inline-block;
  }
  
  .navbar {
    justify-content: space-between;
  }
  
  .navbar-nav {
    margin-left: auto;
  }
}
