/* /sidemate · WEB-100 0.3 版式（11-22 / 11-23 Zhao 定）
   00 首屏演示 → 01–05 五个卖点各一屏 → 06 详细功能 → 07 页底地图 → 08 页脚。
   页面上没有截图了：每个演示都照着真实那次对话和做出来的文件复刻，能点步骤播放。 */

/* —— 首屏：单独当封面，居中 —— */
.page-sidemate.page-abb .hero,
.page-sidemate .hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 0;
  background: #F9FAFB;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 960px) {
  .page-sidemate.page-abb .hero {
    grid-template-columns: none;
    align-items: center;
    gap: 16px;
  }
}
.page-sidemate .hero > .wrap,
.page-sidemate .sm-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 100%;
}
.page-sidemate .hero .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
}
.page-sidemate .hero h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #22242B;
}
.page-sidemate .sm-lead {
  margin: 0;
  max-width: none;
  font-size: 20px;
  line-height: 1.6;
  color: var(--fg-muted);
}
/* 1440 一行；768 在第一句后断成两行；390 按意思断成三行，不缩字号 */
.page-sidemate .sm-lead br { display: none; }
@media (max-width: 900px) {
  .page-sidemate .sm-lead br.lb-t { display: inline; }
}
@media (max-width: 600px) {
  .page-sidemate .sm-lead br.lb-m { display: inline; }
  .page-sidemate .hero h1 { font-size: 36px; }
  .page-sidemate .hero { padding: 32px 0 40px; }
  /* 介绍句保持 20px，不随窄屏缩小 */
}
.page-sidemate .hero .btn { margin-top: 4px; }
/* WEB-124：主按钮走 api 下载入口，GitHub 降成右侧（窄屏在下）小字 */
.page-sidemate .sm-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 4px;
}
.page-sidemate .sm-dl .btn { margin-top: 0; }
.page-sidemate .sm-dl-alt {
  font-size: 13px;
  color: var(--fg-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.page-sidemate .sm-dl-alt:hover {
  color: var(--fg);
  border-bottom-color: currentColor;
}
@media (max-width: 600px) {
  .page-sidemate .sm-dl {
    flex-direction: column;
    gap: 8px;
  }
}
.page-sidemate .sm-hero-note {
  margin: 0;
  max-width: 820px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-soft);
}
.page-sidemate .sm-hero-note .ln { display: block; }
.page-sidemate .sm-hero-note .nw { white-space: nowrap; }
/* 宽屏：系统要求和 Windows 提示各一行，安装包大小跟在提示后面。
   768 / 390：安装包大小单独一行，行首加「·」，避免「·」落在上一行末尾。 */
@media (max-width: 900px) {
  .page-sidemate .sm-hero-note .dot-pkg { display: none; }
  .page-sidemate .sm-hero-note .ln-pkg { display: block; }
  .page-sidemate .sm-hero-note .ln-pkg::before { content: "· "; }
}


/* —— 演示：00 首屏、01–05 五个卖点、06 详细功能，全是网页画的，照着真实那次对话和那次做出来的文件复刻。
   样子照桌伴 0.3（app/task/task.css、app/pet、app/settings/page.css 的颜色、圆角、尺寸），字小一号。
   点下面的步骤播那一步；右上角「重播」从头播；进视口自动播一遍，停在最后一步。
   0.3 里文件不在桌伴里预览：最后那步画的是文件打开后的样子（桌伴里能看是 0.4 的事）。 —— */
.dm-box { --dm-h: 460px; position: relative; width: 100%; }
.dm-box.dm-hero { --dm-h: 480px; }
.dm-box.dm-det { --dm-h: 400px; }
.dm {
  --ink: #22201c; --soft: #5f5a52; --faint: #9a9284; --paper: #f5f1e8; --card: #fff; --line: #e3ded3; --red: #c53a22;
  --curve: cubic-bezier(.2, .8, .2, 1);
  position: relative;
  height: var(--dm-h);
  overflow: hidden;
  border-radius: 14px;
  background: #EEEBE5;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 1px 3px rgba(33,36,43,.06), 0 10px 28px -12px rgba(33,36,43,.2);
  font: 13px/1.55 "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
}
.dm *, .dm *::before, .dm *::after { box-sizing: border-box; }
.dm p, .dm h4, .dm h5 { margin: 0; }
.dm svg { display: block; }
.dm [data-in]:not(.is-on) { display: none !important; }
.dm .is-new { animation: dm-in .36s var(--curve) both; }
@keyframes dm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dm.is-instant *, .dm.is-instant *::before, .dm.is-instant *::after { transition: none !important; animation: none !important; }

/* 小岛：墨色小条 112×30，一双眼睛（形状照 app/pet 的 A 套） */
.dm-island {
  position: absolute; z-index: 9; top: 0; left: 0; right: 0; margin: 0 auto;
  width: 112px; height: 30px; border-radius: 10px; background: #1f1d1a;
  transition: width .24s var(--curve), box-shadow .2s;
}
.dm-eyes { position: absolute; left: 0; top: 0; width: 112px; height: 30px; }
.dm-eyes .e-shift { transition: transform .24s var(--curve); }
.dm-eyes g g { opacity: 0; transition: opacity .12s; }
.dm-eyes circle, .dm-eyes rect { fill: #f5f1e8; }
.dm-eyes path { fill: none; stroke: #f5f1e8; stroke-width: 2.3; stroke-linecap: round; }
.dm-eyes .e-round { opacity: 1; }
.dm-eyes .e-dot { fill: #c53a22; opacity: 0; transition: opacity .15s; }
.dm-island.work .e-round, .dm-island.done .e-round, .dm-island.drop .e-round { opacity: 0; }
.dm-island.work .e-down, .dm-island.done .e-arc, .dm-island.drop .e-wide { opacity: 1; }
.dm-island.news .e-dot { opacity: 1; }
.dm-island.done { animation: dm-hop .3s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes dm-hop { 50% { transform: translateY(-2px); } }
.dm-say {
  position: absolute; left: 64px; top: 0; line-height: 30px; font-size: 13px; color: #efe9df;
  white-space: nowrap; opacity: 0; transition: opacity .12s;
}
/* 接文件 / 冒一行：长开，眼睛挪到左边，右边写字 */
.dm-island.drop, .dm-island.say { width: 166px; }
.dm-island.drop { box-shadow: inset 0 0 0 1.5px #f5f1e8; }
.dm-island.drop .e-shift, .dm-island.say .e-shift { transform: translateX(-28px); }
.dm-island.drop .dm-say-drop, .dm-island.say .dm-say-news { opacity: 1; transition-delay: .12s; }
.dm-island.say .e-dot { opacity: 0; }

/* 桌面上的文件（首屏拖的那份） */
.dm-dfile {
  position: absolute; z-index: 12; left: 6%; bottom: 13%;
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px;
  font-size: 11.5px; line-height: 1.3; text-align: center;
  transition: transform .9s var(--curve), opacity .2s;
}
.dm-dfile .dm-fi {
  display: grid; place-items: center; width: 44px; height: 52px; border-radius: 4px;
  background: #fff; color: #2b5bb8; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 4px 10px -4px rgba(0,0,0,.25);
}
.dm-dfile .dm-fi svg { width: 26px; height: 26px; }
.dm-dfile.lift .dm-fi { box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 12px 22px -8px rgba(0,0,0,.35); }

/* 图标 */
.dm-i-doc { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dm-i-caret { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* 任务窗：纸色面板，贴着小岛垂下来 */
.dm-win {
  position: absolute; z-index: 5; top: 30px; bottom: 12px; left: 0; right: 0; margin: 0 auto;
  width: min(420px, calc(100% - 20px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.dm-win.is-new { animation: dm-drop .28s var(--curve) both; }
@keyframes dm-drop {
  from { transform: translateY(-14px); opacity: 0; clip-path: inset(0 0 100% 0); }
  to { transform: none; opacity: 1; clip-path: inset(0 0 0 0); }
}
.dm-det .dm-win { width: min(392px, calc(100% - 20px)); }
.dm-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 10px 0 8px; }
.dm-where {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; min-width: 104px; padding: 0 10px;
  background: var(--card); border-radius: 8px; font-size: 13px; font-weight: 500;
}
.dm-where .dm-i-caret { margin-left: auto; color: var(--soft); }
.dm-new { font-size: 12px; padding: 4px 8px; }

/* 对话流：新的在下面，满了往上顶（跟真窗一样贴底） */
.dm-flow {
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  padding: 6px 14px 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16px);
}
.dm-flow.top { justify-content: flex-start; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 20px); mask-image: linear-gradient(to top, transparent 0, #000 20px); }
.dm-flow > * { flex: none; }
.dm-user, .dm-steer { align-self: flex-end; max-width: 86%; }
.dm-tx {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 7px 11px; border-radius: 12px; background: var(--card);
  font-size: 13px; line-height: 17px; word-break: break-word;
}
.dm-tx > span:first-child { align-self: stretch; text-align: left; }
.dm-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin-top: 4px; }
.dm-chip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 150px; height: 22px; padding: 0 7px 0 5px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--paper); font-size: 11.5px; white-space: nowrap;
}
.dm-chip .dm-i-doc { width: 14px; height: 14px; }
.dm-chip img { width: 16px; height: 16px; border-radius: 3px; object-fit: cover; }
.dm-snote { margin-top: 4px; font-size: 10.5px; line-height: 13px; color: var(--soft); text-align: right; }
.dm-them { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.dm-ava { flex: none; position: relative; width: 20px; height: 11px; margin-top: 4px; border-radius: 4px; background: #1f1d1a; }
.dm-ava::before, .dm-ava::after { content: ""; position: absolute; top: 3.5px; width: 4px; height: 4px; border-radius: 1px; background: #f5f1e8; }
.dm-ava::before { left: 5px; }
.dm-ava::after { left: 11px; }
.dm-tb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.dm-reply { font-size: 13px; line-height: 20px; word-break: break-word; }
.dm-reply p + p, .dm-reply h5 + p, .dm-reply p + h5 { margin-top: 4px; }
.dm-reply h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.dm-reply h5 { font-size: 13px; font-weight: 700; margin-top: 6px; }
.dm-reply a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.dm-reply .src { font-size: 11.5px; line-height: 17px; color: var(--soft); }
.dm-reply hr { margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.dm-work { font-size: 11.5px; line-height: 16px; color: var(--soft); }
.dm-note { font-size: 12px; line-height: 18px; color: var(--soft); }
/* 灰条：新闻正文用它代替真字（真新闻里有品牌、人名、价钱，不放到官网上） */
.dm-sk { display: block; height: 9px; margin: 6px 0; border-radius: 3px; background: #e2dccf; }
.dm-sk.b { height: 11px; background: #d3cbbb; }
.dm-sk.r { display: inline-block; width: 46%; height: 8px; margin: 0 0 0 2px; background: #e9b7ac; vertical-align: 1px; }

/* 产出卡 */
.dm-card { padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.dm-ch { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; line-height: 20px; }
.dm-cs { margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; line-height: 17px; color: var(--soft); }
.dm-cb { display: flex; gap: 6px; margin-top: 6px; }
.dm-cb span, .dm-btn {
  display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); font-size: 11.5px; line-height: 17px; white-space: nowrap;
}
/* WEB-115：0.4 起「预览」是成品卡的主按钮 */
.dm-cb span.on { background: var(--ink); border-color: var(--ink); color: var(--card); font-weight: 500; }
/* 装技能确认卡 */
.dm-inst { display: flex; flex-direction: column; gap: 7px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.dm-inst b { font-size: 13px; font-weight: 500; }
.dm-inst .r { display: flex; gap: 10px; font-size: 11.5px; line-height: 18px; }
.dm-inst .r > span:first-child { flex: none; width: 34px; color: var(--soft); }
.dm-inst .r > span:last-child { flex: 1; min-width: 0; word-break: break-word; }
.dm-inst .r .gap { margin-left: 8px; }
.dm-inst .bt { display: flex; gap: 8px; }
.dm-inst .yes { padding: 4px 13px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 500; }
.dm-inst .no { padding: 3px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 11.5px; }

/* 小签行 + 输入胶囊 */
.dm-tags { flex: none; display: flex; gap: 6px; padding: 6px 14px 0; }
.dm-tags:empty { display: none; }
.dm-tag {
  display: inline-flex; align-items: center; height: 24px; max-width: 160px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 11.5px; white-space: nowrap;
}
.dm-tag.img { gap: 7px; height: 34px; padding: 3px 10px 3px 3px; border-radius: 8px; }
.dm-tag.img img { width: 26px; height: 26px; border-radius: 4px; object-fit: cover; background: var(--line); }
.dm-tag.img span { display: flex; flex-direction: column; font-size: 11.5px; line-height: 13px; font-weight: 500; }
.dm-tag.img small { font-size: 10px; line-height: 12px; font-weight: 400; color: var(--soft); }
.dm-bottom { flex: none; padding: 8px 10px 10px; }
.dm-input {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cap act";
  align-items: center; column-gap: 8px; min-height: 40px; padding: 5px 5px 5px 13px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
}
.dm-cap { grid-area: cap; min-width: 0; font-size: 13px; line-height: 17px; overflow: hidden; }
.dm-ph { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dm-typed:not(:empty) + .dm-ph { display: none; }
.dm-typed { word-break: break-word; }
.dm-typed.is-typing::after {
  content: ""; display: inline-block; width: 1px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--ink);
  animation: dm-caret 1s steps(1) infinite;
}
@keyframes dm-caret { 50% { opacity: 0; } }
.dm-tools { grid-area: tools; display: none; align-items: center; gap: 12px; font-size: 11.5px; color: var(--soft); }
.dm-tools svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.dm-tools > span { display: inline-flex; align-items: center; gap: 3px; }
.dm-tools i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 2px; }
.dm-tools em { font-style: normal; font-size: 9px; margin-left: 2px; }
.dm-act { grid-area: act; display: flex; align-items: center; justify-content: flex-end; }
.dm-input.open { grid-template-areas: "cap cap" "tools act"; row-gap: 8px; padding: 9px 5px 5px 13px; }
.dm-input.open .dm-cap { min-height: 50px; }
.dm-input.open .dm-tools { display: flex; }
.dm-send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 14px; background: var(--ink); color: var(--paper); }
.dm-send svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dm-send.off { display: none; }
.dm-stop { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 500; }
.dm-handle { height: 10px; display: flex; align-items: flex-end; justify-content: center; }
.dm-handle::before { content: ""; width: 32px; height: 3px; border-radius: 2px; background: var(--line); }
.dm-key {
  position: absolute; z-index: 14; left: 50%; bottom: 78px; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 6px; background: rgba(34,32,28,.82); color: #f5f1e8; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}

/* 打开的文件：一块单独的窗（不是桌伴里的东西） */
.dm-doc {
  position: absolute; z-index: 8; right: 3%; bottom: 4%; width: min(340px, 80%); height: 70%;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.10), 0 18px 40px -14px rgba(33,36,43,.45);
}
.dm-doc.is-new { animation: dm-open .42s var(--curve) both; }
@keyframes dm-open { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.dm-db {
  flex: none; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 10px;
  background: #f3f1ec; border-bottom: 1px solid #e6e2da; font-size: 11.5px; color: #4a453e; white-space: nowrap;
}
.dm-db .dm-i-doc { width: 14px; height: 14px; flex: none; }
.dm-db span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dm-db i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #d9d4ca; }
.dm-dv { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #ecebe8; }
.dm-dv::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(to bottom, rgba(236,235,232,0), #ecebe8); }
.dm-page {
  margin: 10px 10px 0; padding: 16px 18px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06);
  font-family: "SimSun", "Songti SC", "Noto Serif SC", serif; font-size: 11px; line-height: 1.75; color: #222;
}
.dm-page h4 { font-size: 15px; line-height: 1.4; text-align: center; margin-bottom: 4px; }
.dm-page .meta { font-size: 9.5px; text-align: center; color: #555; margin-bottom: 8px; }
.dm-page h5 { font-size: 11.5px; margin: 6px 0 2px; }
.dm-page p { text-indent: 2em; }
.dm-page p.ni { text-indent: 0; }
.dm-page .cap { text-indent: 0; text-align: center; font-size: 9.5px; color: #555; margin-top: 4px; }
.dm-page table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 9.5px; line-height: 1.5; }
.dm-page th, .dm-page td { border: 1px solid #bdb7ad; padding: 2px 4px; text-align: center; }
.dm-page th { background: #f2eee6; font-weight: 600; }
.dm-slide { margin: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.dm-slide img { width: 100%; height: auto; display: block; }
.dm-sheet { display: flex; flex-direction: column; height: 100%; background: #fff; font-size: 10.5px; line-height: 1.35; }
.dm-sheet .gr { flex: 1; min-height: 0; overflow: hidden; padding: 0; }
.dm-sheet table { border-collapse: collapse; width: max-content; min-width: 100%; }
.dm-sheet td { border: 1px solid #e3e3e3; padding: 3px 6px; white-space: nowrap; }
.dm-sheet td.t { font-size: 12px; font-weight: 700; border-color: transparent; padding-top: 6px; }
.dm-sheet td.s { font-size: 9.5px; color: #666; border-color: transparent; }
.dm-sheet td.h { background: #3e2c23; color: #fff; font-weight: 600; }
.dm-sheet td.n { text-align: right; font-variant-numeric: tabular-nums; }
.dm-sheet tr.sum td { font-weight: 700; background: #f6f1e8; }
.dm-sheet .tabs { flex: none; display: flex; gap: 2px; padding: 0 8px; height: 22px; align-items: stretch; background: #f3f1ec; border-top: 1px solid #e6e2da; font-size: 10px; color: #6b665e; }
.dm-sheet .tabs span { display: flex; align-items: center; padding: 0 9px; }
.dm-sheet .tabs .on { background: #fff; color: #222; font-weight: 600; }
.dm-chart { padding: 6px 8px 0; }
.dm-chart svg { width: 100%; height: auto; }
.dm-chart text { font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; fill: #444; }

/* 设置窗：左边目录、右边内容（照 app/settings/page.css，缩一号） */
.dm-set {
  position: absolute; z-index: 4; top: 40px; bottom: 12px; left: 0; right: 0; margin: 0 auto;
  width: min(520px, calc(100% - 16px)); display: flex; overflow: hidden;
  border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 26px -10px rgba(0,0,0,.28);
}
.dm-set.is-new { animation: dm-open .36s var(--curve) both; }
.dm-nav { flex: none; width: 92px; display: flex; flex-direction: column; gap: 2px; padding: 14px 8px; }
.dm-nav span { padding: 5px 0 5px 10px; border-radius: 6px; font-size: 12.5px; color: var(--soft); }
.dm-nav span.on { background: var(--card); color: var(--ink); font-weight: 500; }
.dm-sc { position: relative; flex: 1; min-width: 0; padding: 14px 16px 16px 6px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.dm-sc h4 { font-size: 15px; font-weight: 500; }
.dm-list { padding: 2px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.dm-mrow { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dm-mrow:last-child { border-bottom: 0; }
.dm-radio { flex: none; width: 14px; height: 14px; border: 1.5px solid var(--soft); border-radius: 50%; display: grid; place-items: center; }
.dm-radio.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.dm-mrow .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-mrow .nm b { font-weight: 500; font-size: 13px; }
.dm-mrow .nm em { font-style: normal; margin-left: 6px; padding: 0 5px; border-radius: 4px; background: var(--paper); font-size: 10.5px; color: var(--soft); vertical-align: 1px; }
.dm-mrow small, .dm-sc small { font-size: 11px; color: var(--soft); }
.dm-btn.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 500; }
.dm-btn.red { color: var(--red); }
.dm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.dm-chk { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--soft); }
.dm-chk i { width: 13px; height: 13px; border-radius: 3px; background: var(--ink); }
.dm-topic { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.dm-topic b { font-weight: 500; font-size: 13px; }
.dm-topic .dm-btns { margin-top: 4px; }
/* WEB-115：0.4 的新闻卡片（名字 + 删除、那句话、频率和时间一行） */
.dm-th { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; }
.dm-th span { font-size: 11px; color: var(--soft); }
.dm-tr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.dm-tr .dm-field { min-height: 24px; padding: 3px 8px; width: 60px; }
.dm-topic .dm-field.tall { min-height: 40px; }
/* WEB-116：对话里直接画的图（照 0.4 任务窗的 .ch，类名换成 dm-cc），右键菜单。
   WEB-118：画布和字号照第 5 段的图（330 宽、刻度 9、店名 10、数字 9.5），缩进演示窗后才看得清。 */
.dm-cc { position: relative; margin: 4px 0 2px; }
.dm-cc-t { font-size: 12px; line-height: 17px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.dm-cc svg { display: block; width: 100%; height: auto; }
.dm-cc .grid { stroke: var(--line); stroke-width: 1; }
.dm-cc .axis { stroke: var(--faint); stroke-width: 1; }
.dm-cc .tick, .dm-cc .unit { fill: var(--soft); font-size: 9px; }
.dm-cc .cat { fill: var(--ink); font-size: 10px; }
.dm-cc .val { fill: var(--ink); font-size: 9.5px; }
.dm-cc .bar { fill: var(--red); }
.dm-cc-src { margin-top: 3px; font-size: 10.5px; line-height: 15px; color: var(--faint); }
.dm-ctx { position: absolute; left: 48%; top: 30%; z-index: 2; display: flex; flex-direction: column; min-width: 112px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: 0 8px 24px -8px rgba(0,0,0,.3); font-size: 11.5px; line-height: 17px; }
.dm-ctx span { padding: 3px 9px; border-radius: 5px; }
.dm-ctx span:first-child { background: var(--paper); }
/* 设置里的弹窗 */
.dm-dlgw { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: center; padding: 8px 8px 8px; background: rgba(34,32,28,.28); }
.dm-dlgw.is-new { animation: dm-fade .2s ease both; }
@keyframes dm-fade { from { opacity: 0; } to { opacity: 1; } }
.dm-dlg {
  width: 100%; max-width: 380px; max-height: 100%; display: flex; flex-direction: column;
  padding: 10px 12px; border-radius: 12px; background: var(--card); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); overflow: hidden;
}
/* 字段多了就往下藏，底下那排按钮一直看得见 */
.dm-dlgf { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.dm-dlg h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.dm-dlg label { margin-top: 3px; font-size: 11.5px; line-height: 16px; color: var(--soft); }
.dm-dlg label small { margin-left: 6px; color: var(--faint); }
.dm-field {
  min-height: 28px; padding: 5px 9px; border: 1px solid var(--ink); border-radius: 7px; background: var(--card);
  font-size: 12px; line-height: 16px; word-break: break-all;
}
.dm-field.tall { min-height: 44px; }
.dm-field .dm-typed:not(:empty) + .dm-ph, .dm-field .dm-typed.is-typing + .dm-ph { display: none; }
.dm-field .dm-ph { display: inline; color: var(--faint); }
.dm-seg { display: flex; gap: 4px; flex-wrap: wrap; }
.dm-seg span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-size: 11.5px; }
.dm-seg span.on { background: var(--ink); border-color: var(--ink); color: var(--card); font-weight: 500; }
.dm-dlg .dm-btns { flex: none; justify-content: flex-end; margin-top: 8px; }
.dm-dlg .dm-field { flex: none; min-height: 26px; padding: 4px 9px; }
.dm-dlg .dm-field.tall { min-height: 42px; }

/* 鼠标 */
.dm-cursor {
  position: absolute; z-index: 30; left: 0; top: 0; width: 16px; height: 22px; opacity: 0; pointer-events: none;
  transition: transform .7s cubic-bezier(.45, .05, .25, 1), opacity .2s;
}
.dm-cursor.on { opacity: 1; }
.dm-cursor svg { width: 16px; height: 22px; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35)); }
.dm-cursor path { fill: #fff; stroke: #1f1d1a; stroke-width: 1.2; stroke-linejoin: round; }
.dm-cursor::after {
  content: ""; position: absolute; left: -9px; top: -9px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(197,58,34,.65); opacity: 0; transform: scale(.4);
}
.dm-cursor.press::after { animation: dm-ripple .45s ease-out; }
@keyframes dm-ripple { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }

/* 步骤条 + 重播（都在演示区里） */
.dm-replay {
  position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px;
  margin: 0; padding: 4px 10px 4px 8px; border: 0; border-radius: 999px; background: rgba(255,255,255,.88);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08); font: inherit; font-size: 12px; line-height: 16px; color: #3f3f46; cursor: pointer;
}
.dm-replay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dm-replay:hover { background: #fff; color: #18181b; }
.dm-keys { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dm-keys button {
  position: relative; display: inline-flex; align-items: center; gap: 6px; overflow: hidden;
  margin: 0; padding: 6px 12px; border: 1px solid var(--border, #e4e4e7); border-radius: 999px; background: #fff;
  font: inherit; font-size: 13px; line-height: 18px; color: #52525b; cursor: pointer;
}
.dm-keys button b { font-weight: 600; font-size: 11px; color: #a1a1aa; font-variant-numeric: tabular-nums; }
.dm-keys button:hover { color: #18181b; border-color: #d4d4d8; }
.dm-keys button[aria-current] { color: #18181b; border-color: #18181b; font-weight: 600; }
.dm-keys button[aria-current] b { color: #18181b; }
.dm-keys .dm-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #18181b; }
.dm-replay:focus-visible, .dm-keys button:focus-visible { outline: 2px solid #18181b; outline-offset: 2px; }

@media (max-width: 600px) {
  .dm-box { --dm-h: 440px; }
  .dm-box.dm-hero { --dm-h: 470px; }
  .dm { font-size: 12.5px; }
  .dm-win { width: calc(100% - 14px); }
  .dm-doc { width: 86%; right: 7%; }
  .dm-keys button { padding: 5px 10px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm *, .dm *::before, .dm *::after { transition: none !important; animation: none !important; }
}

/* —— 01–05：五个卖点各一屏。左边字、右边能播的演示，一屏左一屏右交替；900 往下字在上、演示在下。
   1024×700、1440×900 一屏装得下（矮屏收上下留白）。 —— */
.sm-feat { padding: 72px 0; background: var(--bg-card); }
.sm-feat.is-alt { background: #F9FAFB; }
@media (min-width: 1024px) {
  .sm-feat > .wrap { padding-inline: max(40px, calc((100vw - var(--max)) / 2)); }
}
.sm-feat-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.sm-feat.is-flip .sm-feat-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sm-feat.is-flip .sm-feat-text { order: 2; }
.sm-feat-title { margin: 0; font-size: 36px; line-height: 1.2; letter-spacing: -0.03em; color: #22242B; }
.sm-feat-lead { margin: 14px 0 0; max-width: 520px; font-size: 18px; line-height: 1.7; color: var(--fg-muted); }
.sm-feat-note { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--fg-soft); }
.sm-feat-demo { width: 100%; max-width: 640px; min-width: 0; justify-self: center; }
@media (max-width: 1100px) {
  .sm-feat-in { gap: 36px; }
  .sm-feat-title { font-size: 32px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .sm-feat { padding: 40px 0; }
}
@media (max-width: 900px) {
  .sm-feat { padding: 64px 0; }
  .sm-feat-in, .sm-feat.is-flip .sm-feat-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sm-feat.is-flip .sm-feat-text { order: 0; }
  .sm-feat-text { max-width: 560px; margin: 0 auto; text-align: center; }
  .sm-feat-lead { margin-inline: auto; }
  .sm-feat-title { font-size: 30px; }
}
@media (max-width: 600px) {
  .sm-feat { padding: 56px 0; }
  .sm-feat-title { font-size: 26px; }
  .sm-feat-lead { font-size: 16px; }
}

/* 首屏的演示 */
.sm-hero-stage { width: min(700px, 100%); margin-top: 8px; }

/* 打开的文件：几种摆法 */
.dm-doc.dm-doc-wide { width: min(420px, 90%); }
.dm-doc.dm-doc-slide { height: auto; }
.dm-doc.dm-doc-slide .dm-dv::after { display: none; }
.dm-doc.dm-doc-back { right: auto; bottom: auto; left: 3%; top: 14%; z-index: 7; width: min(360px, 60%); }
@media (max-width: 600px) {
  .dm-doc.dm-doc-back { width: 78%; top: 10%; }
  .dm-doc.dm-doc-wide { width: 92%; right: 4%; }
}

/* —— 详细功能等用的通用区块 —— */
.sm-sec { padding: 96px 0; }
.sm-sec.is-alt { background: #F9FAFB; }
@media (max-width: 600px) {
  .sm-sec { padding: 64px 0; }
}
.sm-sec > .wrap > .sm-sec-title,
.sm-sec-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: #22242B;
}
@media (max-width: 600px) {
  .sm-sec-title { font-size: 24px; }
}


/* —— 详细功能 —— */
.sm-details { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
.sm-row {
  display: grid;
  grid-template-columns: 220px 1fr 440px;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.sm-row h3 { margin: 0; font-size: 20px; color: #22242B; }
.sm-row p { margin: 0; font-size: 16px; line-height: 1.85; color: var(--fg-muted); max-width: 720px; }
/* 06 每一行的演示 */
.sm-pic-demo { min-width: 0; }
@media (max-width: 1100px) {
  .sm-row { grid-template-columns: 200px 1fr; }
  .sm-row .sm-pic-demo { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 900px) {
  .sm-row { grid-template-columns: 1fr; gap: 12px; }
}

/* WEB-76：/sidemate 页底部产品线功能地图。稿面：桌面 0.1|0.2（2 栏，0.2 为 2fr 重心），
   「接下来」为已公开/未做分界；0.3–0.5 之后用 muted（#71717A，约 4.5:1）与 1px 虚线竖轨。
   768 为 2×2，390 纵向堆叠。不引入 ISP 奶油底或品牌红。 */
.sm-map {
  background: var(--bg-card);
  padding: 48px 0 64px;
  overflow-x: clip;
}
@media (min-width: 768px) {
  .sm-map { padding: 128px 0; }
}

.sm-map-released,
.sm-map-upcoming {
  display: grid;
  gap: 24px;
  min-width: 0;
  align-items: start;
}
.sm-map-released { grid-template-columns: 1fr; }
.sm-map-upcoming { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .sm-map-released { grid-template-columns: 1fr 2fr; }
  .sm-map-upcoming {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 40px;
  }
}
@media (min-width: 1024px) {
  .sm-map-upcoming {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

/* WEB-100：0.3 已发时是 3 + 3。WEB-115 起 0.4 已发，中英两页都是 4 + 2（下面 -4、-2 两条）。 */
@media (min-width: 768px) {
  .sm-map-released-3 { grid-template-columns: 1fr 1fr 2fr; }
}
@media (min-width: 1024px) {
  .sm-map-upcoming-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* WEB-118：768–1023 宽时四个已发版两列两行，两列等宽（≥1024 下面那条改成四列） */
@media (min-width: 768px) {
  .sm-map-released-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .sm-map-released-4 { grid-template-columns: 1fr 1fr 1fr 2fr; }
  .sm-map-upcoming-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sm-map-item {
  position: relative;
  min-width: 0;
  padding-left: 16px;
  margin: 0;
}
.sm-map-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
}
.sm-map-item.is-past {
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}
.sm-map-item.is-past::before { background: var(--fg-muted); }
.sm-map-item.is-current {
  color: var(--fg);
  font-size: 18px;
  font-weight: 600;
  line-height: 32px;
}
.sm-map-item.is-current::before {
  width: 2px;
  background: var(--fg);
}
.sm-map-item.is-todo {
  color: var(--fg-soft);
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
}
.sm-map-item.is-todo::before {
  background: repeating-linear-gradient(
    to bottom,
    var(--fg-soft) 0 4px,
    transparent 4px 6px
  );
}

.sm-map-ver {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}
.sm-map-item.is-current .sm-map-ver {
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}

.sm-map-line { margin: 0; }

.sm-map-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}
@media (min-width: 768px) {
  .sm-map-divider { margin: 56px 0; }
}
.sm-map-divider::before,
.sm-map-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  min-width: 0;
  background: #F1F1F3;
}
.sm-map-divider-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: var(--fg-muted);
}

/* 英文页：句行与「接下来」「0.5 之后」用浅色占位条，不写中文、不自拟英文。 */
.sm-map-ph {
  display: block;
  height: 14px;
  max-width: 100%;
  border-radius: 4px;
  background: var(--border);
}
.sm-map-ph + .sm-map-ph { margin-top: 8px; }
.sm-map-ver + .sm-map-ph { margin-top: 0; }
.sm-map-ph-released { background: #F4F4F5; }
.sm-map-ph-short { width: 72px; }
.sm-map-item > .sm-map-ph-short:first-child {
  margin: 0 0 8px;
}
.sm-map-item > .sm-map-ph-short:first-child + .sm-map-ph {
  margin-top: 0;
}
