/* AI生活方式消费模块优化样式 */
:root {
  --ai-primary: #ff4757;
  --ai-secondary: #2ed573;
  --ai-accent: #ffa502;
  --ai-light: #f8f9fa;
  --ai-dark: #333;
  --ai-text: #666;
}

/* AI生活方式消费模块 */
.lifestyle-shopping {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
  position: relative;
  overflow: hidden;
}

.lifestyle-shopping::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,71,87,0.05)"/><circle cx="90" cy="90" r="0.8" fill="rgba(255,71,87,0.05)"/><circle cx="30" cy="70" r="1.2" fill="rgba(255,71,87,0.05)"/><circle cx="70" cy="30" r="0.8" fill="rgba(255,71,87,0.05)"/></svg>');
  opacity: 0.3;
}

/* 标题样式 */
.lifestyle-shopping .section-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--ai-primary);
  font-weight: 800;
  text-align: center;
  position: relative;
}

.lifestyle-shopping .section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--ai-primary);
  border-radius: 2px;
}

.lifestyle-shopping .section-subtitle {
  font-size: 1.2rem;
  color: var(--ai-text);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* AI推荐头部 */
.ai-recommendation-header {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.ai-recommendation-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ai-primary);
}

.ai-recommendation-header .fas.fa-robot {
  font-size: 4rem;
  color: var(--ai-primary);
  margin-bottom: 20px;
  display: block;
}

.ai-recommendation-header h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--ai-dark);
  font-weight: 700;
}

.ai-recommendation-header p {
  font-size: 1.1rem;
  color: var(--ai-text);
  margin-bottom: 25px;
  line-height: 1.6;
}

/* AI推荐按钮 */
#ai-recommend-btn {
  background: var(--ai-primary);
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 71, 87, 0.3);
}

#ai-recommend-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

/* 推荐结果占位符 */
.recommendation-placeholder {
  text-align: center;
  padding: 60px 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px dashed rgba(255, 71, 87, 0.3);
}

.recommendation-placeholder .fas.fa-search {
  font-size: 4rem;
  color: var(--ai-primary);
  margin-bottom: 20px;
  opacity: 0.7;
}

.recommendation-placeholder h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--ai-dark);
  font-weight: 600;
}

.recommendation-placeholder p {
  color: var(--ai-text);
  line-height: 1.6;
  margin: 0;
}

/* AI算法说明 */
.ai-algorithm-explanation {
  margin-top: 60px;
  text-align: center;
}

.ai-algorithm-explanation h3 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--ai-primary);
  font-weight: 700;
}

.algorithm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.algorithm-step {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.algorithm-step:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--ai-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--ai-primary);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 2s ease-in-out infinite;
}

.algorithm-step h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--ai-dark);
  font-weight: 600;
}

.algorithm-step p {
  color: var(--ai-text);
  line-height: 1.6;
  margin: 0;
}

/* 生活方式问卷 */
.lifestyle-form-container {
  margin: 40px 0;
}

.lifestyle-form-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.lifestyle-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--ai-primary);
  text-align: center;
  font-weight: 700;
}

.lifestyle-form-card > p {
  text-align: center;
  color: var(--ai-text);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* 表单样式 */
.lifestyle-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ai-dark);
  font-size: 1rem;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ai-primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  margin-bottom: 8px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

/* 动画效果 */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .lifestyle-shopping {
    padding: 60px 0;
  }
  
  .lifestyle-shopping .section-title {
    font-size: 2.2rem;
  }
  
  .lifestyle-form {
    grid-template-columns: 1fr;
  }
  
  .algorithm-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .ai-recommendation-header {
    padding: 30px 20px;
  }
  
  .ai-recommendation-header .fas.fa-robot {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .lifestyle-shopping .section-title {
    font-size: 1.8rem;
  }
  
  .lifestyle-form-card {
    padding: 25px 20px;
  }
  
  .algorithm-step {
    padding: 20px 15px;
  }
  
  .recommendation-placeholder {
    padding: 40px 20px;
  }
}
