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

/* GitHub风格自定义鼠标指针效果 */
* {
    cursor: none !important;
}
a{
    text-decoration: none;
}
#cursor {
    position: fixed;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 25px;
    opacity: 0.25;
    z-index: 10086;
    pointer-events: none;
    transition: 0.2s ease-in-out;
    transition-property: background, opacity, transform;
}

#cursor.hidden {
    opacity: 0;
}

#cursor.active {
    opacity: 0.5;
    transform: scale(0.5);
}

/* 隐藏默认鼠标指针 */
body, html {
    cursor: none !important;
}

a, button, .nav-link, .card {
    cursor: none !important;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans CN', 'WenQuanYi Micro Hei', sans-serif;
   background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='21.5' height='22' patternTransform='scale(3) rotate(55)'><rect x='0' y='0' width='100%' height='100%' fill='hsla(276,15.6%,41.4%,1)'/><path d='M3.25 10h13.5M10 3.25v13.5' transform='translate(0.75,0)' stroke-linecap='round' stroke-width='2' stroke='hsla(347,35.1%,55.3%,1)' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(-114,-111)' fill='url(%23a)'/></svg>");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
}

/* 隐藏滚动条但保持滚动功能 */
::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 固定主区块 */
.main-block {
    width: 85%;
    max-width: 900px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
}

/* 个人资料区域 */
.profile-section {
    text-align: center;
    padding: 40px 20px;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    animation: avatarBounce 1s ease-out;
}

@keyframes avatarBounce {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(10deg);
    }
    70% {
        transform: scale(0.95) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.avatar:hover {
    transform: scale(1.05);
}

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

.profile-section h1 {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: titleSlideIn 1s ease-out 0.3s both;
}
footer > p > a{
    color: rgb(230, 230, 230);
    text-decoration: none;
}
@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translateY(5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-section p {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    animation: descriptionFadeIn 1s ease-out 0.6s both;
}

@keyframes descriptionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 25px;
    flex-wrap: wrap;
    animation: navMenuSlideIn 1s ease-out 0.9s both;
}

@keyframes navMenuSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    animation: navLinkBounce 0.6s ease-out forwards;
}

.nav-link:nth-child(1) {
    animation-delay: 1.2s;
}

.nav-link:nth-child(2) {
    animation-delay: 1.4s;
}

.nav-link:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes navLinkBounce {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-link:hover {
    color: white;
    background: rgba(255, 200, 150, 0.25);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white;
    background: rgba(95, 159, 255, 0.7);
    box-shadow: 0 4px 12px rgba(255, 140, 90, 0.4);
}

/* 内容区域 */
.content-area {
    width: 120%;
    padding: 25px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.content-section {
    display: none;
    width: 100%;
    max-width: 800px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.content-section.active {
    display: block;
    animation: contentSlideUp 1.2s ease-out;
}

@keyframes contentSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 200, 150, 0.2), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(136, 136, 136, 0.2);
}

.card h3 {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card .icon {
    font-size: 1.2rem;
    display: inline-block;
    width: 24px;
    text-align: center;
    font-style: normal;
}

.card p {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 页脚 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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







/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动设备上显示默认鼠标指针 */
    * {
        cursor: auto !important;
    }
    
    #cursor {
        display: none !important;
    }
    
    body, html {
        cursor: auto !important;
    }
    
    a, button, .nav-link, .card {
        cursor: pointer !important;
    }
    
    .main-block {
        width: 95%;
        padding: 15px;
    }
    
    .profile-section h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        text-align: center;
        padding: 12px 16px;
        font-size: 1rem;
        flex: 1;
        min-width: 80px;
    }
    
    .content-area {
        padding: 5px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .card p {
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .main-block {
        padding-bottom: 80px;
    }
}