/* Email / APP / Help Center 渠道产品页专属 UI。
   依赖 product-voice-saas.css + product-helpdesk-saas.css（页面骨架）和 product-livechat-saas.css（lc-msg / lc-card / lc-handoff 等通用件）。 */

.ch-page { --ch-blue: #3157ff; --ch-ink: #111827; --ch-muted: #667085; --ch-line: #e3e8f0; }
.ch-page .ch-hero-console { padding: 0 !important; }

/* ===== 通用：带深色标题栏的产品窗口 ===== */
.ch-window { width: 100%; overflow: hidden; border: 1px solid #dce2eb; border-radius: 17px; background: #fff; box-shadow: 0 16px 40px rgba(28,45,78,.08); }
.ch-window > header { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #fff; background: #111a2b; }
.ch-window > header b { font-size: 13px; }
.ch-window > header span { color: #cbd3df; font-size: 11px; }
.ch-window > header .logo { display: inline-block; width: 110px; height: 22px; margin-right: 12px; vertical-align: middle; background: url('../assets/shulex-logo-dark.png') left center / contain no-repeat; filter: brightness(0) invert(1); }
.ch-pill { display: inline-block; padding: 3px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.ch-pill.ok { color: #1a6b48; background: #e4f6ec; }
.ch-pill.warn { color: #8a5a00; background: #fff3dc; }
.ch-pill.info { color: #244bc3; background: #e9efff; }
.ch-pill.gray { color: #667085; background: #eef1f5; }

/* ===== Email ===== */
.em-inbox { display: grid; grid-template-columns: 200px 1fr; min-height: 470px; }
.em-list { border-right: 1px solid var(--ch-line); background: #f7f8fb; }
.em-list > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; font-size: 12px; font-weight: 700; }
.em-list > header span { color: var(--ch-muted); font-weight: 400; font-size: 10px; }
.em-list article { padding: 12px 14px; border-top: 1px solid var(--ch-line); }
.em-list article.active { background: #fff; border-left: 3px solid var(--ch-blue); }
.em-list article b { display: block; font-size: 11px; }
.em-list article p { margin: 3px 0 0; overflow: hidden; color: var(--ch-muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.em-list article small { display: flex; justify-content: space-between; margin-top: 5px; color: #98a2b3; font-size: 9px; }
.em-list article small em { font-style: normal; font-weight: 700; color: #244bc3; }
.em-list article small em.human { color: #a86a00; }
.em-thread { padding: 16px 18px; }
.em-thread > h4 { margin: 0 0 4px; font-size: 14px; }
.em-thread > small { display: block; margin-bottom: 14px; color: var(--ch-muted); font-size: 10px; }
.em-mail { margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--ch-line); border-radius: 10px; background: #fff; font-size: 11px; line-height: 1.6; }
.em-mail header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 10px; color: var(--ch-muted); }
.em-mail header i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e6e9ef; color: #475467; font-size: 9px; font-style: normal; font-weight: 700; }
.em-mail header b { color: var(--ch-ink); }
.em-mail.ai { border-color: #cfdafe; background: #f5f8ff; }
.em-mail.ai header i { color: #fff; background: var(--ch-blue); }
.em-mail p { margin: 0; }
.em-attach { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 9px; border: 1px solid var(--ch-line); border-radius: 7px; background: #fff; font-size: 10px; color: #475467; }
.em-attach::before { content: ''; width: 14px; height: 14px; border-radius: 3px; background: linear-gradient(145deg, #cfd8e8, #aab7cc); }
.em-extract { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid #ffd9a8; background: #fff6e6; }
.em-extract small { display: block; color: #a86a00; font-size: 10px; font-weight: 700; }
.em-extract dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin: 8px 0 0; }
.em-extract dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; }
.em-extract dt { color: #8a5a00; }
.em-extract dd { margin: 0; font-weight: 700; color: var(--ch-ink); }
.em-side { padding: 16px; border-left: 1px solid var(--ch-line); }
.em-side h4 { margin: 0 0 12px; font-size: 13px; }
.em-side dl { margin: 0; }
.em-side dl div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 11px; }
.em-side dt { color: #8d97a7; }
.em-side dd { margin: 0; font-weight: 700; text-align: right; }
.em-grid3 { display: grid; grid-template-columns: 190px 1fr 190px; min-height: 470px; }
.em-grid3 > .em-list { min-width: 0; }
.em-grid2 { grid-template-columns: 1fr 230px; }
.ch-page .voice-hero h1 > span, .ch-page .voice-hero h1 em { white-space: normal; }
.em-steps { margin: 0; padding: 0; list-style: none; }
.em-steps li { position: relative; padding: 0 0 14px 22px; font-size: 11px; line-height: 1.5; }
.em-steps li::before { content: ''; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #34c77b; background: #fff; }
.em-steps li::after { content: ''; position: absolute; left: 6px; top: 18px; bottom: -2px; width: 1px; background: #d9e0ea; }
.em-steps li:last-child::after { display: none; }
.em-steps li b { display: block; }
.em-steps li small { color: var(--ch-muted); font-size: 10px; }
.em-steps li.done::before { background: #34c77b; }
.em-steps li.human::before { border-color: #f0b545; background: #fff3dc; }
.em-steps li.pending::before { border-color: #cfd6e2; }
.em-night { padding: 18px; }
.em-night > header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.em-night > header b { font-size: 14px; }
.em-night > header span { color: var(--ch-muted); font-size: 11px; }
.em-night table { width: 100%; border-collapse: collapse; font-size: 11px; }
.em-night th { padding: 8px 10px; border-bottom: 1px solid var(--ch-line); color: var(--ch-muted); font-weight: 600; text-align: left; font-size: 10px; }
.em-night td { padding: 10px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.em-night td:first-child { color: var(--ch-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.em-night tfoot td { padding-top: 14px; border: 0; color: var(--ch-ink); font-weight: 700; }
.em-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.em-summary div { padding: 12px; border-radius: 10px; background: #f5f8ff; border: 1px solid #cfdafe; }
.em-summary b { display: block; color: var(--ch-blue); font-size: 20px; letter-spacing: -.02em; }
.em-summary small { color: var(--ch-muted); font-size: 10px; }

/* ===== APP ===== */
.ap-phone { position: relative; width: 320px; margin: 0 auto; padding: 12px; border-radius: 38px; background: #111a2b; box-shadow: 0 24px 60px rgba(17,26,43,.28); }
.ap-phone::before { content: ''; position: absolute; top: 12px; left: 50%; width: 96px; height: 22px; transform: translateX(-50%); border-radius: 0 0 14px 14px; background: #111a2b; z-index: 2; }
.ap-screen { overflow: hidden; border-radius: 28px; background: #f4f6fa; }
.ap-screen > header { display: flex; align-items: center; justify-content: space-between; padding: 34px 16px 10px; font-size: 13px; font-weight: 700; background: #fff; border-bottom: 1px solid var(--ch-line); }
.ap-screen > header span { color: var(--ch-muted); font-size: 11px; font-weight: 400; }
.ap-user { display: flex; align-items: center; gap: 10px; margin: 12px 12px 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--ch-line); }
.ap-user i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--ch-blue); background: #dce6ff; font-size: 11px; font-style: normal; font-weight: 700; }
.ap-user b { display: block; font-size: 12px; }
.ap-user small { display: block; margin-top: 2px; color: var(--ch-muted); font-size: 10px; }
.ap-user .ch-pill { margin-left: auto; }
.ap-context { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 12px 0; }
.ap-context div { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--ch-line); }
.ap-context small { display: block; color: var(--ch-muted); font-size: 9px; }
.ap-context b { display: block; margin-top: 2px; font-size: 11px; }
.ap-chat { padding: 12px 12px 4px; }
.ap-chat .lc-msg { max-width: 92%; }
.ap-steps { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #dbe4ff; }
.ap-steps b { display: block; margin-bottom: 6px; font-size: 11px; }
.ap-steps ol { margin: 0; padding: 0 0 0 18px; font-size: 11px; line-height: 1.6; color: #344054; }
.ap-steps li.done { color: #1a6b48; text-decoration: line-through; }
.ap-steps li.now { font-weight: 700; color: var(--ch-ink); }
.ap-steps small { display: block; margin-top: 6px; color: var(--ch-muted); font-size: 10px; }
.ap-form { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #dbe4ff; }
.ap-form b { display: block; margin-bottom: 8px; font-size: 11px; }
.ap-form ul { margin: 0; padding: 0; list-style: none; }
.ap-form li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #eef1f5; font-size: 11px; }
.ap-form li span { color: #475467; }
.ap-form .submit { display: block; margin-top: 10px; padding: 9px; border-radius: 9px; text-align: center; color: #fff; background: var(--ch-blue); font-size: 11px; font-weight: 700; }
.ap-screen > footer { display: flex; align-items: center; justify-content: space-between; margin: 6px 12px 14px; padding: 9px 12px; border: 1px solid var(--ch-line); border-radius: 12px; background: #fff; color: #9aa4b5; font-size: 11px; }
.ap-screen > footer b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: #fff; background: var(--ch-blue); font-size: 12px; }
.ap-hero-layout { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: center; }
.ap-hero-side { display: grid; gap: 12px; }
.ap-hero-side article { padding: 14px 16px; border: 1px solid #cfdafe; border-radius: 13px; background: #fff; box-shadow: 0 12px 28px rgba(35,66,153,.11); }
.ap-hero-side article small { display: block; color: var(--ch-blue); font-size: 10px; font-weight: 700; }
.ap-hero-side article b { display: block; margin-top: 4px; font-size: 12px; }
.ap-hero-side article p { margin: 4px 0 0; color: var(--ch-muted); font-size: 11px; line-height: 1.55; }

/* ===== Help Center ===== */
.hc-site { display: grid; grid-template-columns: 170px 1fr; min-height: 470px; }
.hc-nav { padding: 16px 12px; border-right: 1px solid var(--ch-line); background: #f7f8fb; }
.hc-nav b { display: block; margin: 0 6px 10px; font-size: 12px; }
.hc-nav p { display: flex; justify-content: space-between; margin: 2px 0; padding: 7px 8px; border-radius: 7px; color: #606b7e; font-size: 11px; }
.hc-nav p.active { color: var(--ch-blue); background: #e4ebff; font-weight: 700; }
.hc-main { padding: 18px 20px; }
.hc-search { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--ch-blue); border-radius: 12px; background: #fff; font-size: 12px; box-shadow: 0 0 0 4px rgba(49,87,255,.08); }
.hc-search::before { content: '⌕'; color: var(--ch-blue); font-size: 16px; }
.hc-search em { margin-left: auto; padding: 4px 9px; border-radius: 7px; color: #fff; background: var(--ch-blue); font-size: 10px; font-style: normal; font-weight: 700; }
.hc-note { display: flex; align-items: center; gap: 6px; margin: 10px 0; color: #7a8598; font-size: 10px; }
.hc-note::before { content: '✦'; color: var(--ch-blue); }
.hc-answer { padding: 14px 16px; border: 1px solid #cfdafe; border-radius: 12px; background: #f5f8ff; }
.hc-answer h4 { margin: 0 0 8px; font-size: 13px; }
.hc-answer p { margin: 0 0 8px; color: #344054; font-size: 11px; line-height: 1.65; }
.hc-answer ol { margin: 0 0 8px; padding-left: 18px; font-size: 11px; line-height: 1.7; color: #344054; }
.hc-answer .src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hc-answer .src span { padding: 3px 8px; border-radius: 6px; background: #fff; border: 1px solid #dbe4ff; color: #244bc3; font-size: 10px; }
.hc-answer .fb { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #dbe4ff; color: var(--ch-muted); font-size: 10px; }
.hc-answer .fb span { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--ch-line); background: #fff; color: #344054; }
.hc-related { margin-top: 12px; }
.hc-related small { display: block; margin-bottom: 6px; color: var(--ch-muted); font-size: 10px; }
.hc-related p { display: flex; justify-content: space-between; margin: 0; padding: 8px 0; border-top: 1px solid #eef1f5; font-size: 11px; }
.hc-related p span { color: #98a2b3; }
.hc-knowledge { padding: 18px; }
.hc-knowledge > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hc-knowledge > header b { font-size: 14px; }
.hc-doc { padding: 12px 14px; border: 1px solid var(--ch-line); border-radius: 10px; background: #fff; }
.hc-doc b { display: block; font-size: 12px; }
.hc-doc small { display: block; margin-top: 3px; color: var(--ch-muted); font-size: 10px; }
.hc-doc p { margin: 8px 0 0; color: #344054; font-size: 11px; line-height: 1.6; }
.hc-usage { margin-top: 12px; }
.hc-usage small { display: block; margin-bottom: 6px; color: var(--ch-muted); font-size: 10px; }
.hc-usage div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hc-usage article { padding: 10px; border-radius: 9px; background: #f7f8fb; border: 1px solid var(--ch-line); }
.hc-usage article b { display: block; font-size: 11px; }
.hc-usage article span { display: block; margin-top: 3px; color: var(--ch-muted); font-size: 10px; }
.hc-usage article em { display: block; margin-top: 5px; color: var(--ch-blue); font-size: 10px; font-style: normal; font-weight: 700; }
.hc-gaps { padding: 18px; }
.hc-gaps > header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.hc-gaps > header b { font-size: 14px; }
.hc-gaps > header span { color: var(--ch-muted); font-size: 11px; }
.hc-gaps table { width: 100%; border-collapse: collapse; font-size: 11px; }
.hc-gaps th { padding: 8px 10px; border-bottom: 1px solid var(--ch-line); color: var(--ch-muted); font-weight: 600; text-align: left; font-size: 10px; }
.hc-gaps td { padding: 10px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.hc-gaps td:nth-child(2) { color: var(--ch-muted); font-variant-numeric: tabular-nums; }
.hc-gaps .draft { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid #ffd9a8; background: #fff6e6; }
.hc-gaps .draft small { display: block; color: #a86a00; font-size: 10px; font-weight: 700; }
.hc-gaps .draft b { display: block; margin-top: 5px; font-size: 12px; }
.hc-gaps .draft p { margin: 4px 0 0; color: #475467; font-size: 11px; line-height: 1.55; }
.hc-gaps .draft .btns { display: flex; gap: 8px; margin-top: 10px; }
.hc-gaps .draft .btns span { padding: 5px 11px; border-radius: 7px; font-size: 10px; font-weight: 700; border: 1px solid #f0d9b3; background: #fff; color: #8a5a00; }
.hc-gaps .draft .btns span.primary { color: #fff; background: var(--ch-blue); border-color: var(--ch-blue); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .em-inbox, .em-grid3, .em-grid2, .hc-site { grid-template-columns: 1fr; }
  .em-list, .hc-nav { display: none; }
  .em-side { border-left: 0; border-top: 1px solid var(--ch-line); }
  .ap-hero-layout { grid-template-columns: 1fr; }
  .ap-hero-side { display: none; }
  .ap-phone { width: min(100%, 320px); }
  .em-summary, .hc-usage div { grid-template-columns: 1fr; }
  .ch-page .voice-core-heading h2 { font-size: clamp(28px, 7.6vw, 40px); line-height: 1.15; }
}
