/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}
html, body {
  height: 100%;
  background-color: #f9fafb;
  color: #1e293b;
  line-height: 1.6;
}
body {
  display: flex;
  flex-direction: column;
}

/* 主要内容区域 */
.main-content {
  flex: 1;
  padding: 20px 0;
}
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}
button {
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
img {
  max-width: 100%;
}
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 24px;
}

/* 一级导航：任务 */
.task-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}
.task-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  background-color: #f1f5f9;
  color: #64748b;
}
.task-btn.active {
  background-color: #2563eb;
  color: white;
}
.task-btn:hover:not(.active) {
  background-color: #e2e8f0;
}

/* 二级导航：步骤 */
.steps-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.step-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  background-color: #f1f5f9;
  color: #64748b;
}
.step-btn.active {
  background-color: #3b82f6;
  color: white;
}
.step-btn:hover:not(.active) {
  background-color: #e2e8f0;
}

/* 进度条 */
.progress-wrap {
  margin: 15px 0;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 5px;
}
.progress-bar {
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background-color: #2563eb;
  transition: width 0.3s ease;
}

/* 内容容器 */
.task-container {
  display: none; /* 所有子任务默认隐藏 */
}
.task-container.active {
  display: block; /* 仅当前子任务显示 */
}
.step-content {
  display: none; /* 所有步骤默认隐藏 */
  min-height: 300px;
}
.step-content.active {
  display: block; /* 仅当前步骤显示 */
}

/* 步骤内容样式 */
.step-content h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #1e293b;
}
.step-content p {
  margin-bottom: 15px;
  color: #475569;
}
.step-list {
  margin: 0 0 20px 24px;
  color: #475569;
}
.step-list li {
  margin-bottom: 8px;
}

/* 步骤图片区样式（专用） */
.step-image-area {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.image-title {
  font-size: 15px;
  margin-bottom: 10px;
  color: #334155;
}
.step-image {
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
}
.image-desc {
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* 下载按钮样式 */
.download-section {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.download-title {
  font-size: 15px;
  margin-bottom: 10px;
  color: #334155;
}
.download-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  background-color: #2563eb;
  color: white;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.download-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.download-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* 步骤操作按钮 */
.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}
.action-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: none;
}
.prev-btn {
  background-color: white;
  border: 1px solid #cbd5e1;
  color: #64748b;
}
.prev-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.prev-btn.active:hover:not(:disabled) {
  background-color: #2563eb;
  color: white;
}
.prev-btn:disabled {
  background-color: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
  border-color: #e2e8f0;
}
.prev-btn.active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: white;
}
.next-btn {
  background-color: #2563eb;
  color: white;
}
.next-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.next-btn:disabled {
  background-color: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
  border-color: #e2e8f0;
}
.next-btn.active {
  background-color: #1d4ed8;
}

/* 三栏布局 */
.content-wrap {
  display: flex;
  gap: 20px;
}
.sidebar {
  width: 320px;
  flex-shrink: 0;
}
.main-panel {
  flex: 1;
}
.right-panel {
  width: 350px;
  flex-shrink: 0;
}

/* 侧边栏任务导航 */
.sidebar .task-nav {
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 0;
  border-bottom: none;
}
.sidebar .task-btn {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.sidebar .task-btn:hover {
  transform: translateX(4px);
}

/* 右侧记录区样式 */
.task-indicator {
  padding: 10px 20px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  color: #64748b;
}

.current-task-label {
  font-weight: 600;
  color: #2563eb;
}

.record-content {
  margin-top: 15px;
  padding: 20px;
}

.save-info {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}
.section-title {
  font-size: 15px;
  margin-bottom: 12px;
  color: #334155;
}

/* 上传区域样式 */
.upload-section {
  margin-bottom: 30px;
}
.upload-box {
  border: 2px dashed #e2e8f0;
  padding: 25px 20px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.upload-box:hover {
  border-color: #2563eb;
}
.upload-text {
  color: #64748b;
  font-size: 14px;
}
.upload-input {
  display: none;
}
.preview-container {
  margin-top: 15px;
  border-radius: 6px;
  overflow: hidden;
}
.upload-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}

/* 笔记区域样式 */
.notes-section {}
.notes-input {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  color: #334155;
}
.notes-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}
.save-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background-color: #2563eb;
  color: white;
  border-radius: 4px;
  font-size: 14px;
}
.save-btn:hover {
  background-color: #1d4ed8;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .content-wrap {
    flex-direction: column;
  }
  .sidebar,
  .right-panel {
    width: 100%;
  }
  .sidebar .task-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar .task-btn {
    width: auto;
  }
}

/* 页脚样式 */
.footer {
  margin-top: 50px;
  padding: 30px 0;
  background-color: #1e293b;
  color: white;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.footer-copyright,
.footer-contact {
  font-size: 14px;
  margin: 0;
  color: #cbd5e1;
}

.team-name,
.contact-info {
  font-weight: 600;
  color: white;
}

.copyright-english,
.contact-english {
  font-style: italic;
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-copyright,
  .footer-contact {
    font-size: 13px;
  }
  
  .copyright-english,
  .contact-english {
    font-size: 12px;
  }
}