/* ==========================================================================
   二维码区域样式 - QR Code Styles
   用于支持与加入、咖啡&商店等页面的二维码展示
   以及Footer社交媒体图标悬停显示二维码
   ========================================================================== */

/* ==================== Footer社交媒体图标悬停显示二维码 ==================== */
.social-icon-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.social-icon-wrapper img.social-icon {
    display: block;
    transition: transform 0.3s ease;
}

.social-icon-wrapper:hover img.social-icon {
    transform: scale(1.1);
}

.social-qrcode {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10000;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
}

.social-icon-wrapper:hover .social-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.social-qrcode img {
    display: block !important;
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    object-fit: contain;
}

/* 二维码上方的小三角 */
.social-qrcode::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

/* ==================== 二维码区域 ==================== */
.qrcode-section {
    position: absolute;
    right: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.qrcode-text {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    line-height: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qrcode-arrow {
    flex-shrink: 0;
}

.qrcode-arrow img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

.qrcode-section > img {
    width: 170px;
    height: 170px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1199px) {
    .qrcode-section {
        position: static;
        margin: 40px auto;
    }
}
