iframe {
    width: 100%;
    min-height: 500px;
    border: none;
}
.blogsection-box img {
    max-width: 100%;
}
.blogsection-box .text2 {
    font-size: 16px;
    line-height: 28px;
    color: #333;
    background: #fafafa;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #007bff;
}
@media (max-width: 991px) {
    .blogsection-box .text2 {
        padding: 20px;
    }
}
@media (max-width: 576px) {
    .blogsection-box .text2 {
        padding: 16px;
    }
}
.blogsection-box .text2 h1,
.blogsection-box .text2 h2,
.blogsection-box .text2 h3,
.blogsection-box .text2 h4,
.blogsection-box .text2 h5,
.blogsection-box .text2 h6 {
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: #1a1a1a;
}
.blogsection-box .text2 h1 { font-size: 22px; }
.blogsection-box .text2 h2 { font-size: 20px; }
.blogsection-box .text2 h3 { font-size: 18px; }
.blogsection-box .text2 h4,
.blogsection-box .text2 h5,
.blogsection-box .text2 h6 { font-size: 16px; }
.blogsection-box .text2 p {
    font-size: 16px;
    line-height: 28px;
    margin: 12px 0;
    color: #444;
}
.blogsection-box .text2 span,
.blogsection-box .text2 div {
    font-size: 16px;
    line-height: 28px;
    color: #444;
}
.blogsection-box .text2 [style*="font-size"] {
    font-size: inherit !important;
}
.blogsection-box .text2 [style*="line-height"] {
    line-height: inherit !important;
}
.blogsection-box .text2 ul,
.blogsection-box .text2 ol {
    padding-left: 24px;
    margin: 12px 0;
}
.blogsection-box .text2 ul {
    list-style-type: disc;
}
.blogsection-box .text2 ol {
    list-style-type: decimal;
}
.blogsection-box .text2 li {
    font-size: 16px;
    line-height: 28px;
    color: #444;
    margin: 4px 0;
}
/* 富文本图片：宽度统一铺满内容区，高度按原比例，不再用 max-height 压制（否则宽高同时变窄，页内忽大忽小） */
.blogsection-box .text2 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    background: #f5f5f5;
}
.blogsection-box .text2 strong,
.blogsection-box .text2 b {
    font-weight: 600;
    color: #1a1a1a;
}
.blogsection-box .text2 a {
    color: #007bff;
    text-decoration: none;
}
.blogsection-box .text2 a:hover {
    text-decoration: underline;
}
.blogsection-box .text2 blockquote {
    border-left: 4px solid #007bff;
    padding-left: 16px;
    margin: 16px 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}
.custom-gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 20px;
}
.custom-gallery-prev,
.custom-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.custom-gallery-wrapper:hover .custom-gallery-prev,
.custom-gallery-wrapper:hover .custom-gallery-next {
    opacity: 1;
    pointer-events: auto;
}
.custom-gallery-prev:hover,
.custom-gallery-next:hover {
    background: rgba(0, 123, 255, 0.9);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.custom-gallery-prev {
    left: 0;
}
.custom-gallery-next {
    right: 0;
}
.custom-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 44px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.custom-gallery::-webkit-scrollbar {
    height: 6px;
}
.custom-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.custom-gallery::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.custom-gallery::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
.custom-gallery-item:hover {
    transform: scale(1.02);
}
.custom-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
.custom-lightbox.active {
    display: flex;
}
.custom-lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
.custom-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
    user-select: none;
}
.custom-lightbox-close:hover {
    transform: rotate(90deg);
}
.custom-gallery-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.custom-gallery-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* ========== 面包屑导航 ========== */
.breadcrumb-nav {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-nav a:hover {
    color: #007bff;
}
.breadcrumb-sep {
    margin: 0 8px;
    color: #bbb;
}
.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* ========== 封面图优化 ========== */
.singleblogbanner-con .blogsection-box .blog-image {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.singleblogbanner-con .blogsection-box .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ========== 富文本图片优化 ========== */
/* 说明：宽度统一由上方 .blogsection-box .text2 img 控制，此处只补充浮动图例外 */
.blogsection-box .text2 img[style*="float"],
.blogsection-box .text2 img[style*="left"],
.blogsection-box .text2 img[style*="right"] {
    width: auto;
    max-width: 45%;
    margin: 0 16px 16px;
}

/* ========== 相册统一比例 ==========
   选择器对齐实际 HTML 结构：.custom-gallery-section > .custom-gallery-wrapper > .custom-gallery
   统一 1:1 方形卡片 + object-fit:cover，横拍竖拍裁切均衡，避免原图尺寸差异导致卡片大小不一 */
.custom-gallery-section .custom-gallery-item {
    flex: 0 0 auto;
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    cursor: zoom-in;
    scroll-snap-align: start;
    transition: transform 0.2s;
    background: #f5f5f5;
    display: block;
}
@media (max-width: 576px) {
    .custom-gallery-section .custom-gallery-item {
        width: 160px;
        height: 160px;
    }
}

/* ========== 植物缩略图统一比例 ========== */
.singleblogbanner-con .review_content_box .single-blog-personimage img {
    width: 60px !important;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
}
@media only screen and (max-width: 575px) {
    .singleblogbanner-con .review_content_box .single-blog-personimage img {
        width: 50px !important;
        height: 50px;
    }
}

/* ========== 响应式封面图 ========== */
@media (max-width: 991px) {
    .singleblogbanner-con .blogsection-box .blog-image {
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }
}
@media (max-width: 576px) {
    .singleblogbanner-con .blogsection-box .blog-image {
        aspect-ratio: 1 / 1;
    }
    .breadcrumb-nav {
        font-size: 12px;
        margin-bottom: 16px;
    }
}
