
/* 科技感艺术字标题 */
.tech-art-title {
    font-weight: 900;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 4px 15px rgba(59, 130, 246, 0.3);
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.5));
}

/* 团队描述文案 - 首行缩进与对齐 */
.team-desc-text {
    text-indent: 2em;
    text-align: justify;
    line-height: 1.8;
}

/* 团队介绍手风琴卡片 */
.team-accordion {
    display: flex;
    width: 100%;
    height: 200px; /* 大幅缩小静态高度 */
    gap: 1rem;
    padding: 1rem 0;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* 添加高度过渡动画 */
}

/* 当有卡片被悬停时，整个手风琴容器高度增加，以便容纳展开的内容 */
.team-accordion:has(.team-card:hover) {
    height: 400px;
}
.team-accordion:hover,
.team-accordion.hovering {
    height: 400px;
}

.team-card {
    position: relative;
    height: 100%;
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent; /* 背景弄透明 */
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(5px); /* 添加一点毛玻璃效果提升质感 */
}

/* 动态科技背景 - 修改为更透明的渐变 */
.team-card .tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 默认高度较小，只遮挡底部文字区域，更透明 */
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.2) 40%, transparent 100%);
    z-index: 1;
    transition: all 0.5s ease;
    transform: translateY(30%); /* 初始下移，减少遮挡面积 */
}

/* 动态网格线 */
.team-card .tech-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 80px 100%;
    background-repeat: repeat-x;
    animation: grid-move 5s linear infinite; /* 更快更明显的平移 */
    opacity: 0.5;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 80px 0; }
}

.team-card:hover,
.team-card.active {
    flex: 3; /* 展开宽度 */
}

/* 悬停时的高亮效果 - 背景向上展开 */
.team-card:hover .tech-bg,
.team-card.active .tech-bg {
    transform: translateY(0); /* 恢复全屏覆盖 */
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 60%, rgba(15, 23, 42, 0.4) 100%);
}

.team-card:hover .tech-bg::before,
.team-card.active .tech-bg::before {
    opacity: 0.6;
}

/* 移除旧的 before 背景覆盖 */
.team-card::before {
    display: none;
}

.team-info {
    position: absolute;
    top: 0; /* 改为从顶部定位 */
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    color: white;
    transition: all 0.5s ease;
    text-align: left;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 静态时内容靠上对齐 */
}

/* 专家姓名 - 静态时颜色改为白色 */
.team-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem; /* 减小标题下方间距 */
    color: #ffffff; /* 确保是纯白 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.team-info .title {
    margin-bottom: 0; /* 移除职位的下边距 */
    font-size: 0.95rem;
    color: #93c5fd; /* 浅蓝色，与白色名字区分 */
}

/* 简短描述 - 默认显示 */
.team-info .short-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 40px; /* 进一步限制高度，防止超出卡片 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制最多显示两行 */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 完整描述 - 默认隐藏 */
.team-info .desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* 悬停状态变化 */
.team-card:hover .team-info,
.team-card.active .team-info {
    justify-content: flex-end; /* 展开时内容靠下对齐 */
    padding-bottom: 2rem;
}

.team-card:hover .team-info .short-desc,
.team-card.active .team-info .short-desc {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
}

.team-card:hover .team-info .desc,
.team-card.active .team-info .desc {
    opacity: 1;
    max-height: 600px; /* 足够显示完整内容 */
    margin-top: 1rem;
    overflow-y: auto; /* 内容过多时允许内部滚动 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.team-card:hover .team-info .desc::-webkit-scrollbar,
.team-card.active .team-info .desc::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Markdown 样式适配 */
.team-info .desc.markdown-body {
    color: rgba(255, 255, 255, 0.9);
}

.team-info .desc.markdown-body ul {
    list-style-type: none;
    padding-left: 0;
}

.team-info .desc.markdown-body li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-info .desc.markdown-body li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #60a5fa;
}

.team-card:hover .team-info,
.team-card.active .team-info {
    padding-bottom: 3rem;
}

/* 点击了解详情提示 */
.click-more-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.3s ease;
    padding-top: 0.5rem;
}

.click-more-hint i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.team-card:hover .click-more-hint,
.team-card.active .click-more-hint {
    color: #93c5fd;
    opacity: 1;
}

.team-card:hover .click-more-hint i,
.team-card.active .click-more-hint i {
    transform: translateX(5px);
}

/* 旋转卡片动画 */
.rotate-card-container {
    perspective: 1000px;
}

/* News Section Styles */
.news-section {
    position: relative;
    background: linear-gradient(to bottom, transparent 0%, #ffffff 20%, #ffffff 100%);
    padding: 6rem 0;
    margin-top: 4rem;
}

/* 简单的时间线主轴 */
.news-section::before {
    content: '';
    position: absolute;
    top: 6rem;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    border-left: 2px dashed #cbd5e1; /* 使用虚线，减少连贯感 */
    z-index: 1;
}

@media (max-width: 768px) {
    .news-section::before {
        display: none;
    }
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    cursor: pointer;
    position: relative;
}

/* 时间线节点（短横线装饰） */
.news-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 4px;
    background-color: #cbd5e1;
    border-radius: 2px;
    z-index: 2;
    transition: all 0.3s ease;
}

.news-container:hover::after {
    background-color: #3b82f6;
    width: 36px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.news-mt {
    margin-top: 3rem; /* 调整间距结构 */
    padding-top: 3rem;
    position: relative;
}

/* 两个新闻块之间的极弱分割线（S形交替曲线） */
.news-mt::before {
    content: '';
    position: absolute;
    top: -12px; /* 向上偏移一半高度，使其居中于 margin 和 padding 之间 */
    left: 5%;
    right: 5%;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M0,12 Q25,-12 50,12 T100,12' fill='none' stroke='%23cbd5e1' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.6;
    /* 两端渐隐效果，使其更加柔和不起眼 */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* 交替翻转曲线，配合内容的左右交替，形成 S 形的视觉流动 */
.news-container:nth-child(odd) .news-mt::before {
    transform: scaleY(-1);
}

@media (max-width: 768px) {
    .news-container::after {
        display: none;
    }
    .news-mt {
        margin-top: 4rem;
    }
}

.news-content {
    display: flex;
    align-items: center;
    gap: 8rem;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 1rem 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    overflow: hidden; /* 防止图片放大时溢出 */
}

.news-content:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.news-image {
    /* 静态时：图片占据 1份 */
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    order: 2; /* 确保图片在视觉上位于右侧 */
    /* 使用mask实现边缘模糊渐变 */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
}

.news-container:hover .news-image {
    /* 悬停时：保持比例 */
    flex: 1;
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* 静态时：图片模糊 */
    filter: blur(1px);
    transform: scale(1.1);
}

.news-container:hover .news-image img {
    /* 悬停时：图片清晰 */
    filter: blur(0);
    transform: scale(1.0);
}

.news-text-wrapper {
    flex: 1;
    position: relative;
    overflow: visible; /* 允许文字显示 */
    /* 静态时：文字区域正常显示 */
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    order: 1; /* 确保文字在视觉上位于左侧 */
    z-index: 3; /* 确保文字在图片上方（如果有重叠） */
}

.news-container:hover .news-text-wrapper {
    /* 悬停时：文字区域正常显示 */
    opacity: 1;
}

/* 覆盖层：完全移除 */
.news-text-wrapper::after {
    display: none;
}

.news-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #1e293b;
    font-weight: 500;
    /* 静态时：文字轻微移动，但不放大以免越界 */
    transform: translateX(-1rem);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    text-align: right; /* 文字右对齐，靠近图片 */
    margin-right: 0; /* 移除负边距，防止越过中线 */
    padding-right: 1rem;
}

.news-container:hover .news-text {
    /* 悬停时：文字恢复 */
    transform: translateX(0);
    color: #2563eb; /* 悬停时文字变蓝 */
}

.news-click-hint {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(37, 99, 235, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
    transform: translateY(2px);
    user-select: none;
}

.news-container:hover .news-click-hint {
    opacity: 1;
    transform: translateY(0);
    color: rgba(37, 99, 235, 0.95);
}

.news-click-hint i {
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.news-container:hover .news-click-hint i {
    transform: translateX(4px);
}

/* Reverse layout for news items */
.news-content.reverse .news-image {
    order: 1;
    -webkit-mask-image: linear-gradient(to left, transparent 0%, black 20%, black 100%);
    mask-image: linear-gradient(to left, transparent 0%, black 20%, black 100%);
}

.news-content.reverse .news-text-wrapper {
    order: 2;
}

.news-content.reverse .news-text {
    text-align: left;
    margin-right: 0;
    margin-left: 0; /* 移除负边距 */
    padding-left: 1rem;
    transform: translateX(1rem); /* 向右轻微移动 */
}

.news-container:hover .news-content.reverse .news-text {
    transform: translateX(0);
}

/* Different image animation for reverse news items */
.news-content.reverse .news-image img {
    filter: blur(1px);
    transform: scale(1.05) rotate(-1deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-container:hover .news-content.reverse .news-image img {
    filter: blur(0);
    transform: scale(1) rotate(0);
}

.news-content.reverse .news-click-hint {
    transform: translateY(2px) translateX(-10px);
}

.news-container:hover .news-content.reverse .news-click-hint {
    transform: translateY(0) translateX(0);
}

.news-container:hover .news-content.reverse .news-click-hint i {
    transform: translateX(-4px); /* Arrow points left, moves left */
}

@media (max-width: 768px) {
    .news-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .news-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .news-text {
        text-align: center;
        mask-image: none;
        -webkit-mask-image: none;
        margin: 0 !important;
        transform: none !important;
    }

    .news-content.reverse .news-text {
        margin: 0 !important;
        transform: none !important;
    }

    .news-click-hint {
        justify-content: center;
        width: 100%;
    }
}

.rotate-in-card {
    opacity: 0;
    transform: translateY(50px) rotateX(20deg);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 当元素进入视图时触发动画 */
.rotate-in-card.active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* 合作伙伴卡片样式 */
.partner-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.partner-icon {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.partner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.partner-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .team-accordion {
        flex-direction: column;
        height: auto !important;
        gap: 1rem;
    }
    .team-accordion:hover,
    .team-accordion.hovering {
        height: auto !important;
    }
    .team-card {
        flex: none !important;
        height: 180px; /* 默认高度较小 */
    }
    .team-card:hover,
    .team-card.active {
        flex: none !important;
        height: 350px; /* 展开时的高度 */
    }
    .team-info h3 {
        font-size: 1.25rem;
    }
    .team-info .title {
        font-size: 0.85rem;
    }
    .team-info .desc {
        font-size: 0.85rem;
    }
    .news-section {
        padding: 3rem 0;
        margin-top: 2rem;
    }
    .partner-card {
        padding: 1.5rem 1rem;
    }
}
