﻿html, body {
    overflow-x: hidden;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: auto!important;
    margin-left: auto!important;
}
.d-flex {
    display: flex !important;
}
.align-items-center {
    align-items: center !important;
}
/* Set padding to keep content from hitting the edges */
.body-content {
    min-height:50vh;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* ========= 底部溢出防护 ========= */
.footer-area {
    overflow: hidden;
}
.footer-bg-bottom {
    box-sizing: border-box;
}
.contact-address-text h5 {
    display: block;
    word-break: break-all;
}

/* ========= 返回顶部按钮样式 ========= */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, transform 0.2s ease, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    /* 保证点击区域可触 */
    touch-action: manipulation;
}

    /* 悬停/聚焦效果 */
    .back-to-top:hover,
    .back-to-top:focus {
        background-color: #2563eb;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        outline: none;
    }

    /* 按钮显示状态 */
    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }