/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 移除全局样式重置，改为特定选择器 */
.popup * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 移除 body 样式重置，避免影响主页面 */
/* body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: #000;
    overflow: hidden;
} */

/* 保持其他样式不变 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: #000;
    overflow: hidden;
}

/* 触发按钮样式 */
.trigger-btn {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trigger-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* 弹窗样式 - 基于燕云十六声官网样式 */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.popup .popup-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 580px;
    height: 650px;
    background: url('../images/pop-getcode_f98fc4a5.jpg') no-repeat;
    background-size: 100% 100%;
    font-family: 'Microsoft YaHei', sans-serif;
    transform: translate(-50%, -50%);
}

.popup .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: url('../images/pop-close2_d0f0ae75.png') no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
    transition: 0.5s transform;
}

.popup .popup-close:hover {
    transform: rotate(90deg);
}

.popup h2 {
    width: 280px;
    height: 30px;
    margin: 33px auto 35px;
    text-align: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.popup h2 img {
    display: block;
    width: 100%;
}

.popup .panel {
    box-sizing: border-box;
    display: flex;
    width: 510px;
    height: 60px;
    margin: 0 auto 30px;
    background: #bec2ce;
    border: 1px #acacac solid;
}

.popup .panel input {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px 20px;
    font-size: 28px;
    color: #222;
    border: none;
    outline: none;
    background: transparent;
}

.popup .panel input::placeholder {
    color: #666;
    font-size: 24px;
}

/* 图形验证码样式 */
.popup .panel-captcha {
    position: relative;
}

.popup .panel-captcha input {
    flex: 1;
    padding-right: 140px;
}

.popup .captcha-img {
    position: absolute;
    right: 10px;
    top: 5px;
    width: 120px;
    height: 50px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.popup .panel-authcode {
    position: relative;
}

.popup .panel-authcode input {
    flex: 1;
    padding-right: 220px;
}

.popup .btn-authcode {
    position: absolute;
    right: -15px;
    top: -1px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 61px;
    padding-right: 10px;
    margin: 0;
    font-size: 24px;
    color: #000;
    background: url('../images/btn-authcode_51146d0a.png') no-repeat center center;
    background-size: 100% 100%;
    border: none;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
}

.popup .btn-authcode:disabled {
    opacity: 1; /* 或者 0.8 */
    cursor: not-allowed;
    color: #fff; /* 使用灰色文字表示禁用状态 */
   /*background-filter: grayscale(50%);  可选：添加灰度滤镜 */
}

.popup .btn-get {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 222px;
    height: 47px;
    margin: -15px auto 0 auto;
    font-size: 26px;
    color: #fff;
    background: url('../images/btn-getcode_916197f4.png') no-repeat center center;
    background-size: 100% 100%;
    border: none;
    cursor: pointer;
    outline: none;
}

.popup .btn-get:hover {
    transform: scale(1.05);
}

/* 结果显示弹窗 */
.popup.popup-code .popup-wrap {
    width: 764px;
    height: 573px;
    background: url('../images/yd-pop1-9_ff1b20ef.png') no-repeat;
    background-size: 100% 100%;
}

.popup.popup-code .code-txt {
    text-align: center;
    padding: 50px 20px;
}

.popup.popup-code .code-txt h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    position: relative; /* 使用相对定位 */
    top: 100px; /* 向下移动80像素 */
    left: 60px; /* 向右移动30像素 */
}

.popup.popup-code .code-txt p {
    font-size: 32px;
    font-weight: bold;
    color: #ffff00;
    margin: 120px 0 20px 175px;
    padding: 5px 150px; /* 上下内边距从15px减少到10px，高度减少10像素 */
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    letter-spacing: 3px;
    max-width: calc(100% - 250px);
    margin-right: auto;
}

.popup.popup-code .code-txt .btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 47px;
    font-size: 18px;
    color: #000;
    background: url('../images/btn-authcode_51146d0a.png') no-repeat center center;
    background-size: 100% 100%;
    border: none;
    cursor: pointer;
    outline: none;
    margin-top: 20px;
    margin-left: 140px; /* 向右移动200像素 */
    white-space: nowrap;
}

.popup .btn-authcode:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    color: #000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .popup .popup-wrap {
        width: 90%;
        height: auto;
        min-height: 500px;
    }
    
    .popup .panel {
        width: 90%;
        height: 50px;
    }
    
    .popup .panel input {
        font-size: 20px;
        padding: 8px 15px;
    }
    
    .popup .btn-authcode {
        width: 140px;
        height: 51px;
        font-size: 16px;
    }
    
    .popup .panel-authcode input {
        padding-right: 150px;
    }
    
    .popup .captcha-img {
        width: 100px;
        height: 40px;
    }
}