/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

/* 个人信息区域样式 */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.avatar-container {
    position: relative;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.profile-info {
    flex: 1;
}

.blogger-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blogger-title {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
}

.blogger-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
    max-width: 600px;
}

/* 社交媒体链接区域样式 */
.social-links {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 80%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 4px;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* 各个平台的颜色设置 */
.social-link[data-platform="douyin"] .social-icon {
    background: linear-gradient(135deg, #fe2c55, #ff7a2c);
    color: white;
}

.social-link[data-platform="bilibili"] .social-icon {
    background: linear-gradient(135deg, #00a1d6, #ff6b95);
    color: white;
}

.social-link[data-platform="wechat"] .social-icon {
    background: linear-gradient(135deg, #07c160, #06cf58);
    color: white;
}

.social-link[data-platform="xiaohongshu"] .social-icon {
    background: linear-gradient(135deg, #fe2c55, #f64c72);
    color: white;
}

.social-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.social-info p {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 5px;
}

.social-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover .social-badge {
     background: #667eea;
     color: white;
 }

/* 代码仓库链接区域样式 */
.repo-links {
    margin-bottom: 50px;
}

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

.repo-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.repo-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.repo-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.repo-link:hover .repo-icon {
    transform: scale(1.1);
}

/* 各个仓库平台颜色设置 */
.repo-link[data-platform="github"] .repo-icon {
    background: linear-gradient(135deg, #333, #6b7280);
    color: white;
}

.repo-link[data-platform="gitee"] .repo-icon {
    background: linear-gradient(135deg, #c71d23, #e53e3e);
    color: white;
}

.repo-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.repo-info p {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 5px;
}

/* 内容概览区域样式 */
.content-overview {
    margin-bottom: 30px;
}

.content-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .blogger-name {
        font-size: 2rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .content-stats {
        flex-direction: column;
    }

    .stat-item {
        min-width: auto;
    }
}

/* 加载动画和过渡效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container > * {
    animation: fadeIn 0.6s ease-out forwards;
}

.profile-header {
    animation-delay: 0.1s;
}

.social-links {
    animation-delay: 0.2s;
}

.repo-links {
    animation-delay: 0.3s;
}

.content-overview {
    animation-delay: 0.4s;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}