/* ============ single.html 美化增强 ============ */

/* 文章容器 */
.blogbanner-con .blogsection-box {
    background: var(--secondary--color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* 小标题（分类） */
.blogbanner-con .blogsection-box .small-heading {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--accent--color) 0%, #00a8ff 100%);
    color: var(--secondary--color);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* 主标题 */
.blogbanner-con .blogsection-box h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary--color);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}
.blogbanner-con .blogsection-box:hover h3 {
    color: var(--accent--color);
}

/* 时间/浏览量 */
.blogbanner-con .blogsection-box .timing {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.blogbanner-con .blogsection-box .timing span {
    font-size: 13px;
    color: var(--text--color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.blogbanner-con .blogsection-box .timing span:first-child::before {
    content: '\f073';
    font-family: 'Font Awesome 6 free';
    font-weight: 900;
    color: var(--accent--color);
    margin-right: 4px;
}
.blogbanner-con .blogsection-box .timing span:last-child::before {
    content: '\f06e';
    font-family: 'Font Awesome 6 free';
    font-weight: 900;
    color: var(--accent--color);
    margin-right: 4px;
}

/* 主图 */
.blogbanner-con .blogsection-box .blog-image {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}
.blogbanner-con .blogsection-box .blog-image img {
    width: 100%;
    transition: transform 0.6s ease;
}
.blogbanner-con .blogsection-box .blog-image:hover img {
    transform: scale(1.03);
}

/* 简介 */
.singleblogbanner-con .blog-content-box {
    background: linear-gradient(135deg, rgb(0 123 255 / 4%) 0%, rgb(0 168 255 / 4%) 100%);
    border-left: 4px solid var(--accent--color);
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin-bottom: 30px;
    box-shadow: none;
}
.singleblogbanner-con .blog-content-box .text4 {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text--color);
    margin-bottom: 0;
}

/* 描述区 */
.blogbanner-con .blogsection-box > .describe,
.blogbanner-con .blogsection-box > p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text--color);
}
.blogbanner-con .blogsection-box strong {
    color: var(--primary--color);
}
.blogbanner-con .blogsection-box img {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}

/* 标签 */
.singleblogbanner-con .singleblog-button ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.singleblogbanner-con .blogsection-box li a {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent--color);
    background: rgb(0 123 255 / 8%);
    border: 1px solid rgb(0 123 255 / 15%);
    transition: all 0.3s ease;
}
.singleblogbanner-con .blogsection-box li a:hover {
    background: var(--accent--color);
    color: var(--secondary--color);
    border-color: var(--accent--color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

/* 关联植物卡片 */
.singleblogbanner-con .review_outer {
    background: linear-gradient(135deg, #f8fbff 0%, var(--secondary--color) 100%);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid rgb(0 123 255 / 12%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
}
.singleblogbanner-con .review_outer:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.12);
    border-color: var(--accent--color);
}
.singleblogbanner-con .review-content .single-blog-personimage img {
    width: 100px !important;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.singleblogbanner-con .review-content .name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary--color);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}
.singleblogbanner-con .review_outer:hover .name {
    color: var(--accent--color);
}
.singleblogbanner-con .review-content .review {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text--color);
}

/* 上下页导航 */
.previous {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgb(0 0 0 / 8%);
}
.singleblogbanner-con .blogsection-box .previous a {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent--color);
    background: rgb(0 123 255 / 8%);
    border: 1px solid rgb(0 123 255 / 15%);
    transition: all 0.3s ease;
}
.singleblogbanner-con .blogsection-box .previous a:hover {
    background: var(--accent--color);
    color: var(--secondary--color);
    border-color: var(--accent--color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

/* 右侧推荐栏 */
.single-sidebar-inner {
    position: sticky;
    top: 100px;
}
.side-card {
    background: #fff;
    border: 1px solid #eef1ee;
    border-radius: 14px;
    padding: 18px 18px 14px;
    margin-bottom: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}
.side-card-title {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    color: #1b2b1b;
    margin: 0 0 14px;
    padding-left: 12px;
    line-height: 1.3;
}
.side-card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: #22b14c;
}
.side-list {
    counter-reset: side-rank;
    padding: 0;
    margin: 0;
}
.side-list li {
    counter-increment: side-rank;
    margin-bottom: 8px;
}
.side-list li:last-child {
    margin-bottom: 0;
}
.side-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s ease;
}
.side-list a:hover {
    background: #f5f9f5;
}
.side-list li a::before {
    content: counter(side-rank);
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #9aa79a;
    background: #f1f4f1;
    border-radius: 5px;
}
.side-list li:nth-child(1) a::before {
    color: #fff;
    background: #ff6b35;
}
.side-list li:nth-child(2) a::before {
    color: #fff;
    background: #ff9f43;
}
.side-list li:nth-child(3) a::before {
    color: #fff;
    background: #ffc048;
}
.side-list figure {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f4f1;
}
.side-list img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.side-list a:hover img {
    transform: scale(1.06);
}
.side-list span {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    color: #3d4a3d;
    transition: color 0.25s ease;
}
.side-list a:hover span {
    color: #0f9d58;
}
.side-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #22b14c 0%, #0f9d58 100%);
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 157, 88, 0.22);
}
.side-cta::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}
.side-cta h4 {
    position: relative;
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
}
.side-cta p {
    position: relative;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 14px;
}
.side-cta-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    color: #0f9d58;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 12px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.side-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
.side-cta-link {
    position: relative;
    color: #fff;
    font-size: 12px;
    text-decoration: underline;
}
@media (max-width: 991px) {
    .single-sidebar-inner {
        position: static;
        margin-top: 24px;
    }
}

/* 案例同款绿植 */
.related-plant {
    margin: 28px 0 32px;
}
.related-plant-label {
    display: inline-block;
    font-size: 12px;
    color: #0f9d58;
    background: #eaf7ee;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 12px;
}
.related-plant-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: #f8faf8;
    border: 1px solid #e6efe6;
    border-radius: 14px;
    text-decoration: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.related-plant-card:hover {
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15, 157, 88, 0.12);
    transform: translateY(-2px);
}
.related-plant-figure {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef3ee;
}
.related-plant-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.related-plant-detail {
    flex: 1;
    min-width: 0;
}
.related-plant-name {
    font-size: 17px;
    font-weight: 700;
    color: #1b2b1b;
    margin: 0 0 6px;
    line-height: 1.4;
}
.related-plant-intro {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7a6b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-plant-more {
    font-size: 12px;
    font-weight: 600;
    color: #0f9d58;
}
@media (max-width: 575px) {
    .related-plant-card {
        gap: 12px;
        padding: 12px;
        align-items: flex-start;
    }
    .related-plant-figure {
        flex: 0 0 76px;
        width: 76px;
        height: 76px;
    }
    .related-plant-name {
        font-size: 15px;
    }
}
