.header {
position: fixed;
top: 0;
left: 0;
right: 0;
width: 100%;
z-index: 1000;

}

.section {
    /* 设置背景颜色，带有透明度 */
    background-color: rgba(255, 255, 255, 0.18);

    /* 应用模糊效果 */
    backdrop-filter: blur(4px);
    /* 兼容Safari浏览器的模糊效果 */
    -webkit-backdrop-filter: blur(4px);

    /* 设置边框颜色和透明度 */
    border: 1px solid rgba(255, 255, 255, 0.18);

    /* 添加阴影效果 */
    box-shadow: rgba(142, 142, 142, 0.19) 0px 6px 15px 0px;
    /* 兼容Safari浏览器的阴影效果 */
    -webkit-box-shadow: rgba(142, 142, 142, 0.19) 0px 6px 15px 0px;

    /* 设置圆角边框 */
    border-radius: 12px;
    /* 兼容Safari浏览器的圆角效果 */
    -webkit-border-radius: 12px;

    /* 设置字体颜色和透明度 */
    color: rgba(255, 255, 255, 0.75);

    /* 内边距，增加元素内部空间 */
    padding: 10px;

    /* 外边距，增加元素之间的间隔 */
    margin: 10px;

    /* 设置元素的定位为相对定位 */
    position: relative;
}

.avatar {
    width: 150px;
    /* 设置图片宽度 */
    height: 150px;
    /* 设置图片高度，保持正方形 */
    border-radius: 50%;
    /* 使图片变成圆形 */
    object-fit: cover;
    position: relative;
    background: linear-gradient(to bottom right, #1a71d5, #c469f4);
    /* 渐变背景 */
    padding: 5px;
    /* 给图片增加边距来显示边框 */
    box-sizing: border-box;
    /* 确保边距不会影响图片的尺寸 */
}

.avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    /* 使边框变成圆形 */
    background: inherit;
    /* 继承渐变背景 */
    z-index: -1;
    /* 确保边框在图片下层 */
}

.home {

    min-height: calc(100vh - 20px);

}

.centerbox{
        display: flex;
    flex-direction: column;
    /* 使子元素垂直排列 */
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    display: flex;
    flex-wrap: wrap;
}

.body {
    padding-top: 0px;
}

.a1 {
    font-size: 25px;
    margin: 10px 0;

    margin-left: 50px;
}

@media (max-width: 768px) {

    .a1 {

        margin-left: 0px;
    }

    .links {
        align-items: flex-start;
    }
}

.a2 {
    position: absolute;
    right: 0;
    /* 靠右对齐 */
    bottom: 0;
    /* 靠下对齐 */
    padding: 10px;
}










/* 搜索框样式 */
        .search-container {
            max-width: 800px;
            margin: 0 auto 30px;
        }
        
        #search {
            width: 100%;
            padding: 14px 20px;
            background: rgba(255, 255, 255, 0.2); /* 半透明白色背景 */
            backdrop-filter: blur(10px); /* 毛玻璃效果 */
            border: 1px solid rgba(255, 255, 255, 0.3); /* 半透明边框 */
            border-radius: 12px; /* 圆角与卡牌一致 */
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.9); /* 白色文字 */
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 柔和阴影 */
        }
        
        /* 输入框占位符文字颜色 */
        #search::placeholder {
            color: rgba(255, 255, 255, 0.6); /* 半透明提示文字 */
        }
        
        /* 聚焦时的高亮效果 */
        #search:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.3); /* 背景稍微变亮 */
            border-color: rgba(255, 255, 255, 0.5); /* 边框更明显 */
            box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.2), /* 发光效果 */
        0 4px 20px rgba(0, 0, 0, 0.1);
        }
        
        .articles-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin: 0 auto;
        }
        
        .article-card {
    /* 设置背景颜色，带有透明度 */
    background-color: rgba(255, 255, 255, 0.18);

    /* 应用模糊效果 */
    backdrop-filter: blur(4px);
    /* 兼容Safari浏览器的模糊效果 */
    -webkit-backdrop-filter: blur(4px);

    /* 设置边框颜色和透明度 */
    border: 1px solid rgba(255, 255, 255, 0.18);

    /* 添加阴影效果 */
    box-shadow: rgba(142, 142, 142, 0.19) 0px 6px 15px 0px;
    /* 兼容Safari浏览器的阴影效果 */
    -webkit-box-shadow: rgba(142, 142, 142, 0.19) 0px 6px 15px 0px;

    /* 设置圆角边框 */
    border-radius: 12px;
    /* 兼容Safari浏览器的圆角效果 */
    -webkit-border-radius: 12px;

    /* 设置字体颜色和透明度 */
    color: rgba(255, 255, 255, 0.75);
            overflow: hidden;
            transition: all 0.3s ease;
            padding: 20px;
            position: relative;
            transform-style: preserve-3d;
            transform: perspective(1000px);
        }
        
        /* 新增：根据鼠标位置倾斜卡片 */
        .article-card:hover {
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .article-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: -1;
            border-radius: 8px;
            background: linear-gradient(135deg, rgba(67,97,238,0.1) 0%, rgba(72,149,239,0.05) 100%);
            opacity: 0;
            transition: all 0.3s ease;
        }
        
        .article-card:hover::after {
            opacity: 1;
        }
        
        .article-date {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.85rem;
            margin-bottom: 10px;
        }
        
        .article-title {
            font-size: 1.25rem;
            margin: 0 0 12px;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 600;
            line-height: 1.4;
        }
        
        .article-excerpt {
           color: rgba(255, 255, 255, 0.7);
            margin-bottom: 15px;
        }
        
        .article-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tag {
            display: inline-block;
            padding: 5px 12px;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        /* 标签悬停效果 */
        .tag:hover {
            background-color: rgba(255, 255, 255, 0.5);
            color: white;
        }
        
        .read-more {
            display: inline-block;
            margin-top: 15px;
            color: #4361ee;
            font-weight: 500;
            text-decoration: none;
        }
        
        .read-more:hover {
            text-decoration: underline;
        }
        
        /* 无结果提示样式 */
        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px;
            color: rgba(255, 255, 255, 0.8);
        }
        
        
        
        
        
.responsive-img {
            width: auto; /* 宽度自适应 */
            height: auto; /* 高度自适应 */
            max-width: 100%; /* 容器宽度的最大宽度 */
            max-height: 400px; /* 限制最大高度 */
            border-radius: 5px; /* 圆角效果 */
            display: block; /* 避免图片下方出现空白 */
            margin: 0 auto; /* 图片居中显示 */
        }
        
        
