/* @plugin: system_ai */

.sai-settings {
    animation: saiFadeIn 0.7s ease-out;
}

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

/* ── 英雄区 ─────────────────────────────────────────────── */

.sai-hero {
    position: relative;
    width: 100%;
    margin-bottom: 28px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.18);
    box-shadow:
        0 12px 44px rgba(124, 58, 237, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.sai-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 88% 18%, rgba(139, 92, 246, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 8% 88%, rgba(59, 130, 246, 0.14) 0%, transparent 50%),
        linear-gradient(135deg, #faf5ff 0%, #f5f3ff 38%, #eef2ff 72%, #f0f9ff 100%);
}

.sai-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, transparent 92%);
}

.sai-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(52px);
    pointer-events: none;
}

.sai-hero-glow--a {
    width: 240px;
    height: 240px;
    top: -90px;
    right: 8%;
    background: rgba(139, 92, 246, 0.38);
    opacity: 0.6;
}

.sai-hero-glow--b {
    width: 180px;
    height: 180px;
    bottom: -70px;
    left: 6%;
    background: rgba(59, 130, 246, 0.28);
    opacity: 0.55;
}

.sai-hero-glow--c {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 28%;
    background: rgba(6, 182, 212, 0.22);
    opacity: 0.45;
}

.sai-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 32px;
    padding: 30px 34px;
}

.sai-hero-brand {
    flex: 1 1 360px;
    min-width: 0;
}

.sai-hero-eyebrow-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sai-hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.55);
    animation: saiPulse 2.4s ease-in-out infinite;
}

@keyframes saiPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.75;
    }
}

.sai-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7c3aed;
}

.sai-hero-title {
    font-size: clamp(2rem, 4vw, 2.65rem) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 42%, #2563eb 78%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.sai-hero-tagline {
    margin-top: 10px;
    max-width: 36rem;
    font-size: clamp(0.92rem, 1.5vw, 1.05rem);
    line-height: 1.6;
    font-weight: 500;
    color: #475569;
}

.sai-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sai-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #5b21b6;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.07);
}

.sai-hero-chip i {
    font-size: 13px;
    color: #7c3aed;
}

/* 右侧 AI 核心视觉 */
.sai-hero-visual {
    position: relative;
    flex: 0 0 148px;
    width: 148px;
    height: 148px;
    margin-right: 12px;
}

.sai-hero-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(139, 92, 246, 0.28);
}

.sai-hero-orbit--outer {
    animation: saiOrbitSpin 18s linear infinite;
}

.sai-hero-orbit--inner {
    inset: 18px;
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.18);
    animation: saiOrbitSpin 12s linear infinite reverse;
}

@keyframes saiOrbitSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.sai-hero-core {
    position: absolute;
    inset: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow:
        0 0 32px rgba(139, 92, 246, 0.22),
        inset 0 0 24px rgba(255, 255, 255, 0.45);
}

.sai-hero-core i {
    font-size: 2rem;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.25));
}

.sai-hero-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.sai-hero-node--1 {
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: saiNodeFloat 3s ease-in-out infinite;
}

.sai-hero-node--2 {
    bottom: 18px;
    right: 10px;
    animation: saiNodeFloat 3.6s ease-in-out infinite 0.4s;
}

.sai-hero-node--3 {
    bottom: 28px;
    left: 8px;
    animation: saiNodeFloat 4s ease-in-out infinite 0.8s;
}

@keyframes saiNodeFloat {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.85;
    }
    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

[data-mantine-color-scheme="dark"] .sai-hero {
    border-color: rgba(139, 92, 246, 0.32);
    box-shadow:
        0 14px 48px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(139, 92, 246, 0.14) inset;
}

[data-mantine-color-scheme="dark"] .sai-hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 88% 18%, rgba(139, 92, 246, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 8% 88%, rgba(59, 130, 246, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #0f0a1a 0%, #1e1033 38%, #0f172a 72%, #0b1220 100%);
}

[data-mantine-color-scheme="dark"] .sai-hero-grid {
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(167, 139, 250, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.12) 1px, transparent 1px);
}

[data-mantine-color-scheme="dark"] .sai-hero-eyebrow {
    color: #c4b5fd;
}

[data-mantine-color-scheme="dark"] .sai-hero-title {
    background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 40%, #93c5fd 78%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-mantine-color-scheme="dark"] .sai-hero-tagline {
    color: #cbd5e1;
}

[data-mantine-color-scheme="dark"] .sai-hero-chip {
    color: #e9d5ff;
    background: rgba(30, 27, 46, 0.78);
    border-color: rgba(167, 139, 250, 0.28);
}

[data-mantine-color-scheme="dark"] .sai-hero-core {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.28), rgba(59, 130, 246, 0.16));
    border-color: rgba(167, 139, 250, 0.32);
    box-shadow:
        0 0 36px rgba(139, 92, 246, 0.28),
        inset 0 0 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 720px) {
    .sai-hero-content {
        padding: 22px 20px;
    }

    .sai-hero-visual {
        display: none;
    }

    .sai-hero-chips {
        width: 100%;
    }
}

/* ── 配置卡片 ───────────────────────────────────────────── */

.sai-field-wrap {
    width: 100%;
}

.sai-field-wrap--hidden {
    display: none !important;
}

.sai-card-icon {
    color: var(--mantine-color-blue-6);
    font-size: 1.2rem;
}
