/* Zib 网盘检测助手 - 前台样式 */

.zib-ndc-check-section {
    margin: 24px 0;
    padding: 28px 24px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 50%, #eef2ff 100%);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.zib-ndc-check-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.zib-ndc-check-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.zib-ndc-check-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.zib-ndc-check-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.zib-ndc-check-btn:hover::before {
    left: 100%;
}

.zib-ndc-check-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.zib-ndc-check-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.zib-ndc-check-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.zib-ndc-check-btn-icon {
    font-size: 22px;
    line-height: 1;
}

.zib-ndc-check-btn-text {
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.5px;
}

.zib-ndc-check-btn.loading .zib-ndc-check-btn-icon {
    animation: zib-ndc-spin 1s linear infinite;
}

@keyframes zib-ndc-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 结果区域 */
.zib-ndc-results {
    margin-top: 20px;
    display: none;
    position: relative;
    z-index: 1;
}

.zib-ndc-results.show {
    display: block;
    animation: zib-ndc-fadeIn 0.4s ease;
}

@keyframes zib-ndc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 统计栏 */
.zib-ndc-stats-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.zib-ndc-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: #64748b;
}

.zib-ndc-stat-value {
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.zib-ndc-stat-total .zib-ndc-stat-value {
    color: #6366f1;
}

.zib-ndc-stat-valid .zib-ndc-stat-value {
    color: #10b981;
}

.zib-ndc-stat-invalid .zib-ndc-stat-value {
    color: #ef4444;
}

/* 结果列表 */
#zib-ndc-result-list {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.zib-ndc-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.zib-ndc-result-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.zib-ndc-result-item.valid {
    border-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(90deg, #f0fdf4 0%, #fff 100%);
}

.zib-ndc-result-item.invalid {
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(90deg, #fef2f2 0%, #fff 100%);
}

.zib-ndc-result-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
}

.zib-ndc-result-name span:first-child {
    font-size: 20px;
}

.zib-ndc-result-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.zib-ndc-result-status.valid {
    color: #059669;
    background: #d1fae5;
}

.zib-ndc-result-status.invalid {
    color: #dc2626;
    background: #fee2e2;
}

.zib-ndc-result-status.checking {
    color: #64748b;
    background: #f1f5f9;
    animation: zib-ndc-pulse 1.5s ease-in-out infinite;
}

@keyframes zib-ndc-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* 失效下载按钮样式 */
.zmi-download-btn.zib-ndc-invalid {
    filter: grayscale(100%);
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

.zmi-download-btn.zib-ndc-invalid::after {
    content: '已失效';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

/* 响应式 */
@media (max-width: 768px) {
    .zib-ndc-check-section {
        padding: 20px 16px;
        margin: 16px 0;
        border-radius: 12px;
    }

    .zib-ndc-check-btn {
        padding: 14px 36px;
        font-size: 15px;
    }

    .zib-ndc-check-btn-icon {
        font-size: 20px;
    }

    .zib-ndc-stats-bar {
        gap: 10px;
    }

    .zib-ndc-stat-item {
        padding: 8px 14px;
        font-size: 13px;
        gap: 6px;
    }

    .zib-ndc-stat-value {
        font-size: 18px;
    }

    .zib-ndc-result-item {
        padding: 12px 16px;
    }

    .zib-ndc-result-name {
        font-size: 14px;
    }

    .zib-ndc-result-status {
        font-size: 13px;
        padding: 5px 12px;
    }
}
