
@font-face {
    font-family: 'LocalEmoji';
    src: url('/static/1.subset.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+26AA, U+1F601, U+1F602, U+1F604, U+1F606;
}
@font-face {
    font-family: 'Ma Shan Zheng';
    src: url('/static/MSZ-R.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.service-tip,
.empty-state-icon,
.loading-symbols {
    font-family: 'LocalEmoji', 'Segoe UI', 'Microsoft YaHei', sans-serif !important;
}

.banner-active {
    color: #4ab8d4 !important;
}

#contentArea {
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    bottom: 36px;
    overflow: hidden;
}

#mainPageContent {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#subPageContent {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#subPageContent .top-banner {
    display: none !important;
}
#subPageContent .page-slide-layer {
    display: none !important;
}

#subNavBar {
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    z-index: 500;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    flex-wrap: wrap;
    justify-content: center;
    padding: 4px 10px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
#subNavBar.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#subNavBar .sub-nav-item {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
#subNavBar .sub-nav-item:hover { color: #333; background: #f5f5f5; }
#subNavBar .sub-nav-item.active {
    color: #333;
    font-weight: 600;
    border-bottom-color: #4ab8d4;
}

.banner-tools-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}
.banner-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.banner-dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    opacity: 0.6;
}
.banner-tools-dropdown:hover .banner-dropdown-arrow {
    transform: rotate(180deg);
}
.banner-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    padding: 6px 0;
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}
.banner-tools-dropdown:hover .banner-dropdown-menu {
    opacity: 1;
    visibility: visible;
}
.banner-dropdown-item {
    padding: 10px 20px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    letter-spacing: 1px;
}
.banner-dropdown-item:hover {
    background: #f5f7fa;
    color: #4ab8d4;
}
.banner-dropdown-item.dropdown-active {
    color: #4ab8d4;
    font-weight: 600;
}

.banner-dropdown-menu.banner-grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2px;
    padding: 10px;
    min-width: 340px;
}
.banner-dropdown-menu.banner-grid-menu .banner-dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px 12px;
    border-radius: 10px;
    white-space: normal;
    text-align: center;
    letter-spacing: 0.5px;
}
.banner-dropdown-menu.banner-grid-menu .banner-dropdown-item:hover {
    background: #f0f7fa;
}
.banner-dropdown-menu.banner-grid-menu .banner-dropdown-item.dropdown-active {
    background: #e6f4f8;
    color: #4ab8d4;
    font-weight: 600;
}
.banner-grid-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 6px;
    font-family: 'LocalEmoji', 'Segoe UI', 'Microsoft YaHei', sans-serif !important;
}
.banner-grid-icon .tool-icon-anim {
    width: 22px;
    height: 22px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
/* <picture> 双格式（avif 优先 + webp 回退）容器 */
.tool-icon-anim-pic {
    display: inline-flex;
    /*align-items: center;*/
    justify-content: center;
    vertical-align: -0.15em;
}
.banner-grid-label {
    font-size: 13px;
    line-height: 1.2;
}

.bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 -1px 8px rgba(0,0,0,0.06);
    font-size: 12px;
    color: #999;
    letter-spacing: 0.3px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.bottom-banner-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.bottom-banner-inner .bb-sep {
    color: #ddd;
    user-select: none;
}
.bottom-banner-inner a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}
.bottom-banner-inner a:hover {
    color: #4ab8d4;
}

@media (max-width: 768px) {
    #contentArea {
        top: 0;
        bottom: 0;
    }
    .bottom-banner {
        font-size: 11px;
        height: 32px;
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }
    .bottom-banner.mobile-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .bottom-banner-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 4px 8px;
        padding: 0 12px;
    }
    .bottom-banner-inner > span {
        display: none;
    }
}

/* 底部可点击链接 */
.bottom-banner-inner .bb-link {
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}
.bottom-banner-inner .bb-link:hover {
    color: #4ab8d4;
}

/* 公安网备国徽图标 */
.beian-emblem {
    width: 14px;
    height: auto;
    vertical-align: -2px;
    margin-right: 3px;
    display: inline-block;
}

/* 重望工贸悬浮窗 */
.zw-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: block;
    pointer-events: none;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease;
}
.zw-modal-overlay.show {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.zw-modal-card {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.08);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.zw-modal-overlay.show .zw-modal-card {
    transform: scale(1);
    visibility: visible;
}
.zw-modal-overlay.closing .zw-modal-card {
    transform: scale(0.08);
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45);
}
.zw-modal-overlay.closing {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}
.zw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.zw-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 1px;
}
.zw-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.zw-modal-close:hover {
    background: #e74c3c;
    color: #fff;
}
.zw-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.zw-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 颜色过渡遮罩 */
.zw-transition-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: background-color 0.6s ease, opacity 0.6s ease;
}

@media (max-width: 768px) {
    .zw-modal-card {
        top: 3%;
        left: 3%;
        width: 94%;
        height: 94%;
        border-radius: 12px;
    }
    .zw-modal-header {
        padding: 10px 14px;
    }
    .zw-modal-title {
        font-size: 14px;
    }
}
