:root {
    --zct-core-blue: #0876d8;
    --zct-core-dark: #071d36;
    --zct-core-text: #17202c;
    --zct-core-muted: #687586;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--zct-core-text);
    -webkit-font-smoothing: antialiased;
}

body > footer.site-footer:not(.zct-site-footer) {
    display: none;
}

body.zct-core-sticky:not(.elementor-editor-active) header,
body.zct-core-sticky:not(.elementor-editor-active) .site-header {
    position: sticky;
    z-index: 999;
    top: 0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 0 rgba(16, 41, 70, .09), 0 8px 24px rgba(20, 55, 90, .045);
    backdrop-filter: blur(14px);
}

.site-header .site-navigation-toggle-holder,
.site-header .site-navigation-toggle {
    position: relative;
    z-index: 1002;
    pointer-events: auto;
}

.site-header .site-navigation-dropdown {
    z-index: 1001;
}

.site-header .site-navigation-dropdown[data-zct-open="1"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    max-height: calc(100vh - 68px) !important;
    transform: scaleY(1) !important;
}

/* 移动端不再借用 Hello Elementor 的下拉层，避免主题脚本和核心脚本互相覆盖。 */
.zct-mobile-menu {
    display: none;
}

/* Privacy policy */
.zct-policy {
    width: min(100% - 40px, 900px);
    margin: 72px auto 96px;
    color: #243447;
    line-height: 1.85;
}

.zct-policy-hero {
    margin-bottom: 42px;
    padding: 42px 46px;
    border: 1px solid #dbe8f5;
    border-radius: 24px;
    background: linear-gradient(135deg, #f7fbff, #eaf5ff);
}

.zct-policy-hero p {
    margin: 0 0 8px;
    color: #0874d1;
    font-size: 14px;
    font-weight: 700;
}

.zct-policy-hero h1 {
    margin: 0 0 12px;
    color: #142b45;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.16;
}

.zct-policy-hero span {
    color: #6c7e91;
    font-size: 14px;
}

.zct-policy section {
    margin: 0 0 18px;
    padding: 24px 28px;
    border: 1px solid #e3ebf3;
    border-radius: 16px;
    background: #fff;
}

.zct-policy h2 {
    margin: 0 0 10px;
    color: #152b44;
    font-size: 21px;
}

.zct-policy p {
    margin: 0 0 12px;
}

.zct-policy p:last-child {
    margin-bottom: 0;
}

.zct-policy a {
    color: #0874d1;
    font-weight: 700;
}

@media (max-width: 992px) {
    .site-header .site-navigation-dropdown {
        display: none !important;
    }

    .zct-mobile-menu.zct-mobile-menu-open {
        position: fixed;
        z-index: 10020;
        top: var(--zct-mobile-menu-top, 68px);
        right: 0;
        left: 0;
        display: block;
        max-height: calc(100dvh - var(--zct-mobile-menu-top, 68px));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        border-top: 1px solid #dfe8f1;
        box-shadow: 0 16px 30px rgba(14, 40, 70, .18);
        -webkit-overflow-scrolling: touch;
    }

    .zct-mobile-menu ul,
    .zct-mobile-menu ul.menu {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .zct-mobile-menu li {
        display: block;
        margin: 0;
    }

    .zct-mobile-menu li a {
        display: flex;
        align-items: center;
        min-height: 56px;
        padding: 15px 22px;
        color: #172033;
        border-bottom: 1px solid #edf1f5;
        font-size: 16px;
        text-decoration: none;
    }

    .zct-mobile-menu li.current-menu-item a,
    .zct-mobile-menu li.current_page_item a {
        color: #0874d1;
        background: #eef7ff;
        font-weight: 700;
    }

    .zct-mobile-menu li:last-child a {
        border-bottom: 0;
    }
}

/* Hello Elementor 窄窗口导航：缩短展开高度，避免吸顶菜单覆盖主体内容 */
@media (min-width: 601px) and (max-width: 1100px) {
    .site-header .site-navigation-dropdown {
        max-height: calc(100vh - 78px);
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 14px 30px rgba(16, 43, 72, .13);
    }

    .site-header .site-navigation-dropdown ul,
    .site-header .site-navigation-dropdown ul.menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
    }

    .site-header .site-navigation-dropdown ul li,
    .site-header .site-navigation-dropdown ul.menu li {
        min-width: 0;
        border-right: 1px solid #e4eaf0;
    }

    .site-header .site-navigation-dropdown ul li a,
    .site-header .site-navigation-dropdown ul.menu li a {
        box-sizing: border-box;
        min-height: 54px;
        padding: 15px 20px;
    }
}

.zct-quick-contact {
    position: fixed;
    z-index: 1100;
    right: 22px;
    bottom: 24px;
}

.zct-contact-toggle {
    width: 54px;
    height: 54px;
    padding: 0;
    color: #fff;
    font-weight: 700;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(145deg, #0876d8, #1594eb);
    box-shadow: 0 12px 28px rgba(8, 118, 216, .3);
}

.zct-contact-panel {
    position: absolute;
    right: 0;
    bottom: 66px;
    display: none;
    box-sizing: border-box;
    width: 270px;
    padding: 20px;
    border: 1px solid #dbe6ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 45, 75, .18);
}

.zct-quick-contact.is-open .zct-contact-panel {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.zct-contact-panel strong {
    margin-bottom: 3px;
    font-size: 18px;
}

.zct-contact-panel a {
    color: #40536a;
    text-decoration: none;
}

.zct-contact-panel a:hover {
    color: var(--zct-core-blue);
}

.zct-contact-panel img {
    width: 150px;
    height: 150px;
    margin: 8px auto 0;
    object-fit: contain;
}

.zct-contact-panel span {
    color: var(--zct-core-muted);
    font-size: 13px;
    text-align: center;
}

.zct-site-footer {
    color: rgba(255, 255, 255, .78);
    background: var(--zct-core-dark);
}

.zct-footer-inner {
    display: grid;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0 48px;
    grid-template-columns: 1.42fr .76fr 1fr 1.28fr;
    gap: 72px;
}

.zct-site-footer strong {
    display: block;
    margin-bottom: 14px;
    color: #fff;
    font-size: 17px;
}

.zct-footer-brand strong {
    font-size: 26px;
}

.zct-footer-brand b {
    display: block;
    margin: 22px 0 14px;
    color: #fff;
    font-size: 17px;
}

.zct-footer-brand p {
    max-width: 330px;
    color: rgba(255, 255, 255, .62);
    line-height: 1.9;
}

.zct-site-footer p {
    margin: 0 0 12px;
}

.zct-footer-links,
.zct-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.zct-footer-contact {
    gap: 6px;
}

.zct-contact-label {
    margin-top: 8px;
    color: rgba(255, 255, 255, .48);
    font-size: 13px;
}

.zct-contact-value {
    color: #fff !important;
    font-size: 15px;
    line-height: 1.7;
}

.zct-footer-more {
    margin-top: 12px;
    color: #35b2ff !important;
    font-size: 14px;
    font-weight: 600;
}

.zct-site-footer a {
    color: rgba(255, 255, 255, .76);
    text-decoration: none;
}

.zct-site-footer a:hover {
    color: #fff;
}

.zct-footer-bottom {
    display: flex;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, .48);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.zct-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: flex-end;
}

.zct-footer-legal a {
    color: rgba(255, 255, 255, .55);
}

.elementor-section,
.e-con {
    --zct-motion-distance: 18px;
}

body.zct-motion-ready .elementor-section,
body.zct-motion-ready .e-con {
    transition: opacity .6s ease, transform .6s ease;
}

body.zct-motion-ready .zct-reveal-pending {
    opacity: 0;
    transform: translateY(var(--zct-motion-distance));
}

@media (max-width: 782px) {
    .zct-footer-inner {
        width: min(100% - 30px, 920px);
        padding: 42px 0 36px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .zct-footer-bottom {
        width: min(100% - 30px, 920px);
        flex-direction: column;
    }

    .zct-quick-contact {
        right: 14px;
        bottom: 16px;
    }
}

@media (max-width: 600px) {
    .site-header {
        position: relative;
    }

    .site-header .site-navigation-dropdown {
        position: absolute !important;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        border-top: 1px solid #e6edf5;
        box-shadow: 0 16px 30px rgba(14, 40, 70, .16);
        -webkit-overflow-scrolling: touch;
    }

    .site-header .site-navigation-dropdown ul,
    .site-header .site-navigation-dropdown ul.menu {
        display: block;
    }

    .site-header .site-navigation-dropdown ul li a,
    .site-header .site-navigation-dropdown ul.menu li a {
        display: flex;
        align-items: center;
        min-height: 50px;
        padding-top: 13px;
        padding-bottom: 13px;
        border-bottom: 1px solid #edf1f5;
    }

    .site-header .site-navigation-dropdown ul li:last-child a,
    .site-header .site-navigation-dropdown ul.menu li:last-child a {
        border-bottom: 0;
    }
}

/* Consolidated quick contact */
.zcqc,
.zcqc * {
    box-sizing: border-box;
}

.zcqc {
    position: fixed;
    z-index: 9990;
    right: 18px;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-50%);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.zcqc-item,
.zcqc-top {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #dfe7ee;
    border-radius: 15px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 9px 28px rgba(16, 52, 82, .10);
    color: #24313d;
    text-decoration: none;
    cursor: pointer;
    transition: width .25s ease, transform .25s ease, background .25s ease;
}

button.zcqc-item,
button.zcqc-top,
button.zcqc-item:hover,
button.zcqc-item:focus,
button.zcqc-item:active,
button.zcqc-top:focus,
button.zcqc-top:active {
    border-color: #dfe7ee !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #24313d !important;
    outline: none !important;
}

.zcqc-item span {
    font-size: 13px;
    font-weight: 700;
}

.zcqc-item b {
    display: none;
    margin-left: 10px;
    white-space: nowrap;
    color: #0874d1;
    font-size: 12px;
}

.zcqc-item:hover {
    width: 145px;
    justify-content: flex-start;
    padding: 0 16px;
    transform: translateX(-3px);
}

.zcqc-item:hover b {
    display: inline;
}

.zcqc-wechat {
    font-family: inherit;
}

.zcqc-top {
    visibility: hidden;
    opacity: 0;
    font-size: 20px;
    color: #0874d1;
}

.zcqc-scrolled .zcqc-top {
    visibility: visible;
    opacity: 1;
}

.zcqc-top:hover {
    transform: translateY(-3px);
    background: #0874d1 !important;
    color: #fff !important;
}

.zcqc-qr {
    position: absolute;
    right: 68px;
    top: 92px;
    display: none;
    width: 220px;
    height: 220px;
    padding: 12px;
    border: 1px solid #dfe7ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(16, 52, 82, .18);
}

.zcqc-qr img {
    display: block;
    width: 196px;
    height: 196px;
    object-fit: contain;
}

.zcqc-open .zcqc-qr {
    display: block;
    animation: zcqcIn .2s ease;
}

@keyframes zcqcIn {
    from {
        opacity: 0;
        transform: translateX(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 62px;
    }

    .zcqc {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        transform: none;
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .95);
        border-top: 1px solid #e2e9ef;
        backdrop-filter: blur(14px);
    }

    .zcqc-item,
    .zcqc-top {
        width: auto;
        height: 44px;
        border: 0;
        border-radius: 10px;
        box-shadow: none;
        background: transparent;
    }

    button.zcqc-item,
    button.zcqc-top,
    button.zcqc-item:hover,
    button.zcqc-item:focus,
    button.zcqc-item:active,
    button.zcqc-top:hover,
    button.zcqc-top:focus,
    button.zcqc-top:active {
        border-color: transparent !important;
        background: transparent !important;
        color: #24313d !important;
    }

    .zcqc-item:hover {
        width: auto;
        justify-content: center;
        padding: 0;
        transform: none;
    }

    .zcqc-item b {
        display: none !important;
    }

    .zcqc-qr {
        position: fixed;
        left: 50%;
        right: auto;
        top: auto;
        bottom: 72px;
        width: 236px;
        height: 236px;
        transform: translateX(-50%);
        padding: 12px;
    }

    .zcqc-qr img {
        width: 212px;
        height: 212px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zcqc * {
        animation: none !important;
        transition: none !important;
    }
}

/* Pure WeChat QR on the about page */
.zcal2-qr {
    display: flex !important;
    width: min(240px, 100%) !important;
    height: auto !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 12px !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 38px rgba(18, 54, 83, .10) !important;
}

.zcal2-qr img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
}

.zcal2-qr p,
.zcal2-qr span,
.zcal2-qr figcaption {
    display: none !important;
}

/* 移动端交由主题自身控制菜单，核心只在桌面端提供吸顶效果。 */
@media (max-width: 900px) {
    body.zct-core-sticky:not(.elementor-editor-active) header,
    body.zct-core-sticky:not(.elementor-editor-active) .site-header {
        position: relative !important;
        top: auto !important;
        z-index: auto;
        backdrop-filter: none;
    }
}

@media (max-width: 760px) {
    .zcqc-no-wechat {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.zct-motion-ready .zct-reveal-pending {
        opacity: 1;
        transform: none;
    }
}
