/* B-P0 extracted from index.html (block 5) */
.founder-story-toggle-wrap { text-align: center; margin-top: 2rem; }
.founder-story-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1.2rem 2.5rem; font-size: 1.2rem; border-radius: 999px;
    background: linear-gradient(135deg, #1a73e8, #60a5fa); color: white;
    border: none; cursor: pointer;
    box-shadow: 0 10px 30px rgba(26,115,232,0.5); transition: all 0.3s; font-weight: 600;
}
.founder-story-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(26,115,232,0.6); }
.founder-story-btn.is-open i { transform: rotate(180deg); }
.founder-story-btn i { transition: transform 0.3s; }
.founder-story-expand {
    display: block;
    height: 0;
    opacity: 0;
    overflow: hidden;
    max-height: none;
    transition:
        height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}
.founder-story-expand.is-open {
    opacity: 1;
}
.founder-story-expand-inner {
    overflow: hidden;
    min-height: 0;
    margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(26,115,232,0.25);
    max-width: 720px; margin-left: auto; margin-right: auto; text-align: left;
    transform: translateY(-10px);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.founder-story-expand.is-open .founder-story-expand-inner {
    transform: none;
}
.founder-story-expand h4 { font-size: 1.5rem; margin: 0 0 1.5rem; color: #f1f5f9; font-weight: 700; }
.founder-story-expand .founder-story-text { font-size: 1.05rem; line-height: 1.9; color: #cbd5e1; }
.founder-story-expand .founder-story-text p { margin: 0 0 1.25rem; }

.founder-story-expand.is-open h4,
.founder-story-expand.is-open .founder-story-text p,
.founder-story-expand.is-open .founder-story-collapse {
    animation: founder-story-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.founder-story-expand.is-open .founder-story-text p:nth-child(1) { animation-delay: 0.08s; }
.founder-story-expand.is-open .founder-story-text p:nth-child(2) { animation-delay: 0.16s; }
.founder-story-expand.is-open .founder-story-text p:nth-child(3) { animation-delay: 0.24s; }
.founder-story-expand.is-open .founder-story-text p:nth-child(4) { animation-delay: 0.32s; }
.founder-story-expand.is-open .founder-story-text p:nth-child(5) { animation-delay: 0.4s; }
.founder-story-expand.is-open .founder-story-collapse { animation-delay: 0.48s; }

@keyframes founder-story-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.founder-story-expand .founder-story-text strong { color: #f1f5f9; }
.founder-story-expand .founder-story-sign { margin-top: 1rem; font-style: italic; color: #94a3b8; font-size: 1rem; }
.founder-story-collapse {
    display: inline-flex; align-items: center; gap: 0.4rem;
    margin-top: 1.5rem; padding: 0.6rem 1.2rem; font-size: 0.95rem;
    color: #94a3b8; background: rgba(26,115,232,0.2);
    border: 1px solid rgba(26,115,232,0.3); border-radius: 999px;
    cursor: pointer; transition: all 0.2s;
}
.founder-story-collapse:hover { color: #f1f5f9; background: rgba(26,115,232,0.3); }
/* 展开时：寄语收掉宽度，头像滑到正中并压在简介卡片上 */
#founder-intro .founder-intro-flex {
    transition: justify-content 0.45s ease, margin 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 4;
}
#founder-intro.founder-expanded .founder-intro-flex {
    justify-content: center !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
}
#founder-intro .founder-avatar-wrap {
    transition: margin 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#founder-intro .founder-quote {
    overflow: hidden;
    max-height: 22rem;
    opacity: 1;
    transform: none;
    transition: opacity 0.35s ease,
                max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                min-width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                flex-basis 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                margin 0.45s ease,
                padding 0.45s ease,
                transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#founder-intro.founder-expanded .founder-quote {
    display: block;
    opacity: 0;
    max-height: 0;
    max-width: 0 !important;
    min-width: 0 !important;
    width: 0 !important;
    flex: 0 0 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    pointer-events: none;
    transform: none;
    border: none !important;
}
#founder-intro.founder-expanded .founder-avatar-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: -7.25rem;
    z-index: 5;
}
#founder-intro.founder-expanded .founder-story-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border: none !important;
    transition: opacity 0.3s ease, max-height 0.35s ease, padding 0.35s ease;
}
#founder-intro.founder-expanded .founder-story-toggle-wrap {
    margin-top: 0;
}
#founder-intro.founder-expanded .founder-story-expand-inner {
    padding-top: 6.75rem !important;
}
@keyframes founder-glow {
    from { filter: drop-shadow(0 0 20px rgba(26,115,232,0.4)); }
    to   { filter: drop-shadow(0 0 50px rgba(26,115,232,0.8)); }
}
@keyframes founder-breath {
    0%,100% { box-shadow: 0 0 30px rgba(26,115,232,0.6); }
    50% { box-shadow: 0 0 60px rgba(26,115,232,0.9); }
}
#founder-intro .founder-bg { transition: opacity 0.6s; }
#founder-intro .founder-avatar-wrap:hover img { box-shadow: 0 0 80px rgba(26,115,232,0.7); transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) {
    .founder-story-expand,
    .founder-story-expand-inner,
    #founder-intro .founder-quote,
    #founder-intro .founder-intro-flex {
        transition: none;
    }
    .founder-story-expand.is-open h4,
    .founder-story-expand.is-open .founder-story-text p,
    .founder-story-expand.is-open .founder-story-collapse {
        animation: none !important;
    }
    #founder-intro .founder-avatar-wrap {
        transition: none;
    }
}
@media (max-width: 768px) {
    #founder-intro .founder-intro-flex { flex-direction: column !important; align-items: center !important; }
    #founder-intro .founder-quote { text-align: center !important; max-width: 100% !important; }
    #founder-intro .founder-quote blockquote { text-align: center !important; border-left: none !important; padding-left: 0 !important; border-top: 4px solid rgba(255,255,255,0.6) !important; padding-top: 1rem !important; margin-top: 1rem !important; }
}
