
/* Floating Contact Sidebar */
.floating-contact {
    position: fixed;
    right: 0.24rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Purple Badge */
.cta-badge {
    /* position: absolute; */
    /* right: 0.8rem; */
    /* top: -0.1rem; */
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    background: radial-gradient(100% 100% at 50% 0%, #8a6bff 0%, #6e58f5 60%, #5945e8 100%);
    box-shadow: 0 0.1rem 0.3rem rgba(89, 69, 232, 0.35);
    cursor: pointer;
    font-size: 0.18rem;
    z-index: 10;
    margin-bottom: 0.2rem;
}

/* Right Side Pill */
.side-pill {
    width: 0.7rem;
    background: #fff;
    border-radius: 0.4rem;
    box-shadow: 0 0.1rem 0.3rem rgba(27, 45, 94, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.15rem 0;
}

.icon-btn {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.icon-btn img {
    width: 0.4rem;
    height: 0.4rem;
}
.icon-btn:hover { background: #f4f7ff; }

.divider {
    width: 0.4rem;
    height: 0.01rem;
    background: #e9eef9;
    margin: 0.1rem 0;
}

/* Contact Panels (Hidden by default) */
.contact-panel {
    position: absolute;
    right: 1rem;
    top: -0.1rem;
    min-width: 3rem;
    border-radius: 0.16rem;
    background: #f7faff;
    border: 0.01rem solid #dfe8ff;
    box-shadow: 0 0.2rem 0.4rem rgba(27, 45, 94, 0.15), inset 0 0.01rem 0 rgba(255,255,255,0.6);
    display: none;
    z-index: 5;
}

.panel-inner { padding: 0.2rem; }
.panel-inner.center { text-align: center; padding: 0.2rem; }

.row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.15rem;
}
.row:last-child { margin-bottom: 0; }

.label-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.05rem;
    gap: 0.05rem;
}

.label-group img {
    width: 0.2rem;
    height: 0.2rem;
}

.label {
    color: #6a8bff;
    font-size: 0.18rem;
}

.values {
    padding-left: 0.25rem;
}

.values .value {
    color: #121825;
    font-size: 0.2rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01rem;
    white-space: nowrap;
}

.row-email .values .value {
    font-weight: 500;
    font-size: 0.18rem;
    white-space: normal;
    word-break: break-all;
}

.row-divider {
    height: 0.01rem;
    background: #e9eef9;
    margin: 0.15rem 0;
    width: 100%;
}

.qr-title { color: #6a8bff; font-size: 0.16rem; margin-bottom: 0.1rem; }
.qr-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    border-radius: 0.08rem;
    background: #fff;
    box-shadow: inset 0 0.01rem 0 rgba(0,0,0,0.02);
}

/* Show States */
.floating-contact.show-phones #panelPhones { display: block; }
.floating-contact.show-wechat #panelWeChat { display: block; }

/* Responsive */
@media (max-width: 980px) {
    .floating-contact { right: 0.12rem; display: none;} /* Hide on mobile initially or adjust */
    .cta-badge { display: none; }
    .contact-panel { right: 0.8rem; min-width: 3rem; }
}
