/* ============================================================
   Watchpilot · thinking.css
   段: AI Thinking Panel(气泡演出)
   (从 hero-panels.css 第 1150-1326 行拆出)
   ============================================================ */

  /* ═════════════ AI Thinking Panel(气泡演出) ═════════════ */
  .ai-dock { position: relative; }
  
  .thinking-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 14px;
    right: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    
    padding: 14px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0,0,0,0.06);
    z-index: 80;
    max-height: 360px;
    overflow-y: auto;
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .thinking-panel.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  
  .thinking-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-subtle);
  }
  .thinking-eyebrow {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .thinking-close {
    cursor: pointer;
    color: var(--text-3);
    font-size: 16px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.12s;
  }
  .thinking-close:hover { color: var(--text-1); background: var(--bg-subtle); }
  
  .thinking-question {
    font-size: 12px;
    color: var(--text-2);
    background: var(--bg-subtle);
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 12px;
  }
  
  .thinking-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 8px;
    font-weight: 500;
  }
  
  .thinking-dots {
    display: inline-flex;
    gap: 3px;
  }
  .thinking-dots span {
    width: 5px;
    height: 5px;
    background: var(--text-3);
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out;
  }
  .thinking-dots span:nth-child(2) { animation-delay: 0.16s; }
  .thinking-dots span:nth-child(3) { animation-delay: 0.32s; }
  @keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
  }
  
  .thinking-tools {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--text-3);
    font-family: var(--font-mono);
  }
  .thinking-tool-call {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--bg-subtle);
    border-radius: 4px;
  }
  .thinking-tool-call.done { color: var(--text-2); }
  .thinking-tool-call .icon {
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--text-3);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .thinking-tool-call.done .icon {
    background: var(--down);
    border-color: var(--down);
    position: relative;
  }
  .thinking-tool-call.done .icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: 800;
  }
  .thinking-tool-call.active .icon {
    border-color: var(--accent);
    border-top-color: transparent;
    animation: tool-spin 0.8s linear infinite;
  }
  @keyframes tool-spin { to { transform: rotate(360deg); } }
  
  .thinking-answer {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-1);
    font-weight: 500;
  }
  .thinking-answer .hl-up { color: var(--up); font-weight: 600; }
  .thinking-answer .hl-down { color: var(--down); font-weight: 600; }
  .thinking-answer .hl-stock {
    color: var(--text-1);
    border-bottom: 1px dashed var(--text-3);
    cursor: pointer;
    font-weight: 600;
  }
  
  .thinking-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-3);
  }
  .thinking-deep-link {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
  }
  
  /* Tooltip on truncated stock names */
  .ds-stock-name[title]:hover {
    position: relative;
    z-index: 5;
  }
