/* 关于我页面样式 */

/* 个人信息卡片样式 */
.about-me-section {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.about-me-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.profile-image {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
}

.profile-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.profile-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.personal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    gap: 0.5rem;
}

.detail-item strong {
    color: var(--dark-bg);
    min-width: 60px;
}

/* 社交平台样式 */
.social-platforms {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.social-platforms h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
    position: relative;
    padding-bottom: 0.5rem;
}

.social-platforms h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background-color: var(--light-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icon {
    font-size: 1.2rem;
}

/* 个人简介样式 - 压缩版 */
.personal-intro {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem; /* 减小内边距 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem; /* 添加底部边距 */
}

.personal-intro h3 {
    font-size: 1.3rem; /* 减小标题字体 */
    margin-bottom: 1rem; /* 减小底部边距 */
    color: var(--dark-bg);
    position: relative;
    padding-bottom: 0.4rem;
}

.personal-intro h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px; /* 减小下划线高度 */
    background-color: var(--primary-color);
}

.intro-content p {
    margin-bottom: 0.8rem; /* 减小段落间距 */
    line-height: 1.5; /* 减小行高 */
    font-size: 0.95rem;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-bg);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-me-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        flex: 0 0 150px;
        width: 150px;
        height: 150px;
    }
    
    .personal-details {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .about-me-section,
    .social-platforms,
    .personal-intro {
        padding: 1.5rem;
    }
    
    .profile-info h2 {
        font-size: 1.8rem;
    }
    
    .social-link {
        flex: 1 0 100%;
        justify-content: center;
    }
}