/* 全局样式 */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --text-color: #333;
  --text-light: #666;
  --border-radius: 16px;
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f7fa;
  color: var(--text-color);
}

/* 登录页样式 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  z-index: -1;
}

.login-background::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 80%);
  animation: pulse 15s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.login-card {
  width: 400px;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.login-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-gradient);
}

.login-header {
  text-align: center;
  padding: 40px 0 30px;
  position: relative;
}

.login-header h2 {
  margin-top: 0;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 10px;
}

.login-header p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 16px;
}

.verifying {
  padding: 40px 0;
  text-align: center;
}

.verifying p {
  margin-top: 20px;
  color: var(--text-light);
  font-size: 16px;
}

/* 主应用样式 */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary-gradient);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.header-left h2 {
  margin: 0;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 20px;
}

.el-dropdown-link {
  cursor: pointer;
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.app-main {
  margin-top: 84px;
  padding: 24px;
  flex: 1;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.search-card,
.data-card {
  margin-bottom: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.search-card:hover,
.data-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.search-title,
.table-header {
  padding: 15px 20px;
  border-bottom: 1px solid #ebeef5;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.search-title i,
.table-title i {
  margin-right: 8px;
  font-size: 18px;
}

.search-form {
  padding: 20px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-title {
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.table-operations {
  display: flex;
  align-items: center;
  gap: 15px;
}

.table-operations span {
  /* color: var(--text-light); */
  font-size: 14px;
}

.action-buttons {
  display: flex;
  gap: 5px;
}

.pagination-container {
  margin-top: 20px;
  padding: 10px 20px 20px;
  text-align: right;
}

/* 自定义ElementUI样式 */
.el-button--primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.el-button--primary:hover, 
.el-button--primary:focus {
  background-color: #5c71d4;
  border-color: #5c71d4;
}

.el-button--success {
  background-color: #41b883;
  border-color: #41b883;
}

.el-button--success:hover, 
.el-button--success:focus {
  background-color: #36a574;
  border-color: #36a574;
}

.el-tag--success {
  background-color: #f0f9eb;
  border-color: #e1f3d8;
  color: #67c23a;
}

.el-tag--info {
  background-color: #f4f4f5;
  border-color: #e9e9eb;
  color: #909399;
}

.el-table th {
  background-color: #f7f8fa;
  font-weight: 600;
  color: var(--text-color);
}

.el-table--striped .el-table__body tr.el-table__row--striped td {
  background-color: #f9fafc;
}

.el-table--enable-row-hover .el-table__body tr:hover>td {
  background-color: #f0f5ff !important;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: var(--primary-color);
}

.custom-dialog .el-dialog__header {
  background: var(--primary-gradient);
  padding: 15px 20px;
}

.custom-dialog .el-dialog__title {
  color: white;
  font-weight: 600;
}

.custom-dialog .el-dialog__body {
  padding: 30px 20px;
}

.custom-dialog .el-dialog__footer {
  border-top: 1px solid #f0f0f0;
  padding: 15px 20px;
}

/* 元素UI组件的响应式优化 */
@media (max-width: 768px) {
  .login-card {
    width: 90%;
    max-width: 400px;
  }
  
  .app-main {
    padding: 15px 10px;
  }
  
  .el-form-item {
    margin-bottom: 15px;
  }
  
  .el-form--inline .el-form-item {
    display: block;
    margin-right: 0;
    width: 100%;
  }

  .table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .table-operations {
    width: 100%;
    justify-content: space-between;
  }

  .clickable-text {
    padding: 4px 6px;
  }
}

/* 过渡动画 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s;
}

.fade-enter, .fade-leave-to {
  opacity: 0;
}

/* 可点击文本的样式 */
.clickable-text {
  cursor: pointer;
  color: #409eff;
  font-weight: 500;
  transition: all 0.3s;
  padding: 2px 4px;
  border-radius: 3px;
}

.clickable-text:hover {
  color: #66b1ff;
  text-decoration: underline;
  background-color: rgba(64, 158, 255, 0.1);
}

/* 表格样式优化 */
.el-table th {
  background-color: #f5f7fa !important;
  color: #606266;
  font-weight: 600;
}

.el-table--border th, .el-table--border td {
  border-right: 1px solid #ebeef5;
}

.el-table--striped .el-table__body tr.el-table__row--striped td {
  background-color: #fafafa;
}

.el-table .cell {
  line-height: 23px;
}

.el-table__fixed-right {
  height: 100% !important;
}

/* 修复固定列样式 */
.el-table__fixed-right-patch {
  background-color: #f5f7fa;
  position: absolute;
  top: 0;
  height: 40px !important;
} 