#zcg-chat-window {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 9999;
    width: 360px;
    height: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(221, 221, 221, 0.8);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.zcg-chat-header {
    padding: 15px 20px;
    background: var(--main-color);
    color: white;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    box-sizing: border-box;
}
#zcg-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#zcg-close-btn:hover {
    background: rgba(255,255,255,0.2);
}

#zcg-chat-messages {
    height: calc(500px - 60px - 40px);
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}
#zcg-chat-messages::-webkit-scrollbar {
    width: 8px;
}
#zcg-chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.zcg-system-message {
    align-self: flex-start;
    max-width: 100%;
}
.zcg-system-message .text {
    background: rgba(245, 245, 245, 0.9);
    padding: 12px 15px;
    border-radius: 18px 18px 18px 5px;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}
.zcg-system-message.error .text {
    color: #ff4d4f;
}

.zcg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.zcg-option-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.zcg-option-btn:hover {
    background: var(--hover-bg);
    border-color: var(--main-color);
}
.zcg-option-btn.reset-btn {
    margin-top: 10px;
}

.zcg-user-message {
    align-self: flex-end;
    max-width: 100%;
}
.zcg-user-message .text {
    background: rgba(66, 133, 244, 0.9);
    color: white;
    padding: 12px 15px;
    border-radius: 18px 18px 5px 18px;
    font-size: 14px;
    line-height: 1.5;
}

.zcg-result-message {
    align-self: flex-start;
    width: 100%;
}
.zcg-post-item {
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    font-size: 14px;
}
.zcg-post-item a {
    color: var(--main-color);
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
}
.zcg-post-item a:hover {
    text-decoration: underline;
}
.zcg-post-desc {
    font-size: 13px;
    color: var(--text-color-secondary);
    margin-top: 5px;
    line-height: 1.4;
}
.no-result {
    padding: 10px;
    color: var(--text-color-secondary);
    font-size: 14px;
}

.zcg-loading {
    height: 40px;
    padding: 10px 20px;
    text-align: center;
    color: var(--text-color-secondary);
    font-size: 14px;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    box-sizing: border-box;
    display: none;
}