/* 网盘链接检测插件样式 */

.pan-check-container {
    margin-top: 15px;
}

.pan-check-btn {
    width: 100%;
    height: 45px;
    line-height: 45px;
    text-align: center;
    vertical-align: middle;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    /* 默认蓝色 - 未检测状态 */
    background: #007cba;
    color: #fff;
}

.pan-check-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,124,186,0.3);
}

.pan-check-btn:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pan-check-btn.checking {
    background: #ffc107;
    color: #212529;
}

.pan-check-btn.result-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

.pan-check-btn.result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.pan-check-btn.valid-result {
    background: #28a745;
    color: white;
}

.pan-check-btn.valid-result:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.pan-check-btn.invalid-result {
    background: #dc3545;
    color: white;
    cursor: pointer;
    position: relative;
}

.pan-check-btn.invalid-result:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.pan-check-btn.invalid-result::after {
    content: "点击跳转";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pan-check-btn.invalid-result:hover::after {
    opacity: 1;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .pan-check-container {
        margin-top: 10px;
    }
    
    .pan-check-btn {
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
}

/* 与ripro-v2主题的兼容性 */
.ripro-v2-widget-shop-down .pan-check-container {
    margin-top: 15px;
}

.async-shop-down + .pan-check-container {
    margin-top: 15px;
}

/* 确保检测按钮与下载按钮样式一致 */
.async-shop-down + .pan-check-container .pan-check-btn,
.ripro-v2-widget-shop-down .pan-check-container .pan-check-btn {
    width: 100%;
    height: 45px;
    line-height: 45px;
    text-align: center;
    vertical-align: middle;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    /* 默认蓝色 - 未检测状态 */
    background: #007cba;
    color: #fff;
}

/* 确保所有状态的颜色一致性 */
.async-shop-down + .pan-check-container .pan-check-btn.checking,
.ripro-v2-widget-shop-down .pan-check-container .pan-check-btn.checking {
    background: #ffc107;
    color: #212529;
}

.async-shop-down + .pan-check-container .pan-check-btn.valid-result,
.ripro-v2-widget-shop-down .pan-check-container .pan-check-btn.valid-result {
    background: #28a745;
    color: white;
}

.async-shop-down + .pan-check-container .pan-check-btn.invalid-result,
.ripro-v2-widget-shop-down .pan-check-container .pan-check-btn.invalid-result {
    background: #dc3545;
    color: white;
}


.pan-check-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 124, 186, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 124, 186, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 124, 186, 0);
    }
}

.pan-check-btn.checking {
    animation: none;
}

/* 加载动画 */
.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
