/* 活动页 AI Advisor 浮窗（所有模板通用） */
.cc-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: #101a2e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 16px 38px rgba(16, 26, 46, 0.32);
    transition: transform .18s ease, box-shadow .18s ease;
}

.cc-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(16, 26, 46, 0.38); }

.cc-fab i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d17c;
    box-shadow: 0 0 0 0 rgba(52, 209, 124, .6);
    animation: cc-pulse 2.2s infinite;
}

@keyframes cc-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 209, 124, .55); }
    70% { box-shadow: 0 0 0 8px rgba(52, 209, 124, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 209, 124, 0); }
}

.cc-panel {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 9991;
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 120px));
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(10, 18, 34, 0.34);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.cc-panel.open { display: flex; }

.cc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #101a2e, #1b2b4a);
    color: #fff;
}

.cc-head strong { font-size: 14px; }
.cc-head .cc-status { font-size: 11px; color: #9fb1cc; }

.cc-close {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.cc-close:hover { background: rgba(255, 255, 255, .22); }

.cc-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f7f9fd;
}

.cc-msg { display: flex; }
.cc-msg.user { justify-content: flex-end; }

.cc-bubble {
    max-width: 88%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.65;
    color: #24304a;
    background: #fff;
    border: 1px solid #e6ecf7;
    border-bottom-left-radius: 5px;
}

.cc-msg.user .cc-bubble {
    background: #2f6bff;
    border-color: #2f6bff;
    color: #fff;
    border-radius: 14px 14px 5px 14px;
}

.cc-typing { display: inline-flex; gap: 4px; }
.cc-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9aa8bd;
    animation: cc-bounce 1s infinite ease-in-out;
}
.cc-typing i:nth-child(2) { animation-delay: .15s; }
.cc-typing i:nth-child(3) { animation-delay: .3s; }

@keyframes cc-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: .5; }
    40% { transform: translateY(-4px); opacity: 1; }
}

.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.cc-chips button {
    padding: 6px 11px;
    border: 1px solid #dbe4f3;
    border-radius: 999px;
    background: #fff;
    color: #40506a;
    font-size: 11.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.cc-chips button:hover { border-color: #2f6bff; color: #2f6bff; }

.cc-results { display: grid; gap: 6px; margin-top: 8px; }

.cc-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid #e6ecf7;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.cc-result:hover { border-color: #2f6bff; }

.cc-result img,
.cc-noimg {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    object-fit: cover;
    background: #eef3fb;
    flex-shrink: 0;
}

.cc-result span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.cc-result b {
    font-size: 11.5px;
    font-weight: 600;
    color: #1a2233;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-result em { font-style: normal; font-size: 11px; font-weight: 800; color: #c0392b; }

.cc-disclaimer { margin: 8px 0 0; font-size: 10.5px; color: #8b97ab; line-height: 1.5; }

.cc-form {
    padding: 10px 12px 12px;
    border-top: 1px solid #e9eef7;
    background: #fff;
}

.cc-inputrow { display: flex; gap: 8px; align-items: flex-end; }

.cc-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dbe4f3;
    border-radius: 11px;
    font-size: 13px;
    font-family: inherit;
    color: #1a2233;
    resize: none;
    max-height: 96px;
    background: #fbfcff;
}

.cc-input:focus { outline: none; border-color: #2f6bff; background: #fff; box-shadow: 0 0 0 3px rgba(47, 107, 255, .13); }

.cc-send {
    flex-shrink: 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: #2f6bff;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.cc-send:hover { background: #1f52d0; }

.cc-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; }
.cc-foot span { font-size: 10.5px; color: #9aa8bd; }
.cc-foot a { font-size: 10.5px; color: #2f6bff; text-decoration: none; }
.cc-foot a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .cc-fab { right: 14px; bottom: 14px; padding: 11px 15px; }
    .cc-panel { right: 10px; left: 10px; bottom: 74px; width: auto; height: min(70vh, 520px); }
}
