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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    background-attachment: fixed;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 头部样式 */
header {
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
}

/* 个人资料样式 */
.profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

#profileImage {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#profileImage:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#profileName {
    font-size: 1.8rem;
    color: #6d28d9;
    margin-bottom: 5px;
    font-weight: 600;
}

#profileBio {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 8px;
    flex: 1;
}

/* 社交媒体链接样式 */
.social-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.social-title {
    color: #6d28d9;
    font-weight: 600;
    white-space: nowrap;
}

.social-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-link:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* 项目容器样式 */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 项目项样式 */
.project-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.project-item:hover .project-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #2d3748;
}

.project-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-content h3 a:hover {
    color: #007bff;
}

.project-url {
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 10px;
    word-break: break-all;
}

.project-url a {
    color: inherit;
    text-decoration: none;
}

.project-url a:hover {
    text-decoration: underline;
}

.project-description {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.project-changelog {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.project-changelog h4 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.changelog-content {
    max-height: 100px;
    overflow-y: auto;
}

.changelog-content p {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 5px;
    line-height: 1.4;
}

.changelog-content p:last-child {
    margin-bottom: 0;
}

/* 项目标签样式 */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.project-tag {
    padding: 4px 10px;
    background: #e2e8f0;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #4a5568;
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: #cbd5e0;
}

/* 底部样式 */
footer {
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    border-radius: 12px;
}

footer .container {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

footer p {
    color: #4a5568;
    font-size: 0.9rem;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    font-size: 1.2rem;
    color: #6d28d9;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: #6d28d9;
    border-radius: 50%;
    animation: loading 1s linear infinite;
    margin-left: 10px;
}

@keyframes loading {
    to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #e2e8f0;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #4a5568;
}

.empty-state p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile {
        flex-direction: column;
        text-align: center;
    }
    
    #profileImage {
        width: 80px;
        height: 80px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-buttons {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #profileName {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .social-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
}

/* 暗黑模式支持 (简单实现) */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        color: #e2e8f0;
    }
    
    .container {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(71, 85, 105, 0.5);
    }
    
    header, footer {
        background: rgba(30, 41, 59, 0.7);
        border-color: #4a5568;
    }
    
    #profileImage {
        border-color: #4a5568;
        background-color: #4a5568;
    }
    
    #profileName, .social-title {
        color: #818cf8;
    }
    
    #profileBio, .project-description, .changelog-content p, footer p {
        color: #cbd5e0;
    }
    
    .social-link {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .social-link:hover {
        background: #718096;
        border-color: #818cf8;
        color: #ffffff;
    }
    
    .project-item {
        background: rgba(30, 41, 59, 0.9);
        border-color: #4a5568;
    }
    
    .project-item:hover {
        border-color: #818cf8;
    }
    
    .project-content h3 {
        color: #e2e8f0;
    }
    
    .project-content h3 a:hover {
        color: #818cf8;
    }
    
    .project-url {
        color: #818cf8;
    }
    
    .project-changelog {
        background: #4a5568;
    }
    
    .project-changelog h4 {
        color: #e2e8f0;
    }
    
    .project-tag {
        background: #718096;
        color: #e2e8f0;
    }
    
    .project-tag:hover {
        background: #94a3b8;
    }
    
    .empty-state {
        color: #94a3b8;
    }
    
    .empty-state i {
        color: #718096;
    }
    
    .empty-state h3 {
        color: #cbd5e0;
    }
}