/* ================= 按钮自定义样式 ================= */
.btn-custom {
    background-color: #20B2AA;
    border-color: #20B2AA;
    color: white;
}

.btn-custom:hover {
    background-color: #F5F5F5;
    border-color: snow;
    color: black;
}

.btn-custom_2 {
    background-color: #F5F5F5;
    border-color: snow;
    color: black;
}

.btn-custom_2:hover {
    background-color: rgb(239 16 16 / 0.93);
    color: white;
}

/* ================= 汉堡菜单动画样式 ================= */
/* 1. 图标容器的大小和定位 */
.hamburger-icon {
    width: 22px;
    height: 16px;
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-top: -4px; /* 微调垂直居中 */
}

/* 2. 画出三条白色的横线 */
.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: white; /* 横线的颜色 */
    border-radius: 2px;
    /* 核心动画：让所有的位置、透明度和旋转变化都在 0.3 秒内平滑完成 */
    transition: all 0.3s ease-in-out;
}

/* 3. 设置三条线的初始垂直位置 */
.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 8px; }
.hamburger-icon span:nth-child(3) { top: 16px; }

/* 4. 动画触发：当 Bootstrap 将 aria-expanded 变为 true (菜单展开) 时 */
.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

@media(max-width:768px) {
    .mobile-nav-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        line-height: 1;
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .mobile-nav-icon{
        display: inline-block;
        width: 1em;
        height: 1em;
        line-height: 1;
        vertical-align: middle;
        flex-shrink: 0;
    }
    .mobile-nav-icon::before {
        display: block;
        line-height: 1;
    }
    .mobile-nav-link > span {
        line-height: 1.2;
    }
}

@media (max-width: 786px) {
    .navbar-nav.flex-row .nav-link{
        display: flex;
        align-items: center;
    }
}

@media (max-width: 786px) {
    .mobile-nav-link .mobile-nav-icon {
        position: static !important;
        top: auto !important;
        margin-top: 0 !important;
        transform: none !important;
    }
}

body{
    position: relative;
    min-height: 100vh;
    background-color: white;
}


body::before{
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('../images/FA664A9D-8C0F-47C1-A46F-6BF53A8276F7_1_105_c.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: -1;
}

.copybtn{
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.copybtn:hover{
    background-color: #e9ecef;
}

.o-tooltip--left::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 8px;
    background-color: #333333;
    color: #ffffff;
    padding: 4px 8px ;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.copybtn:hover::after {
    opacity: 1;
    visibility: visible;
}