@font-face {
    font-family: 'HarmonyOS_Sans_TC';
    src: url('../assets/fonts/HarmonyOS_Sans_TC.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* 至少占满整个视窗高度 */
}

* {
    font-family: 'HarmonyOS_Sans_TC', sans-serif;
}

.beijing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    pointer-events: none;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(250, 250, 252, 0.394) 30%,
        rgba(245, 245, 250, 0.435) 50%,
        rgba(240, 240, 245, 0.3) 100%);
}

.background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(220, 220, 249, 0.753);
}



.xinxi {
    flex-direction: row;
    display: flex;
    justify-content: center;
    align-items: center
}

#name{
    font-size: 60px;
    color: rgb(71, 152, 229);
}

#avatar {
    width: 100px;           /* 头像框大小 */
    height: 100px;
    border-radius: 50%;     /* 圆形裁剪 */
    overflow: hidden;       /* 隐藏超出部分 */
    margin: 20px;
    border: 3px solid rgb(255, 255, 255)
}

#avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* 保持比例，填充整个容器 */
}

#articleTitle{
    display: flex;
    justify-content: center;
    font-size: 35px;
    color: rgb(0, 0, 0);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #0062ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.articlelist{
    /* border: 4px solid rgba(255, 255, 255, 0.709);; */
    background-color: rgba(255, 255, 255, 0.613);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 20px;
    column-gap: 20px;
    padding: 20px;
    margin: 0px 60px;
}

.articlelist .article {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.articlelist .article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}


/* .article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.article-card.placeholder {
    opacity: 0.95;
} */



.articlelist img{
    width: 100%;
    aspect-ratio: 7 / 5;
    object-fit: cover;
    border-radius: 8px;
    /* border: 2px solid rgba(144, 0, 0, 0.842); */
    display: block;

}

/* 为链接容器添加相对定位 */
.articlelist .article a {
    position: relative; /* 重要：为伪元素提供定位基准 */
    display: block;
    width: 100%;
    aspect-ratio: 7 / 5;
    border-radius: 8px;
    overflow: hidden;
}

/* 创建遮罩层 */
.articlelist .article a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(79, 78, 78, 0.466) 100%);
    /* background: rgba(0, 0, 0, 0.3); 黑色半透明遮罩，透明度可调整 */
    /* 或者使用渐变效果 */
    /* background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%); */
    z-index: 1; /* 确保遮罩在图片之上 */
    transition: background 0.3s ease; /* 可选：添加过渡效果 */
}

/* 确保图片在遮罩之下 */
.articlelist .article img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.842);
    display: block;
    box-sizing: border-box;
    transition: transform 1s ease;
}

/* 可选：鼠标悬停时改变遮罩效果 */
.articlelist .article a:hover::before {
    transition: background 1s ssease;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(154, 153, 153, 0.236) 100%);
} /* 悬停时遮罩变浅 */


.articlelist .article a:hover img{
    transform: scale(1.1)
}

.articlelist .article a {
    position: relative;
}


.articlelist .article .article-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(57, 57, 57, 0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    z-index: 2; /* 确保文字在遮罩之上 */
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 悬停时的文字效果 */
.articlelist .article a:hover .article-title {
    background: linear-gradient(to top, rgba(57, 57, 57, 0.8) 0%, rgba(0,0,0,0) 100%);
}

.articlelist .article .article-date {
    font-size: 11px;
    position: absolute;
    bottom: 0;
    right: 10px;
    left: auto;
    width: auto;
    padding: 8px 12px;
    color: rgb(216, 216, 216);
    font-weight: bold;
    z-index: 2;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* ========== 移动端适配 ========== */

/* 平板设备 */
@media (max-width: 1024px) {
    .articlelist {
        grid-template-columns: repeat(3, 1fr);
        margin: 0 30px;
    }
    
    #name {
        font-size: 48px;
    }
    
    #articleTitle {
        font-size: 28px;
    }
}

/* 小平板 / 大手机 */
@media (max-width: 768px) {
    .articlelist {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 15px;
        padding: 15px;
        row-gap: 15px;
        column-gap: 15px;
    }
    
    #name {
        font-size: 36px;
    }
    
    #articleTitle {
        font-size: 24px;
    }
    
    .xinxi {
        flex-direction: column;
        gap: 10px;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    .articlelist {
        grid-template-columns: 1fr;
        margin: 0 10px;
        padding: 10px;
        row-gap: 12px;
    }
    
    #name {
        font-size: 28px;
    }
    
    #articleTitle {
        font-size: 20px;
    }
    
    .articlelist .article .article-title {
        font-size: 13px;
        padding: 8px;
    }
    
    .articlelist .article .article-date {
        font-size: 10px;
        padding: 6px 8px;
    }
}

/* 超小屏幕 */
@media (max-width: 360px) {
    #name {
        font-size: 24px;
    }
    
    #articleTitle {
        font-size: 18px;
    }
    
    .articlelist {
        margin: 0 5px;
        padding: 8px;
    }
}