/* H3C数字人管理系统样式表 */

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 基础样式 */
body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* 导航栏样式 */
.navbar {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
}

.navbar-brand img {
  margin-right: 8px;
}

/* 主内容区 */
.main-content {
  padding: 2rem 0;
  min-height: calc(100vh - 150px);
}

/* 卡片样式 */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem;
}

.card-title {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* 列表样式 */
.list-group-item {
  border-left: none;
  border-right: none;
  padding: 1rem 1.25rem;
}

.list-group-item:first-child {
  border-top: none;
}

.list-group-item:last-child {
  border-bottom: none;
}

/* 按钮样式 */
.btn {
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #3498db;
  border-color: #3498db;
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-success {
  background-color: #2ecc71;
  border-color: #2ecc71;
}

.btn-success:hover {
  background-color: #27ae60;
  border-color: #27ae60;
}

.btn-danger {
  background-color: #e74c3c;
  border-color: #e74c3c;
}

.btn-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
}

/* 表单样式 */
.form-control {
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* 数字人和视频卡片 */
.avatar-card img, .video-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.avatar-card .card-body, .video-card .card-body {
  padding: 1.25rem;
}

.avatar-actions, .video-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

/* 状态标签 */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
}

.status-pending {
  background-color: #f8f9fa;
  color: #6c757d;
}

.status-processing {
  background-color: #e3f2fd;
  color: #0d6efd;
}

.status-completed {
  background-color: #d1e7dd;
  color: #198754;
}

.status-failed {
  background-color: #f8d7da;
  color: #dc3545;
}

/* 页脚样式 */
footer {
  background-color: #f8f9fa;
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

footer p {
  margin-bottom: 0;
  color: #6c757d;
}

/* 预览区域 */
.preview-container {
  background-color: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.preview-container img, .preview-container video {
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto;
}

/* 文件上传 */
.custom-file-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .card-deck .card {
    flex: 0 0 100%;
    margin-bottom: 1rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .main-content {
    padding: 1.5rem 0;
  }
}
