﻿.no-scroll {
    overflow: hidden;  /* 禁止滚动 */
}

/* 浮窗的基本样式 */
.ad-popup
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    display: none;
}

.ad-content {
    position: fixed;
    /* display: inline-block; */
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    /* padding: 20px; */
    /* border-radius: 10px; */
    text-align: center;
}

/* 广告图片的样式 */
.ad-image
{
    width: 100%;
 /* 图片宽度适应弹窗宽度 */
    height: auto;
  /* margin: 10px 0; */
    border-radius: 5px;
}

/* 显眼的关闭按钮，跳转到指定URL */
.close-btn-close
{
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 6px 16px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 26px;
    margin-top: 10px;
    transition: background-color 0.3s;
    border: none;
    box-shadow: none;
    outline: none;
}

.close-btn-close:hover
{
    background-color: rgba(0, 0, 0, 0.5);
}

/* 不显眼的关闭按钮 */
.close-btn
{
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    /* opacity: 0.6; */
    transition: opacity 0.3s;
}

.close-btn:hover
{
    opacity: 1;
}

/* 使广告显现 */
.ad-popup.show
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    display: none;
}

/* 媒体查询 - 针对PC设备 */
@media (min-width: 768px)
{
    .ad-content
    {
        width: 30%;
        left: 35%;
        top: 20%;
 /* PC设备上宽度为视口的50% */
    }
}

/* 媒体查询 - 针对手机设备 */
@media (max-width: 767px)
{
    .ad-content
    {
        left: 5%;
        top: 36%;
        width: 90%;
 /* 手机设备上宽度为视口的85% */
    }
}


        /* 覆盖层 */
.overlay
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e6eaeb;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    display: none;
}

.overlay.show
{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e6eaeb;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

        /* 外部容器，圆角背景 */
.timer-container
{
    background: #fff;
    padding-top: 60px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 20px;
    border-radius: 20px;
    text-align: center;
}

        /* 圆形进度条 */
.progress-ring
{
    transform: rotate(-90deg);
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.progress-ring circle
{
    fill: none;
    stroke-width: 16;
}

.circle-background
{
    stroke: #4caf50;
}

.circle-progress
{
    stroke: #e6e6e6;
    stroke-dasharray: 628;
 /* 更新为较大的圆周长 (2 * PI * 半径 100) */
    stroke-dashoffset: 628;
    transition: none;
 /* 禁用默认的过渡 */
}

        /* 倒计时文字样式，居中显示在圆形进度条中 */
.countdown
{
    font-size: 50px;
    font-weight: bold;
    color: #333;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
}

        /* 媒体查询 - 针对PC设备 */
@media (min-width: 768px)
{
    .countdown
    {
        top: 39%;
    }
}

        /* 媒体查询 - 针对手机设备 */
@media (max-width: 767px)
{
    .countdown
    {
        top: 41%;
    }
}

        /* 标题样式 */
.alert-big-title
{
    margin-top: 20px;
    font-size: 24px;
    color: #242424;
}

.js-alert-btn
{
    border: none;
    box-shadow: none;
    outline: none;
    border-radius: 10px;
    background-color: #4ab0f7;
    line-height: 55px;
    width: 286px !important;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: 2px;
    margin-top: 20px;
}

.alert-footer
{
    margin: 0 auto;
    height: 42px;
    width: 120px;
}

.alert-footer-icon
{
    float: left;
    margin-top: 20px;
}

.alert-footer-text p
{
    text-align: left;
    color: #7a7a7a;
    font-size: 18px;
    line-height: 18px;
}