/* 遮罩层样式 */
#mac-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* 弹窗样式 */
#mac-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 852px; /* 设置弹窗宽度 */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding-top: 50px; /* 调整为 50px */
    box-sizing: border-box;
    text-align: center;
}

#mac-popup h1 {
    margin: 0 0 15px;
    color: #333;
}

#mac-popup img {
    max-width: 100%; /* 自适应弹窗宽度 */
    height: auto;
    margin-top: 40px;
}

/* 右上角关闭按钮样式 */
#mac-popup .close-btn {
    position: absolute;
    top: 10px; /* 调整距离顶部的间距 */
    right: 10px; /* 调整距离右侧的间距 */
    width: 20px; /* 恢复宽度 */
    height: 20px; /* 恢复高度 */
    padding: 0;
    line-height: 20px; /* 调整文字居中 */
    text-align: center;
    background-color: #e0e0e0;
    border-radius: 50%; /* 保持按钮为圆形 */
    font-size: 14px; /* 恢复字体大小 */
    font-weight: bold;
    color: #333;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

#mac-popup .close-btn:hover {
    background-color: #d0d0d0; /* 悬停时稍微加深背景颜色 */
}

/* 按钮样式 */
#mac-popup .button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

#mac-popup .button {
    width: 200px; /* 按钮宽度 */
    height: 48px; /* 按钮高度 */
    line-height: 48px; /* 文字居中对齐 */
    background-color: #1456f0; /* 修改按钮背景色 */
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}
#mac-popup .button:nth-child(2) {
    margin-left: 10px;
}

#mac-popup .button:hover {
    background-color: #0039c5; /* 悬停时稍微加深按钮颜色 */
}
/* windows 弹窗样式 */
#win-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#win-popup {
    width: 586px;
    height: 356px;
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
    z-index: 2001;
    box-sizing: border-box;
    padding-top: 48px;
    background-image: url('../img/win-popup-bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* 预加载图片， 防止闪烁 */
#win-popup .win-close-btn::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background-image:
        url('../img/icon-close.png'),
        url('../img/icon-close-hover.png'),
        url('../img/icon-close-active.png');
    background-size: 0 0;
    opacity: 0;
}

#win-popup .win-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    background-image: url('../img/icon-close.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
}

#win-popup .win-close-btn:hover {
    background-image: url('../img/icon-close-hover.png');
}

#win-popup .win-close-btn:active {
    background-image: url('../img/icon-close-active.png');
}

#win-popup .win-popup-title {
    width: 100%;
    height: 32px;
    color: #17181a;
    text-align: center;
    font-size: 24px;
    line-height: 32px;
}

#win-popup .win-popup-content {
    width: 100%;
    height: 178px;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

#win-popup .win-popup-content-item {
    width: 220px;
    height: 178px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#win-popup .win-popup-content-item:nth-child(2) {
    margin-left: 24px;
}

#win-popup .support-item {
    width: 220px;
    height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    background-image: url('../img/win-support-bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

#win-popup .support-item-title {
    color: #363a40;
    font-size: 18px;
    line-height: 24px;
}

#win-popup .support-item-content {
    color: #6d7480;
    font-size: 12px;
    line-height: 16px;
    margin-top: 8px;
}

#win-popup .win-popup-download-btn {
    width: 148px;
    height: 36px;
    margin-top: 24px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    background: linear-gradient(90deg, #4db5ff 0%, #3370ff 100%), #d9d9d9;
    text-align: center;
    line-height: 36px;
    font-size: 12px;
    color: #fff;
    border: none;
    cursor: pointer;
}

#win-popup .win-popup-download-btn:hover {
    background: linear-gradient(90deg, #73c5ff 0%, #598bff 100%), #d9d9d9;
}

#win-popup .win-popup-download-btn:active {
    background: linear-gradient(90deg, #3af 0%, #1a5eff 100%), #d9d9d9;
}
