/**
Theme Name: ingstart
Author: AydenZeng
Author URI: http://wpastra.com/about/
Description: DEVELOPER BY: AydenZeng@gmail.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ingstart
Template: astra
*/
/*table content 样式*/
.wp-block-uagb-table-of-contents {
    background-color: #F9FBFB;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 15px 25px;
	border: 1px solid #ebeef0;
    border-radius: 12px;
}

.wp-block-uagb-table-of-contents .uagb-toc__title {
    color: #1a202c !important;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--ast-global-color-6);
}

.wp-block-uagb-table-of-contents ol.uagb-toc__list {
    list-style-type: none !important; 
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.wp-block-uagb-table-of-contents li.uagb-toc__list {
    position: relative;
    padding-left: 24px;
    margin-bottom: 5px !important;
    line-height: 1.5;
	list-style:none!important;
	padding:0 18px!important;
}

.wp-block-uagb-table-of-contents li.uagb-toc__list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--ast-global-color-6);
    border-radius: 1px;
}

.wp-block-uagb-table-of-contents a.uagb-toc-link__trigger {
    color: #333333 !important;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.wp-block-uagb-table-of-contents a.uagb-toc-link__trigger:hover {
    color: var(--ast-global-color-6) !important;
}
.uagb-toc__wrap{
	background:transparent!important;
	border:none!important;
}


.site-main .ast-row article.post{
    /* gap:10px; */
    padding: var(--ingstart-blog-post-card-grid-gap, 32px)!important;
} 

/*基础微调*/
#primary.content-area {
  display: flex;
  flex-direction: column;
}
/* 让筛选栏排在后面 */
.ast-post-filter {
  order: 2 !important;
}
/* 让标题排在前面 */
.ast-archive-description {
  order: 1 !important;
}
#primary.content-area main.site-main{
	order:3!important;
}
.ast-ajax-pagination-wrapper{
	order:4!important;
}

.main-header-bar.ast-header-breadcrumb{
	border:none!important;
}
.ast-archive-description{
	padding:0!important;
}

.ast-post-filter-single.active {
    box-shadow: rgba(249, 115, 22, 0.2) 0px 0px 12px;
    color: rgb(255, 255, 255)!important;
    background: var(--ast-global-color-6);
}
.sidebar-main{
	top:10px!important;
}

footer .menu#menu-footer2-menu{
	display:flex;
	flex-direction:row;
	gap:15px;
}
footer .menu#menu-footer2-menu a {
	white-space:nowrap;
}
.site-footer-below-section-3.site-footer-section.site-footer-section-3{
	display:flex;
	gap:10px;
	flex-direction:row;
	align-items:center;
}
.site-footer-below-section-3.site-footer-section.site-footer-section-3 .footer-widget-area{
	margin:0;
}
.site-footer-below-section-3.site-footer-section.site-footer-section-3 .ast-builder-html-element{
	white-space:nowrap;
	color:#fff;
	font-size:12px;
}

.ast-pagination-infinite button.ast-load-more{
	background:#F06335!important;
	padding:20px 60px;
	border-radius:30px;
}
body.blog .ast-container #primary .ast-archive-description,.style-title{
	text-align:center;
}
 .page-title.ast-archive-title,
 .style-title > h1,
 .style-title  > h2,
 .style-title  > h3,
 .style-title  > h4,
 .style-title  > h5,
 .style-title  > h6
 {
    --ul-bottom: 8px;
    --ul-height: 11px;
    background: linear-gradient(to bottom, transparent calc(100% - var(--ul-bottom) - var(--ul-height)), var(--ast-global-color-6) calc(100% - var(--ul-bottom) - var(--ul-height)), var(--ast-global-color-6) calc(100% - var(--ul-bottom)), transparent calc(100% - var(--ul-bottom))) no-repeat;
    background-size: 0 100%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    color: #000;
    display: inline;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    transition: background-size 2s ease;
    text-transform:capitalize;
    text-align:center;
}
body.single.single-post .post-thumb-img-content.post-thumb{
    border-radius: 20px;
    overflow: hidden;
}
/*menu*/
.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li.megamenu-active .astra-megamenu, .ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:not([data-megamenu-trigger=click]):hover .astra-megamenu{
	padding:0!important;
}
.ast-desktop .ast-mega-menu-enabled .ast-hide-menu-item+.ast-mm-custom-content{
	margin-top:0!important;
}


/* 2. 外层包裹器与基础卡片 */
.blog-card-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden; /* 确保图片圆角完美剪切 */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    border: 1px solid #f0f2f5;
}

/* 卡片悬停微动效 */
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* 3. 文章特色图片区 */
.blog-card .card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 黄金比例控高 */
    overflow: hidden;
    background-color: #f3f4f6;
}

.blog-card .card-image a,
.blog-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* 悬停时图片轻微放大 */
.blog-card:hover .card-image img {
    transform: scale(1.03);
}

/* 4. 内容主体区 */
.blog-card .card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 撑满高度，确保底部对齐 */
}

/* 5. Meta 区域（分类与阅读时间） */
.blog-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.blog-card .post-meta-container .post-date{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-card .category-link {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card .category-link:hover {
    color: var(--ast-global-color-6); /* Neil Patel 橙色主调 */
}

.blog-card .read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #94a3b8;
}

.blog-card .icon-clock {
    stroke: #94a3b8;
}

/* 6. 文章标题 */
.blog-card .article-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 12px 0 !important;
}

.blog-card .article-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card .article-title a:hover {
    color: var(--ast-global-color-6);
}

/* 7. 文章摘要 */
.blog-card .article-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 严格限制3行，超出省略号，防排版错乱 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 8. 卡片底部联动区（动效线 + 作者 + 日期） */
.blog-card .card-footer {
    margin-top: auto; /* 强行推至卡片最底部 */
    position: relative;
    padding-top: 20px;
}

/* 经典动画边框线 */
.blog-card .animated-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #f0f2f5; /* 默认状态的分割线 */
}

.blog-card .animated-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--ast-global-color-6);
    transition: width 0.3s ease;
}

/* 悬停时，分割线向右伸展变橙色 */
.blog-card:hover .animated-line {
    width: 100%;
}

/* 隐藏原生的无用小箭头，保持结构干净 */
.blog-card .animated-arrow {
    display: none;
}

/* 9. 作者信息两栏布局 */
.blog-card .card-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    float: left;
    width: calc(100% - 100px); /* 给右侧日期留出足够空间 */
}

.blog-card .card-author-avatar,
.blog-card .card-author-info img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    object-fit: cover;
    background-color: #f3f4f6;
}

.blog-card .card-author-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    overflow: hidden;
}

.blog-card .card-author-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.blog-card .card-author-name:hover {
    color: var(--ast-global-color-6);
}

/* 完美还原 image_d68ec1.png 的职位小字样式 */
.blog-card .card-author-job-title {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 确保职位太长时不会撑开行高 */
}

.blog-card .card-author-job-title a {
    color: #64748b;
    text-decoration: underline;
}

/* 10. 右下角发布日期 */
.blog-card .post-meta-container {
    float: right;
    display: flex;
    align-items: center;
    height: 42px; /* 与头像高度对齐，实现视觉居中 */
}

.blog-card .post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

.blog-card .icon-calendar {
    width: 16px;
    height: 16px;
}
.blog-card .icon-calendar path {
    stroke: #94a3b8;
}

/* 清理浮动 */
.blog-card .card-footer::after {
    content: "";
    display: table;
    clear: both;
}

/* ===========================
   Related Content Section
   =========================== */
.related-content-section {
    margin-top: 150px;
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}
.related-content-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 60px 0;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding:60px;
}
.related-posts-grid > div:not(.blog-card-wrapper){
    display: none;
}
@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        padding:20px;
    }
}

@media (max-width: 576px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        padding:10px;
    }
}

/* ===========================
   Single Post Header Meta
   =========================== */
.single-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    /* border-bottom: 1px solid #e5e7eb; */
}

.single-post-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.single-post-avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.single-post-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.single-post-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.single-post-author-name:hover {
    color: var(--ast-global-color-6);
}

.single-post-author-job {
    font-size: 13px;
    color: #64748b;
}

.single-post-meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.single-post-date,
.single-post-read-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}

.single-post-date .icon-calendar,
.single-post-read-time .icon-clock {
    stroke: #64748b;
}


@media (max-width: 576px) {
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .single-post-meta-right {
        padding-left: 66px;
    }
}
.ast-breadcrumbs ul.trail-items > li.trail-item *{
    text-transform: capitalize;
}
.ast-breadcrumbs ul.trail-items > li.trail-item::after{
	padding:0 10px!important;
}