/* 外部链接确认弹窗 — 星汇深色奢华主题 */
.xh-ext-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.xh-ext-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.xh-ext-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.72);
    backdrop-filter: blur(6px);
}

.xh-ext-panel {
    position: relative;
    width: min(440px, 96vw);
    padding: 22px 22px 20px;
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(14, 20, 38, 0.98) 0%, rgba(8, 12, 26, 0.98) 100%);
    border: 1px solid rgba(232, 197, 71, 0.22);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(96, 165, 250, 0.08);
}

.xh-ext-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.xh-ext-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #e8c547;
    letter-spacing: 0.02em;
}

.xh-ext-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #c8d4e8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.xh-ext-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.xh-ext-desc {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #c8d4e8;
}

.xh-ext-label {
    margin: 0 0 8px;
    font-size: 12px;
    color: #9fb0c8;
}

.xh-ext-url {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #60a5fa;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-all;
    font-family: ui-monospace, Consolas, monospace;
}

.xh-ext-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.xh-ext-btn {
    min-width: 96px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.xh-ext-btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e8eaf0;
}

.xh-ext-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.xh-ext-btn-go {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 55%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.xh-ext-btn-go:hover {
    filter: brightness(1.08);
}

@media (max-width: 480px) {
    .xh-ext-actions {
        flex-direction: column-reverse;
    }

    .xh-ext-btn {
        width: 100%;
    }
}
