/* 文本创作中心通用样式 */

/* ========== 页面布局 ========== */
.text-creation-page {
  padding: 0;
  margin-top: 0;
  border: none;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  padding: 0;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

.page-header::after,
.page-header::before,
.page-nav::after,
.page-nav::before,
.page-nav h2::after,
.page-nav h2::before,
.text-creation-page::after,
.text-creation-page::before {
  display: none !important;
  content: none !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background: none !important;
  background-image: none !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.page-nav {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background-image: none !important;
}

.page-nav h2 {
  font-size: 22px;
  color: #333;
  margin: 0;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  padding-bottom: 0;
  position: relative;
  background-image: none !important;
  text-decoration: none !important;
}

.page-actions {
  display: flex;
  gap: 8px;
}

/* ========== 主容器和布局 ========== */
.main-container {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.input-section {
  width: 45%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 12px;
}

.right-column {
  width: 55%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========== 通用区块 ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background-color: #fff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  color: var(--primary-color, #ba003f);
  font-size: 16px;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.section-title i {
  margin-right: 8px;
  font-size: 20px;
  color: var(--primary-color, #ba003f);
}

/* ========== 表单元素样式 ========== */
.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  flex: 1;
  margin-bottom: 12px;
  border-bottom: none !important;
  position: relative;
  transition: all 0.3s ease;
}

/* 修改这条规则，它会导致表单标签文字在悬停时变色 */
/* .form-group:hover label {
  color: var(--primary-color, #ba003f);
} */

/* 添加修改后的规则 */
.form-group:hover label.form-control-label {
  color: var(--primary-color, #ba003f);
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
  font-size: 14px;
  transition: color 0.3s ease;
}

.required:after {
  content: ' *';
  color: var(--primary-color, #ba003f);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color, #ba003f);
  outline: none;
  box-shadow: 0 0 0 3px rgba(186, 0, 63, 0.1);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
  background-color: #fafafa;
}

textarea.form-control:focus {
  background-color: #fff;
}

/* ========== 下拉菜单样式 ========== */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  background-size: 12px;
  padding-right: 32px;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

select.form-control:hover {
  border-color: #bbb;
  background-color: #f9f9f9;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

select.form-control:focus {
  border-color: var(--primary-color, #ba003f);
  box-shadow: 0 0 0 3px rgba(186, 0, 63, 0.1);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ba003f' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
}

select.form-control option {
  font-weight: normal;
  background-color: white;
  color: #333;
  padding: 8px;
}

/* ========== 复选框样式 ========== */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.checkbox-item {
  position: relative;
  background: #fff;
  border-radius: 30px;
  border: 1px solid #eee;
  transition: all 0.2s ease;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.checkbox-item:hover {
  border-color: #ddd;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.checkbox-active {
  background-color: var(--primary-color, #ba003f);
  border-color: var(--primary-color, #ba003f);
}

.checkbox-active .checkbox-label {
  color: #fff;
}

.checkbox-label {
  display: block;
  padding: 4px 18px;
  margin: 0;
  font-weight: normal;
  cursor: pointer;
  color: #444;
  font-size: 14px;
  transition: color 0.2s;
  text-align: center;
  line-height: 1.5;
}

/* 移除这两条规则，以防止它们被激活或干扰其他规则 */
/* .checkbox-item:hover .checkbox-label {
  color: #444;
} */

/* .checkbox-active:hover .checkbox-label {
  color: #fff;
} */

/* 添加明确的规则来阻止任何颜色变化 */
.checkbox-item:hover:not(.checkbox-active) .checkbox-label {
  color: #444 !important; /* 使用!important确保优先级 */
}

.checkbox-active:hover .checkbox-label {
  color: #ffffff !important; /* 使用!important确保优先级 */
}

.checkbox-item input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* ========== 单选框样式 ========== */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.radio-item {
  position: relative;
  background-color: #fcf2f5;
  border-radius: 20px;
  border: 1px solid #f9e0e7;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(186, 0, 63, 0.05);
}

.radio-item:hover {
  background-color: #f9e0e7;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(186, 0, 63, 0.1);
}

.radio-active {
  background-color: var(--primary-color, #ba003f);
  border-color: var(--primary-color, #ba003f);
}

.radio-active .radio-label {
  color: #fff;
}

.radio-label {
  display: block;
  padding: 8px 14px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  color: #555;
  font-size: 14px;
  transition: color 0.3s;
  position: relative;
  line-height: 1.4;
  text-align: center;
}

.radio-item input[type='radio'] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* ========== 按钮样式 ========== */
.action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 54px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn i {
  font-size: 16px;
}

/* 紧凑型按钮样式 */
.btn-compact {
  height: 27px;
  padding: 0 24px;
  font-size: 12px;
}

.btn-compact i {
  font-size: 14px;
}

/* 紧凑型小按钮样式 */
.btn-compact-sm {
  height: 24px;
  padding: 0 12px;
  font-size: 12px;
  min-width: 60px;
}

.btn-compact-sm i {
  font-size: 13px;
}

.btn-primary {
  background-color: var(--primary-color, #ba003f);
  color: white;
  flex: 1;
}

.btn-primary:hover {
  background-color: #980034;
  box-shadow: 0 4px 12px rgba(186, 0, 63, 0.2);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-primary:disabled {
  background-color: #ddd;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #eee;
}

.btn-secondary:hover {
  background-color: #e5e5e5;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.15);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: scale(0.96);
}

/* ========== 功能按钮样式 ========== */
.learn-button {
  background-color: var(--primary-color, #ba003f);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  height: auto;
}

.learn-button:hover {
  background-color: #980034;
}

.learn-button i {
  font-size: 16px;
  margin-right: 0;
}

.action-button {
  background: none;
  border: 1px solid #eee;
  color: #666;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.action-button:hover {
  color: var(--primary-color, #ba003f);
  background-color: #f8f8f8;
  border-color: #ddd;
  transform: translateY(-1px);
}

.action-button i {
  font-size: 16px;
}

.primary-button {
  background-color: var(--primary-color, #ba003f);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.primary-button:hover {
  background-color: #980034;
}

.secondary-button {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #eee;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.secondary-button:hover {
  background-color: #e5e5e5;
}

/* 禁用状态 */
.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #ccc;
  color: #666;
  border-color: #ccc;
}

.primary-button:disabled:hover {
  background-color: #ccc;
  transform: none;
  box-shadow: none;
}

.secondary-button:disabled:hover {
  background-color: #f5f5f5;
  transform: none;
}

/* ========== 内容展示区域 ========== */
.result-section {
  flex: 1;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.result-content-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

/* ========== 数据表格样式 ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.data-table th {
  background-color: #f9f9f9;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.data-table tr:hover {
  background-color: #f9f9f9;
}

.data-table td .tag {
  text-align: center;
}

.operations {
  white-space: nowrap;
  min-width: 200px;
}

.operation-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.table-button {
  margin-right: 8px;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #fff;
  background-color: #ba003f;
}

.table-button.edit {
  background-color: #409eff;
}

.table-button.view {
  background-color: #67c23a;
}

.table-button.delete {
  background-color: #f56c6c;
}

.tag {
  display: inline-block;
  padding: 2px 6px;
  margin-right: 6px;
  background-color: #f0f2f5;
  color: #606266;
  font-size: 12px;
  border-radius: 4px;
}

.empty-data {
  text-align: center;
  padding: 30px;
  color: #909399;
}

.section-content {
  margin-bottom: 20px;
}

/* ========== 分页样式 ========== */
.pagination-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.pagination {
  display: flex;
  align-items: center;
}

.pagination-button {
  width: 32px;
  height: 32px;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #606266;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-button:disabled {
  cursor: not-allowed;
  color: #c0c4cc;
}

.page-info {
  margin: 0 10px;
  font-size: 14px;
  color: #606266;
}

.page-size-selector {
  margin-left: 15px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #606266;
}

.page-size-selector select {
  margin: 0 5px;
  padding: 2px 8px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
}

/* ========== 表单宽度变体 ========== */
.form-group-wide {
  flex: 2;
}

.form-group-medium {
  flex: 1.5;
}

/* ========== 按钮类型变体 ========== */
.btn-danger {
  background-color: #f56c6c;
  color: white;
  border: none;
}

.btn-danger:hover {
  background-color: #f78989;
  transform: translateY(-1px);
}

/* ========== 空状态样式 ========== */
.empty-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 350px;
  background-color: #fff;
  border-radius: 8px;
  color: #666;
  text-align: center;
}

.empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.empty-image {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.empty-message {
  margin: 0 0 20px;
  font-size: 16px;
  color: #666;
}

/* ========== 加载状态样式 ========== */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 5;
  border-radius: 0 0 8px 8px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(186, 0, 63, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color, #ba003f);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 20px;
}

.loading-text {
  font-size: 16px;
  color: var(--primary-color, #ba003f);
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinning {
  animation: spin 1.5s linear infinite;
  display: inline-block;
}

.blur-content {
  filter: blur(1px);
  opacity: 0.6;
  pointer-events: none;
}

/* ========== 模态框样式 ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: modal-pop 0.3s ease-out;
}

@keyframes modal-pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h3 i {
  color: var(--primary-color, #ba003f);
}

.close-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(80vh - 60px);
}

/* ========== 知识学习侧边栏 ========== */
.knowledge-drawer :deep(.el-drawer__header) {
  margin-bottom: 0;
  padding: 15px 20px;
  border-bottom: 1px solid #eaeaea;
  color: #ba003f;
  font-weight: bold;
}

.knowledge-drawer :deep(.el-drawer__title) {
  font-size: 18px;
  color: #ba003f;
}

.knowledge-content {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.knowledge-section {
  margin-bottom: 25px;
}

.knowledge-subtitle {
  color: #ba003f;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid rgba(186, 0, 63, 0.2);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
}

.knowledge-text {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.knowledge-text strong {
  color: #ba003f;
  font-weight: 600;
}

.knowledge-text ul {
  padding-left: 20px;
  margin: 10px 0;
}

.knowledge-text li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.knowledge-icon {
  display: inline-block;
  margin-right: 8px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(186, 0, 63, 0.1);
  color: #ba003f;
  font-size: 16px;
  vertical-align: middle;
}

/* ========== 响应式布局 ========== */
@media (max-width: 992px) {
  .main-container {
    flex-direction: column;
  }

  .input-section,
  .right-column {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .knowledge-drawer :deep(.el-drawer) {
    width: 90% !important;
  }

  .form-row {
    flex-direction: column;
  }
}

/* ========== 参考案例样式 ========== */
.examples-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px;
  margin-bottom: 0; /* 移除底部边距 */
}

.examples-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.example-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 5px; /* 添加底部间距避免阴影被裁剪 */
}

.example-cards {
  display: flex;
  gap: 20px; /* 增加卡片间距 */
  transition: transform 0.3s ease;
  will-change: transform;
  padding: 5px 0;
  width: max-content; /* 确保足够宽以容纳所有内容 */
}

.example-card {
  flex: 0 0 220px; /* 增加卡片宽度 */
  height: auto; /* 改为自适应高度 */
  min-height: 120px; /* 设置最小高度 */
  margin-right: 10px;
  cursor: pointer;
  position: relative;
  border-radius: 12px;
  background: white;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.example-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color, #ba003f);
}

/* 卡片头部区域 - 顶部固定部分 */
.example-card-header {
  position: relative;
  background: linear-gradient(to right, rgba(186, 0, 63, 0.02), rgba(186, 0, 63, 0.08));
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start; /* 改为顶部对齐，适合多行标题 */
  gap: 15px;
  min-height: 85px;
}

/* 图标样式 */
.example-icon {
  width: 55px;
  height: 55px;
  min-width: 55px;
  background-color: rgba(186, 0, 63, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 3px 6px rgba(186, 0, 63, 0.1);
}

.example-icon i,
.example-icon svg {
  font-size: 26px;
  color: var(--primary-color, #ba003f);
  display: inline-block; /* 确保图标可见 */
  line-height: 1; /* 修正行高，防止图标被裁剪 */
}

/* 标题区域 */
.example-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.example-title {
  font-weight: 600;
  font-size: 16px;
  color: #222;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: all 0.3s;
  flex: 1;
  min-height: 42px; /* 确保有足够的高度容纳两行文字 */
}

.example-desc {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.5;
}

/* 卡片内容区域 - 底部描述部分，无内容时隐藏 */
.example-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  background-color: white;
  flex: 1;
  min-height: 60px;
  transition: all 0.3s ease;
}

.example-content:empty {
  display: none;
}

.example-detail {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 默认显示3行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  margin-bottom: 5px; /* 添加底部边距 */
  transition: all 0.3s ease;
}

/* 移除渐变遮罩，在文本末尾添加省略号 */
.example-detail::after {
  display: none; /* 移除渐变遮罩 */
}

/* 卡片悬停效果优化 */
.example-card:hover .example-detail {
  -webkit-line-clamp: 8; /* 悬停时显示更多行 */
  color: #333; /* 文字颜色加深 */
}

/* 添加更好的内容展开交互 */
.example-card:hover .example-content {
  background-color: #fafafa; /* 轻微背景色变化 */
}

/* 当描述为空时隐藏卡片内容部分 */
.example-detail:empty {
  display: none;
}

/* 标签区域 */
.example-tags {
  padding: 0 16px 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.example-tag {
  padding: 4px 10px;
  background-color: rgba(186, 0, 63, 0.08);
  color: var(--primary-color, #ba003f);
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}

/* 标签为空时隐藏 */
.example-tags:empty {
  display: none;
  padding: 0;
}

/* 鼠标悬停时的动画效果 */
.example-card:hover .example-title {
  color: var(--primary-color, #ba003f);
}

.example-card:hover .example-detail::after {
  opacity: 0.5;
}

/* 轮播控制样式 */
.example-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 15px; /* 增加底部边距以适应更大的卡片阴影 */
}

.example-cards {
  display: flex;
  gap: 25px; /* 增加间距 */
  transition: transform 0.4s ease;
  will-change: transform;
  padding: 10px 0;
  width: max-content;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-control {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-control i {
  font-size: 20px;
  color: #666;
  display: inline-block; /* 确保图标可见 */
  line-height: 1; /* 修正行高 */
}

.carousel-control:hover {
  background-color: rgba(186, 0, 63, 0.05);
  border-color: var(--primary-color, #ba003f);
}

.carousel-control:hover i {
  color: var(--primary-color, #ba003f);
}

.carousel-control.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 大尺寸示例卡片 */
.example-card-large {
  display: flex;
  flex-direction: column;
  height: 400px; /* 比标准卡片高度高一倍 */
  min-width: 300px; /* 更宽的最小宽度 */
  max-width: 400px;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  overflow: hidden;
  cursor: pointer;
}

.example-card-large:hover {
  border-color: var(--primary-color, #ba003f);
  box-shadow: 0 4px 12px rgba(186, 0, 63, 0.15);
  height: auto; /* 悬停时可以自动调整高度 */
}

.example-card-large .example-icon {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background-color: rgba(186, 0, 63, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.example-card-large .example-icon i,
.example-card-large .example-icon svg {
  font-size: 32px;
}

.example-card-large .example-title {
  font-size: 18px;
  margin-bottom: 10px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.example-card-large .example-desc {
  font-size: 15px;
  white-space: normal;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.example-card-large .example-content {
  padding: 20px;
  max-height: 250px; /* 增加内容区域的高度 */
}

.example-card-large .example-detail {
  -webkit-line-clamp: 8; /* 显示更多行 */
  font-size: 15px;
}

.example-card-large .example-tags {
  padding: 0 20px 20px;
}

.example-card-large .example-tag {
  padding: 5px 12px;
  font-size: 13px;
}

/* 大尺寸卡片的轮播样式调整 */
.example-cards-large {
  display: flex;
  gap: 30px;
  transition: transform 0.4s ease;
  will-change: transform;
  padding: 15px 0;
  width: max-content;
}

/* ========== AI应用案例编辑特有样式 ========== */

/* 标签预览区域 */
.tags-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* 编辑表单容器 */
.edit-form-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* 错误信息提示 */
.error-message {
  color: #f56c6c;
  font-size: 12px;
  margin-top: 5px;
}

/* 按钮与输入框的容器样式 */
.form-group > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 案例封面上传样式 */
.cover-upload-container {
  margin-top: 10px;
  width: 100%;
}

.cover-preview {
  position: relative;
  width: 320px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.cover-remove-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.cover-upload {
  width: 320px;
  height: 180px;
  border: 2px dashed #dcdfe6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cover-upload-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #909399;
  cursor: pointer;
}

.cover-upload-button i {
  font-size: 32px;
}

/* 文件上传样式 */
.file-upload-container {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.file-input {
  display: none;
}

.file-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 16px;
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.file-upload-button:hover {
  background-color: #e8e8e8;
  border-color: #ccc;
}

.file-name {
  margin-left: 12px;
  color: #606266;
  font-size: 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-tip {
  font-size: 12px;
  color: #909399;
  margin-top: 5px;
}

.uploaded-files {
  margin-top: 15px;
}

.uploaded-file {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.file-icon {
  margin-right: 10px;
  color: #409eff;
  font-size: 18px;
}

.file-info {
  flex: 1;
  font-size: 14px;
  color: #606266;
}

/* 红色危险按钮样式 */
.btn-danger {
  background-color: #f56c6c;
  color: white;
  border: none;
}

.btn-danger:hover {
  background-color: #f78989;
}

/* 绿色成功按钮样式 */
.btn-success {
  background-color: #67c23a;
  color: white;
  border: none;
}

.btn-success:hover {
  background-color: #73d13d;
}

/* AI设计案例提示词工程样式 */
.prompt-section {
  margin-bottom: 20px;
}

.prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.radio-group {
  display: flex;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 紫荆红色单选框样式 */
.radio-label input[type='radio'] {
  accent-color: #c10055;
  width: 16px;
  height: 16px;
}

.radio-label input[type='radio']:checked + span {
  color: #c10055;
  font-weight: 500;
}

.prompt-content {
  margin-bottom: 10px;
}

.prompt-content.file-content {
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.file-placeholder {
  color: #909399;
  font-size: 12px;
}

.prompt-actions {
  margin-top: 10px;
  text-align: center;
}

.generated-prompt {
  margin-top: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.prompt-controls {
  display: flex;
  gap: 10px;
}

.prompt-editor {
  margin-top: 10px;
}

.prompt-editor textarea {
  height: auto !important;
  min-height: 300px;
}

/* 一键创建案例按钮样式 */
.create-case-action {
  margin-top: 20px;
  text-align: center;
}

.create-case-action .btn-lg {
  padding: 12px 30px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.create-case-action .btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.create-case-action .btn-lg:active {
  transform: translateY(0);
}

/* 案例创建进度样式 */
.case-creation-progress {
  margin-top: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.progress-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.progress-header h4 {
  margin-right: 15px;
  min-width: 120px;
}

.progress-bar-container {
  flex: 1;
  height: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 10px;
}

.progress-bar {
  height: 100%;
  background-color: #c10055; /* 紫荆红色进度条 */
  transition: width 0.3s ease;
}

.progress-percentage {
  font-size: 14px;
  font-weight: 500;
  color: #c10055;
  min-width: 45px;
  text-align: right;
}

.creation-steps {
  margin-top: 20px;
  margin-bottom: 20px;
  border-left: 2px solid #f0f0f0;
  padding-left: 20px;
}

.creation-step {
  position: relative;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.creation-step:not(:last-child) {
  border-bottom: 1px dashed #f0f0f0;
}

.step-indicator {
  position: absolute;
  left: -31px;
  top: 15px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.step-indicator i {
  font-size: 12px;
}

.step-current .step-indicator {
  border-color: #c10055;
  background-color: #fff;
}

.step-current .step-indicator i.fa-spinner {
  color: #c10055;
  animation: rotate 1s infinite linear;
}

.step-completed .step-indicator {
  border-color: #c10055;
  background-color: #c10055;
}

.step-completed .step-indicator i {
  color: #fff;
}

.step-content {
  padding-left: 10px;
}

.step-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #303133;
  transition: all 0.3s ease;
}

.step-current .step-name {
  color: #c10055;
  font-weight: 600;
}

.step-description {
  font-size: 14px;
  color: #606266;
  margin-bottom: 10px;
}

.creation-complete-actions {
  margin-top: 20px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.creation-complete-actions .action-btn {
  margin: 0 10px;
  padding: 12px 30px;
  font-size: 16px;
  transition: all 0.3s ease;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.creation-complete-actions .action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.creation-complete-actions .action-btn:active {
  transform: translateY(0);
}

.creation-complete-actions .action-btn i {
  margin-right: 8px;
  font-size: 16px;
}

/* 图标样式补充 */
.icon-left {
  margin-right: 5px;
}

.btn .icon-left {
  margin-right: 8px;
}

/* 旋转动画 */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 确保优化按钮高度匹配输入框 */
.form-group button.btn {
  height: 40px !important;
  box-sizing: border-box !important;
  line-height: 38px !important;
  padding: 0 15px !important;
  vertical-align: middle !important;
  font-size: 14px !important;
  border-radius: 4px !important;
}

/* 统一表单控件高度 */
.form-control {
  height: 40px !important;
  box-sizing: border-box !important;
}

/* 宽按钮样式 */
.wide-btn {
  width: 300px !important; /* 宽度约为普通按钮的两倍 */
  margin: 0 auto !important;
  display: block !important; /* 确保按钮是块级元素 */
  font-size: 16px !important;
  padding: 10px 30px !important;
}

.wide-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(193, 0, 85, 0.2) !important;
}

/* 生成提示词按钮容器样式 */
.prompt-actions {
  margin-top: 20px !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
}

/* 一键创建案例按钮样式 */
.create-case-action {
  margin-top: 20px !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
}
