/* ========================================
   layout.css — 侧边栏 + 主内容区 + 玻璃卡片
   ======================================== */

/* ===== 侧边栏 ===== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 28px 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 0 28px 32px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}
.sidebar-logo h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--accent), #58a6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-logo p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.nav-list {
  list-style: none;
  flex: 1;
  padding: 0 12px;
  overflow-y: auto;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-item { margin-bottom: 2px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.nav-link.active {
  background: rgba(126, 231, 135, 0.1);
  color: var(--accent);
  border-color: rgba(126, 231, 135, 0.15);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.sidebar-footer {
  padding: 16px 28px 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 12px;
}
.sidebar-footer p {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== 主内容区 ===== */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 40px 48px;
  max-width: 960px;
}

/* ===== 玻璃卡片（通用） ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ===== 区块标题 ===== */
.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}
