/* 作者列表页 author 风格设计 */
/* 作者标题栏和搜索 */
.cphos-author-title-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0;
    min-height: 60px;
}
.cphos-author-title {
    flex: 0 1 auto;
    position: relative;
    font-size: 40px;
    font-weight: 700;
    color: #333;
    letter-spacing: 5px;
    margin: 0 auto 20px auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cphos-author-title::before,
.cphos-author-title::after {
    content: '';
    display: inline-block;
    width: 36px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    margin: 0 18px;
}
.cphos-author-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cphos-author-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}
.cphos-author-search-input {
    height: 36px;
    border: 1.5px solid #1e3a8a;
    border-radius: 18px;
    padding: 0 36px 0 14px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    min-width: 180px;
    background: #f8fafc;
    color: #222;
}
.cphos-author-search-input:focus {
    border-color: #17408b;
}
.cphos-author-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
}
.cphos-author-noresult {
    display: none;
    color: #888;
    font-size: 1.1rem;
    text-align: center;
    margin: 40px 0;
}

/* 移动端：把搜索框放到标题正下方并保持间距，同时尽量窄并隐藏 placeholder */
@media (max-width: 480px) {
    .cphos-author-title-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-bottom: 8px;
        margin-top: 30px;
    }

    .cphos-author-title {
        margin-bottom: 8px;
        text-align: center;
    }

    /* 把搜索容器设为相对定位，这样内部绝对定位的图标可以基于容器水平居中后再右移 */
    .cphos-author-search {
        right: auto;
        top: auto;
        transform: none;
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 8px; /* 与标题的间距，可调整 */
        padding: 0 12px; /* 与两侧保持间距 */
        box-sizing: border-box;
    }

    .cphos-author-search-input {
        min-width: 64px;
        width: 100%;
        max-width: 200px; /* 防止在较大窄屏下过宽 */
        margin: 0;
        /* 增加右侧内边距以容纳水平居中后右移的图标（图标宽度 + 间距） */
        padding: 0 56px 0 12px;
        height: 36px;
        box-sizing: border-box;
    }

    .cphos-author-search-icon {
        position: absolute;
        left: 50%;
        right: auto;
        top: 50%;
        /* 先水平居中（-50%），再向右偏移 80px */
        transform: translate(-50%, -50%) translateX(80px);
        pointer-events: none;
        display: flex;
        align-items: center;
    }
}

/* 作者卡片列表布局 */
/* 作者卡片列表布局容器，仅作用于卡片区域 */
/* 兼容 .cphos-author-list 结构下 .ast-row 包裹 .post 的情况，实现四列排布 */
.cphos-author-list {
    display: block;
}
.cphos-author-list .ast-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0px;
    padding-bottom: 24px;
    box-sizing: border-box;
}
/* 作者卡片仿主页卡片样式 */
.cphos-author-list .ast-row .post {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(30,58,138,0.08);
    overflow: hidden;
    width: calc(25% - 18px);
    min-width: 220px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1.5px solid #e5eaf3;
    margin-bottom: 0;
    padding: 0 !important;
}
.cphos-author-list .ast-row .post:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(30,58,138,0.13);
    border-color: #1e3a8a22;
}
@media (max-width: 1200px) {
    .cphos-author-list .ast-row .post {
        width: calc(50% - 12px);
    }
}
@media (max-width: 700px) {
    .cphos-author-list .ast-row {
        padding: 20px 4vw;
        gap: 12px;
    }
    .cphos-author-list .ast-row .post {
        width: 100%;
        min-width: 0;
    }
}

/* 作者卡片内容区单独加内边距 */
.cphos-author-list .post .entry-title,
.cphos-author-list .post .entry-header,
.cphos-author-list .post .read-more {
    padding: 10px 20px 0px 20px;
}

/* 文章标题 */
.entry-title a {
    color: #333;
    font-size: 1.13rem;
    font-weight: 700;
}

/* 作者卡片图片样式 */
/* 作者卡片图片仿主页卡片图片样式 */
/* 让作者卡片图片真正顶满卡片宽度和上缘，清除多层包裹的间距，绕开父容器 */
.cphos-author-list .post .ast-blog-featured-section {
    position: relative;
    top: 0;
    left: 0;
    overflow: hidden;
}
.cphos-author-list .post:hover .ast-blog-featured-section img {
    transform: scale(1.04);
}
.cphos-author-list .post .ast-blog-featured-section,
.cphos-author-list .post .post-thumb-img-content,
.cphos-author-list .post .post-thumb {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
    display: block !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
}
.cphos-author-list .post .ast-blog-featured-section img {
    width: 100% !important;
    height: 140px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 0 !important;
    background: #f4f4f4;
    transition: transform 0.2s;
}

/* 隐藏文章摘要内容 */
.archive .post .ast-excerpt-container {
    display: none !important;
}

/* 分页按钮整体居中 */
.ast-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0 0 0;
}
.ast-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}
/* 分页按钮字体颜色和当前页背景色 */
.ast-pagination a {
    color: #1e3a8a;
    background: #f0f6ff;
    border-radius: 6px;
    margin: 0 2px;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}
.ast-pagination a:hover {
    background: #dbeafe;
    color: #17408b;
}
.ast-pagination .current,
.ast-pagination span.current {
    background: #1e3a8a;
    color: #fff !important;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

/* 去掉意义不明的默认搜索框 */
.search-field,
.search-submit {
    display: none !important;
}