/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #3b82f6;
  --primary-dark: #1e3a8a;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* 布局容器 */
.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.layout__sidebar {
  width: 200px;
  background-color: var(--bg-white);
  border-right: 1px solid var(--border-color);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  transition: transform var(--transition);
  z-index: 100;
}

.layout__sidebar--collapsed {
  transform: translateX(-200px);
}

.layout__main {
  flex: 1;
  margin-left: 200px;
  transition: margin-left var(--transition);
}

.layout__main--expanded {
  margin-left: 0;
}

/* 顶部栏 */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 内容区 */
.content {
  padding: 24px;
}

/* 侧边栏 */
.sidebar {
  padding: 16px 0;
}

.sidebar__menu {
  list-style: none;
}

.sidebar__item {
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color var(--transition);
  color: var(--text-dark);
  text-decoration: none;
  display: block;
}

.sidebar__item:hover {
  background-color: var(--bg-light);
}

.sidebar__item--active {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-left: 4px solid var(--primary-dark);
}

/* 搜索栏 */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.search-bar--center {
  justify-content: center;
}

/* 过滤栏 */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

/* 统计卡片区 */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* 操作栏 */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.action-bar__left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.action-bar__right {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* 步骤条 */
.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0 20px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: -1;
}

.step:last-child::after {
  display: none;
}

.step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--border-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
}

.step--active .step__number {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.step--completed .step__number {
  background-color: var(--success-color);
  color: var(--bg-white);
}

.step__title {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

.step--active .step__title {
  color: var(--primary-color);
  font-weight: 600;
}

/* 链接 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.8;
}

/* 文本工具类 */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-sm {
  font-size: 12px;
}

.text-lg {
  font-size: 16px;
}

.text-xl {
  font-size: 20px;
}

.text-2xl {
  font-size: 24px;
}

.text-light {
  color: var(--text-light);
}

.text-success {
  color: var(--success-color);
}

.text-error {
  color: var(--error-color);
}

.text-warning {
  color: var(--warning-color);
}

/* 间距工具类 */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.ml-1 { margin-left: 8px; }
.mr-1 { margin-right: 8px; }

/* 响应式设计 */
@media (max-width: 768px) {
  .layout__sidebar {
    transform: translateX(-200px);
  }
  
  .layout__sidebar--mobile-open {
    transform: translateX(0);
  }
  
  .layout__main {
    margin-left: 0;
  }
  
  .header__title {
    font-size: 18px;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
