/* 修复:hidden 属性必须盖过面板自身的 display:flex,否则点击关闭无效 */
#zdac-panel[hidden] { display: none !important; }
/* Zendev AI Concierge — Widget v0.1.0 */
#zdac-root { --zdac-accent: #0E9F6E; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
/* 启动器:一体胶囊按钮 = 图标 + 文字,不再拆成两个按键 */
#zdac-fab { position: fixed; right: 22px; bottom: 22px; z-index: 99990; height: 56px; border: 0; border-radius: 28px;
    padding: 0 20px 0 16px; background: var(--zdac-accent); color: #fff; cursor: pointer;
    display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .15s, box-shadow .15s; }
#zdac-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
#zdac-fab:hover { transform: scale(1.06); }
#zdac-panel { position: fixed; right: 22px; bottom: 90px; width: 400px; max-width: calc(100vw - 32px); height: 600px;
    max-height: calc(100vh - 120px); background: #fff; border-radius: 14px; z-index: 99991; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(10,20,30,.28); border: 1px solid #E4E9EF; }
#zdac-panel header { background: var(--zdac-accent); color: #fff; padding: 12px 16px; display: flex;
    justify-content: space-between; align-items: center; }
#zdac-panel header small { display: block; opacity: .85; font-size: 11px; }
#zdac-close { background: none; border: 0; color: #fff; font-size: 16px; cursor: pointer; }
#zdac-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #F7F9FB; }
.zdac-msg { max-width: 85%; margin-bottom: 10px; padding: 10px 13px; border-radius: 12px; font-size: 14px;
    line-height: 1.55; white-space: normal; word-break: break-word; }
.zdac-user { margin-left: auto; background: var(--zdac-accent); color: #fff; border-bottom-right-radius: 4px; }
.zdac-ai { background: #fff; border: 1px solid #E4E9EF; border-bottom-left-radius: 4px; }
.zdac-ai a { color: #2563EB; word-break: break-all; }
.zdac-typing { color: #9AA5B1; letter-spacing: 2px; }
.zdac-src { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #E4E9EF; font-size: 12px; color: #5B6672; }
#zdac-chips { padding: 0 12px 8px; background: #F7F9FB; display: flex; flex-wrap: wrap; gap: 6px; }
.zdac-chip { border: 1px solid var(--zdac-accent); color: var(--zdac-accent); background: #fff; border-radius: 16px;
    padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.zdac-chip:hover { background: var(--zdac-accent); color: #fff; }
#zdac-form { display: flex; padding: 10px; gap: 8px; border-top: 1px solid #E4E9EF; background: #fff; }
#zdac-input { flex: 1; border: 1px solid #D4DBE3; border-radius: 20px; padding: 9px 14px; font-size: 14px; outline: none; }
#zdac-input:focus { border-color: var(--zdac-accent); }
#zdac-form button { border: 0; background: var(--zdac-accent); color: #fff; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; font-size: 15px; }
#zdac-panel footer { font-size: 10.5px; color: #9AA5B1; text-align: center; padding: 5px; background: #fff; }
.zdac-leadcard { background: #fff; border: 1px solid var(--zdac-accent); width: 92%; }
.zdac-leadcard input { display: block; width: 100%; margin: 6px 0; border: 1px solid #D4DBE3; border-radius: 8px;
    padding: 8px 10px; font-size: 13px; box-sizing: border-box; }
.zdac-leadcard button { margin-top: 4px; background: var(--zdac-accent); color: #fff; border: 0; border-radius: 8px;
    padding: 9px 18px; cursor: pointer; font-size: 14px; }
@media (max-width: 768px) {
    #zdac-panel { right: 0; bottom: 0; width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
    #zdac-fab { right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
    #zdac-fab span { display: none; }
    #zdac-fab { padding: 0; width: 56px; justify-content: center; border-radius: 50%; }
}
