/* 夸克网盘下载按钮样式 */
.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%;
    display: none;
    pointer-events: none;
}

/* 弹窗内容 */
.quark-popup-content {
    background-color: #f8f9fa;
    margin: 10% 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;
    pointer-events: auto;
}

/* 弹窗动画 */
@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: 14px;
    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: 5px;
    font-size: 10px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .quark-popup-content {
        width: 90%;
        margin: 20% auto 10% auto;
        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);
    }
    
    .quark-qrcode-container canvas {
        width: 180px !important;
        height: 180px !important;
    }
    
    /* 移动端资源访问说明样式 */
    .quark-resource-note {
        margin-top: 15px;
        padding-top: 10px;
    }
    
    .quark-resource-note p {
        font-size: 12px;
        color: #666;
        line-height: 1.4;
    }
    
    /* 移动端夸克LOGO样式 */
    .quark-logo {
        padding-left: 20px;
    }
    
    .quark-logo img {
        width: 14px;
        height: 14px;
    }
    
    /* 移动端链接样式优化 */
    .quark-mobile-link {
        margin: 15px 0;
    }
    
    .quark-mobile-link a {
        font-size: 16px;
        padding: 12px;
        background-color: #f0edff;
        border-radius: 12px;
        color: #3A25DD;
        font-weight: bold;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(58, 37, 221, 0.1);
        white-space: normal;
        word-wrap: break-word;
    }
    
    .quark-mobile-link a:hover {
        background-color: #e5dfff;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(58, 37, 221, 0.15);
    }
    
    /* 移动端备注优化 */
    .quark-mobile-note {
        font-size: 11px;
        color: #999;
        margin-top: 10px;
        white-space: normal;
        line-height: 1.4;
    }
    
    /* 移动端搜索提示链接样式 */
    .quark-search-suggestion {
        margin-top: 12px;
        padding: 8px;
    }
    
    .quark-search-suggestion a {
        font-size: 12px;
        padding: 5px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-decoration: none;
    }
}

/* 链接失效提示样式 */
.quark-link-expired {
    color: #cf1322;
    font-size: 14px;
    margin: 15px 0;
    font-weight: bold;
}

/* 全网检索按钮样式 */
.quark-search-button {
    background-color: #3A25DD;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(58, 37, 221, 0.3);
    margin-top: 15px;
}

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

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

/* 搜索提示链接样式 */
.quark-search-suggestion {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0edff;
    border: 1px solid #e0d8ff;
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.quark-search-suggestion a {
    color: #3A25DD;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: rgba(58, 37, 221, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    box-sizing: border-box;
}

.quark-search-suggestion a:hover {
    background-color: #3A25DD;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(58, 37, 221, 0.3);
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 错误信息样式 */
.quark-error-message {
    padding: 20px;
    margin: 20px 0;
    background-color: #fff0f0;
    border: 1px solid #ffccc7;
    border-radius: 12px;
    text-align: center;
    color: #cf1322;
    font-size: 14px;
    line-height: 1.5;
}

/* 加载状态样式 */
.quark-popup-content.loading {
    pointer-events: none;
}

/* 加载提示消息样式 */
.quark-loading-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 旋转动画样式 */
.quark-loading-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3A25DD;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
    margin-top: -10px; /* 向上偏移一格 */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}