/* 基础样式重置 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f0ff 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* 添加微妙的背景装饰 - 轻量级 */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

code {
  font-family: 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas,
    'Courier New', monospace;
}

/* 全局链接样式 */
a {
  color: #1890ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #40a9ff;
  text-decoration: none;
  transform: translateX(2px);
}

/* 表单输入框聚焦样式 */
.ant-input:focus,
.ant-input-focused {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

.ant-input:hover {
  border-color: rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

/* 搜索框样式增强 */
.ant-input-search .ant-input:focus,
.ant-input-search .ant-input-focused {
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.ant-input-search-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  transition: all 0.3s ease;
}

.ant-input-search-button:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
  transform: translateY(-2px);
}

/* 按钮样式增强 */
.ant-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 4px 15px 0 rgba(102, 126, 234, 0.35);
  transition: all 0.3s ease;
  font-weight: 500;
}

.ant-btn-primary:hover,
.ant-btn-primary:focus {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.ant-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px 0 rgba(102, 126, 234, 0.3);
}

/* 卡片样式增强 */
.ant-card {
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  position: relative;
}

/* 卡片光泽效果 - 轻量级 */
.ant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.ant-card:hover::before {
  left: 100%;
}

.ant-card:hover {
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(118, 75, 162, 0.1);
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(102, 126, 234, 0.4);
}

/* 布局样式 */
.full-height {
  height: 100vh;
}

.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* 登录/注册页面样式 */
.auth-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.auth-card {
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.98);
  position: relative;
  z-index: 1;
}

.auth-header {
  text-align: center;
  padding: 40px 32px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: #8c8c8c;
  margin-bottom: 0;
  font-size: 14px;
}

/* 主布局样式 */
.main-layout {
  min-height: 100vh;
  background: transparent;
}

.main-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(30px);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.main-sider {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(30px);
  box-shadow: 4px 0 24px rgba(102, 126, 234, 0.06);
  border-right: 1px solid rgba(102, 126, 234, 0.08);
}

.main-content {
  padding: 32px;
  background: transparent;
  min-height: calc(100vh - 64px);
}

/* 内容区域样式 */
.page-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(30px);
  padding: 32px 40px;
  margin-bottom: 32px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1), 0 4px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 工具栏样式 */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(30px);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

/* 内容网格样式 */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 0;
}

/* 列表项样式增强 */
.ant-list-item {
  padding: 16px 20px !important;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid transparent;
}

.ant-list-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(118, 75, 162, 0.04) 100%);
  border-color: rgba(102, 126, 234, 0.15);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.08);
}

/* Modal样式增强 */
.ant-modal-content {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(102, 126, 234, 0.1);
}

.ant-modal-header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 24px 24px 0 0;
  padding: 20px 28px;
}

.ant-modal-title {
  font-weight: 700;
  font-size: 20px;
  color: #1f2937;
}

.ant-modal-body {
  padding: 28px;
}

.ant-modal-footer {
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  padding: 16px 28px;
}

/* Tag样式增强 */
.ant-tag {
  border-radius: 16px;
  padding: 4px 14px;
  font-weight: 600;
  border: 1px solid;
  transition: all 0.3s ease;
}

.ant-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .main-content {
    padding: 16px;
  }
  
  .auth-container {
    padding: 10px;
  }
  
  .auth-card {
    max-width: 320px;
  }
  
  .ant-list-item {
    padding: 12px 16px !important;
  }
}
