
body{
    background: url("../images/bg2.png");
}

.m-padded-mini{
     padding: 0.2em !important;
}
.m-padded-tiny{
     padding: 0.3em !important;
 }
.m-padded{
    padding: 1em !important;
}
.m-padded-tb-mini{
    padding-top: 0.2em !important;
    padding-bottom: 0.2em !important;
}
.m-padded-tb-tiny{
    padding-top: 0.3em !important;
    padding-bottom: 0.3em !important;
}
.m-padded-tb-small{
    padding-top: 0.5em !important;
    padding-bottom: 0.5em !important;
}
.m-padded-tb{
    padding-top: 1em !important;
    padding-bottom: 1em !important;
}
.m-padded-tb-large{
    padding-top: 2em !important;
    padding-bottom: 2em !important;
}
.m-padded-tb-big{
    padding-top: 3em !important;
    padding-bottom: 3em !important;
}
.m-padded-tb-huge{
    padding-top: 4em !important;
    padding-bottom: 4em !important;
}
.m-padded-tb-massive{
    padding-top: 5em !important;
    padding-bottom: 5em !important;
}

.m-padded-lr{
    padding-left: 4em !important;
    padding-right: 4em !important;
}

.m-inline-block{
    display: inline-block !important;
}


.m-margin-tb-tiny{
    margin-top: 0.3em !important;
    margin-bottom: 0.3em !important;
}
.m-margin-top-small{
    margin-top: 0.5em !important;
}
.m-margin-top-large{
    margin-top: 2em !important;
}


/*-----color-----*/
.m-black{
    color: #333 !important;
}
.m-teal{
    color: #00b5ad !important;
}

.m-container{
    max-width: 92em !important;
    margin: auto !important;
}
.m-container-small{
    max-width: 60em !important;
    margin: auto !important;
}
.m-container-big{
    max-width: 80em !important;
    margin: auto !important;
}

.m-top-right{
    position: absolute;
    top: 0;
    right: 0;
}

.m-mobile-show{
    display: none !important;
}

.m-fixed{
    position: fixed !important;
    z-index: 1 !important;
}

.m-right-bottom{
    bottom: 0 !important;
    right: 0!important;
}

@media screen and (max-width: 768px){
    .m-mobile-hide{
        display: none !important;
    }
    .m-mobile-show{
        display: block !important;
    }
    .m-padded-lr{
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

}

.scroll-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.scroll-text {
    display: inline-block;
    padding-left: 100%; /* 初始位置在容器外部 */
    animation: scrollText linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 调整滚动速度 */
.scroll-text {
    animation-duration: 15s; /* 你可以根据需要调整这个时间 */
}

.scroll-text p {
    font-size: 20px;
    color: deeppink;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(0, 181, 173, 0.8);
    color: white;
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 99;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgba(0, 181, 173, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 返回底部按钮样式 */
.back-to-bottom {
    position: fixed;
    right: 20px;
    bottom: 20px; /* 与返回顶部按钮相同的位置 */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(33, 186, 69, 0.8); /* 恢复原来的绿色背景 */
    color: white;
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 99;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    visibility: hidden;
}

.back-to-bottom.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.back-to-bottom:hover {
    background-color: rgba(33, 186, 69, 1); /* 恢复原来的绿色背景 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.back-to-bottom:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top i.icon,
.back-to-bottom i.icon {
    margin: 0;
    transition: transform 0.3s ease;
}

.back-to-top:hover i.icon {
    transform: scale(1.2) translateY(-2px);
}

.back-to-bottom:hover i.icon {
    transform: scale(1.2) translateY(2px);
}

.back-to-top:active i.icon {
    transform: scale(0.9);
}

.back-to-bottom:active i.icon {
    transform: scale(0.9);
}