.project-detail-page {
  min-height: 100vh;
  background-color: #f8f9fa;
  padding: 20px;
}

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

.header-container .btn-danger {
  margin-right: 10px;
}

.back-btn {
  margin-right: 10px;
}

.project-detail-container {
  max-width: 1400px;
  margin: 0 auto;
}

.segments-container {
  max-height: 700px;
  overflow-y: auto;
}

.segments-table {
  margin-bottom: 0;
}

.segments-table thead th {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 10;
}

.segment-text-cell,
.segment-description-cell {
  min-width: 200px;
}

.segment-content,
.segment-description {
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.segment-content:hover,
.segment-description:hover {
  background-color: #f8f9fa;
}

.segment-times {
  margin-bottom: 4px;
}

.segment-text,
.segment-description {
  white-space: pre-wrap;
  word-break: break-word;
}

.segment-edit-container {
  padding: 8px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.editable-content {
  position: relative;
}

.editable-content::after {
  content: '点击编辑';
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 12px;
  color: #6c757d;
  opacity: 0;
  transition: opacity 0.2s;
}

.editable-content:hover::after {
  opacity: 1;
}

.selected {
  background-color: #e3f2fd !important;
}

/* 下拉菜单中的删除选项 */
.dropdown-item.text-danger {
  color: #dc3545 !important;
}

.dropdown-item.text-danger:hover, 
.dropdown-item.text-danger:focus {
  background-color: #f8d7da;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .project-detail-page {
    padding: 10px;
  }
  
  .segment-text-cell,
  .segment-description-cell {
    min-width: 150px;
  }
  
  .segment-content,
  .segment-description {
    padding: 4px;
  }
  
  .segment-times {
    font-size: 12px;
  }
  
  .segment-text,
  .segment-description {
    font-size: 14px;
  }
  
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-container .ms-auto {
    margin-top: 10px;
    align-self: flex-end;
  }
}

/* 模态框样式 */
.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* 按钮样式 */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* 下拉菜单样式 */
.dropdown-menu {
  min-width: 120px;
}

/* 工具提示样式 */
.tooltip {
  font-size: 0.875rem;
}

.project-title {
  margin: 0;
  margin-left: 10px;
}

.segments-table td, .segments-table th {
  padding: 12px 15px;
  vertical-align: middle;
}

/* 分镜内容单元格样式 */
.segment-text-cell {
  max-width: 300px;
}

.segment-content {
  display: flex;
  flex-direction: column;
}

/* 选中行的样式 */
.segments-table tr.selected {
  background-color: rgba(0, 123, 255, 0.1) !important;
}

/* 表格操作按钮样式 */
.segments-table .btn {
  margin: 2px;
  white-space: nowrap;
}

.segments-table .dropdown-menu {
  min-width: 150px;
}

/* 上传文件表单 */
.file-input-container {
  margin-bottom: 20px;
}

/* 描述词预览 */
.description-preview {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  white-space: pre-line;
}

/* 图片和视频预览 */
.media-preview {
  max-width: 100%;
  max-height: 200px;
  margin-top: 10px;
  border-radius: 5px;
}

.audio-player {
  width: 100%;
  margin-top: 10px;
}

/* 响应式布局调整 */
@media (max-width: 992px) {
  .segments-table th, .segments-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  
  .project-detail-page .row {
    flex-direction: column;
  }
  
  .project-detail-page .col-md-6 {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .segment-text-cell {
    max-width: 200px;
  }
}

/* 生成进度指示器 */
.generation-progress {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.85rem;
  color: #198754;
  background-color: rgba(25, 135, 84, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 40px;
  text-align: center;
}

/* 描述词生成中的样式 */
.generating {
  position: relative;
}

.generating:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(25, 135, 84, 0.1);
  border-radius: 4px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.4;
  }
}

/* 媒体单元格样式 */
.media-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-thumbnail {
  width: 100%;
  text-align: center;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.image-thumbnail img {
  transition: transform 0.2s;
}

.image-thumbnail img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .media-cell .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }
  
  .image-thumbnail {
    max-width: 60px;
  }
} 