/* 款式 1 · 玻璃圆球（文章正文标题）。 */
body.zibll-child-article-beautify .wp-posts-content {
    --zibll-child-article-h1-color: var(--theme-color, #479cf6);
    --zibll-child-article-h2-color: #54b977;
    --zibll-child-article-h3-color: #f2a24b;
}

body.zibll-child-article-beautify .wp-posts-content h1,
body.zibll-child-article-beautify .wp-posts-content h2,
body.zibll-child-article-beautify .wp-posts-content h3 {
    position: relative;
    isolation: isolate;
}

/* 主球。 */
body.zibll-child-article-beautify .wp-posts-content h1::before,
body.zibll-child-article-beautify .wp-posts-content h2::before,
body.zibll-child-article-beautify .wp-posts-content h3::before {
    position: absolute;
    top: -5px;
    left: -10px;
    right: auto;
    width: 35px !important;
    height: 35px !important;
    margin: 0 !important;
    border-radius: 50%;
    background: linear-gradient(var(--zibll-child-article-h1-color), transparent) !important;
    content: '';
    opacity: .58;
    pointer-events: none;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
    z-index: 1;
}

/* 点缀圆点。 */
body.zibll-child-article-beautify .wp-posts-content h1::after,
body.zibll-child-article-beautify .wp-posts-content h2::after,
body.zibll-child-article-beautify .wp-posts-content h3::after {
    position: absolute;
    left: 25px;
    width: 13px;
    height: 13px;
    margin: 0 !important;
    border-radius: 50%;
    background: linear-gradient(var(--zibll-child-article-h1-color), transparent);
    content: '';
    opacity: .58;
    pointer-events: none;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

/* H1：主题色，35px 主球 + 13px 圆点。 */
body.zibll-child-article-beautify .wp-posts-content h1::after {
    top: -13px;
}

/* H2：绿色，30px 主球 + 10px 圆点。 */
body.zibll-child-article-beautify .wp-posts-content h2::before {
    width: 30px !important;
    height: 30px !important;
    background: linear-gradient(var(--zibll-child-article-h2-color), transparent) !important;
}

body.zibll-child-article-beautify .wp-posts-content h2::after {
    top: -15px;
    left: 15px;
    width: 10px;
    height: 10px;
    background: linear-gradient(var(--zibll-child-article-h2-color), transparent);
}

/* H3：橙色，25px 主球 + 8px 圆点。 */
body.zibll-child-article-beautify .wp-posts-content h3::before {
    width: 25px !important;
    height: 25px !important;
    background: linear-gradient(var(--zibll-child-article-h3-color), transparent) !important;
}

body.zibll-child-article-beautify .wp-posts-content h3::after {
    top: -17px;
    left: 12px;
    width: 8px;
    height: 8px;
    background: linear-gradient(var(--zibll-child-article-h3-color), transparent);
}

/* 居中、右对齐标题仍以标题起点为基准显示圆球。 */
body.zibll-child-article-beautify .wp-posts-content h1.has-text-align-center::before,
body.zibll-child-article-beautify .wp-posts-content h2.has-text-align-center::before,
body.zibll-child-article-beautify .wp-posts-content h3.has-text-align-center::before,
body.zibll-child-article-beautify .wp-posts-content h1.has-text-align-right::before,
body.zibll-child-article-beautify .wp-posts-content h2.has-text-align-right::before,
body.zibll-child-article-beautify .wp-posts-content h3.has-text-align-right::before,
body.zibll-child-article-beautify .wp-posts-content h1.has-text-align-center::after,
body.zibll-child-article-beautify .wp-posts-content h2.has-text-align-center::after,
body.zibll-child-article-beautify .wp-posts-content h3.has-text-align-center::after,
body.zibll-child-article-beautify .wp-posts-content h1.has-text-align-right::after,
body.zibll-child-article-beautify .wp-posts-content h2.has-text-align-right::after,
body.zibll-child-article-beautify .wp-posts-content h3.has-text-align-right::after {
    right: auto !important;
    margin: 0 !important;
}

/* 悬停放大。 */
body.zibll-child-article-beautify .wp-posts-content h1:hover::before,
body.zibll-child-article-beautify .wp-posts-content h1:hover::after,
body.zibll-child-article-beautify .wp-posts-content h2:hover::before,
body.zibll-child-article-beautify .wp-posts-content h2:hover::after,
body.zibll-child-article-beautify .wp-posts-content h3:hover::before,
body.zibll-child-article-beautify .wp-posts-content h3:hover::after {
    transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
    body.zibll-child-article-beautify .wp-posts-content h1::before,
    body.zibll-child-article-beautify .wp-posts-content h1::after,
    body.zibll-child-article-beautify .wp-posts-content h2::before,
    body.zibll-child-article-beautify .wp-posts-content h2::after,
    body.zibll-child-article-beautify .wp-posts-content h3::before,
    body.zibll-child-article-beautify .wp-posts-content h3::after {
        transition: none;
    }
}
