/* ========================================
   Diagnostic Page - GEO 诊断工具
   ======================================== */

/* Score gauge animation */
@keyframes gauge-fill {
    from { stroke-dashoffset: 502.6; }
    to { stroke-dashoffset: 125.6; }
}

#results-grid circle.text-primary {
    animation: gauge-fill 1.5s ease-out forwards;
}

/* Progress bar animation */
@keyframes progress-fill {
    from { width: 0; }
}

#results-grid .bg-primary {
    animation: progress-fill 1s ease-out forwards;
}

/* Node line style for semantic graph */
.node-line {
    stroke: #2563EB;
    stroke-width: 1;
    stroke-dasharray: 4 4;
    opacity: 0.3;
}

/* Priority card hover */
.shadow-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.shadow-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Diagnose button pulse */
#diagnose-btn {
    transition: all 0.2s ease;
}

#diagnose-btn:hover {
    transform: translateY(-1px);
}

#diagnose-btn:active {
    transform: translateY(0);
}

/* URL input focus state */
#url-input:focus {
    outline: none;
}

/* Decorative glow effects */
.blur-glow {
    filter: blur(120px);
    pointer-events: none;
}

.diagnostic-report-shell {
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.diagnostic-report-shell[data-mode="loading"] #results-grid {
    transform: scale(0.992);
    opacity: 0.72;
    filter: saturate(0.9);
}

.diagnostic-report-shell[data-mode="live"] #results-grid,
.diagnostic-report-shell[data-mode="demo"] #results-grid {
    transform: none;
    opacity: 1;
    filter: none;
}

.diagnostic-transition-overlay {
    position: absolute;
    inset: 6rem 0 auto;
    z-index: 30;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.diagnostic-transition-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 34rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.diagnostic-transition-spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(37, 99, 235, 0.16);
    border-top-color: #2563eb;
    border-radius: 9999px;
    animation: diagnostic-spin 0.9s linear infinite;
    flex-shrink: 0;
}

.diagnostic-report-swap-in {
    animation: diagnostic-report-swap-in 0.55s ease;
}

.diagnostic-signal-donut {
    position: relative;
    width: 13.5rem;
    height: 13.5rem;
    border-radius: 9999px;
    background: conic-gradient(#2563eb 0 25%, #0f766e 25% 50%, #7c3aed 50% 75%, #ea580c 75% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.diagnostic-signal-donut::before {
    content: "";
    position: absolute;
    inset: 1.4rem;
    border-radius: 9999px;
    background: white;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.diagnostic-signal-donut-core {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.diagnostic-funnel-stage {
    position: relative;
}

@keyframes diagnostic-spin {
    to { transform: rotate(360deg); }
}

@keyframes diagnostic-report-swap-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
