<template>
  <view class="interest-class-page">
    <u-navbar title="兴趣课" :autoBack="true"></u-navbar>
    
    <view class="content-container">
      <!-- 顶部蓝色背景横幅 -->
      <view class="banner-section">
        <view class="banner-placeholder">
          <view class="banner-content">
            <text class="banner-title">兴趣课程</text>
            <text class="banner-school">泸州市实验小学城西学校</text>
          </view>
        </view>
      </view>
      
      <!-- 我的课程 -->
      <view class="my-course-section">
        <view class="section-title">
          <u-icon name="calendar" size="18" color="#1976d2"></u-icon>
          <text class="title-text">我的课程</text>
        </view>
        
        <view class="course-card">
          <view class="course-image-placeholder"></view>
          <view class="course-info">
            <text class="course-name">篮球</text>
            <view class="course-detail">
              <text class="detail-label">开课老师：</text>
              <text class="detail-value">叶老师</text>
            </view>
            <view class="course-detail">
              <text class="detail-label">上课地点：</text>
              <text class="detail-value">教学楼3楼</text>
            </view>
          </view>
        </view>
      </view>
      
      <!-- 教学计划 -->
      <view class="teaching-plan-section">
        <view class="section-title-bar">
          <text class="title-text">教学计划</text>
        </view>
        
        <view class="plan-content">
          <view class="plan-item">
            <text class="plan-phase">第一阶段：</text>
            <text class="plan-desc">了解机器人的组成，知道每个零件的名称及用途，认识机器人的结构。</text>
          </view>
          
          <view class="plan-item">
            <text class="plan-phase">第二阶段：</text>
            <text class="plan-desc">在老师的引导下，分组搭建机器人，注意引导幼儿理解机器人的数据线连接和遥控器方向的关系。</text>
          </view>
          
          <view class="plan-item">
            <text class="plan-phase">第三阶段：</text>
            <text class="plan-desc">学会操控机器人的移动方向，并练习把魔方根据要求推到指定位置。</text>
          </view>
          
          <view class="plan-item">
            <text class="plan-phase">第四阶段：</text>
            <text class="plan-desc">组织幼儿参加创客机器人比赛。</text>
          </view>
        </view>
      </view>
      
      <!-- 课堂随拍 -->
      <view class="class-photos-section">
        <view class="section-title-bar">
          <text class="title-text">课堂随拍</text>
        </view>
        
        <view class="photos-grid">
          <view class="photo-placeholder"></view>
          <view class="photo-placeholder"></view>
          <view class="photo-placeholder"></view>
          <view class="photo-placeholder"></view>
        </view>
      </view>
    </view>
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue'
</script>

<style lang="scss" scoped>
.interest-class-page {
  background-color: #f8f8f8;
  min-height: 100vh;
}

.content-container {
  padding: 15px;
}

/* 顶部蓝色背景横幅 */
.banner-section {
  margin-bottom: 15px;
  
  .banner-placeholder {
    height: 120px;
    background-color: #3986FF;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    
    .banner-content {
      text-align: center;
      
      .banner-title {
        font-size: 22px;
        color: #ffffff;
        font-weight: 500;
        margin-bottom: 8px;
        display: block;
      }
      
      .banner-school {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.9);
      }
    }
  }
}

/* 我的课程 */
.my-course-section {
  margin-bottom: 15px;
  
  .section-title {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    
    .title-text {
      font-size: 16px;
      font-weight: 500;
      color: #303133;
      margin-left: 6px;
    }
  }
  
  .course-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    
    .course-image-placeholder {
      width: 120px;
      height: 100px;
      background-color: #f0f0f0;
      border-radius: 6px;
      margin-right: 15px;
      flex-shrink: 0;
    }
    
    .course-info {
      flex: 1;
      
      .course-name {
        font-size: 18px;
        font-weight: 500;
        color: #303133;
        margin-bottom: 10px;
      }
      
      .course-detail {
        display: flex;
        margin-bottom: 6px;
        
        &:last-child {
          margin-bottom: 0;
        }
        
        .detail-label {
          color: #606266;
          font-size: 14px;
        }
        
        .detail-value {
          color: #303133;
          font-size: 14px;
        }
      }
    }
  }
}

/* 教学计划 */
.teaching-plan-section {
  margin-bottom: 15px;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  
  .section-title-bar {
    padding: 12px 15px;
    border-bottom: 1px solid #f2f2f2;
    
    .title-text {
      font-size: 16px;
      font-weight: 500;
      color: #303133;
    }
  }
  
  .plan-content {
    padding: 15px;
    
    .plan-item {
      margin-bottom: 15px;
      
      &:last-child {
        margin-bottom: 0;
      }
    }
    
    .plan-phase {
      font-size: 15px;
      font-weight: 500;
      color: #303133;
    }
    
    .plan-desc {
      font-size: 14px;
      color: #606266;
      line-height: 1.5;
    }
  }
}

/* 课堂随拍 */
.class-photos-section {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  
  .section-title-bar {
    padding: 12px 15px;
    border-bottom: 1px solid #f2f2f2;
    
    .title-text {
      font-size: 16px;
      font-weight: 500;
      color: #303133;
    }
  }
  
  .photos-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    
    .photo-placeholder {
      width: calc(50% - 8px);
      height: 110px;
      background-color: #f0f0f0;
      border-radius: 6px;
      margin-right: 8px;
      margin-bottom: 8px;
      
      &:nth-child(2n) {
        margin-right: 0;
      }
      
      &:nth-child(3), &:nth-child(4) {
        margin-bottom: 0;
      }
    }
  }
}
</style> 