.home-container {
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  background-color: #f8f9fa;
}

.header-container {
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
}

.add-project-btn, .back-btn {
  margin-right: 15px;
}

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

.welcome-container {
  margin-top: 20px;
  margin-bottom: 30px;
}

.welcome-container h2 {
  margin-bottom: 1rem;
}

.add-project-btn {
  padding: 8px 20px;
  font-weight: 500;
}

.api-settings-btn {
  padding: 8px 20px;
  font-weight: 500;
}

.back-btn {
  padding: 6px 15px;
  margin-bottom: 15px;
}

/* 项目列表样式 */
.project-list-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  margin-top: 30px;
}

/* 表格样式 */
.project-table, .segments-table {
  width: 100%;
  border-collapse: collapse;
}

.project-table th, .segments-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  text-align: left;
}

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

.project-title-cell {
  font-weight: 500;
  font-size: 1.05rem;
  max-width: 250px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 操作按钮样式 */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.action-buttons .btn {
  margin-bottom: 5px;
}

.action-buttons .btn-outline-danger {
  margin-left: auto;
}

/* 项目详情样式 */
.project-detail-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.project-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ececec;
}

.segment-header {
  background-color: #f8f9fa;
  font-weight: 500;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.segment-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 10px;
  margin-bottom: 10px;
}

.segment-time {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 5px;
}

.segment-text {
  font-size: 1rem;
  line-height: 1.5;
}

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

/* 数据库路径链接样式 */
.database-path-link {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.footer-links {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
  text-align: center;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

/* 对话框内容的样式 */
.modal-body {
  padding: 20px;
}

/* 表单标签样式 */
.form-label {
  font-weight: 500;
}

/* 表单帮助文本样式 */
.form-text {
  color: #6c757d;
  font-size: 0.85rem;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
  .home-container .row {
    flex-direction: column;
  }
  
  .home-container .col-md-6 {
    width: 100%;
    margin-bottom: 20px;
  }

  .project-table th, .project-table td,
  .segments-table th, .segments-table td {
    padding: 8px;
    font-size: 0.9rem;
  }
  
  .project-title-cell {
    font-size: 1rem;
    max-width: 150px;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .action-buttons .btn {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .add-project-btn,
  .api-settings-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
  
  .header-container .d-flex {
    flex-direction: column;
    gap: 10px;
  }
  
  .header-container .d-flex button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .project-table {
    font-size: 0.9rem;
  }
  
  .footer-links .d-flex {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}

/* 确认对话框样式 */
.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

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