﻿@import "common.css";

/* 导航栏容�?*/
.navbar {
    display: flex;
    background-color: #303030;
    padding: 0;
    width: 100%;
}

/* 导航项样�?*/
.nav-item {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    position: relative;
}

/* 选中状�?- 上品团队 */
.nav-item.active {
    background-color: #00C08A; /* 绿色背景 */
}

.nav-item.active span {
    color: #fff; /* 保持文字为白�?*/
}

/* 响应式调�?*/
@media (max-width: 768px) {
    .nav-item {
        font-size: 16px;
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .nav-item {
        font-size: 14px;
        padding: 10px 0;
    }
}

 /* 团队容器 */
 .team-container {
    display: grid;
    grid-template-columns: repeat(3, 594px);
    max-width: 1800px;
    gap: 0;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    margin-top:50px;
}

/* 团队成员卡片 */
.member-card {
    background-color: #000;
    position: relative;
    /* overflow: hidden;*/
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 724px;
}

/* 鼠标悬停效果 - 整体卡片变绿 */
.member-card:hover {
    background-color: #00C08A;
}

.member-info {
    padding: 0;
    transition: all 0.3s ease;
    flex: 1;
}

/* 隐藏的详情层 - 在卡片下方展开 */
.info {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 1.5);
    color: white;
    padding: 0;
    /* transform: translateY(0%); */
    width: 100%;
    height: 0px;
    z-index: 9;
    overflow: hidden;
}

.member-card:hover .info {
    /* color: #000; */
    height: 540px;
    transition: height 0.3s ease;
    display: block;
    padding: 10px 40px;
}

/* 悬停时显示详情层 */
.member-card:hover .member-detail {
    display: block;
}

/* 详情层 - 照片区域 */
.detail-photo {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.detail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.detail-name {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 6px;
}

.detail-position {
    font-size: 14px;
    color: #00C08A;
    line-height: 1.6;
}

/* 详情层 - 内容区域 */
.detail-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #ddd;
    background-color: #1a1a1a;
}

.detail-content p {
    margin-bottom: 8px;
    color: #ddd;
}

.detail-content span {
    color: #ddd !important;
    background: transparent !important;
}

.detail-content img {
    max-width: 100%;
    height: auto;
}

/* 照片容器 */
.photo-container {
    width: 100%;
    height: 592px;
    background-color: #333;
    border: none;
    margin-bottom: 0;
    position: relative;
}

/* 照片占位样式 */
.photo-placeholder {
    width: 100%;
    height: 100%;
    background-color: #222;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    align-items: flex-start;
    color: #888;
    font-size: 16px;
    text-align: center;
}

.photo-placeholder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top; /* 从顶部开始显示，底部被裁剪 */
}

.photo-placeholder .person-icon {
    font-size: 60px;
    margin-bottom: 10px;
}

/* 成员信息 */
.member-info {
    padding: 20px;
    transition: all 0.3s ease;
}

/* 成员姓名 */
.member-name {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 20px;
    background-color: transparent;
    color: #fff;
    margin-bottom: 0;
    display: inline-block;
}

/* 职位信息 */
.position {
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 0;
    margin-left: 20px;
}

/* TOP TEN 标签 */
.top-ten {
    font-size: 12px;
    color: #00C08A;
    margin-top: 8px;
}

/* 响应式设�?*/
@media (max-width: 1024px) {
    .team-container {
        gap: 12px;
    }
    
    .photo-container {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .team-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .photo-container {
        height: 320px;
    }
    
    .member-info {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .team-container {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
    }
    
    .photo-container {
        height: 350px;
    }
    
    .member-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .photo-container {
        height: 300px;
    }
    
    body {
        padding: 30px 15px;
    }
}

/* @meida max-width 768 > 991 */

/* 关于 上品团队 H5 样式 */
@media screen and (max-width: 768px) {
  /* 列表 */
  .team-container .member-card {
    height: auto;
  }

  .team-container .member-info {
    height: auto;
    background: #00C08A;
  }

  .team-container .position {
    color: #FFF;
  }

  .team-container .info {
    position: relative;
    height: auto;
    top: 0;
    padding: 20px;
    text-indent: 2em;
  }

  .team-container .member-card:hover .info {
    padding: 20px;
  }
}
