* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #f5f7fa;
}

a {
  text-decoration: none;
  color: inherit;
}

.layout {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 220px;
  background-color: #304156;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #263445;
  font-size: 16px;
  font-weight: 600;
}

.sidebar .el-menu {
  border-right: none;
  background-color: transparent;
}

.sidebar .el-menu-item {
  color: #bfcbd9;
  height: 50px;
  line-height: 50px;
}

.sidebar .el-menu-item:hover {
  background-color: #263445;
}

.sidebar .el-menu-item.is-active {
  color: #409eff;
  background-color: #263445;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  height: 60px;
  background-color: #fff;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #333;
}

.user-info:hover {
  color: #409eff;
}

.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.stat-card {
  margin-bottom: 20px;
}

.stat-content {
  display: flex;
  align-items: center;
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: 16px;
}

.stat-icon-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #999;
}

.chart-container {
  height: 300px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.filter-card {
  margin-bottom: 20px;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-form .el-form-item {
  margin-bottom: 0;
}

.table-card {
  margin-bottom: 20px;
}

.pagination-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 16px 0;
}

.dialog-footer {
  text-align: right;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status-success {
  background-color: #e1f3d8;
  color: #67c23a;
}

.status-warning {
  background-color: #fdf6ec;
  color: #e6a23c;
}

.status-danger {
  background-color: #fde2e2;
  color: #f56c6c;
}

.status-info {
  background-color: #e9e9eb;
  color: #909399;
}

.price {
  color: #f56c6c;
  font-weight: 600;
}

.remark-text {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-btns {
  display: flex;
  gap: 8px;
}

.detail-item {
  margin-bottom: 16px;
}

.detail-label {
  font-weight: 600;
  color: #606266;
  margin-bottom: 4px;
}

.detail-value {
  color: #333;
}

.config-form {
  max-width: 600px;
}

.sync-log-item {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.sync-log-item:last-child {
  border-bottom: none;
}

.sync-log-time {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.sync-log-content {
  color: #333;
}

.empty-data {
  text-align: center;
  padding: 40px 0;
  color: #999;
}
