/* ==========================================================================
   爱莱客 · 企业 AI 营销中枢 —— 官网样式
   与 Windows 客户端同一套品牌色：深墨蓝 #141826 + 琥珀珊瑚 #E8B44A → #D97F4E
   三态色沿用产品语义：在线 #5CC99B / 排队 #3B82F6 / 告警 #E8743B
   无外部依赖（字体走系统栈，不引 CDN），保证内网与弱网也能完整渲染。
   ========================================================================== */

:root {
  --ink: #141826;
  --ink-2: #1b2030;
  --ink-3: #232941;
  --amber: #E8B44A;
  --coral: #D97F4E;
  --brand-grad: linear-gradient(135deg, #E8B44A 0%, #D97F4E 100%);
  --online: #5CC99B;
  --queue: #3B82F6;
  --alert: #E8743B;

  --bg: #F7F8FB;
  --paper: #FFFFFF;
  --line: #E7EAF1;
  --line-strong: #D8DDE8;
  --text: #1A2233;
  --text-2: #566072;
  --text-3: #8B95A7;
  --text-inv: #F2F4F8;
  --text-inv-2: #A9B2C6;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(20, 24, 38, .06);
  --shadow: 0 12px 32px rgba(20, 24, 38, .10);
  --shadow-lg: 0 24px 64px rgba(20, 24, 38, .16);
  --max: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: .2px; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ============================ 顶部导航 ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 24, 38, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nav-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--brand-grad);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .3px; }
.brand-sub { color: var(--text-inv-2); font-size: 10.5px; letter-spacing: 1.2px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text-inv-2);
  font-size: 13.5px;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-link.active { color: #fff; font-weight: 600; }
.nav-link.active::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--brand-grad);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(217, 127, 78, .3);
  transition: filter .16s var(--ease), transform .16s var(--ease);
}
.nav-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  width: 36px; height: 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

/* ============================ 首屏 ============================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 10% -10%, rgba(232, 180, 74, .18), transparent 62%),
    radial-gradient(760px 420px at 92% 8%, rgba(217, 127, 78, .16), transparent 60%),
    var(--ink);
  color: var(--text-inv);
  padding: 72px 0 84px;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 27px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 180, 74, .34);
  background: rgba(232, 180, 74, .1);
  color: #F0CB86;
  font-size: 12px;
  letter-spacing: .3px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.hero h1 {
  margin-top: 20px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.26;
}
.hero h1 em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 18px;
  max-width: 520px;
  color: var(--text-inv-2);
  font-size: 15.5px;
  line-height: 1.85;
}
.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 127, 78, .32);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-line {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-line:hover { border-color: #C2CAD9; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13px; border-radius: 8px; }

.hero-facts {
  margin-top: 34px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.fact-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}
.fact-label { font-size: 12px; color: var(--text-inv-2); margin-top: 2px; }

/* ---- 首屏右侧：用 CSS 画的客户端窗口（不用截图，避免"演示账号"露脸） ---- */
.demo {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, #20263A, #171B2B);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.demo:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.demo-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.demo-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.demo-bar span {
  margin-left: 8px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .3px;
}
.demo-body { display: grid; grid-template-columns: 92px 1fr; min-height: 320px; }
.demo-side {
  padding: 12px 10px;
  background: #10131F;
  border-right: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.demo-side .l {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
}
.demo-side .l.on { background: linear-gradient(90deg, rgba(232, 180, 74, .55), rgba(232, 180, 74, .12)); }
.demo-main { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.demo-row { display: flex; gap: 10px; }
.demo-card {
  flex: 1;
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  padding: 10px;
}
.demo-card .t { height: 7px; width: 46%; border-radius: 4px; background: rgba(255, 255, 255, .26); }
.demo-card .v {
  margin-top: 8px;
  height: 15px;
  width: 62%;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(232, 180, 74, .85), rgba(217, 127, 78, .55));
}
.demo-card .s { margin-top: 8px; height: 6px; width: 74%; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.demo-list { display: flex; flex-direction: column; gap: 7px; }
.demo-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
}
.demo-item .p { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.p.online { background: var(--online); }
.p.queue { background: var(--queue); }
.p.alert { background: var(--alert); }
.demo-item .b { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .17); }

/* ============================ 通用区块 ============================ */
.section { padding: 74px 0; }
.section.tight { padding: 56px 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--text-inv); }
.section-head { max-width: 700px; margin-bottom: 38px; }
.section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--coral);
  text-transform: uppercase;
}
.section-ink .section-kicker { color: var(--amber); }
.section-title {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .4px;
}
.section-desc {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.85;
}
.section-ink .section-desc { color: var(--text-inv-2); }

.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: linear-gradient(135deg, rgba(232, 180, 74, .16), rgba(217, 127, 78, .12));
  color: #B0682F;
  margin-bottom: 14px;
}
/* 图标已换成 AI 生成的位图（自带琥珀渐变底），这里只负责圆角裁切与缩放：
   背景与字色保留给还没换的页面兜底，不删。 */
.card-icon > img {
  width: 100%; height: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}
.card h3 { font-size: 15.5px; font-weight: 700; }
.card p { margin-top: 8px; color: var(--text-2); font-size: 13.5px; line-height: 1.8; }
.card-tags { margin-top: 13px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  height: 21px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 21px;
  background: var(--bg);
  color: var(--text-3);
  border: 1px solid var(--line);
}
.tag.amber { background: rgba(232, 180, 74, .13); color: #9A6A1E; border-color: rgba(232, 180, 74, .28); }
.tag.green { background: rgba(92, 201, 155, .14); color: #2F8A63; border-color: rgba(92, 201, 155, .3); }
.tag.blue { background: rgba(59, 130, 246, .1); color: #2C62C9; border-color: rgba(59, 130, 246, .24); }

/* ============================ 功能页 ============================ */
.feature-group { margin-bottom: 46px; }
.fg-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.fg-title { font-size: 19px; font-weight: 800; }
.fg-sub { font-size: 12.5px; color: var(--text-3); }
.fg-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.f-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.f-item {
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.f-item:hover { border-color: var(--line-strong); }
.f-bullet {
  width: 6px;
  border-radius: 3px;
  background: var(--brand-grad);
  flex-shrink: 0;
}
.f-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-desc { margin-top: 5px; font-size: 12.8px; color: var(--text-2); line-height: 1.75; }

/* ============================ 下载页 ============================ */
.dl-hero { padding: 56px 0 30px; }

/* 未签名安装包提示：Windows 首次运行必弹 SmartScreen，不提前讲清楚，
   用户到那块蓝屏就放弃安装了。放页面最上面，下载按钮之前。 */
.dl-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: rgba(232, 180, 74, .07);
  border: 1px solid rgba(232, 180, 74, .30);
  border-left: 3px solid var(--amber);
}
.dl-notice-ico {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(232, 180, 74, .20);
  color: #8A5F1C;
  font-size: 13px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}
.dl-notice-body { min-width: 0; }
.dl-notice-t { font-size: 14px; font-weight: 700; color: #7A5314; line-height: 1.5; }
.dl-notice-d { margin-top: 5px; font-size: 12.9px; color: #8A5F1C; line-height: 1.85; }
.dl-steps { margin-top: 11px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dl-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(232, 180, 74, .40);
  font-size: 12.5px;
  font-weight: 600;
  color: #7A5314;
}
.dl-step b { font-size: 11px; font-weight: 800; color: #A97822; }
.dl-step-arrow { font-size: 13px; color: #C9A25E; }
.dl-notice-more { margin-top: 10px; font-size: 12px; color: #9A7233; line-height: 1.75; }
.dl-note { margin-top: 10px; font-size: 12px; color: var(--text-3); line-height: 1.7; }

.dl-current {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: stretch;
}
.dl-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.dl-ver-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-ver { font-size: 30px; font-weight: 800; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.badge-latest {
  height: 22px;
  padding: 0 9px;
  border-radius: 5px;
  background: rgba(92, 201, 155, .14);
  color: #2F8A63;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 22px;
}
.dl-meta { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.dl-meta .k { font-size: 11.5px; color: var(--text-3); }
.dl-meta .v { font-size: 13px; color: var(--text); font-weight: 600; word-break: break-all; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.dl-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.dl-side {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text-inv);
}
.dl-side h4 { font-size: 14px; font-weight: 700; color: #fff; }
.dl-side ul { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.dl-side li {
  position: relative;
  padding-left: 18px;
  font-size: 12.8px;
  color: var(--text-inv-2);
  line-height: 1.7;
}
.dl-side li::before {
  content: '';
  position: absolute;
  left: 2px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

/* 版本时间线 */
.release-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search {
  flex: 1;
  min-width: 200px;
  height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.search:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232, 180, 74, .18); }

.releases { display: flex; flex-direction: column; gap: 12px; }
.rel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.rel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  user-select: none;
}
.rel-head:hover { background: #FAFBFD; }
.rel-v {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 58px;
}
.rel-date { font-size: 12px; color: var(--text-3); min-width: 84px; font-variant-numeric: tabular-nums; }
.rel-sum { flex: 1; font-size: 13.5px; color: var(--text-2); }
.rel-caret {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  transition: transform .2s var(--ease), background .16s var(--ease);
}
.rel.open .rel-caret { transform: rotate(90deg); background: var(--bg); }
.rel-body { display: none; padding: 0 18px 18px; border-top: 1px solid var(--line); }
.rel.open .rel-body { display: block; }
.rel-sec { margin-top: 14px; }
.rel-sec h5 {
  margin: 0 0 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .3px;
}
.rel-sec ul { display: flex; flex-direction: column; gap: 6px; }
.rel-sec li {
  position: relative;
  padding-left: 15px;
  font-size: 12.8px;
  color: var(--text-2);
  line-height: 1.75;
}
.rel-sec li::before {
  content: '';
  position: absolute;
  left: 3px; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--coral);
  opacity: .7;
}
.rel-mods { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
.rel-mods th, .rel-mods td {
  border: 1px solid var(--line);
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
}
.rel-mods th { background: #F8FAFC; font-weight: 700; font-size: 12px; color: var(--text-2); }
.rel-mods td:first-child { width: 40px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rel-mods td:nth-child(2) { width: 120px; font-weight: 600; }

/* ============================ 上手页 ============================ */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-bottom: 30px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 46px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.step:last-child::before { display: none; }
.step-n {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 8px 20px rgba(217, 127, 78, .26);
  z-index: 1;
}
.step-body h3 { font-size: 16px; font-weight: 700; }
.step-body p { margin-top: 8px; color: var(--text-2); font-size: 13.5px; line-height: 1.85; }
.tip {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(232, 180, 74, .09);
  border: 1px solid rgba(232, 180, 74, .24);
  font-size: 12.8px;
  color: #8A5F1C;
  line-height: 1.8;
}
.tip.warn {
  background: rgba(232, 116, 59, .08);
  border-color: rgba(232, 116, 59, .24);
  color: #A9491C;
}

/* ============================ 法务页 ============================ */
.legal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 44px;
  max-width: 860px;
  margin: 0 auto;
}
.legal-head { padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: 24px; font-weight: 800; }
.legal-meta { margin-top: 8px; font-size: 12px; color: var(--text-3); display: flex; gap: 14px; flex-wrap: wrap; }
.md { font-size: 14px; line-height: 1.95; color: var(--text-2); }
.md h2 { margin: 26px 0 10px; font-size: 16.5px; font-weight: 800; color: var(--text); }
.md h3 { margin: 20px 0 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.md h4 { margin: 16px 0 6px; font-size: 14px; font-weight: 700; color: var(--text); }
.md p { margin: 0 0 11px; }
.md ul, .md ol { margin: 0 0 12px; padding-left: 22px; list-style: disc; }
.md ol { list-style: decimal; }
.md li { margin-bottom: 5px; }
.md blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--line-strong);
  background: #F8FAFC;
  color: var(--text-2);
}
.md table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.md th { background: #F8FAFC; }
.md code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.md strong { color: var(--text); }
.legal-loading { padding: 60px 0; text-align: center; color: var(--text-3); font-size: 13.5px; }

/* ============================ CTA / 页脚 ============================ */
.cta {
  background:
    radial-gradient(700px 320px at 15% 120%, rgba(232, 180, 74, .2), transparent 62%),
    var(--ink);
  color: var(--text-inv);
  padding: 62px 0;
  text-align: center;
}
.cta h2 { font-size: 28px; font-weight: 800; }
.cta p { margin-top: 12px; color: var(--text-inv-2); font-size: 14.5px; }
.cta-actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.footer {
  background: #10131F;
  color: var(--text-inv-2);
  padding: 46px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.footer h4 { font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: .4px; margin-bottom: 12px; }
.footer li { margin-bottom: 8px; font-size: 12.8px; }
.footer a:hover { color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 12.5px; line-height: 1.8; max-width: 280px; }
.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, .38);
}

/* ============================ 响应式 ============================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .demo { transform: none; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .dl-current { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .f-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 48px 0 62px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 52px 0; }
  .section-title { font-size: 23px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .legal { padding: 26px 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(20, 24, 38, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta { display: none; }
  .dl-meta { grid-template-columns: 1fr; }
  .rel-head { flex-wrap: wrap; gap: 6px 12px; }
  .rel-sum { flex-basis: 100%; }
}

/* ==========================================================================
   二期：功能页 / 三端专题 / 首页（2026-11-05）
   新增组件：截图框、分组大卡、步骤条、规格表、场景卡、数据条
   ========================================================================== */

/* ---------- 面包屑 + 内页头 ---------- */
.crumb {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-3);
  padding: 18px 0 0;
}
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--text); }
.crumb i { font-style: normal; opacity: .5; }

.pg-head { padding: 26px 0 34px; }
.pg-head h1 {
  font-size: 34px; line-height: 1.25; font-weight: 800; letter-spacing: -.4px;
  max-width: 860px;
}
.pg-head .pg-sub {
  margin-top: 14px; max-width: 720px;
  font-size: 15px; line-height: 1.85; color: var(--text-2);
}
.pg-head .pg-tags { margin-top: 16px; display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------- 截图框 ---------- */
.shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 24, 38, .10);
}
.shot img { display: block; width: 100%; height: auto; }
.shot-cap {
  margin-top: 11px;
  font-size: 12.5px; line-height: 1.85; color: var(--text-3);
  padding-left: 11px; border-left: 2px solid var(--line-strong);
}
.shot-cap b { color: var(--text-2); font-weight: 600; }
.shot-note {
  font-size: 11.5px; color: var(--text-3);
  background: rgba(20, 24, 38, .04);
  border-radius: 6px; padding: 2px 7px;
  display: inline-block; margin-bottom: 8px;
}

/* ---------- 分组 ---------- */
.grp { padding: 8px 0 12px; }
.grp-head {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.grp-no {
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  color: var(--amber); font-variant-numeric: tabular-nums;
  padding-bottom: 3px;
}
.grp-name { font-size: 23px; font-weight: 800; letter-spacing: -.2px; }
.grp-sub { font-size: 12.5px; color: var(--text-3); padding-bottom: 4px; }
.grp-count {
  margin-left: auto; font-size: 11.5px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 3px 11px; padding-bottom: 3px;
}
.grp-desc {
  margin: -12px 0 20px; max-width: 760px;
  font-size: 13.5px; line-height: 1.85; color: var(--text-2);
}

/* ---------- 主功能（大图 + 说明） ---------- */
/* 图上文字要能看清，所以主图吃满 1160 容器；说明放到图下面两栏，不再和图抢宽 */
.lead { display: flex; flex-direction: column; gap: 15px; margin-bottom: 26px; }
.lead-row { display: grid; grid-template-columns: 1.12fr .88fr; gap: 34px; align-items: start; }
.lead-row .lead-main { display: flex; flex-direction: column; gap: 12px; }
.lead-row .lead-side { display: flex; flex-direction: column; gap: 14px; }
.lead-body { display: flex; flex-direction: column; gap: 14px; }
.lead-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px; color: var(--amber);
}
.lead-body h3 { font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.lead-row h3 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.lead-body .lead-one { font-size: 13.5px; line-height: 1.85; color: var(--text-2); }
.lead-row .lead-one { font-size: 13.5px; line-height: 1.85; color: var(--text-2); }
.steps.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }

/* ---------- 步骤条 ---------- */
.steps { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 0; }
.step { display: flex; gap: 10px; align-items: flex-start; }
.step-n {
  flex-shrink: 0; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(20, 24, 38, .06); color: var(--text-2);
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
  margin-top: 2px;
}
.step-t { font-size: 13px; line-height: 1.75; color: var(--text-2); }

/* ---------- 产出 / 规格 ---------- */
.outs { display: flex; flex-direction: column; gap: 7px; }
.out { position: relative; padding-left: 16px; font-size: 12.8px; line-height: 1.75; color: var(--text-2); }
.out::before {
  content: ''; position: absolute; left: 3px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--amber);
}
.sub-h {
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--text-3); text-transform: uppercase;
}

.specs {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.spec-row { display: flex; gap: 10px; align-items: baseline; }
.spec-k { flex-shrink: 0; width: 74px; font-size: 12px; color: var(--text-3); }
.spec-v { font-size: 12.8px; line-height: 1.7; color: var(--text); }
.spec-note {
  margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 12px; line-height: 1.75; color: var(--text-3);
}

/* ---------- 功能小卡 ---------- */
.fcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fcard {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 18px 16px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
a.fcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.fcard-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.fcard-name { font-size: 15px; font-weight: 700; }
.fcard-p { font-size: 12.8px; line-height: 1.8; color: var(--text-2); }
.fcard-more { margin-top: auto; font-size: 12.5px; font-weight: 600; color: #9A6A1E; padding-top: 4px; }
a.fcard:hover .fcard-more { text-decoration: underline; }
/* 组内卡片数为奇数时，最后一张横过来占满一行，避免右边空半个格子 */
.fcards > .fcard:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 18px;
}
.fcards > .fcard:last-child:nth-child(odd) .fcard-top { flex-wrap: nowrap; }
.fcards > .fcard:last-child:nth-child(odd) .fcard-p { margin: 0; }
.fcards > .fcard:last-child:nth-child(odd) .fcard-more { margin: 0; padding-top: 0; white-space: nowrap; }

/* ---------- 流程小条 ---------- */
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flow span {
  font-size: 11.5px; color: var(--text-2);
  background: rgba(20, 24, 38, .045); border-radius: 5px;
  padding: 3px 7px; line-height: 1.5;
}
.flow i { font-style: normal; color: var(--text-3); font-size: 11px; }

/* ---------- 三端 ---------- */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tri-card {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
a.tri-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tri-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px;
  color: #9A6A1E;
}
.tri-card h3 { font-size: 18px; font-weight: 800; }
.tri-card p { font-size: 12.8px; line-height: 1.8; color: var(--text-2); }
.tri-card ul { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.tri-card li { position: relative; padding-left: 15px; font-size: 12.3px; line-height: 1.7; color: var(--text-2); }
.tri-card li::before {
  content: ''; position: absolute; left: 2px; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong);
}
.tri-more { margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 600; color: #9A6A1E; }
.tri-card.ink { background: var(--ink); border-color: transparent; }
.tri-card.ink h3 { color: #fff; }
.tri-card.ink p, .tri-card.ink li { color: var(--text-inv-2); }
.tri-card.ink li::before { background: rgba(255, 255, 255, .28); }
.tri-card.ink .tri-tag { color: var(--amber); }
.tri-card.ink .tri-more { color: var(--amber); }

/* ---------- 场景 ---------- */
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.scene {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.scene-art { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.scene-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; }
.scene-body h3 { font-size: 15.5px; font-weight: 700; }
.scene-pain { font-size: 12.5px; line-height: 1.8; color: var(--text-3); }
.scene-body p { font-size: 12.8px; line-height: 1.8; color: var(--text-2); }

/* ---------- 数据条 ---------- */
.databar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255, 255, 255, .08);
  border-radius: var(--radius); overflow: hidden;
}
.databar .cell { background: var(--ink); padding: 24px 20px; }
.databar .num {
  font-size: 27px; font-weight: 800; color: #fff;
  letter-spacing: -.5px; font-variant-numeric: tabular-nums;
}
.databar .num em { font-style: normal; font-size: 14px; color: var(--amber); margin-left: 3px; }
.databar .lbl { margin-top: 5px; font-size: 12px; color: var(--text-inv-2); line-height: 1.6; }

/* ---------- 硬件规格表 ---------- */
.kv { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.kv-row { display: grid; grid-template-columns: 130px 1fr; }
.kv-row + .kv-row { border-top: 1px solid var(--line); }
.kv-row > div { padding: 12px 16px; font-size: 13px; line-height: 1.7; }
.kv-row > div:first-child { background: rgba(20, 24, 38, .025); color: var(--text-3); font-size: 12.5px; }
.kv-row > div:last-child { color: var(--text); }

/* ---------- 图注 / 示意图 ---------- */
.diagram {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.diagram svg { display: block; width: 100%; height: auto; }
.art-note { margin-top: 10px; font-size: 11.5px; color: var(--text-3); }

/* ---------- 提示条 ---------- */
.callout {
  display: flex; gap: 11px;
  background: rgba(232, 180, 74, .08);
  border: 1px solid rgba(232, 180, 74, .26);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 12.8px; line-height: 1.8; color: #6E4E14;
}
.callout b { font-weight: 700; }
.callout.dark {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  color: var(--text-inv-2);
}

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; font-size: 12.8px; line-height: 1.7; border-bottom: 1px solid var(--line); }
.tbl th { background: rgba(20, 24, 38, .03); font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.tbl td { color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------- 响应式（二期组件） ---------- */
@media (max-width: 980px) {
  .lead-row { grid-template-columns: 1fr; gap: 20px; }
  .steps.cols { grid-template-columns: 1fr; }
  .tri { grid-template-columns: 1fr; }
  .databar { grid-template-columns: repeat(2, 1fr); }
  .scenes { grid-template-columns: 1fr; }
  .fcards { grid-template-columns: 1fr; }
  .pg-head h1 { font-size: 28px; }
}
@media (max-width: 720px) {
  .grp-name { font-size: 20px; }
  .kv-row { grid-template-columns: 96px 1fr; }
  .kv-row > div { padding: 11px 13px; }
  .databar .cell { padding: 18px 16px; }
  .databar .num { font-size: 22px; }
  .pg-head h1 { font-size: 24px; }
  .crumb { padding-top: 12px; }
}

/* ==========================================================================
   二期补充：左右分栏、首屏真图、链路图容器
   ========================================================================== */

/* 左右图文（图左文右，.rev 反转） */
.split { display: grid; grid-template-columns: 1.12fr .88fr; gap: 36px; align-items: center; }
.split.rev { grid-template-columns: .88fr 1.12fr; }
.split-body { display: flex; flex-direction: column; gap: 11px; }
.split-body h3 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.split-body p { font-size: 13.5px; line-height: 1.85; color: var(--text-2); }
.split-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; color: var(--amber); }

/* 首屏：真实截图浮在氛围图上 */
.hero.hero--art {
  background-image: url("/static/art/hero-ambient.webp");
  background-size: cover;
  background-position: center right;
  background-color: var(--ink);
}
.hero.hero--art::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(20, 24, 38, .97) 0%, rgba(20, 24, 38, .93) 38%, rgba(20, 24, 38, .58) 72%, rgba(20, 24, 38, .34) 100%);
  pointer-events: none;
}
.hero.hero--art > .wrap { position: relative; z-index: 1; }
.hero-shot {
  position: relative;
  width: 124%;   /* 向右出血：截图放大到读出界面结构，超出部分由 .hero 的 overflow:hidden 裁掉 */
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(232, 180, 74, .08);
  transform: perspective(1600px) rotateY(-4.5deg) rotateX(1.2deg);
  transition: transform .5s var(--ease);
}
.hero-shot:hover { transform: perspective(1600px) rotateY(-1.5deg) rotateX(0); }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot-cap {
  margin-top: 13px; text-align: right;
  font-size: 11.5px; color: rgba(255, 255, 255, .42);
}
/* 首屏截图底部的浅色渐隐，让图与深色底过渡自然 */
.hero-shot::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: linear-gradient(180deg, transparent, rgba(20, 24, 38, .22));
  pointer-events: none;
}

/* 流程条（横向链路） */
.chain { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.chain-node {
  flex: 1 1 150px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 15px;
}
.chain-node .k { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--amber); }
.chain-node h4 { margin-top: 6px; font-size: 14px; font-weight: 700; }
.chain-node p { margin-top: 5px; font-size: 12px; line-height: 1.7; color: var(--text-3); }
.chain-arrow { display: grid; place-items: center; color: var(--line-strong); font-size: 16px; }

/* 段落小标题（带序号） */
.h3n { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.h3n span:first-child { font-size: 11px; font-weight: 800; color: var(--amber); letter-spacing: 1.2px; }
.h3n h3 { font-size: 19px; font-weight: 800; }

@media (max-width: 980px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 22px; }
  .chain { flex-direction: column; }
  .chain-arrow { transform: rotate(90deg); }
  .hero-shot { transform: none; width: 100%; }
}

/* ==========================================================================
   AI 客服浮窗（2026-11-23）
   由 /static/widget.js 注入，本站 10 个手写页 + features/34 功能详情页共用。
   配色沿用品牌：深墨蓝面板头 + 琥珀→珊瑚渐变头像；正文严格留白，
   因为访客在这里读的是「能不能解决我的问题」，不是看设计。
   ========================================================================== */
.opcw { position: fixed; right: 22px; bottom: 22px; z-index: 9000; font-size: 14px; }

/* ---- 入口按钮 ---- */
.opcw-launcher {
  position: relative;
  width: 56px; height: 56px;
  border: 0; border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(217, 127, 78, .38), inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.opcw-launcher:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 32px rgba(217, 127, 78, .46), inset 0 0 0 1px rgba(255, 255, 255, .24); }
.opcw-launcher:active { transform: translateY(0) scale(.98); }
.opcw-mark { width: 26px; height: 26px; display: block; }

/* 新消息小红点（当前只用于「还没说过话」的第一眼提示，不用数字，避免假未读） */
.opcw-badge {
  position: absolute; top: 3px; right: 3px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--alert);
  border: 2px solid #fff;
}

.opcw-tip {
  position: absolute;
  right: 66px; bottom: 14px;
  padding: 7px 12px;
  background: var(--ink);
  color: var(--text-inv);
  font-size: 12.5px; line-height: 1;
  white-space: nowrap;
  border-radius: 8px;
  opacity: 0; transform: translateX(6px);
  pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.opcw-tip::after {
  content: ''; position: absolute; right: -5px; top: 50%; margin-top: -5px;
  border: 5px solid transparent; border-left-color: var(--ink); border-right: 0;
}
.opcw-tip.is-on { opacity: 1; transform: translateX(0); }

/* ---- 面板 ---- */
/*
 * position: fixed + 由 widget-core.js 算出的 left/top/width/height。
 * 不再写死 right/bottom —— 那样面板只能待在右下角，拖不走。
 * 默认位置由 defaultBox() 算成右下角，所以第一眼与改造前一致。
 */
.opcw-panel {
  position: fixed;
  z-index: 10001;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(10px) scale(.98);
  pointer-events: none;
  transform-origin: center;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

/* 右下角的可拉伸提示：没有它没人知道这儿能拉 */
.opcw-panel .opc-widget-resize[data-opc-edge='se']::after {
  content: '';
  position: absolute;
  right: 3px; bottom: 3px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  border-bottom-right-radius: 2px;
  opacity: .7;
}

/* ---- 主动邀约气泡 ---- */
.opcw-invite {
  position: absolute;
  right: 0; bottom: 76px;
  width: 268px;
  padding: 11px 30px 11px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  animation: opcw-pop .26s var(--ease);
}
.opcw-invite[hidden] { display: none; }
.opcw-invite::after {
  content: '';
  position: absolute;
  right: 18px; bottom: -6px;
  width: 11px; height: 11px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.opcw-invite p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink);
}
.opcw-invite-x {
  position: absolute;
  top: 5px; right: 5px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border: 0; border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}
.opcw-invite-x:hover { background: var(--bg); color: var(--ink); }
@keyframes opcw-pop {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.opcw.is-open .opcw-panel { opacity: 1; transform: none; pointer-events: auto; }

/* 头部 */
.opcw-head {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  background: var(--ink);
  color: var(--text-inv);
  /* 整条头部都是拖动把手（双击复位）；按钮由核心的 NO_DRAG_SELECTOR 排除 */
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.opcw-head:active { cursor: grabbing; }
.opcw-ava {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  background: var(--brand-grad);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.opcw-ava svg { width: 20px; height: 20px; }
.opcw-hmid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.opcw-hname { font-size: 13.5px; font-weight: 700; letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opcw-hsub { font-style: normal; font-size: 11px; color: var(--text-inv-2); display: flex; align-items: center; gap: 5px; }
.opcw-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px rgba(92, 201, 155, .18); }
.opcw-x {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 7px;
  background: rgba(255, 255, 255, .08); color: var(--text-inv-2);
  display: grid; place-items: center; cursor: pointer;
}
.opcw-x:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* 消息区 */
.opcw-body { flex: 1; min-height: 0; position: relative; overflow-y: auto; background: var(--bg); }
.opcw-list { padding: 14px 13px 16px; display: flex; flex-direction: column; gap: 9px; }

.opcw-row { display: flex; }
/* 人工坐席标签：转人工后必须让访客看出「对面换成人了」 */
.opcw-who {
  order: 2;
  align-self: flex-end;
  margin: 0 0 2px 2px;
  font-size: 10.5px;
  line-height: 1;
  color: var(--text-3);
}
.opcw-row.opcw-me { justify-content: flex-end; }
.opcw-b {
  max-width: 82%;
  padding: 9px 12px;
  font-size: 13px; line-height: 1.72;
  border-radius: 12px;
  word-break: break-word;
  white-space: normal;
}
.opcw-ai .opcw-b { background: var(--paper); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.opcw-me .opcw-b { background: var(--brand-grad); color: #fff; border-bottom-right-radius: 4px; }
.opcw-sys { justify-content: center; }
.opcw-sys .opcw-b {
  max-width: 92%;
  background: transparent; color: var(--text-3);
  font-size: 11.5px; text-align: center; padding: 2px 0;
}

/* 打字中 */
.opcw-typing .opcw-b { display: flex; gap: 4px; align-items: center; padding: 13px 14px; }
.opcw-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-3);
  animation: opcw-bounce 1.1s infinite ease-in-out;
}
.opcw-typing span:nth-child(2) { animation-delay: .14s; }
.opcw-typing span:nth-child(3) { animation-delay: .28s; }
@keyframes opcw-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* 首次：问称呼 */
.opcw-intro {
  position: absolute; inset: 0;
  display: grid; place-items: start center;
  padding: 18px;
  background: var(--bg);
}

/* 🔴 必须显式写：作者样式的 display:grid 会盖过 HTML 的 hidden 属性，
   不加这一条 `introEl.hidden = true` 等于没写 —— 称呼卡片会一直压在对话上面。 */
.opcw-intro[hidden] { display: none; }
.opcw-intro-card {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  box-shadow: var(--shadow-sm);
}
.opcw-intro-card b { display: block; font-size: 14.5px; color: var(--text); }
.opcw-intro-card p { margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--text-3); }
.opcw-name-form { margin-top: 13px; display: flex; gap: 8px; }
.opcw-name-input {
  flex: 1; min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  font-size: 13px; font-family: inherit; color: var(--text);
  outline: none; background: var(--paper);
}
.opcw-name-input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232, 180, 74, .16); }
.opcw-name-form button {
  flex: none; padding: 0 15px; height: 38px;
  border: 0; border-radius: 9px;
  background: var(--brand-grad); color: #fff;
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer;
}
.opcw-name-form button:hover { filter: brightness(1.05); }
.opcw-skip {
  margin-top: 10px; padding: 0;
  border: 0; background: transparent;
  color: var(--text-3); font-size: 12px; font-family: inherit;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.opcw-skip:hover { color: var(--text-2); }

/* 断线重试 */
.opcw-retry { padding: 22px 18px; text-align: center; }
.opcw-retry[hidden] { display: none; }
.opcw-retry p { font-size: 12.5px; color: var(--text-3); }
.opcw-retry-btn {
  margin-top: 10px; height: 34px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--paper); color: var(--text-2);
  font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.opcw-retry-btn:hover { border-color: var(--amber); color: var(--text); }

/* 输入区 */
.opcw-composer {
  flex: none;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 11px 11px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.opcw-input {
  flex: 1; min-width: 0;
  max-height: 110px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 13px; line-height: 1.6; font-family: inherit; color: var(--text);
  resize: none; outline: none; background: var(--paper);
}
.opcw-input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232, 180, 74, .14); }
.opcw-input:disabled { background: var(--bg); color: var(--text-3); }
.opcw-send {
  flex: none; width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: opacity .16s;
}
.opcw-send:disabled { opacity: .38; cursor: not-allowed; }
.opcw-send:not(:disabled):hover { filter: brightness(1.06); }

/* ---- 输入区工具：表情 / 发图 ---- */
.opcw-composer { position: relative; }
.opcw-tools {
  flex: none;
  display: flex; align-items: center; gap: 1px;
  padding-bottom: 3px;
}
.opcw-tool {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; border-radius: 7px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: background .14s, color .14s;
}
.opcw-tool:hover { background: var(--bg); color: var(--ink); }
.opcw-tool.is-on { background: rgba(20, 24, 38, .08); color: var(--ink); }

/* ---- 表情面板 ---- */
.opcw-emoji {
  position: absolute;
  left: 8px; right: 8px;
  bottom: calc(100% + 6px);
  max-height: 196px;
  overflow-y: auto;
  padding: 8px 9px 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 6;
}
.opcw-emoji[hidden] { display: none; }
.opcw-emoji-grp { margin-bottom: 6px; }
.opcw-emoji-grp i {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 3px;
}
.opcw-emoji-row { display: flex; flex-wrap: wrap; gap: 2px; }
.opcw-emoji-row button {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; border-radius: 7px;
  background: transparent;
  font-size: 17px; line-height: 1;
  cursor: pointer;
}
.opcw-emoji-row button:hover { background: var(--bg); }

/* ---- 图片消息 ---- */
.opcw-b-img {
  padding: 4px !important;
  background: var(--bg) !important;
  border: 1px solid var(--line);
  line-height: 0;
}
.opcw-b-img img {
  display: block;
  max-width: 190px; max-height: 190px;
  border-radius: 8px;
  cursor: zoom-in;
}

/* 拖图投放区 */
.opcw-drop {
  position: absolute;
  inset: 8px;
  z-index: 8;
  display: grid; place-items: center;
  border: 2px dashed rgba(255, 138, 101, .9);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 12.5px; font-weight: 600;
  pointer-events: none;
}
.opcw-drop[hidden] { display: none; }

/* 小屏：贴边全屏，别让用户在手机上跟一个 380px 的框较劲 */
@media (max-width: 560px) {
  /* 小屏面板铺满全屏，必须压过 cookie 提示（9999）和站内搜索层（10000），
     否则底部输入框会被 cookie 条咬掉一块，人根本没法打字 */
  .opcw { right: 14px; bottom: 14px; z-index: 10001; }
  .opcw-panel {
    position: fixed;
    right: 0; bottom: 0; left: 0; top: 0;
    width: auto; height: auto; max-height: none;
    border-radius: 0; border: 0;
    transform-origin: bottom center;
  }
  .opcw-tip { display: none; }
  /* 手机上不弹邀约：全屏面板已经占满，气泡会盖住内容 */
  .opcw-invite { display: none; }
}

/* 气泡内的极简 Markdown（widget.js 的 md() 只会产出 strong / code / br） */
.opcw-b strong { font-weight: 700; }
.opcw-b code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(20, 24, 38, .07);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.opcw-me .opcw-b code { background: rgba(255, 255, 255, .22); }
.opcw-li {
  display: inline-block;
  width: 12px;
  color: var(--text-3);
  font-weight: 700;
}
