/* ============================================
   仿真任务管理系统 - 主样式文件
   ============================================ */

/* ========== 全局文本选择样式 ========== */
*::selection {
  -webkit-text-fill-color: white;
  background: var(--color-primary);
  color: white;
}

*::-moz-selection {
  -webkit-text-fill-color: white;
  background: var(--color-primary);
  color: white;
}

/* 文本元素默认使用 text 光标 */
p, span, h1, h2, h3, h4, h5, h6, td, th,
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="search"], textarea {
  cursor: text;
}

/* 按钮和可点击元素使用 pointer 光标 */
button, .btn, [class*="btn-"], input[type="button"],
input[type="submit"], input[type="checkbox"],
input[type="radio"], select, label[for] {
  cursor: pointer;
}

/* 调整列大小的手柄 */
th .resize-handle {
  cursor: col-resize;
  pointer-events: none;
  z-index: 100;
}

th:hover .resize-handle {
  pointer-events: auto;
}

/* ========== 动画定义 ========== */
@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0);
  }
}

/* ========== 应用容器 ========== */
.app-container {
  min-height: 100vh;
  min-width: 800px;
}

.main-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* 内容行容器 - 侧边栏和主内容在同一行 */
.main-content-row {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.main-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  margin-left: var(--sidebar-width, 240px);
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: auto;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-alpha-20) transparent;
  padding-bottom: 0;
}

.main-content::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.main-content::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.main-content::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
  background-clip: padding-box;
}

/* ========== 左侧边栏 ========== */
.left-sidebar {
  width: var(--sidebar-width, 240px);
  background: var(--color-bg-sidebar);
  color: var(--color-sidebar-text);
  display: flex;
  flex-direction: column;
  height: calc(100% - 49px);
  position: fixed;
  left: 0;
  top: 49px;
  bottom: 0;
  z-index: 9999;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12);
  transition: width 0.15s ease, transform 0.15s ease;
  will-change: width;
  pointer-events: auto;
  overflow: hidden;
}

.left-sidebar.collapsed {
  width: 0;
  padding: 0;
  box-shadow: none;
}

.left-sidebar-container {
  position: relative;
  width: 0;
  flex: 0 0 auto;
  z-index: 9999;
  pointer-events: auto;
}

/* 侧边栏头部 */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  padding-right: 12px;
  border-bottom: 1px solid var(--color-border-light);
  flex: 0 0 auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  color: var(--color-primary);
  opacity: 0.9;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.collapse-btn:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
}

/* 可拖拽分隔条 */
.sidebar-resizer {
  position: fixed;
  left: calc(var(--sidebar-width, 240px) - 10px);
  top: 49px;
  bottom: 0;
  width: 20px;
  background: transparent;
  cursor: col-resize;
  z-index: 999999;
  pointer-events: auto;
}

.sidebar-resizer::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: all 0.15s ease;
}

.sidebar-resizer:hover::before,
.sidebar-resizer.resizing::before {
  width: 4px;
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.4);
}

/* 内容包装器 */
.sidebar-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* 主导航 */
.sidebar-main-nav {
  flex: 0 0 auto;
  padding: 8px 8px 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-alpha-20) transparent;
}

/* 侧边栏底部（仅折叠按钮）- 靠右对齐 */
.sidebar-footer-only {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px 12px;
}

/* 折叠状态下的展开按钮 - 在侧边栏外侧底部贴边 */
.sidebar-expand-fab {
  position: fixed;
  left: 8px;
  bottom: 8px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-expand-fab:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  border-color: var(--color-border);
}

.sidebar-main-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-main-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-main-nav::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.sidebar-main-nav::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-sidebar-text-muted);
  font: inherit;
  position: relative;
}

.nav-item:hover {
  background-color: var(--color-bg-module-hover);
  color: var(--color-sidebar-text);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: white;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.nav-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 简化的侧边栏头部 */
/* 纯文字导航项样式 */
.nav-item-text-only {
  padding: 10px 16px;
  justify-content: flex-start;
}

.nav-item-text-only .nav-name {
  text-align: left;
  width: 100%;
}

.nav-item-text-only::before {
  display: none !important;
}

/* 最近任务区 */
.sidebar-recent-tasks {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 12px;
  padding-right: 20px;
  margin-top: 8px;
  position: relative;
  z-index: 102;
}

.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.recent-header:hover {
  background-color: var(--color-bg-module-hover);
}

.recent-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-sidebar-text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.toggle-icon {
  font-size: 10px;
  color: var(--color-sidebar-text-muted);
}

.recent-list {
  flex: 1 1 auto;
  min-height: 100px;
  height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 136, 136, 0.5) transparent;
}

.recent-list::-webkit-scrollbar {
  width: 10px;
}

.recent-list::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 5px;
  margin: 4px 0;
}

.recent-list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 5px;
  transition: background 0.2s;
  border: 1px solid transparent;
}

.recent-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

.recent-empty {
  padding: 1rem 0.75rem;
  font-size: 0.9rem;
  color: var(--color-sidebar-text-muted);
  font-style: italic;
}

.recent-task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.recent-task-item:hover {
  background-color: var(--color-bg-module-hover);
  border-color: var(--color-border-light);
}

.recent-task-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.recent-task-name {
  font-size: 13px;
  color: var(--color-sidebar-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.recent-task-time {
  font-size: 11px;
  color: var(--color-sidebar-text-muted);
}

.recent-task-time .sim-type {
  display: inline-block;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 4px;
  font-size: 10px;
  background: var(--color-primary);
  color: white;
  line-height: 1.4;
  font-weight: 500;
}

.recent-task-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.recent-task-status.status-pending {
  background-color: var(--color-warning);
}

.recent-task-status.status-running {
  background-color: var(--color-primary);
  animation: statusPulse 2s ease-in-out infinite;
}

.recent-task-status.status-completed {
  background-color: var(--color-success);
}

.recent-task-status.status-failed {
  background-color: var(--color-danger);
}

.recent-task-status.status-cancelled {
  background-color: var(--color-neutral);
}

.recent-task-status.status-unknown {
  background-color: #8b5cf6;
}

/* 右键菜单 */
.context-menu {
  position: fixed;
  min-width: 150px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  overflow: hidden;
  animation: scaleIn 0.12s ease-out;
  transform-origin: top left;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.875rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-primary);
  transition: background-color 0.12s ease;
  line-height: 1;
}

.context-menu-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.context-menu-item:hover {
  background-color: var(--color-bg-module-hover);
}

.context-menu-item.delete-item {
  color: var(--color-danger);
}

.context-menu-item.delete-item:hover {
  background-color: rgba(239, 68, 68, 0.12);
}

/* 侧边栏底部 */
.sidebar-footer {
  flex: 0 0 auto;
  padding: 12px 8px;
  border-top: 1px solid var(--color-sidebar-border);
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.sidebar-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  color: var(--color-sidebar-text-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  background: transparent;
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-action-item:hover {
  background: var(--color-bg-module-hover);
  border-color: var(--color-border-light);
  color: var(--color-sidebar-text);
}

.sidebar-action-item:active {
  transform: scale(0.98);
}

.action-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

/* ========== 顶部导航栏 ========== */
.navbar {
  background: transparent;
  color: var(--color-text-primary);
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
  z-index: 100;
  height: 56px;
  box-sizing: border-box;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.navbar-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.breadcrumb-separator {
  opacity: 0.5;
}

.breadcrumb-item {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.module-badge {
  padding: 4px 10px;
  background: var(--color-primary-alpha-10);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid var(--color-border-light);
}

/* 导航按钮 */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-input);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary-alpha-20);
  background: var(--color-primary-alpha-10);
}

.nav-btn-icon {
  width: 34px;
  padding: 0;
}

.nav-btn-text {
  font-weight: 600;
}

/* 用户菜单触发器 */
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: transparent;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.user-menu-trigger:hover {
  background: var(--color-bg-input);
  border-color: var(--color-primary-alpha-20);
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.user-status {
  font-size: 11px;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
}

/* 欢迎按钮 */
.welcome-btn {
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
  margin-left: 8px;
}

.welcome-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.welcome-btn:active {
  transform: translateY(0);
}

/* ========== 认证页面 ========== */
.lang-toggle-wrapper {
  text-align: right;
  margin-bottom: 1rem;
}

.btn-lang-toggle,
.btn-guest-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: inherit;
}

.btn-lang-toggle:hover:not(:disabled),
.btn-guest-inline:hover:not(:disabled) {
  background: var(--color-bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-lang-toggle:disabled,
.btn-guest-inline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-view {
  position: relative;
  z-index: 200;
}

.auth-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 0.75rem;
}

.auth-header-bar .spacer {
  flex: 1;
}


.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 0px);
  padding: 2rem;
}

.auth-card {
  background: var(--color-bg-card);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border-light);
}

.auth-card:hover {
  transform: translateY(-2px);
}

.auth-card h2 {
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 0.3rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  background-color: var(--color-bg-input);
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--color-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-alpha-10);
  background-color: var(--color-bg-card);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-block {
  margin-top: 0.8rem;
}

.switch-link {
  text-align: center;
  margin-top: 1rem;
  color: var(--color-text-muted);
}

.switch-link a {
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.switch-link a:hover {
  text-decoration: underline;
}

.field-optional {
  color: var(--color-text-muted);
  font-weight: normal;
  font-size: 0.9rem;
}

/* ========== 通用组件样式 ========== */
.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border-light);
  box-shadow: var(--shadow-xs);
}

.module-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.module-coming-soon__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  opacity: 0.5;
}

.module-coming-soon__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.module-coming-soon__subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.loading {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* ========== 加载容器 ========== */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ========== 任务列表容器 ========== */
.task-list-container {
  margin-top: var(--spacing-6);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.task-list-header {
  flex: 0 0 auto;
}

.task-list-header h3 {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-5);
  color: var(--color-text-primary);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.task-count-badge {
  background: var(--color-bg-secondary);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-left: var(--spacing-3);
  border: 1px solid var(--color-border-light);
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
  /* 默认隐藏侧边栏，由 .collapsed 类控制显示状态 */
  .left-sidebar {
    transform: translateX(-100%);
    visibility: hidden;
  }

  /* 非折叠状态时显示侧边栏 */
  .left-sidebar:not(.collapsed) {
    transform: translateX(0);
    visibility: visible;
  }

  .main-content {
    margin-left: 0;
  }

  .navbar {
    padding: 10px 16px;
  }

  .auth-container {
    padding: 1rem;
  }
}

/* ========== 模块内容卡片 ========== */
.module-content-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: none;
}

.module-content-card > * {
  flex: 1;
}

.no-modules-message {
  padding: 20px;
  text-align: center;
  color: var(--color-text-muted);
}

/* ========== 首页样式 ========== */
.home-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.home-title {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: center;
}
