/**
 * 右侧固定菜单样式 - 竖向排列
 */
/* 页面内容样式 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

p {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 自定义图标颜色 */
.online-consult .c-ico {
    background-color: #2979ff;
}

.phone-consult .c-ico {
    background-color: #ff5722;
}

.wechat-consult .c-ico {
    background-color: #07c160;
}

.qq-consult .c-ico {
    background-color: #12b7f5;
}

.c-gotop .c-ico {
    background-color: #757575;
}

/* 基础样式 */
#c-right-fixed {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    list-style: none;
    margin: 0;
    padding: 15px 0;
    z-index: 999;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#c-right-fixed li {
    width: 100%;
    margin-bottom: 20px;
}

#c-right-fixed li:last-child {
    margin-bottom: 0;
}

#c-right-fixed li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 5px 0;
    transition: all 0.2s ease;
}

/* 图标样式 */
.c-ico {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
    background-color: #1976D2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.c-ico i {
    font-size: 16px;
    color: white;
}

/* 标题样式 */
.c-title {
    font-size: 12px;
    margin: 0;
    text-align: center;
    color: #333;
    transition: color 0.2s ease;
}

/* 悬停效果 */
#c-right-fixed li a:hover .c-ico {
    background-color: #1565c0;
}

#c-right-fixed li a:hover .c-title {
    color: #1e88e5;
}

/* 电话号码样式 */
.c-phone {
    position: absolute;
    right: 110px;
    background-color: white;
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    white-space: nowrap;
    font-size: 12px;
}

.phone-consult:hover .c-phone {
    display: block;
}

/* 二维码样式 */
.c-ewm {
    position: absolute;
    right: 110px;
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    text-align: center;
}
/* 微信添加好友按钮 */
.wechat-actions {
    margin-top: 10px;
}

.wechat-actions button {
    background-color: #07C160;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wechat-actions button:hover {
    background-color: #06AD56;
}

.wechat-consult:hover .c-ewm,
.qq-consult:hover .c-ewm {
    display: block;
}

.c-ewm img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
}

.c-ewm p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #666;
}

/* 回到顶部按钮样式 */
.c-gotop {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.c-gotop:hover {
    opacity: 1 !important;
}

/* 动画效果 */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animated {
    animation: fadeInRight 0.5s ease forwards;
    opacity: 0;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    #c-right-fixed {
        flex-direction: row;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        border-radius: 0;
        padding: 10px 0;
    }

    #c-right-fixed li {
        margin: 0;
        flex: 1;
        text-align: center;
    }

    .c-ico {
        width: 25px;
        height: 25px;
    }

    .c-ico i {
        font-size: 14px;
    }

    .c-title {
        font-size: 10px;
    }

    .c-phone {
        right: auto;
        left: 50%;
        bottom: 100%;
        transform: translateX(-50%);
    }

    .c-ewm {
        right: auto;
        left: 50%;
        bottom: 100%;
        transform: translateX(-50%);
    }

    .c-ewm img {
        width: 100px;
        height: 100px;
    }
}