/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: white;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100%;
}

/* 顶部导航样式 */
.top-nav {
    width: 100%;
    margin-bottom: 30px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #ffff009e;
    background: rgba(100, 149, 237, 0.1);
}

.nav-link.active {
    color: #ffff009e;
    font-weight: 600;
}

/* 底部导航样式 */
.bottom-nav {
    /* background: rgba(26, 26, 46, 0.9); */
    /* backdrop-filter: blur(1px); */
    /* -webkit-backdrop-filter: blur(1px); */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 60px;
    /* border-radius: 20px; */
}

.bottom-nav-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0;
    padding: 0 30px 10px 30px;
}

.bottom-nav-section {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.bottom-nav-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    min-width: 80px;
}

.bottom-nav-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #6495ed;
}

.bottom-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
}

.bottom-nav-links li {
    margin-bottom: 0;
}

.bottom-nav-links a {
    color: #b0c4de;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.bottom-nav-links a:hover {
    color: #6495ed;
    background: rgba(100, 149, 237, 0.1);
}

.bottom-nav-copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0c4de;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bottom-nav-links {
        gap: 15px;
    }
    
    .bottom-nav-links a {
        font-size: 13px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .bottom-nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .bottom-nav-links li {
        width: 100%;
    }
    
    .bottom-nav-links a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* 液态玻璃效果基础样式 - 深色背景适配 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* 增强的液态玻璃效果 - 深色背景适配 */
.glass-effect-enhanced {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 页面背景渐变 - 深色高端配色 */
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    /* padding: 80px 20px 20px; */
    z-index: 99999;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 主页特定样式 */
.hero-section {
    text-align: center;
    width: 100%;
    padding: 40px 40px;
    animation: fadeIn 1s ease-out;
}

/* 项目展示区域样式 */
.projects-section {
    text-align: center;
    width: 100%;
    margin-top: 60px;
    padding: 30px;
}

.projects-title {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    padding: 30px;
    transition: all 0.3s ease;
    text-align: left;
    display: block;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: rgba(100, 149, 237, 0.15);
}

.project-title {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.project-description {
    color: #f0f0f0;
    margin-bottom: 20px;
    line-height: 1.6;
}



/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头像悬浮动画 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.5s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

/* 个人信息横向卡片 */
.profile-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.profile-info {
    flex: 1;
    text-align: left;
}

/* 个人介绍样式 */
.personal-intro {
    padding: 20px 30px;
    margin-bottom: 40px;
    line-height: 1.8;
    text-align: left;
}

.personal-intro p {
    color: #f0f0f0;
    margin: 0 0 10px 0;
    text-align: left;
    line-height: 1.8;
}

.personal-intro a {
    color: #6495ed;
    text-decoration: none;
    transition: color 0.3s ease;
}

.personal-intro a:hover {
    color: #9370db;
    text-decoration: underline;
}

/* 开源仓库项目样式 */
.open-source-projects {
    margin-bottom: 60px;
    padding: 0 30px;
    width: 100%;
}

.repo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.repo-card {
    padding: 25px;
    transition: all 0.3s ease;
    text-align: left;
}

.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: rgba(100, 149, 237, 0.15);
}

.repo-title {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.repo-description {
    color: #f0f0f0;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 14px;
}

/* 我的自述标题样式 */
.intro-title {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 最近的我样式 */
.recent-me {
    margin: 15px 30px 30px;
    padding: 20px 30px;
    width: 100%;
}

.recent-me p {
    color: #f0f0f0;
    margin: 0;
    text-align: left;
    line-height: 1.8;
}

/* 标题动画 */
.nickname {
    color: #ffffff;
    font-size: 36px;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(100, 149, 237, 0.3);
    transition: all 0.3s ease;
}

.nickname:hover {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 30px rgba(100, 149, 237, 0.5);
}

/* 口号渐变色效果 */
.slogan {
    font-size: 18px;
    margin: 0;
    font-weight: 400;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #6495ed, #9370db, #6495ed);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 8s ease infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 今日趣闻样式 */
.daily-fun {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 趣闻区域装饰效果 */
.daily-fun::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.daily-fun:hover::before {
    left: 100%;
}

.daily-fun:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.daily-fun h3 {
    color: #6495ed;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.daily-fun-content {
    color: #b0c4de;
    font-size: 16px;
    line-height: 1.8;
    font-style: italic;
}

/* 刷新按钮样式 */
.refresh-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: rgba(100, 149, 237, 0.8);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(100, 149, 237, 0.3);
}

.refresh-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.refresh-btn:hover {
    background-color: rgba(100, 149, 237, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.5);
}

.refresh-btn:active {
    transform: translateY(0);
}

.refresh-btn:active::after {
    width: 300px;
    height: 300px;
}

/* 移动端导航栏默认隐藏 */
.mobile-menu {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }

    /* 移动端减小项目区域padding */
    .projects-section {
        padding: 20px 15px;
        margin-top: 40px;
    }

    /* 减小项目卡片内padding */
    .project-card {
        padding: 20px;
    }

    .nickname {
        font-size: 32px;
    }

    .slogan {
        font-size: 18px;
    }

    .daily-fun-content {
        font-size: 14px;
    }

    /* 移动端显示菜单按钮，隐藏桌面菜单 */
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* 显示移动端菜单 */
    .mobile-menu.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 15px;
    }

    /* 在更小的屏幕上进一步减小项目区域padding */
    .projects-section {
        padding: 15px 10px;
    }

    /* 在更小的屏幕上进一步减小项目卡片内padding */
    .project-card {
        padding: 15px;
    }

    .avatar {
        width: 150px;
        height: 150px;
    }
}

/* 页面加载时的骨架屏效果 */
.loading-skeleton {
    opacity: 0.7;
    animation: skeleton-loading 1.5s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: rgba(200, 200, 200, 0.1);
    }

    100% {
        background-color: rgba(200, 200, 200, 0.3);
    }
}