/* 弹窗主体 - 优化版 */
.popup {
    display: none;
    position: absolute;
    z-index: 10000;
    width: 500px;
    height: auto;
    background: #fff;
    margin-left: -10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 弹窗标题区域 - 渐变背景 */
.popup .putitle {
    text-align: center;
    font-size: 22px;
    padding: 20px 15px;
    line-height: 1.4;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

/* 关闭按钮 */
.popup span {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: bold;
}

.popup span:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 弹窗内容区域 */
.popup .pucenter {
    overflow: auto;
    max-height: 500px;
    padding: 25px 20px;
    background: #fff;
}

.popup .pucenter p {
    text-indent: 0;
    padding: 0;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 15px;
    color: #444;
}

/* 链接样式优化 */
.popup .pucenter a {
    color: #667eea;
    text-decoration: none;
    border: none;
    padding: 8px 20px;
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.popup .pucenter a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 字体图标 */
@font-face {
    font-family: iconfont;
    src: url(iconfont.eot);
    src: url(iconfont.eot?#iefix) format('embedded-opentype'),
         url(iconfont.woff2) format('woff2'),
         url(iconfont.woff) format('woff'),
         url(iconfont.ttf) format('truetype'),
         url(iconfont.svg#iconfont) format('svg')
}

.iconfont {
    font-family: iconfont !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 响应式设计 */
@media screen and (max-width: 501px) {
    .popup {
        width: 90%;
        max-width: 340px;
        margin-left: 0;
    }
    
    .popup .putitle {
        font-size: 18px;
        padding: 18px 15px;
    }
    
    .popup .pucenter {
        padding: 20px 15px;
    }
    
    .popup .pucenter p {
        font-size: 14px;
    }
}