/* 原模型思考块默认不可见，避免页面初始化和重新渲染时闪现原文。 */
blockquote.think {
    display: none !important;
}

blockquote.think.ai-thinking-active {
    display: block !important;
    box-sizing: border-box;
    width: 260px;
    max-width: 100%;
    margin: 4px 0 8px !important;
    padding: 8px 0 !important;
    border: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

blockquote.think.ai-thinking-active > * {
    display: none !important;
}

blockquote.think.ai-thinking-active::before {
    content: '正在思考…';
    display: block;
    margin-bottom: 10px;
    color: #72818a;
    font: 14px/1.5 system-ui, 'Microsoft YaHei', sans-serif;
}

blockquote.think.ai-thinking-active::after {
    content: '';
    display: block;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(90deg, #e5eeeb 0%, #e5eeeb 35%, #14a583 50%, #e5eeeb 65%, #e5eeeb 100%);
    background-size: 250% 100%;
    animation: ai-thinking-pulse 1.6s ease-in-out infinite;
}

@keyframes ai-thinking-pulse {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    blockquote.think.ai-thinking-active::after { animation: none; }
}
