body {
    height: 2000px;
}

/* 悬浮框容器 */
.floating-contact {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
}

/* 垂直显示的联系我们按钮 */
.contact-button {
    width: 40px;
    height: 180px;
    background-color: #2563eb;
    color: white;
    border-radius: 8px 0 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-button:hover {
    background-color: #1e40af;
}

/* 展开内容区域 */
.contact-content {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    width: 200px;
    background-color: white;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.floating-contact:hover .contact-content {
    opacity: 1;
    visibility: visible;
    transform: translate(calc(-100% + 40px), -50%);
}

/* 联系选项样式 */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: #333;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.contact-item:hover {
    color: #2563eb;
    transform: translateX(4px);
}

.qrcode-container {
    text-align: center;
    margin-top: 12px;
}

.qrcode-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 自定义工具类 */
.content-auto {
    content-visibility: auto;
}

.transition-all-300 {
    transition: all 0.3s ease-in-out;
}

.writing-mode-vertical {
    writing-mode: vertical-rl;
}

.translate-x-full {
    transform: translateX(100%);
}