.contactus-floating {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.contactus-tab {
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px 0 0 6px;
    transition: opacity 0.3s;
    flex-shrink: 0;
    writing-mode: vertical-lr;
    letter-spacing: 10px;
    padding: 12px 0;
    user-select: none;
}

.contactus-tab:hover {
    opacity: 0.85;
}

.contactus-tab-text {
    font-weight: 600;
    line-height: 1.6;
}

.contactus-panel {
    width: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    transition: width 0.35s ease;
    border-radius: 0 0 0 6px;
}

.contactus-floating:hover .contactus-panel,
.contactus-floating.active .contactus-panel {
    width: 130px;
}

.contactus-floating:hover .contactus-tab {
    opacity: 0;
}

.contactus-panel-inner {
    width: 130px;
    padding: 15px;
    box-sizing: border-box;
    max-height: 70vh;
    overflow-y: auto;
}

.contactus-panel-inner::-webkit-scrollbar {
    width: 4px;
}

.contactus-panel-inner::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.contactus-card {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.contactus-card:last-child {
    margin-bottom: 0;
}

.contactus-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.contactus-card-image {
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contactus-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.contactus-card-image:hover img {
    transform: scale(1.03);
}

.contactus-card-name {
    padding: 8px 10px;
    text-align: center;
    font-size: 13px;
    color: #333;
    background: #fafafa;
    border-top: 1px solid #eee;
    font-weight: 500;
}

.contactus-lightbox {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.contactus-lightbox.active {
    display: flex;
}

.contactus-lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: contactusZoomIn 0.3s ease;
}

@keyframes contactusZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.contactus-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 100001;
    line-height: 1;
}

.contactus-lightbox-close:hover {
    color: #ccc;
}

@media (max-width: 768px) {
    .contactus-tab {
        width: 30px;
        padding: 8px 0;
    }

    .contactus-tab-text {
        letter-spacing: 2px;
    }

    .contactus-floating:hover .contactus-panel,
    .contactus-floating.active .contactus-panel {
        width: 110px;
    }

    .contactus-panel-inner {
        width: 110px;
        padding: 10px;
    }

    .contactus-lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}