*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body, h1, h2, h3, h4, h5, h6, p,
figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
button, input, label {
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

textarea:not([rows]) {
  min-height: 10em;
}

button, input, optgroup, select, textarea {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
}

button {
  background: transparent;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:focus-visible {
  outline: 2px solid #1890ff;
  outline-offset: 2px;
}

html {
  font-size: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5715;
  color: #434343;
  background-color: #f5f5f5;
  overflow-x: hidden;
  font-feature-settings: "tnum";
  font-variant: tabular-nums;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  color: #000000;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #262626;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #262626;
}

a {
  color: #1890ff;
  transition: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}
a:hover {
  color: #40a9ff;
}
a:active {
  color: #096dd9;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.875em;
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 2px;
  white-space: pre-wrap;
  word-break: break-all;
}

pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 12px;
  background-color: #f5f5f5;
  padding: 16px;
  border-radius: 2px;
  overflow-x: auto;
}
pre code {
  background-color: transparent;
  padding: 0;
}

::selection {
  background-color: #bae7ff;
  color: #000000;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #bfbfbf;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8c8c8c;
}

.text-error {
  color: #f5222d;
}

.text-success {
  color: #52c41a;
}

.text-muted {
  color: #8c8c8c;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.app-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.layout {
  display: flex;
  flex: auto;
  min-height: 0;
  background: #fafafa;
}
.layout.layout-has-sider {
  flex-direction: row;
  height: calc(100vh - 56px);
}

.layout-header {
  height: 56px;
  padding: 0 24px;
  line-height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 10;
}
.layout-header .header-title {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin: 0;
  line-height: inherit;
}

.layout-sider {
  position: relative;
  background: #ffffff;
  flex: 0 0 256px;
  max-width: 256px;
  min-width: 256px;
  width: 256px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  border-right: 1px solid #f0f0f0;
}
.layout-sider-children {
  height: 100%;
  padding: 16px 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.layout-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.page-container {
  padding: 24px;
  max-width: 1200px;
}

.menu-footer {
  margin-top: auto;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
}

.menu {
  color: #434343;
  font-size: 14px;
}
.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 24px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.5;
  height: 40px;
  color: #434343;
}
.menu-item:hover {
  color: #1890ff;
  background-color: #fafafa;
}
.menu-item-selected {
  color: #1890ff;
  background-color: #e6f7ff;
  border-right: 2px solid #1890ff;
}
.menu-item:active {
  background-color: #e6f7ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  user-select: none;
  line-height: 1.5715;
  border-radius: 2px;
  outline: 0;
  height: 32px;
  padding: 0 16px;
  font-size: 14px;
}
.btn:focus-visible {
  outline: 2px solid #1890ff;
  outline-offset: 2px;
}
.btn:disabled, .btn--disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}
.btn--primary {
  background-color: #1890ff;
  border-color: #1890ff;
  color: #ffffff;
}
.btn--primary:hover:not(:disabled) {
  background-color: #40a9ff;
  border-color: #40a9ff;
  color: #ffffff;
}
.btn--primary:active:not(:disabled) {
  background-color: #096dd9;
  border-color: #096dd9;
  color: #ffffff;
}
.btn--default {
  background-color: #ffffff;
  border-color: #d9d9d9;
  color: #434343;
}
.btn--default:hover:not(:disabled) {
  color: #40a9ff;
  border-color: #40a9ff;
}
.btn--default:active:not(:disabled) {
  color: #096dd9;
  border-color: #096dd9;
}
.btn--link {
  background-color: transparent;
  border-color: transparent;
  color: #1890ff;
  padding: 0;
  height: auto;
  line-height: normal;
}
.btn--link:hover:not(:disabled) {
  color: #40a9ff;
}
.btn--link:active:not(:disabled) {
  color: #096dd9;
}
.btn--danger {
  color: #f5222d;
  border-color: #f5222d;
  background-color: #ffffff;
}
.btn--danger:hover:not(:disabled) {
  color: rgb(247.2077922078, 82.7922077922, 91.3636363636);
  border-color: rgb(247.2077922078, 82.7922077922, 91.3636363636);
}
.btn--danger:active:not(:disabled) {
  color: rgb(218.1298701299, 9.8701298701, 20.7272727273);
  border-color: rgb(218.1298701299, 9.8701298701, 20.7272727273);
}
.btn--sm {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
}
.btn--block {
  display: flex;
  width: 100%;
}
.btn > svg + span {
  margin-left: 8px;
}

.form-item {
  margin-bottom: 20px;
}
.form-item-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 4px;
  line-height: 32px;
}

.input {
  box-sizing: border-box;
  padding: 4px 11px;
  color: #434343;
  font-size: 14px;
  line-height: 1.5715;
  display: inline-block;
  width: 100%;
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  transition: all 0.2s;
}
.input::placeholder {
  color: #bfbfbf;
}
.input:hover {
  border-color: #40a9ff;
}
.input:focus {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  outline: 0;
}
.input[disabled] {
  color: #bfbfbf;
  background-color: #f5f5f5;
  cursor: not-allowed;
}
.input--code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 13px;
  resize: vertical;
}

.input-error {
  color: #f5222d;
  font-size: 12px;
  line-height: 1.5715;
  margin-top: 4px;
}

.input-hint {
  color: #8c8c8c;
  font-size: 12px;
  line-height: 1.5715;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table {
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  font-size: 14px;
  color: #434343;
  line-height: 1.5715;
}
.table-thead > tr > th {
  color: #000000;
  font-weight: 600;
  text-align: left;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px;
  white-space: nowrap;
}
.table-tbody > tr > td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.table-tbody > tr:hover > td {
  background: #fafafa;
}
.table-tbody > tr:last-child > td {
  border-bottom: none;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 8px 0;
  font-size: 14px;
  color: #595959;
}
.pagination-info {
  color: #8c8c8c;
}
.pagination-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pagination-page {
  color: #595959;
  font-weight: 500;
}

.card {
  background: #ffffff;
  border-radius: 2px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.card-head {
  min-height: 48px;
  padding: 0 24px;
  color: #000000;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}
.card-head-title {
  flex: 1;
  padding: 16px 0;
  font-weight: 500;
  font-size: 16px;
  color: #000000;
  margin: 0;
}
.card-body {
  padding: 24px;
}
.card + .card {
  margin-top: 16px;
}

.tabs__nav {
  display: flex;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 16px;
}
.tabs__tab {
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #8c8c8c;
  border-bottom: 2px solid transparent;
  transition: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.tabs__tab:hover {
  color: #1890ff;
}
.tabs__tab--active {
  color: #1890ff;
  border-bottom-color: #1890ff;
}
.tabs__content {
  padding-top: 8px;
}

.config-editor__title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
}
.config-editor__title:first-child {
  margin-top: 0;
}
.config-editor__subtitle {
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  margin-bottom: 8px;
  color: #595959;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.page-header__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #000000;
}
.page-header__actions {
  display: flex;
  gap: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: #8c8c8c;
  font-size: 14px;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.back-link:hover {
  color: #40a9ff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 2px;
}
.status-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-badge--success {
  color: #52c41a;
  background-color: #f6ffed;
}
.status-badge--success::before {
  background-color: #52c41a;
}
.status-badge--warning {
  color: #faad14;
  background-color: #fffbe6;
}
.status-badge--warning::before {
  background-color: #faad14;
}
.status-badge--error {
  color: #f5222d;
  background-color: #fff1f0;
}
.status-badge--error::before {
  background-color: #f5222d;
}
.status-badge--default {
  color: #8c8c8c;
  background-color: #f5f5f5;
}
.status-badge--default::before {
  background-color: #bfbfbf;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.dashboard-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 2px;
  color: #434343;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}
.dashboard-card:hover {
  color: #1890ff;
  border-color: #40a9ff;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f5f5f5;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  padding: 40px;
}
.login-card .form-item:last-of-type {
  margin-bottom: 24px;
}
.login-card .btn {
  height: 40px;
  font-size: 16px;
}

.login-title {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  margin: 0 0 32px;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#app {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}
.loading-container .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f0f0f0;
  border-top-color: #1890ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.error-message {
  color: #f5222d;
  font-size: 12px;
  margin-top: 8px;
}

.success-message {
  color: #52c41a;
  font-size: 12px;
  margin-top: 8px;
}

.welcome-text {
  color: #8c8c8c;
  margin-top: 8px;
}
