@import "variables-pc.css";

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden; /* 默认隐藏，由 JS 控制显示 */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup-container {
    padding: 3rem 3.875rem; /* 64px 78px → 4rem 4.875rem */
    width: 25rem; /* 768px → 48rem */
    text-align: center;
    position: relative;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.3); /* 20px 60px → 1.25rem 3.75rem */
    background-image: linear-gradient(180deg, #F9C091 0%, #FDF7D4 100%);
    border: 0.1875rem solid #FEFCFC; /* 3px → 0.1875rem */
    border-radius: 1.875rem; /* 30px → 1.875rem */
}

.popup-close {
    position: absolute;
    top: 1.6875rem; /* 43px → 2.6875rem */
    right:1.375rem; /* 38px → 2.375rem */
    font-size: 1.75rem; /* 28px → 1.75rem */
    cursor: pointer;
    width: 1.75rem; /* 28px → 1.75rem */
    height: 1.75rem; /* 28px → 1.75rem */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23491E03" stroke-width="2"><path d="M18 6L6 18M6 6l12 12"/></svg>') no-repeat center;
    background-size: contain;
}

.popup-icon {
    width: 4.75rem;
    height: 4.75rem;
    margin-bottom: 1.125rem;
}

.popup-title {
    margin:0rem 0 0.5rem;
    font-size: 1.875rem; /* 36px → 2.25rem */
    color: #491E03;
    text-align: center;
    font-weight: 500;
}

.popup-desc {
    margin-bottom: 1.875rem; /* 30px → 1.875rem */
    line-height: 1.5;
    font-size: 1.125rem; /* 30px → 1.875rem */
    color: #955121;
    text-align: center;
    font-weight: 400;
}

.popup-btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    background: #FF7A00;
    border-radius: 2.75rem; /* 44px → 2.75rem */
    font-size: 1.125rem;
    color: #FFFFFF;
    text-align: center;
    width: 100%;
    padding-top: 1.4375rem; /* 23px → 1.4375rem */
    padding-bottom: 1.3125rem; /* 21px → 1.3125rem */
}

.popup-btn:hover {
    background: #F26343;
}