/*首页图片内嵌*/
.post-module-thumb a.thumb-link {
    width: 90%;
    height: 90%;
    margin: 5%;
    border-radius: 5px;
    overflow: hidden;
}
/*分类按钮变方*/
.post-list-cats a span {

    border-radius: 4px;
}
/*首页小横幅广告*/
.index-ad{margin-bottom:-10px;overflow:hidden}
.index-ad li{position:relative;float:left;overflow:hidden;margin:0 10px 10px 0;width:645px;height:90px;border-radius:5px;list-style-type:none}
.index-ad li:nth-child(2n){float:right;margin-right:0}
.index-ad li img{width:100%;height:100%;object-fit:fill}
.index-ad li:before{position:absolute;right:0;bottom:0;width:35px;height:20px;border-radius:5px 0 0;background:rgba(0,122,245,.2);color:#fff;content:" AD";text-align:center;font-size:12px;line-height:20px}
@media screen and (max-width:768px){
.index-ad li{margin:.5rem 0 0;width:100%;height:53px}
.index-ad{margin:0}
}
/*首页大横幅广告*/
.index-ad2 {
    margin-bottom: -10px;
    overflow: hidden;
}
.index-ad2 li {
    position: relative;
    float: left;
    overflow: hidden;
    margin: 0 10px 10px 0;
    width: 645px;
    height: 90px;
    border-radius: 5px;
    list-style-type: none;
}
.index-ad2 li:nth-child(2n) {
    float: right;
    margin-right: 0;
}
.index-ad2 li img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.index-ad2 li:before {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 35px;
    height: 20px;
    border-radius: 5px 0 0;
    background: #2966cc;
    color: #fff;
    content: " AD";
    text-align: center;
    font-size: 12px;
    line-height: 20px;
}
@media screen and (max-width: 768px) {
    .index-ad2 li {
        margin: 0.5rem 0 0;
        width: 100%;
        height: 53px;
    }
    .index-ad2 {
        margin: 0;
    }
}
/*文章内页标签前缀美化*/
.entry-content h1.wp-block-heading,.entry-content h2.wp-block-heading,.entry-content h3.wp-block-heading,.entry-content h4.wp-block-heading,.entry-content h5.wp-block-heading,.entry-content h6.wp-block-heading {
    padding: 0px 0px 0px 35px !important;
    background: url(/tpimg/biaoqian.svg) 10px center no-repeat;
    background-size: 20px 20px;
}
/*---------------------------------------------名站导航*-------------------------------------------/
/* 名站导航头部样式 */
.nav-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-title-box {
    flex-shrink: 0;
}

.nav-title {
    font-size: 22px;
    text-align: left;
    margin-right: 15px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.nav-btn-group {
    flex: 1;
}

.nav-btn-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
}

.nav-btn {
    text-decoration: none;
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 按钮不同配色区分 */
.nav-btn-warm {
    background: linear-gradient(to top, #efd3b0 0%, #f9e1be 100%);
    color: #bf7648;
}

.nav-btn-red {
    color: #fff;
    background: linear-gradient(to right,#f35 0%,#ff6780 100%);
}

/* 站点列表容器样式 */
.nav-list-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    padding: 12px 15px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #eee;
    box-sizing: border-box;
    gap: 12px; /* 图标和标题的间距 */
    height: 60px; /* 固定行高，保持统一 */
}

.nav-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #0066ff;
    background-color: #f8fbff;
}

/* 图片图标样式 - 优化显示比例，修复变形问题 */
.nav-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0; /* 防止容器被压缩 */
    border: 1px solid #f0f0f0; /* 轻微边框提升质感 */
}

.nav-icon {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为contain，完整显示图片且保持比例 */
    background-color: #f9f9f9; /* 背景色，避免透明图片边缘空白 */
}

.nav-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1; /* 标题占剩余空间 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 - 适配不同屏幕 */
@media (max-width: 1200px) {
    .nav-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .nav-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .nav-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    .nav-name {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    /* 头部移动端适配 */
    .nav-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 0;
    }
    .nav-btn {
        padding: 5px 12px;
        font-size: 13px;
    }
    .nav-title {
        font-size: 18px;
    }
    /* 列表移动端适配 */
    .nav-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .nav-item {
        padding: 10px 12px;
        gap: 10px;
        height: 54px;
    }
}

@media (max-width: 576px) {
    .nav-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .nav-icon-wrapper {
        width: 28px;
        height: 28px;
    }
    .nav-name {
        font-size: 12px;
    }
}
/*---------------------------------------------名站结束*-------------------------------------------/
