
body {
    font-family: Arial, sans-serif;
}

.promo-container {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #080200;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    width: 700px;
    height: 220px;
    text-align: center;
    max-width: 100%; /* 确保容器不会超过屏幕宽度 */
    box-sizing: border-box; /* 包括边框和内边距在内的宽度计算 */
}

.promo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 28px; /* 增大字体大小 */
    line-height: 28px; /* 保持垂直居中 */
    color: #ff0000; /* 使用红色来突出 */
    background-color: #222222; /* 添加更暗的背景色*/
    border: 2px solid #444444; /* 边框颜色略浅于背景，以增加层次感 */
    border-radius: 50%; /* 圆形按钮 */
    width: 32px; /* 固定宽度 */
    height: 32px; /* 固定高度 */
    text-align: center; /* 文本居中 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
}

/* 鼠标悬停效果 */
.promo-close:hover {
    background-color: #111111; /* 鼠标悬停时背景色变得更暗 */
    color: #ff0000; /* 鼠标悬停时保持文字颜色不变 */
    transform: scale(1.1); /* 鼠标悬停时放大按钮 */
    transition: background-color 0.2s, transform 0.2s; /* 添加过渡效果 */
}


#promoButton {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    padding: 15px 30px;
    background-color: #000000;
    color: #ff0000;
    border: none;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
    box-sizing: border-box;
}

#promoButton:hover {
    background-color: #FF7F50;
}

#copyCodeButton {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}


/* 响应式设计 */
@media (max-width: 600px) {
    .promo-container {
        width: 90%; /* 在小屏幕上减小宽度 */
        padding: 15px; /* 减小内边距以适应小屏幕 */
    }

    .promo-content h2 {
        font-size: 1.5em; /* 调整标题字体大小 */
    }

    .promo-content p {
        font-size: 1em; /* 调整段落字体大小 */
    }

    .promo-close {
        font-size: 24px; /* 在小屏幕上稍微减小字体大小 */
        width: 28px; /* 减小宽度 */
        height: 28px; /* 减小高度 */
        border-width: 1px; /* 减小边框宽度 */
    }
    #promoButton {
        bottom: 10px; /* 调整按钮在手机上的位置 */
        left: 10px;
    }
}
