/* CSS变量定义 */
:root {
    --vw-unit: calc(100vw / 1920);
    /* 基于设计稿宽度1920px */
    --vh-unit: calc(100vh / 1080);
    /* 基于设计稿高度1080px */
    --rem-unit: calc(100vw / 1920);
}

* {
    padding: 0;
    margin: 0;
}

/* 侧边浮动 */
.side-bar {
    position: fixed;
    right: calc(30 * var(--vw-unit));
    bottom: calc(50 * var(--vh-unit));
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: calc(15 * var(--vh-unit));
}

.side-icon {
    width: calc(48 * var(--vw-unit));
    height: calc(48 * var(--vw-unit));
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 calc(4 * var(--vw-unit)) calc(15 * var(--rem-unit)) rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tel {
    width: calc(175 * var(--vw-unit));
    height: calc(42 * var(--vw-unit));
    border-radius: calc(4 * var(--rem-unit));
    background-color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: calc(-199 * var(--vw-unit));
    font-size: calc(16 * var(--rem-unit));
}

.tel img {
    height: calc(24 * var(--vw-unit));
    object-fit: cover;
    margin-right: calc(7 * var(--vw-unit));
}

.side-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.side-icon img {
    width: calc(20 * var(--vw-unit));
}

.side-icon:nth-child(1):hover+.tel {
    display: flex;
}

.method {
    width: calc(116 * var(--vw-unit));
    height: calc(133 * var(--vw-unit));
    border-radius: calc(4 * var(--rem-unit));
    background-color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    left: calc(-140 * var(--vw-unit));
    top: 50%;
    margin-top: calc(-67 * var(--vw-unit));
    font-size: calc(10 * var(--rem-unit));
}

.method img {
    height: calc(81 * var(--vw-unit));
    object-fit: cover;
}

.side-bar> :nth-child(3):hover+.method {
    display: flex;
}