/* 联系我们：四列原布局内 2×2，不再单独通栏 */
.ptg-footer-contact {
    margin: 0;
}

.ptg-footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    max-width: 236px;
}

.ptg-footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.ptg-footer-qr-btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
    margin: 0;
    width: 68px;
    height: 68px;
    background: #fff;
    border-radius: 8px;
    cursor: zoom-in;
    overflow: hidden;
    line-height: 0;
    transition: border-color 0.15s ease;
}

.ptg-footer-qr-btn:hover {
    border-color: rgba(255, 80, 0, 0.45);
}

.ptg-footer-qr-btn img {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: cover;
}

.ptg-footer-qr-btn--brand {
    background: #111;
    border-color: #111;
}

.ptg-footer-qr-btn--brand img {
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.ptg-footer-qr-caption {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
    color: inherit;
    text-decoration: none;
}

.ptg-footer-qr-caption:hover {
    color: #ff5000;
}

.ptg-footer-contact-tip {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: #666;
}

[data-bs-theme="dark"] .ptg-footer-qr-btn {
    background: #1a1a1c;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .ptg-footer-qr-btn--brand {
    background: #111;
    border-color: #111;
}

[data-bs-theme="dark"] .ptg-footer-contact-tip {
    color: #94a3b8;
}

/* ========== 二维码灯箱 ========== */
.ptg-qr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ptg-qr-lightbox[hidden] {
    display: none !important;
}

.ptg-qr-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.ptg-qr-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 360px);
    padding: 18px 18px 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    text-align: center;
}

.ptg-qr-lightbox-title {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.ptg-qr-lightbox-panel img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.ptg-qr-lightbox-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    min-width: 140px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5000, #ff7a00);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(255, 80, 0, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ptg-qr-lightbox-action:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 80, 0, 0.34);
}

.ptg-qr-lightbox-action[hidden] {
    display: none !important;
}

.ptg-qr-lightbox-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ptg-qr-lightbox-close:hover {
    background: rgba(255, 80, 0, 0.12);
    color: #ff5000;
}

body.ptg-qr-lightbox-open {
    overflow: hidden;
}
