/* ============================================================
   内页公共组件（工作流 / 解决方案 / 工具箱 / RPA / 知识库 / 反馈）
   ============================================================ */

/* ---------- 紧凑 Hero ---------- */
.hero--compact .hero-inner { padding-top: 44px; padding-bottom: 48px; }
.hero--compact .hero-title { font-size: clamp(23px, 2.5vw, 33px); max-width: 26em; }
.hero--compact .hero-sub { margin-top: 13px; font-size: 13px; }
.hero--compact .hero-cta { margin-top: 20px; padding: 8px 16px; gap: 9px; }
.hero--compact .cta-text,
.hero--compact .cta-link { font-size: 12.5px; }

.page-body { padding: 44px 0 64px; }

/* ---------- 两栏布局：主栏 + 侧栏 ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 88px;
  align-items: start;
}

.shell-main { min-width: 0; }

/* ---------- 区块小标题 ---------- */
.group-head { margin-bottom: 20px; }
.group-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.group-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.group + .group { margin-top: 46px; }

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.side-search {
  position: relative;
  display: flex;
  align-items: center;
}
.side-search input {
  width: 100%;
  height: 40px;
  padding: 0 62px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.side-search input::placeholder { color: var(--muted-2); }
.side-search input:focus {
  outline: 0;
  border-color: #c3c7f2;
  box-shadow: 0 0 0 3px rgba(109, 92, 246, .1);
}
.side-search input::-webkit-search-cancel-button { display: none; }
.side-search .ss-acts {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.side-search .ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.side-search .ss-btn:hover { background: #f1f2f5; color: var(--ink); }
.side-search .ss-btn[hidden] { display: none; }
.side-search svg { width: 16px; height: 16px; }

.side-block-title {
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* 侧栏区块标题行：标题 + “更多”链接同一排（与首页 aside-head 对齐） */
.side-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.side-block-head .side-block-title { margin-bottom: 0; }

.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-list a,
.side-list button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 7px 10px 7px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition: color .16s var(--ease);
}
.side-list a:hover,
.side-list button:hover { color: var(--accent); }
.side-list .cnt {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.side-list .is-active { color: var(--accent); font-weight: 600; }

/* ---------- 常用 AI 工具（侧栏迷你卡） ---------- */
.mini-tools { display: flex; flex-direction: column; gap: 10px; }
.mini-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.mini-tool:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.mini-tool .mt-logo {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.mini-tool .mt-body { min-width: 0; flex: 1; }
.mini-tool .mt-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-tool .mt-desc { margin-top: 1px; font-size: 11.5px; color: var(--muted-2); }

/* ============================================================
   工作流卡片（横向整栏卡）
   ============================================================ */
.wf-list { display: flex; flex-direction: column; gap: 16px; }

.wf-card {
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.wf-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

.wf-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.wf-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.wf-tag.is-dark { background: #14181f; color: #fff; }
.wf-tag.is-blue { background: #56a8f5; color: #fff; }
.wf-tag.is-orange { background: #f2603c; color: #fff; }
.wf-tag.is-purple { background: #9a3cf2; color: #fff; }
.wf-tag.is-pick { background: #8c5cf6; color: #fff; }
.wf-tag.is-plain { background: #f3f4f6; color: var(--ink-soft); }

.wf-desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.wf-author {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- 图片 / 视频封面小卡网格 ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.tile-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef0f3;
}
.tile-media img,
.tile-media .tm-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-media .tm-art { position: absolute; inset: 0; }
.tile-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 18, .12);
}
.tile-play span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.tile-play svg { width: 14px; height: 14px; margin-left: 2px; fill: #1b2233; }
.tile-body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; }
.tile-name { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.tile-desc {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-2);
}
.tile-btn {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 7px;
  background: #14181f;
  color: #fff;
  font-size: 12.5px;
  transition: background .18s var(--ease);
}
.tile-btn:hover { background: #2b3240; }

/* 渐变色占位封面（无素材时使用） */
.art-a { background: linear-gradient(150deg, #f0e3d4, #cbb8a0 55%, #8f7a63); }
.art-b { background: linear-gradient(160deg, #7b1d1d, #b8352f 55%, #e0674a); }
.art-c { background: linear-gradient(150deg, #f2e14a, #4ec5e8 55%, #2f7fce); }
.art-d { background: linear-gradient(160deg, #1b2436, #38506b 60%, #7f97b3); }
.art-e { background: linear-gradient(155deg, #2a2f3a, #5e6b7d 55%, #b9c4d2); }
.art-f { background: linear-gradient(150deg, #3b2a1e, #8a5a34 55%, #d9a15e); }
.art-g { background: linear-gradient(150deg, #0f2c3f, #1e6b7d 55%, #4fb8b0); }
.art-h { background: radial-gradient(circle at 30% 25%, #2b3f6b, #101828 70%); }

/* ============================================================
   解决方案（图文 + 黑标题条卡片）
   ============================================================ */
.sol-lead {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 8px 0 6px;
}
.sol-lead.is-flip { grid-template-columns: minmax(0, 1fr) 400px; }
.sol-lead.is-flip .sol-lead-media { order: 2; }
.sol-lead-media {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: #eef0f3;
}
.sol-lead-media .tm-art { width: 100%; height: 100%; }
.sol-lead h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.015em;
}
.sol-lead p {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.sol-title {
  margin: 52px 0 26px;
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -.01em;
}

.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.sol-card {
  padding: 16px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.sol-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.sol-card h4 {
  margin: 0 0 14px;
  padding: 9px 10px;
  border-radius: 4px;
  background: #14181f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .02em;
}
.sol-card .sol-sub {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}
.sol-card p {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
}
.sol-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sol-card li {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}
.sol-card li::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  margin-top: 9px;
  border-radius: 50%;
  background: #c3c9d4;
}

/* ============================================================
   工具箱：左侧垂直分类 + 工具行卡
   ============================================================ */
.tool-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.tool-nav {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.tool-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.tool-nav button:hover { background: #f5f6f8; }
.tool-nav button .tn-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.tool-nav button .tn-ico svg { width: 18px; height: 18px; }
.tool-nav button .tn-more { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.tool-nav button.is-active { background: #14181f; color: #fff; font-weight: 600; }
.tool-nav button.is-active .tn-ico { color: #fff; }

.tool-main { min-width: 0; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
/* 工具箱 4 列卡片（scoped 到 .tool-grid，避免覆盖首页/侧栏 .tool-list .tool-card 的同名样式） */
.tool-grid .tool-card {
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tool-grid .tool-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.tool-grid .tool-card[hidden] { display: none; }
/* 工具箱 4 列紧凑卡（scoped，不影响首页 .tool-list 内同名卡片） */
.tool-grid .tool-card { display: block; padding: 15px 16px 17px; }
.tool-grid .tool-card[hidden] { display: none; }
.tool-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tool-grid .tool-head { gap: 9px; margin-bottom: 10px; }
.tool-grid .tool-logo {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tool-grid .tool-logo { flex-basis: 30px; width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.tool-grid .tool-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: inherit; }
.tool-grid .tool-name { font-size: 14.5px; font-weight: 600; }
.tool-grid .tool-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-detail {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 6px;
  background: #2b3240;
  color: #fff;
  font-size: 12px;
  transition: background .18s var(--ease);
}
.tool-grid .tool-detail { flex: 0 0 auto; padding: 4px 10px; }
.tool-detail:hover { background: #0f1319; }
.tool-grid .tool-desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}
.tool-grid .tool-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 当前分类深色标签（Coze 风格） */
.tb-cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 9px;
  background: #14181f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   RPA 市场：案例视频 + 筛选 + 应用卡
   ============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.case-grid .tile-media { aspect-ratio: 16 / 10; }
.case-note {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--muted);
}

.market-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 40px 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; align-items: center; gap: 22px; }
.tab {
  position: relative;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: color .16s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 600; }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.market-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.select-sm {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.select-sm select {
  height: 34px;
  padding: 0 32px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  appearance: none;
}
.select-sm select:focus { outline: 0; border-color: #c3c7f2; }
.select-sm .chev-ico {
  position: absolute;
  right: 10px;
  width: 12px;
  height: 12px;
  color: var(--muted);
  pointer-events: none;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.app-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.app-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.app-card[hidden] { display: none; }
.app-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.app-logo {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  background: #f2f3f5;
}
.app-title { font-size: 14px; font-weight: 600; line-height: 1.5; }
.app-dev { margin-top: 4px; font-size: 11.5px; color: var(--muted-2); }
.app-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.app-tag {
  padding: 3px 10px;
  border-radius: 5px;
  background: #2b3240;
  color: #fff;
  font-size: 11px;
}
.app-tag.is-soft { background: #4b5a75; }
.app-desc {
  margin: 14px 0 18px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}
.app-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 7px;
  background: #14181f;
  color: #fff;
  font-size: 13px;
  transition: background .18s var(--ease);
}
.app-btn:hover { background: #2b3240; }

/* ============================================================
   知识库：图文交替 + 教程行卡
   ============================================================ */
.kb-intro {
  font-size: 13.5px;
  line-height: 2;
  color: var(--muted);
  max-width: 76em;
}
.kb-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 44px;
  align-items: center;
  margin-top: 46px;
}
.kb-item.is-flip .kb-shot { order: -1; }
.kb-shot {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background-color: #f7f8fa;
  display: grid;
  place-items: center;
}
.kb-text p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--muted);
}
.kb-text p:first-child { margin-top: 0; }

.kb-list { display: flex; flex-direction: column; gap: 14px; }
.kb-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.kb-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.kb-row.is-linked { cursor: pointer; }
.kb-row.is-linked:hover { border-color: #6d3ff2; box-shadow: var(--shadow-md); }
.kb-row.is-linked .kb-row-title a { color: inherit; text-decoration: none; transition: color .15s var(--ease); }
.kb-row.is-linked .kb-row-title a:hover { color: #6d3ff2; }
.kb-row.is-linked:hover .kb-row-logo { transform: translateY(-1px); }
.kb-row-logo { transition: transform .2s var(--ease); }
.kb-row-logo {
  flex: 0 0 92px;
  width: 92px;
  height: 62px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f4f5f7;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.kb-row-title { font-size: 14px; font-weight: 600; line-height: 1.55; }
.kb-row-desc {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
}

.integration-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.integration-chips a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #fff;
  background: #2b3240;
}
.integration-chips a:nth-child(2) { background: #7a44d6; }
.integration-chips a:nth-child(3) { background: #e2593f; }

/* ============================================================
   表单（需求反馈）
   ============================================================ */
.form-wrap { max-width: 1120px; }

/* 需求定制 / 意见反馈 切换按钮 */
.form-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #eef0f4;
  margin-bottom: 34px;
}

.form-tab {
  height: 38px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft, #5c6470);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.form-tab:hover { color: var(--ink, #17191c); }

.form-tab.is-active {
  background: #fff;
  color: var(--ink, #17191c);
  box-shadow: 0 2px 8px -3px rgba(15, 19, 25, .18);
}

.form-block[hidden] { display: none; }
.form-block + .form-block { margin-top: 66px; }
.form-block > h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.form-lead {
  margin: 18px 0 30px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.field { margin-bottom: 26px; }
.field > label,
.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.field .req { margin-right: 4px; color: #ef4b4b; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.85; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: #c3c7f2;
  box-shadow: 0 0 0 3px rgba(109, 92, 246, .1);
}
.field-hint { margin-top: 7px; font-size: 11.5px; color: var(--muted-2); }

.upload-zone {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 30px 20px;
  border: 1px dashed #d3d7de;
  border-radius: 10px;
  background: #fcfcfd;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.upload-zone:hover { border-color: #bfc5cf; background: #f8f9fb; }
.upload-zone.is-drag { border-color: var(--accent); background: #f7f5ff; }
.upload-zone svg { width: 26px; height: 26px; color: #6b7280; }
.upload-zone .uz-main { font-size: 13px; color: var(--ink-soft); }
.upload-zone .uz-sub { font-size: 11.5px; color: var(--muted-2); }

.file-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}
.file-count .fc-num { color: var(--muted); font-variant-numeric: tabular-nums; }

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: #9aa0aa;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s var(--ease), transform .12s var(--ease);
}
.btn-solid:hover { background: #7f8794; }
.btn-solid:active { transform: translateY(1px); }
.btn-solid.is-ready { background: #14181f; }
.btn-solid.is-ready:hover { background: #2b3240; }
.btn-solid[disabled] { cursor: not-allowed; opacity: .75; }

.form-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4f6f9;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.form-note.is-ok { background: #eefaf3; color: #0f7a4d; }

/* ---------- 交流合作 ---------- */
.join-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.join-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.join-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.join-ico {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.join-ico svg { width: 34px; height: 34px; }
.join-name { font-size: 14px; font-weight: 600; }
.join-btn {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  border-radius: 7px;
  background: #14181f;
  color: #fff;
  font-size: 12.5px;
  transition: background .18s var(--ease);
}
.join-btn:hover { background: #2b3240; }

/* ============================================================
   AI 客服聊天
   ============================================================ */
.chat-page {
  background: #eceef1;
  min-height: calc(100vh - 96px);
  padding: 0 0 24px;
}
.chat-topbar {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 var(--gutter);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.chat-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: color .16s var(--ease);
}
.chat-back:hover { color: var(--accent); }
.chat-back svg { width: 16px; height: 16px; }

.chat-stage {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 980px;
  min-height: calc(100vh - 260px);
  margin: 26px auto 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 19, 25, .06);
}
.chat-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 36px;
  overflow-y: auto;
}
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted-2);
}
.chat-empty .ce-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #05a58c;
}
.chat-empty .ce-badge svg { width: 28px; height: 28px; fill: #fff; }
.chat-empty p { font-size: 13px; }

.bubble-row { display: flex; gap: 10px; }
.bubble-row.is-user { flex-direction: row-reverse; }
.bubble-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #05a58c;
}
.bubble-avatar svg { width: 18px; height: 18px; fill: #fff; }
.bubble {
  max-width: 74%;
  padding: 12px 15px;
  border-radius: 12px;
  background: #f4f5f7;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble-row.is-user .bubble { background: #eae6ff; color: #2b2350; }

.chat-composer {
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.composer-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.composer-box:focus-within { border-color: #c3c7f2; box-shadow: 0 0 0 3px rgba(109, 92, 246, .1); }
.composer-box textarea {
  flex: 1;
  min-height: 24px;
  max-height: 132px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
  resize: none;
  outline: 0;
}
.composer-box textarea::placeholder { color: var(--muted-2); }
.composer-acts { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.icon-btn:hover { background: #f2f3f5; color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.is-send { background: #14181f; color: #fff; }
.icon-btn.is-send:hover { background: #2b3240; }
.chat-disclaimer {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .shell { grid-template-columns: minmax(0, 1fr) 288px; gap: 64px; }
  .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sol-lead { grid-template-columns: 320px minmax(0, 1fr); gap: 28px; }
  .sol-lead.is-flip { grid-template-columns: minmax(0, 1fr) 320px; }
  .kb-item { grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
  .tool-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .join-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .page-body { padding: 34px 0 52px; }
  .shell { grid-template-columns: minmax(0, 1fr); gap: 68px; }
  .side { position: static; }
  .side-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sol-grid, .app-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-lead, .kb-item { grid-template-columns: minmax(0, 1fr); }
  .sol-lead.is-flip .sol-lead-media,
  .kb-item.is-flip .kb-shot { order: 0; }
  .tool-shell { grid-template-columns: minmax(0, 1fr); }
  .tool-nav {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tool-nav::-webkit-scrollbar { display: none; }
  .tool-nav button { width: auto; flex: 0 0 auto; white-space: nowrap; background: #f5f6f8; }
  .tool-nav button.is-active { background: #14181f; color: #fff; }
  .tool-nav button .tn-more { display: none; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 720px) {
  .page-body { padding: 26px 0 40px; }
  .hero--compact .hero-inner { padding-top: 34px; padding-bottom: 36px; }
  .hero--compact .hero-title { font-size: 22px; }
  .group-title { font-size: 17px; }
  .group + .group { margin-top: 34px; }
  .side-list { grid-template-columns: minmax(0, 1fr); }
  .mini-tools { grid-template-columns: minmax(0, 1fr); }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sol-grid, .app-grid, .case-grid, .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .sol-lead h3 { font-size: 19px; }
  .sol-title { margin: 36px 0 20px; font-size: 18px; }
  .wf-card { padding: 15px 15px 14px; }
  .wf-tag { font-size: 11.5px; height: 22px; padding: 0 9px; }
  .market-bar { gap: 12px; }
  .market-filters { margin-left: 0; width: 100%; }
  .market-filters .select-sm { flex: 1; }
  .market-filters .select-sm select { width: 100%; }
  .join-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .join-ico { width: 52px; height: 52px; }
  .form-wrap { max-width: none; }
  .kb-row { padding: 15px; gap: 13px; }
  .kb-row-logo { flex-basis: 68px; width: 68px; height: 48px; }
  .chat-stage { margin-top: 14px; min-height: calc(100vh - 220px); border-radius: 10px; }
  .chat-scroll { padding: 20px 16px; }
  .chat-composer { padding: 10px 14px 14px; }
  .bubble { max-width: 84%; }
}

/* ---------- 页面主标题 ---------- */
.lead-title {
  margin-bottom: 22px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.015em;
}
.page-body .group:first-child .group-head { margin-bottom: 20px; }

@media (max-width: 720px) {
  .lead-title { font-size: 19px; margin-bottom: 16px; }
}

/* ---------- 解决方案分组 ---------- */
.sol-group + .sol-group { margin-top: 68px; }
.sol-shot-label {
  display: block;
  padding: 18px 20px;
  font-size: 12.5px;
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.art-a .sol-shot-label,
.art-c .sol-shot-label,
.art-f .sol-shot-label { color: rgba(28, 24, 20, .82); text-shadow: none; }

/* ---------- AI自动化 区块（横卡列表） ---------- */
.auto-split {
  margin-top: 72px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}
.auto-list { display: flex; flex-direction: column; gap: 16px; }
.auto-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.auto-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.auto-thumb {
  position: relative;
  flex: 0 0 208px;
  width: 208px;
  height: 118px;
  border-radius: 9px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.auto-brand {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 700;
  color: #1b2233;
  letter-spacing: .01em;
}
.auto-body h3 { font-size: 15px; font-weight: 600; }
.auto-body p { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 720px) {
  .sol-group + .sol-group { margin-top: 46px; }
  .auto-split { margin-top: 46px; padding-top: 34px; }
  .auto-thumb { flex-basis: 132px; width: 132px; height: 84px; }
  .auto-brand { font-size: 10.5px; padding: 4px 8px; }
  .auto-card { gap: 14px; padding: 12px; }
  .auto-body h3 { font-size: 14px; }
}

/* 图文区的配图占位：主题图标水印 */
.sol-lead-media { position: relative; }
.sol-shot-icon {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 92px;
  height: 92px;
  color: #fff;
  opacity: .2;
  pointer-events: none;
}
.art-a .sol-shot-icon,
.art-c .sol-shot-icon,
.art-f .sol-shot-icon { color: #4a3f34; opacity: .16; }

/* RPA 市场：空状态 */
.ag-empty {
  margin: 28px 0 0;
  padding: 34px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.ag-empty[hidden] { display: none; }

/* 知识库：产品界面模拟图 */
.kb-shot { padding: 20px; }
.kb-mock {
  width: 100%;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8eaf0;
  box-shadow: 0 8px 24px -16px rgba(15, 19, 25, .3);
  overflow: hidden;
  padding-bottom: 16px;
}
.kb-mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 13px;
  background: #f6f7fa;
  border-bottom: 1px solid #eef0f4;
}
.kb-mock-brand { font-size: 11px; font-weight: 600; color: #2b3240; }
.kb-mock-dots { font-size: 11px; color: #9aa3b2; letter-spacing: 1px; }
.kb-mock-bar {
  margin: 16px 20px 0;
  padding: 11px 10px;
  border: 1px solid #e6e8ef;
  border-radius: 8px;
  font-size: 10.5px;
  color: #9aa3b2;
  text-align: center;
  background: #fcfcfd;
}
.kb-mock-tabs { display: flex; gap: 7px; margin: 11px 20px 0; }
.kb-mock-tabs i {
  font-style: normal;
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f2f3f6;
  color: #6b7280;
}
.kb-mock-tabs i:first-child { background: #eef1ff; color: #4b5bd6; }
.kb-mock-rows { margin: 13px 20px 0; display: flex; flex-direction: column; gap: 7px; }
.kb-mock-rows span { height: 6px; border-radius: 3px; background: #f0f2f6; }
.kb-mock-rows span:nth-child(2) { width: 82%; }
.kb-mock-rows span:nth-child(3) { width: 64%; }
.kb-mock-cards { display: flex; gap: 8px; margin: 13px 20px 0; }
.kb-mock-cards i {
  flex: 1;
  height: 36px;
  border-radius: 6px;
  background: #f4f5f8;
  border: 1px solid #eef0f4;
}

/* 表单：左标签右控件的行式布局 */
.field-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 26px;
}
.field-row > .field-label {
  margin-bottom: 0;
  padding-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.field-row input[type="text"],
.field-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.85;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field-row textarea { min-height: 130px; resize: vertical; }
.field-row input::placeholder,
.field-row textarea::placeholder { color: var(--muted-2); }
.field-row input:focus,
.field-row textarea:focus {
  outline: 0;
  border-color: #c3c7f2;
  box-shadow: 0 0 0 3px rgba(109, 92, 246, .1);
}
.upload-zone input[type="file"] { display: none; }

@media (max-width: 720px) {
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .field-row > .field-label { padding-top: 0; }
}

/* ============ AI客服：贴合原站的聊天外壳 ============ */

.chat-page {
  background: #ebedf0;
  min-height: calc(100vh - 152px);
  padding: 0;
}

.chat-topbar {
  height: 48px;
  padding: 0 var(--gutter);
  background: #ebedf0;
  border-bottom: 0;
}

.chat-stage {
  max-width: 880px;
  min-height: calc(100vh - 200px);
  margin: 12px auto 0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 19, 25, .05);
}

.chat-scroll { padding: 30px 32px 24px; }

.chat-composer {
  padding: 12px 22px 20px;
  border-top: 0;
}

.composer-box {
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 16px;
  border: 1px solid #d7d2f4;
  border-radius: 999px;
  box-shadow: 0 2px 10px -6px rgba(109, 92, 246, .35);
}

.composer-box:focus-within {
  border-color: #b9b0f0;
  box-shadow: 0 0 0 3px rgba(109, 92, 246, .1);
}

.composer-box > .icon-btn { flex: 0 0 auto; }

.composer-box textarea {
  min-height: 22px;
  padding: 8px 2px;
}

.composer-acts { gap: 8px; }

.icon-btn.is-round {
  width: 30px;
  height: 30px;
  border: 1px solid #e3e2ec;
  border-radius: 50%;
  background: #fff;
  color: #6b7280;
}
.icon-btn.is-round:hover { background: #f6f5fb; color: var(--ink); border-color: #d7d2f4; }
.icon-btn.is-round svg { width: 16px; height: 16px; }

.icon-btn.is-send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.icon-btn.is-send svg { width: 16px; height: 16px; }

.chat-disclaimer { margin-top: 12px; font-size: 11.5px; }

@media (max-width: 720px) {
  .chat-page { min-height: calc(100vh - 140px); }
  .chat-stage {
    margin-top: 8px;
    min-height: calc(100vh - 190px);
    border-radius: 0;
    box-shadow: none;
  }
  .chat-topbar { height: 42px; }
  .chat-scroll { padding: 20px 16px; }
  .chat-composer { padding: 10px 14px 16px; }
  .composer-box { padding: 6px 7px 6px 13px; }
}

/* 空状态徽标改成品牌渐变，避免与整站配色脱节 */
.chat-empty .ce-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a3d, #ff5f8a 42%, #7c5cff 78%, #4fc3f7);
  box-shadow: 0 8px 20px -12px rgba(109, 92, 246, .7);
}
.chat-empty .ce-badge svg { width: 24px; height: 24px; }
.chat-empty p { color: #8b93a2; }

.composer-box { border-color: #cdc5f0; }

/* ============================================================
   AI客服：真实大模型对话态
   ============================================================ */
.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-topbar-right { display: flex; align-items: center; gap: 14px; }

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #98a0ae;
  letter-spacing: .01em;
}
.chat-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9ced8;
  transition: background .2s var(--ease);
}
.chat-status.is-online .dot { background: #20c06a; box-shadow: 0 0 0 3px rgba(32, 192, 106, .14); }
.chat-status.is-busy .dot { background: #f0a02a; box-shadow: 0 0 0 3px rgba(240, 160, 42, .16); animation: csPulse 1.2s infinite; }
.chat-status.is-error .dot { background: #ef4b5f; box-shadow: 0 0 0 3px rgba(239, 75, 95, .14); }
@keyframes csPulse { 0%, 100% { opacity: 1; } 50% { opacity: .32; } }

.chat-clear {
  padding: 4px 2px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  color: #a3aab8;
  cursor: pointer;
  transition: color .16s var(--ease);
}
.chat-clear:hover { color: var(--accent); }

/* 空状态建议问题 */
.chat-suggests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 480px;
  margin-top: 4px;
}
.chat-suggests button {
  padding: 7px 13px;
  border: 1px solid #e5e4ee;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: #5f6675;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
}
.chat-suggests button:hover {
  border-color: #cbc1f6;
  background: #f9f7ff;
  color: var(--accent);
  transform: translateY(-1px);
}

/* 气泡列（机器人一侧，便于挂重试按钮） */
.bubble-col {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 74%;
}
.bubble-col > .bubble { max-width: 100%; }

/* 打字指示 */
.bubble.is-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 15px 16px;
}
.bubble.is-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9bfca;
  animation: csDot 1.15s infinite ease-in-out;
}
.bubble.is-typing i:nth-child(2) { animation-delay: .16s; }
.bubble.is-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes csDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* 流式输出光标 */
.bubble.is-streaming::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: csCaret .9s steps(1) infinite;
}
@keyframes csCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* 富文本片段 */
.bubble strong { font-weight: 600; color: var(--ink); }
.bubble code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(109, 92, 246, .09);
  color: #5b4ce0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .93em;
}

/* 失败与重试 */
.bubble.is-error { background: #fff4f5; color: #b32b3b; }
.bubble-retry {
  padding: 4px 10px;
  border: 1px solid #f0cdd2;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 11.5px;
  color: #b32b3b;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.bubble-retry:hover { background: #fff0f2; border-color: #e6b7bf; }

/* 生成中：发送键变停止键 */
.icon-btn.is-send.is-stop { background: #eef0f4; color: #2b3240; }
.icon-btn.is-send.is-stop:hover { background: #e4e7ec; }

@media (max-width: 720px) {
  .chat-topbar-right { gap: 10px; }
  .chat-suggests { max-width: 100%; }
  .chat-suggests button { font-size: 11.5px; padding: 6px 11px; }
}

@media (max-width: 720px) {
  .bubble-col { max-width: 84%; }
}

/* ============================================================
   AI客服：整页占满视口（页头 + 导航之下不再溢出）
   ============================================================ */
body.page-chat {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body.page-chat .site-header,
body.page-chat .mainnav { flex: 0 0 auto; }

body.page-chat .chat-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}
body.page-chat .chat-topbar { flex: 0 0 auto; }
body.page-chat .chat-stage {
  flex: 1 1 auto;
  min-height: 360px;
  margin: 12px auto 20px;
}

/* ============ 后台内嵌模式（?embed=1）：隐藏站点级导航壳 ============ */
html.embed .site-header,
html.embed .mainnav,
html.embed .site-footer,
html.embed .fab-wrap { display: none !important; }
html.embed .chat-back { display: none !important; }
html.embed .chat-page { min-height: 100vh; }
html.embed .hero { display: none !important; }
/* 页签切换由后台侧栏入口承担，内嵌时隐藏，顶部问候语由后台渲染 */
html.embed .form-tabs { display: none !important; }
html.embed .form-wrap { padding-top: 0; }

/* ============================================================
   API&CLI&MCP 页
   ============================================================ */
.ap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ap-tabs { display: flex; gap: 10px; }

.ap-tabs button {
  padding: 9px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.ap-tabs button:hover { border-color: var(--line-strong); }

.ap-tabs button.is-active {
  background: #14181f;
  border-color: #14181f;
  color: #fff;
}

.ap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ap-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 20px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.ap-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.ap-card[hidden] { display: none; }

.ap-name {
  margin: 0 0 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* 封面：仿浏览器窗口的示意截图 */
.ap-cover {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.ap-bar {
  display: flex;
  gap: 5px;
  padding: 7px 10px;
  background: #f3f4f6;
  border-bottom: 1px solid var(--line);
}

.ap-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7dbe2;
}

.ap-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  background: linear-gradient(135deg, var(--b1, #4d53e8), var(--b2, #7a5cff));
}

.ap-mark {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .22);
  max-width: 90%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ap-desc {
  margin: 12px 0 14px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted-2);
}

.ap-btn {
  margin-top: auto;
  display: block;
  padding: 10px 0;
  border-radius: 9px;
  background: #17181c;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background .18s var(--ease);
}

.ap-btn:hover { background: #000; }

@media (max-width: 1020px) {
  .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ap-grid { grid-template-columns: 1fr; }
  .ap-tabs button { padding: 8px 18px; font-size: 13px; }
}

/* ============================================================
   Skill&Prompt&插件 页
   ============================================================ */
.sk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sk-tabs { display: flex; gap: 10px; flex-wrap: wrap; }

.sk-tabs button {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.sk-tabs button:hover { border-color: var(--line-strong); }

.sk-tabs button.is-active {
  background: #14181f;
  border-color: #14181f;
  color: #fff;
}

/* 左列表 + 右侧栏 */
.sk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 84px;
  align-items: start;
}

/* 与首页 .home-split 完全同档：>1180 右栏 318px / gap 84px；≤1180 右栏 288px / gap 32px */
@media (max-width: 1180px) {
  .sk-layout { grid-template-columns: minmax(0, 1fr) 288px; gap: 32px; }
}

.sk-list { display: flex; flex-direction: column; gap: 14px; }

.sk-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.sk-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.sk-card[hidden] { display: none; }

.sk-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sk-title {
  padding: 5px 14px;
  border-radius: 8px;
  background: #17181c;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

.sk-chip {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.sk-chip--prompt { background: #ff6b6b; color: #fff; }
.sk-chip--skill { background: #4d9df0; color: #fff; }
.sk-chip--plugin { background: #34b57f; color: #fff; }

.sk-chip--meta {
  background: #e9ebef;
  color: #6b7280;
  font-weight: 500;
}

.sk-go {
  margin-left: auto;
  padding: 5px 16px;
  border-radius: 999px;
  background: #8b5cf6;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .18s var(--ease);
}

.sk-go:hover { background: #7c4def; }

.sk-desc {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted-2);
}

/* 右侧栏 */
/* 与首页 .home-aside 一致：分块之间 34px，不再套白色圆角外框 */
.sk-side { display: flex; flex-direction: column; gap: 34px; }

.sk-side-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.sk-side-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.005em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sk-side-more {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s var(--ease);
}

.sk-side-more:hover { color: var(--accent); }

.sk-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sk-cats button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: color .16s var(--ease);
}

.sk-cats button span { color: var(--muted-2); font-size: 12.5px; }
.sk-cats button:hover { color: var(--accent); }
.sk-cats button.is-active { color: var(--accent); font-weight: 600; }

.sk-tools { display: flex; flex-direction: column; gap: 14px; }

.sk-tool {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas: "logo info";
  align-items: center;
  gap: 4px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s var(--ease);
}

.sk-tool:hover { border-color: var(--line-strong); }

.sk-tool-logo {
  grid-area: logo;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.sk-tool-info { grid-area: info; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.sk-tool-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.sk-tool-sub { font-size: 12px; color: var(--muted-2); }

@media (max-width: 1080px) {
  .sk-layout { grid-template-columns: 1fr; gap: 48px; }
  .sk-side { flex-direction: row; gap: 32px; }
  .sk-side-box { flex: 1; }
}

@media (max-width: 640px) {
  .sk-side { flex-direction: column; }
  .sk-tabs button { padding: 8px 16px; font-size: 13px; }
  .sk-go { margin-left: 0; }
}

/* ============================================================
   AI资讯 页
   ============================================================ */
.nw-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.nw-list { display: flex; flex-direction: column; gap: 14px; }

.nw-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.nw-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.nw-card[hidden] { display: none; }

/* 彩色封面块 */
.nw-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 108px;
  height: 88px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c1, #7a5cff), var(--c2, #4d53e8));
  color: #fff;
  overflow: hidden;
}

.nw-cover-en {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nw-cover-zh {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nw-cover-sub {
  font-size: 8.5px;
  font-weight: 500;
  opacity: .75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nw-body { min-width: 0; }

.nw-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

.nw-title a { color: inherit; transition: color .18s var(--ease); }
.nw-title a:hover { color: #6d5bf0; }

.nw-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nw-card .sk-go { flex-shrink: 0; }

@media (max-width: 900px) {
  .nw-card { grid-template-columns: 88px minmax(0, 1fr); }
  .nw-cover { width: 88px; height: 74px; }
  .nw-card .sk-go { display: none; }
}

@media (max-width: 640px) {
  .nw-cover { height: 64px; }
  .nw-cover-zh { font-size: 13px; }
  .nw-title { font-size: 14px; }
}
