/**
 * 瑞美舒适家居系统 - 前端样式表
 * 将pain-diagnosis.html中的inline样式迁移到外部CSS
 */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* 痛点描述样式 */
.pain-description {
  margin-bottom: 20px;
}

/* 匹配加载样式 */
.matching-loading {
  padding: 40px;
}

/* 方案摘要样式 */
.solution-summary {
  margin: 15px 0;
}

/* 状态栏内容样式 */
.status-bar-content {
  display: flex;
  gap: 24px;
}

/* 容器 */
.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 20px; 
}

/* 头部 */
.header { 
  text-align: center; 
  color: white; 
  padding: 30px 0; 
}

.header h1 { 
  font-size: 2.5em; 
  margin-bottom: 10px; 
}

/* 卡片 */
.card { 
  background: white; 
  border-radius: 16px; 
  padding: 30px; 
  margin-bottom: 20px; 
  box-shadow: 0 10px 40px rgba(0,0,0,0.2); 
}

/* 步骤指示器 */
.step-indicator { 
  display: flex; 
  justify-content: center; 
  margin-bottom: 30px; 
}

.step { 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  background: #e0e0e0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin: 0 10px; 
  font-weight: bold; 
}

.step.active { 
  background: #667eea; 
  color: white; 
}

.step.completed { 
  background: #22c55e; 
  color: white; 
}

/* 表单 */
.form-group { 
  margin-bottom: 20px; 
}

.form-group label { 
  display: block; 
  margin-bottom: 8px; 
  font-weight: 600; 
  color: #333; 
}

.form-group input, 
.form-group select { 
  width: 100%; 
  padding: 12px; 
  border: 2px solid #e0e0e0; 
  border-radius: 8px; 
  font-size: 16px; 
}

.form-group input:focus, 
.form-group select:focus { 
  outline: none; 
  border-color: #667eea; 
}

/* 网格布局 */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* 痛点分类 */
.pain-category { 
  margin-bottom: 25px; 
  padding: 20px; 
  background: #f8f9fa; 
  border-radius: 12px; 
}

.pain-category h3 { 
  display: flex; 
  align-items: center; 
  margin-bottom: 15px; 
  color: #333; 
}

.pain-category .icon { 
  font-size: 1.5em; 
  margin-right: 10px; 
}

/* 痛点标签 */
.pain-tags { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
}

.pain-tag { 
  padding: 10px 20px; 
  border: 2px solid #e0e0e0; 
  border-radius: 25px; 
  cursor: pointer; 
  transition: all 0.3s; 
  background: white; 
}

.pain-tag:hover { 
  border-color: #667eea; 
  background: #f0f4ff; 
}

.pain-tag.selected { 
  border-color: #667eea; 
  background: #667eea; 
  color: white; 
}

/* 按钮 */
.btn { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
  color: white; 
  border: none; 
  padding: 15px 40px; 
  border-radius: 8px; 
  font-size: 18px; 
  font-weight: 600; 
  cursor: pointer; 
  transition: transform 0.2s; 
}

.btn:hover { 
  transform: translateY(-2px); 
}

.btn:disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
}

/* 结果框 */
.result-box { 
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); 
  border: 2px solid #0ea5e9; 
  border-radius: 12px; 
  padding: 25px; 
  margin-top: 20px; 
}

/* 系统卡片 */
.system-card { 
  background: white; 
  border-radius: 12px; 
  padding: 20px; 
  margin: 15px 0; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  border-left: 4px solid #667eea; 
}

.system-card.forced { 
  border-left-color: #22c55e; 
}

.system-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.system-card-body {
  color: #666;
  margin: 10px 0;
}

.system-card-products {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.product-tag {
  background: #f0f4ff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9em;
}

.system-card-price {
  margin-top: 10px;
  color: #dc2626;
  font-weight: bold;
}

/* 价格标签 */
.price-tag { 
  font-size: 2em; 
  font-weight: bold; 
  color: #dc2626; 
}

/* 加载动画 */
.loading { 
  display: inline-block; 
  width: 20px; 
  height: 20px; 
  border: 3px solid #f3f3f3; 
  border-top: 3px solid #667eea; 
  border-radius: 50%; 
  animation: spin 1s linear infinite; 
}

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

/* 隐藏 */
.hidden { 
  display: none; 
}

/* 特殊人群选项 */
.special-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.special-group label {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 居中按钮容器 */
.btn-center {
  text-align: center;
  margin-top: 30px;
}

/* 报价详情项 */
.quote-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.quote-item-info {
  flex: 1;
}

.quote-item-title {
  font-weight: bold;
}

.quote-item-desc {
  color: #666;
  font-size: 0.9em;
  margin-top: 5px;
}

.quote-item-price {
  font-weight: bold;
  color: #dc2626;
}

/* 总计行 */
.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.quote-total-label {
  font-size: 1.2em;
}

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .header h1 {
    font-size: 1.8em;
  }
  
  .card {
    padding: 20px;
  }
  
  .grid-layout {
    grid-template-columns: 1fr;
  }
  
  .pain-tags {
    gap: 8px;
  }
  
  .pain-tag {
    padding: 8px 15px;
    font-size: 0.9em;
  }
}
