/* 元流之子弹窗：完整保留原图比例，仅在画面中央留白处放置内容。 */
.join-modal .modal-content {
    position: relative;
    isolation: isolate;
    width: min(100% - 32px, 980px);
    max-width: 980px;
    aspect-ratio: 1706 / 922;
    height: auto;
    min-height: 0;
    padding: 0;
    text-align: left;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.94);
    border-radius: 24px;
    background: #d9e7f8;
    box-shadow: 0 30px 86px rgba(9,25,57,.42);
}

.join-modal-art {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.join-modal-copy {
    position: absolute;
    z-index: 1;
    inset: 13% 26% 14% 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    color: #24466f;
}

.join-modal h3 {
    max-width: 420px;
    margin: 0;
    color: #17385f;
    font-size: clamp(22px,3.2vw,42px);
    line-height: 1.16;
    letter-spacing: .025em;
}

.join-modal-copy > p {
    max-width: 390px;
    margin: 14px 0 0;
    color: #5c7592;
    font-size: clamp(12px,1.25vw,15px);
    line-height: 1.7;
}

.join-modal .modal-buttons {
    display: flex;
    width: min(100%,360px);
    margin-top: 22px;
    gap: 10px;
}

.join-modal .modal-btn {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #1a4d90;
    border-radius: 9px;
    background: #1a4d90;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease,background .2s ease;
}

.join-modal .modal-btn-secondary {
    border-color: #b7c9df;
    background: rgba(255,255,255,.72);
    color: #224775;
}

.join-modal .modal-btn:hover { background: #113d76; transform: translateY(-2px); }
.join-modal .modal-btn-secondary:hover { background: #fff; }

.join-modal .modal-close {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 16px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    color: #31527d;
    font-size: 20px;
    cursor: pointer;
}

.join-modal .modal-close:hover { background: #fff; }

@media (max-width:700px) {
    .join-modal .modal-content {
        width: min(100% - 18px,520px);
        max-width: 520px;
        height: auto;
        max-height: none;
        overflow: hidden;
        border-radius: 16px;
    }

    .join-modal-copy { inset: 10% 23% 10% 34%; }
    .join-modal h3 { font-size: clamp(15px,4.3vw,21px); line-height: 1.12; }
    .join-modal-copy > p { margin-top: 6px; font-size: clamp(8px,2.45vw,11px); line-height: 1.38; }
    .join-modal .modal-buttons { flex-direction: column; width: min(100%,190px); margin-top: 8px; gap: 5px; }
    .join-modal .modal-btn { min-height: 27px; padding: 0 9px; border-radius: 6px; font-size: clamp(8px,2.35vw,11px); }
    .join-modal .modal-close { top: 7px; right: 8px; width: 27px; height: 27px; font-size: 15px; }
}

@media (prefers-reduced-motion:reduce) {
    .join-modal .modal-btn { transition: none; }
}
