/* 合众视觉层：统一设计变量与控件状态，保留原有布局节点、权限和业务事件。 */
:root {
  --premium-canvas: #f5f5f7;
  --premium-surface: #fff;
  --premium-text: #1d1d1f;
  --premium-muted: #626269;
  --premium-line: #e5e5e8;
  --premium-blue: #0066cc;
  --premium-selected: #eaf2fc;
  --premium-ease: cubic-bezier(.22, 1, .36, 1);
}
body:is(.premium-workspace, .premium-auth, .premium-visitor) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--premium-text);
  --lan: var(--premium-blue);
  --xian: var(--premium-line);
  --shen: var(--premium-text);
  -webkit-font-smoothing: antialiased;
}
:is(.premium-workspace, .premium-auth, .premium-visitor) :is(button, a, input, textarea, select) {
  transition: background-color 220ms var(--premium-ease), border-color 220ms var(--premium-ease), color 220ms var(--premium-ease), box-shadow 220ms var(--premium-ease);
}
:is(.premium-workspace, .premium-auth, .premium-visitor) :is(button, a, input, textarea, select):focus-visible {
  outline: 3px solid #0066cc80 !important;
  outline-offset: 3px !important;
}
.premium-workspace :is(input, textarea, select) { accent-color: var(--premium-blue); }
.premium-workspace :is(button:disabled, input:disabled, select:disabled) { cursor: not-allowed; }
.premium-workspace :is(.anniu, .channel-create, button[type=submit]) {
  border-radius: 999px;
  background: var(--premium-blue);
  box-shadow: none;
}
.premium-workspace :is(.anniu, .channel-create, button[type=submit]):hover { background: #0057ae; }
.premium-workspace :is(.anniu, .channel-create, button[type=submit]):active { background: #004b96; }
.premium-workspace .anniu:disabled { background: #e8e8ed; color: #727279; }
.premium-workspace :is(.button-outline, .wenzi-anniu) { border-radius: 8px; }
.premium-workspace :is(input:not([type]), input[type=text], input[type=email], input[type=number], input[type=password], textarea, select) {
  border-color: #d2d2d7;
  border-radius: 8px;
  color: var(--premium-text);
}
.premium-workspace :is(input, textarea, select)::placeholder { color: #74747b; }
.premium-workspace .yingyong { min-width: 0; }
.premium-workspace .zhuti { border-top: 0; }
.premium-workspace .neirong { background: var(--premium-canvas); }

.premium-workspace {
  --premium-canvas: #f3f6fb;
  --premium-text: #14233c;
  --premium-muted: #52637a;
  --premium-line: #dce5ef;
  --premium-blue: #2059ca;
  --premium-selected: #eaf2ff;
  --workspace-rail: #14233c;
  --workspace-hover: #f2f6fc;
  --workspace-radius: 12px;
}

/* 桌面使用窄导航轨道，文字常驻。 */
.premium-workspace .daohang { width: 76px; flex-basis: 76px; background: var(--workspace-rail); color: #c4d2e7; }
.premium-workspace .workspace-brand { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 22px 0 4px; color: #fff; font-size: 20px; font-weight: 600; }
.premium-workspace .workspace-brand span { font-size: 7px; letter-spacing: 1px; color: #c3c3ca; font-weight: 500; }
body.premium-workspace[data-page] .daohang > a.workspace-brand[href] { background: transparent; color: #fff; }
.premium-workspace .daohang .touxiang { width: 36px; height: 36px; margin: 22px auto; background: #355483; }
.premium-workspace .daohang .touxiang :is(span, img) { width: 36px; height: 36px; }
.premium-workspace .daohang .touxiang i { border-color: var(--workspace-rail); }
body.premium-workspace[data-page] .daohang nav a { width: 56px; height: 52px; margin: 6px 10px; padding: 7px 0; border-radius: 12px; background: transparent; color: #c4d2e7; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.premium-workspace .daohang nav a[data-label]::after { content: attr(data-label); position: static; display: block; color: inherit; font-size: 10px; line-height: 14px; }
.premium-workspace .daohang nav a > .iconfont { font-size: 22px; }
body.premium-workspace[data-page] .daohang nav a:hover { background: #253c61; color: #fff; }
body.premium-workspace[data-page="/index.html"] .daohang a[href="/index.html"],
body.premium-workspace[data-page="/duihua.html"] .daohang a[href="/duihua.html"],
body.premium-workspace[data-page="/lishi.html"] .daohang a[href="/duihua.html"],
body.premium-workspace[data-page="/fangke.html"] .daohang a[href="/fangke.html"],
body.premium-workspace[data-page="/tongji.html"] .daohang a[href="/tongji.html"],
body.premium-workspace[data-page="/guke.html"] .daohang a[href="/guke.html"],
body.premium-workspace[data-page="/qudao.html"] .daohang a[href="/qudao.html"],
body.premium-workspace[data-page="/shezhi.html"] .daohang a[href="/shezhi.html"] { background: #2b5087; color: #fff; }
.premium-workspace .daohang-jiaobiao { right: 5px; top: 4px; }
.premium-workspace .zhuangtai-caidan { left: 68px; top: 98px; border-radius: 14px; border-color: var(--premium-line); padding: 8px; box-shadow: 0 12px 40px #1d1d1f1a; }
.premium-workspace .zhuangtai-caidan button { border-radius: 7px; }
.premium-workspace :is(.channel-dialog, .banben-jilu-dialog) { border-radius: 18px; box-shadow: 0 24px 80px #1d1d1f26; }

/* 概览保持真实数据和报表，用字号与网格建立重点，避免重复装饰卡片。 */
.premium-workspace .shouye { background: var(--premium-canvas); }
.premium-workspace .shouye > h2 { height: auto; padding: 32px 36px 6px; background: transparent; font-size: 28px; line-height: 1.35; font-weight: 600; }
.premium-workspace .shouye-neirong { padding: 22px 36px 36px; }
.premium-workspace .shouye-dingbu { grid-template-columns: minmax(320px, .8fr) minmax(0, 1.8fr); gap: 24px; }
.premium-workspace :is(.shouye-xinxi, .shouye-chengyuan, .shouye-baobiao) { border: 1px solid var(--premium-line); border-radius: 14px; box-shadow: none; overflow: hidden; }
.premium-workspace .shouye-xinxi { grid-template-columns: minmax(0, 1fr) 112px; height: auto; min-height: 280px; }
.premium-workspace .shouye-banben { padding: 24px 20px; }
.premium-workspace .shouye-banben dl { justify-content: flex-start; gap: 16px; }
.premium-workspace .shouye-banben dt { flex: 0 0 68px; white-space: nowrap; }
.premium-workspace .shouye-banben dd { min-width: 0; overflow-wrap: anywhere; }
.premium-workspace .shouye-banben dt { color: var(--premium-muted); }
.premium-workspace .shouye-biaoshi { padding: 26px 12px; border-color: var(--premium-line); }
.premium-workspace .shouye-xinxi nav a { background: #f5f5f7; border-radius: 8px; color: #45454b; }
.premium-workspace .shouye-chengyuan { height: 280px; overflow: auto; }
.premium-workspace #shouye-baobiao { margin-top: 24px; }
.premium-workspace .shouye-baobiao-tou { height: 64px; padding: 12px 20px; }
.premium-workspace .shouye-baobiao-tou h3 { font-size: 17px; font-weight: 600; }
.premium-workspace :is(.shouye-baobiao-tou, .tongji-tushi) button { border: 0; border-radius: 7px; background: #edf2f8; color: var(--premium-muted); margin: 0 2px; }
.premium-workspace :is(.shouye-baobiao-tou, .tongji-tushi) button.xuan { background: var(--premium-selected); color: #194fb6; }
.premium-workspace .shouye-zhibiao dl { padding: 24px 20px; border-right: 0; }
.premium-workspace .shouye-zhibiao dd { margin-top: 12px; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.premium-workspace .shouye-zhibiao :is(dt, small) { color: var(--premium-muted); }
.premium-workspace .shiming-home-reminder { border: 1px solid #dedee3; border-radius: 10px; background: #f0f0f3; color: #56565e; box-shadow: none; }
.premium-workspace .shiming-home-reminder a { color: #0066cc; }
.premium-workspace .biaoge :is(th, td) { border-color: #ededf0; }
.premium-workspace .biaoge th { background: #fafafa; color: #626269; font-weight: 500; }
.premium-workspace .biaoge td { color: #36363c; }
.premium-workspace .biaoge tr:hover td { background: #fafbfd; }

/* 对话与历史共用会话导航，当前对话保留独立的消息区和可调整宽度的顾客资料栏。 */
.premium-workspace :is(.liebiao, .chat-list-body, .chat-list) { background: #fff; }
.premium-workspace .chat-inbox-heading { padding: 19px 18px 10px; background: #fff; }
.premium-workspace .chat-inbox-heading h1 { margin: 0; font-size: 21px; line-height: 26px; font-weight: 700; }
.premium-workspace .chat-mode-tabs {
  height: auto; margin: 0 12px 8px; padding: 3px; gap: 3px;
  border: 1px solid #e9eff7; border-radius: 10px; background: #f2f5fa;
}
.premium-workspace .chat-mode-tabs a { border-radius: 7px; background: transparent; color: var(--premium-muted); line-height: 30px; }
.premium-workspace .chat-mode-tabs a[aria-current="page"] {
  background: #fff; color: var(--premium-blue); font-weight: 700; box-shadow: 0 1px 3px #17325818;
}
.premium-workspace .history-layoutleft { border-color: var(--premium-line); }
.premium-workspace .history-list-body .history-item {
  margin: 4px 8px; padding: 11px 10px; border: 1px solid transparent; border-radius: var(--workspace-radius);
}
.premium-workspace .history-list-body .history-item:hover { background: var(--workspace-hover); }
.premium-workspace .history-list-body .history-item.active {
  border-color: #cbdcff; background: var(--premium-selected);
}
.premium-workspace .chat-list .chat-list-top { height: 48px; padding-inline: 8px; border-color: var(--premium-line); }
.premium-workspace .chat-list .chat-list-navs button { min-height: 28px; border-radius: 7px; color: var(--premium-muted); }
.premium-workspace .chat-list .chat-list-navs button.xuan { background: var(--premium-selected); color: #194fb6; font-weight: 650; }
.premium-workspace .hc-chatlist-itemstyle {
  margin: 4px 8px; padding: 11px 10px; border: 1px solid transparent; border-radius: var(--workspace-radius);
}
.premium-workspace .hc-chatlist-itemstyle:hover { background: var(--workspace-hover); }
.premium-workspace .hc-chatlist-itemstyle:is(.xuan, .active) {
  background: var(--premium-selected); border-color: #cbdcff; box-shadow: none;
}
.premium-workspace .hc-chatlist-itemstyle .chat-list-name,
.premium-workspace .hc-chatlist-itemstyle .chat-list-customer { color: var(--premium-text); font-weight: 650; }
.premium-workspace .chat-list-info .chat-list-region {
  flex: 0 0 auto; max-width: 40%; margin-inline-start: 5px; padding-inline: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-radius: 4px; background: #e9f0f8; color: #355577; font-size: 11px;
}
.premium-workspace .hc-chatlist-itemstyle .chat-list-channel { flex: 0 1 42%; }
.premium-workspace .hc-chatlist-itemstyle :is(.time, .chat-list-info) { color: var(--premium-muted); }
.premium-workspace .hc-chatlist-itemstyle .customertags .tag {
  padding: 2px 8px; border-radius: 5px; background: #e9eef6; color: #43546d;
}
.premium-workspace .touxiang2 { border-radius: 10px; }
.premium-workspace .liaotian > header { border-bottom-color: var(--premium-line); }
.premium-workspace .chat-customer-title .chat-title-name { color: var(--premium-text); font-weight: 700; }
.premium-workspace .chat-customer-title .chat-customer-channel { color: #265eb7; }
.premium-workspace .chat-customer-title .right-tools :is(a, button):hover { color: var(--premium-blue); }
.premium-workspace .xiaoxiqu.chat-dbox-body { background: #f4f7fb; }
.premium-workspace .is-chat-bg .chat-content { border-radius: 12px; box-shadow: none; }
.premium-workspace .is-chat-bg .chat-content::before { display: none; }
.premium-workspace .is-chat-bg .chat-content .txt-message { padding: 9px 13px; line-height: 1.55; }
.premium-workspace .is-chat-bg .chat.right .chat-content { background: #dfeaff; color: #1b3a70; }
.premium-workspace .is-chat-bg .chat:not(.right):not(.center) .chat-content {
  background: #fff; color: var(--premium-text); border: 1px solid #dce5ef;
}
.premium-workspace .is-chat-bg .chat-time { color: var(--premium-muted); font-variant-numeric: tabular-nums; }
.premium-workspace .xiaoxiqu.chat-dbox-body .time-interval span { color: var(--premium-muted); background: #e8eef7; }
.premium-workspace .duihua.weixuan-duihua > .chat-unselected { background: var(--premium-canvas); color: var(--premium-muted); font-size: 15px; }
.premium-workspace .kong-zhuangtai { color: var(--premium-muted); }

.premium-workspace .chat-customer-info :is(h4, .chat-customer-tabs) { color: var(--premium-text); border-color: var(--premium-line); }
.premium-workspace .chat-customer-tabs { font-weight: 650; }
.premium-workspace .chat-customer-body { background: #f5f7fb; }
.premium-workspace .chat-customer-scroll { padding: 12px; }
.premium-workspace .chat-customer-scroll > :is(section, #chat-customer-tag) {
  margin: 0 0 9px; padding: 10px 12px; border: 1px solid var(--premium-line);
  border-radius: 10px; background: #fff;
}
.premium-workspace .chat-customer-scroll :is(h4, #chat-customer-tag h4) {
  margin: 0 0 6px; padding: 0 0 7px; border-color: var(--premium-line); font-size: 13px; font-weight: 700;
}
.premium-workspace .chat-customer-scroll .customer-card-row { margin-top: 0; padding: 4px 0; gap: 8px; grid-template-columns: 72px minmax(0, 1fr); }
.premium-workspace .chat-customer-scroll :is(.customer-card-row .name, .currenturl .ctips, .currenturl .offline) { color: var(--premium-muted); }
.premium-workspace .chat-customer-scroll .customer-card-row > :last-child { min-width: 0; overflow-wrap: anywhere; }
.premium-workspace .chat-customer-scroll .currenturl { padding: 0; }
.premium-workspace .chat-customer-scroll .currenturl .currenturl-head {
  height: auto; min-height: 52px; padding: 7px 10px; gap: 8px; line-height: 17px;
}
.premium-workspace .currenturl-head-left {
  display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 2px 6px;
}
.premium-workspace .currenturl-head-left > :is(a, b) {
  grid-area: 2 / 1 / 3 / -1; overflow: hidden; text-overflow: ellipsis;
}
.premium-workspace .chat-customer-scroll .currenturl .currenturl-body { height: auto; max-height: 132px; }
.premium-workspace .chat-customer-scroll .currenturl .currenturl-body-list { height: auto; }
.premium-workspace .chat-customer-scroll .currenturl .nodata { min-height: 54px; }
.premium-workspace .chat-customer-scroll .currenturl .currenturl-head-left .offline {
  margin: 0; padding: 1px 5px; border-radius: 4px; color: #4d5b6f; background: #edf1f6;
}
.premium-workspace .chat-customer-scroll .currenturl .currenturl-head-right button { color: #265eb7; }
.premium-workspace .chat-customer-scroll .currenturl .list-time { flex-basis: 64px; }
.premium-workspace .chat-customer-scroll .currenturl .list-res { flex-basis: min(27%, 120px); text-overflow: ellipsis; }
.premium-workspace .chat-customer-scroll .currenturl .currenturl-head-left .ctips { padding-right: 6px; }
.premium-workspace .chat-customer-scroll .blacklist { padding: 0 3px 8px; }
.premium-workspace .chat-customer-scroll .blacklist button { padding: 6px 8px; border-radius: 7px; }
.premium-workspace .chat-customer-scroll .blacklist button:hover { background: #e8eef7; }
.premium-workspace .chat-customer-info input { background: #f8faff; }

/* 设置改为分组列表，保留原导航按钮及即时保存表单。 */
.premium-workspace :is(.shezhi-page, .shezhi-buju) { background: var(--premium-canvas); }
.premium-workspace .shezhi-buju { grid-template-columns: 216px minmax(0, 1fr); }
.premium-workspace .shezhi-dingbu { height: 64px; box-shadow: none; border-bottom: 1px solid var(--premium-line); }
.premium-workspace .shezhi-dingbu h2 { width: 216px; flex-basis: 216px; border-right: 0; font-size: 19px; font-weight: 600; }
.premium-workspace .shezhi-dingbu h3 { font-size: 17px; font-weight: 600; }
.premium-workspace .shezhi-cebian { background: #f9fbfe; padding: 80px 12px 24px; border-right-color: var(--premium-line); }
.premium-workspace .shezhi-cebian h3 { padding-left: 14px; margin: 18px 0 9px; color: var(--premium-muted); font-size: 12px; font-weight: 650; }
.premium-workspace .shezhi-cebian ul { display: block; border: 0; background: transparent; margin-bottom: 20px; }
.premium-workspace .shezhi-cebian li { width: 100%; height: 44px; border: 0; margin-bottom: 3px; }
.premium-workspace .shezhi-cebian button { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; border-radius: 8px; background: transparent; color: #45454b; font-size: 13px; }
.premium-workspace .shezhi-cebian button i { font-size: 18px; color: #6e6e76 !important; font-variant-emoji: text; }
.premium-workspace .shezhi-cebian button:hover { background: #ededf0; }
.premium-workspace .shezhi-cebian button.xuan { background: var(--premium-selected); color: var(--premium-blue); font-weight: 650; }
.premium-workspace .shezhi-cebian button.xuan i { color: #005dbb; }
.premium-workspace .shezhi-zhuti { padding: 88px 32px 32px; }
.premium-workspace .shezhi-zhuti .mianban { border-color: var(--premium-line); border-radius: 12px; }
.premium-workspace :is(.rating-card, .distribution-card, .queue-setting-card, .personal-card, .remind-card, .worktime-card) { box-shadow: none; border: 1px solid var(--premium-line); border-radius: 12px; }
.premium-workspace :is(.rating-card p, .setting-head p, .personal-page small) { color: #626269; }
.premium-workspace .channel-page { background: var(--premium-canvas); padding: 36px; }
.premium-workspace .channel-page-head { margin-bottom: 32px; }
.premium-workspace .channel-page-head h2 { color: var(--premium-text); font-size: 28px; }
.premium-workspace .channel-page-head p { color: #626269; font-size: 14px; }
.premium-workspace .channel-card { border-color: var(--premium-line); box-shadow: none; border-radius: 12px; }
.premium-workspace .channel-card:hover { border-color: #b4c7e3; }
.premium-workspace .channel-icon { background: #eef2f7; color: #536781; }
.premium-workspace .channel-empty { background: #fff; border: 1px solid var(--premium-line); padding: 96px 24px; }
.premium-workspace .channel-empty h3 { color: var(--premium-text); font-size: 20px; }
.premium-workspace .channel-empty p { color: #626269; }
.premium-workspace .channel-dialog { background: #fff; }
.premium-workspace .channel-settings-content { background: #f5f5f7; }
.premium-workspace .channel-setting-tab.xuan { background: var(--premium-selected); color: #194fb6; }
.premium-workspace :is(.visitor-page, .customer-content, .tongji) { background: var(--premium-canvas); }
.premium-workspace :is(.customer-head, .visitor-head, .tongji-head) { border-color: var(--premium-line); box-shadow: none; }
.premium-workspace :is(.customer-body, .visitor-table) { border-color: var(--premium-line); }
.premium-workspace :is(.shezhi-cebian, .shezhi-zhuti, .neirong, .shouye-chengyuan, .chat-list-body, .xiaoxiqu) { scrollbar-width: thin; scrollbar-color: #c7c7cc transparent; }
.premium-workspace .personal-page :is(input:not([type=checkbox]), select) { min-height: 40px; }
.premium-workspace .personal-page textarea { min-height: 64px; }

/* 列表与分析使用同一标题节奏；宽表在自身容器滚动，不挤压整页。 */
.premium-workspace .customer-head { height: 80px; line-height: 80px; padding: 0 36px; box-shadow: none; background: var(--premium-canvas); }
.premium-workspace .customer-head > h3 { margin: 0 24px 0 0; font-size: 26px; font-weight: 600; }
.premium-workspace .customer-body { margin: 0 36px 36px; }
.premium-workspace .customer-body > #customer-body { border: 1px solid var(--premium-line); border-radius: 12px; box-shadow: none; overflow: hidden; }
.premium-workspace .customer-title { padding: 8px 20px; }
.premium-workspace .customer-title h3 { color: #626269; }
.premium-workspace .customer-list { overflow: auto; }
.premium-workspace .visitor-page { padding: 32px 36px; }
.premium-workspace .visitor-content { border: 1px solid var(--premium-line); border-radius: 12px; overflow: hidden; }
.premium-workspace .visitor-head { min-height: 68px; padding: 18px 20px; }
.premium-workspace .visitor-head button { min-height: 36px; border: 0; border-radius: 7px; margin-right: 4px; background: #edf2f8; color: var(--premium-muted); }
.premium-workspace .visitor-head button.xuan { background: var(--premium-selected); color: #194fb6; }
.premium-workspace :is(.visitor-table, .analysis-table) th { color: var(--premium-muted); background: #f4f7fb; }
.premium-workspace .main-analysis { background: var(--premium-canvas); }
.premium-workspace .main-analysis .analysis-head { height: 80px; min-height: 80px; padding: 0 36px; background: var(--premium-canvas); box-shadow: none; }
.premium-workspace .analysis-type { width: 160px; flex-basis: 160px; }
.premium-workspace .analysis-type > button { height: 64px; background: transparent; font-size: 24px; font-weight: 600; }
.premium-workspace :is(.analysis-region, .analysis-table) { width: auto; max-width: none; margin: 0 36px 24px; border: 1px solid var(--premium-line); border-radius: 12px; box-shadow: none; overflow: hidden; }
.premium-workspace .analysis-region > header { height: 56px; }
.premium-workspace .analysis-metrics { padding: 24px 0; }
.premium-workspace .analysis-metrics dl { border: 0; padding-left: 24px; }
.premium-workspace .analysis-metrics dt { color: #626269; font-size: 13px; }
.premium-workspace .analysis-metrics .is-number { font-size: 34px; font-weight: 600; color: #1d1d1f; }
.premium-workspace .analysis-metrics dd { height: 72px; color: #626269; }
.premium-workspace :is(.analysis-chart-tools, .analysis-head) button:not(.analysis-select) { border-radius: 7px; }
.premium-workspace .analysis-chart-tools button { margin: 0 2px; border: 0; background: #edf2f8; color: var(--premium-muted); }
.premium-workspace .analysis-chart-tools button.xuan { background: var(--premium-selected); color: #194fb6; }
.premium-workspace .analysis-table th { font-weight: 650; }

/* 公开账号页用真实业务文案和两栏排版，不添加虚构数据或演示操作。 */
body.premium-auth:is(#login, #register, #forget) { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(480px, 1fr); align-items: stretch; min-height: 100dvh; height: auto; background: #fff; }
.premium-auth .auth-intro { display: flex; flex-direction: column; justify-content: space-between; min-height: 100dvh; padding: 56px clamp(36px, 5vw, 88px); background: #202124; color: #f5f5f7; }
.auth-brand { display: flex; align-items: center; gap: 18px; font-size: 27px; font-weight: 600; }
.auth-brand span { padding-left: 18px; border-left: 1px solid #626269; color: #c3c3ca; font-size: 10px; letter-spacing: 2px; font-weight: 400; }
.auth-intro .auth-eyebrow { display: block; margin-bottom: 28px; color: #b8cbe2; font-size: 13px; }
.auth-intro h1 { margin: 0 0 28px; font-size: clamp(32px, 3.5vw, 52px); line-height: 1.35; font-weight: 600; }
.auth-intro p { margin: 0; color: #b7b7bf; line-height: 1.9; font-size: 14px; }
.auth-intro footer { padding-top: 28px; border-top: 1px solid #414146; color: #b7b7bf; font-size: 12px; }
.auth-intro footer span { margin: 0 12px; color: #727279; }
body.premium-auth#login .denglu { min-height: 100dvh; padding: 48px 32px; display: grid; place-items: center; background: #fff; }
body.premium-auth#login .login-body { width: 360px; max-width: 100%; padding: 0; }
body.premium-auth:is(#register, #forget) > main { width: 360px; max-width: calc(100% - 64px); height: auto; padding: 48px 0; margin: auto; transform: none; }
body.premium-auth:is(#login, #register, #forget) :is(.login-title, .is-title) { display: none; }
.premium-auth .auth-heading { margin-bottom: 36px; }
.premium-auth .auth-heading h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.3; font-weight: 600; }
.premium-auth .auth-heading p { margin: 0; color: #626269; font-size: 13px; line-height: 1.7; }
body.premium-auth:is(#register, #forget) .body { width: 100%; max-width: none; padding: 0; }
body.premium-auth:is(#login, #register, #forget) :is(form input:not([type=checkbox]), .is-field input) { height: 52px; padding: 12px 16px; border: 1px solid #d2d2d7; border-radius: 10px; background: #fafafa; font-size: 14px; line-height: 24px; color: #1d1d1f; }
body.premium-auth#login .login-remember { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; width: fit-content; color: #424245; font-size: 14px; cursor: pointer; }
body.premium-auth#login .login-remember input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: #0066cc; }
body.premium-auth:is(#login, #register, #forget) :is(.is-field, form > input) { margin-bottom: 20px; }
body.premium-auth:is(#login, #register, #forget) :is(form button, .denglu-anniu, .zhuce-anniu) { min-height: 48px; border: 0; border-radius: 999px; background: #0066cc; color: #fff; font-size: 14px; box-shadow: none; }
body.premium-auth:is(#login, #register, #forget) form button:hover { background: #0057ae; }
body.premium-auth:is(#login, #register, #forget) form button:disabled { background: #e8e8ed; color: #727279; cursor: not-allowed; }
body.premium-auth:is(#login, #register, #forget) .is-code { display: flex; gap: 10px; }
body.premium-auth:is(#login, #register, #forget) .is-code input { min-width: 0; flex: 1; }
body.premium-auth:is(#login, #register, #forget) .is-code button { flex: 0 0 132px; min-height: 52px; margin: 0; padding: 0 12px; background: #eaf2fc; color: #0066cc; border-radius: 10px; }
body.premium-auth:is(#login, #register, #forget) .is-code button { position: static; width: auto; }
body.premium-auth#register #fasong-duanxin { position: static; flex: 0 0 132px; width: 132px; height: 52px; min-height: 52px; padding: 0 10px; border: 0; border-radius: 10px; background: #eaf2fc; color: #0066cc; font-size: 12px; }
body.premium-auth#register .is-code input { width: 0; padding-right: 12px; }
body.premium-auth:is(#login, #register, #forget) .agreement { color: #626269; font-size: 12px; line-height: 1.8; }
body.premium-auth:is(#login, #register, #forget) :is(.login-more, .fanhui-denglu) { color: #626269; font-size: 12px; }
body.premium-auth:is(#login, #register, #forget) :is(.login-more a, .agreement a, .fanhui-denglu) { color: #0066cc; }
body.premium-auth:is(#login, #register, #forget) .fanhui-denglu { border: 0; background: transparent; min-height: 44px; }
body.premium-auth:is(#login, #register, #forget) hr { margin: 32px 0 24px; border: 0; height: 1px; background: #e5e5e8; }
body.premium-auth#login .login-more { margin-top: 24px; }

/* 访客端只调整共用排版与形状，渠道自定义主题、气泡和深色模式继续由原配置决定。 */
.premium-visitor .fangke-chuang { border-radius: 18px; box-shadow: 0 16px 64px #1d1d1f12; }
.premium-visitor .fangke-chuang > header { padding: 20px 24px; }
.premium-visitor .fangke-chuang footer { padding: 16px 20px; }
.premium-visitor #fangke-fasong { border-radius: 999px; min-width: 76px; min-height: 40px; }
.premium-visitor .paopao { border-radius: 12px; line-height: 1.65; }

@media (min-width: 801px) {
  .premium-workspace .duihua.chat-layoutbody:not(.weixuan-duihua) {
    --visible-customer-width: min(var(--customer-width), 34%);
    grid-template-columns: 300px minmax(280px, 1fr) var(--visible-customer-width);
  }
  .premium-workspace .duihua.chat-layoutbody:has(.chat-quick-panel.column:not([hidden])) {
    --visible-customer-width: min(var(--customer-width), 30%);
    grid-template-columns: 300px minmax(280px, 1fr) min(var(--quick-width), 22%) var(--visible-customer-width);
  }
  .premium-workspace .duihua:not(.weixuan-duihua) .chat-customer-drop { right: calc(var(--visible-customer-width) - 3px); }
  .premium-workspace .chat-customer-title :is(.title, .title-body, h3) { min-width: 0; }
  .premium-workspace .chat-customer-title .right-tools li > a { margin-left: 6px; padding-inline: 7px; }
  .premium-workspace .shuru.chat-dbox-send {
    box-sizing: border-box; height: auto; flex: 0 0 auto; margin: 0;
    padding: 0 16px 14px; border: 0; background: #f4f7fb;
  }
  .premium-workspace .shuru.chat-dbox-send .chat-dbox-tool,
  .premium-workspace .shuru.chat-dbox-send .chat-dbox-send-body {
    background: #fff; border: 1px solid #ccd9eb;
  }
  .premium-workspace .shuru.chat-dbox-send .chat-dbox-tool {
    gap: 5px; padding: 0 10px; border-bottom: 0; border-radius: 12px 12px 0 0;
  }
  .premium-workspace .shuru.chat-dbox-send .chat-dbox-tool li { margin-right: 9px; }
  .premium-workspace .shuru.chat-dbox-send .chat-dbox-send-body {
    height: 88px; border-top: 0; border-radius: 0 0 12px 12px;
  }
  .premium-workspace .shuru.chat-dbox-send .chat-dbox-send-body textarea {
    height: 100%; padding: 3px 90px 10px 13px; font-size: 14px; line-height: 1.65;
  }
  .premium-workspace .shuru.chat-dbox-send .chat-dbox-send-body textarea:focus-visible { outline-offset: -3px !important; }
  .premium-workspace .shuru.chat-dbox-send .chat-dbox-send-body .anniu { border-radius: 8px; }
  .premium-workspace #fasong:disabled { background: #e8edf5; color: #52637a; opacity: 1; }
}
/* 中等宽度优先保住聊天正文和操作空间，快捷回复继续使用原有折叠机制。 */
@media (min-width: 801px) and (max-width: 1180px) {
  .premium-workspace .shouye-dingbu { grid-template-columns: 1fr; }
  .premium-workspace .shouye-xinxi { min-height: 230px; }
  .premium-workspace .shouye-zhibiao { grid-template-columns: repeat(3, 1fr); }
  .premium-workspace .shouye-zhibiao dl { border-bottom: 1px solid var(--premium-line); }
  .premium-workspace .duihua.chat-layoutbody:not(.weixuan-duihua) {
    --visible-customer-width: min(var(--customer-width), 27%);
    grid-template-columns: minmax(216px, 28%) minmax(265px, 1fr) var(--visible-customer-width);
  }
  .premium-workspace .duihua.chat-layoutbody:has(.chat-quick-panel.column:not([hidden])) {
    --visible-customer-width: min(var(--customer-width), 16%);
    grid-template-columns: minmax(216px, 28%) minmax(265px, 1fr) min(var(--quick-width), 17%) var(--visible-customer-width);
  }
}
@media (min-width: 801px) and (max-width: 1000px) {
  .premium-workspace .liaotian header.chat-customer-title { height: 87px; flex-basis: 87px; }
  .premium-workspace .chat-customer-title > .title,
  .premium-workspace .chat-customer-title .title-body { height: auto; }
  .premium-workspace .chat-customer-title .title-body { flex-direction: column; align-items: stretch; }
  .premium-workspace .chat-customer-title .title-body h3 { flex: 0 0 50px; }
  .premium-workspace .chat-customer-title .right-tools { height: 36px; }
  .premium-workspace .chat-customer-title .right-tools :is(li, li > a) { height: 36px; }
  .premium-workspace .chat-customer-title .right-tools li > a { margin-left: 0; white-space: nowrap; }
}
@media (min-width: 801px) and (max-height: 760px) {
  .premium-workspace .workspace-brand { padding-top: 16px; }
  .premium-workspace .daohang .touxiang { margin: 14px auto; }
  body.premium-workspace[data-page] .daohang nav a { height: 48px; margin-top: 3px; margin-bottom: 3px; gap: 3px; }
}
@media (max-width: 800px) {
  .premium-workspace .workspace-brand { display: none; }
  .premium-workspace .daohang { width: 100%; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--premium-line); }
  body.premium-workspace[data-page] .daohang nav a { width: 33.333%; height: 60px; margin: 0; border-radius: 0; color: #6e6e76; background: #fff; }
  body.premium-workspace[data-page] .daohang nav a:not([href="/duihua.html"]):not([href="/fangke.html"]):not([href="/shezhi.html"]) { display: none; }
  body.premium-workspace[data-page] .daohang a:is([href="/duihua.html"], [href="/fangke.html"], [href="/shezhi.html"]) { padding: 7px 0; }
  body.premium-workspace[data-page="/duihua.html"] .daohang a[href="/duihua.html"],
  body.premium-workspace[data-page="/lishi.html"] .daohang a[href="/duihua.html"],
  body.premium-workspace[data-page="/fangke.html"] .daohang a[href="/fangke.html"],
  body.premium-workspace[data-page="/shezhi.html"] .daohang a[href="/shezhi.html"] { color: #0066cc; background: #f1f6fd; }
  .premium-workspace .yingyong { padding-bottom: calc(60px + env(safe-area-inset-bottom)); min-width: 0; }
  .premium-workspace .zhuti { height: calc(100dvh - 60px - env(safe-area-inset-bottom)); }
  .premium-workspace .shouye > h2 { font-size: 24px; padding: 24px 20px 4px; }
  .premium-workspace .shouye-neirong { padding: 20px; }
  .premium-workspace .shouye-dingbu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .premium-workspace .shouye-zhibiao { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-workspace .shouye-zhibiao dl { padding: 20px 16px; }
  .premium-workspace .shouye-zhibiao small { white-space: normal; line-height: 1.6; }
  .premium-workspace .shouye-baobiao-tou { height: auto; align-items: flex-start; flex-direction: column; gap: 12px; }
  .premium-workspace #shouye-shijian { display: flex; flex-wrap: wrap; gap: 4px; }
  .premium-workspace .channel-page { padding: 24px 20px; }
  .premium-workspace .channel-page-head h2 { font-size: 24px; }
  .premium-workspace .channel-page-head .channel-create { min-height: 44px; }
  .premium-workspace .channel-action { min-height: 44px; }
  .premium-workspace .channel-empty { padding: 64px 20px; }
  .premium-workspace .shezhi-buju { display: block; }
  .premium-workspace .shezhi-dingbu { height: 55px; }
  .premium-workspace .shezhi-zhuti { padding: 20px; }
  .premium-workspace .customer-content { display: block; min-width: 0; }
  .premium-workspace .customer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; line-height: normal; padding: 0 20px; }
  .premium-workspace .customer-head > h3 { margin: 0; font-size: 22px; }
  .premium-workspace .customer-screen { margin: 0; }
  .premium-workspace .customer-screen-trigger { min-height: 44px; margin: 0; }
  .premium-workspace .customer-body { margin: 0 20px 20px; }
  .premium-workspace .visitor-page { padding: 0; }
  .premium-workspace .visitor-content { border: 0; border-radius: 0; }
  .premium-workspace .main-analysis .analysis-head { height: auto; min-height: 112px; padding: 0 20px 16px; }
  .premium-workspace .analysis-type { flex-basis: 56px; height: 56px; }
  .premium-workspace .analysis-type > button { height: 56px; font-size: 22px; }
  .premium-workspace .main-analysis .tongji-shijian {
    height: auto; padding: 0; overflow: visible; flex-wrap: wrap; gap: 6px;
  }
  .premium-workspace .main-analysis .tongji-shijian > button { height: 36px; margin: 0; padding: 0 10px; }
  .premium-workspace #tongji-zidingyi { position: static; width: 100%; flex-wrap: wrap; padding: 8px 0 0; border: 0; background: transparent; }
  .premium-workspace #tongji-zidingyi input { box-sizing: border-box; min-width: 108px; }
  .premium-workspace .analysis-chart-tools > div { min-width: 0; flex-wrap: wrap; gap: 4px; }
  .premium-workspace .analysis-chart-tools button { margin: 0; }
  .premium-workspace :is(.analysis-region, .analysis-table) { margin: 0 20px 20px; }
  .premium-workspace .analysis-metrics { padding: 0; }
  .premium-workspace .analysis-metrics dl { padding: 20px 16px 8px; border-bottom: 1px solid var(--premium-line); }
  .premium-workspace .analysis-metrics .is-number { font-size: 28px; }
  /* 侧滑操作位于行底层，外壳必须无内边距，避免默认露出红色结束按钮。 */
  .premium-workspace .chat-inbox-heading { display: none; }
  .premium-workspace .duihua.yidong-duihua .shuru.chat-dbox-send .chat-dbox-send-body textarea {
    border: 1px solid var(--premium-line); border-radius: 9px; padding-inline: 10px;
  }
  .premium-workspace .chat-mode-tabs { margin: 8px 10px 4px; }
  .premium-workspace .hc-chatlist-itemstyle { padding: 0; overflow: hidden; }
  .premium-workspace .huanhua .mobile-chat-slide-body { padding: 12px; }
  .premium-workspace .hc-chatlist-itemstyle:is(.xuan, .active) .mobile-chat-slide-body { background: var(--premium-selected); }
  .premium-workspace :is(.mobile-chat-list-head, .mobile-visitor-head, .mobile-history-head) { background: #fafafa; color: #1d1d1f; border-bottom: 1px solid var(--premium-line); }
  .premium-workspace .mobile-visitor-head .visitor-tabs button { min-height: 36px; border-color: var(--premium-line); color: var(--premium-muted); }
  .premium-workspace .mobile-visitor-head .visitor-tabs button.xuan { background: var(--premium-selected); color: var(--premium-blue); }
  .premium-workspace .mobile-history-head > :is(a, button) { color: var(--premium-blue); }
  .premium-workspace .duihua.yidong-duihua .liaotian > .chat-customer-title { background: #fafafa; color: #1d1d1f; border-bottom: 1px solid var(--premium-line); }
  .premium-workspace .duihua.yidong-duihua .chat-customer-title :is(.title, .title-body, h3, button) { background: transparent; color: #1d1d1f; }
  .premium-workspace .duihua.yidong-duihua #duihua-mingcheng,
  .premium-workspace .duihua.yidong-duihua #duihua-mingcheng * { color: #1d1d1f; }
  .premium-workspace .duihua.yidong-duihua .chat-customer-title button { color: #0066cc; }
  .premium-workspace .mobile-chat-details-head { background: #fafafa; color: #1d1d1f; border-bottom: 1px solid var(--premium-line); }
  .premium-workspace .mobile-chat-details-head button { background: transparent; color: #0066cc; min-width: 44px; min-height: 44px; }
  .premium-workspace .mobile-account-page .mobile-account-title { background: #fafafa; color: #1d1d1f; border-bottom: 1px solid var(--premium-line); }
  .premium-workspace .mobile-account-page { background: #f5f5f7; }
  .premium-workspace .mobile-account-scroll { scrollbar-width: thin; scrollbar-color: #c7c7cc transparent; }
  .premium-workspace .duihua.yidong-duihua .chat-dbox-send-body { background: #f5f5f7; padding-bottom: env(safe-area-inset-bottom); }
  .premium-workspace .duihua.yidong-duihua .cebian.chat-customer-info:not(.mobile-chat-details-open) { display: none; }
  .premium-workspace .mobile-chat-input-tools button[hidden] { display: none !important; }
  .premium-workspace .duihua.yidong-duihua .mobile-chat-input-tools {
    box-sizing: border-box; flex: 0 0 auto; width: auto; min-height: 56px; gap: 2px; padding-inline: 4px 8px;
  }
  .premium-workspace .mobile-chat-input-tools li { display: flex; align-items: center; min-width: 48px; min-height: 48px; }
  .premium-workspace .mobile-chat-input-tools button { min-width: 44px; min-height: 44px; }
  .premium-workspace .mobile-chat-input-tools .mobile-chat-send { border-radius: 999px; background: #0066cc; color: #fff; }
  .premium-workspace .zhuangtai-caidan { left: 12px; top: auto; bottom: 76px; }
  body.premium-auth:is(#login, #register, #forget) { display: block; min-width: 0; background: #f5f5f7; }
  .premium-auth .auth-intro { display: none; }
  body.premium-auth#login .denglu { min-height: 100dvh; padding: 48px 24px; background: #f5f5f7; }
  body.premium-auth#login .login-body { padding: 0; }
  body.premium-auth:is(#register, #forget) > main { width: auto; max-width: 408px; margin: 0 auto; padding: 48px 24px; }
  body.premium-auth:is(#login, #register, #forget) :is(.login-title, .is-title) { display: block; text-align: left; margin-bottom: 28px; }
  body.premium-auth:is(#login, #register, #forget) :is(.login-title, .is-title) .brand-mark { width: 48px; height: 48px; }
  .premium-auth .auth-heading { margin-bottom: 32px; }
  .premium-auth .auth-heading h2 { font-size: 28px; }
  body.premium-auth:is(#login, #register, #forget) form input { background: #fff; }
  .premium-visitor .fangke-chuang { border-radius: 0; box-shadow: none; }
  .premium-visitor #fangke-fasong { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.premium-workspace, .premium-auth, .premium-visitor) *,
  :is(.premium-workspace, .premium-auth, .premium-visitor) *::before,
  :is(.premium-workspace, .premium-auth, .premium-visitor) *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.premium-visitor #fangke-tishi { margin: 0; padding: 9px 16px; color: #912d1d; background: #fff0e8; font-size: 13px; }
.premium-visitor .fangke-intro { height: 100%; display: grid; place-content: center; gap: 6px; text-align: center; color: #435772; padding: 24px; }
.premium-visitor .fangke-intro strong { color: #142943; font-size: 17px; }
.premium-visitor .fangke-intro p { margin: 0; font-size: 14px; }
.premium-visitor[data-shouye="1"] { display: block; background: #f6faff; }
.premium-visitor[data-shouye="1"] .fangke-chuang { width: 100%; height: 100dvh; box-shadow: none; border-radius: 0; }
.premium-visitor[data-shouye="1"] .fangke-shouqi { display: none; }
.premium-visitor[data-shouye="1"] #fangke-fasong { min-height: 44px; }
.premium-visitor[data-shouye="1"] .fangke-chuang > header { background: #174da3; color: white; }

.chat-customer-meta :is([data-visitor-ip], [data-visitor-region]) { overflow-wrap: anywhere; }


.premium-workspace .chat-list-name { display: flex; align-items: center; gap: 5px; }
.chat-list-name :is(.chat-list-customer, .chat-list-region, .chat-list-channel) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-name .chat-list-customer { font-weight: inherit; }
.premium-workspace .chat-list-name .chat-list-region { display: block; flex: 0 0 auto; max-width: 42%; padding-inline: 4px; border-radius: 4px; color: #355577; background: #e9f0f8; font-size: 11px; line-height: 15px; }

.premium-workspace .chat-list-navs { overflow-x: auto; scrollbar-width: thin; }
.premium-workspace .chat-list-navs > button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 5px;
  padding-inline: 7px;
}
.premium-workspace .chat-list-navs > button:first-child { margin-inline-start: 0; }
.chat-category-unread {
  min-width: 16px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #c73536;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
