#skc-widget {
    position: fixed;
    bottom: 24px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.skc-pos-right { right: 24px; }
.skc-pos-left  { left: 24px; }

.skc-fab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 20px 13px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(110, 142, 251, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}
.skc-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(110, 142, 251, .35);
}
.skc-fab svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    padding: 3px;
}

.skc-panel {
    position: absolute;
    bottom: 64px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(110, 142, 251, .18);
    display: flex;
    flex-direction: column;
    height: 460px;
    max-height: calc(100vh - 120px);
}
.skc-pos-left  .skc-panel { left: 0; }
.skc-pos-right .skc-panel { right: 0; }
.skc-panel[hidden] { display: none; }

.skc-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: #fff;
}
.skc-panel__title { font-size: 15px; font-weight: 600; }
.skc-panel__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.skc-panel__messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f7f8fa;
}
.skc-msg { display: flex; margin-bottom: 12px; }
.skc-msg--user { justify-content: flex-end; }
.skc-msg--bot  { justify-content: flex-start; }
.skc-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}
.skc-msg--user .skc-bubble {
    background: #6e8efb;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.skc-msg--bot .skc-bubble {
    background: #fff;
    color: #222;
    border: 0;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(110, 142, 251, .08);
}

.skc-results { width: 100%; margin-top: 4px; }
.skc-results__title { font-size: 13px; color: #888; margin: 4px 0 6px; }
.skc-results__list { list-style: none; margin: 0; padding: 0; }
.skc-results__list li { margin-bottom: 6px; }
.skc-results__list a {
    display: block;
    color: #1a73e8;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    padding: 8px 10px;
    background: #f8fafc;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(110, 142, 251, .08);
    transition: background .2s ease, box-shadow .2s ease;
}
.skc-results__list a:hover { background: #eef2ff; box-shadow: 0 4px 14px rgba(110, 142, 251, .14); }
.skc-results__empty { font-size: 13px; color: #999; }

.skc-inline-link {
    color: #1a73e8;
    text-decoration: none;
    border-bottom: 1px solid #1a73e8;
}
.skc-inline-link:hover { opacity: .8; }

/* "参考/了解更多/详见"后面紧跟的链接 —— 与"相关文章"卡片链接同色 (#1a73e8)，
   但加粗 + 下划线，区分正文普通内联链接（颜色一致、形态不同）。 */
.skc-inline-link--ref {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
    font-weight: 600;
    padding: 0 2px;
}
.skc-inline-link--ref:hover { opacity: .8; }

.skc-panel__form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}
.skc-input {
    flex: 1;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    font-size: 14px;
    outline: none;
    background: #f8fafc;
    box-shadow: 0 0 0 1px rgba(110, 142, 251, .12);
    transition: box-shadow .2s ease;
}
.skc-input:focus { box-shadow: 0 0 0 3px rgba(110, 142, 251, .25); }
.skc-input:disabled { background: #f2f3f5; color: #9aa0a6; cursor: not-allowed; }
.skc-send {
    padding: 0 16px;
    border: none;
    border-radius: 14px;
    background: #6e8efb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(110, 142, 251, .3);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.skc-send:hover { background: #5a7de8; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(110, 142, 251, .38); }
.skc-send:disabled { background: #c2ccef; cursor: not-allowed; box-shadow: none; }
