/* 个人资料 */
.profile-section {
    padding-bottom: 80px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: start;
}

.profile-image {
    position: relative;
    /* 新增：让内部签名+按钮容器居中 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image img {
    width: 100%;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: rotate(2deg);
}

/* 个人签名 */
.profile-signature {
    margin-top: 24px;
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    font-style: italic;
}

/* 下载简历按钮 */
.btn-download {
    margin-top: 24px;
    width: 160px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0px 15px;
    background-color: red;
    border-radius: 16px;
    border: none;
    color: white;
    position: relative;
    cursor: pointer;
    font-weight: 900;
    transition-duration: .2s;
    background: linear-gradient(0deg, #000, #272727);
}

/* 按钮hover动效（和现有交互风格一致） */
.btn-download:before,
.btn-download:after {
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    border-radius: 16px;
    background: linear-gradient(45deg, #fb0094, #0000ff, #00ff00, #ffff00, #ff0000, #fb0094,
            #0000ff, #00ff00, #ffff00, #ff0000);
    background-size: 400%;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    z-index: -1;
    animation: steam 25s linear infinite;
}

@keyframes steam {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.btn-download:after {
    filter: blur(50px);
}

/* 个人资料信息 */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-basic {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-item {
    display: flex;
    gap: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.profile-label {
    width: 80px;
    color: rgba(255, 255, 255, 0.5);
}

.profile-bio,
.profile-skills {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-bio h3,
.profile-skills h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.profile-bio p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 仅作用于ID为xhs的链接，不影响其他链接 */
#xhs-link {
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border-bottom: 1px dashed transparent;
}

#xhs-link:hover {
    color: #00ff88;
    border-bottom: 1px dashed #00ff88;
    /* hover显示虚线下划线 */
}

.profile-skills ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-skills li {
    display: flex;
    align-items: start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.profile-skills li span {
    width: 20px;
    height: 20px;
    color: #00ff88;
    margin-top: 4px;
}

/* 技能 */
.skills-section {
    padding: 80px 0;
    background-color: #1a1a20;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.skills-card {
    padding: 32px;
    background: linear-gradient(135deg, #252533 0%, #18191D 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
}

.skills-card h3 {
    font-size: 20px;
    margin-bottom: 24px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-item span {
    color: rgba(255, 255, 255, 0.8);
}

.skill-stars {
    display: flex;
    gap: 4px;
}

.star {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 0;
}

.star.filled {
    background-color: #00ff88;
}

/* 工作经历 */
.experience-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* 核心修改：兼容版渐变虚线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-size: 2px 20px;
    /* 控制虚线的“实线段高度” */
    background-repeat: repeat-y;
    /* 垂直重复，形成虚线 */
    background-position: 0 0;
    /* 可选：调整虚线间距（改第二个值） */
    background-image: linear-gradient(to bottom, #ffffff3a, 8px, transparent 8px);
    background-size: 2px 16px;
    /* 8px实 + 8px空 = 16px一个循环 */
}

.timeline-item {
    position: relative;
    padding-left: 96px;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(8px);
}

.timeline-node {
    position: absolute;
    left: -9.5px;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #00ff88;
    border: 3px solid #17171c;
    z-index: 2;
}

/* 扩散波纹动画 */
.timeline-node::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.4);
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation: pulse-wave 1.5s infinite ease-out;
    z-index: -1;
}

@keyframes pulse-wave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* 工作内容 */
.timeline-content {
    padding: 24px;
    background: linear-gradient(135deg, #252533 0%, #18191D 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    transition: background-color 0.3s ease;
}

.timeline-item:hover .timeline-content {
    background-color: #2d2d3d;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.timeline-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.timeline-position {
    color: #00ff88;
}

.timeline-period {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.timeline-achievements {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-achievements li {
    display: flex;
    align-items: start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.timeline-achievements li span {
    color: #00ff88;
    margin-top: 4px;
}

/* 学历 */
.education-section {
    padding: 80px 0;
    background-color: #1a1a20;
}

.education-card {
    padding: 32px;
    background: linear-gradient(135deg, #252533 0%, #18191D 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.education-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.education-header p {
    color: rgba(255, 255, 255, 0.8);
}

.education-period {
    color: rgba(255, 255, 255, 0.5);
}

.education-honors {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.education-honors p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 8px;
}

.honors-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.honors-tags span {
    padding: 4px 12px;
    border-radius: 50px;
    background-color: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    font-size: 12px;
}

/* 联系方式 */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    position: relative;
    padding: 18px;
    background: linear-gradient(160deg, #18191D 0%, #252533 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
}

.contact-card-link {
    cursor: pointer;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
}

.contact-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}