/**
 * 首页样式 - 文章列表
 */

/* 移动端个人信息区域（桌面端隐藏） */
.mobile-profile-section {
    display: none;
}

/* 文章列表 */
.posts-list {
    width: 100%;
}

.post-item {
    margin-top: 40px;
    margin-bottom: 70px;
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 30px;
}

.post-main {
    min-width: 0;
}

.post-thumbnail {
    position: relative;
    width: 100%;
}

.post-thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

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

/* 密码保护文章的锁图标占位符 */
.password-lock-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
}

.password-lock-placeholder svg {
    width: 48px;
    height: 48px;
    color: #999;
}

.post-title {
    font-size: 28px;
    margin-bottom: .25em;
    line-height: 1.35;
    font-weight: 400;
}

/* 置顶徽章 */
.sticky-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 7px;
    margin-right: 6px;
    background: rgba(41, 151, 247, 0.1);
    color: #2997f7;
    font-size: 1.1rem;
    font-weight: 400;
    border-radius: 3px;
    vertical-align: baseline;
    line-height: 1;
    position: relative;
    top: -0.1em;
}

.post-title a {
    color: #000;
    text-decoration: none;
}

.post-title a:hover {
    color: #333;
}

/* 文章表情图标 */
.post-emoji {
    font-size: 1em;
    display: inline-block;
    vertical-align: baseline;
    line-height: 1;
    font-style: normal;
}

/* 首页副标题样式 */
.posts-list .post-subtitle {
    display: inline;
    font-size: inherit;
    font-weight: 400;
    margin-left: 0;
    line-height: inherit;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    font-size: 16px;
    color: #999;
}

.post-views {
    color: #999;
}

.post-excerpt {
    color: #666;
    font-size: 1.3rem;
    line-height: 1.625;
    letter-spacing: .35px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分页 */
.pagination {
    margin-top: 40px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.pagination a:hover {
    color: #000;
}

.pagination .current {
    color: #000;
    font-weight: 600;
}

/* 无文章提示 */
.no-posts {
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    /* 移动端显示个人信息区域 */
    .mobile-profile-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 70px 20px 30px;
        margin: -60px -20px 40px -20px;
        background: #f6f8fa;
        border-radius: 8px;
    }
    
    .mobile-profile-header {
        display: flex;
        gap: 20px;
        width: 100%;
        margin-bottom: 24px;
    }
    
    .mobile-profile-info {
        flex: 1;
        min-width: 0;
    }
    
    .mobile-profile-avatar {
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .mobile-profile-avatar a {
        display: block;
        width: 100%;
        height: 100%;
    }
    
    .mobile-site-title {
        font-size: 28px;
        font-weight: 600;
        margin: 0 0 16px 0;
        color: #24292e;
        letter-spacing: 0.3px;
    }
    
    .mobile-site-bio {
        font-size: 16px;
        line-height: 1.7;
        color: #666;
        margin: 0;
        letter-spacing: 0.3px;
    }
    
    .mobile-social-links {
        display: flex;
        gap: 24px;
        align-items: center;
    }
    
    .mobile-social-links a {
        color: #24292e;
        text-decoration: none;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-social-links a:hover {
        opacity: 0.7;
    }
    
    .mobile-social-links a svg {
        width: 24px;
        height: 24px;
    }
    
    .post-item {
        margin-top: 30px;
        margin-bottom: 40px;
    }
    
    .post-item:first-child {
        margin-top: 0;
    }
    
    .post-content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .post-thumbnail {
        width: 100%;
        order: -1;
        margin-bottom: 10px;
        padding-top: 56.25%; /* 16:9 比例 */
        position: relative;
    }
    
    /* 移动端隐藏缩略图选项 */
    .post-thumbnail.mobile-hide-thumbnail {
        display: none;
    }
    
    .post-thumbnail a {
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .post-thumbnail img {
        height: 100%;
    }
    
    .post-title {
        font-size: 22px;
    }
    
    /* 置顶徽章移动端适配 */
    .sticky-badge {
        font-size: 0.95rem;
        padding: 0px 6px;
    }
    
    /* 副标题移动端适配 */
    .posts-list .post-subtitle {
        font-size: inherit;
        margin-left: 0;
    }
    
    .post-excerpt {
        font-size: 1.1rem;
    }
    
    .post-meta {
        font-size: 14px;
    }
    
    /* 移动端个人信息区域 - 夜间模式 */
    body.dark-mode .mobile-profile-section {
        background: #1c1c1c;
    }
    
    body.dark-mode .mobile-profile-avatar {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    body.dark-mode .mobile-site-title {
        color: #c9d1d9;
    }
    
    body.dark-mode .mobile-site-bio {
        color: #8b949e;
    }
    
    body.dark-mode .mobile-social-links a {
        color: #c9d1d9;
    }
}

