/* 天狐智能客服挂件 v3-scoped
 * 约束：所有规则都以 #thc-root 为作用域；不含 *{}、html/body 全局覆盖；
 * 不修改宿主站点的骨架、间距、配色、层级（仅新增 #thc-root 自身）。
 * 视觉对齐现有百炼版弹窗：深色头 + 金色点缀 + 居中卡片。
 */

#thc-root{
  position:fixed; inset:0; z-index:2147483000; pointer-events:none;
  display:none;                /* 关闭态完全不参与合成：注入前后像素必然一致 */
  font-family:'Microsoft YaHei','PingFang SC',Arial,sans-serif;
  font-size:14px; line-height:1.6; font-weight:400; color:#333; text-align:left;
  letter-spacing:normal; font-style:normal; text-transform:none;
  -webkit-font-smoothing:antialiased;
}
#thc-root.thc-open{display:block;pointer-events:auto}
#thc-root *{box-sizing:border-box}
#thc-root a{text-decoration:none;color:inherit}
#thc-root button,#thc-root input,#thc-root textarea{font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;margin:0}
#thc-root img,#thc-root video{max-width:none;border:0}

#thc-root .thc-mask{
  position:absolute; inset:0; background:rgba(0,0,0,.55);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  display:none; pointer-events:auto;
}
#thc-root.thc-open .thc-mask{display:block;pointer-events:auto}
#thc-root .thc-modal{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:860px; max-width:92vw; height:min(80vh,760px); min-height:640px;
  background:#fff; border-radius:14px; border:1px solid #e8e0c8;
  box-shadow:0 18px 60px rgba(0,0,0,.28);
  display:none; flex-direction:column; overflow:hidden; pointer-events:auto;
}
#thc-root.thc-open .thc-mask,
#thc-root.thc-open .thc-modal{display:flex}

#thc-root .thc-head{
  flex:none; background:#111; color:#fff; padding:13px 22px;
  font-size:15px; display:flex; justify-content:space-between; align-items:center;
}
#thc-root .thc-head .thc-t em{color:#d4af37;font-style:normal}
#thc-root .thc-head .thc-ai-tag{
  font-size:11px;color:#d4af37;border:1px solid #6b5a1e;border-radius:4px;
  padding:2px 6px;margin-left:10px;vertical-align:middle;white-space:nowrap;
}
#thc-root .thc-head .thc-x{
  cursor:pointer;color:#888;font-size:20px;line-height:1;
  background:none;border:none;padding:0 2px;
}
#thc-root .thc-head .thc-x:hover{color:#d4af37}

#thc-root .thc-scroll{flex:1;overflow-y:auto;background:#f5f6f8;-webkit-overflow-scrolling:touch}
#thc-root .thc-wrap{max-width:640px;margin:0 auto;padding:26px 20px 20px}
#thc-root .thc-card{
  background:#fff;border:1px solid #eee;border-radius:16px;padding:30px 28px 22px;
  text-align:center;box-shadow:0 2px 10px rgba(0,0,0,.05);
}
#thc-root .thc-card .thc-av{
  width:72px;height:72px;border-radius:50%;margin:0 auto 14px;overflow:hidden;
  background:#111;border:3px solid #d4af37;
}
#thc-root .thc-av img,#thc-root .thc-av video{width:100%;height:100%;object-fit:cover;display:block}
#thc-root .thc-card h3{font-size:19px;margin:0 0 10px;color:#222;font-weight:700}
#thc-root .thc-card .thc-wel{font-size:14px;color:#555;line-height:1.9;margin:0 0 10px}
#thc-root .thc-card .thc-intro{font-size:12.5px;color:#999;line-height:1.9;margin:0 0 12px}
#thc-root .thc-card .thc-disclaimer{font-size:12px;color:#bbb;line-height:1.8;margin:0 0 18px}
#thc-root .thc-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left}
#thc-root .thc-quick button{
  border:1px solid #e3d9bd;background:#faf8f0;border-radius:10px;padding:11px 14px;
  font-size:13px;color:#4a3f1e;cursor:pointer;transition:border-color .15s,background .15s;
}
#thc-root .thc-quick button:hover{border-color:#d4af37;background:#fdf9ec}

#thc-root .thc-msgs{padding:18px 20px}
#thc-root .thc-msg{max-width:78%;margin:0 0 14px;display:flex;gap:10px}
#thc-root .thc-msg.thc-me{margin-left:auto;flex-direction:row-reverse}
#thc-root .thc-msg .thc-av2{
  width:34px;height:34px;border-radius:50%;flex:none;overflow:hidden;
  background:#111;border:2px solid #d4af37;
}
#thc-root .thc-msg.thc-me .thc-av2{border-color:#c9a430}
#thc-root .thc-av2 img,#thc-root .thc-av2 video{width:100%;height:100%;object-fit:cover;display:block}
#thc-root .thc-bubble{
  background:#fff;border:1px solid #e8e8e8;border-radius:12px;border-top-left-radius:3px;
  padding:10px 14px;font-size:13.5px;line-height:1.8;white-space:pre-wrap;word-break:break-word;
}
#thc-root .thc-msg.thc-me .thc-bubble{
  background:linear-gradient(135deg,#e8c65f,#c9a430);color:#fff;border:none;border-top-right-radius:3px;
}
#thc-root .thc-time{font-size:11px;color:#aaa;margin-top:4px}
#thc-root .thc-msg.thc-me .thc-time{text-align:right}
#thc-root .thc-sysline{text-align:center;color:#999;font-size:12px;margin:6px 0}
#thc-root .thc-queue{text-align:center;color:#999;font-size:11px;margin:-4px 0 10px}

#thc-root .thc-lead{
  background:#fff;border:1px solid #d4af37;border-radius:12px;padding:16px;
  margin:0 0 14px 44px;font-size:13px;
}
#thc-root .thc-lead b{color:#7a5c12}
#thc-root .thc-lead input{
  width:100%;padding:9px;border:1px solid #ddd;border-radius:8px;margin:7px 0 6px;
  font-size:13px;background:#fff;height:auto;
}
#thc-root .thc-lead .thc-tip{color:#c0392b;font-size:12px;min-height:16px;margin:0 0 6px}
#thc-root .thc-lead .thc-note{color:#999;font-size:11px;line-height:1.7;margin:8px 0 0}
#thc-root .thc-lead button{
  width:100%;background:linear-gradient(135deg,#e8c65f,#c9a430);border:none;color:#fff;
  padding:10px;border-radius:8px;font-size:14px;cursor:pointer;
}
#thc-root .thc-lead button:disabled{opacity:.6;cursor:default}
#thc-root .thc-human{
  display:block;text-align:center;background:#111;color:#d4af37;padding:10px;border-radius:8px;
  margin:0 0 14px 44px;font-size:13px;cursor:pointer;
}

#thc-root .thc-typing{color:#999;font-size:12px;padding:6px 24px 10px;display:none;flex:none}
#thc-root .thc-foot{
  flex:none;border-top:1px solid #e8e8e8;background:#fff;padding:12px 20px;
  display:flex;gap:10px;align-items:center;
}
#thc-root .thc-foot .thc-att{
  width:38px;height:38px;border:1px solid #ddd;border-radius:8px;background:#fafafa;
  cursor:pointer;color:#999;font-size:16px;flex:none;
}
#thc-root .thc-foot textarea{
  flex:1;border:1px solid #ddd;border-radius:8px;padding:9px 14px;font-size:14px;
  outline:none;resize:none;line-height:1.5;height:40px;max-height:125px;overflow-y:auto;
  background:#fff;
}
#thc-root .thc-foot textarea:focus{border-color:#d4af37}
#thc-root .thc-foot button.thc-send{
  border:none;background:linear-gradient(135deg,#e8c65f,#c9a430);color:#fff;border-radius:8px;
  padding:10px 22px;font-size:14px;cursor:pointer;flex:none;
}
#thc-root .thc-foot button.thc-send:disabled{opacity:.55;cursor:default}

/* 移动端 ≤640px：仅弹窗全屏；宿主侧板/气泡一律不动 */
@media (max-width:640px){
  #thc-root .thc-modal{
    left:0;top:0;transform:none;width:100%;height:100%;max-width:none;
    min-height:100%;border-radius:0;border:none;
  }
  #thc-root .thc-wrap{padding:16px 12px}
  #thc-root .thc-quick{grid-template-columns:1fr}
  #thc-root .thc-msg{max-width:86%}
  #thc-root .thc-lead,#thc-root .thc-human{margin-left:0}
}
/* ================= 三套样式共用的小件 ================= */
#thc-root .thc-hours{display:block;font-size:11.5px;color:#9a8a5e;margin:6px 0 0}
#thc-root .thc-ai-tag{font-size:11px;color:#d4af37;border:1px solid #6b5a1e;border-radius:4px;
  padding:1px 5px;margin-left:8px;white-space:nowrap;vertical-align:middle;line-height:1.5}
#thc-root .thc-lead .thc-lopts{display:flex;gap:6px;margin:6px 0 4px}
#thc-root .thc-lead .thc-lopts input,#thc-root .thc-lead .thc-lopts select{
  flex:1;min-width:0;padding:7px;border:1px solid #ddd;border-radius:6px;font-size:12px;background:#fff;height:auto;margin:0}
#thc-root .thc-icons{display:flex;gap:6px}
#thc-root .thc-icons button{width:32px;height:32px;border:1px solid #ddd;background:#fafafa;border-radius:6px;
  cursor:pointer;font-size:15px;line-height:1;padding:0;color:#888}

/* A/B 欢迎卡里的头像与文案（与 C 的 .thc-card 视觉统一） */
#thc-root .thc-a-card .thc-av,#thc-root .thc-b-card .thc-av{
  width:64px;height:64px;border-radius:50%;margin:0 auto 12px;overflow:hidden;
  background:#111;border:3px solid #d4af37;
}
#thc-root .thc-a-card .thc-av img,#thc-root .thc-a-card .thc-av video,
#thc-root .thc-b-card .thc-av img,#thc-root .thc-b-card .thc-av video{width:100%;height:100%;object-fit:cover;display:block}
#thc-root .thc-a-card h3,#thc-root .thc-b-card h3{font-size:18px;margin:0 0 8px;color:#222;font-weight:700}
#thc-root .thc-a-card .thc-wel,#thc-root .thc-b-card .thc-wel{font-size:13.5px;color:#555;line-height:1.85;margin:0 0 8px}
#thc-root .thc-a-card .thc-intro,#thc-root .thc-b-card .thc-intro{font-size:12px;color:#999;line-height:1.8;margin:0 0 8px}
#thc-root .thc-a-card .thc-disclaimer,#thc-root .thc-b-card .thc-disclaimer{font-size:11.5px;color:#bbb;line-height:1.7;margin:0}

/* ================= 样式 A（A1~A5 五套皮肤共用同一份 DOM） ================= */
#thc-root .thc-a-modal{
  width:920px;max-width:94vw;height:min(88vh,740px);min-height:560px;
  --gold:#b8942e;--gold-2:#d4af37;--gold-l:#e8c65f;
  --bar-bg:linear-gradient(135deg,#f3e2a8,#d4af37 45%,#b8912b);--bar-fg:#3a2f10;
  --bar-line:#c9a430;--bar-sep:rgba(0,0,0,.14);
  --chat:#f7f5ee;--panel-bg:#fbf8ef;--panel-fg:#333;--panel-sub:#7d7565;--panel-line:#e8e0cc;
  --svc-bg:#fff;--svc-line:#e6dfcb;--svc-fg:#3a3222;--svc-sub:#8a8271;--svc-hover:#fdf8e8;
  --chip-bg:#fff;--chip-line:#e3d9bd;--chip-fg:#5a4a17;
  --btn-bg:linear-gradient(135deg,#e8c65f,#c9a430);--btn-fg:#fff;
  --me-bg:linear-gradient(135deg,#e8c65f,#c9a430);--me-fg:#fff;--bot-bg:#fff;
  --sb:#cbbf9e;
}
#thc-root .thc-a-bar{
  flex:none;display:flex;align-items:center;gap:14px;padding:10px 18px;position:relative;
  background:var(--bar-bg);color:var(--bar-fg);border-bottom:1px solid var(--bar-line);
}
#thc-root .thc-a-who{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0}
#thc-root .thc-a-who .thc-av2.thc-big{width:42px;height:42px;flex:none;border-radius:50%;overflow:hidden;
  border:2px solid rgba(255,255,255,.55);background:#111}
#thc-root .thc-a-portrait{display:none}
#thc-root .thc-a-info{min-width:0;flex:1 1 auto}
#thc-root .thc-a-l1{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:13px;line-height:1.4;overflow:hidden}
#thc-root .thc-a-l1 b{font-size:14.5px;font-weight:700}
#thc-root .thc-a-on{font-size:12.5px;opacity:.85}
#thc-root .thc-a-bar .thc-ai-tag{color:var(--bar-fg);border-color:var(--bar-sep);opacity:.9;margin-left:2px}
#thc-root .thc-a-l2{font-size:11.5px;opacity:.82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
#thc-root .thc-a-tels{display:flex;align-items:center;gap:14px;flex:none}
#thc-root .thc-tel{display:flex;flex-direction:column;gap:1px;line-height:1.15;white-space:nowrap;flex:none}
#thc-root .thc-tel span{font-size:10.5px;opacity:.75;letter-spacing:.5px}
#thc-root .thc-tel b{font-size:16px;font-weight:700;letter-spacing:.5px;white-space:nowrap;font-variant-numeric:tabular-nums}
#thc-root .thc-a-tels .thc-tel+.thc-tel{padding-left:14px;border-left:1px solid var(--bar-sep)}
#thc-root .thc-a-wecomcard{display:none}
#thc-root .thc-a-bar .thc-x{color:var(--bar-fg);opacity:.72;font-size:20px;background:none;border:none;cursor:pointer;padding:0 2px;flex:none;line-height:1}
#thc-root .thc-a-bar .thc-x:hover{opacity:1}
#thc-root .thc-a-body{flex:1;display:flex;min-height:0;position:relative;background:var(--chat)}
#thc-root .thc-a-main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--chat)}
#thc-root .thc-a-card{background:var(--bot-bg);border:1px solid var(--panel-line);border-radius:14px;padding:24px 22px 18px;text-align:center}
#thc-root .thc-a-quick{flex:none;display:flex;gap:8px;padding:8px 16px;overflow-x:auto;background:transparent}
#thc-root .thc-a-quick button{white-space:nowrap;border:1px solid var(--chip-line);background:var(--chip-bg);border-radius:14px;
  padding:7px 14px;font-size:12.5px;color:var(--chip-fg);cursor:pointer}
#thc-root .thc-a-quick button:hover{border-color:var(--gold-2)}
#thc-root .thc-a-emoji{flex:none;display:none;background:#fff;border-top:1px solid #f1ecdf;padding:7px 14px 9px}
#thc-root .thc-a-emoji.on{display:block}
#thc-root .thc-emoji-inner{display:grid;grid-template-columns:repeat(10,1fr);gap:2px}
#thc-root .thc-emoji-inner button{border:none;background:none;font-size:17px;line-height:1;padding:4px 0;cursor:pointer;border-radius:5px}
#thc-root .thc-emoji-inner button:hover{background:#f7f2e4}
#thc-root .thc-a-tools{flex:none;display:flex;align-items:flex-end;gap:8px;padding:8px 16px 6px;border-top:1px solid var(--panel-line);background:#fff}
#thc-root .thc-a-tools textarea{flex:1;border:1px solid #ddd;border-radius:8px;padding:9px 12px;font-size:13.5px;
  resize:none;outline:none;height:40px;max-height:125px;line-height:1.5;background:#fff}
#thc-root .thc-a-tools textarea:focus{border-color:var(--gold-2)}
#thc-root .thc-a-tools .thc-send{border:none;background:var(--btn-bg);color:var(--btn-fg);
  border-radius:8px;padding:10px 18px;font-size:13.5px;cursor:pointer;white-space:nowrap}
#thc-root .thc-a-tools .thc-icons button{width:32px;height:32px;border:1px solid #e4e4e4;background:#fafafa;border-radius:6px;
  cursor:pointer;font-size:15px;line-height:1;padding:0;color:#666}
#thc-root .thc-callbtn{border:1px solid var(--gold-2);background:#fff;color:#8a6d1f;border-radius:8px;
  padding:9px 14px;font-size:13px;cursor:pointer;white-space:nowrap}
#thc-root .thc-callbox{display:none;gap:8px;padding:0 16px 8px;background:#fff}
#thc-root .thc-callbox.on{display:flex}
#thc-root .thc-callbox input{flex:1;border:1px solid #ddd;border-radius:8px;padding:8px 12px;font-size:13px;outline:none}
#thc-root .thc-callbox button{border:none;background:#111;color:#d4af37;border-radius:8px;padding:8px 16px;font-size:13px;cursor:pointer}
#thc-root .thc-a-foot{flex:none;text-align:center;font-size:11px;color:#aaa;padding:4px 0 6px;background:#fff}
#thc-root .thc-a-side{
  flex:none;width:272px;background:var(--panel-bg);color:var(--panel-fg);border-left:1px solid var(--panel-line);
  overflow:hidden;overscroll-behavior:contain;padding:10px 14px 6px;display:flex;flex-direction:column;
}
#thc-root .thc-a-sbody{
  flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:2px;
  scrollbar-width:thin;scrollbar-color:var(--sb) transparent;
}
#thc-root .thc-a-sbody::-webkit-scrollbar{width:6px}
#thc-root .thc-a-sbody::-webkit-scrollbar-thumb{background:var(--sb);border-radius:3px}
#thc-root .thc-a-sbody::-webkit-scrollbar-track{background:transparent}
#thc-root .thc-a-side .thc-a-shead{flex:none;font-size:13px;font-weight:700;color:var(--panel-fg);
  display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}
#thc-root .thc-a-side .thc-a-shead button{font-size:11px;color:var(--panel-sub);cursor:pointer;font-weight:400;
  background:none;border:none;padding:2px 0}
#thc-root .thc-a-side h4{font-size:12.5px;color:var(--panel-fg);margin:11px 0 6px;font-weight:700;line-height:1.4;
  border-left:3px solid var(--gold-2);padding-left:7px}
#thc-root .thc-a-side p{font-size:11.8px;color:var(--panel-sub);line-height:1.75;margin:0;text-align:justify}
#thc-root .thc-a-side ul{list-style:none;margin:0;padding:0}
#thc-root .thc-a-side li{font-size:11.8px;color:var(--panel-sub);line-height:1.62;padding-left:11px;
  position:relative;margin-bottom:2px}
#thc-root .thc-guar li::before{content:'·';position:absolute;left:3px;color:var(--gold-2);font-weight:700}
#thc-root .thc-culture li{padding-left:0;font-size:12px;color:var(--panel-fg)}
#thc-root .thc-culture li::before{content:'— ';color:var(--gold-2)}
#thc-root .thc-services{display:grid;grid-template-columns:1fr 1fr;gap:7px}
#thc-root .thc-svc{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;cursor:pointer;
  border:1px solid var(--svc-line);background:var(--svc-bg);border-radius:9px;padding:7px 9px;
  transition:border-color .15s,background .15s}
#thc-root .thc-svc b{font-size:12.5px;color:var(--svc-fg);font-weight:700;line-height:1.35}
#thc-root .thc-svc span{font-size:10.5px;color:var(--svc-sub);line-height:1.35}
#thc-root .thc-svc:hover{border-color:var(--gold-2);background:var(--svc-hover)}
#thc-root .thc-a-more{margin-top:12px;flex:none}
#thc-root .thc-a-more a{display:block;text-align:center;background:var(--btn-bg);color:var(--btn-fg);
  border-radius:8px;padding:10px;font-size:12.5px;font-weight:700}
#thc-root .thc-a-side.thc-collapsed{display:none}
#thc-root .thc-a-tab{display:none;position:absolute;right:0;top:50%;transform:translateY(-50%);
  background:var(--btn-bg);color:var(--btn-fg);border:none;border-radius:8px 0 0 8px;
  padding:12px 6px;font-size:11px;writing-mode:vertical-rl;cursor:pointer;z-index:5}

/* ---------- A1 深金稳重：官网金压暗一档，实心金按钮 ---------- */
#thc-root.thc-style-a1 .thc-a-modal{
  --bar-bg:linear-gradient(135deg,#9a8138 0%,#7d6829 55%,#5f4f1c 100%);
  --bar-fg:#fff;--bar-line:#c9a430;--bar-sep:rgba(255,255,255,.22);
  --chat:#faf9f5;--panel-bg:#fbf7ec;--panel-line:#e7dfc9;
  --btn-bg:linear-gradient(135deg,#c9a430,#a8871f);--me-bg:linear-gradient(135deg,#c9a430,#a8871f);
}
#thc-root.thc-style-a1 .thc-a-modal .thc-a-hint a{color:#a8871f}

/* ---------- A2 墨黑金线：墨黑顶栏 + 细金线，深色半透资料栏 ---------- */
#thc-root.thc-style-a2 .thc-a-modal{
  --bar-bg:#14100c;--bar-fg:#fff;--bar-line:#d4af37;--bar-sep:rgba(212,175,55,.35);
  --chat:#f4efe4;--panel-bg:rgba(20,16,12,.94);--panel-fg:#efe6d2;--panel-sub:#b7ab90;
  --panel-line:rgba(212,175,55,.26);
  --svc-bg:rgba(255,255,255,.05);--svc-line:rgba(212,175,55,.3);--svc-fg:#f6ecd6;--svc-sub:#b7ab90;
  --svc-hover:rgba(212,175,55,.16);--btn-bg:linear-gradient(135deg,#c9a430,#a8871f);--sb:rgba(212,175,55,.45);
}
#thc-root.thc-style-a2 .thc-a-card{background:#fff}
#thc-root.thc-style-a2 .thc-a-hint{background:#fbf8f0}

/* ---------- A3 纯白极简：一行细线，金色只做点缀 ---------- */
#thc-root.thc-style-a3 .thc-a-modal{
  --bar-bg:#fff;--bar-fg:#3d3d3d;--bar-line:#ececec;--bar-sep:rgba(0,0,0,.08);
  --chat:#fff;--panel-bg:#fff;--panel-fg:#3d3d3d;--panel-sub:#909090;--panel-line:#f0f0f0;
  --svc-bg:#fff;--svc-line:#ededed;--svc-fg:#3d3d3d;--svc-sub:#a3a3a3;--svc-hover:#fdfcf8;
  --btn-bg:#b8942e;--me-bg:#f4f4f4;--me-fg:#3d3d3d;--sb:#dcdcdc;
}
#thc-root.thc-style-a3 .thc-a-bar .thc-ai-tag{color:#9a9a9a;border-color:#e6e6e6}
#thc-root.thc-style-a3 .thc-a-card{border-color:#f1f1f1;box-shadow:none}
#thc-root.thc-style-a3 .thc-a-quick button{border-color:#ececec;color:#666}
#thc-root.thc-style-a3 .thc-callbtn{border-color:#e2e2e2;color:#666}
#thc-root.thc-style-a3 .thc-msg.thc-me .thc-bubble{border:1px solid #ededed}
#thc-root.thc-style-a3 .thc-a-side p,#thc-root.thc-style-a3 .thc-a-side li{color:#777}
#thc-root.thc-style-a3 .thc-a-more a{background:#fff;color:#3d3d3d;border:1px solid #dedede;font-weight:600}

/* ---------- A4 双栏名片：左侧固定名片栏 + 底部资料抽屉 ---------- */
#thc-root.thc-style-a4 .thc-a-modal{
  --bar-bg:linear-gradient(180deg,#2b2318,#14100c);--bar-fg:#fff;
  --bar-line:rgba(212,175,55,.5);--bar-sep:rgba(255,255,255,.18);
  --chat:#faf8f3;--panel-bg:#fff;--panel-fg:#333;--panel-sub:#7d7565;--panel-line:#ece5d3;
  --btn-bg:linear-gradient(135deg,#c9a430,#a8871f);--me-bg:linear-gradient(135deg,#c9a430,#a8871f);
  --sb:#cbbf9e;
}
#thc-root.thc-open.thc-style-a4 .thc-a-modal{display:grid;grid-template-columns:184px 1fr;grid-template-rows:1fr}
#thc-root.thc-style-a4 .thc-a-bar{flex-direction:column;align-items:stretch;justify-content:flex-start;
  gap:10px;padding:44px 14px 16px;border-bottom:none;border-right:1px solid var(--bar-line);overflow-y:auto}
#thc-root.thc-style-a4 .thc-a-who{flex-direction:column;align-items:center;text-align:center;gap:8px;flex:none}
#thc-root.thc-style-a4 .thc-a-who .thc-av2.thc-big{width:56px;height:56px}
#thc-root.thc-style-a4 .thc-a-info{flex:none;text-align:center}
#thc-root.thc-style-a4 .thc-a-l1{flex-direction:column;gap:2px;white-space:normal;overflow:visible}
#thc-root.thc-style-a4 .thc-a-l2{white-space:normal;font-size:10.5px;line-height:1.6}
#thc-root.thc-style-a4 .thc-a-tels{flex-direction:column;gap:9px;align-items:stretch}
#thc-root.thc-style-a4 .thc-a-tels .thc-tel+.thc-tel{padding-left:0;border-left:none;
  border-top:1px solid var(--bar-sep);padding-top:9px}
#thc-root.thc-style-a4 .thc-tel{align-items:center}
#thc-root.thc-style-a4 .thc-tel b{font-size:14px}
#thc-root.thc-style-a4 .thc-a-wecomcard{display:block;margin-top:auto;text-align:center;color:var(--bar-fg);
  border:1px solid var(--bar-sep);border-radius:8px;padding:7px 6px;font-size:11.5px;line-height:1.5}
#thc-root.thc-style-a4 .thc-a-wecomcard span{display:block;font-size:10.5px;opacity:.7}
#thc-root.thc-style-a4 .thc-a-bar .thc-x{position:absolute;top:8px;right:8px}
#thc-root.thc-style-a4 .thc-a-body{flex-direction:column}
#thc-root.thc-style-a4 .thc-a-side{width:auto;max-height:40%;flex:none;border-left:none;
  border-top:1px solid var(--panel-line);padding:10px 16px 12px}
#thc-root.thc-style-a4 .thc-a-side.thc-collapsed{display:flex}
#thc-root.thc-style-a4 .thc-a-side.thc-collapsed .thc-a-sbody{display:none}
#thc-root.thc-style-a4 .thc-a-side .thc-a-more{display:none}
#thc-root.thc-style-a4 .thc-a-tab{display:none!important}

/* ---------- A5 轻量气泡：仿微信气泡，无右侧栏，资料收进「了解更多」浮层 ---------- */
#thc-root.thc-style-a5 .thc-a-modal{
  --bar-bg:#fff;--bar-fg:#3a3a3a;--bar-line:#ededed;--bar-sep:rgba(0,0,0,.06);
  --chat:#f5f5f5;--panel-bg:#fff;--panel-fg:#3a3a3a;--panel-sub:#8f8f8f;--panel-line:#ededed;
  --svc-bg:#fafafa;--svc-line:#eee;--svc-fg:#3a3a3a;--svc-sub:#9a9a9a;--svc-hover:#fdf7e6;
  --btn-bg:#b8942e;--me-bg:#f6e7bb;--me-fg:#4a3f1e;--sb:#d8d8d8;
}
#thc-root.thc-style-a5 .thc-a-bar .thc-ai-tag{color:#9a9a9a;border-color:#e6e6e6}
#thc-root.thc-style-a5 .thc-a-hint{background:#fafafa}
#thc-root.thc-style-a5 .thc-a-tools{background:#fafafa;border-top:1px solid #ededed}
#thc-root.thc-style-a5 .thc-a-tools textarea{background:#fff;border-color:#e6e6e6}
#thc-root.thc-style-a5 .thc-msg.thc-me .thc-bubble{background:var(--me-bg);color:var(--me-fg);border:none}
#thc-root.thc-style-a5 .thc-bubble{background:#fff;border:1px solid #ededed}
#thc-root.thc-style-a5 .thc-a-side{position:absolute;inset:0;width:auto;z-index:7;border-left:none;
  padding:16px 18px 14px;background:#fff;box-shadow:-4px 0 22px rgba(0,0,0,.12)}
#thc-root.thc-style-a5 .thc-a-side.thc-collapsed{display:none}
#thc-root.thc-style-a5 .thc-a-tab{display:block;right:12px;top:9px;transform:none;writing-mode:horizontal-tb;
  border-radius:14px;padding:6px 13px;font-size:11.5px;background:#fff;color:#7a5c12;
  border:1px solid #e6dcc0;z-index:8}

/* ---------- B1~B3：蓝绿主色 + 金色只做点缀（发送按钮/选中态/细线），结构与 A 完全一致 ---------- */
#thc-root.thc-style-b1 .thc-a-modal,
#thc-root.thc-style-c1 .thc-a-modal,
#thc-root.thc-style-d1 .thc-a-modal,
#thc-root.thc-style-d2 .thc-a-modal,
#thc-root.thc-style-d3 .thc-a-modal,
#thc-root.thc-style-e1 .thc-a-modal,
#thc-root.thc-style-e2 .thc-a-modal,
#thc-root.thc-style-e3 .thc-a-modal{
  --gold:#B8942E;--gold-2:#C9A430;
  --bar-bg:linear-gradient(135deg,#1B3A5C 0%,#142C46 100%);--bar-fg:#fff;
  --bar-line:#C9A430;--bar-sep:rgba(255,255,255,.24);
  --chat:#F5F8FB;--panel-bg:#F4F7FA;--panel-fg:#2E3A46;--panel-sub:#55677A;--panel-line:#D8E2EC;
  --svc-bg:#fff;--svc-line:#DDE5EE;--svc-fg:#1B3A5C;--svc-sub:#6B7C8D;--svc-hover:#EDF3F9;
  --chip-bg:#fff;--chip-line:#D9E3EE;--chip-fg:#1B3A5C;
  --btn-bg:linear-gradient(135deg,#D4AF37,#B8942E);--btn-fg:#241D06;
  --me-bg:#E8EFF6;--me-fg:#1B3A5C;--bot-bg:#fff;--sb:#B9C8D6;
}
#thc-root.thc-style-b1 .thc-a-more a,
#thc-root.thc-style-b1 .thc-a-tab,
#thc-root.thc-style-c1 .thc-a-more a,
#thc-root.thc-style-c1 .thc-a-tab,
#thc-root.thc-style-d1 .thc-a-more a,
#thc-root.thc-style-d1 .thc-a-tab,
#thc-root.thc-style-d2 .thc-a-more a,
#thc-root.thc-style-d2 .thc-a-tab,
#thc-root.thc-style-d3 .thc-a-more a,
#thc-root.thc-style-d3 .thc-a-tab,
#thc-root.thc-style-e1 .thc-a-more a,
#thc-root.thc-style-e1 .thc-a-tab,
#thc-root.thc-style-e2 .thc-a-more a,
#thc-root.thc-style-e2 .thc-a-tab,
#thc-root.thc-style-e3 .thc-a-more a,
#thc-root.thc-style-e3 .thc-a-tab{background:#1B3A5C;color:#fff}
#thc-root.thc-style-b1 .thc-callbtn,
#thc-root.thc-style-c1 .thc-callbtn,
#thc-root.thc-style-d1 .thc-callbtn,
#thc-root.thc-style-d2 .thc-callbtn,
#thc-root.thc-style-d3 .thc-callbtn,
#thc-root.thc-style-e1 .thc-callbtn,
#thc-root.thc-style-e2 .thc-callbtn,
#thc-root.thc-style-e3 .thc-callbtn{border-color:#C6D4E2;color:#1B3A5C}
#thc-root.thc-style-b1 .thc-msg.thc-me .thc-bubble{background:var(--me-bg);color:var(--me-fg);border:none}

#thc-root.thc-style-b2 .thc-a-modal{
  --gold:#B8942E;--gold-2:#C9A430;
  --bar-bg:linear-gradient(135deg,#0F766E 0%,#0A5B54 100%);--bar-fg:#fff;
  --bar-line:#C9A430;--bar-sep:rgba(255,255,255,.26);
  --chat:#F6FAF9;--panel-bg:#F2F9F7;--panel-fg:#1F2E2C;--panel-sub:#4F6B67;--panel-line:#D5E6E3;
  --svc-bg:#fff;--svc-line:#DCEDEA;--svc-fg:#0F766E;--svc-sub:#5F8681;--svc-hover:#EBF7F4;
  --chip-bg:#fff;--chip-line:#D9EBE8;--chip-fg:#0F766E;
  --btn-bg:linear-gradient(135deg,#D4AF37,#B8942E);--btn-fg:#241D06;
  --me-bg:#E4F2EF;--me-fg:#0B5A54;--bot-bg:#fff;--sb:#B3D2CC;
}
#thc-root.thc-style-b2 .thc-a-more a,
#thc-root.thc-style-b2 .thc-a-tab{background:#0F766E;color:#fff}
#thc-root.thc-style-b2 .thc-callbtn{border-color:#C3DED9;color:#0F766E}
#thc-root.thc-style-b2 .thc-msg.thc-me .thc-bubble{background:var(--me-bg);color:var(--me-fg);border:none}

#thc-root.thc-style-b3 .thc-a-modal,
#thc-root.thc-style-c3 .thc-a-modal{
  --gold:#B8942E;--gold-2:#C9A430;
  --bar-bg:linear-gradient(135deg,#12352B 0%,#0B241C 100%);--bar-fg:#F5F0E2;
  --bar-line:#C9A430;--bar-sep:rgba(201,164,48,.42);
  --chat:#FAF6EE;--panel-bg:#F7F3EA;--panel-fg:#2B322D;--panel-sub:#5C6359;--panel-line:#DCD5C2;
  --svc-bg:#fff;--svc-line:#E2DCCB;--svc-fg:#12352B;--svc-sub:#77796C;--svc-hover:#F3EEE0;
  --chip-bg:#fff;--chip-line:#E0D9C7;--chip-fg:#12352B;
  --btn-bg:linear-gradient(135deg,#D4AF37,#B8942E);--btn-fg:#241D06;
  --me-bg:#E6EEE9;--me-fg:#12352B;--bot-bg:#fff;--sb:#C6BEAA;
}
#thc-root.thc-style-b3 .thc-a-more a,
#thc-root.thc-style-b3 .thc-a-tab,
#thc-root.thc-style-c3 .thc-a-more a,
#thc-root.thc-style-c3 .thc-a-tab{background:#12352B;color:#F5F0E2}
#thc-root.thc-style-b3 .thc-callbtn,
#thc-root.thc-style-c3 .thc-callbtn{border-color:#DAD3C1;color:#12352B}
#thc-root.thc-style-b3 .thc-msg.thc-me .thc-bubble{background:var(--me-bg);color:var(--me-fg);border:none}

/* ---------- C2：浅蓝灰底（更亮） ---------- */
#thc-root.thc-style-c2 .thc-a-modal{
  --gold:#B8942E;--gold-2:#C9A430;
  --bar-bg:linear-gradient(180deg,#EDF2F7,#E4EBF2);--bar-fg:#1B3A5C;
  --bar-line:#C9A430;--bar-sep:rgba(27,58,92,.22);
  --chat:#FFFFFF;--panel-bg:#EEF3F8;--panel-fg:#2E3A46;--panel-sub:#55677A;--panel-line:#DCE4EC;
  --svc-bg:#fff;--svc-line:#DDE5EE;--svc-fg:#1B3A5C;--svc-sub:#6B7C8D;--svc-hover:#E7EFF7;
  --chip-bg:#fff;--chip-line:#D9E3EE;--chip-fg:#1B3A5C;
  --btn-bg:linear-gradient(135deg,#D4AF37,#B8942E);--btn-fg:#241D06;
  --me-bg:#E8EFF6;--me-fg:#1B3A5C;--bot-bg:#fff;--sb:#B9C8D6;
}
#thc-root.thc-style-c2 .thc-a-more a,
#thc-root.thc-style-c2 .thc-a-tab{background:#1B3A5C;color:#fff}
#thc-root.thc-style-c2 .thc-callbtn{border-color:#C6D4E2;color:#1B3A5C}
#thc-root.thc-style-c2 .thc-msg.thc-me .thc-bubble{background:var(--me-bg);color:var(--me-fg);border:none}

/* ---------- C1~C3：半身像工牌竖条 + 双行电话（官网口径） ---------- */
#thc-root.thc-style-c1 .thc-a-bar,
#thc-root.thc-style-c2 .thc-a-bar,
#thc-root.thc-style-c3 .thc-a-bar{
  min-height:140px;padding:8px 34px 8px 18px;gap:16px;
}
#thc-root.thc-style-c1 .thc-a-portrait,
#thc-root.thc-style-c2 .thc-a-portrait,
#thc-root.thc-style-c3 .thc-a-portrait{
  display:block;flex:none;align-self:stretch;width:116px;margin:-8px 16px -8px -18px;
  background:#F1E9DE;border-right:1px solid #C9A430;overflow:hidden;
}
#thc-root.thc-style-c1 .thc-a-portrait img,
#thc-root.thc-style-c2 .thc-a-portrait img,
#thc-root.thc-style-c3 .thc-a-portrait img{
  width:100%;height:100%;display:block;object-fit:cover;object-position:50% 50%;
}
#thc-root.thc-style-c1 .thc-a-who .thc-av2,
#thc-root.thc-style-c2 .thc-a-who .thc-av2,
#thc-root.thc-style-c3 .thc-a-who .thc-av2{display:none}
#thc-root.thc-style-c1 .thc-a-tels,
#thc-root.thc-style-c2 .thc-a-tels,
#thc-root.thc-style-c3 .thc-a-tels{flex-direction:column;align-items:flex-end;gap:7px}
#thc-root.thc-style-c1 .thc-a-tels .thc-tel+.thc-tel,
#thc-root.thc-style-c2 .thc-a-tels .thc-tel+.thc-tel,
#thc-root.thc-style-c3 .thc-a-tels .thc-tel+.thc-tel{padding-left:0;border-left:none}
#thc-root.thc-style-c1 .thc-tel,
#thc-root.thc-style-c2 .thc-tel,
#thc-root.thc-style-c3 .thc-tel{align-items:flex-end;gap:2px}
#thc-root.thc-style-c1 .thc-tel b,
#thc-root.thc-style-c2 .thc-tel b,
#thc-root.thc-style-c3 .thc-tel b{font-size:16.5px}
#thc-root.thc-style-c1 .thc-a-bar .thc-x,
#thc-root.thc-style-c2 .thc-a-bar .thc-x,
#thc-root.thc-style-c3 .thc-a-bar .thc-x{align-self:flex-start;margin-top:2px}
/* C 弹窗加高 + 侧栏略宽：让"企业文化"四条与底部转人工在 1440×900 内同时可见 */
#thc-root.thc-style-c1 .thc-a-modal,
#thc-root.thc-style-c2 .thc-a-modal,
#thc-root.thc-style-c3 .thc-a-modal,
#thc-root.thc-style-d1 .thc-a-modal,
#thc-root.thc-style-d2 .thc-a-modal,
#thc-root.thc-style-d3 .thc-a-modal{height:min(92vh,800px)}
#thc-root.thc-style-c1 .thc-a-side,
#thc-root.thc-style-c2 .thc-a-side,
#thc-root.thc-style-c3 .thc-a-side,
#thc-root.thc-style-d1 .thc-a-side,
#thc-root.thc-style-d2 .thc-a-side,
#thc-root.thc-style-d3 .thc-a-side{width:296px}
#thc-root.thc-style-c1 .thc-a-sbody h4,
#thc-root.thc-style-c2 .thc-a-sbody h4,
#thc-root.thc-style-c3 .thc-a-sbody h4{margin:8px 0 4px}
#thc-root.thc-style-c1 .thc-a-sbody p,
#thc-root.thc-style-c2 .thc-a-sbody p,
#thc-root.thc-style-c3 .thc-a-sbody p,
#thc-root.thc-style-d1 .thc-a-sbody p,
#thc-root.thc-style-d2 .thc-a-sbody p,
#thc-root.thc-style-d3 .thc-a-sbody p{line-height:1.72}
#thc-root.thc-style-c1 .thc-a-sbody li,
#thc-root.thc-style-c2 .thc-a-sbody li,
#thc-root.thc-style-c3 .thc-a-sbody li{line-height:1.55}
#thc-root.thc-style-c1 .thc-svc,
#thc-root.thc-style-c2 .thc-svc,
#thc-root.thc-style-c3 .thc-svc{padding:6px 9px}

/* 客服真人照片：顶栏 46px 白描边；欢迎卡 76px 金细边（照片原底为浅米，圆裁后同色底） */
#thc-root.thc-style-b1 .thc-a-who .thc-av2.thc-big,
#thc-root.thc-style-b2 .thc-a-who .thc-av2.thc-big,
#thc-root.thc-style-b3 .thc-a-who .thc-av2.thc-big{
  width:46px;height:46px;border:2px solid rgba(255,255,255,.85);background:#FBF8EA;
}
#thc-root.thc-style-b1 .thc-a-card .thc-av,
#thc-root.thc-style-b2 .thc-a-card .thc-av,
#thc-root.thc-style-b3 .thc-a-card .thc-av,
#thc-root.thc-style-c1 .thc-a-card .thc-av,
#thc-root.thc-style-c2 .thc-a-card .thc-av,
#thc-root.thc-style-c3 .thc-a-card .thc-av{
  width:76px;height:76px;border:2px solid #C9A430;background:#FBF8EA;margin-bottom:14px;
}
/* C 系列：顶栏已有真人像，欢迎卡不再重复头像，纯文字欢迎（在线状态由顶栏"正在为您服务"承担） */
#thc-root.thc-style-c1 .thc-a-card .thc-av,
#thc-root.thc-style-c2 .thc-a-card .thc-av,
#thc-root.thc-style-c3 .thc-a-card .thc-av{display:none}

/* ---------- D1~D3：白底去背人像，头顶探出顶栏上边界（窗体外） ---------- */
#thc-root.thc-style-d1 .thc-a-modal,
#thc-root.thc-style-d2 .thc-a-modal,
#thc-root.thc-style-d3 .thc-a-modal{overflow:visible}
#thc-root.thc-style-d1 .thc-a-bar,
#thc-root.thc-style-d2 .thc-a-bar,
#thc-root.thc-style-d3 .thc-a-bar{
  padding-left:132px;gap:12px;overflow:visible;border-radius:14px 14px 0 0;
}
#thc-root.thc-style-d1 .thc-a-portrait,
#thc-root.thc-style-d2 .thc-a-portrait,
#thc-root.thc-style-d3 .thc-a-portrait{
  display:block;position:absolute;left:8px;bottom:0;width:auto;
  background:none;border:0;overflow:visible;z-index:3;
}
#thc-root.thc-style-d1 .thc-a-portrait img,
#thc-root.thc-style-d2 .thc-a-portrait img,
#thc-root.thc-style-d3 .thc-a-portrait img{
  display:block;width:auto;height:100%;max-width:none;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.26));
}
#thc-root.thc-style-d1 .thc-a-foot,
#thc-root.thc-style-d2 .thc-a-foot,
#thc-root.thc-style-d3 .thc-a-foot{border-radius:0 0 14px 14px}
/* 顶栏高度与人像探出量：D1 120/16、D2 130/22、D3 120/16（人像右移、电话行距加大） */
#thc-root.thc-style-d1 .thc-a-bar,
#thc-root.thc-style-d3 .thc-a-bar{min-height:120px}
#thc-root.thc-style-d1 .thc-a-portrait,
#thc-root.thc-style-d3 .thc-a-portrait{height:calc(100% + 16px)}
#thc-root.thc-style-d2 .thc-a-bar{min-height:130px}
#thc-root.thc-style-d2 .thc-a-portrait{height:calc(100% + 22px)}
#thc-root.thc-style-d3 .thc-a-portrait{left:26px}
#thc-root.thc-style-d3 .thc-a-bar{padding-left:150px}
/* 电话：标签左、号码右，同一行两端对齐，两组上下两行 */
#thc-root.thc-style-d1 .thc-a-tels,
#thc-root.thc-style-d2 .thc-a-tels,
#thc-root.thc-style-d3 .thc-a-tels{
  flex-direction:column;align-items:stretch;gap:9px;width:250px;margin-left:auto;
}
#thc-root.thc-style-d1 .thc-a-tels .thc-tel,
#thc-root.thc-style-d2 .thc-a-tels .thc-tel,
#thc-root.thc-style-d3 .thc-a-tels .thc-tel{
  display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:12px;
  padding-left:0;border-left:none;
}
#thc-root.thc-style-d1 .thc-tel span,
#thc-root.thc-style-d2 .thc-tel span,
#thc-root.thc-style-d3 .thc-tel span{font-size:10.5px;opacity:.8;white-space:nowrap}
#thc-root.thc-style-d1 .thc-tel b,
#thc-root.thc-style-d2 .thc-tel b,
#thc-root.thc-style-d3 .thc-tel b{font-size:17px;letter-spacing:.2px}
#thc-root.thc-style-d3 .thc-a-tels{gap:15px}
/* 侧栏轻微压缩，保证企业文化四条完整可见且不遮挡底部转人工 */
#thc-root.thc-style-d1 .thc-a-sbody h4,
#thc-root.thc-style-d2 .thc-a-sbody h4,
#thc-root.thc-style-d3 .thc-a-sbody h4{margin:6px 0 3px}
#thc-root.thc-style-d1 .thc-a-sbody p,
#thc-root.thc-style-d2 .thc-a-sbody p,
#thc-root.thc-style-d3 .thc-a-sbody p{line-height:1.58}
#thc-root.thc-style-d1 .thc-a-sbody li,
#thc-root.thc-style-d2 .thc-a-sbody li,
#thc-root.thc-style-d3 .thc-a-sbody li{line-height:1.5}

/* ---------- E1~E3：86/90/92 矮顶栏 + 头肩构头像，头顶探出 12px，脖子以下被下沿裁掉 ---------- */
#thc-root.thc-style-e1 .thc-a-modal,
#thc-root.thc-style-e2 .thc-a-modal,
#thc-root.thc-style-e3 .thc-a-modal{overflow:visible;height:min(92vh,800px)}
#thc-root.thc-style-e1 .thc-a-bar,
#thc-root.thc-style-e2 .thc-a-bar,
#thc-root.thc-style-e3 .thc-a-bar{
  position:relative;padding:7px 28px 7px 108px;gap:12px;overflow:visible;
  border-radius:14px 14px 0 0;
}
#thc-root.thc-style-e1 .thc-a-bar{min-height:86px}
#thc-root.thc-style-e2 .thc-a-bar{min-height:90px}
#thc-root.thc-style-e3 .thc-a-bar{min-height:92px}
#thc-root.thc-style-e1 .thc-a-portrait,
#thc-root.thc-style-e2 .thc-a-portrait,
#thc-root.thc-style-e3 .thc-a-portrait{
  display:block;position:absolute;left:18px;bottom:0;width:auto;
  height:calc(100% + 12px);background:none;border:0;overflow:visible;z-index:3;
}
#thc-root.thc-style-e1 .thc-a-portrait img,
#thc-root.thc-style-e2 .thc-a-portrait img,
#thc-root.thc-style-e3 .thc-a-portrait img{
  display:block;height:100%;width:auto;max-width:none;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.22));
}
/* 顶栏文字随高度收敛 */
#thc-root.thc-style-e1 .thc-a-l1,
#thc-root.thc-style-e2 .thc-a-l1,
#thc-root.thc-style-e3 .thc-a-l1{font-size:12.5px;gap:5px}
#thc-root.thc-style-e1 .thc-a-l2,
#thc-root.thc-style-e2 .thc-a-l2,
#thc-root.thc-style-e3 .thc-a-l2{font-size:10.5px;margin-top:1px}
#thc-root.thc-style-e1 .thc-a-bar .thc-ai-tag,
#thc-root.thc-style-e2 .thc-a-bar .thc-ai-tag,
#thc-root.thc-style-e3 .thc-a-bar .thc-ai-tag{font-size:10px;padding:0 4px}
/* 电话：标签左 / 号码右，两组上下两行 */
#thc-root.thc-style-e1 .thc-a-tels,
#thc-root.thc-style-e2 .thc-a-tels,
#thc-root.thc-style-e3 .thc-a-tels{
  flex-direction:column;align-items:stretch;gap:7px;width:226px;margin-left:auto;
}
#thc-root.thc-style-e1 .thc-a-tels .thc-tel,
#thc-root.thc-style-e2 .thc-a-tels .thc-tel,
#thc-root.thc-style-e3 .thc-a-tels .thc-tel{
  display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:10px;
  padding-left:0;border-left:none;
}
#thc-root.thc-style-e1 .thc-tel span,
#thc-root.thc-style-e2 .thc-tel span,
#thc-root.thc-style-e3 .thc-tel span{font-size:10px;opacity:.78;white-space:nowrap}
#thc-root.thc-style-e1 .thc-tel b,
#thc-root.thc-style-e2 .thc-tel b,
#thc-root.thc-style-e3 .thc-tel b{font-size:15px;letter-spacing:.2px}
/* 其余与 C1 一致 */
#thc-root.thc-style-e1 .thc-a-side,
#thc-root.thc-style-e2 .thc-a-side,
#thc-root.thc-style-e3 .thc-a-side{width:296px}
#thc-root.thc-style-e1 .thc-a-sbody h4,
#thc-root.thc-style-e2 .thc-a-sbody h4,
#thc-root.thc-style-e3 .thc-a-sbody h4{margin:6px 0 3px}
#thc-root.thc-style-e1 .thc-a-sbody p,
#thc-root.thc-style-e2 .thc-a-sbody p,
#thc-root.thc-style-e3 .thc-a-sbody p{line-height:1.58}
#thc-root.thc-style-e1 .thc-a-sbody li,
#thc-root.thc-style-e2 .thc-a-sbody li,
#thc-root.thc-style-e3 .thc-a-sbody li{line-height:1.5}
#thc-root.thc-style-e1 .thc-a-foot,
#thc-root.thc-style-e2 .thc-a-foot,
#thc-root.thc-style-e3 .thc-a-foot{border-radius:0 0 14px 14px}
#thc-root.thc-style-e1 .thc-a-card .thc-av,
#thc-root.thc-style-e2 .thc-a-card .thc-av,
#thc-root.thc-style-e3 .thc-a-card .thc-av{
  display:block;width:50px;height:50px;margin:0 auto 10px;border-radius:50%;
  border:2px solid #C9A430;background:#F4F7FA;box-shadow:none;overflow:hidden;
}
#thc-root.thc-style-e1 .thc-a-card .thc-av img,
#thc-root.thc-style-e2 .thc-a-card .thc-av img,
#thc-root.thc-style-e3 .thc-a-card .thc-av img{
  width:100%;height:100%;object-fit:cover;object-position:50% 32%;display:block;
}
#thc-root.thc-style-e1 .thc-a-who .thc-av2,
#thc-root.thc-style-e2 .thc-a-who .thc-av2,
#thc-root.thc-style-e3 .thc-a-who .thc-av2{display:none}
#thc-root.thc-style-d1 .thc-a-card .thc-av,
#thc-root.thc-style-d2 .thc-a-card .thc-av,
#thc-root.thc-style-d3 .thc-a-card .thc-av{display:none}
#thc-root.thc-style-d1 .thc-a-who .thc-av2,
#thc-root.thc-style-d2 .thc-a-who .thc-av2,
#thc-root.thc-style-d3 .thc-a-who .thc-av2{display:none}

/* ================= 样式 B：53KF 式 ================= */
#thc-root .thc-b-modal{width:880px;max-width:94vw;height:min(84vh,680px);min-height:560px}
#thc-root .thc-b-bar{flex:none;background:linear-gradient(135deg,#1c1a16,#3a3121);color:#fff;
  padding:14px 52px 12px 20px;position:relative}
#thc-root .thc-b-bar .thc-x{position:absolute;right:14px;top:10px;color:#bbb;background:none;border:none;
  font-size:21px;cursor:pointer;line-height:1}
#thc-root .thc-b-tel{font-size:25px;font-weight:700;letter-spacing:2px;color:#e8c65f;line-height:1.2}
#thc-root .thc-b-sub{font-size:12.5px;color:#b9b2a0;margin-top:2px}
#thc-root .thc-b-sub .thc-ai-tag{color:#e8c65f;border-color:#6b5a1e}
#thc-root .thc-b-sub .thc-hours{color:#8d846f;display:inline-block;margin-left:10px;font-size:11px}
#thc-root .thc-b-body{flex:1;display:flex;min-height:0;position:relative}
#thc-root .thc-b-main{flex:1;min-width:0;display:flex;flex-direction:column;background:#f6f7f9}
#thc-root .thc-b-sys{flex:none;background:#fff;border-bottom:1px solid #eee;padding:8px 16px;
  display:flex;justify-content:space-between;gap:10px;font-size:11.5px;color:#999}
#thc-root .thc-b-sys a{color:#8a6d1f;white-space:nowrap}
#thc-root .thc-b-sys span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#thc-root .thc-b-card{background:#fff;border:1px solid #eee;border-radius:12px;padding:22px 20px 16px;text-align:center}
#thc-root .thc-b-tools{flex:none;display:flex;align-items:flex-end;gap:8px;padding:9px 14px;background:#fff;border-top:1px solid #eee}
#thc-root .thc-b-tools textarea{flex:1;border:1px solid #ddd;border-radius:6px;padding:9px 12px;font-size:13.5px;
  resize:none;outline:none;height:42px;max-height:125px;line-height:1.5}
#thc-root .thc-b-tools textarea:focus{border-color:#d4af37}
#thc-root .thc-b-tools .thc-send{border:none;background:linear-gradient(135deg,#e8c65f,#c9a430);color:#fff;
  border-radius:6px;padding:11px 22px;font-size:13.5px;cursor:pointer}
#thc-root .thc-b-side{flex:none;width:250px;background:#fff;border-left:1px solid #eee;display:flex;flex-direction:column}
#thc-root .thc-b-tabs{display:flex;border-bottom:1px solid #eee}
#thc-root .thc-b-tabs button{flex:1;border:none;background:none;padding:11px 4px;font-size:13px;color:#888;cursor:pointer;
  border-bottom:2px solid transparent}
#thc-root .thc-b-tabs button.on{color:#7a5c12;border-bottom-color:#d4af37;font-weight:700}
#thc-root .thc-b-pane{flex:1;overflow-y:auto;padding:14px 16px;font-size:12.5px;color:#666;line-height:1.9}
#thc-root .thc-b-pane h4{font-size:14px;color:#222;margin:0 0 8px}
#thc-root .thc-cardlist{list-style:none;margin:0;padding:0}
#thc-root .thc-cardlist li{border-bottom:1px dashed #eee;padding:7px 0;font-size:12.5px}
#thc-root .thc-cardlist b{color:#333;display:inline-block;width:52px}
#thc-root .thc-cardlist a{color:#8a6d1f}
#thc-root .thc-b-wecom{display:block;text-align:center;background:#111;color:#d4af37;border-radius:6px;
  padding:9px;font-size:12.5px;margin-top:14px}
#thc-root .thc-b-tabbtn{display:none;position:absolute;right:0;top:50%;transform:translateY(-50%);
  background:linear-gradient(135deg,#e8c65f,#c9a430);color:#fff;border:none;border-radius:8px 0 0 8px;
  padding:12px 6px;font-size:11px;writing-mode:vertical-rl;cursor:pointer}

/* ---------- G1/G2：顶栏字号整体放大（104/110px），人像用用户提供的新透明素材 ---------- */
#thc-root .thc-a-name{font-style:normal}
#thc-root.thc-style-g1 .thc-a-modal,
#thc-root.thc-style-g2 .thc-a-modal{
  overflow:visible;height:min(92vh,800px);
  --gold:#B8942E;--gold-2:#C9A430;
  --bar-bg:linear-gradient(135deg,#1B3A5C 0%,#142C46 100%);--bar-fg:#fff;
  --bar-line:#C9A430;--bar-sep:rgba(255,255,255,.24);
  --chat:#F5F8FB;--panel-bg:#F4F7FA;--panel-fg:#2E3A46;--panel-sub:#55677A;--panel-line:#D8E2EC;
  --svc-bg:#fff;--svc-line:#DDE5EE;--svc-fg:#1B3A5C;--svc-sub:#6B7C8D;--svc-hover:#EDF3F9;
  --chip-bg:#fff;--chip-line:#D9E3EE;--chip-fg:#1B3A5C;
  --btn-bg:linear-gradient(135deg,#D4AF37,#B8942E);--btn-fg:#241D06;
  --me-bg:#E8EFF6;--me-fg:#1B3A5C;--bot-bg:#fff;--sb:#B9C8D6;
}
#thc-root.thc-style-g1 .thc-a-bar{min-height:104px;padding:10px 26px 10px 132px}
#thc-root.thc-style-g2 .thc-a-bar{min-height:110px;padding:10px 26px 10px 144px}
#thc-root.thc-style-g1 .thc-a-bar,
#thc-root.thc-style-g2 .thc-a-bar{
  position:relative;gap:14px;overflow:visible;border-radius:14px 14px 0 0;
}
#thc-root.thc-style-g1 .thc-a-portrait,
#thc-root.thc-style-g2 .thc-a-portrait{
  display:block;position:absolute;left:18px;bottom:0;height:calc(100% + 12px);
  background:none;border:0;overflow:visible;z-index:3;
}
#thc-root.thc-style-g1 .thc-a-portrait{width:96px}
#thc-root.thc-style-g2 .thc-a-portrait{width:108px}
#thc-root.thc-style-g1 .thc-a-portrait img,
#thc-root.thc-style-g2 .thc-a-portrait img{
  display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 0;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.22));
}
/* 主文案：16px / 600，小狐金色 */
#thc-root.thc-style-g1 .thc-a-l1,
#thc-root.thc-style-g2 .thc-a-l1{font-size:16px;font-weight:600;gap:8px;line-height:1.35}
#thc-root.thc-style-g1 .thc-a-l1 b,
#thc-root.thc-style-g2 .thc-a-l1 b{font-weight:600}
#thc-root.thc-style-g1 .thc-a-name,
#thc-root.thc-style-g2 .thc-a-name{color:#E8C65F;font-weight:700}
#thc-root.thc-style-g1 .thc-a-on,
#thc-root.thc-style-g2 .thc-a-on{font-size:14px;opacity:.9}
/* 状态行：13px / 1.5，浅灰白 */
#thc-root.thc-style-g1 .thc-a-l2,
#thc-root.thc-style-g2 .thc-a-l2{
  font-size:13px;line-height:1.5;color:rgba(255,255,255,.86);margin-top:3px;opacity:1;
}
/* AI 小标签：11px，半透明底不抢眼 */
#thc-root.thc-style-g1 .thc-a-bar .thc-ai-tag,
#thc-root.thc-style-g2 .thc-a-bar .thc-ai-tag{
  font-size:11px;padding:1px 6px;margin-left:8px;color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);border-radius:4px;
}
/* 电话：标签左 13px、号码右 20/21px 700，同基线，两行右对齐 */
#thc-root.thc-style-g1 .thc-a-tels,
#thc-root.thc-style-g2 .thc-a-tels{
  flex-direction:column;align-items:stretch;gap:9px;width:278px;margin-left:auto;
}
#thc-root.thc-style-g1 .thc-a-tels .thc-tel,
#thc-root.thc-style-g2 .thc-a-tels .thc-tel{
  display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:12px;
  padding-left:0;border-left:none;
}
#thc-root.thc-style-g1 .thc-tel span,
#thc-root.thc-style-g2 .thc-tel span{font-size:13px;opacity:1;color:rgba(255,255,255,.82);letter-spacing:0}
#thc-root.thc-style-g1 .thc-tel b{font-size:20px;font-weight:700;letter-spacing:.3px}
#thc-root.thc-style-g2 .thc-tel b{font-size:21px;font-weight:700;letter-spacing:.3px}
/* 其余与上一版一致 */
#thc-root.thc-style-g1 .thc-a-side,
#thc-root.thc-style-g2 .thc-a-side{width:296px}
#thc-root.thc-style-g1 .thc-a-sbody h4,
#thc-root.thc-style-g2 .thc-a-sbody h4{margin:6px 0 3px}
#thc-root.thc-style-g1 .thc-a-sbody p,
#thc-root.thc-style-g2 .thc-a-sbody p{line-height:1.58}
#thc-root.thc-style-g1 .thc-a-sbody li,
#thc-root.thc-style-g2 .thc-a-sbody li{line-height:1.5}
#thc-root.thc-style-g1 .thc-a-foot,
#thc-root.thc-style-g2 .thc-a-foot{border-radius:0 0 14px 14px}
#thc-root.thc-style-g1 .thc-a-more a,
#thc-root.thc-style-g2 .thc-a-more a,
#thc-root.thc-style-g1 .thc-a-tab,
#thc-root.thc-style-g2 .thc-a-tab{background:#1B3A5C;color:#fff}
#thc-root.thc-style-g1 .thc-callbtn,
#thc-root.thc-style-g2 .thc-callbtn{border-color:#C6D4E2;color:#1B3A5C}
/* 欢迎区金圈圆头像 */
#thc-root.thc-style-g1 .thc-a-card .thc-av,
#thc-root.thc-style-g2 .thc-a-card .thc-av{
  display:block;width:50px;height:50px;margin:0 auto 10px;border-radius:50%;
  border:2px solid #C9A430;background:#F4F7FA;box-shadow:none;overflow:hidden;
}
#thc-root.thc-style-g1 .thc-a-card .thc-av img,
#thc-root.thc-style-g2 .thc-a-card .thc-av img{
  width:100%;height:100%;object-fit:cover;object-position:50% 32%;display:block;
}
#thc-root.thc-style-g1 .thc-a-who .thc-av2,
#thc-root.thc-style-g2 .thc-a-who .thc-av2{display:none}

/* ---------- H1~H4：原图白底工牌照，等比缩放不裁切 ---------- */
#thc-root .thc-sec{display:contents}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-modal{
  overflow:visible;height:min(92vh,800px);
  --gold:#B8942E;--gold-2:#C9A430;
  --bar-bg:linear-gradient(135deg,#1B3A5C 0%,#142C46 100%);--bar-fg:#fff;
  --bar-line:#C9A430;--bar-sep:rgba(255,255,255,.24);
  --chat:#F5F8FB;--panel-bg:#F4F7FA;--panel-fg:#2E3A46;--panel-sub:#55677A;--panel-line:#D8E2EC;
  --svc-bg:#fff;--svc-line:#DDE5EE;--svc-fg:#1B3A5C;--svc-sub:#6B7C8D;--svc-hover:#EDF3F9;
  --chip-bg:#fff;--chip-line:#D9E3EE;--chip-fg:#1B3A5C;
  --btn-bg:linear-gradient(135deg,#D4AF37,#B8942E);--btn-fg:#241D06;
  --me-bg:#E8EFF6;--me-fg:#1B3A5C;--bot-bg:#fff;--sb:#B9C8D6;
}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-bar{
  min-height:104px;position:relative;gap:14px;overflow:visible;border-radius:14px 14px 0 0;padding:10px 26px;
}
#thc-root.thc-style-h1 .thc-a-bar,
#thc-root.thc-style-h3 .thc-a-bar{padding-left:126px}
#thc-root.thc-style-h2 .thc-a-bar{padding-left:138px}
#thc-root.thc-style-h4 .thc-a-bar{padding-left:126px}
/* 工牌照：白底原图内缩式（四周约 4.5px 白边）+ contain 等比缩放，圆角 2px，右侧 1px 金线 */
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-portrait{
  display:block;position:absolute;left:18px;width:auto;background:#fff;z-index:3;
  border-radius:2px;border-right:1px solid rgba(201,164,48,.85);overflow:hidden;
  padding:4.5px;box-shadow:0 2px 10px rgba(0,0,0,.18);
}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-portrait img{
  display:block;height:100%;width:auto;max-width:none;object-fit:contain;
}
#thc-root.thc-style-h1 .thc-a-portrait,
#thc-root.thc-style-h3 .thc-a-portrait,
#thc-root.thc-style-h4 .thc-a-portrait{top:0;bottom:0;height:100%}
#thc-root.thc-style-h2 .thc-a-portrait{top:-14px;bottom:auto;height:calc(100% + 14px)}
/* 字号沿用上一版 */
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-l1{font-size:16px;font-weight:600;gap:8px;line-height:1.35}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-l1 b{font-weight:600}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-name{color:#E8C65F;font-weight:700}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-on{font-size:14px;opacity:.9}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-l2{font-size:13px;line-height:1.5;color:rgba(255,255,255,.86);margin-top:3px;opacity:1}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-bar .thc-ai-tag{
  font-size:11px;padding:1px 6px;margin-left:8px;color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);border-radius:4px;
}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-tels{
  flex-direction:column;align-items:stretch;gap:9px;width:278px;margin-left:auto;
}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-tels .thc-tel{
  display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:12px;
  padding-left:0;border-left:none;
}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-tel span{font-size:13px;opacity:1;color:rgba(255,255,255,.82);letter-spacing:0}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-tel b{font-size:20px;font-weight:700;letter-spacing:.3px}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-side{width:296px}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h4) .thc-a-sbody h4{margin:6px 0 3px}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h4) .thc-a-sbody p{line-height:1.56}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h4) .thc-a-sbody li{line-height:1.48}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-foot{border-radius:0 0 14px 14px}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-more a,
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-tab{background:#1B3A5C;color:#fff}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-callbtn{border-color:#C6D4E2;color:#1B3A5C}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-card .thc-av{
  display:block;width:50px;height:50px;margin:0 auto 10px;border-radius:50%;
  border:2px solid #C9A430;background:#F4F7FA;box-shadow:none;overflow:hidden;
}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-card .thc-av img{
  width:100%;height:100%;object-fit:cover;object-position:50% 32%;display:block;
}
#thc-root:is(.thc-style-h1,.thc-style-h2,.thc-style-h3,.thc-style-h4) .thc-a-who .thc-av2{display:none}

/* H3：右侧栏改浅灰分组卡片 */
#thc-root.thc-style-h3 .thc-a-sbody{display:flex;flex-direction:column;gap:6px;padding:6px 10px 5px}
#thc-root.thc-style-h3 .thc-sec{
  display:block;background:#F5F7FA;border:1px solid #E7ECF3;border-radius:12px;padding:6px 10px;
}
#thc-root.thc-style-h3 .thc-sec h4{margin:0 0 3px;border-left:3px solid #C9A430;padding-left:7px}
#thc-root.thc-style-h3 .thc-sec p{margin:0;font-size:11px;line-height:1.5}
#thc-root.thc-style-h3 .thc-sec li{font-size:11px;line-height:1.45}
#thc-root.thc-style-h3 .thc-svc{padding:3px 7px}
#thc-root.thc-style-h3 .thc-svc b{font-size:11.5px}
#thc-root.thc-style-h3 .thc-svc span{font-size:10px}

/* ---------- K1~K4：透明抠图人像直接叠加（无白底/白框），文案放大，号码保持 20px ---------- */
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-modal{
  overflow:visible;height:min(92vh,800px);
  --gold:#B8942E;--gold-2:#C9A430;
  --bar-bg:linear-gradient(135deg,#1B3A5C 0%,#142C46 100%);--bar-fg:#fff;
  --bar-line:#C9A430;--bar-sep:rgba(255,255,255,.24);
  --chat:#F5F8FB;--panel-bg:#F4F7FA;--panel-fg:#2E3A46;--panel-sub:#55677A;--panel-line:#D8E2EC;
  --svc-bg:#fff;--svc-line:#DDE5EE;--svc-fg:#1B3A5C;--svc-sub:#6B7C8D;--svc-hover:#EDF3F9;
  --chip-bg:#fff;--chip-line:#D9E3EE;--chip-fg:#1B3A5C;
  --btn-bg:linear-gradient(135deg,#D4AF37,#B8942E);--btn-fg:#241D06;
  --me-bg:#E8EFF6;--me-fg:#1B3A5C;--bot-bg:#fff;--sb:#B9C8D6;
}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-bar{
  position:relative;gap:12px;overflow:visible;border-radius:14px 14px 0 0;padding:10px 26px 10px 18px;
}
#thc-root.thc-style-k1 .thc-a-bar,
#thc-root.thc-style-k4 .thc-a-bar{height:104px}
#thc-root.thc-style-k2 .thc-a-bar{height:112px}
#thc-root.thc-style-k3 .thc-a-bar{height:120px}
#thc-root.thc-style-k1 .thc-a-who{padding-left:120px}
#thc-root.thc-style-k2 .thc-a-who{padding-left:136px}
#thc-root.thc-style-k3 .thc-a-who{padding-left:156px}
#thc-root.thc-style-k4 .thc-a-who{padding-left:108px}
/* 透明人像：无白底/白框/底板，直接叠加深蓝顶栏，头顶探出 */
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-portrait{
  display:block;position:absolute;left:18px;top:-12px;
  background:none;border:0;border-radius:0;box-shadow:none;padding:0;overflow:visible;z-index:3;
}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-portrait img{
  display:block;width:100%;height:auto;max-width:none;
}
#thc-root.thc-style-k1 .thc-a-portrait{width:88px}
#thc-root.thc-style-k2 .thc-a-portrait{width:104px;top:-16px}
#thc-root.thc-style-k3 .thc-a-portrait{width:128px;top:-20px;left:12px}
#thc-root.thc-style-k3 .thc-a-portrait img{clip-path:inset(0 0 15px 0)}
/* K4：76px 圆形头像 + 2px 金环 */
#thc-root.thc-style-k4 .thc-a-portrait{
  width:76px;height:76px;top:-12px;border-radius:50%;overflow:hidden;
  border:2px solid #E8C65F;background:#142C46;
}
#thc-root.thc-style-k4 .thc-a-portrait img{
  width:100%;height:100%;object-fit:cover;object-position:50% 20%;
}
/* 文案放大（号码保持 20px） */
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-l1{font-size:17px;font-weight:600;gap:8px;line-height:1.35}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-l1 b{font-size:17px;font-weight:600}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-name{color:#E8C65F;font-weight:700}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-on{font-size:17px;font-weight:400;opacity:.9}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-l2{font-size:13.5px;line-height:1.5;color:rgba(255,255,255,.86);margin-top:3px;opacity:1}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-bar .thc-ai-tag{
  font-size:12px;padding:1px 6px;margin-left:8px;color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);border-radius:4px;
}
/* 电话：标签在左、号码在右，两行右对齐 */
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-tels{
  flex-direction:column;align-items:stretch;gap:8px;width:278px;margin-left:auto;
}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-tels .thc-tel{
  display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:12px;
  padding-left:0;border-left:none;
}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-tel span{font-size:13px;font-weight:400;opacity:1;color:rgba(255,255,255,.82);letter-spacing:0}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-tel b{font-size:20px;font-weight:700;letter-spacing:.3px;line-height:1.15;font-variant-numeric:tabular-nums}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-side{width:296px}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-sbody h4{margin:6px 0 3px}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-sbody p{line-height:1.56}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-sbody li{line-height:1.48}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-foot{border-radius:0 0 14px 14px}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-more a{background:#1B3A5C;color:#fff}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-card .thc-av{
  display:block;width:50px;height:50px;margin:0 auto 10px;border-radius:50%;
  border:2px solid #C9A430;background:#F4F7FA;box-shadow:none;overflow:hidden;
}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-card .thc-av img{
  width:100%;height:100%;object-fit:cover;object-position:50% 32%;display:block;
}
#thc-root:is(.thc-style-k1,.thc-style-k2,.thc-style-k3,.thc-style-k4) .thc-a-who .thc-av2{display:none}

/* ---------- L1/L2：以 K3 为基底，人像边缘清理 + 电话标签近白放大、间距收紧 ---------- */
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-modal{
  overflow:visible;height:min(92vh,800px);
  --gold:#B8942E;--gold-2:#C9A430;
  --bar-bg:linear-gradient(135deg,#1B3A5C 0%,#142C46 100%);--bar-fg:#fff;
  --bar-line:#C9A430;--bar-sep:rgba(255,255,255,.24);
  --chat:#F5F8FB;--panel-bg:#F4F7FA;--panel-fg:#2E3A46;--panel-sub:#55677A;--panel-line:#D8E2EC;
  --svc-bg:#fff;--svc-line:#DDE5EE;--svc-fg:#1B3A5C;--svc-sub:#6B7C8D;--svc-hover:#EDF3F9;
  --chip-bg:#fff;--chip-line:#D9E3EE;--chip-fg:#1B3A5C;
  --btn-bg:linear-gradient(135deg,#D4AF37,#B8942E);--btn-fg:#241D06;
  --me-bg:#E8EFF6;--me-fg:#1B3A5C;--bot-bg:#fff;--sb:#B9C8D6;
}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-bar{
  height:120px;position:relative;gap:12px;overflow:visible;border-radius:14px 14px 0 0;
  padding:10px 26px 10px 18px;
}
#thc-root.thc-style-l1 .thc-a-bar{padding-right:18px}
#thc-root.thc-style-l2 .thc-a-bar{padding-right:14px}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-who{padding-left:156px}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-portrait{
  display:block;position:absolute;left:12px;top:-20px;width:128px;
  background:none;border:0;border-radius:0;box-shadow:none;padding:0;overflow:visible;z-index:3;
}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-portrait img{
  display:block;width:100%;height:auto;max-width:none;clip-path:inset(0 0 15px 0);
}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-l1{font-size:17px;font-weight:600;gap:8px;line-height:1.35}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-l1 b{font-size:17px;font-weight:600}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-name{color:#E8C65F;font-weight:700}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-on{font-size:17px;font-weight:400;opacity:.9}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-l2{font-size:13.5px;line-height:1.5;color:rgba(255,255,255,.86);margin-top:3px;opacity:1}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-bar .thc-ai-tag{
  font-size:12px;padding:1px 6px;margin-left:8px;color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);border-radius:4px;
}
/* 电话：整组靠右，标签近白、标签与号码间距压紧 */
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-tels{
  flex:none;flex-direction:column;align-items:flex-end;margin-left:auto;
}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-tels .thc-tel{
  display:flex;flex-direction:row;justify-content:flex-end;align-items:baseline;
  padding-left:0;border-left:none;
}
#thc-root.thc-style-l1 .thc-a-tels{gap:8px}
#thc-root.thc-style-l2 .thc-a-tels{gap:6px}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-tel span{
  font-size:14.5px;font-weight:500;opacity:1;color:#F2F6FA;letter-spacing:0;
}
#thc-root.thc-style-l2 .thc-tel span{font-size:15px}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-tel b{
  font-weight:700;letter-spacing:.3px;line-height:1.12;font-variant-numeric:tabular-nums;
}
#thc-root.thc-style-l1 .thc-tel{gap:14px}
#thc-root.thc-style-l1 .thc-tel b{font-size:21px}
#thc-root.thc-style-l2 .thc-tel{gap:10px}
#thc-root.thc-style-l2 .thc-tel b{font-size:22px}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-side{width:296px}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-sbody h4{margin:6px 0 3px}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-sbody p{line-height:1.56}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-sbody li{line-height:1.48}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-foot{border-radius:0 0 14px 14px}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-more a{background:#1B3A5C;color:#fff}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-card .thc-av{
  display:block;width:50px;height:50px;margin:0 auto 10px;border-radius:50%;
  border:2px solid #C9A430;background:#F4F7FA;box-shadow:none;overflow:hidden;
}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-card .thc-av img{
  width:100%;height:100%;object-fit:cover;object-position:50% 32%;display:block;
}
#thc-root:is(.thc-style-l1,.thc-style-l2) .thc-a-who .thc-av2{display:none}

/* ---------- M1/M2：基于 L1，alpha 边缘修复 + 2x 超采样锐化，标签 16/16.5px 加粗 ---------- */
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-modal{
  overflow:visible;height:min(92vh,800px);
  --gold:#B8942E;--gold-2:#C9A430;
  --bar-bg:linear-gradient(135deg,#1B3A5C 0%,#142C46 100%);--bar-fg:#fff;
  --bar-line:#C9A430;--bar-sep:rgba(255,255,255,.24);
  --chat:#F5F8FB;--panel-bg:#F4F7FA;--panel-fg:#2E3A46;--panel-sub:#55677A;--panel-line:#D8E2EC;
  --svc-bg:#fff;--svc-line:#DDE5EE;--svc-fg:#1B3A5C;--svc-sub:#6B7C8D;--svc-hover:#EDF3F9;
  --chip-bg:#fff;--chip-line:#D9E3EE;--chip-fg:#1B3A5C;
  --btn-bg:linear-gradient(135deg,#D4AF37,#B8942E);--btn-fg:#241D06;
  --me-bg:#E8EFF6;--me-fg:#1B3A5C;--bot-bg:#fff;--sb:#B9C8D6;
}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-bar{
  height:120px;position:relative;gap:12px;overflow:visible;border-radius:14px 14px 0 0;
  padding:10px 18px 10px 18px;
}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-who{padding-left:156px}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-portrait{
  display:block;position:absolute;left:12px;top:-20px;
  background:none;border:0;border-radius:0;box-shadow:none;padding:0;overflow:visible;z-index:3;
}
#thc-root.thc-style-m1 .thc-a-portrait{width:128px}
#thc-root.thc-style-m1 .thc-a-portrait img{
  display:block;width:100%;height:auto;max-width:none;clip-path:inset(0 0 15px 0);
}
#thc-root.thc-style-m2 .thc-a-portrait{width:140px}
#thc-root.thc-style-m2 .thc-a-portrait img{
  display:block;width:100%;height:auto;max-width:none;clip-path:inset(0 0 30px 0);
}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-l1{font-size:17px;font-weight:600;gap:8px;line-height:1.35}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-l1 b{font-size:17px;font-weight:600}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-name{color:#E8C65F;font-weight:700}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-on{font-size:17px;font-weight:400;opacity:.9}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-l2{font-size:13.5px;line-height:1.5;color:rgba(255,255,255,.86);margin-top:3px;opacity:1}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-bar .thc-ai-tag{
  font-size:12px;padding:1px 6px;margin-left:8px;color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);border-radius:4px;
}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-tels{
  flex:none;flex-direction:column;align-items:flex-end;margin-left:auto;
}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-tels .thc-tel{
  display:flex;flex-direction:row;justify-content:flex-end;align-items:baseline;
  padding-left:0;border-left:none;gap:14px;
}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-tels{gap:8px}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-tel span{
  font-size:16px;font-weight:600;opacity:1;color:#F2F6FA;letter-spacing:0;
}
#thc-root.thc-style-m2 .thc-tel span{font-size:16.5px}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-tel b{
  font-size:21px;font-weight:700;letter-spacing:.3px;line-height:1.12;font-variant-numeric:tabular-nums;
}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-side{width:296px}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-sbody h4{margin:6px 0 3px}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-sbody p{line-height:1.56}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-sbody li{line-height:1.48}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-foot{border-radius:0 0 14px 14px}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-more a{background:#1B3A5C;color:#fff}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-card .thc-av{
  display:block;width:50px;height:50px;margin:0 auto 10px;border-radius:50%;
  border:2px solid #C9A430;background:#F4F7FA;box-shadow:none;overflow:hidden;
}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-card .thc-av img{
  width:100%;height:100%;object-fit:cover;object-position:50% 32%;display:block;
}
#thc-root:is(.thc-style-m1,.thc-style-m2) .thc-a-who .thc-av2{display:none}

/* ---------- N1/N2：直接使用原透明 PNG，不改 alpha，仅 Lanczos 缩放 ---------- */
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-modal{
  overflow:visible;height:min(92vh,800px);
  --gold:#B8942E;--gold-2:#C9A430;
  --bar-bg:linear-gradient(135deg,#1B3A5C 0%,#142C46 100%);--bar-fg:#fff;
  --bar-line:#C9A430;--bar-sep:rgba(255,255,255,.24);
  --chat:#F5F8FB;--panel-bg:#F4F7FA;--panel-fg:#2E3A46;--panel-sub:#55677A;--panel-line:#D8E2EC;
  --svc-bg:#fff;--svc-line:#DDE5EE;--svc-fg:#1B3A5C;--svc-sub:#6B7C8D;--svc-hover:#EDF3F9;
  --chip-bg:#fff;--chip-line:#D9E3EE;--chip-fg:#1B3A5C;
  --btn-bg:linear-gradient(135deg,#D4AF37,#B8942E);--btn-fg:#241D06;
  --me-bg:#E8EFF6;--me-fg:#1B3A5C;--bot-bg:#fff;--sb:#B9C8D6;
}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-bar{
  height:120px;position:relative;gap:12px;overflow:visible;border-radius:14px 14px 0 0;
  padding:10px 18px 10px 18px;
}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-who{padding-left:156px}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-portrait{
  display:block;position:absolute;left:12px;top:-20px;
  background:none;border:0;border-radius:0;box-shadow:none;padding:0;overflow:visible;z-index:3;
}
#thc-root.thc-style-n1 .thc-a-portrait{width:128px}
#thc-root.thc-style-n1 .thc-a-portrait img{
  display:block;width:100%;height:auto;max-width:none;clip-path:inset(0 0 15px 0);
}
#thc-root.thc-style-n2 .thc-a-portrait{width:140px}
#thc-root.thc-style-n2 .thc-a-portrait img{
  display:block;width:100%;height:auto;max-width:none;clip-path:inset(0 0 30px 0);
}
/* P1/P2：与 N1 完全同构，只换人像资源（P1=alpha 精修版，P2=白底重合成版） */
#thc-root:is(.thc-style-p1,.thc-style-p2) .thc-a-portrait{width:128px}
#thc-root:is(.thc-style-p1,.thc-style-p2) .thc-a-portrait img{
  display:block;width:100%;height:auto;max-width:none;clip-path:inset(0 0 15px 0);
}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-l1{font-size:17px;font-weight:600;gap:8px;line-height:1.35}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-l1 b{font-size:17px;font-weight:600}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-name{color:#E8C65F;font-weight:700}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-on{font-size:17px;font-weight:400;opacity:.9}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-l2{font-size:13.5px;line-height:1.5;color:rgba(255,255,255,.86);margin-top:3px;opacity:1}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-bar .thc-ai-tag{
  font-size:12px;padding:1px 6px;margin-left:8px;color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);border-radius:4px;
}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-tels{
  flex:none;flex-direction:column;align-items:flex-end;margin-left:auto;gap:8px;
}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-tels .thc-tel{
  display:flex;flex-direction:row;justify-content:flex-end;align-items:baseline;
  padding-left:0;border-left:none;gap:14px;
}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-tel span{font-size:16px;font-weight:600;opacity:1;color:#F2F6FA;letter-spacing:0}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-tel b{
  font-size:21px;font-weight:700;letter-spacing:.3px;line-height:1.12;font-variant-numeric:tabular-nums;
}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-side{width:296px}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-sbody h4{margin:6px 0 3px}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-sbody p{line-height:1.56}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-sbody li{line-height:1.48}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-foot{border-radius:0 0 14px 14px}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-more a{background:#1B3A5C;color:#fff}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-card .thc-av{
  display:block;width:50px;height:50px;margin:0 auto 10px;border-radius:50%;
  border:2px solid #C9A430;background:#F4F7FA;box-shadow:none;overflow:hidden;
}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-card .thc-av img{
  width:100%;height:100%;object-fit:cover;object-position:50% 32%;display:block;
}
#thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-who .thc-av2{display:none}

/* H4：留白加大 + 金色实底发送 + 描边转人工 */
#thc-root.thc-style-h4 .thc-a-main .thc-wrap{width:80%;max-width:none;margin:0 auto;padding:30px 0 22px}
#thc-root.thc-style-h4 .thc-a-main .thc-msgs{width:80%;margin:18px auto 0;padding:0}
#thc-root.thc-style-h4 .thc-a-tools .thc-send{background:#C9A430;color:#241D06;font-weight:600}
#thc-root.thc-style-h4 .thc-a-more a{
  background:#fff;color:#1B3A5C;border:1px solid #9DB0C6;font-weight:600;
}

@media (max-width:640px){
  #thc-root .thc-a-modal,#thc-root .thc-b-modal{width:100%;max-width:none;height:100%;min-height:100%;border-radius:0;border:none}
  /* A 顶栏：只保留「客服：小狐」+ 两个电话 + 关闭；次要说明（头像/在线状态/时段/AI 标识）降级 */
  #thc-root .thc-a-bar{padding:8px 10px;gap:8px;flex-wrap:nowrap}
  #thc-root .thc-a-who{gap:6px;flex:1 1 auto;min-width:0}
  #thc-root .thc-a-who .thc-av2{display:none}
  #thc-root .thc-a-l1 b{font-size:13px}
  #thc-root .thc-a-on,#thc-root .thc-a-l2,#thc-root .thc-a-bar .thc-ai-tag{display:none}
  #thc-root .thc-a-tels{gap:10px}
  #thc-root .thc-a-tels .thc-tel+.thc-tel{padding-left:10px}
  #thc-root .thc-tel span{display:none}
  #thc-root .thc-tel b{font-size:12px;letter-spacing:0}
  #thc-root .thc-a-side{display:none}
  #thc-root .thc-a-tab{display:block}
  /* A 资料栏：移动端为覆盖式抽屉（JS 切换 thc-collapsed） */
  #thc-root .thc-a-side:not(.thc-collapsed){
    display:flex;position:absolute;right:0;top:0;bottom:0;width:82%;z-index:6;
    box-shadow:-6px 0 24px rgba(0,0,0,.18)}
  #thc-root .thc-a-side.thc-collapsed{display:none}
  /* A4：窄屏退化为上下结构（名片栏回到顶栏一行） */
  #thc-root.thc-open.thc-style-a4 .thc-a-modal{display:flex}
  #thc-root.thc-style-a4 .thc-a-bar{flex-direction:row;align-items:center;padding:8px 10px;
    border-right:none;border-bottom:1px solid var(--bar-line)}
  #thc-root.thc-style-a4 .thc-a-who{flex-direction:row;align-items:center;text-align:left}
  #thc-root.thc-style-a4 .thc-a-info{text-align:left}
  #thc-root.thc-style-a4 .thc-a-l1{flex-direction:row}
  #thc-root.thc-style-a4 .thc-a-tels{flex-direction:row;align-items:center;gap:10px}
  #thc-root.thc-style-a4 .thc-a-tels .thc-tel+.thc-tel{padding-left:10px;border-left:1px solid var(--bar-sep);
    border-top:none;padding-top:0}
  #thc-root.thc-style-a4 .thc-tel{align-items:flex-start}
  #thc-root.thc-style-a4 .thc-a-wecomcard{display:none}
  #thc-root.thc-style-a4 .thc-a-side:not(.thc-collapsed){position:static;width:auto;max-height:36%;
    display:flex;box-shadow:none;z-index:auto}
  #thc-root.thc-style-a4 .thc-a-side.thc-collapsed{display:flex}
  #thc-root .thc-b-side{display:none}
  #thc-root .thc-b-tabbtn{display:block}
  #thc-root .thc-b-side.on{display:flex;position:absolute;right:0;top:0;bottom:0;width:76%;z-index:5;
    box-shadow:-6px 0 24px rgba(0,0,0,.18)}
  #thc-root .thc-b-tel{font-size:21px}
}
@media (max-height:720px) and (min-width:641px){
  #thc-root .thc-a-modal,#thc-root .thc-b-modal{height:94vh;min-height:0}
}

/* ---------- 右下角狐狸球（自绘，替代百炼 AppFlow 挂件） ----------
   实测线上挂件容器 rect(1360,820,50,50)：right 30 / bottom 30，正好在「返回顶部 ↑」正下方；
   50px 白底圆 + 48px 图；层级 1001（弹窗仍是 2147483000）；全程不触碰 ↑ 按钮 */
#thc-fox{
  position:fixed;right:30px;bottom:30px;width:50px;height:50px;padding:0;border:0;margin:0;
  border-radius:50%;background:#fff;box-shadow:0 4px 14px rgba(15,35,70,.18);
  display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1001;
  -webkit-tap-highlight-color:transparent;
  transition:transform .18s ease,box-shadow .18s ease}
#thc-fox img{
  display:block;width:48px;height:48px;max-width:none;border-radius:50%;pointer-events:none}
#thc-fox:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(15,35,70,.24)}
#thc-fox:active{transform:scale(.94)}
#thc-fox:focus-visible{outline:2px solid #b8860b;outline-offset:2px}
@media (max-width:640px){
  /* 手机端 44px，与 ↑（right 30 / bottom 90）居中对齐 */
  #thc-fox{right:33px;bottom:16px;width:44px;height:44px}
  #thc-fox img{width:42px;height:42px}
}


/* ===== v3.3：顶栏按钮组 / 最大化·还原 / 标题栏拖动 / 独立页入口 / 企业文化条目 ===== */
#thc-root .thc-a-acts{display:flex;align-items:center;gap:2px;flex:none;margin-left:2px}
#thc-root .thc-a-acts .thc-act,
#thc-root .thc-a-acts .thc-x{
  width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;
  padding:0;border:1px solid transparent;border-radius:6px;background:none;color:var(--bar-fg);
  opacity:.72;cursor:pointer;line-height:1;flex:none;
  transition:opacity .15s,background .15s,border-color .15s;
}
#thc-root .thc-a-acts .thc-x{font-size:20px}
#thc-root .thc-a-acts .thc-act svg{display:block}
#thc-root .thc-a-acts .thc-act:hover,
#thc-root .thc-a-acts .thc-x:hover{opacity:1;background:var(--bar-sep);border-color:transparent}
#thc-root .thc-a-acts .thc-act:focus-visible,
#thc-root .thc-a-acts .thc-x:focus-visible{outline:2px solid var(--gold-2);outline-offset:1px;opacity:1}
#thc-root .thc-a-acts .thc-act:active{transform:scale(.94)}

/* 拖动：仅顶栏空白处起手；按钮/电话链接保持默认光标 */
#thc-root .thc-a-bar{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}
#thc-root .thc-a-acts,#thc-root .thc-a-tels,#thc-root .thc-a-wecomcard,#thc-root .thc-a-portrait{cursor:auto}
#thc-root.thc-dragging .thc-a-bar{cursor:grabbing}
#thc-root.thc-dragging .thc-modal{box-shadow:0 26px 74px rgba(0,0,0,.36);transition:none;will-change:left,top}

/* 最大化：铺满视口留 18px 边距；!important 压住内联 left/top，还原时自动回到拖动位置 */
#thc-root .thc-modal.thc-max{
  left:18px!important;top:18px!important;right:18px!important;bottom:18px!important;
  width:auto!important;height:auto!important;max-width:none!important;min-height:0!important;
  transform:none!important;border-radius:12px;
}

/* 页脚独立页文字链 */
#thc-root .thc-a-foot{display:flex;align-items:center;justify-content:center;gap:10px}
#thc-root .thc-a-foot .thc-foot-new{color:#8a6d1f;font-size:11px;white-space:nowrap;text-decoration:none}
#thc-root .thc-a-foot .thc-foot-new:hover{color:#b8942e;text-decoration:underline}

/* 企业文化：标题 + 正文两级，长句自动换行、不横向溢出 */
#thc-root .thc-culture li{padding-left:0;margin:0 0 10px;font-size:12px;color:var(--panel-fg)}
#thc-root .thc-culture li::before{content:none}
#thc-root .thc-culture li b{display:block;font-size:12px;font-weight:700;color:var(--gold-2);margin:0 0 3px;line-height:1.4}
#thc-root .thc-culture li span{display:block;font-size:12px;line-height:1.68;color:var(--panel-fg);overflow-wrap:anywhere;word-break:break-word}
#thc-root .thc-culture li:last-child{margin-bottom:2px}

/* A4 名片式顶栏：整组吸附右上角，避免关闭按钮单独绝对定位 */
#thc-root.thc-style-a4 .thc-a-acts{position:absolute;top:8px;right:8px;margin-left:0}
#thc-root.thc-style-a4 .thc-a-acts .thc-x{position:static;top:auto;right:auto}

/* 移动端：全屏态，不显示最大化/新页面图标（页脚文字链仍可用），不启用拖动 */
@media (max-width:640px){
  #thc-root .thc-a-acts .thc-act-new,
  #thc-root .thc-a-acts .thc-maxbtn{display:none}
  #thc-root .thc-a-bar{cursor:default;touch-action:auto}
  #thc-root .thc-a-foot{gap:8px}
  #thc-root .thc-a-foot span{font-size:10.5px}
}

/* ===== v3.3.1：按钮组窗口式固定右上角（新页面 / 最大化·还原 / 关闭） ===== */
#thc-root .thc-a-acts{
  position:absolute;top:6px;right:8px;margin:0;gap:3px;align-items:center;flex:none;z-index:7;
}
#thc-root .thc-a-acts .thc-act,
#thc-root .thc-a-acts .thc-x{
  width:30px;height:30px;border-radius:4px;border:1px solid transparent;
  background:transparent;color:var(--bar-fg);opacity:.92;
  transition:background .12s,color .12s,opacity .12s,transform .12s;
}
#thc-root .thc-a-acts .thc-act svg{width:15px;height:15px}
#thc-root .thc-a-acts .thc-x{font-size:18px;line-height:1;font-weight:400}
#thc-root .thc-a-acts .thc-act:hover{background:rgba(255,255,255,.18);opacity:1}
#thc-root .thc-a-acts .thc-x:hover{background:#e81123;color:#fff;opacity:1}
#thc-root .thc-a-acts .thc-act:focus-visible,
#thc-root .thc-a-acts .thc-x:focus-visible{outline:2px solid var(--gold-2);outline-offset:1px;opacity:1}
#thc-root .thc-a-acts .thc-act:active{transform:scale(.95)}

/* 窄桌面：给电话区留出按钮组的横向空间，避免贴字 */
@media (min-width:641px) and (max-width:900px){
  #thc-root:is(.thc-style-n1,.thc-style-n2,.thc-style-p1,.thc-style-p2) .thc-a-bar{padding-right:118px}
}

/* 移动端：只剩关闭，右上角半透明胶囊，描边保证在图上也看得清 */
@media (max-width:640px){
  #thc-root .thc-a-acts{top:8px;right:8px;gap:0}
  #thc-root .thc-a-acts .thc-x{
    width:32px;height:32px;border-radius:6px;background:rgba(18,40,63,.34);
    border:1px solid rgba(255,255,255,.42);color:#fff;opacity:.96;
  }
  #thc-root .thc-a-acts .thc-x:hover{background:#e81123;border-color:#e81123;color:#fff}
  #thc-root .thc-a-acts .thc-x:focus-visible{outline-color:#fff}
}
