/* 弹出广告样式 */
.ych-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* 设置为容器宽度的百分比 */
    max-width: 600px; /* 设置最大宽度，防止图片过大 */
    height: auto; /* 高度自动，以保持宽高比 */
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1010; /* 确保广告在最上层 */
    display: none; /* 默认隐藏 */
    padding: 20px; /* 添加一些内边距 */
    box-sizing: border-box; /* 包括内边距和边框在宽度内 */
}

.ych-popup img {
    width: 70%; /* 图片宽度100%，根据容器宽度自适应 */
    height: auto; /* 高度自动，保持原始宽高比 */
    display: block; /* 去除图片下方可能出现的空白 */
    margin: 0 auto; /* 水平居中图片 */
}
/* 广告文本样式 */
.ych-text {
    font-size: 18px;
    color: #ee86a8;
    font-weight: bold; /* 加粗文字 */
    margin-bottom: 10px; /* 与图片之间的间距 */
}

/* 关闭按钮样式 */
.close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ee86a8;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.close-button:hover {
    background-color: darkred;
}