/* ==========================================================
   技术文章 / 解决方案（长尾内容模块）
   与站点主色 #d61704 保持一致
   ========================================================== */

.art-page {
    background: #f5f6f8;
    padding-bottom: 40px;
    color: #313131;
}

/* ---------- 顶部横幅 ---------- */
.art-hero {
    background: linear-gradient(135deg, #b81204 0%, #d61704 55%, #e8452f 100%);
    color: #fff;
    padding: 42px 0 34px;
}

.art-hero h1 {
    font-size: 32px;
    margin: 0 0 12px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 1px;
}

.art-hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, .85);
    margin: 0;
    line-height: 1.8;
}

.art-hero-cats {
    margin-top: 22px;
}

.art-hero-cats a {
    display: inline-block;
    padding: 7px 18px;
    margin: 0 10px 10px 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    transition: all .2s;
}

.art-hero-cats a:hover,
.art-hero-cats a.act {
    background: #fff;
    color: #d61704;
    border-color: #fff;
    text-decoration: none;
}

/* ---------- 面包屑 ---------- */
.art-crumb {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    font-size: 13px;
    color: #8a8f99;
    line-height: 46px;
}

.art-crumb a {
    color: #8a8f99;
}

.art-crumb a:hover {
    color: #d61704;
}

.art-crumb .sep {
    padding: 0 8px;
    color: #c9ced6;
}

/* ---------- 布局 ---------- */
.art-main {
    padding-top: 24px;
}

.art-layout > div {
    margin-bottom: 20px;
}

/* ---------- 区块标题 ---------- */
.art-sec {
    background: #fff;
    border-radius: 3px;
    padding: 22px 24px 8px;
    margin-bottom: 18px;
}

.art-sec-title {
    font-size: 19px;
    color: #313131;
    margin: 0 0 18px;
    padding-left: 12px;
    border-left: 4px solid #d61704;
    line-height: 1.2;
    font-weight: 500;
}

.art-sec-title small {
    font-size: 13px;
    color: #9aa0a8;
    margin-left: 8px;
    font-weight: normal;
}

/* ---------- 分类介绍 ---------- */
.art-intro-text {
    font-size: 14px;
    color: #5b626b;
    line-height: 1.95;
    padding: 0 0 18px;
}

/* ---------- 分类卡片 ---------- */
.art-cate-grid .art-cate-card {
    margin-bottom: 16px;
}

.art-cate-card-in {
    display: block;
    background: #fafbfc;
    border: 1px solid #edeff2;
    border-radius: 3px;
    padding: 20px 18px;
    height: 100%;
    transition: all .25s;
    color: #313131;
}

.art-cate-card-in:hover {
    background: #fff;
    border-color: #f4c3bd;
    box-shadow: 0 6px 18px rgba(214, 23, 4, .09);
    transform: translateY(-2px);
    text-decoration: none;
}

.art-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fdecea;
    color: #d61704;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.art-svg {
    width: 24px;
    height: 24px;
}

.art-cate-card-in h3 {
    font-size: 17px;
    margin: 0 0 8px;
    color: #313131;
    font-weight: 500;
}

.art-cate-card-in p {
    font-size: 13px;
    color: #8a8f99;
    line-height: 1.7;
    margin: 0 0 12px;
    min-height: 44px;
}

.art-cate-count {
    font-size: 12px;
    color: #b0b6bd;
}

.art-cate-count em {
    font-style: normal;
    color: #d61704;
    font-weight: 600;
}

/* ---------- 推荐卡片 ---------- */
.art-rec-card {
    display: block;
    border: 1px solid #edeff2;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
    color: #313131;
    background: #fff;
    transition: all .25s;
}

.art-rec-card:hover {
    border-color: #f4c3bd;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    text-decoration: none;
    color: #d61704;
}

.art-rec-cover {
    height: 132px;
    overflow: hidden;
    background: #f2f4f7;
}

.art-rec-cover img {
    width: 100%;
    height: 132px;
    object-fit: cover;
}

.art-rec-noimg {
    height: 132px;
    background: linear-gradient(135deg, #fdecea, #f7f9fb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e7a79f;
}

.art-rec-noimg .art-svg {
    width: 38px;
    height: 38px;
}

.art-rec-body {
    padding: 14px 16px 16px;
}

.art-rec-body h3 {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 8px;
    height: 46px;
    overflow: hidden;
}

.art-rec-body p {
    font-size: 12px;
    color: #9aa0a8;
    margin: 0;
}

/* ---------- 文章列表 ---------- */
.art-list {
    margin: 0 -24px;
}

.art-item {
    border-top: 1px solid #f0f2f5;
}

.art-item:first-child {
    border-top: 0;
}

.art-item-link {
    display: block;
    padding: 18px 24px;
    color: #313131;
    transition: background .2s;
}

.art-item-link:hover {
    background: #fcfcfd;
    text-decoration: none;
}

.art-item-thumb {
    float: left;
    width: 186px;
    height: 120px;
    margin-right: 18px;
    overflow: hidden;
    border-radius: 3px;
    background: #f2f4f7;
}

.art-item-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform .3s;
}

.art-item-link:hover .art-item-thumb img {
    transform: scale(1.04);
}

.art-item-body {
    overflow: hidden;
}

.art-item-title {
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 8px;
    color: #313131;
    font-weight: 500;
}

.art-item-link:hover .art-item-title {
    color: #d61704;
}

.art-item-desc {
    font-size: 13px;
    color: #8a8f99;
    line-height: 1.75;
    margin: 0 0 10px;
}

.art-item-meta {
    font-size: 12px;
    color: #b0b6bd;
}

.art-item-meta > span {
    margin-right: 14px;
}

.art-tag {
    display: inline-block;
    background: #fdecea;
    color: #d61704;
    border-radius: 2px;
    padding: 2px 8px;
    margin-right: 10px;
}

.art-top {
    background: #d61704;
    color: #fff;
    border-radius: 2px;
    padding: 2px 6px;
}

/* 空状态 */
.art-empty {
    text-align: center;
    padding: 60px 20px 70px;
    color: #9aa0a8;
}

.art-empty .art-svg {
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    color: #d8dce2;
}

.art-empty p {
    font-size: 14px;
    margin-bottom: 18px;
}

/* ---------- 分页 ---------- */
.art-pager {
    padding: 18px 24px 18px;
    text-align: center;
    border-top: 1px solid #f0f2f5;
}

.art-pager .pagination {
    margin: 0;
}

.art-pager .pagination > li > a,
.art-pager .pagination > li > span {
    color: #666;
    border-color: #e8eaed;
}

.art-pager .pagination > .active > a,
.art-pager .pagination > .active > a:hover {
    background: #d61704;
    border-color: #d61704;
    color: #fff;
}

/* ---------- 侧栏 ---------- */
.art-side-box {
    background: #fff;
    border-radius: 3px;
    padding: 20px;
    margin-bottom: 18px;
}

.art-side-title {
    font-size: 16px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
    color: #313131;
    font-weight: 500;
}

.art-side-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.art-side-cats li {
    border-bottom: 1px dashed #f2f4f7;
}

.art-side-cats li:last-child {
    border-bottom: 0;
}

.art-side-cats a {
    display: block;
    padding: 10px 2px;
    color: #4a5058;
    font-size: 14px;
    transition: all .2s;
}

.art-side-cats a em {
    float: right;
    font-style: normal;
    font-size: 12px;
    color: #b0b6bd;
}

.art-side-cats a:hover,
.art-side-cats li.act a {
    color: #d61704;
    padding-left: 6px;
}

.art-side-cats li.act a {
    font-weight: 600;
}

.art-side-hot {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: hot;
}

.art-side-hot li {
    position: relative;
    padding: 9px 0 9px 26px;
    border-bottom: 1px dashed #f2f4f7;
    counter-increment: hot;
}

.art-side-hot li:last-child {
    border-bottom: 0;
}

.art-side-hot li:before {
    content: counter(hot);
    position: absolute;
    left: 0;
    top: 9px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
    color: #b0b6bd;
    background: #f4f6f8;
    border-radius: 2px;
}

.art-side-hot li:nth-child(1):before,
.art-side-hot li:nth-child(2):before,
.art-side-hot li:nth-child(3):before {
    background: #fdecea;
    color: #d61704;
}

.art-side-hot a {
    color: #4a5058;
    font-size: 13px;
    line-height: 1.6;
    display: block;
}

.art-side-hot a:hover {
    color: #d61704;
}

.art-side-cta {
    background: linear-gradient(135deg, #b81204, #e8452f);
    border-radius: 3px;
    padding: 22px 20px;
    color: #fff;
    text-align: center;
}

.art-side-cta h4 {
    font-size: 17px;
    margin: 0 0 8px;
    color: #fff;
    font-weight: 500;
}

.art-side-cta p {
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.7;
    margin: 0 0 14px;
}

.art-btn {
    display: inline-block;
    background: #fff;
    color: #d61704;
    border-radius: 2px;
    padding: 9px 22px;
    font-size: 14px;
    transition: all .2s;
}

.art-btn:hover {
    background: #ffe9e6;
    color: #b81204;
    text-decoration: none;
}

.art-btn-ghost {
    border: 1px solid #d61704;
    color: #d61704;
    padding: 8px 20px;
}

.art-btn-ghost:hover {
    background: #d61704;
    color: #fff;
    text-decoration: none;
}

/* ---------- 详情 ---------- */
.art-detail {
    background: #fff;
    border-radius: 3px;
    padding: 32px 36px 40px;
}

.art-detail-head {
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 18px;
    margin-bottom: 26px;
}

.art-detail-head h1 {
    font-size: 26px;
    line-height: 1.55;
    margin: 0 0 14px;
    color: #23272d;
    font-weight: 500;
}

.art-detail-meta {
    font-size: 13px;
    color: #9aa0a8;
}

.art-detail-meta > span {
    margin-right: 18px;
}

.art-detail-meta a {
    color: #d61704;
}

.art-content {
    font-size: 16px;
    line-height: 1.95;
    color: #3a3f46;
    word-wrap: break-word;
}

.art-content p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.95;
    color: #3a3f46;
}

.art-content h2 {
    font-size: 21px;
    margin: 34px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #d61704;
    line-height: 1.4;
    color: #23272d;
    font-weight: 500;
    text-align: left;
}

.art-content h3 {
    font-size: 18px;
    margin: 26px 0 12px;
    color: #23272d;
    font-weight: 600;
}

.art-content h4 {
    font-size: 16px;
    margin: 22px 0 10px;
    color: #23272d;
    font-weight: 600;
}

.art-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 3px;
}

.art-content ul,
.art-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.art-content li {
    margin-bottom: 8px;
    line-height: 1.9;
}

.art-content a {
    color: #d61704;
    border-bottom: 1px solid #f3c9c4;
}

.art-content a:hover {
    text-decoration: none;
    border-bottom-color: #d61704;
}

.art-content blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    background: #fafbfc;
    border-left: 3px solid #d61704;
    color: #5b626b;
    font-size: 15px;
}

.art-content blockquote p:last-child {
    margin-bottom: 0;
}

.art-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.art-content table th,
.art-content table td {
    border: 1px solid #e8eaed;
    padding: 10px 12px;
    line-height: 1.7;
}

.art-content table th {
    background: #fafbfc;
    font-weight: 600;
}

.art-content pre {
    background: #f6f8fa;
    border: 1px solid #e8eaed;
    border-radius: 3px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
    overflow: auto;
    margin: 20px 0;
}

.art-content code {
    background: #f6f8fa;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 13px;
    color: #c7254e;
}

.art-content pre code {
    background: none;
    padding: 0;
    color: #3a3f46;
}

/* 上一篇/下一篇 */
.art-prevnext {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid #f0f2f5;
    font-size: 14px;
    line-height: 2.1;
    color: #8a8f99;
}

.art-prevnext a {
    color: #4a5058;
}

.art-prevnext a:hover {
    color: #d61704;
}

/* 相关文章 */
.art-related {
    margin-top: 18px;
}

.art-related-grid {
    margin: 0 -8px;
}

.art-related-item {
    display: block;
    padding: 16px 18px;
    margin: 0 8px 16px;
    background: #fafbfc;
    border: 1px solid #edeff2;
    border-radius: 3px;
    color: #313131;
    transition: all .2s;
}

.art-related-item:hover {
    border-color: #f4c3bd;
    background: #fff;
    color: #d61704;
    text-decoration: none;
}

.art-related-item h4 {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 8px;
    font-weight: 500;
    height: 46px;
    overflow: hidden;
}

.art-related-item p {
    font-size: 12px;
    color: #9aa0a8;
    margin: 0;
}

/* 详情页底部咨询 */
.art-cta {
    margin-top: 18px;
    background: #fff;
    border-radius: 3px;
    padding: 24px 28px;
    border: 1px dashed #f0c9c4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.art-cta-txt h4 {
    font-size: 17px;
    margin: 0 0 6px;
    color: #313131;
    font-weight: 500;
}

.art-cta-txt p {
    font-size: 13px;
    color: #8a8f99;
    margin: 0;
}

.art-cta .art-btn-ghost {
    white-space: nowrap;
    margin-left: 20px;
}

/* ---------- 首页板块 ---------- */
.art-home {
    background: #fff;
    padding: 26px 0 20px;
}

.art-home .art-home-lead {
    text-align: center;
    margin-bottom: 24px;
}

.art-home .art-home-lead h1,
.art-home .art-home-lead h2 {
    font-size: 26px;
    color: #23272d;
    margin: 0 0 10px;
    font-weight: 500;
}

.art-home .art-home-lead h1 strong,
.art-home .art-home-lead h2 strong {
    color: #d61704;
    font-weight: 500;
}

.art-home .art-home-lead p {
    font-size: 14px;
    color: #9aa0a8;
    margin: 0;
}

.art-home .art-cate-card-in {
    min-height: 176px;
}

.art-home-cates {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -8px 4px;
}

.art-home-cate {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 18%;
    flex: 1 1 18%;
    min-width: 186px;
    margin: 0 8px 16px;
}

.art-home .art-home-lead h1:after,
.art-home .art-home-lead h2:after {
    display: none;
}

.art-home .art-home-lead h1 {
    border-bottom: 0;
}

.art-home-list {
    margin-top: 8px;
    border-top: 1px solid #f0f2f5;
}

.art-home-more {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 12px 0;
    border-top: 1px solid #f0f2f5;
    color: #d61704;
    font-size: 14px;
}

.art-home-more:hover {
    color: #b81204;
    text-decoration: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
    .art-item-thumb {
        width: 160px;
        height: 106px;
    }

    .art-item-thumb img {
        height: 106px;
    }
}

@media (max-width: 991px) {
    .art-side {
        margin-top: 0;
    }

    .art-detail {
        padding: 24px 22px 30px;
    }

    .art-detail-head h1 {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .art-hero {
        padding: 26px 0 18px;
    }

    .art-hero h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .art-hero p {
        font-size: 13px;
    }

    .art-hero-cats {
        margin-top: 14px;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .art-hero-cats a {
        padding: 6px 13px;
        font-size: 13px;
        margin-right: 8px;
    }

    .art-crumb {
        line-height: 40px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .art-main {
        padding-top: 12px;
    }

    .art-sec {
        padding: 16px 14px 4px;
        margin-bottom: 12px;
    }

    .art-sec-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .art-list {
        margin: 0 -14px;
    }

    .art-item-link {
        padding: 14px;
    }

    .art-item-thumb {
        width: 108px;
        height: 76px;
        margin-right: 12px;
    }

    .art-item-thumb img {
        height: 76px;
    }

    .art-item-title {
        font-size: 15px;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .art-item-desc {
        display: none;
    }

    .art-item-meta > span {
        margin-right: 10px;
    }

    .art-pager {
        padding: 14px 10px;
    }

    .art-detail {
        padding: 20px 15px 26px;
    }

    .art-detail-head h1 {
        font-size: 19px;
        line-height: 1.5;
    }

    .art-content,
    .art-content p {
        font-size: 15px;
        line-height: 1.9;
    }

    .art-content h2 {
        font-size: 18px;
        margin: 26px 0 12px;
    }

    .art-content h3 {
        font-size: 16px;
    }

    .art-cta {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .art-cta .art-btn-ghost {
        margin: 14px 0 0;
    }

    .art-home .art-cate-card-in {
        min-height: 0;
        padding: 14px 14px 12px;
    }

    .art-home-cate {
        -ms-flex: 1 1 44%;
        flex: 1 1 44%;
        min-width: 0;
        margin: 0 6px 12px;
    }

    .art-home .art-home-lead h1,
    .art-home .art-home-lead h2 {
        font-size: 20px;
    }
}
