/**
 * 痛点选择模块 - Apple + Pentagram风格
 * 与首页和选择场地页面设计风格完全统一
 */

.pain-module {
  width: 100% !important;
  min-height: 100vh !important;
  background: #f5f5f7 !important;
  padding: 0 !important;
  animation: none !important;
}

/* ==================== 返回导航 ==================== */
.pain-nav {
  padding: 32px 0 16px;
  background: white;
}

.pain-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pain-back-link:hover {
  color: #1d1d1f;
}

.pain-back-link svg {
  width: 18px;
  height: 18px;
}

/* ==================== 页面标题 ==================== */
.pain-header-section {
  background: white;
  padding: 0 0 56px;
  text-align: center;
}

.pain-header-content {
  max-width: 700px;
  margin: 0 auto;
}

.pain-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pain-main-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.pain-sub-description {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #6e6e73;
  line-height: 1.5;
}

/* ==================== 场景信息 ==================== */
.pain-scene-section {
  background: white;
  padding: 0 0 40px;
}

.pain-scene-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pain-scene-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
}

.pain-change-scene {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  background: transparent;
  border: 1px solid #d1d1d6;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 980px;
  transition: all 0.2s ease;
}

.pain-change-scene:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #1d1d1f;
}

/* ==================== AI推荐 ==================== */
.pain-ai-section {
  padding: 0 0 40px;
  background: white;
}

.pain-ai-recommendation {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 24px;
  padding: 28px;
}

.pain-ai-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e6e73;
  flex-shrink: 0;
}

.pain-ai-icon svg {
  width: 24px;
  height: 24px;
}

.pain-ai-content {
  flex: 1;
}

.pain-ai-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6e6e73;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pain-ai-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.6;
}

.pain-ai-view {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  background: white;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 980px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pain-ai-view:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ==================== 痛点选择区域 ==================== */
.pain-selection-section {
  padding: 56px 0;
  background: #f5f5f7;
}

.pain-section-header {
  margin-bottom: 40px;
  text-align: center;
}

.pain-section-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pain-section-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.pain-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pain-card {
  background: white;
  border-radius: 28px;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 4px 12px rgba(0, 0, 0, 0.03);
}

.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
}

.pain-card.selected {
  box-shadow: 
    0 0 0 2px #1d1d1f,
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
}

.pain-card-content {
  flex: 1;
}

.pain-card-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #1d1d1f;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.pain-card-quadrant {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6e6e73;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pain-card-quadrant svg {
  width: 16px;
  height: 16px;
}

.pain-card-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d1d1d6;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}

.pain-card:hover .pain-card-indicator {
  border-color: #1d1d1f;
}

.pain-card.selected .pain-card-indicator {
  border-color: #1d1d1f;
  background: #1d1d1f;
  color: white;
}

.pain-card-indicator svg {
  width: 18px;
  height: 18px;
}

/* ==================== 操作按钮 - Apple风格 ==================== */
.pain-actions-section {
  padding: 40px 0 80px;
  background: #f5f5f7;
}

.pain-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pain-btn {
  padding: 14px 28px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.pain-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}

/* disabled 状态增加更明显的视觉反馈 */
.pain-btn-primary:disabled {
  background: #8a8a8a;
  border-color: #8a8a8a;
  color: rgba(255, 255, 255, 0.6);
}

.pain-btn-outline:disabled {
  border-color: #e0e0e0;
  color: #b0b0b0;
  background: transparent;
}

/* 边框按钮 - Apple风格 */
.pain-btn-outline {
  background: transparent;
  color: #1d1d1f;
  border: 1px solid #d1d1d6;
}

.pain-btn-outline:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.04);
  border-color: #c7c7cc;
}

.pain-btn-outline:active:not(:disabled) {
  transform: scale(0.98);
}

/* 主要按钮 - Apple风格纯黑 */
.pain-btn-primary {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.pain-btn-primary:hover:not(:disabled) {
  background: #1d1d1f;
  border-color: #1d1d1f;
}

.pain-btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.pain-action-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1068px) {
  .pain-card {
    padding: 28px;
  }
}

@media (max-width: 734px) {
  .pain-nav {
    padding: 24px 0 12px;
  }

  .pain-header-section {
    padding: 0 0 40px;
  }

  .pain-scene-section {
    padding: 0 0 32px;
  }

  .pain-ai-recommendation {
    flex-direction: column;
    padding: 24px;
  }

  .pain-ai-view {
    width: 100%;
  }

  .pain-selection-section {
    padding: 40px 0;
  }

  .pain-card {
    padding: 24px;
    flex-direction: column;
  }

  .pain-card-indicator {
    align-self: flex-end;
    margin-top: 8px;
  }

  .pain-action-group {
    flex-direction: column;
    width: 100%;
  }

  .pain-btn {
    width: 100%;
  }

  .pain-actions-section {
    padding: 40px 0 64px;
  }
}

/* ==================== 暗夜模式适配 ==================== */
[data-theme="dark"] .pain-module {
  background: #000000 !important;
}

[data-theme="dark"] .pain-nav {
  background: #1c1c1e;
}

[data-theme="dark"] .pain-back-link {
  color: #8e8e93;
}

[data-theme="dark"] .pain-back-link:hover {
  color: #f5f5f7;
}

[data-theme="dark"] .pain-header-section {
  background: #1c1c1e;
}

[data-theme="dark"] .pain-main-title {
  color: #f5f5f7;
}

[data-theme="dark"] .pain-sub-description {
  color: #8e8e93;
}

[data-theme="dark"] .pain-scene-section {
  background: #1c1c1e;
}

[data-theme="dark"] .pain-scene-name {
  color: #f5f5f7;
}

[data-theme="dark"] .pain-change-scene {
  color: #a1a1aa;
  border-color: #3a3a3c;
}

[data-theme="dark"] .pain-change-scene:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #a1a1aa;
}

[data-theme="dark"] .pain-ai-section {
  background: #1c1c1e;
}

[data-theme="dark"] .pain-ai-recommendation {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .pain-ai-icon {
  background: #1c1c1e;
}

[data-theme="dark"] .pain-ai-text {
  color: #f5f5f7;
}

[data-theme="dark"] .pain-ai-view {
  background: #1c1c1e;
  color: #a1a1aa;
}

[data-theme="dark"] .pain-ai-view:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .pain-selection-section {
  background: #000000;
}

[data-theme="dark"] .pain-section-title {
  color: #f5f5f7;
}

[data-theme="dark"] .pain-card {
  background: #1c1c1e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .pain-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .pain-card.selected {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .pain-card-desc {
  color: #f5f5f7;
}

[data-theme="dark"] .pain-card-quadrant {
  color: #8e8e93;
}

[data-theme="dark"] .pain-card-indicator {
  border-color: #3a3a3c;
}

[data-theme="dark"] .pain-card:hover .pain-card-indicator {
  border-color: #a1a1aa;
}

[data-theme="dark"] .pain-card.selected .pain-card-indicator {
  border-color: #f5f5f7;
  background: #f5f5f7;
  color: #000000;
}

[data-theme="dark"] .pain-actions-section {
  background: #000000;
}

[data-theme="dark"] .pain-btn-outline {
  color: #f5f5f7;
  border-color: #3a3a3c;
}

[data-theme="dark"] .pain-btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: #48484a;
}

[data-theme="dark"] .pain-btn-primary {
  background: #f5f5f7;
  color: #000000;
  border-color: #f5f5f7;
}

[data-theme="dark"] .pain-btn-primary:hover:not(:disabled) {
  background: #ffffff;
  border-color: #ffffff;
}
