
.article_box {
    padding: 15px;
    line-height: 1.75;
    background-color: #FFFFFF;
}

/* 文章列表卡片样式已统一到下方 .recommend-* 规则 */

.article_box .empty-box {
    text-align: center;
    padding: 50px 0 10px;
}

.article_box .empty-box img {
    width: 120px;
}

.article_box .empty-box p {
    margin-top: 5px;
    line-height: 44px;
    color: #C3BFBF;
    font-size: 15px;
}

.article_detail {
    padding: 20px;
    background-color: #FFFFFF;
    margin-bottom: 15px;
}

.article_detail .article_title {
    line-height: 26px;
    font-size: 18px;
    margin: 0;
}

.article_detail .other {
    margin-top: 20px;
    color: #555;
}

.article_detail .other .other_item {
    padding-right: 1em;
    font-size: 13px;
}

.article_detail .other .other_item.extra {
    border-left: 1px solid #CECECE;
    padding-left: 1em;
}

.article_detail .other a.other_item {
    color: #009999;
}

.article_detail .other a.other_item:hover {
    text-decoration: underline;
}

.article_detail .article_content {
    line-height: 2.0;
    margin-top: 25px;
    font-size: 16px;
    word-break: break-all;
}

.article_detail .article_content a:hover {
    text-decoration: underline;
}

.article_detail .article_content p {
    margin: 0 0 15px;
    line-height: 2.0;
}

.article_detail .article_content p:last-child {
    margin-bottom: 0;
}

.article_detail .article_content img {
    max-width: 100%;
}

.article_detail .article_content table th {
    background-color: #f5f2f0;
    border: 1px solid #dedede;
    padding: 5px 10px;
}

.article_detail .article_content table {
    margin-bottom: 15px;
}

.article_detail .article_content table td {
    border: 1px solid #dedede;
    padding: 5px 10px;
}

.article_end {
    padding: 20px 0 15px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.article_nearby {
    font-size: 15px;
}

.article_nearby .nearby_empty {
    color: #999;
}

.article_nearby .nearby_link:hover {
    color: #009999;
}

.article_nearby .nearby_prev {
    float: left;
    width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article_nearby .nearby_next {
    text-align: right;
    float: right;
    width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.tag-box {
    font-size: 12px;
    margin-top: 10px;
}

.tag-box .tag-item {
    display: inline-block;
    padding: 0 15px;
    height: 32px;
    line-height: 32px;
    border: 1px solid #DEDEDE;
    border-radius: 16px;
    margin-right: 10px;
}

.tag-box .tag-item i {
    margin-right: 8px;
}

/* ===== 文章相关页面头部 Hero（与友情链接同为单一白底容器） ===== */
.article-list-page {
    padding: 24px;
    background-color: #FFFFFF;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-bottom: 15px;
}

.article-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid #EFEFEF;
}

/* 无列表的页面（如通用模块）不显示分隔线 */
.article-hero:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* 列表与分页共用容器白底，不再形成独立卡片 */
.article-list-page .article_box {
    padding: 0;
    background-color: transparent;
}

.article-list-page .pagination-box {
    background-color: transparent;
}

.article-hero-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    line-height: 52px;
    text-align: center;
    font-size: 24px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0fa5a5, #007878);
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0, 153, 153, 0.25);
}

.article-hero-text {
    flex: 1;
    min-width: 0;
}

.article-hero-text h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #333333;
}

.article-hero-text p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #999999;
}

.article-hero-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 18px;
    background-color: #F4FAFA;
    border-radius: 10px;
    color: #009999;
}

.article-hero-count strong {
    font-size: 22px;
    line-height: 1.1;
}

.article-hero-count span {
    font-size: 12px;
    color: #7BB5B5;
}

.article-detail-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #EFEFEF;
}

.article-detail-hero .article-hero-icon {
    flex-basis: 52px;
}

.article-detail-hero .article_title {
    margin: 0;
    font-size: 22px;
    line-height: 1.5;
}

.article-detail-hero .other {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .article-list-page {
        padding: 15px;
    }

    .article-hero {
        gap: 12px;
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .article-hero-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 20px;
    }

    .article-hero-text h1 {
        font-size: 18px;
    }

    .article-hero-count {
        padding: 4px 12px;
    }

    .article-hero-count strong {
        font-size: 18px;
    }

    .article-detail-hero {
        gap: 12px;
    }

    .article-detail-hero .article-hero-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 20px;
    }

    .article-detail-hero .article_title {
        font-size: 19px;
    }
}

/* ===== 推荐阅读卡片（通用组件，独立于 .article_box 以免影响文章列表） ===== */
.recommend-list {
    padding: 15px;
    background-color: #FFFFFF;
}

/* 推荐阅读置于统一容器时，沿用容器白底与内边距 */
.article-list-page .recommend-list {
    padding: 0;
    background-color: transparent;
}

.recommend-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.recommend-card:last-child {
    margin-bottom: 0;
}

.recommend-card:hover {
    transform: translateY(-2px);
    border-color: #CDE9E9;
    box-shadow: 0 8px 20px rgba(0, 80, 80, 0.1);
}

.recommend-thumb {
    flex: 0 0 120px;
    width: 120px;
    height: 72px;
    overflow: hidden;
    background-color: #F4FAFA;
    border-radius: 8px;
}

.recommend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommend-card:hover .recommend-thumb img {
    transform: scale(1.05);
}

.recommend-body {
    flex: 1;
    min-width: 0;
}

.recommend-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

a.recommend-title:link,
a.recommend-title:visited,
a.recommend-title:active,
a.recommend-title:hover {
    color: #333333;
}

.recommend-card:hover a.recommend-title {
    color: #009999;
}

.recommend-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #888888;
}

.recommend-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: #AAAAAA;
}

.recommend-meta .recommend-divider {
    width: 1px;
    height: 10px;
    background-color: #E0E0E0;
}

a.recommend-source:link,
a.recommend-source:visited,
a.recommend-source:active,
a.recommend-source:hover {
    color: #009999;
}

a.recommend-source:hover {
    text-decoration: underline;
}

.recommend-arrow {
    flex: 0 0 auto;
    font-size: 16px;
    color: #CCCCCC;
    transition: color 0.2s ease, transform 0.2s ease;
}

.recommend-card:hover .recommend-arrow {
    color: #009999;
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .recommend-list {
        padding: 10px;
    }

    .recommend-card {
        gap: 10px;
        padding: 12px;
    }

    .recommend-thumb {
        flex-basis: 88px;
        width: 88px;
        height: 60px;
    }

    .recommend-title {
        font-size: 14px;
    }

    .recommend-desc {
        -webkit-line-clamp: 1;
        font-size: 12px;
    }

    .recommend-arrow {
        display: none;
    }
}
