:root {
  --primary-6: #165dff;
  --primary-5: #4080ff;
  --primary-4: #699dff;
  --primary-3: #92baff;
  --primary-2: #b5d1ff;
  --primary-1: #d9e6ff;
  --success-6: #00b42a;
  --success-5: #23c16b;
  --warning-6: #ff7d00;
  --danger-6: #f53f3f;
  --danger-5: #f76560;
  --gray-1: #f7f8fa;
  --gray-2: #e5e6eb;
  --gray-3: #c9cdd4;
  --gray-4: #86909c;
  --gray-5: #4e5969;
  --gray-6: #1d2129;
  --border-radius-small: 4px;
  --border-radius-medium: 6px;
  --border-radius-large: 8px;
  --color-white: #ffffff;
  --box-shadow-base: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition-duration: 0.2s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-6);
  background: var(--gray-1);
}

.arco-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 15px;
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: all var(--transition-duration);
  border: 1px solid transparent;
  outline: none;
  gap: 8px;
}

.arco-btn-primary {
  background: var(--primary-6);
  color: var(--color-white);
  border-color: var(--primary-6);
}

.arco-btn-primary:hover {
  background: var(--primary-5);
  border-color: var(--primary-5);
}

.arco-btn-default {
  background: var(--color-white);
  border-color: var(--gray-3);
  color: var(--gray-6);
}

.arco-btn-default:hover {
  background: var(--gray-1);
  border-color: var(--primary-6);
  color: var(--primary-6);
}

.arco-btn-dashed {
  background: var(--color-white);
  border: 1px dashed var(--gray-3);
  color: var(--gray-6);
}

.arco-btn-dashed:hover {
  border-color: var(--primary-6);
  color: var(--primary-6);
}

.arco-btn-text {
  background: transparent;
  border: none;
  color: var(--primary-6);
}

.arco-btn-text:hover {
  background: var(--primary-1);
}

.arco-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.arco-btn-large {
  padding: 8px 20px;
  font-size: 16px;
  height: 40px;
}

.arco-btn-small {
  padding: 2px 10px;
  font-size: 12px;
  height: 24px;
}

.arco-btn-block {
  display: flex;
  width: 100%;
}

.arco-btn-danger {
  background: var(--danger-6);
  color: var(--color-white);
  border-color: var(--danger-6);
}

.arco-btn-danger:hover {
  background: var(--danger-5);
  border-color: var(--danger-5);
}

.arco-card {
  background: var(--color-white);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow-base);
  overflow: hidden;
}

.arco-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-2);
  font-weight: 600;
  font-size: 16px;
}

.arco-card-body {
  padding: 20px;
}

.arco-input,
.arco-input-password {
  width: 100%;
  height: 32px;
  padding: 4px 11px;
  border: 1px solid var(--gray-3);
  border-radius: var(--border-radius-small);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-duration);
}

.arco-input:focus,
.arco-input-password:focus {
  border-color: var(--primary-6);
  box-shadow: 0 0 0 2px var(--primary-1);
}

.arco-input::placeholder {
  color: var(--gray-4);
}

.arco-textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--gray-3);
  border-radius: var(--border-radius-small);
  font-size: 14px;
  outline: none;
  resize: vertical;
  transition: all var(--transition-duration);
  font-family: inherit;
}

.arco-textarea:focus {
  border-color: var(--primary-6);
  box-shadow: 0 0 0 2px var(--primary-1);
}

.arco-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: var(--border-radius-small);
  gap: 4px;
}

.arco-tag-green {
  background: #e8ffea;
  color: var(--success-6);
  border: 1px solid #a3f7b3;
}

.arco-tag-red {
  background: #ffece8;
  color: var(--danger-6);
  border: 1px solid #f7b4aa;
}

.arco-tag-blue {
  background: var(--primary-1);
  color: var(--primary-6);
  border: 1px solid var(--primary-2);
}

.arco-tag-gray {
  background: var(--gray-1);
  color: var(--gray-5);
  border: 1px solid var(--gray-2);
}

.arco-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.arco-table th,
.arco-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-2);
}

.arco-table th {
  background: var(--gray-1);
  font-weight: 600;
  color: var(--gray-5);
}

.arco-table tr:hover td {
  background: var(--gray-1);
}

.arco-form-item {
  margin-bottom: 16px;
}

.arco-form-item-label {
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--gray-5);
}

.arco-space {
  display: flex;
  gap: 8px;
}

.arco-space-vertical {
  flex-direction: column;
}

.arco-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.arco-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-white);
  border-radius: var(--border-radius-large);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  min-width: 400px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

.arco-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-2);
  font-weight: 600;
  font-size: 16px;
}

.arco-modal-body {
  padding: 20px;
}

.arco-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-2);
  text-align: right;
  gap: 12px;
  display: flex;
  justify-content: flex-end;
}

.arco-dropdown {
  position: relative;
  display: inline-block;
}

.arco-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 120px;
  background: var(--color-white);
  border-radius: var(--border-radius-small);
  box-shadow: var(--box-shadow-base);
  border: 1px solid var(--gray-2);
  z-index: 100;
  padding: 4px 0;
}

.arco-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: all var(--transition-duration);
}

.arco-dropdown-item:hover {
  background: var(--gray-1);
}

.arco-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arco-pagination-item {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-3);
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: all var(--transition-duration);
}

.arco-pagination-item:hover {
  border-color: var(--primary-6);
  color: var(--primary-6);
}

.arco-pagination-item-active {
  background: var(--primary-6);
  border-color: var(--primary-6);
  color: var(--color-white);
}

.arco-statistic {
  padding: 24px;
}

.arco-statistic-title {
  font-size: 14px;
  color: var(--gray-4);
  margin-bottom: 8px;
}

.arco-statistic-content {
  font-size: 28px;
  font-weight: 600;
  color: var(--gray-6);
}

.arco-statistic-prefix {
  margin-right: 4px;
  color: var(--primary-6);
}

.arco-descriptions {
  font-size: 14px;
}

.arco-descriptions-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-2);
  display: flex;
}

.arco-descriptions-item-label {
  color: var(--gray-5);
  font-weight: 500;
  min-width: 100px;
}

.arco-descriptions-item-value {
  color: var(--gray-6);
}

.arco-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  background: var(--color-white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
}

.arco-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-2);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arco-drawer-body {
  padding: 20px;
}

.arco-result {
  text-align: center;
  padding: 40px 20px;
}

.arco-result-success .arco-result-icon {
  color: var(--success-6);
}

.arco-result-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 16px;
}

.arco-result-subtitle {
  font-size: 14px;
  color: var(--gray-4);
  margin-top: 8px;
}

.arco-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
}

.arco-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.arco-col {
  padding: 0 8px;
}

.arco-col-24 { width: 100%; }
.arco-col-12 { width: 50%; }
.arco-col-8 { width: 33.333333%; }
.arco-col-6 { width: 25%; }

.arco-layout {
  min-height: 100vh;
}

.arco-layout-header {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arco-layout-content {
  padding: 24px;
}

.arco-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: var(--border-radius-small);
  color: var(--color-white);
  font-size: 14px;
  z-index: 2000;
  animation: message-fade-in 0.3s ease;
}

.arco-message-success {
  background: var(--success-6);
}

.arco-message-error {
  background: var(--danger-6);
}

.arco-message-warning {
  background: var(--warning-6);
}

.arco-message-info {
  background: var(--primary-6);
}

@keyframes message-fade-in {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.arco-popconfirm {
  position: relative;
  display: inline-block;
}

.arco-popconfirm-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--border-radius-small);
  box-shadow: var(--box-shadow-base);
  padding: 12px;
  z-index: 100;
  white-space: nowrap;
}

.arco-input-number {
  width: 100%;
  height: 32px;
  padding: 4px 11px;
  border: 1px solid var(--gray-3);
  border-radius: var(--border-radius-small);
  outline: none;
}

.arco-input-number:focus {
  border-color: var(--primary-6);
  box-shadow: 0 0 0 2px var(--primary-1);
}

.arco-spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.arco-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--gray-4);
}

.arco-result-icon {
  font-size: 48px;
}

.arco-dropdown-option {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.arco-dropdown-option:hover {
  background: var(--gray-1);
}

@media (max-width: 768px) {
  .arco-modal {
    width: 90vw !important;
  }
  
  .arco-drawer {
    width: 100vw !important;
  }
  
  .arco-col-8 {
    width: 100%;
  }
  
  .arco-col-6 {
    width: 50%;
  }
}
