/* --- blog-list.css --- */

/* 1. 列表容器配置 */

.post-list {
    /* --- 关键定位修改 --- */
    position: fixed;
    top: 0;
    left: 0;       
    width: 100%;
    height: 100vh; /* 强制高度为屏幕全高 */
    
    /* --- 布局调整 --- */
    /* 不要用 transform 位移，而是用 padding-top 把内容挤下来 */
    /* 假设上面有个人资料卡，这里留出约 220px 的空间，你可以根据实际情况调整这个数字 */
    padding-top: 220px; 
    
    /* 底部留出大片空间，防止最后一个文章被页脚挡住，确保能拖到最底下 */
    padding-bottom: 0px; 
    
    /* 开启丝滑滚动 */
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 

    z-index: 5; /* 确保在背景之上，但在侧边栏之下 */
    list-style: none;
    box-sizing: border-box; /* 确保 padding 不会撑大宽度 */
}
.post-info{
    font-size: 26px;
    font-weight: 500;
    color: #333; /* 稍微加深标题颜色，提高阅读体验 */
    margin-bottom: 6px;
    line-height: 1.4;
}



/* 2. 单个文章卡片 */
.post-item {
    background: rgba(20, 20, 40, 0.3); /* 稍微调高一点不透明度，更清晰 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
    /* 直角设计，通栏风格 */
    border-radius: 0; 
    margin: 0;
    padding: 15px;
    
    overflow: hidden;
    transition: background 0.2s;
}

/* 触摸反馈 */
.post-item:active {
    background: rgba(255, 255, 255, 0.6);
}

/* 3. 链接容器 */
.post-item a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* 4. 封面图 */
.post-cover {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    margin-right: 15px;
    overflow: hidden;
    background: #eee;
}

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

/* 5. 文字信息 */
.post-info {
    color:#fcfcfc;
   
    flex: 1;
    min-width: 0;
    font-size: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-title {
    font-size: 16px;
    font-weight: 700;
    color:  #f5f6ff; /* 稍微加深标题颜色，提高阅读体验 */
    margin-bottom: 6px;
    line-height: 1.4;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-date {
    font-size: 12px;
    color: #cfc7ff;
; /* 日期颜色加深 */
    display: flex;
    align-items: center;
}
.post-date .iconfont {
    font-size: 12px;
    margin-right: 4px;
}
/* 当网页宽度超过768px时 */

@media screen and (min-width: 768px) {  
    html, body {
    /* 设定一个固定的最小宽度 (建议 1200px 或 1280px) */
    min-width: 1200px !important; 
    
    /* 允许横向和纵向滚动 */
    overflow-x: auto !important;
    overflow-y: auto !important;
    position:relative !important;
    /* 确保背景铺满，防止滑动出现白边 */
    width: 100%; 
    height: 100%;
}
    
    .blog-list-card {
    /* --- 核心定位 --- */
    position: absolute !important; /* 必须是 absolute，才能跟随页面横向滚动 */
    
    /* 位置与首页保持一致 (参照你的 pcweb.css 设置) */
    
    left: 600px !important; 
    right: auto !important;
    top: 5vh !important;
    cursor: default;
    
    /* 尺寸限制 */
    width: 50%;
    max-width: 700px !important;     /* 限制宽度，不再全屏 */
    height: 95% !important;     /* 限制高度 */
    
    /* --- 卡片外观 (磨砂玻璃) --- */
    background: rgba(20, 20, 40, 0.3); /* 深色半透明背景 */
    backdrop-filter: blur(20px);       /* 磨砂效果 */
    -webkit-backdrop-filter: blur(20px);
    
    border-radius: 20px;               /* 圆角 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    
    z-index: 500;
    overflow: hidden; /* 确保圆角不被内部内容遮挡 */
}
/* 2. 内部列表容器：负责内部滚动 */
.post-list {
    /* 重置之前的 fixed 全屏样式 */
    position: static !important; 
    width: 100% !important;
    height: 100% !important;
    
    /* 内部滚动设置 */
    overflow-y: auto !important;   /* 内容多了就在卡片里滚 */
    overflow-x: hidden;
    
    /* 内边距 */
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}
/* --- 标题样式优化 --- */
.post-list .post-info {
    /* 让标题吸顶 (可选，如果你想标题一直显示在卡片顶部) */
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(30, 30, 50, 0.95); /* 背景加深防止透字 */
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
/* 3. 单个文章条目 (保持你喜欢的样式，微调尺寸) */
.post-item {
    background: rgba(255, 255, 255, 0.05); /* 淡淡的背景 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0; 
    margin: 0;
    padding: 20px 30px; /* 调整内边距 */
    transition: background 0.2s;
}
.post-item:hover {
    background: rgba(255, 255, 255, 0.1); /* 悬停变亮 */
}
/* 4. 链接容器 */
.post-item a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
/* 5. 封面图 */
.post-cover {
    width: 120px;  /* 稍微大一点 */
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    margin-right: 20px;
    overflow: hidden;
    background: #333;
    border: 1px solid rgba(255,255,255,0.1);
}
.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
/* 悬停时图片轻微放大 */
.post-item:hover .post-cover img {
    transform: scale(1.1);
}
/* 6. 文字信息区域 */
.post-item .post-info {
    /* 注意：这里覆盖了上面标题的通用样式，只针对列表项内的文字 */
    position: static; 
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* 左对齐 */
}
.post-title {
    font-size: 18px;
    font-weight: 700;
    color: #f5f6ff; 
    margin-bottom: 8px;
    line-height: 1.4;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-date {
    font-size: 13px;
    color: #a0a0c0; /* 稍微亮一点的灰色 */
    display: flex;
    align-items: center;
}
.post-date .iconfont {
    font-size: 13px;
    margin-right: 5px;
}
/* 滚动条美化 (针对这个卡片) */
.post-list::-webkit-scrollbar {
    width: 6px;
}
.post-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.post-list::-webkit-scrollbar-track {
    background: transparent;
}



}