.sonsion-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* 取消虚化背景 */
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sonsion-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.sonsion-popup-container {
    position: absolute;
    width: 1280px;                /* 固定宽度 */
    left: 50%;                    /* 水平居中 */
    transform: translateX(-50%);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
}
.sonsion-popup-overlay.active .sonsion-popup-container {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* 关闭按钮 */
.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    z-index: 10;
    transition: color 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-close-btn:hover {
    color: #000;
}
/* 顶部箭头 */
.popup-arrow {
    position: absolute;
    top: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.05));
    z-index: 1;
}
.sonsion-popup-content {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}
.popup-category {
    break-inside: avoid;
}
.popup-category-title {
    font-size: var(--popup-category-font-size, 1.2rem);
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
    color: #1e1e1e;
}
.popup-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.popup-links-list li {
    margin-bottom: 12px;
}
.popup-links-list a {
    text-decoration: none;
    color: #2c3e50;
    font-size: var(--popup-link-font-size, 0.95rem);
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
    position: relative;
}
.popup-links-list a:hover {
    color: var(--popup-hover-color, #0073aa);
    transform: translateX(4px);
}
/* 滚动条美化 */
.sonsion-popup-container::-webkit-scrollbar {
    width: 6px;
}
.sonsion-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.sonsion-popup-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
@media (max-width: 1300px) {
    .sonsion-popup-container {
        width: 90vw;            /* 窄屏时自适应宽度 */
        left: 50%;
        transform: translateX(-50%);
    }
    .sonsion-popup-overlay.active .sonsion-popup-container {
        transform: translateX(-50%) translateY(0);
    }
}
@media (max-width: 768px) {
    .sonsion-popup-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}