/* 组件铺满正文区域，图片按原始比例完整显示。 */
.policy-pager {
    width: 100%;
    min-width: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.policy-pager .swiper-container {
    width: 100%;
    touch-action: pan-y pinch-zoom;
}

.policy-pager .swiper-slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* 工具条位于图片下方，阅读较长的图片时贴在可视区底部。 */
.policy-pager .policy-controls {
    position: relative;
    position: sticky;
    bottom: 0;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .5rem .75rem;
    border-top: 1px solid #d8e6f4;
    background: #f5f9fd;
}

.policy-pager .policy-controls button {
    box-sizing: border-box;
    min-height: 2.75rem;
    padding: .375rem .875rem;
    border: 1px solid #0869bf;
    border-radius: .375rem;
    background: #0869bf;
    color: #fff;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
}

.policy-pager .policy-controls button span {
    font-size: 1.25em;
    line-height: 1;
}

.policy-pager .policy-controls button:not(:disabled):hover {
    background: #07569a;
}

.policy-pager .policy-controls button:disabled {
    border-color: #d5e2ef;
    background: #eaf1f8;
    color: #536d84;
    cursor: default;
}

.policy-pager .policy-controls button:focus-visible {
    outline: 2px solid #1b5e9b;
    outline-offset: 2px;
}

.policy-pager .policy-page-number {
    min-width: 3.75rem;
    margin: 0 .5rem;
    color: #304b65;
    text-align: center;
    white-space: nowrap;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .policy-pager .policy-controls {
        padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
    }
}
