/* 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;
    overflow: visible;
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 45%, #e0f2fe 100%);
}

#ai-views .ai-views-heading {
    margin-bottom: 1.75rem !important;
}

#ai-views .team-stage {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

#ai-views .team-dock {
    grid-column: 1;
    grid-row: 1;
    width: 150px;
    height: 188px;
    margin-top: 28px;
    pointer-events: none;
    z-index: 0;
}

#ai-views .team-flow {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: center;
    width: 100%;
    padding-top: 28px;
    overflow: visible;
}

#ai-views .team-member {
    position: relative;
    width: 100%;
    max-width: 200px;
    overflow: visible;
    z-index: 1;
    text-align: center;
    cursor: pointer;
    border: none;
    background: transparent;
    box-shadow: none;
    transition: opacity 0.35s ease;
}

#ai-views.has-quote-open .team-member.inactive {
    opacity: 0;
}

#ai-views.has-quote-open .team-member.active {
    z-index: 4;
    opacity: 1;
}

#ai-views.has-quote-open.is-closing .team-member.inactive {
    opacity: 1;
}

#ai-views .profile-panel {
    grid-column: 2 / -1;
    grid-row: 1;
    z-index: 2;
    min-width: 0;
    margin: 28px 0 0;
    padding: 0 0.5rem 0 0.75rem;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transform: translateX(24px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s ease;
}

#ai-views.has-quote-open .profile-panel {
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

#ai-views.has-quote-open.is-closing .profile-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(20px);
    max-height: none;
    overflow: hidden;
}

#ai-views .quote-flow,
#ai-views.has-quote-open .quote-flow,
#ai-views.has-quote-open.is-closing .quote-flow,
#ai-views .profile-panel .quote-flow {
    display: block !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

#ai-views #aiViewsResetBtn,
#ai-views.has-quote-open #aiViewsResetBtn,
#ai-views.has-quote-open.is-closing #aiViewsResetBtn,
#aiViewsResetBtn {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

#ai-views.has-quote-open #aiViewsResetBtn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

#ai-views.has-quote-open.is-closing #aiViewsResetBtn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
}

#ai-views .resume-flow {
    margin: 0 0 1.15rem;
    padding: 0 0 1.05rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    text-align: center;
}

#ai-views .resume-flow h4 {
    margin: 0 0 0.7rem;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a8178;
}

#ai-views .resume-flow ul {
    list-style: none;
    display: inline-block;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

#ai-views .resume-flow li {
    position: relative;
    padding: 0.28rem 0 0.28rem 0.95rem;
    color: #3f3a36;
    font-size: 0.95rem;
    line-height: 1.55;
}

#ai-views.has-quote-open:not(.is-closing) .resume-flow h4 {
    animation: ai-views-resume-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#ai-views.has-quote-open:not(.is-closing) .resume-flow li {
    animation: ai-views-resume-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#ai-views.has-quote-open:not(.is-closing) .resume-flow li:nth-child(1) { animation-delay: 0.08s; }
#ai-views.has-quote-open:not(.is-closing) .resume-flow li:nth-child(2) { animation-delay: 0.16s; }
#ai-views.has-quote-open:not(.is-closing) .resume-flow li:nth-child(3) { animation-delay: 0.24s; }
#ai-views.has-quote-open:not(.is-closing) .resume-flow li:nth-child(4) { animation-delay: 0.32s; }

@keyframes ai-views-resume-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

#ai-views .resume-flow li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c4a574;
}

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

#ai-views.has-quote-open:not(.is-closing) .team-member.active .avatar-ring {
    animation: ai-views-avatar-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#ai-views.has-quote-open:not(.is-closing) .team-member.active h3,
#ai-views.has-quote-open:not(.is-closing) .team-member.active > p {
    animation: ai-views-caption-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#ai-views.has-quote-open:not(.is-closing) .team-member.active > p {
    animation-delay: 0.08s;
}

@keyframes ai-views-avatar-in {
    from {
        opacity: 0.55;
        transform: scale(0.88);
        filter: saturate(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: none;
    }
}

@keyframes ai-views-caption-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

#ai-views .avatar-ring {
    overflow: visible;
}

#ai-views .avatar-ring img {
    position: relative;
    z-index: 1;
    object-position: center top;
}

#ai-views .avatar-ring .ring-glow {
    z-index: 0;
    pointer-events: none;
}

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

#ai-views .team-member:hover img,
#ai-views .team-member:focus-visible img {
    transform: none;
}

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

#ai-views .quote-flow {
    cursor: pointer;
    position: relative;
    max-width: 820px;
    margin: 0;
    padding: 0;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none !important;
    transition: none;
}

#ai-views .quote-flow:hover {
    box-shadow: none !important;
    transform: none;
}

#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: 120px;
}

#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: block;
    margin: 2rem auto 0;
}

@media (max-width: 768px) {
    #ai-views .team-dock {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 20px;
    }
    #ai-views .team-flow {
        gap: 0.35rem;
        padding-top: 20px;
        overflow: visible !important;
    }
    #ai-views .profile-panel {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0.65rem 0 0;
        padding: 0;
        transform: translateY(16px);
    }
    #ai-views.has-quote-open .profile-panel {
        width: auto;
        transform: none;
    }
    #ai-views.has-quote-open.is-closing .profile-panel {
        transform: translateY(12px);
    }
    #ai-views .avatar-ring img { object-position: center top; }
    #ai-views .quote-flow,
    #ai-views .profile-panel .quote-flow {
        padding: 0 !important;
        margin: 0;
    }
    #ai-views #aiViewsQuoteText { min-height: 100px; font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
    #ai-views .team-member,
    #ai-views .profile-panel,
    #ai-views #aiViewsResetBtn {
        transition: none !important;
    }
    #ai-views.has-quote-open .team-member.active .avatar-ring,
    #ai-views.has-quote-open .team-member.active h3,
    #ai-views.has-quote-open .team-member.active > p,
    #ai-views.has-quote-open .resume-flow h4,
    #ai-views.has-quote-open .resume-flow li {
        animation: none !important;
    }
}

@media (max-width: 375px) {
    #ai-views .team-flow { gap: 1rem; }
    #ai-views .avatar-ring img { object-position: center top; }
    #ai-views .quote-flow { padding: 0; }
}
