body {
    padding-top: 56px;
}

.left-aligned {
    margin-left: auto;
}

.bg-dark {
    background-color: #f29200 !important;
}

.bg-hero {
    background-color: #004998;
}

/* CALLOUT */
.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e9ecef;
    border-left-width: .25rem;
    border-radius: .25rem
}

.bd-callout h4 {
    margin-bottom: 1.25rem
}

.bd-callout p:last-child {
    margin-bottom: 0
}

.bd-callout code {
    border-radius: .25rem
}

.bd-callout+.bd-callout {
    margin-top: -.25rem
}

.bd-callout-info {
    border-left-color: #5bc0de
}

.bd-callout-warning {
    border-left-color: #f0ad4e
}

.bd-callout-danger {
    border-left-color: #d9534f
}

/* footer */
footer a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/*Desktop Hover Dropdowns for Bootstrap Navbar*/
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/*
 * Mega Menu Styles
 * --------------------------------------------------
 */

/* Sets the width for the mega menu on large screens */
@media (min-width: 992px) {
    .dropdown-menu.megamenu {
        min-width: 800px;
        width: 80vw;
        max-width: 950px;
    }
}

/* Styles the circular icon container */
.megamenu-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #6f42c1;
    /* Purple color from your screenshot */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    /* Adjust the size of the icon/emoji inside */
    font-style: normal;
    /* Ensures emojis in <i> tags are not italic */
}

/* Fine-tune padding for dropdown items inside the mega menu */
.megamenu .dropdown-item {
    padding-top: .5rem;
    padding-bottom: .5rem;
}
/*
 * 返回顶部按钮的样式
 * --------------------------------------------------
 */

#toTopBtn {
    display: none;
    /* 默认状态下按钮是隐藏的 */
    position: fixed;
    /* 相对于浏览器窗口进行定位 */
    bottom: 30px;
    /* 距离窗口底部 30px */
    right: 30px;
    /* 距离窗口右侧 30px */
    z-index: 999;
    /* 确保按钮在其他内容的上层 */
    border: none;
    /* 移除边框 */
    outline: none;
    /* 移除点击时的轮廓 */
    background-color: rgb(255, 255, 255);
    /* 半透明黑色背景，你可以换成任何颜色 */
    cursor: pointer;
    /* 鼠标悬停时显示为手型指针 */
    padding: 20px;
    /* 按钮的内边距 */
    border-radius: 50%;
    /* 将按钮设置为圆形 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* 添加一点阴影使其有立体感 */
    transition: opacity 0.3s, transform 0.3s;
    /* 为显示和交互添加平滑过渡动画 */
}

/* 按钮内部图片的样式 */
#toTopBtn img {
    width: 32px;
    /* 自定义图标的宽度 */
    height: 32px;
    /* 自定义图标的高度 */
    display: block;
    /* 确保图片表现为一个块级元素 */
}

/* 鼠标悬停在按钮上时的样式 */
#toTopBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    /* 悬停时加深背景色 */
    transform: scale(1.1);
    /* 轻微放大，增加交互感 */
}
/*
 * 页面内部导航样式 (Side Navigation)
 * --------------------------------------------------
 */

.side-nav {
    /* 导航栏在垂直方向上的定位 */
    position: sticky;
    top: 5rem;
    /* 距离顶部的距离，留出主导航栏的高度 */
    align-self: flex-start;
    /* 确保它在 flex 容器中靠上 */
    max-height: calc(100vh - 7rem);
    /* 限制最大高度，防止内容过长时溢出 */
    overflow-y: auto;
    /* 当内容过长时，显示垂直滚动条 */
    padding-left: 0.5rem;
}

/* 主内容区域增加一些左边距，以免与导航栏太近 */
.main-content {
    padding-left: 2rem;
}

/* 导航链接的样式 */
.side-nav .nav-link {
    padding: .25rem 1rem;
    color: #6c757d;
    /* 默认灰色 */
}

/* 鼠标悬停或激活时的链接样式 */
.side-nav .nav-link:hover,
.side-nav .nav-link.active {
    color: #0d6efd;
    /* 变为蓝色 */
    text-decoration: none;
}