.pcp-login-section {
    align-items: flex-start;
}

body.pcp-letter-ready .pcp-login-section {
    min-height: 0;
    padding: 16px 12px 12px;
    align-items: flex-start;
}

.pcp-letter-panel {
    display: none;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 0 8px;
}

.pcp-letter-canvas-wrap {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: visible;
    cursor: zoom-in;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
    touch-action: manipulation;
}

.pcp-letter-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    cursor: zoom-in;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

/* 点击放大预览 */
.pcp-letter-lightbox {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.88);
    padding: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.pcp-letter-lightbox.is-open {
    display: block;
}

body.pcp-letter-lightbox-open {
    overflow: hidden;
    position: relative;
}

.pcp-letter-lightbox-stage {
    min-height: 100%;
    padding: 52px 0 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.pcp-letter-lightbox-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
}

.pcp-letter-lightbox-close {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 100001;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    font-size: 30px;
    line-height: 44px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .pcp-letter-panel {
        max-width: 100%;
        padding: 4px 0 16px;
    }

    .pcp-letter-lightbox-img {
        width: 160%;
        max-width: none;
    }
}
