/* 夸克网盘下载按钮样式 */
.quark-download-button {
    background-color: #3A25DD;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(58, 37, 221, 0.3);
    outline: none;
}

.quark-download-button:hover {
    background-color: #2A1BB8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(58, 37, 221, 0.4);
}

.quark-download-button:active {
    background-color: #1F1585;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(58, 37, 221, 0.3);
}

/* 弹窗背景 */
.quark-link-popup {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: transparent;
    display: none;
}

/* 弹窗内容 */
.quark-popup-content {
    background-color: #f8f9fa;
    margin: 15% auto;
    padding: 15px;
    width: 85%;
    max-width: 380px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 0, 0, 0.5), 0 0 30px rgba(255, 0, 0, 0.6);
    animation-name: popupfade;
    animation-duration: 0.4s;
    text-align: center;
}

/* 弹窗动画 */
@keyframes popupfade {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* 关闭按钮 */
.quark-popup-close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.quark-popup-close:hover,
.quark-popup-close:focus {
    color: #666;
    text-decoration: none;
    cursor: pointer;
}

/* 桌面端二维码样式 */
.quark-desktop-qrcode {
    width: 100%;
}

/* 扫码说明 */
.quark-scan-instructions {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* 二维码容器 */
.quark-qrcode-container {
    text-align: center;
    margin: 15px auto;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    width: fit-content;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quark-qrcode-container canvas {
    width: 200px !important;
    height: 200px !important;
}

/* 资源访问说明 */
.quark-resource-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.quark-resource-note p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 夸克LOGO样式 */
.quark-logo {
    color: #3A25DD;
    font-weight: bold;
    position: relative;
    padding-left: 22px;
    display: inline-flex;
    align-items: center;
}

.quark-logo img {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

/* 移动端链接样式 */
.quark-mobile-link {
    display: none;
    width: 100%;
    text-align: center;
}

/* 移动端操作说明 */
.quark-mobile-instructions {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 移动端链接 */
.quark-mobile-link a {
    color: #3A25DD;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    display: block;
    padding: 8px;
    background-color: #f0edff;
    border-radius: 8px;
    margin: 5px 0;
}

.quark-mobile-link a:hover {
    text-decoration: underline;
}

/* 移动端备注 */
.quark-mobile-note {
    margin-top: 10px;
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .quark-popup-content {
        width: 90%;
        margin: 60% auto 10% auto;
    }
    
    .quark-qrcode-container canvas {
        width: 180px !important;
        height: 180px !important;
    }
}

/* 调整移动端链接大小 */
.quark-mobile-link a {
    width: 100%;
    box-sizing: border-box;
    display: block;
}