/* Blog Index Styles */
.mar_1200 {
    margin: 0 auto;
    width: 1200px;
}

body {
    background: #fff;
}

.header_bg {
    margin-bottom: -14px;
    height: 140px;
    /* height: 200px; */
    background: url(/static/index/images/home/home_header_bg.webp) no-repeat;
}

.blog-container {
    /* padding: 60px 0 0; */
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: 'ASPEKTA', sans-serif;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 23px;
    line-height: 100%;
}

.blog-header p {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    /* max-width: 800px; */
    margin: 0 auto;
    line-height: 100%;
}

/* Featured Article */
.featured-article {
    background-image: url(/static/index/images/blog/blog_bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.featured-content {
    max-width: 816px;
    position: relative;
    z-index: 2;
}

.featured-tag {
    background: #3b82f6;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
}

.featured-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 100%;
}

.featured-title a {
    line-height: 30px;
    color: inherit;
    text-decoration: none;
}

.featured-summary {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 167%;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 12px;
    font-weight: 400;
    line-height: 100%;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.featured-image-decoration {
    position: absolute;
    right: 40px;
    /* top: 50%; */
    transform: translateY(-50%);
    z-index: 1;
    width: 154px;
}



/* .move_icon_wrap{
    display: flex;
    align-items: center;
    width: 48px;
    height: 48px;
} */
.featured-image-decoration {
    /* width: 36px;
    height: 36px; */
    animation: moveUpDown 1s ease-in-out infinite alternate;
    /* will-change: transform; */
}


/* .header_banner_wrap:hover .move_icon {
    animation-play-state: paused;
} */

@keyframes moveUpDown {

    0%,
    100% {
        transform: translateX(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateX(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes moveLeftRight {
    0% {
        transform: translate3d(0px, 0, 0);
    }

    100% {
        transform: translate3d(8px, 0, 0);
    }
}


/* ================= Element Plus 样式覆盖 ================= */
/* 分类 Tabs */
.category-tabs-el {
    margin-top: 40px;
    margin-bottom: 40px;
}

.category-tabs-el .el-tabs__nav-wrap::after {
    height: 1px;
    background-color: #f3f4f6;
    /* 底部浅灰线 */
}

.category-tabs-el .el-tabs__active-bar {
    display: none;
    /* 隐藏底部的活动条，使用背景色代替 */
}

.category-tabs-el .el-tabs__item {
    font-size: 14px;
    color: #4b5563;
    font-weight: 400;
    padding: 0 12px !important;
    height: 32px;
    line-height: 30px;
    border: 1px solid #E6EBF3;
    box-sizing: border-box;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.3s;
}

.category-tabs-el .el-tabs__item:hover {
    color: #285DFF;
}

.category-tabs-el .el-tabs__item.is-active {
    color: #285DFF;
    background-color: #EDF3FE;
    border: 1px solid #BECEFF;
    font-weight: 500;
}

/* Main Layout */
.blog-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 164px;
}

.blog-main {
    flex: 1;
    width: 0;
    min-width: 0;
}

.blog-sidebar {
    width: 340px;
    flex-shrink: 0;
    padding-bottom: 20px;
}

.blog-sidebar.is-sticky {
    position: sticky;
    top: 100px;
    height: max-content;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.blog-empty {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
    background: #fff;
    margin-bottom: 40px;
}

.article-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.article-card:hover {
    background-color: #F4F7FF;
    border-color: #285DFF;
    box-shadow: 0px 4px 18px rgba(40, 93, 255, 0.10);
    transform: translateY(-2px);
}

.article-card.featured-card {
    border-color: #3b82f6;
}

.article-card .card-title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 140%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card .card-summary {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    line-height: 167%;
    margin-bottom: 20px;
    /* flex: 1; */
    /* display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden; */

    min-height: 110px;


    display: -webkit-box;
    /* 必须结合的弹性盒模型 */
    -webkit-box-orient: vertical;
    /* 设置伸缩盒对象的子元素的排列方式 */
    -webkit-line-clamp: 5;
    /* 限制显示的行数（这里设为2行） */
    overflow: hidden;
    /* 超出部分隐藏 */
    text-overflow: ellipsis;
    /* 超出部分显示省略号 */
}

.card-divider {
    height: 1px;
    background-color: #E6EBF3;
    width: 100%;
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.card-tag {
    font-size: 12px;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 4px 10px;
    border-radius: 4px;
}

.category-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 24px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    white-space: nowrap;
}

.category-label.tutorials,
.category-label.tutorial {
    color: #285DFF;
    background: #F4F7FF;
    border-color: #285DFF;
}

.category-label.product-updates,
.category-label.product-updatess,
.category-label.product-updates-news,
.category-label.product,
.category-label.productupdate,
.category-label.productupdates {
    color: #A855F7;
    background: #FAF5FF;
    border-color: #A855F7;
}

.category-label.case-studies,
.category-label.case-study,
.category-label.case {
    color: #10B981;
    background: #F0FDF4;
    border-color: #10B981;
}

.category-label.industry-insights,
.category-label.industry-insight,
.category-label.industry {
    color: #F59E0B;
    background: #FFFBEB;
    border-color: #F59E0B;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.search-widget {
    padding: 10px;
    border: 1px solid #E6EBF3;
    border-radius: 10px;
    background: #fff;
}

/* 搜索框 */
.search-input-el {
    height: 36px;
}

.search-input-el .el-input__wrapper {
    border-radius: 63px;
    box-shadow: 0 0 0 1px #E6EBF3 inset, 0px 1px 8px 0px rgba(0, 0, 0, 0.08);
    padding: 0 16px;
    background-color: #fff;
}

.search-input-el .el-input__wrapper.is-focus {
    box-shadow: 0 0 0 1px #285DFF inset, 0px 1px 8px 0px rgba(0, 0, 0, 0.08);
}

.search-input-el .el-input__inner {
    height: 34px;
    font-size: 14px;
}

.widget-title {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-item {
    padding: 12px 10px 12px 10px;
    border-bottom: 1px solid transparent;
    border-left: 3px solid #F0F0F0;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.trending-item:hover {
    background: linear-gradient(to right, #F3F6FF, #FAF5FF);
    border-image: linear-gradient(to bottom, #285DFF, #C728FF) 1 100%;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-title {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 167%;
    text-decoration: none;
    display: block;
}

.trending-title:hover {
    color: #1a1a1a;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    background-color: #F4FAFF;
    border: 1px solid #DDE5FF;
    border-radius: 4px;
    font-size: 12px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    box-sizing: border-box;
}

.popular-tag:hover {
    border-color: #285DFF;
    color: #285DFF;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* 覆盖 ElementPlus 分页的默认样式以匹配设计稿 */
.el-pagination.is-background .el-pager li:not(.is-disabled).is-active {
    background-color: #fff !important;
    color: #285DFF !important;
    border: 1px solid #285DFF !important;
    font-weight: 500;
    box-sizing: border-box !important;
}

.el-pagination.is-background .el-pager li {
    background-color: transparent !important;
    color: #4b5563 !important;
    font-weight: 500;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 6px !important;
    transition: all 0.2s;
}

.el-pagination.is-background .el-pager li:hover {
    background-color: #f3f4f6 !important;
    color: #1a1a1a !important;
}

.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next {
    background-color: transparent !important;
    min-width: 32px;
    height: 32px;
    border-radius: 6px !important;
    color: #6b7280 !important;
}

.el-pagination.is-background .btn-prev:hover,
.el-pagination.is-background .btn-next:hover {
    background-color: #f3f4f6 !important;
}

.el-pagination.is-background .btn-prev:disabled,
.el-pagination.is-background .btn-next:disabled {
    background-color: #f9fafb !important;
    color: #9ca3af !important;
}

/* Blog Detail Styles */
.detail-header {
    background-image: url(/static/index/images/blog/detail_bg.webp);
    background-size: cover;
    /*background-position: center;*/
    background-repeat: no-repeat;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.detail-header::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 22px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(90deg, #bcdfff 0%, #ffffff00 25%);
    border-radius: 10px;
    border: 1px solid #fff;
    pointer-events: none;
    z-index: -1;
}

.detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.3;
}

.breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #3b82f6;
}

.detail-breadcrumb-wrap {
    margin-bottom: 20px;
}

.detail-category-tag {
    margin-top: 12px;
}

.detail-category-tag a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #285DFF;
    background: #F4F7FF;
    color: #285DFF;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.detail-content>* {
    max-width: 100%;
}

.detail-content h1 {
    font-size: 28px;
    color: #1a1a1a;
    margin: 40px 0 20px;
    font-weight: 700;
}

.detail-content h2 {
    font-size: 17px;
    color: #1a1a1a;
    margin: 32px 0 16px;
    font-weight: 600;
}

.detail-content h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin: 28px 0 16px;
    font-weight: 600;
}

.detail-content p {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #666666;
}

.detail-content ul,
.detail-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: #666666;

    list-style: inside;
}

.detail-content li {
    margin-bottom: 8px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.detail-content pre {
    background: #25262B;
    /* 设计图中的深色背景 */
    color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    overflow-x: auto;

    font-size: 14px;
    line-height: 1.6;
}

.detail-content code {
    background: #ffffff;
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9em;
}

.detail-content pre code {
    font-weight: 400;
    font-size: 16px;
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* 行内代码块样式 */
.detail-content p code,
.detail-content li code {
    background: #f3f4f6;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
}

.detail-content blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    background: #F3F6FF;
    border-left: 4px solid #285DFF;
    border-radius: 0 8px 8px 0;
    color: #1a1a1a;
}

.detail-content blockquote p {
    margin-bottom: 0;
    color: #1a1a1a;
}

.toc-widget .widget-title {
    margin-bottom: 16px;
}

/* TOC Sidebar Styles */
.toc-list-wrap {
    margin-top: 16px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    font-size: 14px;
    color: #6b7280;
    padding: 12px 0 12px 16px;
    border-left: 3px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.5;
}

.toc-list li:hover {
    color: #285DFF;
}

.toc-list li.active {
    color: #285DFF;
    border-left-color: #285DFF;
}

.toc-list li.is-h3 {
    padding-left: 24px;
    font-size: 13px;
}

/* ================= Responsive Styles ================= */
@media screen and (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
        gap: 24px;
    }

    .blog-main {
        width: 100%;
    }

    .blog-sidebar {
        width: 100%;
    }

    .blog-sidebar.is-sticky {
        position: static;
    }

    .featured-article {
        padding: 30px;
    }

    .featured-image-decoration {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .blog-header {
        margin-bottom: 30px;
    }

    .blog-header h1 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .blog-header p {
        font-size: 14px;
        line-height: 1.5;
    }

    .featured-article {
        padding: 20px;
        border-radius: 12px;
    }

    .featured-title {
        font-size: 18px;
    }

    .featured-summary {
        font-size: 14px;
    }

    .article-card {
        min-height: auto;
    }

    .detail-header {
        padding: 20px;
        border-radius: 12px;
    }

    .detail-header::before {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .detail-title {
        font-size: 22px;
    }

    .detail-content h1 {
        font-size: 24px;
    }

    .detail-content h2 {
        font-size: 20px;
    }

    .detail-content h3 {
        font-size: 18px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .blog-layout {
        padding-bottom: 60px;
    }
}