/*
* 文件名称: guide.css
* 功能说明: AI炒股入门指南页面专用样式表 - 定义指南页面的布局和视觉效果
* 创建日期: 2025年1月
* 作者: AI炒股学习网开发团队
* 说明: 包含步骤指导、概念卡片、技能展示等专用样式
*/

/* 页面标题区域样式 */
.page-header {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%); /* 红色渐变背景 */
  color: white;
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 2.5em;
  margin-bottom: 15px;
  border: none; /* 移除下划线 */
}

.page-header p {
  font-size: 1.2em;
  margin-bottom: 20px;
  opacity: 0.9;
}

.breadcrumb {
  font-size: 0.9em;
  opacity: 0.8;
}

.breadcrumb a {
  color: white;
  text-decoration: underline;
}

.breadcrumb span {
  color: #ffcdd2; /* 浅红色 */
}

/* 目录导航样式 */
.table-of-contents {
  background-color: #f5f5f5;
  padding: 30px 0;
  border-bottom: 1px solid #ddd;
}

.table-of-contents h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.5em;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 响应式网格 */
  gap: 15px;
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.toc-list li {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.toc-list li:hover {
  transform: translateY(-2px); /* 悬停时上移 */
}

.toc-list a {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  border-left: 4px solid #d32f2f; /* 红色左边框 */
}

.toc-list a:hover {
  color: #d32f2f;
  background-color: #fafafa;
}

/* 内容区域通用样式 */
.content-section {
  padding: 50px 0;
}

.content-section:nth-child(even) {
  background-color: #fafafa; /* 交替背景色 */
}

.content-section h2 {
  margin-bottom: 30px;
  text-align: center;
}

/* 内容网格布局 */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 文本占2/3，图片占1/3 */
  gap: 40px;
  align-items: start;
}

.content-text h3 {
  color: #d32f2f;
  margin-top: 30px;
  margin-bottom: 15px;
}

.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* 对比表格样式 */
.comparison-table {
  margin: 30px 0;
  overflow-x: auto; /* 水平滚动 */
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.comparison-table th {
  background-color: #d32f2f;
  color: white;
  font-weight: 600;
}

.comparison-table tr:hover {
  background-color: #f5f5f5;
}

/* AI插图样式 */
.content-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-illustration {
  text-align: center;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2);
}

.ai-brain {
  font-size: 4em;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite; /* 脉冲动画 */
}

.data-flow {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #d32f2f;
}

.image-caption {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

/* 概念卡片网格 */
.concepts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.concept-card {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #d32f2f; /* 红色顶部边框 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.2);
}

.concept-card h3 {
  color: #d32f2f;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.concept-examples {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.concept-examples strong {
  color: #d32f2f;
}

.concept-examples ul {
  margin-top: 10px;
  padding-left: 20px;
}

.concept-examples li {
  margin-bottom: 5px;
  font-size: 0.9em;
}

/* 步骤指导样式 */
.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  padding: 25px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.step-item:hover {
  transform: translateX(10px); /* 悬停时右移 */
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: #d32f2f;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 25px;
  flex-shrink: 0; /* 不缩放 */
}

.step-content h3 {
  color: #d32f2f;
  margin-bottom: 15px;
  margin-top: 0;
}

.step-content ul {
  margin-top: 15px;
  padding-left: 20px;
}

.step-content li {
  margin-bottom: 8px;
  color: #666;
}

/* 技能展示样式 */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
  color: #d32f2f;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.3em;
}

.skill-list {
  space-y: 15px;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-name {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.skill-level {
  background-color: #f0f0f0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, #d32f2f 0%, #e57373 100%);
  border-radius: 4px;
  transition: width 1s ease-in-out;
  width: 0; /* 初始宽度为0，用于动画 */
}

/* 误区避坑样式 */
.mistakes-container {
  max-width: 900px;
  margin: 0 auto;
}

.mistake-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 25px;
  background-color: white;
  border-radius: 10px;
  border-left: 5px solid #ff9800; /* 橙色警告边框 */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.mistake-icon {
  font-size: 2em;
  margin-right: 20px;
  flex-shrink: 0;
}

.mistake-content h3 {
  color: #d32f2f;
  margin-bottom: 15px;
  margin-top: 0;
}

.mistake-content p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.mistake-content strong {
  color: #333;
}

/* 学习路径样式 */
.learning-path {
  max-width: 900px;
  margin: 0 auto 40px;
}

.path-stage {
  margin-bottom: 30px;
  padding: 25px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #d32f2f;
}

.path-stage h3 {
  color: #d32f2f;
  margin-bottom: 15px;
  margin-top: 0;
}

.path-stage ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.path-stage li {
  margin-bottom: 8px;
  color: #666;
}

.recommended-resources {
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 0.9em;
}

.recommended-resources strong {
  color: #d32f2f;
}

.recommended-resources a {
  color: #d32f2f;
  margin: 0 5px;
}

/* 行动按钮区域 */
.next-actions {
  text-align: center;
  padding: 40px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.next-actions h3 {
  color: #d32f2f;
  margin-bottom: 25px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 0 30px;
  }
  
  .page-header h1 {
    font-size: 2em;
  }
  
  .content-grid {
    grid-template-columns: 1fr; /* 单列布局 */
    gap: 30px;
  }
  
  .concepts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .step-item {
    flex-direction: column; /* 垂直排列 */
    text-align: center;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .mistake-item {
    flex-direction: column;
    text-align: center;
  }
  
  .mistake-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 480px) {
  .page-header {
    padding: 30px 0 20px;
  }
  
  .page-header h1 {
    font-size: 1.8em;
  }
  
  .content-section {
    padding: 30px 0;
  }
  
  .toc-list {
    grid-template-columns: 1fr;
  }
  
  .comparison-table {
    font-size: 0.9em;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .action-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* 动画关键帧 */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* 滚动动画触发类 */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}