/* ============================================================================
   AI 助手样式的唯一来源（single source of truth）—— 改样式只改本文件。
   插件回退副本 zc_plugins/AIAssistant/v2.0.0/catalog/includes/templates/
   template_default/css/ai_assistant_chat.css 已收敛为一个 @import 指针，
   不再存放样式（模板优先加载本文件，那边只是回退转发）。
   2026-11-13 收敛：删掉 36,989B 的重复副本，备份在 G://wooxit备份//2026-11-13-ai-css-converge//
   ============================================================================ */
.ai-live-chat-icon{position:fixed;bottom:3rem;right:6rem;background:#d4a5a5;color:#fff;width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 16px rgba(212,165,165,.35),0 2px 6px rgba(0,0,0,.12);z-index:9999;transition:all .3s cubic-bezier(.4, 0, .2, 1)}.ai-live-chat-icon:hover{transform:scale(1.1) translateY(-2px);box-shadow:0 6px 24px rgba(212,165,165,.45),0 3px 10px rgba(0,0,0,.18)}.ai-live-chat-icon span{font-size:24px;line-height:1}.ai-chat-window{position:fixed;bottom:calc(3rem + 60px);right:3rem;width:480px;max-height:720px;background:linear-gradient(135deg,#fff5f7,#f9e4e8);border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,.12),0 4px 16px rgba(212,165,165,.15);display:none;flex-direction:column;font-family:'Playfair Display',serif;overflow:hidden;border:1px solid #f0c4c9;z-index:10001}.ai-chat-header{background:#f7d7da;padding:15px;text-align:center;border-bottom:1px solid #f0c4c9;position:relative}.ai-typing-status{display:none;position:absolute;right:42px;top:12px;width:28px;height:12px;align-items:center;justify-content:space-between}.ai-typing-status span,.ai-typing-status::after,.ai-typing-status::before{content:'';width:6px;height:6px;background:#000;border-radius:50%;display:inline-block;animation:ai-typing 1.4s infinite}.ai-typing-status::after{animation-delay:.4s}.ai-typing-status span{animation-delay:.2s}.ai-chat-header h3{margin:0;font-size:16px;color:#000!important;font-weight:400}.ai-chat-header p{margin:5px 0 0;font-size:12px;color:#000!important}.ai-close-chat{position:absolute;top:5px;right:5px;background:0 0!important;border:none!important;font-size:28px!important;color:#5a3e3e!important;cursor:pointer;padding:8px!important;line-height:1!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;box-shadow:none!important;z-index:10!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important}.ai-close-chat:hover{color:#c0392b!important;background:rgba(0,0,0,.05)!important}.ai-close-chat:active{background:rgba(0,0,0,.1)!important}.ai-faq-list{padding:15px;height:480px;overflow-y:auto;background:#fff;border-radius:8px;margin:10px}.ai-faq-title{font-weight:700;color:#000!important;margin-bottom:10px;font-size:14px}.ai-faq-list ul{list-style:none;padding:0}.ai-faq-list ul li{margin-bottom:8px}.ai-faq-list ul li a{color:#d4a5a5;text-decoration:none;font-size:14px;transition:color .3s ease}.ai-faq-list ul li a:hover{color:#c68b8b}.ai-contact-link{margin-top:10px;font-size:12px;color:#000!important}.ai-contact-link a{color:#d4a5a5;text-decoration:none}.ai-contact-link a:hover{text-decoration:underline}.ai-chat-area{display:none;padding:15px;height:480px;overflow-y:auto;background:#fff;border-radius:8px;margin:10px}.ai-back-to-faq{display:block;margin:0 auto 10px;padding:8px 15px;background:#d4a5a5!important;color:#fff!important;border:none!important;border-radius:20px;cursor:pointer;transition:background-color .3s;font-family:'Playfair Display',serif;font-size:14px;text-align:center}.ai-back-to-faq:hover{background:#c68b8b!important}.ai-chat-message{margin-bottom:10px;padding:8px 12px;border-radius:15px;max-width:85%;font-size:14px;line-height:1.5;word-break:break-word}.ai-chat-message.ai-user{background:#f7d7da;color:#000!important;margin-left:auto;text-align:right}.ai-chat-message.ai-bot{background:#f0f0f0;color:#000!important;margin-right:auto}.ai-chat-message a{color:#000!important;text-decoration:underline;transition:color .3s ease}.ai-chat-message a:hover{color:#d4af37!important}.ai-role-tag{display:inline-block;font-size:11px;padding:1px 6px;border-radius:10px;margin-left:4px;vertical-align:middle}.ai-role-jewelry{background:#fff3cd}.ai-role-cs{background:#d1ecf1}.ai-typing{background:#f0f0f0;border:none;padding:12px 16px}.ai-typing-dots{display:inline-flex;align-items:center;gap:5px;margin-left:6px;vertical-align:middle}.ai-typing-dots span{display:inline-block;width:8px;height:8px;background:#000;border-radius:50%;animation:ai-dot-bounce 1.4s infinite ease-in-out both}.ai-typing-dots span:first-child{animation-delay:0s}.ai-typing-dots span:nth-child(2){animation-delay:.2s}.ai-typing-dots span:nth-child(3){animation-delay:.4s}@keyframes ai-dot-bounce{0%,100%,80%{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}.ai-feedback-wrap{display:flex;align-items:center;gap:6px;margin:4px 0 10px;padding:4px 0}.ai-feedback-label{font-size:11px;color:#999}.ai-fb-btn{background:0 0;border:1px solid #e0e0e0;border-radius:14px;padding:2px 8px;font-size:14px;cursor:pointer;transition:all .2s ease;line-height:1.4}.ai-fb-btn:hover{background:#f7d7da;border-color:#d4a5a5}.ai-fb-btn.ai-fb-active{background:#d4a5a5;border-color:#c68b8b;transform:scale(1.15)}.ai-product-recommendations{margin-top:6px;display:flex;flex-direction:column;gap:10px}.ai-product-card{border:1px solid #f0c4c9;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:transform .3s ease,box-shadow .3s ease;display:flex;flex-direction:row;align-items:stretch}.ai-product-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(212,165,165,.25)}.ai-pc-img-link{display:block;flex:0 0 110px;overflow:hidden}.ai-pc-img{width:110px;height:100%;min-height:110px;object-fit:cover;display:block;transition:transform .3s ease}.ai-product-card:hover .ai-pc-img{transform:scale(1.05)}.ai-pc-info{flex:1;padding:10px 12px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.ai-pc-name{margin:0 0 4px 0;font-size:13px;line-height:1.3;color:#5a3e3e;font-family:'Playfair Display',serif}.ai-pc-name a{color:#5a3e3e;text-decoration:none}.ai-pc-name a:hover{color:#d4a5a5}.ai-pc-price{font-size:16px;color:#d4a5a5;font-weight:700;margin:2px 0}.ai-pc-stock{display:inline-block;font-size:11px;margin:2px 0 6px}.ai-pc-in-stock{color:#4caf50}.ai-pc-out-stock{color:#999}.ai-pc-buttons{display:flex;gap:6px;flex-wrap:wrap}.ai-pc-btn{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:18px;font-size:12px;text-decoration:none!important;cursor:pointer;transition:all .3s ease;white-space:nowrap;line-height:1.2}.ai-pc-btn-view{background:#f7d7da;color:#5a3e3e!important;border:1px solid #f0c4c9}.ai-pc-btn-view:hover{background:#f0c4c9}.ai-chat-footer{display:flex!important;align-items:stretch!important;padding:12px 20px;background:#f7d7da;border-top:1px solid #f0c4c9;box-sizing:border-box;gap:12px;flex-wrap:nowrap!important}.ai-chat-input{flex:1 1 0!important;padding:10px 15px;border:1px solid #f0c4c9;border-radius:25px;outline:0;font-family:'Playfair Display',serif;font-size:14px;background:#fff;color:#333!important;box-sizing:border-box;height:42px;min-width:0!important;width:auto!important}.theme-light .ai-chat-input,[data-theme=light] .ai-chat-input{color:#212529!important}.ai-chat-submit{padding:0 20px;background:#d4a5a5!important;color:#fff!important;border:none!important;border-radius:25px;cursor:pointer;transition:background-color .3s;font-family:'Playfair Display',serif;font-size:13px;min-width:80px;white-space:nowrap;height:42px;display:flex;align-items:center;justify-content:center;flex:0 0 auto!important}.ai-chat-submit:hover{background:#c68b8b!important}.ai-chat-area::-webkit-scrollbar,.ai-faq-list::-webkit-scrollbar{width:6px}.ai-chat-area::-webkit-scrollbar-track,.ai-faq-list::-webkit-scrollbar-track{background:#f0f0f0}.ai-chat-area::-webkit-scrollbar-thumb,.ai-faq-list::-webkit-scrollbar-thumb{background:#d4a5a5;border-radius:3px}@media (max-width:768px){.ai-live-chat-icon{right:calc(1rem + 55px);bottom:1rem;width:45px;height:45px}.ai-live-chat-icon span{font-size:22px}.ai-chat-window{right:5px;left:5px;bottom:5px;width:auto;max-width:none;max-height:calc(100vh - 10px);border-radius:12px}.ai-chat-area,.ai-faq-list{height:calc(100vh - 220px)}.ai-faq-list ul li a{font-size:14px}.ai-faq-title{font-size:14px}.ai-chat-footer{padding:10px 15px;gap:10px}.ai-chat-input{font-size:14px;padding:8px 12px;height:40px}.ai-chat-submit{font-size:13px;padding:0 18px;min-width:70px;height:40px}.ai-product-card{flex-direction:column}.ai-pc-img-link{flex:0 0 auto}.ai-pc-img{width:100%;height:140px;min-height:auto}.ai-pc-buttons{justify-content:stretch}.ai-pc-btn{flex:1;text-align:center}}@media (min-width:769px) and (max-width:1024px){.ai-live-chat-icon{bottom:3rem;right:6rem;width:48px;height:48px}.ai-chat-window{bottom:10px;right:10px;width:450px;max-height:calc(100vh - 20px)}.ai-chat-area,.ai-faq-list{height:calc(100vh - 260px)}}@media (min-width:1920px){.ai-live-chat-icon{bottom:3rem;right:6rem;width:55px;height:55px}.ai-live-chat-icon span{font-size:26px}.ai-chat-window{bottom:calc(3rem + 65px);right:3rem;width:520px;max-height:800px}.ai-chat-area,.ai-faq-list{height:580px}}[data-theme=dark] #ai-chat-input,[data-theme=dark] .ai-chat-input,.theme-dark #ai-chat-input,.theme-dark .ai-chat-input{color:#fff!important;background:#2d2d2d!important;border-color:#555!important}@media (prefers-color-scheme:dark){#ai-chat-input,.ai-chat-input{color:#fff!important;background:#2d2d2d!important;border-color:#555!important}}.ai-pc-sale-price{color:#e53935;font-weight:700;font-size:16px}.ai-pc-original-price{color:#999;font-size:13px;text-decoration:line-through;margin-left:4px}
.ai-back-to-faq{position:static!important;display:block!important;margin:0 auto 10px!important;width:fit-content!important;align-self:auto!important;top:auto!important}
.ai-faq-recent-shortcut{margin:0 0 10px}
.ai-faq-recent-shortcut a{display:block;padding:8px 12px;border:1px solid #f0c4c9;border-radius:12px;background:#fff7f8;color:#b56f78!important;text-decoration:none!important;font-size:13px}
.ai-faq-recent-shortcut a:hover{background:#fff0f3;color:#a65f68!important}
.ai-chat-area{overflow:hidden!important;display:none;flex-direction:column;gap:10px}
#ai-chat-messages{flex:1;min-height:0;overflow-y:auto}
#ai-chat-messages::-webkit-scrollbar{width:6px}
#ai-chat-messages::-webkit-scrollbar-track{background:#f0f0f0}
#ai-chat-messages::-webkit-scrollbar-thumb{background:#d4a5a5;border-radius:3px}
.ai-chat-window{bottom:12px!important;max-height:calc(100vh - 24px)!important}
.ai-faq-list,.ai-chat-area{flex:1 1 auto;min-height:0;height:auto!important}
.ai-live-chat-icon{z-index:100002!important}
.ai-chat-window{z-index:100003!important}
/* 需求匹配条 */
.ai-match-bar{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px;padding:8px 10px;background:#fafafa;border-radius:8px;border:1px solid #eee}
.ai-match-tag{display:inline-flex;align-items:center;gap:3px;padding:3px 8px;border-radius:20px;font-size:12px;font-weight:500}
.ai-match-tag.matched{background:#e8f5e9;color:#2e7d32;border:1px solid #a5d6a7}
.ai-match-tag.missing{background:#fff8e1;color:#f57f17;border:1px solid #ffe082}
/* Fallback notice */
.ai-fallback-notice{padding:8px 12px;margin:0 0 10px;background:#fff3e0;border-left:3px solid #ff9800;border-radius:0 8px 8px 0;font-size:13px;color:#e65100}
/* SKU 查询结果卡片 */
.ai-sku-result-card{border:1px solid #f0c4c9;border-radius:12px;padding:12px;background:#fff;margin:8px 0}
.ai-sku-result-header{display:flex;gap:10px;align-items:flex-start;margin-bottom:8px}
.ai-sku-result-img{width:60px;height:60px;object-fit:cover;border-radius:8px;background:#f8f8f8;flex-shrink:0}
.ai-sku-result-info{flex:1;min-width:0}
.ai-sku-result-name{font-weight:600;font-size:14px;color:#333;margin-bottom:3px}
.ai-sku-result-sku{font-size:11px;color:#888;margin-bottom:3px}
.ai-sku-result-price{font-size:15px;font-weight:700;color:#b56f78}
.ai-sku-result-stock{font-size:13px;font-weight:500;padding:4px 0;margin-bottom:8px}
.ai-sku-result-stock.in-stock{color:#2e7d32}
.ai-sku-result-stock.out-of-stock{color:#c62828}
.ai-sku-result-link{display:block;text-align:center;background:#b56f78;color:#fff!important;text-decoration:none!important;padding:8px;border-radius:8px;font-size:13px;font-weight:600;transition:background .2s}
.ai-sku-result-link:hover{background:#a05f68}
/* 快速回复按钮 */
.ai-quick-replies-wrap{margin-top:6px}
.ai-quick-replies{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.ai-quick-reply-btn{padding:6px 12px;border:1.5px solid #e0c0c4!important;border-radius:20px;background:#fff!important;color:#b56f78!important;font-size:12px;cursor:pointer;transition:all .2s;white-space:nowrap;font-family:inherit}
.ai-quick-reply-btn:hover{background:#fdf0f2!important;border-color:#b56f78!important;color:#b56f78!important}
.ai-quick-reply-btn.selected{background:#b56f78!important;color:#fff!important;border-color:#b56f78!important;font-weight:600}
.ai-quick-reply-btn.selected:hover{background:#a05f68!important}
.ai-quick-reply-btn:disabled{opacity:.5;cursor:not-allowed}
.ai-quick-reply-submit{display:none;width:100%;margin-top:8px;padding:9px;background:#b56f78;color:#fff;border:none;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .2s}
.ai-quick-reply-submit:hover{background:#a05f68}
.ai-quick-reply-submit:disabled{opacity:.6;cursor:not-allowed}

/* ===== 2026-11-13 Atelier Concierge 重制（覆盖以上全部粉红皮肤） ===== */
@charset "UTF-8";
/* ==========================================================================
   AI Assistant —— 「Atelier Concierge」黑金重制
   --------------------------------------------------------------------------
   替换原粉红皮肤（#d4a5a5 / 渐变 #fff5f7→#f9e4e8 / 15~25px 圆角 / 气泡团）。
   与站上语言对齐：近黑面板 + 发丝线 + Didone 衬线标题，金色只做三处强调
   （启动环、发送键、选中态），不做渐变、不堆阴影。

   写在插件 CSS 末尾，靠「后出现 + 略高特异性」覆盖，插件更新时本段可整段搬走。
   ========================================================================== */

/* ---------------------------------------------------------------- 令牌 ---- */
.ai-chat-window,
.ai-live-chat-icon {
    --aib-bg: #FBF9F5;
    --aib-bg-2: #F4F1EA;
    --aib-card: #FFFFFF;
    --aib-line: #E3DDD0;
    --aib-line-2: #D5CEC0;
    --aib-ink: #17161A;
    --aib-ink-2: #6E6960;
    --aib-gold: #A8801F;
    --aib-gold-soft: rgba(168, 128, 31, .10);
    --aib-shadow: 0 18px 48px rgba(23, 22, 26, .18), 0 2px 8px rgba(23, 22, 26, .06);
}

html[data-theme="dark"] .ai-chat-window,
html[data-theme="dark"] .ai-live-chat-icon,
html.theme-dark .ai-chat-window,
html.theme-dark .ai-live-chat-icon {
    --aib-bg: #121214;
    --aib-bg-2: #17171A;
    --aib-card: #1A1A1D;
    --aib-line: #2A2A2E;
    --aib-line-2: #3A3A40;
    --aib-ink: #F4F1EA;
    --aib-ink-2: #A8A29A;
    --aib-gold: #C9A227;
    --aib-gold-soft: rgba(201, 162, 39, .14);
    --aib-shadow: 0 24px 64px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]):not(.theme-light) .ai-chat-window,
    html:not([data-theme="light"]):not(.theme-light) .ai-live-chat-icon {
        --aib-bg: #121214;
        --aib-bg-2: #17171A;
        --aib-card: #1A1A1D;
        --aib-line: #2A2A2E;
        --aib-line-2: #3A3A40;
        --aib-ink: #F4F1EA;
        --aib-ink-2: #A8A29A;
        --aib-gold: #C9A227;
        --aib-gold-soft: rgba(201, 162, 39, .14);
        --aib-shadow: 0 24px 64px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .35);
    }
}

/* -------------------------------------------------------------- 启动键 ---- */
.ai-live-chat-icon {
    width: 52px !important;
    height: 52px !important;
    background: var(--aib-bg) !important;
    color: var(--aib-gold) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 1px var(--aib-gold) inset, 0 10px 28px rgba(0, 0, 0, .28) !important;
    transition: background-color .28s ease, color .28s ease, box-shadow .28s ease, transform .2s ease;
}

.ai-live-chat-icon:hover {
    background: var(--aib-gold) !important;
    color: #121214 !important;
    box-shadow: 0 0 0 1px var(--aib-gold) inset, 0 12px 30px rgba(201, 162, 39, .32) !important;
    transform: translateY(-2px);
}

/* 原按钮里是一个 💬 emoji：彩色的，和黑金冲突。换成金色的线性对话图标 */
.ai-live-chat-icon > span {
    display: block;
    width: 22px;
    height: 22px;
    font-size: 0 !important;
    line-height: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.6a8.3 8.3 0 0 1-8.9 8.3 9.4 9.4 0 0 1-3.8-.8L3 21l1.9-4.6A8.3 8.3 0 0 1 12 3.3a8.3 8.3 0 0 1 9 8.3z'/></svg>") center / 22px 22px no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.6a8.3 8.3 0 0 1-8.9 8.3 9.4 9.4 0 0 1-3.8-.8L3 21l1.9-4.6A8.3 8.3 0 0 1 12 3.3a8.3 8.3 0 0 1 9 8.3z'/></svg>") center / 22px 22px no-repeat;
}

/* -------------------------------------------------------------- 面板 ----- */
.ai-chat-window {
    width: 420px !important;
    max-height: min(700px, calc(100vh - 32px)) !important;
    background: var(--aib-bg) !important;
    border: 1px solid var(--aib-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--aib-shadow) !important;
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif !important;
    color: var(--aib-ink) !important;
    overflow: hidden !important;
}

/* 页眉：衬线标题 + 小写字母间距副标 + 底部一条发丝线 */
.ai-chat-header {
    background: var(--aib-bg-2) !important;
    border-bottom: 1px solid var(--aib-line) !important;
    padding: 20px 22px 18px !important;
    text-align: left !important;
    position: relative !important;
}

.ai-chat-header::after {
    content: '';
    position: absolute;
    left: 22px;
    bottom: -1px;
    width: 34px;
    height: 1px;
    background: var(--aib-gold);
}

.ai-chat-header h3 {
    margin: 0 !important;
    padding-right: 34px;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: .005em;
    color: var(--aib-ink) !important;
    text-transform: none;
}

.ai-chat-header p {
    margin: 7px 0 0 !important;
    font-size: 9.5px !important;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--aib-ink-2) !important;
}

/* 关闭键：右上角一个安静的小 × */
.ai-close-chat {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    line-height: 1 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: var(--aib-ink-2) !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.ai-close-chat:hover {
    color: var(--aib-ink) !important;
    background: var(--aib-gold-soft) !important;
}

/* 输入中指示：三点改成金色 */
.ai-typing-status span,
.ai-typing-status::before,
.ai-typing-status::after {
    background: var(--aib-gold) !important;
}

/* ------------------------------------------------------------ FAQ 列表 --- */
.ai-faq-list {
    margin: 0 !important;
    padding: 6px 22px 10px !important;
    background: transparent !important;
    border-radius: 0 !important;
    height: auto !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.ai-faq-title {
    margin: 14px 0 4px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase;
    color: var(--aib-ink-2) !important;
}

.ai-faq-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ai-faq-list ul li {
    margin: 0 !important;
    border-bottom: 1px solid var(--aib-line);
}

.ai-faq-list ul li:last-child {
    border-bottom: 0;
}

.ai-faq-list ul li a {
    display: block;
    padding: 12px 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--aib-ink) !important;
    text-decoration: none !important;
    transition: color .2s ease, padding-left .2s ease;
}

.ai-faq-list ul li a:hover {
    color: var(--aib-gold) !important;
    padding-left: 5px !important;
}

.ai-faq-recent-shortcut a {
    display: block;
    margin: 0 0 10px;
    padding: 9px 12px !important;
    border: 1px solid var(--aib-line) !important;
    border-radius: 9px !important;
    background: transparent !important;
    font-size: 12px !important;
    color: var(--aib-ink-2) !important;
    text-decoration: none !important;
}

.ai-faq-recent-shortcut a:hover {
    border-color: var(--aib-gold) !important;
    color: var(--aib-gold) !important;
}

.ai-contact-link {
    margin: 16px 0 8px !important;
    padding-top: 14px;
    border-top: 1px solid var(--aib-line);
    font-size: 12px !important;
    color: var(--aib-ink-2) !important;
}

.ai-contact-link a {
    color: var(--aib-gold) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--aib-gold-soft);
}

/* ------------------------------------------------------------ 对话区 ----- */
.ai-chat-area {
    margin: 0 !important;
    padding: 16px 22px !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.ai-back-to-faq {
    display: inline-flex !important;
    align-self: flex-start !important;
    align-items: center;
    gap: 6px;
    width: auto !important;
    max-width: max-content;
    margin: 0 0 14px !important;
    padding: 6px 12px !important;
    background: transparent !important;
    border: 1px solid var(--aib-line) !important;
    border-radius: 999px !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase;
    color: var(--aib-ink-2) !important;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}

.ai-back-to-faq:hover {
    color: var(--aib-gold) !important;
    border-color: var(--aib-gold) !important;
    background: transparent !important;
}

/* 气泡：bot 走「左侧发丝线注释」，user 走「金边深底」，都不做圆团 */
.ai-chat-message {
    max-width: 88% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.62 !important;
    letter-spacing: .004em;
    word-break: break-word;
}

.ai-chat-message.ai-bot {
    margin-right: auto !important;
    padding: 2px 0 2px 12px !important;
    background: transparent !important;
    border-left: 1px solid var(--aib-gold-soft) !important;
    color: var(--aib-ink) !important;
}

.ai-chat-message.ai-user {
    margin-left: auto !important;
    padding: 9px 13px !important;
    background: var(--aib-card) !important;
    border: 1px solid var(--aib-line) !important;
    border-radius: 12px !important;
    color: var(--aib-ink) !important;
    text-align: left !important;
}

.ai-chat-message a {
    color: var(--aib-gold) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--aib-gold-soft);
}

.ai-role-tag {
    font-size: 9px !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    background: var(--aib-gold-soft) !important;
    color: var(--aib-gold) !important;
}

/* 反馈按钮 */
.ai-feedback-label {
    font-size: 10px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--aib-ink-2) !important;
}

.ai-fb-btn {
    background: transparent !important;
    border: 1px solid var(--aib-line) !important;
    border-radius: 999px !important;
    color: var(--aib-ink-2) !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    transition: color .2s ease, border-color .2s ease;
}

.ai-fb-btn:hover {
    border-color: var(--aib-gold) !important;
    color: var(--aib-gold) !important;
    background: transparent !important;
}

.ai-fb-btn.ai-fb-active {
    background: var(--aib-gold-soft) !important;
    border-color: var(--aib-gold) !important;
    color: var(--aib-gold) !important;
    transform: none !important;
}

/* 命中条 / 兜底提示 */
.ai-match-bar {
    background: var(--aib-bg-2) !important;
    border-color: var(--aib-line) !important;
    border-radius: 8px !important;
    padding: 6px 8px !important;
    gap: 5px !important;
}

.ai-match-tag {
    font-size: 10.5px !important;
    letter-spacing: .02em;
    padding: 2px 7px !important;
    border-radius: 4px !important;
}

.ai-match-tag.matched {
    background: var(--aib-gold-soft) !important;
    color: var(--aib-gold) !important;
    border: 1px solid var(--aib-gold) !important;
}

.ai-match-tag.missing {
    background: transparent !important;
    color: var(--aib-ink-2) !important;
    border: 1px solid var(--aib-line) !important;
}

.ai-fallback-notice {
    background: transparent !important;
    border-left: 1px solid var(--aib-gold) !important;
    border-radius: 0 !important;
    color: var(--aib-ink-2) !important;
    font-size: 12.5px !important;
    padding: 6px 12px !important;
}

/* --------------------------------------------------- 商品卡 / SKU 卡 ----- */
.ai-product-card {
    background: var(--aib-card) !important;
    border: 1px solid var(--aib-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    overflow: hidden;
}

.ai-product-card:hover {
    transform: none !important;
    border-color: var(--aib-gold) !important;
    box-shadow: none !important;
}

.ai-pc-img-link {
    flex: 0 0 92px !important;
}

.ai-pc-img {
    width: 92px !important;
    min-height: 92px !important;
    border-radius: 0 !important;
}

.ai-pc-info {
    padding: 10px 12px !important;
}

.ai-pc-name {
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    letter-spacing: .01em;
    color: var(--aib-ink) !important;
}

.ai-pc-name a {
    color: var(--aib-ink) !important;
}

.ai-pc-name a:hover {
    color: var(--aib-gold) !important;
}

.ai-pc-price,
.ai-pc-sale-price {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--aib-gold) !important;
}

.ai-pc-original-price {
    color: var(--aib-ink-2) !important;
    font-size: 11.5px !important;
}

.ai-pc-stock {
    font-size: 10px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ai-pc-in-stock {
    color: var(--aib-gold) !important;
}

.ai-pc-out-stock {
    color: var(--aib-ink-2) !important;
}

.ai-pc-btn {
    border-radius: 8px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase;
    padding: 7px 12px !important;
}

.ai-pc-btn-view {
    background: transparent !important;
    border: 1px solid var(--aib-line-2) !important;
    color: var(--aib-ink) !important;
}

.ai-pc-btn-view:hover {
    border-color: var(--aib-gold) !important;
    color: var(--aib-gold) !important;
    background: transparent !important;
}

.ai-sku-result-card {
    background: var(--aib-card) !important;
    border: 1px solid var(--aib-line) !important;
    border-radius: 12px !important;
}

.ai-sku-result-name {
    color: var(--aib-ink) !important;
    font-size: 12.5px !important;
}

.ai-sku-result-sku {
    color: var(--aib-ink-2) !important;
    letter-spacing: .06em;
}

.ai-sku-result-price {
    color: var(--aib-gold) !important;
}

.ai-sku-result-stock.in-stock {
    color: var(--aib-gold) !important;
}

.ai-sku-result-stock.out-of-stock {
    color: var(--aib-ink-2) !important;
}

.ai-sku-result-link {
    background: transparent !important;
    border: 1px solid var(--aib-gold) !important;
    color: var(--aib-gold) !important;
    border-radius: 8px !important;
    font-size: 10.5px !important;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ai-sku-result-link:hover {
    background: var(--aib-gold) !important;
    color: #121214 !important;
}

/* -------------------------------------------------------- 快速回复 ------- */
.ai-quick-reply-btn {
    background: transparent !important;
    border: 1px solid var(--aib-line-2) !important;
    border-radius: 999px !important;
    color: var(--aib-ink) !important;
    font-size: 11.5px !important;
    padding: 6px 12px !important;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.ai-quick-reply-btn:hover {
    border-color: var(--aib-gold) !important;
    color: var(--aib-gold) !important;
    background: transparent !important;
}

.ai-quick-reply-btn.selected {
    background: var(--aib-gold) !important;
    border-color: var(--aib-gold) !important;
    color: #121214 !important;
    font-weight: 600;
}

.ai-quick-reply-submit {
    background: var(--aib-gold) !important;
    color: #121214 !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 11px !important;
}

.ai-quick-reply-submit:hover {
    background: var(--aib-gold) !important;
    filter: brightness(1.08);
}

/* ------------------------------------------------------------ 输入条 ---- */
.ai-chat-footer {
    background: var(--aib-bg-2) !important;
    border-top: 1px solid var(--aib-line) !important;
    padding: 12px 16px !important;
    gap: 10px !important;
}

.ai-chat-input,
#ai-chat-input {
    height: 42px !important;
    padding: 0 14px !important;
    background: transparent !important;
    border: 1px solid var(--aib-line-2) !important;
    border-radius: 10px !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: 13px !important;
    color: var(--aib-ink) !important;
    transition: border-color .2s ease;
}

.ai-chat-input::placeholder {
    color: var(--aib-ink-2) !important;
    opacity: .8;
}

.ai-chat-input:focus {
    border-color: var(--aib-gold) !important;
    outline: none !important;
    box-shadow: none !important;
}

.ai-chat-submit {
    height: 42px !important;
    min-width: 84px !important;
    padding: 0 18px !important;
    background: var(--aib-gold) !important;
    border: 1px solid var(--aib-gold) !important;
    border-radius: 10px !important;
    color: #121214 !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase;
    transition: filter .2s ease, background-color .2s ease;
}

.ai-chat-submit:hover {
    background: var(--aib-gold) !important;
    filter: brightness(1.08);
}

/* 输入中 / 打字气泡 */
.ai-typing {
    background: transparent !important;
    border-left: 1px solid var(--aib-gold-soft) !important;
    padding: 2px 0 2px 12px !important;
}

.ai-typing-dots span {
    background: var(--aib-gold) !important;
}

/* 滚动条 */
.ai-chat-area::-webkit-scrollbar,
.ai-faq-list::-webkit-scrollbar,
#ai-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.ai-chat-area::-webkit-scrollbar-track,
.ai-faq-list::-webkit-scrollbar-track,
#ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-area::-webkit-scrollbar-thumb,
.ai-faq-list::-webkit-scrollbar-thumb,
#ai-chat-messages::-webkit-scrollbar-thumb {
    background: var(--aib-line-2) !important;
    border-radius: 4px;
}

/* ---------------------------------------------------------- 移动端 ------- */
@media (max-width: 768px) {
    .ai-live-chat-icon {
        width: 48px !important;
        height: 48px !important;
        right: calc(1rem + 54px) !important;
        bottom: 1rem !important;
    }

    .ai-live-chat-icon > span {
        width: 20px;
        height: 20px;
        -webkit-mask-size: 20px 20px;
                mask-size: 20px 20px;
    }

    .ai-chat-window {
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        width: auto !important;
        max-height: calc(100vh - 16px) !important;
        border-radius: 14px !important;
    }

    .ai-chat-header {
        padding: 18px 18px 16px !important;
    }

    .ai-chat-header h3 {
        font-size: 16px !important;
    }

    .ai-chat-header::after {
        left: 18px;
        width: 30px;
    }

    .ai-faq-list {
        padding: 4px 18px 8px !important;
    }

    .ai-chat-area {
        padding: 14px 18px !important;
    }

    .ai-chat-footer {
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    .ai-chat-input {
        height: 40px !important;
        font-size: 13px !important;
    }

    .ai-chat-submit {
        height: 40px !important;
        min-width: 72px !important;
        padding: 0 14px !important;
        font-size: 10.5px !important;
    }

    .ai-product-card {
        flex-direction: row !important;
    }

    .ai-pc-img-link {
        flex: 0 0 84px !important;
    }

    .ai-pc-img {
        width: 84px !important;
        height: 100% !important;
        min-height: 84px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-live-chat-icon,
    .ai-chat-submit,
    .ai-faq-list ul li a,
    .ai-close-chat {
        transition: none !important;
    }
}

/* ==========================================================================
   字体：改成站上同一套「高端珠宝」语汇
   --------------------------------------------------------------------------
   规则与产品页/分类页保持一致：
     · 叙述性文字（对话正文、FAQ 条目、商品名）走 Playfair Display 衬线
     · 数字、标签、按钮、输入框仍用 Montserrat —— 小字号下无衬线才不失清晰
   衬线在小字号需要更松的行高，正文 13.5 → 14 / 1.62 → 1.72。
   ========================================================================== */
.ai-chat-window .ai-chat-message {
    font-family: 'Playfair Display', Georgia, 'Songti SC', serif !important;
    font-size: 14px !important;
    line-height: 1.72 !important;
    letter-spacing: .006em;
}

.ai-chat-window .ai-faq-list ul li a {
    font-family: 'Playfair Display', Georgia, 'Songti SC', serif !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
}

.ai-chat-window .ai-faq-recent-shortcut a {
    font-family: 'Playfair Display', Georgia, 'Songti SC', serif !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
}

.ai-chat-window .ai-pc-name,
.ai-chat-window .ai-pc-name a {
    font-family: 'Playfair Display', Georgia, 'Songti SC', serif !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: .004em;
}

.ai-chat-window .ai-sku-result-name {
    font-family: 'Playfair Display', Georgia, 'Songti SC', serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.ai-chat-window .ai-contact-link {
    font-family: 'Playfair Display', Georgia, 'Songti SC', serif !important;
    font-size: 12.5px !important;
}

/* 价格保持 Montserrat（数字清晰），只把字号抬一点配衬线正文 */
.ai-chat-window .ai-pc-price,
.ai-chat-window .ai-sku-result-price {
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
}

/* 输入中的「TYPING」也是标签，保持无衬线大写 */
.ai-chat-window .ai-typing {
    font-family: Montserrat, Arial, sans-serif !important;
}


/* ============================================================================
   推荐产品卡片 · 缩略图收口（2026-11-13）

   问题：图片位被三层规则互相拉扯 ——
     主题原版     .ai-pc-img-link{flex:0 0 110px} / .ai-pc-img{width:110px;height:100%}
     Atelier 层   （未覆盖）
     模板内联     .ai-pc-img-link{flex:0 0 132px;padding:12px} + 移动端 width:100%;min-height:150px
   卡片是 align-items:stretch，于是图片位被拉成和卡片一样高，白色渐变背景占满整列，
   产品照被 contain 缩成一小块 —— 看起来就是「图片高度坏了」。

   做法：不再跟着叠层，直接用 !important 把这几项钉死成固定方形缩略图。
   高特异性 + !important 才能压住模板里排在后面的 <style>（它没有 !important）。
   ============================================================================ */

.ai-chat-window .ai-product-card {
    align-items: flex-start !important;          /* 关键：缩略图不再被卡片高度拉伸 */
    gap: 12px !important;                        /* 缩略图与信息列之间留气口 */
}

.ai-chat-window .ai-product-card .ai-pc-img-link {
    flex: 0 0 92px !important;
    width: 92px !important;
    height: 92px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    /* 产品照本身是白底，给个白底方框读作「产品图」，而不是一块坏掉的白板 */
    background: #fff !important;
    box-sizing: border-box !important;
    /* 用 inset 阴影代替 border：边框不会侵占内容盒，图片保持满尺寸 */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08) !important;
}

.ai-chat-window .ai-product-card .ai-pc-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;                /* 方图刚好铺满；非方图轻微裁切 */
    object-position: center !important;
    margin: 0 !important;
}

/* 深色下给方框一圈内发光细线，避免纯白块生硬 */
html[data-theme="dark"] .ai-chat-window .ai-product-card .ai-pc-img-link,
.theme-dark .ai-chat-window .ai-product-card .ai-pc-img-link {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10) !important;
}

@media (max-width: 768px) {
    .ai-chat-window .ai-product-card {
        align-items: flex-start !important;
        gap: 10px !important;
    }
    /* 模板移动端把图片位改成了整宽 150px 横幅，这里抢回来 */
    .ai-chat-window .ai-product-card .ai-pc-img-link {
        flex: 0 0 84px !important;
        width: 84px !important;
        height: 84px !important;
        min-height: 0 !important;
        padding: 0 !important;
    }
    .ai-chat-window .ai-product-card .ai-pc-img {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
    }
}


/* ----------------------------------------------------------------------------
   推荐卡片 · 文字对比度（2026-11-13）

   模板内联那段 <style> 用的是浅色卡片的硬色值且带 !important
   （.ai-pc-name{color:#2f2525!important}、.ai-pc-badge 文字 #f8f9fa），
   深色面板下就成了「近黑色产品名 + 白字白底 badge」——基本看不见。

   这里用令牌按主题分支给值，浅色沿用原值（不动），深色换成对应亮色。
   分支与上面 --aib-* 令牌完全一致：data-theme / .theme-dark / prefers-color-scheme。
   ---------------------------------------------------------------------------- */

.ai-chat-window .ai-product-card {
    --aib-pc-name: #2F2525;
    --aib-pc-badge-bg: #FFFFFF;
    --aib-pc-badge-bd: #E6D2D5;
    --aib-pc-badge-fg: #3F2F2F;
    --aib-pc-badge-lb: #8B6666;
    --aib-pc-why-bg: #FFF8F8;
    --aib-pc-why-bd: #ECD7D9;
    --aib-pc-why-title: #6F4949;
    --aib-pc-why-text: #2A1D1D;
}

html[data-theme="dark"] .ai-chat-window .ai-product-card,
html.theme-dark .ai-chat-window .ai-product-card {
    --aib-pc-name: #F4F1EA;
    --aib-pc-badge-bg: #202024;
    --aib-pc-badge-bd: #32323A;
    --aib-pc-badge-fg: #D9D3C7;
    --aib-pc-badge-lb: #9A948A;
    --aib-pc-why-bg: #17171A;
    --aib-pc-why-bd: #2A2A2E;
    --aib-pc-why-title: #A8A29A;
    --aib-pc-why-text: #E7E2D8;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]):not(.theme-light) .ai-chat-window .ai-product-card {
        --aib-pc-name: #F4F1EA;
        --aib-pc-badge-bg: #202024;
        --aib-pc-badge-bd: #32323A;
        --aib-pc-badge-fg: #D9D3C7;
        --aib-pc-badge-lb: #9A948A;
        --aib-pc-why-bg: #17171A;
        --aib-pc-why-bd: #2A2A2E;
        --aib-pc-why-title: #A8A29A;
        --aib-pc-why-text: #E7E2D8;
    }
}

.ai-chat-window .ai-product-card .ai-pc-name,
.ai-chat-window .ai-product-card .ai-pc-name a {
    color: var(--aib-pc-name) !important;
}

.ai-chat-window .ai-product-card .ai-pc-badge {
    background: var(--aib-pc-badge-bg) !important;
    border-color: var(--aib-pc-badge-bd) !important;
    color: var(--aib-pc-badge-fg) !important;
}

.ai-chat-window .ai-product-card .ai-pc-badge-label {
    color: var(--aib-pc-badge-lb) !important;
    /* 卡片窄时标签不许断行（曾出现 "Collectio n:"），整块 chip 换行即可 */
    white-space: nowrap !important;
}

.ai-chat-window .ai-product-card .ai-pc-badge {
    max-width: 100% !important;
}

/* 「WHY I PICKED THIS」内嵌块：跟着主题走，深色下不再是一块奶油色 */
.ai-chat-window .ai-product-card .ai-pc-why {
    background: var(--aib-pc-why-bg) !important;
    border-color: var(--aib-pc-why-bd) !important;
}
.ai-chat-window .ai-product-card .ai-pc-why-title {
    color: var(--aib-pc-why-title) !important;
}
.ai-chat-window .ai-product-card .ai-pc-reason {
    color: var(--aib-pc-why-text) !important;
}


/* ----------------------------------------------------------------------------
   AI 助手 · 聊天区滚动（2026-11-13）

   症状：对话越长，下半截越看不到；滚轮/手指完全滚不动，也没有滚动条。

   根因：JS 一直把 .ai-chat-area 设成 display:block，而样式是按
        display:flex + 内层 #ai-chat-messages{flex:1;min-height:0;overflow-y:auto}
        设计的。block 下 flex 全部失效 ⇒ 内层被撑成内容高度 ⇒ 外层
        overflow:hidden 直接裁掉，一个滚动条都不给。

   JS 侧已把打开时的 display 改成 'flex'（4 处）。这里再做一道兜底：
   即便哪天又退回 block，外层自己也能滚，不至于把内容锁死。
   ---------------------------------------------------------------------------- */

.ai-chat-area {
    overflow-y: auto !important;      /* 压掉早期补丁里的 overflow:hidden!important */
    overflow-x: hidden !important;
    overscroll-behavior: contain;     /* 滚到底别把整页带着一起滑 */
    -webkit-overflow-scrolling: touch;
}

/* 内层才是真正的滚动容器：flex 生效后它吃满剩余高度 */
#ai-chat-messages {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
