/* 博主管理页面样式 */
.author-avatar-container {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #f0f0f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.author-list-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 对话框中的头像预览 */
.avatar-preview {
  width: 100px;
  height: 100px;
  margin: 10px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ff4158;
  box-shadow: 0 3px 10px rgba(255, 65, 88, 0.2);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 表格操作按钮间距 */
.el-table .cell .el-button {
  margin-bottom: 5px;
  transition: all 0.3s;
}

.el-table .cell .el-button + .el-button {
  margin-left: 8px;
}

/* 批量操作按钮样式 */
.table-operations {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.table-operations .el-button {
  margin-right: 10px;
  padding: 10px 16px;
}

/* 搜索栏美化 */
.search-bar {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.search-input {
  width: 300px;
  margin-right: 15px;
}

.search-input .el-input__inner {
  border-radius: 20px;
}

/* 状态开关样式优化 */
.el-switch__label {
  font-size: 12px;
}

.el-switch.is-checked .el-switch__core {
  border-color: #ff4158;
  background-color: #ff4158;
}

.el-switch .el-switch__core {
  border-color: #ff4949;
  background-color: #ff4949;
}

/* 等级标签样式 */
.el-tag--success {
  background-color: #f0f9eb;
  color: #67c23a;
  border-color: #e1f3d8;
}

.el-tag--warning {
  background-color: #fdf6ec;
  color: #e6a23c;
  border-color: #faecd8;
}

.el-tag--danger {
  background-color: #fef0f0;
  color: #f56c6c;
  border-color: #fbc4c4;
}

/* 美化表格 */
.authors-table { 
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.authors-table .el-table {
  margin: 0;
}

.authors-table .el-table th {
  background-color: #f5f7fa;
  color: #606266;
  font-weight: 500;
  padding: 12px 0;
}

.authors-table .el-table td {
  padding: 12px 0;
}

.authors-table .el-table--border td, 
.authors-table .el-table--border th {
  border-right: 1px solid #ebeef5;
}

/* 头像样式 */
.author-list-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.author-list-avatar:hover {
  transform: scale(1.1);
}

/* 状态标签样式 */
.authors-table .el-tag {
  padding: 0 12px;
  height: 24px;
  line-height: 22px;
  border-radius: 12px;
  font-size: 12px;
}

/* 操作按钮组样式 */
.operation-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.operation-buttons .el-button--mini {
  padding: 6px 12px;
  font-size: 12px;
}

/* 表格内文字溢出处理 */
.authors-table .el-table .cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 数字列的样式 */
.authors-table .el-table td.is-center .cell {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* 表格hover效果 */
.authors-table .el-table tbody tr:hover > td {
  background-color: #f5f7fa;
}

/* 分页器样式 */
.authors-table .pagination {
  padding: 20px;
  text-align: right;
  background: #fff;
  border-top: 1px solid #ebeef5;
}

/* 表格操作区域样式 */
.table-operations {
  padding: 15px 20px;
  background: #fff;
  border-top: 1px solid #ebeef5;
}

/* 搜索栏样式 */
.search-bar {
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar .el-input {
  width: 300px;
}

/* 分页组件美化 */
.pagination-container {
  margin-top: 20px;
  text-align: right;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #ff4158;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
  .el-table .cell .el-button {
    padding: 7px 12px;
    font-size: 12px;
  }
}

@media screen and (max-width: 768px) {
  .search-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-input {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .table-operations {
    flex-wrap: wrap;
  }
  
  .table-operations .el-button {
    margin-bottom: 10px;
  }
}

/* 表格内数字的样式 */
.el-table .cell {
  padding-left: 5px;
  padding-right: 5px;
}

.el-table td.is-right .cell {
  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
}

/* 操作按钮样式 */
.operation-buttons {
  display: flex;
  justify-content: space-around;
  gap: 4px;
}

.operation-buttons .el-button--text {
  padding: 2px 4px;
}

.operation-buttons .delete-btn {
  color: #f56c6c;
}

.operation-buttons .el-button--text:hover {
  background: #f5f7fa;
  border-radius: 2px;
}

/* 头像样式优化 */
.author-list-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #ebeef5;
}

/* 状态标签样式 */
.el-tag--mini {
  height: 20px;
  padding: 0 4px;
  line-height: 18px;
}

/* 表格hover效果 */
.el-table tbody tr:hover > td {
  background-color: #f5f7fa !important;
}

/* 表格头部样式 */
.el-table th {
  background-color: #f5f7fa;
  color: #606266;
  font-weight: 500;
  padding: 8px 0;
}

/* 表格单元格内容垂直居中 */
.el-table .cell {
  line-height: 20px;
  vertical-align: middle;
} 