/* 触发区域样式 */
.trigger-area {
    position: relative;
    display: inline-block;
    padding: 1rem 2rem;
    background: #4CAF50;
    color: white;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trigger-area:hover {
    background: #45a049;
    transform: translateY(-3px);
}

/* 二维码容器 - 初始隐藏 */
.qrcode-container {
    position: absolute;
    bottom: 100%;
    /* 位于触发区域正上方 */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    width: 200px;
    text-align: center;
}

/* 鼠标悬浮时显示 */
.trigger-area:hover .qrcode-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 二维码图像 */
.qrcode-img {
    width: 160px;
    height: 160px;
    margin: 0 auto 0.8rem;
    background: #fff;
    padding: 8px;
    border-radius: 6px;
}

/* 提示文字 */
.qrcode-tip {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* 箭头指示线 */
.qrcode-container::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .qrcode-container {
        width: 180px;
    }

    .qrcode-img {
        width: 140px;
        height: 140px;
    }
}