/* ==========================================================================
   aegis-intelligent.css — 智能检测页样式（华丽：紫色渐变 + 光影）
   类别：页面（aegis-intelligent.php 专属）
   布局：居中大标题 + 四芒星旋转 + 报告卡片（可导出图片）+ 历史列表
   ========================================================================== */

.intel-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 56px 24px 72px;
    position: relative;
    overflow: hidden;
}

/* 紫色光晕背景 */
.intel-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(55% 45% at 30% 20%, rgba(139, 92, 246, 0.18), transparent 70%),
        radial-gradient(45% 40% at 75% 70%, rgba(217, 70, 239, 0.12), transparent 70%),
        radial-gradient(50% 40% at 60% 10%, rgba(34, 211, 238, 0.08), transparent 70%);
}

.intel-main > * { position: relative; z-index: 1; }

/* ---------- 英雄区 ---------- */
.intel-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 460px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* 四芒星发光闪烁特效（无旋转）：隐隐发光，闪烁到几乎白色 + 紫色阴影，再恢复淡紫色 */
.intel-spark {
    font-size: 3.4rem;
    color: #c4b5fd;                 /* 淡紫色 */
    margin-bottom: 20px;
    animation: spark-glow 3.2s ease-in-out infinite;
}

@keyframes spark-glow {
    0%, 100% {
        color: #c4b5fd;             /* 恢复淡紫色 */
        opacity: 0.72;
        filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.35));
    }
    50% {
        color: #f5f3ff;             /* 几乎白色 */
        opacity: 1;
        filter: drop-shadow(0 0 24px rgba(167, 139, 250, 0.9))
                drop-shadow(0 0 44px rgba(217, 70, 239, 0.5));
    }
}

.intel-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.intel-title {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 35%, #f0abfc 70%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 26px rgba(167, 139, 250, 0.35));
}

.intel-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
}

.intel-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.intel-check-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.28), rgba(217, 70, 239, 0.28));
    border: 1px solid rgba(167, 139, 250, 0.5);
    border-radius: var(--radius-pill);
    color: #e9d5ff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 0 26px rgba(167, 139, 250, 0.3), inset 0 0 18px rgba(167, 139, 250, 0.08);
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.intel-check-btn:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(217, 70, 239, 0.4));
    box-shadow: 0 0 40px rgba(167, 139, 250, 0.5), inset 0 0 22px rgba(167, 139, 250, 0.12);
    transform: translateY(-1px);
}

.intel-check-btn:active { transform: scale(0.97); }
.intel-check-btn:disabled { opacity: 0.6; cursor: default; }

.intel-check-btn iconify-icon { font-size: 1.15rem; }

/* ---------- 检测中 ---------- */
.intel-hero.is-detecting .intel-intro.is-fading {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.intel-detecting {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    text-align: center;
}

.detecting-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #c4b5fd, #f0abfc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 26px rgba(167, 139, 250, 0.6));
    animation: detecting-pulse 1.4s ease-in-out infinite;
}

.detecting-title::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    margin-left: 8px;
    vertical-align: text-bottom;
    background: #c4b5fd;
    animation: detecting-caret 0.9s steps(2) infinite;
}

@keyframes detecting-pulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}
@keyframes detecting-caret {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* ---------- 报告卡片 ---------- */
.intel-result {
    max-width: 760px;
    width: 100%;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    animation: result-in 0.5s ease;
}

@keyframes result-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.intel-report {
    width: 100%;
    padding: 28px 30px;
    background: linear-gradient(160deg, rgba(23, 16, 45, 0.9), rgba(13, 26, 51, 0.9));
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(167, 139, 250, 0.12);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.report-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #e9d5ff;
}

.report-brand iconify-icon { color: #c4b5fd; font-size: 1.2rem; filter: drop-shadow(0 0 8px rgba(167,139,250,0.6)); }

.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: var(--radius-pill);
    color: #d8b4fe;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.report-btn:hover {
    background: rgba(167, 139, 250, 0.22);
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.3);
}

.report-btn iconify-icon { font-size: 0.95rem; }

/* 评分 */
.report-score-wrap {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 0 22px;
}

.report-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.report-badge.lv-ok { color: var(--green); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }
.report-badge.lv-warn { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); }
.report-badge.lv-orange { color: #fb923c; background: rgba(251, 146, 60, 0.12); border: 1px solid rgba(251, 146, 60, 0.3); }
.report-badge.lv-danger { color: var(--red); background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3); }
.report-badge iconify-icon { font-size: 1.05rem; }

.report-score {
    font-size: clamp(3.6rem, 11vw, 5.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.report-score.lv-ok { background-image: linear-gradient(135deg, #34d399, #22d3ee); filter: drop-shadow(0 0 30px rgba(52,211,153,0.35)); }
.report-score.lv-warn { background-image: linear-gradient(135deg, #fbbf24, #f59e0b); filter: drop-shadow(0 0 30px rgba(251,191,36,0.35)); }
.report-score.lv-orange { background-image: linear-gradient(135deg, #fb923c, #f97316); filter: drop-shadow(0 0 30px rgba(251,146,60,0.35)); }
.report-score.lv-danger { background-image: linear-gradient(135deg, #f87171, #ef4444); filter: drop-shadow(0 0 30px rgba(248,113,113,0.35)); }

.report-score-label { font-size: 0.9rem; color: var(--text-secondary); letter-spacing: 0.06em; }

.report-ip { font-size: 0.85rem; color: #a78bfa; font-family: var(--mono); }

/* 检查项 */
.report-list {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-md);
}

.report-item.pass { border-left: 3px solid var(--green); }
.report-item.fail { border-left: 3px solid var(--red); }

.report-icon { display: flex; align-items: center; flex-shrink: 0; font-size: 1.4rem; }
.report-item.pass .report-icon { color: var(--green); }
.report-item.fail .report-icon { color: var(--red); }

.report-body { flex: 1; min-width: 0; }

.report-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.report-label iconify-icon { color: #c4b5fd; font-size: 1rem; }

.report-detail { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

.report-state {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
}

.report-item.pass .report-state { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.report-item.fail .report-state { color: var(--red); background: rgba(248, 113, 113, 0.12); }

.report-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 0.78rem;
    color: var(--text-dim);
}

.report-stamp { color: #a78bfa; font-weight: 600; letter-spacing: 0.08em; }

/* 重新检测按钮 */
.intel-again-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.intel-again-btn:hover { border-color: #c4b5fd; color: #e9d5ff; }
.intel-again-btn iconify-icon { font-size: 1rem; }

/* ---------- 历史报告 ---------- */
.intel-history {
    width: 100%;
}

.history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.history-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }

.history-actions { display: flex; gap: 8px; }

.history-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.history-clear-all:hover { border-color: var(--red); color: var(--red); }
.history-clear-all iconify-icon { font-size: 0.9rem; }

.history-list { display: flex; flex-direction: column; gap: 10px; }

.history-empty { font-size: 0.85rem; color: var(--text-dim); padding: 12px 4px; }

.history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hi-info { flex: 1; min-width: 0; }

.hi-time { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.hi-meta { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }

.hi-score { flex-shrink: 0; font-size: 0.95rem; font-weight: 700; }
.hi-score.lv-ok { color: var(--green); }
.hi-score.lv-warn { color: #fbbf24; }
.hi-score.lv-orange { color: #fb923c; }
.hi-score.lv-danger { color: var(--red); }

.hi-actions { display: flex; gap: 6px; flex-shrink: 0; }

.hi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.hi-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(34, 211, 238, 0.08); }
.hi-btn.del:hover { border-color: var(--red); color: var(--red); background: rgba(248, 113, 113, 0.08); }
.hi-btn iconify-icon { font-size: 0.95rem; }

/* ---------- 自绘 POP ---------- */
.intel-pop-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 11, 18, 0.65);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: pop-fade 0.2s ease;
}

@keyframes pop-fade { from { opacity: 0; } to { opacity: 1; } }

.intel-pop {
    max-width: 460px;
    width: calc(100% - 40px);
    padding: 30px 30px 24px;
    background: linear-gradient(160deg, #1a1236, #0d1a33);
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(167, 139, 250, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    animation: pop-in 0.25s ease;
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.intel-pop-icon { font-size: 2.2rem; color: #c4b5fd; filter: drop-shadow(0 0 14px rgba(167,139,250,0.6)); }

.intel-pop-title { font-size: 1.15rem; font-weight: 700; color: #e9d5ff; }

.intel-pop-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.75; }

.intel-pop-actions { display: flex; gap: 10px; margin-top: 8px; }

.intel-pop-btn {
    padding: 9px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.intel-pop-btn.primary {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(217, 70, 239, 0.3));
    border: 1px solid rgba(167, 139, 250, 0.5);
    color: #e9d5ff;
}

.intel-pop-btn.primary:hover { box-shadow: 0 0 20px rgba(167, 139, 250, 0.4); }

.intel-pop-btn.ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.intel-pop-btn.ghost:hover { border-color: var(--accent); color: var(--text); }

/* ---------- 移动端 ---------- */
@media (max-width: 820px) {
    .intel-main { padding: 40px 18px 56px; }
    .intel-hero { min-height: 380px; }
    .intel-title { font-size: clamp(2rem, 9vw, 2.8rem); }
    .intel-report { padding: 20px 18px; }
    .report-head { flex-direction: column; align-items: flex-start; }
    .report-actions { width: 100%; }
    .report-btn { flex: 1; justify-content: center; }
    .history-item { flex-wrap: wrap; }
    .hi-score { order: -1; }
}
