/* ========== 七步方法论工作流 ========== */
.methodology-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: var(--spacing-xl);
}

.methodology-container h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.methodology-container .subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xxl);
}

/* 工作流进度指示器 */
.workflow-progress {
  background: var(--surface-2);
  border-radius: var(--rounded-xl);
  padding: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 900px;
  gap: var(--spacing-sm);
}

.step {
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: var(--spacing-md) var(--spacing-sm);
  border-radius: var(--rounded-lg);
  position: relative;
}

.step:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.step.active {
  background: linear-gradient(135deg, rgba(255, 197, 61, 0.15), rgba(255, 139, 92, 0.15));
  border: 2px solid var(--primary);
}

.step.completed {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.15));
  border: 2px solid var(--semantic-success);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.step.active .step-number {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 197, 61, 0.4);
}

.step.completed .step-number {
  background: var(--semantic-success);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.step-label {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.step-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: var(--border-default);
  position: relative;
  top: -20px;
}

/* 步骤内容区域 */
.method-content {
  min-height: 500px;
}

.method-step {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.method-step.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  margin-bottom: var(--spacing-xxl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--border-subtle);
}

.step-header h3 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.step-intro {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 信息卡片 */
.info-card {
  background: linear-gradient(135deg, rgba(255, 197, 61, 0.08), rgba(255, 139, 92, 0.08));
  border: 1px solid rgba(255, 197, 61, 0.2);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.info-card h4 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: var(--spacing-md);
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-text);
  font-weight: bold;
}

/* 表单区域 */
.form-section {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
}

.form-section h4 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-subtle);
}

.inline-fields {
  display: flex;
  gap: var(--spacing-md);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--surface-3);
  border-radius: var(--rounded-md);
  transition: all 0.2s ease;
}

.checkbox-group label:hover {
  background: var(--surface-hover);
}

.checkbox-group input[type="checkbox"] {
  cursor: pointer;
}

.required {
  color: var(--semantic-error);
  margin-left: var(--spacing-xs);
}

/* AI辅助框 */
.ai-assist-box {
  display: flex;
  gap: var(--spacing-xl);
  background: linear-gradient(135deg, rgba(255, 197, 61, 0.05), rgba(255, 139, 92, 0.05));
  border: 2px dashed rgba(255, 197, 61, 0.3);
  border-radius: var(--rounded-xl);
  padding: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
  text-align: center;
  justify-content: center;
}

.ai-icon {
  font-size: 64px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ai-content h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.ai-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* 问题容器 */
.questions-container {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
}

.question-item {
  background: var(--surface-3);
  border-left: 4px solid var(--primary);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border-radius: var(--rounded-md);
}

.question-item h5 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.question-item textarea {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--rounded-md);
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-sans);
  color: var(--text-primary);
}

/* 决策历史 */
.decision-history {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xl);
}

.decision-history h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.history-list .empty-hint {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: var(--spacing-xl);
}

/* 任务列表 */
.tasks-list {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--surface-3);
}

.data-table th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-default);
}

.data-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.data-table tr:hover {
  background: var(--surface-hover);
}

.empty-row td {
  text-align: center;
  color: var(--text-muted);
  padding: var(--spacing-xxl);
  font-style: italic;
}

.task-stats {
  display: flex;
  gap: var(--spacing-xxl);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xl);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.stat-label {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--primary-text);
}

/* 写作指南 */
.write-guide {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(22, 163, 74, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
}

.write-guide h4 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--semantic-success);
  margin-bottom: var(--spacing-md);
}

.write-guide ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.write-guide li {
  padding: var(--spacing-sm) 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 快速链接网格 */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.quick-links-grid .link-card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xl);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-sm);
}

.quick-links-grid .link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.quick-links-grid .link-card .icon {
  font-size: 36px;
}

.quick-links-grid .link-card span {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.quick-links-grid .link-card small {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* 分析模式卡片 */
.analysis-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.mode-card {
  background: var(--surface-2);
  border: 2px solid var(--border-subtle);
  border-radius: var(--rounded-xl);
  padding: var(--spacing-xxl);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(255, 197, 61, 0.2);
}

.mode-icon {
  font-size: 56px;
  margin-bottom: var(--spacing-md);
}

.mode-card h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.mode-card p {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.analysis-results {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  min-height: 200px;
}

/* ========== 综合追踪页面 ========== */
.tracking-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: var(--spacing-xl);
}

.tracking-container h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.tracking-container .subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xxl);
}

.tracking-overview {
  margin-bottom: var(--spacing-xxl);
}

.overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
}

.track-card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all 0.3s ease;
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 42px;
  margin-bottom: var(--spacing-md);
}

.card-value {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: var(--spacing-xs);
}

.card-label {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  font-weight: 500;
}

.tracking-tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  background: var(--surface-2);
  padding: var(--spacing-sm);
  border-radius: var(--rounded-lg);
  overflow-x: auto;
}

.tab-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--fs-md);
  font-weight: 500;
  border-radius: var(--rounded-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 197, 61, 0.3);
}

.tracking-content {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}

.tab-panel {
  display: none;
  padding: var(--spacing-xxl);
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.panel-toolbar {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.empty-hint {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: var(--spacing-xxl);
  background: var(--surface-3);
  border-radius: var(--rounded-md);
}

/* ========== 质量检查清单页面 ========== */
.checklist-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: var(--spacing-xl);
}

.checklist-container h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.checklist-container .subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xxl);
}

.checklist-types {
  margin-bottom: var(--spacing-xxl);
}

.checklist-types h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.type-card {
  background: var(--surface-2);
  border: 2px solid var(--border-subtle);
  border-radius: var(--rounded-xl);
  padding: var(--spacing-xxl);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.type-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(255, 197, 61, 0.25);
  background: linear-gradient(135deg, rgba(255, 197, 61, 0.08), rgba(255, 139, 92, 0.08));
}

.type-icon {
  font-size: 52px;
  margin-bottom: var(--spacing-md);
}

.type-card h4 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.type-card p {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.6;
}

.checklist-result {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  min-height: 300px;
}

/* Toolbar样式 */
.toolbar {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}
