/* ===== 博客列表页 - 仿 shenliyang.github.io ===== */

/* 主内容区 - 右侧边栏布局 */
.site-content > .ast-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 40px;
    align-items: flex-start !important;
}

.content-area.primary {
    flex: 1 !important;
    min-width: 0 !important;
}

.widget-area.secondary {
    width: 280px !important;
    flex-shrink: 0 !important;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* 文章列表 - 无特色图片，纯文字 */
.ast-article-post {
    border-bottom: 1px solid #eee;
    padding: 28px 0;
}

.ast-article-post:first-child {
    border-top: 1px solid #eee;
}

/* 文章标题 */
.ast-article-post .entry-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.6;
}

.ast-article-post .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.ast-article-post .entry-title a:hover {
    color: #FF1A75;
}

/* 元信息：日期、分类 */
.ast-post-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ast-post-meta .cat-links a {
    color: #FF1A75;
    text-decoration: none;
    font-weight: 500;
}

.ast-post-meta .cat-links a:hover {
    text-decoration: underline;
}

/* 摘要/内容 */
.ast-article-post .entry-content {
    font-size: 14px;
    color: #666;
    line-height: 1.9;
    margin: 0;
}

/* 阅读全文按钮 */
.ast-read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px !important;
    color: #FF1A75 !important;
    text-decoration: none !important;
    border: 1px solid #FF1A75;
    padding: 4px 14px;
    border-radius: 3px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.ast-read-more:hover {
    background: #FF1A75;
    color: #fff !important;
}

/* ===== 侧边栏 ===== */
.widgets-container {
    position: sticky;
    top: 20px;
}

.widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF1A75;
    letter-spacing: 1px;
}

/* 搜索框 */
.widget_search .search-form {
    display: flex;
    gap: 0;
}

.widget_search .search-form .search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
    font-size: 13px;
    outline: none;
}

.widget_search .search-form .search-field:focus {
    border-color: #FF1A75;
}

.widget_search .search-form .search-submit {
    background: #FF1A75;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.widget_search .search-form .search-submit:hover {
    background: #e6005c;
}

/* 分类列表 */
.widget_pages ul,
.widget_meta ul,
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_pages ul li,
.widget_meta ul li,
.widget_categories ul li {
    padding: 7px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
}

.widget_pages ul li:last-child,
.widget_meta ul li:last-child,
.widget_categories ul li:last-child {
    border-bottom: none;
}

.widget_pages ul li a,
.widget_meta ul li a,
.widget_categories ul li a {
    color: #555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_pages ul li a:hover,
.widget_meta ul li a:hover,
.widget_categories ul li a:hover {
    color: #FF1A75;
}

.widget_categories .cat-count {
    background: #f5f5f5;
    color: #999;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
}

/* 归档列表 */
.widget_archive ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_archive ul li {
    padding: 7px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_archive ul li:last-child {
    border-bottom: none;
}

.widget_archive ul li a {
    color: #555;
    text-decoration: none;
}

.widget_archive ul li a:hover {
    color: #FF1A75;
}

/* 标签云 */
.wp-block-tag-cloud,
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wp-block-tag-cloud a,
.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 3px 10px;
    background: #f5f5f5;
    color: #666 !important;
    font-size: 12px !important;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.wp-block-tag-cloud a:hover,
.widget_tag_cloud .tagcloud a:hover {
    background: #FF1A75;
    color: #fff !important;
    border-color: #FF1A75;
}

/* ===== 头部导航 ===== */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.main-navigation ul li a:hover {
    color: #FF1A75;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    color: #FF1A75 !important;
}

/* ===== Logo/Header ===== */
.site-header {
    border-bottom: 1px solid #eee;
    padding: 0;
    background: #fff;
}

.ast-container {
    max-width: 1100px;
}

/* ===== Footer ===== */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.site-footer a {
    color: #999;
    text-decoration: none;
}

.site-footer a:hover {
    color: #FF1A75;
}

/* ===== 最新评论 ===== */
.wp-block-latest-comments {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-block-latest-comments li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
    line-height: 1.5;
}

.wp-block-latest-comments li:last-child {
    border-bottom: none;
}

.wp-block-latest-comments__comment-author {
    color: #FF1A75;
    font-weight: 500;
}

/* ===== 翻页 ===== */
.wp-pagenavi {
    clear: both;
    text-align: center;
    padding: 30px 0;
}

.wp-pagenavi a,
.wp-pagenavi .current {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.wp-pagenavi a:hover,
.wp-pagenavi .current {
    background: #FF1A75;
    color: #fff !important;
    border-color: #FF1A75;
}

/* ===== 文章页 ===== */
.single-post .entry-header {
    margin-bottom: 20px;
}

.single-post .entry-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
}

.single-post .entry-content {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}

/* ===== 移动端适配 ===== */
@media (max-width: 900px) {
    .archive .site-main,
    .blog .site-main,
    .home .site-main,
    .search .site-main {
        grid-template-columns: 1fr;
    }
    
    .widgets-container {
        position: static !important;
    }
    
    .widget {
        margin-bottom: 15px;
    }
}

@media (max-width: 600px) {
    .main-navigation ul li a {
        padding: 8px 10px;
        font-size: 13px;
    }
}
