/* B-P0 extracted from index.html (block 6) */
@keyframes ai-views-breath {
    0%, 100% { box-shadow: 0 0 30px rgba(26, 115, 232, 0.6); opacity: 0.6; }
    50% { box-shadow: 0 0 70px rgba(26, 115, 232, 0.9); opacity: 1; }
}

/* ========== C4-a: AI 观点区美化 ========== */

#ai-views {
    position: relative;
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 45%, #e0f2fe 100%);
}

#ai-views .section-inner > p {
    text-align: center;
    font-size: 1.2rem;
    color: #475569;
    margin: 0 0 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

#ai-views .team-member {
    transition: transform 0.45s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
                opacity 0.35s ease;
}

#ai-views .team-member.inactive {
    opacity: 0.45;
    transform: scale(0.96);
}

#ai-views .team-member.active .avatar-ring {
    background: linear-gradient(135deg, #1a73e8, #60a5fa, #07d96c);
    padding: 3px;
    border-radius: 50%;
}

#ai-views .team-member.active .avatar-ring img {
    border: 3px solid #fff;
}

#ai-views .team-member:hover img,
#ai-views .team-member:focus-visible img {
    transform: scale(1.08);
    box-shadow: 0 10px 36px rgba(26, 115, 232, 0.38);
}

#ai-views .team-member.active .avatar-ring img {
    box-shadow: 0 10px 36px rgba(26, 115, 232, 0.42);
}

/* 默认隐藏空白名言框；点击人物后 #ai-views.has-quote-open 再显示 */
#ai-views .quote-flow {
    display: none;
    cursor: pointer;
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(26, 115, 232, 0.12);
    border-left: 4px solid #1a73e8;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.35s ease, transform 0.35s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

#ai-views.has-quote-open .quote-flow {
    display: block;
}

#ai-views .quote-flow:hover {
    box-shadow: 0 16px 48px rgba(26, 115, 232, 0.14);
    transform: translateY(-2px);
}

#ai-views #aiViewsQuoteText,
#ai-views #aiViewsQuoteAuthor {
    opacity: 0;
    transition: opacity 0.45s ease;
}

#ai-views #aiViewsQuoteText.show,
#ai-views #aiViewsQuoteAuthor.show {
    opacity: 1 !important;
}

#ai-views #aiViewsQuoteText {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.75;
    font-weight: 300;
    color: #334155;
    min-height: 0;
    height: auto;
}

#ai-views #aiViewsQuoteAuthor {
    margin-top: 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

#ai-views #aiViewsQuoteAuthor .author-name {
    color: #1a73e8;
}

#ai-views #aiViewsQuoteAuthor .author-title {
    color: #64748b;
    font-weight: 500;
}

#ai-views .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #1a73e8;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: ai-views-cursor-blink 0.8s step-end infinite;
}

@keyframes ai-views-cursor-blink {
    50% { opacity: 0; }
}

#ai-views #aiViewsResetBtn {
    display: none;
    margin: 2rem auto 0;
}

#ai-views.has-quote-open #aiViewsResetBtn {
    display: block;
}

@media (max-width: 768px) {
    #ai-views .team-flow { gap: 1.5rem; }
    #ai-views .avatar-ring { width: 140px !important; height: 140px !important; }
    #ai-views .quote-flow {
        padding: 1.25rem 1rem 1.25rem 1.25rem;
        margin: 0 0.5rem;
    }
    #ai-views #aiViewsQuoteText { min-height: 0; font-size: 1.15rem; }
}

@media (max-width: 375px) {
    #ai-views .team-flow { gap: 1rem; }
    #ai-views .avatar-ring { width: 120px !important; height: 120px !important; }
    #ai-views .quote-flow { padding: 1rem; }
}
