/* thobol.com AI 客服弹窗 + 联系卡片 */
.tc{--tc-bg:#111113;--tc-bg2:#1a1a1d;--tc-line:rgba(255,255,255,.08);--tc-ink:#f2efe9;--tc-mute:#9d988f;--tc-gold:var(--gold,#d6b26c);
  font-family:var(--sans,"PingFang SC","Microsoft YaHei",system-ui,sans-serif);letter-spacing:0;text-transform:none;line-height:1.6}
.tc *{box-sizing:border-box}
.tc button{font:inherit;letter-spacing:0;text-transform:none}

/* 悬浮按钮 */
.tc-fab{position:fixed;right:24px;bottom:24px;z-index:1001;height:56px;min-width:56px;padding:0 22px 0 18px;border:0;border-radius:28px;background:var(--tc-gold);color:#141414;display:flex;align-items:center;gap:10px;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.45),0 2px 6px rgba(0,0,0,.3);transition:transform .2s,box-shadow .2s,padding .25s}
.tc-fab:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(0,0,0,.5),0 2px 6px rgba(0,0,0,.3)}
.tc-fab svg{width:24px;height:24px;fill:currentColor;display:block}
.tc-fab .tc-lbl{font-weight:600;font-size:15px;white-space:nowrap}
.tc-fab .tc-ic-x{display:none}
.tc.open .tc-fab{padding:0;width:56px;justify-content:center}
.tc.open .tc-fab .tc-ic-chat,.tc.open .tc-fab .tc-lbl{display:none}
.tc.open .tc-fab .tc-ic-x{display:block}

/* 首次轻提示 */
.tc-teaser{position:fixed;right:24px;bottom:92px;z-index:1000;max-width:260px;background:#fff;color:#1b1b1b;padding:14px 34px 14px 16px;border-radius:14px;font-size:14px;line-height:1.5;box-shadow:0 12px 32px rgba(0,0,0,.4);cursor:pointer;animation:tcIn .35s ease}
.tc-teaser::after{content:"";position:absolute;right:26px;bottom:-6px;width:12px;height:12px;background:#fff;transform:rotate(45deg)}
.tc-tx{position:absolute;top:6px;right:6px;width:24px;height:24px;border:0;background:none;color:#888;cursor:pointer;padding:3px;border-radius:50%}
.tc-tx svg{width:100%;height:100%;fill:currentColor}
.tc-tx:hover{background:#eee}

/* 对话窗 */
.tc-panel{position:fixed;right:24px;bottom:92px;z-index:1000;width:384px;height:min(620px,calc(100vh - 120px));display:flex;flex-direction:column;background:var(--tc-bg);color:var(--tc-ink);border:1px solid var(--tc-line);border-radius:18px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.65);
  opacity:0;visibility:hidden;transform:translateY(16px) scale(.97);transform-origin:bottom right;transition:opacity .22s,transform .22s,visibility 0s .22s}
.tc.open .tc-panel{opacity:1;visibility:visible;transform:none;transition:opacity .22s,transform .22s}
.tc-head{display:flex;align-items:center;gap:12px;padding:16px 14px 16px 18px;background:linear-gradient(135deg,#1d1a14,#121213 70%);border-bottom:1px solid var(--tc-line)}
.tc-av{width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#e6c98c,#b8913f);color:#141414;font:800 16px/1 var(--display,"Segoe UI",sans-serif)}
.tc-head .tc-av{width:40px;height:40px;font-size:18px}
.tc-title{flex:1;min-width:0}
.tc-title b{display:block;font-size:16px;font-weight:600;color:var(--tc-ink)}
.tc-title small{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--tc-mute)}
.tc-title small i{width:7px;height:7px;border-radius:50%;background:#4cc27a;box-shadow:0 0 0 3px rgba(76,194,122,.18)}
.tc-x{width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:var(--tc-mute);cursor:pointer;padding:8px}
.tc-x svg{width:100%;height:100%;fill:currentColor}
.tc-x:hover{background:rgba(255,255,255,.07);color:var(--tc-ink)}

.tc-log{flex:1;overflow-y:auto;padding:20px 16px 8px;display:flex;flex-direction:column;gap:14px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}
.tc-log::-webkit-scrollbar{width:6px}
.tc-log::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:3px}
.tc-row{display:flex;gap:8px;align-items:flex-end}
.tc-row.me{justify-content:flex-end}
.tc-row .tc-av{width:28px;height:28px;font-size:13px}
.tc-b{max-width:80%;padding:10px 14px;font-size:14.5px;line-height:1.65;border-radius:18px;overflow-wrap:anywhere}
.tc-row.ai .tc-b{background:var(--tc-bg2);color:#e9e5de;border-bottom-left-radius:6px}
.tc-row.me .tc-b{background:var(--tc-gold);color:#151515;border-bottom-right-radius:6px}
.tc-b a{color:var(--tc-gold);text-decoration:none;border-bottom:1px solid rgba(214,178,108,.4)}
.tc-row.me .tc-b a{color:#151515;border-color:rgba(0,0,0,.3)}
.tc-b.typing{display:flex;gap:4px;padding:14px 16px}
.tc-b.typing i{width:7px;height:7px;border-radius:50%;background:var(--tc-mute);animation:tcDot 1.2s infinite}
.tc-b.typing i:nth-child(2){animation-delay:.15s}.tc-b.typing i:nth-child(3){animation-delay:.3s}
@keyframes tcDot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
@keyframes tcIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.tc-chips{display:flex;flex-wrap:wrap;gap:8px;padding:4px 16px 12px 52px}
.tc-chips:empty{display:none}
.tc-chips button{border:1px solid rgba(214,178,108,.45);background:transparent;color:var(--tc-gold);padding:7px 14px;font-size:13.5px;line-height:1.2;border-radius:999px;cursor:pointer;transition:background .15s}
.tc-chips button:hover{background:rgba(214,178,108,.12)}

.tc-form{display:flex;align-items:flex-end;gap:8px;margin:0 12px;padding:6px 6px 6px 16px;background:var(--tc-bg2);border:1px solid var(--tc-line);border-radius:24px;transition:border-color .15s}
.tc-form:focus-within{border-color:rgba(214,178,108,.6)}
.tc-form textarea{flex:1;min-width:0;height:36px;max-height:120px;padding:7px 0;margin:0;border:0;outline:0;background:transparent;color:var(--tc-ink);font:14.5px/1.5 var(--sans,system-ui,sans-serif);letter-spacing:0;text-transform:none;resize:none;overflow-y:auto;scrollbar-width:none;box-shadow:none}
.tc-form textarea::-webkit-scrollbar{display:none}
.tc-form textarea::placeholder{color:#77726a}
.tc-send{width:36px;height:36px;flex:none;border:0;border-radius:50%;background:var(--tc-gold);color:#141414;display:grid;place-items:center;cursor:pointer;padding:0;transition:opacity .15s,transform .15s}
.tc-send svg{width:18px;height:18px;fill:currentColor;margin-left:2px}
.tc-send:disabled{opacity:.35;cursor:default}
.tc-send:not(:disabled):hover{transform:scale(1.06)}
.tc-fine{margin:0;padding:8px 16px 12px;text-align:center;font-size:11.5px;color:#6e6a63}

@media (max-width:560px){
  .tc-fab{right:16px;bottom:16px;bottom:max(16px,env(safe-area-inset-bottom));height:52px;padding:0 18px 0 15px}
  .tc-teaser{right:16px;bottom:80px}
  .tc-panel{right:0;bottom:0;left:0;top:0;width:auto;height:auto;border-radius:0;border:0;transform:translateY(24px)}
  .tc.open .tc-fab{display:none}
  .tc-form{margin-bottom:max(0px,env(safe-area-inset-bottom))}
}
html.tc-lock,html.tc-lock body{overflow:hidden}
@media (prefers-reduced-motion:reduce){.tc-panel,.tc-fab{transition:none}.tc-teaser{animation:none}}

/* 联系区卡片 */
.ccards{display:grid;gap:12px;width:100%;min-width:0}
.ccard{display:flex;align-items:center;gap:16px;padding:18px 20px;border:1px solid var(--line,rgba(255,255,255,.09));background:var(--bg2,#0d0d0e);border-radius:14px;text-decoration:none;color:inherit;transition:border-color .2s,background .2s;font-family:var(--sans,system-ui,sans-serif);letter-spacing:0;text-transform:none}
a.ccard:hover,.ccard.chat:hover{border-color:rgba(214,178,108,.55);background:#121214}
.ccard .ci{width:44px;height:44px;flex:none;border-radius:12px;display:grid;place-items:center;background:rgba(214,178,108,.12);color:var(--gold,#d6b26c)}
.ccard .ci svg{width:22px;height:22px;fill:currentColor}
.ccard .ct{flex:1;min-width:0}
.ccard .ct small{display:block;font-size:13px;color:var(--muted,#b3aea6);line-height:1.4}
.ccard .ct b{display:block;font-size:17px;font-weight:600;color:var(--ink,#f4f2ee);line-height:1.5;overflow-wrap:anywhere}
.ccard .ca{flex:none;border:1px solid var(--line,rgba(255,255,255,.12));background:transparent;color:var(--ink,#f4f2ee);font:500 13.5px/1 var(--sans,system-ui,sans-serif);letter-spacing:0;text-transform:none;padding:9px 14px;border-radius:999px;cursor:pointer;white-space:nowrap;transition:border-color .15s,color .15s}
.ccard .ca:hover,.ccard:hover .ca{border-color:var(--gold,#d6b26c);color:var(--gold,#d6b26c)}
.ccard .ca.ok{border-color:#4cc27a;color:#4cc27a}
.ccard.chat{cursor:pointer;width:100%;text-align:left;border-color:rgba(214,178,108,.45);background:linear-gradient(135deg,rgba(214,178,108,.10),rgba(214,178,108,.02))}
.ccard.chat .ci{background:var(--gold,#d6b26c);color:#141414}
@media (max-width:420px){.ccard{padding:16px;gap:12px}.ccard .ci{width:40px;height:40px}}
