/*
Theme Name: WP LJH
Author: Chen ZT
Description: A custom theme by a front-end developer.
Version: 1.0
Text Domain: my-block-theme
*/
:root {
    --color-theme: var(--wp--preset--color--theme);
    --color-main-background: var(--wp--preset--color--main-background);
    --color-sub-background: var(--wp--preset--color--sub-background);
    --color-main-border: var(--wp--preset--color--main-border);
    --color-heading: var(--wp--preset--color--heading);
    --color-subheading: var(--wp--preset--color--subheading);
    --color-main-text: var(--wp--preset--color--main-text);
    --color-balck-text: var(--wp--preset--color--balck-text);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
}
@media screen and (max-width: 1500px) {
    html {
        font-size: 14px;
    }
}
@media screen and (max-width: 1200px) {
    html {
        font-size: 13px;
    }
}
@media screen and (max-width: 1000px) {
    html {
        font-size: 12px;
    }
}
@media screen and (max-width: 768px) {
    html {
        font-size: 11px;
    }
}

svg {
    display: block;
    width: 100%;
    height: auto;
}

.lock-scroll{
    overflow: hidden;
}

/* 响应式图片 */
picture.responsive-image-block {
    display: block;
    width: 100%;
    height: auto;
}
picture.responsive-image-block img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 区块标题 */
.block-header-block {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    padding: var(--block-padding);
    width: var(--block-width, 100%);
}
.block-header-block .main-title {
    font-size: 2rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--color-heading);
}
.block-header-block .sub-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--color-theme);
}
.block-header-block .sub-title::before {
    content: '\25cf';
    font-size: 0.5rem;
}
@media screen and (max-width:768px) {
    .block-header-block {
        padding: var(--block-padding-mb);
        width: var(--block-width-mb, 100%);
    }
    .block-header-block .main-title {
        font-size: 2.4rem;
    }
    .block-header-block .sub-title {
        font-size: 1.4rem;
    }
    .block-header-block .sub-title::before {
        font-size: 1rem;
    }
}