@charset "utf-8";

body.site-notice-open {
    overflow: hidden;
}

.site-notice-popup {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(2px);
}

.site-notice-popup.is-open {
    display: flex;
}

.site-notice-card {
    display: flex;
    flex-direction: column;
    width: min(var(--site-notice-width, 520px), 100%);
    height: min(var(--site-notice-height, 600px), calc(100vh - 48px));
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    animation: siteNoticeEnter 0.2s ease-out;
}

.site-notice-head {
    position: relative;
    flex: 0 0 auto;
    padding: 28px 64px 22px 28px;
    color: #fff;
    background: linear-gradient(135deg, #6b1210 0%, #8d2420 100%);
}

.site-notice-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    opacity: 0.78;
}

.site-notice-title {
    margin: 0;
    font-size: clamp(21px, 4vw, 27px);
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.site-notice-close-icon {
    position: absolute;
    top: 17px;
    right: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.site-notice-close-icon:hover,
.site-notice-close-icon:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    outline: none;
}

.site-notice-close-icon span {
    font-size: 29px;
    font-weight: 300;
    line-height: 1;
}

.site-notice-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 28px;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.site-notice-actions {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    padding: 16px 28px 22px;
    border-top: 1px solid #f0f1f3;
}

.site-notice-confirm {
    min-width: 112px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #6b1210;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.site-notice-confirm:hover,
.site-notice-confirm:focus-visible {
    background: #52100e;
    outline: 3px solid rgba(107, 18, 16, 0.2);
    outline-offset: 2px;
}

@keyframes siteNoticeEnter {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .site-notice-popup {
        align-items: flex-end;
        padding: 16px;
    }

    .site-notice-card {
        height: min(var(--site-notice-height, 600px), calc(100vh - 32px));
        border-radius: 14px;
    }

    .site-notice-head { padding: 23px 58px 19px 22px; }
    .site-notice-body { padding: 22px; font-size: 15px; }
    .site-notice-actions { padding: 14px 22px 20px; }
    .site-notice-confirm { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .site-notice-card { animation: none; }
}
