/* 策略大全页面专用样式 */
/* 文件功能：策略大全页面的样式定义 */
/* 创建日期：2025-01-01 */
/* 作者：AI炒股学习网开发团队 */

/* 页面头部样式 */
.page-header {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #9b59b6 100%);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::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"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
  opacity: 0.3;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: white;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-description {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* 统计栏样式 */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #f1c40f;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 筛选区域样式 */
.filter-section {
  padding: 40px 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 80px;
  z-index: 100;
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.filter-select {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-group {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* 策略展示区域样式 */
.strategies-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.strategy-category {
  margin-bottom: 60px;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
  border-radius: 2px;
}

.category-description {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 策略网格样式 */
.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

/* 策略卡片样式 */
.strategy-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.strategy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
}

.strategy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 策略头部 */
.strategy-header {
  margin-bottom: 25px;
}

.strategy-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 15px;
}

.strategy-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-type {
  background: #e3f2fd;
  color: #1976d2;
}

.tag-risk-low {
  background: #e8f5e8;
  color: #2e7d32;
}

.tag-risk-medium {
  background: #fff3e0;
  color: #f57c00;
}

.tag-risk-high {
  background: #ffebee;
  color: #d32f2f;
}

.tag-new {
  background: #f3e5f5;
  color: #7b1fa2;
}

.tag-hot {
  background: #fff8e1;
  color: #f57f17;
}

.tag-classic {
  background: #f1f8e9;
  color: #558b2f;
}

/* 策略指标 */
.strategy-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.metric {
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  font-weight: 500;
}

.metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
}

/* 策略描述 */
.strategy-description {
  margin-bottom: 25px;
}

.strategy-description p {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* 策略特点 */
.strategy-features {
  margin-bottom: 25px;
}

.strategy-features h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 15px;
}

.strategy-features ul {
  margin: 0;
  padding-left: 20px;
}

.strategy-features li {
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* 策略操作按钮 */
.strategy-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(149, 165, 166, 0.4);
}

.btn-outline {
  background: transparent;
  color: #3498db;
  border: 2px solid #3498db;
}

.btn-outline:hover {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
}

/* 策略对比工具样式 */
.comparison-section {
  padding: 60px 0;
  background: white;
  text-align: center;
}

.comparison-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.comparison-section > p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.comparison-tool {
  max-width: 800px;
  margin: 0 auto;
}

.selected-strategies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.strategy-slot {
  padding: 40px 20px;
  border: 2px dashed #ddd;
  border-radius: 12px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strategy-slot:hover {
  border-color: #3498db;
  background: #e3f2fd;
}

.strategy-slot.filled {
  border-color: #27ae60;
  background: #e8f5e8;
  border-style: solid;
}

.slot-placeholder {
  color: #999;
  font-weight: 500;
}

.comparison-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* 策略推荐样式 */
.recommendation-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.recommendation-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.recommendation-section > p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.recommendation-form {
  max-width: 800px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: end;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  opacity: 0.9;
}

.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.recommendation-results {
  max-width: 1000px;
  margin: 0 auto;
}

.recommendation-results h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.recommended-strategies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* 免责声明样式 */
.disclaimer-section {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    padding: 35px 0;
    margin-top: 50px;
}

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

.disclaimer-content h3 {
    font-size: 26px;
    margin-bottom: 22px;
    font-weight: bold;
}

.disclaimer-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

.disclaimer-text p {
    margin-bottom: 11px;
    line-height: 1.65;
    font-size: 16px;
}

.disclaimer-text p:first-child {
    font-size: 19px;
    margin-bottom: 18px;
    text-align: center;
}

.risk-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 18px;
    margin: 22px 0;
    color: #856404;
}

.risk-notice p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header {
    padding: 60px 0 40px;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  .page-description {
    font-size: 1rem;
  }
  
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .filter-controls {
    grid-template-columns: 1fr;
  }
  
  .search-group {
    flex-direction: column;
  }
  
  .strategies-grid {
    grid-template-columns: 1fr;
  }
  
  .strategy-card {
    padding: 20px;
  }
  
  .strategy-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .strategy-actions {
    flex-direction: column;
  }
  
  .selected-strategies {
    grid-template-columns: 1fr;
  }
  
  .comparison-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .recommendation-form {
    grid-template-columns: 1fr;
  }
  
  .category-title {
    font-size: 2rem;
  }
  
  .comparison-section h2,
  .recommendation-section h2 {
    font-size: 2rem;
  }
  
  .disclaimer-section {
    padding: 28px 0;
  }
  
  .disclaimer-content h3 {
    font-size: 21px;
  }
  
  .disclaimer-text p {
    font-size: 14px;
  }
  
  .disclaimer-text p:first-child {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .stats-bar {
    grid-template-columns: 1fr;
  }
  
  .strategy-card {
    padding: 15px;
  }
  
  .strategy-header h3 {
    font-size: 1.2rem;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .category-title {
    font-size: 1.8rem;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.strategy-card {
  animation: fadeInUp 0.6s ease forwards;
}

.strategy-card:nth-child(1) { animation-delay: 0.1s; }
.strategy-card:nth-child(2) { animation-delay: 0.2s; }
.strategy-card:nth-child(3) { animation-delay: 0.3s; }
.strategy-card:nth-child(4) { animation-delay: 0.4s; }
.strategy-card:nth-child(5) { animation-delay: 0.5s; }
.strategy-card:nth-child(6) { animation-delay: 0.6s; }

/* 数字动画 */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number {
  animation: countUp 0.8s ease forwards;
}

.stat-item:nth-child(1) .stat-number { animation-delay: 0.2s; }
.stat-item:nth-child(2) .stat-number { animation-delay: 0.4s; }
.stat-item:nth-child(3) .stat-number { animation-delay: 0.6s; }
.stat-item:nth-child(4) .stat-number { animation-delay: 0.8s; }

/* 加载状态 */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #3498db;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* 高亮搜索结果 */
.highlight {
  background: #fff3cd;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* 收藏状态 */
.strategy-card.favorited {
  border-color: #f39c12;
}

.strategy-card.favorited::before {
  background: #f39c12;
}

/* 选中状态 */
.strategy-card.selected {
  border-color: #27ae60;
  background: #f8fff8;
}

.strategy-card.selected::before {
  background: #27ae60;
}

/* 工具提示 */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
}