/* 弹窗容器 */
.notice-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 隐藏弹窗 - 使用更强的选择器确保隐藏 */
.notice-popup[style*="display: none"],
#noticePopup[style*="display: none"] {
    display: none !important; /* 确保真正隐藏 */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* 弹窗内容 */
.notice-popup-content {
    position: relative;
    width: 90%;
    max-width: calc(516px * 0.9); /* container的最大宽度(516px)的90% */
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
    display: flex; /* 设置为左右布局 */
    flex-direction: column; /* 改为纵向布局 */
    transform: scale(1);
    transition: transform 0.3s ease;
}

/* 弹窗隐藏时内容区缩小 */
.notice-popup[style*="display: none"] .notice-popup-content {
    transform: scale(0.9);
}

/* 主要内容区容器 */
.notice-content-wrapper {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
}

/* 底部关闭按钮区域 */
.notice-popup-footer {
    width: 100%;
    padding: 15px 0;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 关闭按钮 - 位于内容底部中间 */
.notice-popup-close {
    position: fixed; /* 使用固定定位 */
    left: 50%;
    transform: translateX(-50%); /* 水平居中 */
    display: flex; /* 使用flex布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    cursor: pointer;
    z-index: 999999; /* 确保在最上层 */
    border: none;
    margin-top: 10px; /* 与内容保持一定距离 */
    background-color:transparent;
}



/* 左侧选项栏 */
.notice-popup-sidebar {
    width: 25%;
    background-color: var(--primary-color); /* 使用与header相同的背景色 */
    padding: 10px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* 选项按钮样式 */
.tab-option {
    padding: 12px 10px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: left;
    white-space: normal; /* 允许文字换行 */
    word-wrap: break-word; /* 长单词也能换行 */
    word-break: break-word; /* 确保长单词能够在适当位置断开 */
    line-height: 1.3; /* 设置合适的行高 */
}

.tab-option.active {
    color: var(--text-color);
    background-color: var(--background-color);
    /* border-left: 3px solid var(--background-color); */
}

.tab-option i {
    margin-right: 5px;
    font-size: 16px;
    flex-shrink: 0; /* 防止图标缩小 */
}

/* 右侧内容区 - 图片叠加显示 */
.notice-popup-main {
    width: 75%;
    height: 360px; /* 适当减小高度以适应移动设备 */
    position: relative;
    overflow: hidden;
}

/* 内容标签页 - 使用绝对定位叠加在一起 */
.content-tab {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-tab.active {
    display: block;
    opacity: 1;
    z-index: 2; /* 确保活动标签在最上层 */
}

/* 图片容器占满整个右侧区域 */
.notice-popup-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.notice-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填充容器 */
    display: block;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .notice-popup-content {
        width: 95%;
    }
    
    .notice-popup-main {
        height: 300px;
    }
}

/* 添加一个隐藏类用于需要时 */
.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
} 
