/**
 * Crush匹配页面样式
 */

/* 主页面容器 */
.crush-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #2D1B69 0%, #11082A 100%);
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
}

/* 页面头部 */
.crush-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 30px;
  padding-top: 20px;
}

.back-btn {
  position: absolute;
  left: 0;
  top: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-3px);
}

.page-title {
  color: white;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  text-align: center;
  margin-top: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 加载状态样式 */
.loading-section {
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 0;
}

.loading-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loading-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.loading-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
}

.loading-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* 启动区样式 */
.start-section {
  max-width: 500px;
  margin: 0 auto;
}

.intro-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.intro-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.intro-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
}

.intro-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.features-list {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-icon {
  font-size: 24px;
  margin-right: 16px;
  width: 32px;
  text-align: center;
}

.feature-text {
  font-size: 16px;
  color: #555;
  flex: 1;
}

.start-button-container {
  text-align: center;
  margin-bottom: 20px;
}

.disclaimer {
  text-align: center;
}

.disclaimer-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* 按钮样式 */
.analyze-btn {
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.analyze-btn.primary {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  color: white;
}

.analyze-btn.primary.large {
  padding: 16px 40px;
  font-size: 18px;
}

.analyze-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.analyze-btn.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.analyze-btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #555;
  margin-right: 12px;
}

.analyze-btn.secondary:hover {
  background: white;
  transform: translateY(-1px);
}

/* 结果区域样式 */
.results-section {
  max-width: 600px;
  margin: 0 auto;
}

.section-title {
  color: white;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 配偶主星部分 */
.spouse-main-stars-section {
  margin-bottom: 30px;
}

.main-stars-info {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.main-stars-display {
  text-align: center;
}

.stars-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.main-star-item {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.stars-source {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.no-main-stars {
  text-align: center;
  padding: 20px;
}

.no-main-stars-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.no-main-stars-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.no-main-stars-desc {
  font-size: 14px;
  color: #666;
}

/* 配偶标签部分 */
.spouse-labels-section {
  margin-bottom: 30px;
}

.labels-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.label-tag {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  animation: slideInUp 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 算法信息部分 */
.algorithm-info-section {
  margin-bottom: 30px;
}

.algorithm-details {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.algorithm-summary {
  margin-bottom: 16px;
}

.algorithm-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.algorithm-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.algorithm-label {
  font-weight: 600;
  color: #333;
}

.algorithm-value {
  color: #666;
}

.processing-info {
  font-size: 12px;
  color: #888;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Idol契合榜部分 */
.idol-ranking-section {
  margin-bottom: 30px;
}

.idol-ranking-placeholder {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 40px 24px;
  backdrop-filter: blur(10px);
  text-align: center;
}

.placeholder-message {
  color: #666;
}

.placeholder-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

.placeholder-text {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.placeholder-desc {
  font-size: 14px;
  color: #888;
}

/* 契合指南部分 */
.compatibility-guide-section {
  margin-bottom: 30px;
}

.guide-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

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

.guide-header {
  margin-bottom: 24px;
}

.guide-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.guide-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.analysis-preview {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.analysis-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.analysis-label {
  font-weight: 600;
  color: #333;
}

.analysis-value {
  color: #667eea;
  font-weight: 500;
}

.guide-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.coming-soon {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  padding: 12px 24px;
  display: inline-block;
}

.coming-soon-text {
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* 操作按钮 */
.action-buttons {
  text-align: center;
  margin-bottom: 20px;
}

/* 优先级信息样式 */
.priority-info {
  margin-bottom: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #667eea;
}

.priority-label {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.source-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.priority-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tier-badge.tier-default {
  background: linear-gradient(135deg, #adb5bd, #868e96);
  color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .crush-page {
    padding: 15px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .intro-card {
    padding: 30px 20px;
  }
  
  .intro-icon {
    font-size: 48px;
  }
  
  .intro-title {
    font-size: 20px;
  }
  
  .priority-info {
    padding: 12px;
  }
  
  .priority-label {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .crush-page {
    padding: 10px;
  }
  
  .stars-info,
  .labels-container,
  .algorithm-details {
    padding: 16px;
  }
  
  .analyze-btn.primary.large {
    padding: 14px 32px;
    font-size: 16px;
  }
  
  .labels-container {
    gap: 8px;
  }
  
  .label-tag {
    font-size: 13px;
    padding: 6px 12px;
  }
}