/* 个人资料页面专用样式 - 高透明度毛玻璃效果 */

/* 重置个人资料页面的基础样式 */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 针对个人资料页面的header，区别于主题的.header */
.profile-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(74, 134, 232, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.profile-header:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(74, 134, 232, 0.2);
}

/* 使用更具体的图片类名 */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--image-shadow);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.9);
}

/* 个人资料页面的h1，区别于文章标题 */
.profile-title {
    color: var(--dark-blue);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-tagline {
    font-size: 1.2rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.4);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 使用.profile-section区别于.post-card */
.profile-section {
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(74, 134, 232, 0.1);
    backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.profile-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 134, 232, 0.2);
    background: rgba(255, 255, 255, 0.5);
}

/* 个人资料页面的h2 - 修复宽度问题 */
.profile-section-title {
    color: var(--dark-blue);
    border-bottom: 2px solid rgba(230, 240, 255, 0.4);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    width: 100%; /* 确保标题宽度与容器一致 */
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.profile-info-item {
    margin-bottom: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    border-left: 4px solid rgba(74, 134, 232, 0.3);
    transition: var(--transition);
    backdrop-filter: blur(2px);
    min-height: 60px;
    display: flex;
    align-items: center;
}

.profile-info-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(5px);
    border-left-color: rgba(74, 134, 232, 0.5);
}

.profile-info-label {
    font-weight: bold;
    color: var(--primary-blue);
    margin-right: 8px;
}

.profile-hobbies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-hobby-tag {
    background: rgba(230, 240, 255, 0.6);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    border: 1px solid rgba(74, 134, 232, 0.2);
    transition: var(--transition);
    backdrop-filter: blur(2px);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-hobby-tag:hover {
    background: rgba(74, 134, 232, 0.7);
    color: var(--text-light);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(74, 134, 232, 0.3);
}

/* 修复教育项目宽度问题 */
.profile-education-item {
    margin-bottom: 25px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(240, 240, 240, 0.4);
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    backdrop-filter: blur(2px);
    min-height: 80px;
    width: 100%; /* 确保宽度与其他部分一致 */
    box-sizing: border-box; /* 包含内边距在宽度内 */
}

.profile-education-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(5px);
}

.profile-education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* 修复教育时间段样式 */
.profile-education-period {
    color: #666;
    font-style: italic;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.5);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 15px;
    backdrop-filter: blur(2px);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 新增教育项目内部标题样式 */
.profile-education-school {
    font-size: 1.3rem; /* 比section标题小一些 */
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 8px;
    border-bottom: none; /* 移除下边框 */
    padding-bottom: 0; /* 移除内边距 */
    width: auto; /* 不强制宽度 */
}

.profile-education-detail {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 5px;
}

.profile-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-blue);
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(230, 240, 255, 0.4);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    backdrop-filter: blur(5px);
    min-height: 55px;
}

.profile-contact-link:hover {
    background: rgba(74, 134, 232, 0.8);
    color: var(--text-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(74, 134, 232, 0.25);
}

.profile-contact-icon {
    margin-right: 10px;
    font-size: 1.3rem;
}

.profile-footer {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 媒体查询 */
@media (max-width: 600px) {
    .profile-title {
        font-size: 2rem;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-contact-links {
        flex-direction: column;
    }

    .profile-section {
        padding: 20px;
    }

    .profile-contact-link {
        justify-content: center;
    }
    
    /* 移动端调整教育项目 */
    .profile-education-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .profile-hobby-tag {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .profile-education-school {
        font-size: 1.1rem;
    }
}

/* 动画效果 */
@keyframes profileFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-header, 
.profile-section, 
.profile-footer {
    animation: profileFadeInUp 0.8s ease forwards;
    opacity: 0;
}

.profile-section:nth-child(2) { 
    animation-delay: 0.1s; 
}

.profile-section:nth-child(3) { 
    animation-delay: 0.2s; 
}

.profile-section:nth-child(4) { 
    animation-delay: 0.3s; 
}

.profile-section:nth-child(5) { 
    animation-delay: 0.4s; 
}

.profile-footer { 
    animation-delay: 0.5s; 
}

/* 外链播放器容器样式 - 简化版 */
.profile-music-player {
    background: rgba(255, 255, 255, 0.2); /* 透明度调整为0.2 */
    border-radius: var(--radius);
    padding: 20px;
    margin: 15px 0; /* 缩小上下边距 */
    box-shadow: 0 2px 10px rgba(74, 134, 232, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    animation: profileFadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.profile-music-player:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 134, 232, 0.15);
    background: rgba(255, 255, 255, 0.25);
}

/* 播放器iframe容器 */
.profile-music-iframe-container {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15); /* 透明度同步调整 */
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 播放器iframe样式 */
.profile-music-iframe-container iframe {
    width: 100%;
    border: none;
    border-radius: 6px;
    min-height: 90px;
}

/* 大型播放器特殊样式 */
.profile-music-player.large .profile-music-iframe-container iframe {
    min-height: 200px;
}

/* 播放器描述文本 */
.profile-music-description {
    text-align: center;
    margin-top: 10px;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 12px;
    display: inline-block;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .profile-music-player {
        padding: 15px;
        margin: 10px 0; /* 移动端也缩小间距 */
    }
    
    .profile-music-iframe-container {
        padding: 8px;
    }
    
    .profile-music-player.large .profile-music-iframe-container iframe {
        min-height: 150px;
    }
    
    .profile-music-description {
        font-size: 0.85rem;
        margin-top: 8px;
    }
}