@import '~@/utils/utils.less';

// 主容器
.container {
  background-color: #F5F6FA;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

// 公告栏
.announcement {
  width: 100%;
  background-color: #ffffff;
  padding: 8px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

  .scrollContainer {
    overflow: hidden;
    white-space: nowrap;

    .scrollContent {
      display: inline-block;
      animation: scroll 20s linear infinite;
      
      .announcementLabel {
        font-weight: 500;
        color: #2D5CF6;
        margin-right: 16px;
      }
      
      .announcementItem {
        margin-right: 32px;
        font-size: 14px;
        color: #666;
      }
    }

    @keyframes scroll {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-50%);
      }
    }
  }
}

.mainContent {
  flex: 1;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

// 导航栏
.navigationBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  
  .backButton {
    color: #2D5CF6;
    font-size: 14px;
    padding-left: 0;
    
    &:hover {
      color: #1040c6;
    }
  }
}

// 面包屑
.breadcrumb {
  .breadcrumbLink {
    color: #999;
    
    &:hover {
      color: #2D5CF6;
    }
  }
}

// 个人信息卡片
.profileCard {
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  
  :global(.ant-card-body) {
    padding: 24px;
  }
}

.profileHeader {
  display: flex;
  flex-direction: column;
  
  .avatarSection {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-start;
    
    .avatar {
      border-radius: 8px;
      border: 1px solid #e8e8e8;
    }
  }
  
  .profileInfo {
    flex: 1;
    
    .profileMain {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      margin-bottom: 16px;
      
      .staffName {
        font-size: 32px;
        font-weight: bold;
        color: #262626;
        margin: 0 0 8px 0;
      }
      
      .staffTitle {
        color: #8c8c8c;
        margin: 0;
        font-size: 16px;
      }
      
      .actionButtons {
        margin-top: 8px;
        display: flex;
        gap: 8px;
      }
    }
    
    .basicInfo {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      
      .infoItem {
        .infoLabel {
          font-size: 12px;
          color: #8c8c8c;
          margin: 0 0 4px 0;
        }
        
        .infoValue {
          font-size: 14px;
          font-weight: 500;
          color: #262626;
          margin: 0;
        }
        
        .infoValueStatus {
          font-size: 14px;
          font-weight: 500;
          color: #52c41a;
          margin: 0;
        }
      }
    }
  }
}

// 详情容器
.detailsContainer {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

// 详情卡片
.detailCard {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  
  :global(.ant-card-head) {
    border-bottom: 1px solid #f0f0f0;
    
    .ant-card-head-title {
      font-size: 18px;
      font-weight: 500;
    }
  }
}

// 节标题
.sectionTitle {
  display: flex;
  align-items: center;
  
  .sectionIcon {
    color: #2D5CF6;
    margin-right: 8px;
    font-size: 16px;
  }
}

// 描述列表
.descriptions {
  :global(.ant-descriptions-item-label) {
    font-weight: 500;
    color: #8c8c8c;
    font-size: 12px;
    width: 100px;
  }
  
  :global(.ant-descriptions-item-content) {
    font-size: 14px;
    color: #262626;
  }
}

// 表格样式
.detailTable {
  :global(.ant-table-thead > tr > th) {
    background-color: #fafafa;
    font-weight: 500;
    color: #8c8c8c;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .companyName, .schoolName {
    font-weight: 500;
    color: #262626;
  }
  
  .duration {
    font-size: 12px;
    color: #8c8c8c;
  }
}

// 组织架构图
.orgChart {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
  height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  .orgChartImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

// 职业时间线
.careerTimeline {
  :global(.ant-timeline-item-content) {
    margin-left: 20px;
  }
  
  .timelineItem {
    padding: 16px 0;
    border-left: 2px solid #e8e8e8;
    margin-left: 8px;
    position: relative;
    
    &:before {
      content: '';
      position: absolute;
      left: -6px;
      top: 20px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background-color: #d9d9d9;
    }
    
    &:first-child:before {
      background-color: #2D5CF6;
    }
    
    .timelineContent {
      margin-left: 24px;
    }
  }
}

.timelineHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
  
  .companyName {
    font-weight: 500;
    color: #262626;
    margin: 0;
    font-size: 16px;
  }
  
  .positionName {
    color: #8c8c8c;
    margin: 0;
    font-size: 14px;
  }
}

.timelineDuration {
  font-size: 12px;
  color: #8c8c8c;
  margin: 4px 0;
}

.timelineDescription {
  font-size: 14px;
  color: #595959;
  margin: 8px 0 0 0;
  line-height: 1.5;
}

// 底部通栏
.footer {
  background-color: #262626;
  color: white;
  width: 100%;
  padding: 32px 0;
  margin-top: auto;
  
  .footerContent {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 24px;
    
    .footerSection {
      .footerTitle {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 16px;
        color: white;
      }
      
      .footerList {
        list-style: none;
        padding: 0;
        margin: 0;
        
        li {
          margin-bottom: 8px;
          
          .footerLink {
            font-size: 12px;
            color: #bfbfbf;
            text-decoration: none;
            transition: color 0.3s;
            
            &:hover {
              color: white;
            }
          }
          
          .contactItem {
            font-size: 12px;
            color: #bfbfbf;
            display: flex;
            align-items: flex-start;
          }
        }
      }
    }
  }
  
  .footerBottom {
    border-top: 1px solid #404040;
    padding-top: 24px;
    
    .footerBottomContent {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      
      .copyright {
        font-size: 12px;
        color: #8c8c8c;
        margin: 0 0 8px 0;
      }
      
      .footerLinks {
        display: flex;
        gap: 16px;
        
        .footerBottomLink {
          font-size: 12px;
          color: #8c8c8c;
          text-decoration: none;
          transition: color 0.3s;
          
          &:hover {
            color: white;
          }
        }
      }
    }
  }
}

// 响应式设计
@media (min-width: 768px) {
  .profileHeader {
    flex-direction: row;
    align-items: flex-start;
    
    .avatarSection {
      margin-right: 24px;
      margin-bottom: 0;
    }
    
    .profileMain {
      flex-direction: row;
      align-items: center;
      
      .actionButtons {
        margin-top: 0;
      }
    }
    
    .basicInfo {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  .footer {
    .footerBottomContent {
      flex-direction: row;
      
      .copyright {
        margin-bottom: 0;
      }
    }
  }
}

@media (max-width: 768px) {
  .mainContent {
    padding: 16px;
  }
  
  .profileCard {
    :global(.ant-card-body) {
      padding: 16px;
    }
  }
  
  .basicInfo {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer {
    .footerContent {
      grid-template-columns: 1fr;
    }
  }
}