.tabbar{
    position: sticky;
    top: 0;
    z-index: 999;
}
.topBar {
    background-color: var(--primary-color);
    height: 30px;
    text-align: right;
    padding-right:30px;
    color: #fff;
}
.top{
    margin:  auto;
}

.ml-30{
    margin-left:30px ;
}
.btn-a-img {
    width: 80%;
    height: auto;
}
.btn-a-box {
    /*flex:1;*/
    /*width: 6.5rem;*/
    padding:  1rem;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-a-box:hover{
    transition: color 0.3s ease;
    background-color: var(--primary-color);
    color: #fff;
}
.dropdown-menu:hover{
    transition: color 0.3s ease;
    background-color: #fff;
    color: #000;
}


/* 弹窗遮罩层 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 弹窗内容容器 - 右侧滑出样式 */
.popup-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto; /* 内容过多时可滚动 */
    transform: translateX(100%); /* 初始位置在右侧外部 */
    transition: transform 0.3s ease;
    z-index: 1001; /* 确保在遮罩层上方 */
}

/* 弹窗标题栏 */
.popup-header {
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

/* 关闭按钮 */
.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #ff0000;
}

/* 弹窗内容区 */
.popup-body {
    padding: 20px;
    line-height: 1.6;
    color: #555;
}

/* 弹窗底部按钮区 */
.popup-footer {
    padding: 15px 20px;
    background: #f5f5f4;
    border-top: 1px solid #eee;
    text-align: right;
    position: sticky;
    bottom: 0;
}

/* 弹窗按钮 */
.popup-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: background 0.2s;
}

.popup-btn-primary {
    background: #4285f4;
    color: white;
}

.popup-btn-primary:hover {
    background: #3367d6;
}

.popup-btn-default {
    background: #ddd;
    color: #333;
}

.popup-btn-default:hover {
    background: #ccc;
}

/* 显示弹窗时的样式 */
.popup-overlay.active {
    display: block;
    opacity: 1;
}

.popup-overlay.active ~ .popup-container {
    transform: translateX(0); /* 滑入可视区域 */
}

/* 触发弹窗的按钮 */
.open-popup {
    border: none;
    cursor: pointer;
}
.fa-language{
    font-size: 0.5rem;
    padding: 0 10px;
}

