.pan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.pan-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.pan-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 1px solid #eee;
}
.pan-modal-header {
    margin-bottom: 30px;
}
.pan-modal-title {
    font-size: 28px;
    color: #333;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.quark-modal .pan-modal-title {
    color: #e53333;
}
.baidu-modal .pan-modal-title {
    color: #2d8cf0;
}
.qrcode-wrap {
    margin-bottom: 30px;
}
.qrcode-img {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border: 8px solid #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    object-fit: cover;
}
.pan-modal-desc {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin: 15px 0;
    white-space: nowrap;
    font-weight: 500;
}
.pan-modal-tips {
    background-color: #f7f9ff;
    border-left: 4px solid #2d8cf0;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0 30px;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}
.quark-modal .pan-modal-tips {
    border-left-color: #e53333;
    background-color: #fff5f5;
}
.close-modal {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #2d8cf0 0%, #1c7ed6 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
}
.quark-modal .close-modal {
    background: linear-gradient(135deg, #e53333 0%, #c92828 100%);
}
.close-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.pan-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
}
.pan-modal.active {
    opacity: 1;
    visibility: visible;
}
.pan-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: scale(1);
    transition: none;
}
.pan-modal.active .pan-modal-content {
    transform: scale(1);
}
.resource-title-modal {
    text-align: center;
    padding: 10px 0;
    margin-bottom: 15px;
    background: linear-gradient(120deg, #f0f8ff 0%, #e8f4f8 100%);
    border-radius: 8px;
}
.resource-title-modal h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}
.qrcode-wrap {
    text-align: center;
    margin: 0 auto 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    max-width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.qrcode-loading {
    color: #666;
    font-size: 14px;
    animation: loading 1.5s infinite linear;
    position: absolute;
    z-index: 1;
}
.qrcode-img.loaded + .qrcode-loading {
    display: none;
}
@keyframes loading {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
.qrcode-img {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    display: none;
    z-index: 2;
    position: relative;
}
.qrcode-img.loaded {
    display: block;
}
.pan-modal-title {
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #222;
    font-weight: 600;
}
.pan-modal-desc {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}
.pan-modal-tips {
    text-align: center;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    margin: 15px 0;
}
.close-modal {
    display: block;
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.close-modal:hover {
    background: #0056b3;
}
.baidu-modal .pan-modal-title {
    color: #2d8cf0;
}
.quark-modal .pan-modal-title {
    color: #ff5722;
}