/* 免费试用按钮和菜单 */
.trial-container {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.trial-btn {
    width: 160px;
    height: 70px;
    background: linear-gradient(45deg, #ff7b00, #ff9d42);
    color: white;
    border: none;
    border-radius: 35px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 123, 0, 0.7);
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(255, 123, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(255, 123, 0, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(255, 123, 0, 0.7);
    }
}

.trial-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 123, 0, 0.9);
    background: linear-gradient(45deg, #ff9d42, #ff7b00);
    animation: none;
}

.trial-menu {
    position: relative;
    margin-right: -30px;
    width: 200px;
    height: 600px; /* 增加高度以适应垂直布局 */
    display: none;
}

.trial-menu.active {
    display: block;
}

.menu-item {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4dabf7, #339af0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    transform: scale(0);
    z-index: 5;
    line-height: 1.3;
    font-weight: bold;
}

.trial-menu.active .menu-item {
    transform: scale(1);
}

.menu-item:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #339af0, #1c7ed6);
}

/* 修改菜单位置 - 垂直向下排列 */
.menu-item:nth-child(1) {
    right: 60px; /* 水平居中 */
    top: 20px; /* 第一个按钮在顶部 */
    transition-delay: 0.1s;
}

.menu-item:nth-child(2) {
    right: 60px; /* 水平居中 */
    top: 110px; /* 第二个按钮在中间，与免费试用按钮对齐 */
    transition-delay: 0.2s;
}

.menu-item:nth-child(3) {
    right: 60px; /* 水平居中 */
    top: 200px; /* 第三个按钮在底部 */
    transition-delay: 0.3s;
}

.menu-item:nth-child(4) {
    right: 60px; /* 水平居中 */
    top: 290px; /* 第三个按钮在底部 */
    transition-delay: 0.3s;
}

.menu-item:nth-child(5) {
    right: 60px; /* 水平居中 */
    top: 380px; /* 第三个按钮在底部 */
    transition-delay: 0.3s;
}

.menu-item:nth-child(6) {
    right: 60px; /* 水平居中 */
    top: 470px; /* 第三个按钮在底部 */
    transition-delay: 0.3s;
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .trial-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        transform: none;
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 10px;
    }

    .trial-btn {
        width: 120px;
        height: 50px;
        font-size: 16px;
        border-radius: 25px;
        animation: pulse 2s infinite;
    }

    .trial-menu {
        position: absolute;
        bottom: 60px;
        right: 0;
        width: 140px;
        height: auto;
        display: none; /* 移动端默认隐藏 */
        flex-direction: column;
        gap: 12px;
        margin-right: 0;
        padding: 15px 10px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .trial-menu.active {
        display: flex; /* 点击时显示 */
    }

    .menu-item {
        position: static;
        width: 120px;
        height: 45px;
        border-radius: 22px;
        font-size: 14px;
        margin: 5px 0;
        background: linear-gradient(45deg, #4dabf7, #339af0);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* 重置移动端菜单项定位 */
    .menu-item:nth-child(1),
    .menu-item:nth-child(2),
    .menu-item:nth-child(3),
    .menu-item:nth-child(4),
    .menu-item:nth-child(5),
    .menu-item:nth-child(6) {
        position: relative;
        right: 5px;
        top: auto;
        transform: none;
        margin: 5px 0;
    }

    .menu-item br {
        display: inline;
    }
}

/* 小屏设备进一步优化 */
@media (max-width: 480px) {
    .trial-container {
        bottom: 26px;
        right: 15px;
        left: 15px;
        width: auto;
    }

    .trial-btn {
        width: 108px;
        height: 45px;
        font-size: 14px;
        letter-spacing: 1px;
    }

    .trial-menu {
        width: 100px;
        right: 0;
        left: auto;
    }

    .menu-item {
        width: 90px;
        height: 40px;
        font-size: 12px;
        right: 5px;
    }
}

