/* 基础样式 */
:root {
    --primary: #2563eb;
    --secondary: #4f46e5;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --bgBlue: #1e40af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'system-ui', 'sans-serif';
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color: white;
}

/* 背景样式 */
.page-background {
    position: fixed;
    inset: 0;
    z-index: -10;
    background: var(--bgBlue);
}

.particles-container {
    position: fixed;
    inset: 0;
    z-index: -10;
    opacity: 0.5;
}

.particles {
    width: 100%;
    height: 100%;
}

/* 头部样式 */
.header {
    background-color: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(12px);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-button {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
}

.login-button:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-button {
    display: none;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-button:hover {
    color: white;
}

/* 主要内容区 */
.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

.content-container {
    text-align: center;
    max-width: 56rem;
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.highlight-text {
    color: var(--warning);
    font-weight: 700;
}

/* 个人资料卡片 */
.profile-card {
    margin-top: 4rem;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-container {
    margin-bottom: 1.5rem;
}

.avatar-wrapper {
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    text-align: center;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.profile-title {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
    font-size: 1.25rem;
    text-decoration: none;
}

.social-icon:hover {
    color: white;
}

.profile-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* 技能标签 */
.skills-container {
    margin-top: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.skills-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: background-color 0.3s;
}

.skill-tag:hover {
    background-color: rgba(37, 99, 235, 0.2);
}

/* 页脚样式 */
.footer {
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 0; /* 减少整体高度 */
    display: flex; /* 使用 Flexbox */
    align-items: center; /* 垂直居中 */
}

.footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.copyright {
    padding: 0.5rem 0; /* 调整内边距 */
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.copyright-text {
    margin-top: 0.3rem; /* 微调两行文字之间的间距 */
}


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

/* 动画 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 响应式设计 */
@media (min-width: 768px) {
    .profile-content {
        flex-direction: row;
    }
    
    .avatar-container {
        margin-bottom: 0;
        margin-right: 2rem;
    }
    
    .profile-details {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .mobile-menu-button {
        display: block;
    }
}