/* OneHub 首页 - 毛玻璃效果 */
/* 只改卡片区域为毛玻璃，不碰背景色、不碰文字颜色、不碰导航和底栏 */

/* Canvas三角形动画保持原样，不覆盖 */

/* ===== 对话框 + 宽度 ===== */
.chat-container,
.suggestions {
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.chat-container { margin-top: 20px !important; }
.suggestions { padding: 20px 24px 48px !important; }

/* ===== Agent卡片式Tab ===== */
.agent-tabs {
    display: flex !important;
    gap: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
.agent-tab {
    flex: 1 !important;
    padding: 14px 8px !important;
    border: none !important;
    border-radius: 20px 20px 0 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    color: #999 !important;
    transition: all 0.25s !important;
    position: relative !important;
}
.agent-tab.active {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    color: #1A1A1A !important;
    font-weight: 600 !important;
}
.agent-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6) !important;
    color: #1A1A1A !important;
}

/* Agent卡片 - 毛玻璃 */
.agent-card {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
}

.chat-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}

.chat-messages {
    height: 200px !important;
    min-height: 150px !important;
}
.msg-welcome { padding: 24px 0 !important; }

/* ===== 输入区 ===== */
.chat-input-area {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}
.chat-input-wrapper {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 24px !important;
}

/* ===== 建议芯片 ===== */
.suggestion-chip {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(16px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
}
.suggestion-chip:hover {
    background: rgba(255, 255, 255, 0.75) !important;
}

/* ===== 消息气泡 ===== */
.msg-ai .msg-bubble {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
.msg-user .msg-bubble {
    background: rgba(124, 58, 237, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* ===== 快捷标签 ===== */
.hint-tag {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
.hint-tag:hover {
    background: rgba(255, 255, 255, 0.7) !important;
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
    .chat-container { max-width: 100% !important; margin: 12px auto !important; }
    .chat-messages { height: 160px !important; min-height: 120px !important; }
}


/* ===== 对话消息 Markdown 富文本样式 ===== */
.msg-bubble h1, .msg-bubble h2, .msg-bubble h3, .msg-bubble h4, .msg-bubble h5, .msg-bubble h6 {
    margin: 12px 0 6px; font-weight: 600; line-height: 1.4; color: #333;
}
.msg-bubble h1 { font-size: 18px; }
.msg-bubble h2 { font-size: 16px; }
.msg-bubble h3 { font-size: 15px; }
.msg-bubble h4 { font-size: 14px; }
.msg-bubble h1:first-child, .msg-bubble h2:first-child, .msg-bubble h3:first-child {
    margin-top: 0;
}
.msg-bubble table {
    width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px;
    border-radius: 6px; overflow: hidden;
}
.msg-bubble thead { background: rgba(124, 58, 237, 0.06); }
.msg-bubble th {
    padding: 8px 12px; text-align: left; font-weight: 600; color: #333;
    border-bottom: 2px solid rgba(124, 58, 237, 0.15); font-size: 12px;
}
.msg-bubble td {
    padding: 7px 12px; border-bottom: 1px solid #eee; color: #555;
}
.msg-bubble tr:hover td { background: rgba(124, 58, 237, 0.03); }
.msg-bubble ul, .msg-bubble ol {
    margin: 6px 0; padding-left: 20px; color: #555;
}
.msg-bubble li { margin: 3px 0; line-height: 1.6; }
.msg-bubble hr {
    border: none; height: 1px; background: #e0e0e0; margin: 12px 0;
}
.msg-bubble blockquote {
    margin: 8px 0; padding: 8px 14px; border-left: 3px solid #7c3aed;
    background: rgba(124, 58, 237, 0.04); border-radius: 0 6px 6px 0;
    color: #555; font-size: 13px;
}
.msg-bubble strong { color: #333; font-weight: 600; }
.msg-bubble p { margin: 4px 0; line-height: 1.7; }
.msg-bubble pre {
    background: #1e1e2e; color: #cdd6f4; padding: 12px 16px; border-radius: 8px;
    overflow-x: auto; margin: 8px 0; font-size: 13px; line-height: 1.5;
}
.msg-bubble pre code {
    background: none; padding: 0; color: inherit; font-size: 13px;
}
.msg-bubble code {
    font-family: 'SF Mono', Menlo, 'Consolas', monospace;
    font-size: 12.5px; background: rgba(124, 58, 237, 0.08);
    padding: 2px 5px; border-radius: 4px; color: #7c3aed;
}
.msg-bubble a {
    color: #7c3aed; text-decoration: none; border-bottom: 1px dotted #7c3aed;
}
.msg-bubble a:hover { border-bottom-style: solid; }

