html{
    scroll-behavior: smooth;
}
.single-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 50px auto;
    padding: 0 20px;
}
.single-wrapper a{
    text-decoration: none;
    color: inherit;
}

.single-right-block{
    margin-bottom: 20px;
}

/* 左侧文章内容 */
.single-left,
.single-right-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    padding: 25px;
}

.single-left .single-date{
    display: flex;
    align-items: baseline;
    cursor: context-menu;
}
.single-left .single-date svg{
    width: 14px;
    height: 14px;
    margin-right: 5px;
}


.single-title {
    font-size: 46px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 20px;
    line-height: 3.5rem;
    text-transform: capitalize;
}

.single-title,
.single-content h2,
.single-content h3{
    /*font-family: Baloo2, var(--backup-family);*/
}


.single-meta {
    color: #141414;
    font-size: 15px;
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
}

.single-content{
    color: #5a5a5a;
    font-size: 1rem;
}
.single-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 25px 0;
}
.single-content h2{
    scroll-margin-top: var(--header-height);
    color: #141414;
    font-size: 24px;
}
.single-content h3{
    font-size: 18px;
}
.single-content p,
.single-content h2,
.single-content li{
    line-height: 1.5rem;
    margin: 1.3rem 0;
}
.single-content ul,
.single-content ol{
    margin-left: 3rem;
}
.single-content a{
    color: #3476bd;
}
.single-content ul>li{
    list-style: disc;
}
.single-content ol>li{
    list-style: auto;;
}

.single-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    font-size: 16px;
}


.single-post-nav a {
    color: #78A75A;
    text-decoration: none;
}


.single-post-nav a:hover {
    text-decoration: underline;
}

.single-right-block.toc-sticky{
    position: sticky;
    top: var(--header-height);
    padding: unset;
}
.single-right-block.toc-sticky .right-title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    color: #ffffff;
    background-color: #a1a1a1;
    border-radius: 12px;
    margin-bottom: unset;
    padding: 10px 25px;
    transition: all .2s ease;
    cursor: pointer;
}
.single-right-block.toc-sticky .right-title.active{
    padding: 25px;
    border-bottom-left-radius: unset;
    border-bottom-right-radius: unset;
}
.single-right-block.toc-sticky .right-title svg{
    width: 16px;
    height: 16px;
    fill: #ffffff;
}
.single-right-block.toc-sticky .toc-list{
    padding: 0 25px;
    background-color: #f1f1f1;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    max-height: 0;
    transition: all .2s ease;
    overflow-y: hidden;
}
.single-right-block.toc-sticky .toc-list.active{
    max-height: 800px;
    padding: 10px 25px 25px 25px;
}
.single-right-block.toc-sticky .toc-list ul{
    padding-left: 20px;
}
.single-right-block.toc-sticky .toc-list li{
    list-style: auto;
    color: #606060;
}
.single-right-block.toc-sticky .toc-list a{
    font-size: 14px;
    color: #606060;
    line-height: 2rem;
}
.single-right-block.about-me{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.single-right-block.about-me img{
    border-radius: 10px;
    width: 50%;
    object-fit: contain;
}
.single-right-block.about-me p{
    margin: 20px;
    text-align: center;
    color: #141414;
}
.single-right-block .quote-btn .btn-text{
    display: inline-block;
    padding: 15px 20px;
    font-size: 16px;
    text-transform: capitalize;
    font-weight: 600;
    background-color: #f6985b;
    border-radius: 30px;
    color: #fff;
}
.single-right-block .quote-btn .btn-text:hover{
    background-color: #6da4b0;
}
.single-right-block.company-sidebar-card {
    padding: 20px;
    border: 1px solid #eee;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    /*font-family: sans-serif;*/
}

/* Logo 样式 */
.single-right-block .company-sidebar-logo {
    text-align: center;
    margin-bottom: 15px;
}

.single-right-block .company-sidebar-logo img {
    max-width: 100px; /* 根据你的Logo比例调整高度或宽度 */
    height: auto;
    display: inline-block;
}

/* 公司名样式（加粗代替H3） */
.single-right-block .company-sidebar-name {
    display: block;
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.single-right-block.company-sidebar-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.single-right-block.company-sidebar-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    margin-top: 0;
}

.single-right-block.company-sidebar-card ul li {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
    line-height: 1.4;
}

/* 列表前缀图标 */
.single-right-block.company-sidebar-card ul li::before {
    content: "🐾";
    position: absolute;
    left: 0;
    font-size: 12px;
    color: #ff914d;
}

/* 按钮样式 */
.single-right-block .company-sidebar-btn {
    display: block;
    text-align: center;
    background-color: #ff914d;
    color: #fff !important;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.single-right-block .company-sidebar-btn:hover {
    background-color: #e67e22;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* 右侧区块标题 */
.right-title {
    font-size: 30px;
    margin-bottom: 15px;
    color: #333;
}


/* 最新博客区域 */
.latest-post-item {
    /*
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
     */
}
.latest-post-item img {
    width: 70px;
    object-fit: contain;
}
.latest-post-item a{
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.2rem;
    text-decoration: none;
    color: #151515;
}
.latest-post-item a:hover{
    color: #f6985b;
}
.latest-post-item a span{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:4;
    overflow:hidden;
    text-overflow:ellipsis;
    text-transform: capitalize;
}

.single-left .related-posts-container{
    margin: 50px 0 0 0;
}
.single-left .related-posts-container .related-posts-title{
    margin-bottom: 20px;
}
.single-left .related-posts-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.single-left .related-posts-list li {
    width: 50%; /* 核心：让每个标题占一半宽度，实现双列 */
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    box-sizing: border-box;
}

/* 模拟截图中的蓝色列表小点 */
.single-left .related-posts-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
}

.single-left .related-posts-list li a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    text-transform: capitalize;
}

.single-left .related-posts-list li a:hover {
    text-decoration: underline;
}

.single-right-block.category-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.single-right-block.category-list li {
    line-height: 2;
}

/* 子類目縮排 - 核心部分 */
.single-right-block.category-list .children {
    padding-left: 20px; /* 每多一層縮排 20px */
    margin-top: 5px;
}

/* 可選：美化樣式 */
.single-right-block.category-list a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.single-right-block.category-list a:hover {
    color: #0073aa;
}

/* 顯示文章數量的數字樣式 */
.single-right-block.category-list .count {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}

@media (max-width: 800px) {
    .single-wrapper{
        display: flex;
        flex-direction: column;
    }
    .single-right-block.toc-sticky{
        position: unset;
    }
}
@media (max-width: 500px) {
    .single-left .related-posts-list li{
        width: unset;
    }
}