/* ==========================================================================
   文枢 Wenshu · Design Tokens + Site Styles
   从 Ardot 设计稿 (file/727540392769707) 一比一还原
   ========================================================================== */

:root {
  /* --- 色彩 --- */
  --bg: #ffffff;
  --surface: #f7f8fa;
  --canvas: #eef1f5;
  --line: #eceef1;
  --line-2: #e4e9f0;
  --line-3: #e3e7ee;
  --line-4: #d8dce2;

  --ink: #0e1726;
  --ink-2: #374151;
  --ink-3: #3d4553;
  --muted: #5c6470;
  --muted-2: #8a9099;

  --accent: #1247cc;
  --accent-soft: #e9f1fe;
  --green: #0e9f6e;
  --green-soft: #e7f7ee;
  --amber: #d97706;
  --amber-ink: #b45309;
  --amber-soft: #fdf2e4;
  --red: #dc2626;

  --footer-bg: #0e1726;
  --footer-line: #1e2a3d;
  --footer-text: #9aa3b2;
  --footer-muted: #6b7684;

  /* --- 字体 --- */
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: Inter, "Segoe UI", var(--font);

  /* --- 圆角 --- */
  --r-card: 14px;
  --r-panel: 12px;
  --r-btn: 8px;
  --r-chip: 6px;
  --r-pill: 100px;

  /* --- 投影 --- */
  --shadow-1: 0 1px 3px rgba(18, 23, 38, 0.06);
  --shadow-2: 0 10px 26px -4px rgba(18, 23, 38, 0.14);
  --shadow-3: 0 18px 44px -6px rgba(18, 23, 38, 0.1);
  --shadow-page: 0 6px 20px -4px rgba(18, 23, 38, 0.08);

  /* --- 版心 --- */
  --gutter: 120px;
  --max: 1440px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease, opacity 0.16s ease;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

svg {
  display: block;
  flex: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   通用组件
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--r-btn);
  font-family: var(--font);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn--primary {
  padding: 15px 30px;
  font-size: 16px;
  color: #fff;
  background: var(--accent);
}

.btn--primary:hover {
  background: #0f3cb0;
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  padding: 14px 28px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-4);
}

.btn--ghost:hover {
  border-color: #b9c0ca;
  background: #fcfcfd;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn--text {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-3);
}

.btn--text:hover {
  color: var(--ink);
  background: var(--surface);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--accent);
}

/* ==========================================================================
   官网落地页
   ========================================================================== */

.page {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

/* --- Header --- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  font-size: 14px;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Hero --- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 72px var(--gutter) 80px;
  background: var(--surface);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line-3);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__title {
  font-size: 56px;
  line-height: 70px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--ink);
}

.hero__sub {
  max-width: 880px;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  color: var(--muted);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.hero__trust {
  font-size: 13px;
  color: var(--muted-2);
}

/* --- Hero 视觉区：层叠遮挡 --- */

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-top: 28px;
}

/* 后置衬板：向右下偏移，做层叠遮挡 */
.hero__sheet {
  position: absolute;
  top: 26px;
  left: 20px;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  background: #e7ebf1;
}

.hero__shot {
  position: relative;
  width: calc(100% - 40px);
  margin-bottom: 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line-3);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  transition: box-shadow 0.18s ease;
}

/* 首屏那块编辑器是「界面示意图」，不是真编辑器。
   整块铺一层透明链接，点哪儿都进真实工作台；
   静止态外观与改动前完全一致（只多一个悬停阴影做可点提示）。 */
.hero__shot-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.hero__shot:hover {
  box-shadow: 0 16px 40px rgba(18, 71, 204, 0.18);
}

/* 首屏浮起的「上传完成」卡片 */
.upload-toast {
  position: absolute;
  left: 44px;
  bottom: 72px;
  width: 336px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--r-panel);
  background: #fff;
  border: 1px solid #e9edf3;
  box-shadow: var(--shadow-2);
}

.upload-toast__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-toast__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upload-toast__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.upload-toast__meta {
  font-size: 12px;
  color: var(--muted-2);
}

.track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: #eaeef3;
  overflow: hidden;
}

.track__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
  background: var(--accent);
}

/* --- 首屏里的编辑器缩略图 --- */

.mini {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 560px;
  background: #fff;
}

.mini__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.mini__bar-left,
.mini__bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini__dots {
  display: flex;
  gap: 5px;
}

.mini__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e4e9f0;
}

.mini__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.mini__saved {
  font-size: 11px;
  color: var(--muted-2);
}

/* 迷你编辑器顶栏右侧：在线成员头像已随功能下线撤掉，换成分享入口，
   跟真实工作台右上角保持一致。 */
.mini__share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 9px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.av--blue {
  background: var(--accent-soft);
  color: var(--accent);
}
.av--green {
  background: var(--green-soft);
  color: var(--green);
}
.av--amber {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.mini__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.mini__side {
  width: 196px;
  flex: none;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.mini__upload {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--r-chip);
  background: var(--accent);
  font-size: 11px;
  font-weight: 500;
  color: #fff;
}

.mini__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--muted-2);
}

.mini__file {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: var(--r-chip);
  font-size: 11px;
  color: var(--ink-3);
}

.mini__file--on {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-1);
}

.mini__doc {
  flex: 1;
  min-width: 0;
  padding: 22px 26px;
  background: var(--canvas);
  overflow: hidden;
}

.mini__page {
  height: 100%;
  padding: 26px 30px;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-page);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini__h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.mini__meta {
  font-size: 10px;
  color: var(--muted-2);
}

.mini__hr {
  height: 1px;
  background: var(--line);
}

.mini__h2 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.line {
  height: 6px;
  border-radius: 3px;
  background: #e9edf3;
}

.line--w90 { width: 90%; }
.line--w78 { width: 78%; }
.line--w64 { width: 64%; }
.line--w46 { width: 46%; }

.mini__table {
  border: 1px solid var(--line-2);
  border-radius: 5px;
  overflow: hidden;
  font-size: 10px;
}

.mini__tr {
  display: grid;
  grid-template-columns: 68px 1fr 52px;
}

.mini__tr + .mini__tr {
  border-top: 1px solid var(--line);
}

.mini__tr--head {
  background: var(--surface);
  color: var(--muted-2);
}

.mini__td {
  padding: 5px 8px;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini__td:last-child {
  border-right: 0;
}

.mini__side--right {
  width: 200px;
  background: #fff;
  border-right: 0;
  border-left: 1px solid var(--line);
  gap: 10px;
}

.mini__panel-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

/* 迷你面板里的在线成员 / 批注行已换成文档目录（见 .mini__toc），
   原来的 .mini__member* / .mini__comment* 一并删掉。 */

/* --- 核心能力与使用流程 --- */

.capabilities {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 96px var(--gutter) 104px;
  background: var(--bg);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.section-head__title {
  font-size: 40px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.section-head__desc {
  font-size: 17px;
  line-height: 30px;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  padding: 24px;
  border-radius: var(--r-panel);
  background: var(--surface);
}

.step__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.step__num {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
}

.step__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.step__desc {
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

/* --- 能力块 --- */

.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  display: grid;
  grid-template-columns: 460px 1fr;
  align-items: stretch;
  gap: 40px;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--surface);
}

.feature--flip {
  grid-template-columns: 1fr 460px;
}

.feature--flip .feature__copy {
  order: 2;
}

.feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.feature__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
}

.feature__title {
  font-size: 26px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.feature__desc {
  font-size: 15px;
  line-height: 26px;
  color: var(--muted);
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

/* 演示面板随内容撑高，避免固定高度裁掉尾行 */
.feature__visual {
  min-height: 340px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e9edf3;
  overflow: hidden;
}

/* --- 能力块里的三张小演示面板 --- */

.demo {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  gap: 14px;
}

.demo__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.demo__caption span {
  font-weight: 400;
  color: var(--muted-2);
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  border: 1.5px dashed #c9d3e2;
  border-radius: 10px;
  background: #fbfcfe;
  text-align: center;
}

.dropzone__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.dropzone__hint {
  font-size: 11px;
  color: var(--muted-2);
}

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.file-row__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-row__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-row__meta {
  font-size: 11px;
  color: var(--muted-2);
}

.file-row__meta--accent {
  color: var(--accent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.tag--ok {
  color: var(--green);
  background: var(--green-soft);
}

.tag--run {
  color: var(--accent);
  background: var(--accent-soft);
}

/* 文档编辑区演示 */

.paper {
  flex: 1;
  min-height: 0;
  padding: 20px 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-page);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.paper__h {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.paper__sel {
  position: relative;
  padding: 3px 4px;
  margin: 0 -4px;
  border-radius: 3px;
  background: rgba(18, 71, 204, 0.1);
  box-shadow: inset 0 0 0 1px rgba(18, 71, 204, 0.22);
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 13px;
  vertical-align: -2px;
  margin-left: 1px;
  background: var(--accent);
}

.float-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  width: max-content;
}

.float-bar__btn {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}

.float-bar__btn--on {
  color: var(--accent);
  background: var(--accent-soft);
}

.float-bar__sep {
  width: 1px;
  height: 14px;
  margin: 0 2px;
  background: var(--line);
}

/* 版本对比演示 */

.diff {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.diff__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  border-left: 2px solid transparent;
  background: var(--surface);
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(92, 100, 112, 0.5);
}

.diff__row--add {
  background: var(--green-soft);
  border-left-color: var(--green);
  color: var(--green);
  text-decoration: none;
}

.diff__k {
  flex: none;
  font-size: 11px;
  color: var(--muted-2);
  text-decoration: none;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
}

.timeline__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.timeline__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7cfda;
  flex: none;
}

.timeline__dot--on {
  background: var(--accent);
}

/* --- Footer --- */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 72px var(--gutter) 28px;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 340px;
  flex: none;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand-name {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.footer__tagline {
  font-size: 14px;
  line-height: 24px;
  color: var(--footer-text);
}

.footer__links {
  display: flex;
  gap: 72px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.footer__col a {
  font-size: 14px;
  color: var(--footer-text);
}

.footer__col a:hover {
  color: #fff;
}

.footer__divider {
  height: 1px;
  background: var(--footer-line);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--footer-muted);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a:hover {
  color: var(--footer-text);
}

.footer__motif {
  width: 100%;
  height: 96px;
}

/* ==========================================================================
   编辑器工作台
   ========================================================================== */

.workbench {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 640px;
  background: var(--bg);
  overflow: hidden;
}

/* --- 顶栏 --- */

.wb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex: none;
}

.wb-topbar__left,
.wb-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wb-topbar__right {
  gap: 10px;
}

.wb-topbar__sep {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.wb-doc-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.wb-save-status {
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
}

.wb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--r-btn);
  background: #fff;
  border: 1px solid var(--line-4);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.wb-btn:hover {
  background: var(--surface);
}

.wb-btn--primary {
  padding: 8px 16px;
  border: 0;
  color: #fff;
  background: var(--accent);
}

.wb-btn--primary:hover {
  background: #0f3cb0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 12px;
  font-weight: 600;
}

/* --- 工具栏 --- */

.wb-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex: none;
}

.wb-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wb-menu button {
  font-size: 13px;
  color: var(--ink-3);
}

.wb-menu button:hover {
  color: var(--accent);
}

.wb-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb-tools__sep {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.icon-btn:hover {
  background: var(--surface);
}

.font-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--r-chip);
  background: #f2f5f9;
  font-size: 12px;
  color: var(--ink-3);
}

.font-chip:hover {
  background: #e8edf5;
}

/* --- 主体三栏 --- */

.wb-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* 侧栏 */

.wb-sidebar {
  width: 264px;
  flex: none;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.wb-upload {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-btn);
  background: var(--accent);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.wb-upload:hover {
  background: #0f3cb0;
}

.wb-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wb-nav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-chip);
  font-size: 13px;
  color: var(--muted);
}

.wb-nav__item:hover {
  background: #eef1f5;
}

.wb-nav__item--active {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-1);
}

.wb-nav__item--active:hover {
  background: #fff;
}

.wb-list-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--muted-2);
}

.wb-filelist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.wb-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-chip);
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.wb-file:hover {
  background: #eef1f5;
}

.wb-file--active {
  background: #fff;
  box-shadow: var(--shadow-1);
}

.wb-file--active:hover {
  background: #fff;
}

.wb-file__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wb-file__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-file__meta {
  font-size: 11px;
  color: var(--muted-2);
}

.wb-file__meta--accent {
  color: var(--accent);
}

.wb-file__track {
  height: 3px;
  margin-top: 3px;
  border-radius: 2px;
  background: #e4e9f0;
  overflow: hidden;
}

.wb-file__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

.wb-sidebar__spacer {
  flex: 0 0 auto;
  min-height: 0;
}

.wb-storage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: var(--r-btn);
  background: #fff;
  border: 1px solid var(--line);
}

.wb-storage__text {
  font-size: 12px;
  color: var(--muted);
}

.wb-storage__track {
  height: 4px;
  border-radius: 2px;
  background: #eaeef3;
  overflow: hidden;
}

.wb-storage__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

/* 文档列 */

.wb-doc-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
}

.wb-canvas {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.wb-page {
  width: 760px;
  max-width: calc(100% - 48px);
  flex: none;
  padding: 52px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-page);
}

.wb-page__title {
  font-size: 30px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.wb-page__meta {
  font-size: 12px;
  color: var(--muted-2);
}

.wb-page__divider {
  height: 1px;
  background: var(--line);
}

.wb-page__h2 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink);
}

.wb-page__p {
  font-size: 14px;
  line-height: 26px;
  color: var(--ink-2);
}

/* 文档内的表格
   用真实 <table>：插入表格、编辑单元格、增删行列都靠浏览器原生表模型，
   grid 拼出来的假表格没法支持这些操作。 */

.doc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
  overflow: hidden;
  font-size: 13px;
}

.doc-table th,
.doc-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  min-width: 0;
}

.doc-table thead th {
  padding-top: 9px;
  padding-bottom: 9px;
  border-top: 0;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
}

.doc-table tr > *:last-child {
  border-right: 0;
}

.doc-table td {
  color: var(--ink-2);
}

/* 落地页「纸张」预览里的迷你表格。
   选择器带上 .doc-table 才压得住上面的基础规则（属性相同、比的是权重）。 */

.doc-table.doc-table--sm {
  font-size: 11px;
}

.doc-table.doc-table--sm th,
.doc-table.doc-table--sm td {
  padding: 6px 9px;
}

.doc-table.doc-table--sm thead th {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 10px;
}

.doc-table .doc-table__cell--name {
  font-weight: 500;
  color: var(--ink);
}

.doc-table .status--done,
.status--done {
  font-weight: 500;
  color: var(--green);
}

.doc-table .status--doing,
.status--doing {
  font-weight: 500;
  color: var(--accent);
}

.doc-table .status--todo,
.status--todo {
  color: var(--muted-2);
}

/* 状态栏 */

.wb-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 30px;
  padding: 0 16px;
  flex: none;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}

/* 右栏 */

.wb-panel {
  width: 296px;
  flex: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-left: 1px solid var(--line);
  overflow-y: auto;
}

.wb-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wb-panel__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 右栏：文档目录占满 ---------- */
/* 右栏的「批注」「版本记录」「在线成员」都已移除，连同 .wb-comment* /
   .wb-version* / .wb-member* / .wb-panel__spacer 的样式一起删掉了。
   右栏现在只剩文档目录一件事。 */

/* ==========================================================================
   响应式收敛（设计基准 1440）
   ========================================================================== */

@media (max-width: 1280px) {
  :root {
    --gutter: 72px;
  }
  .hero__title {
    font-size: 46px;
    line-height: 58px;
  }
  .feature,
  .feature--flip {
    grid-template-columns: 1fr 1fr;
  }
  .feature--flip .feature__copy {
    order: 0;
  }
  .mini__side--right {
    display: none;
  }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 40px;
  }
  .site-nav {
    display: none;
  }
  .hero__title {
    font-size: 38px;
    line-height: 48px;
  }
  .hero__sub {
    font-size: 16px;
    line-height: 28px;
  }
  .section-head__title {
    font-size: 30px;
    line-height: 40px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer__top {
    flex-direction: column;
  }
  .footer__brand {
    width: auto;
  }
  .footer__links {
    gap: 48px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .wb-sidebar {
    display: none;
  }
  .wb-panel {
    display: none;
  }
  .mini__side {
    display: none;
  }
}

/* ==========================================================================
   交互层 · 配套 app.js
   ========================================================================== */

/* 可点击元素补上手型 */
.wb-file,
.mini__file,
.dropzone,
.mini__upload,
.wb-upload {
  cursor: pointer;
}

/* ---------- 全页拖拽遮罩 ---------- */
.drop-veil {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 23, 38, 0.36);
  opacity: 0;
  transition: opacity 0.18s ease;
  /* 必须穿透，否则 drop 事件会被遮罩吞掉 */
  pointer-events: none;
}

.drop-veil--on {
  opacity: 1;
}

.drop-veil__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px 46px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px dashed #b9c8e6;
  box-shadow: 0 20px 48px -14px rgba(14, 23, 38, 0.32);
}

.drop-veil__title {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.drop-veil__hint {
  font-size: 13px;
  color: var(--muted-2);
}

/* ---------- 拖拽经过时的落点反馈 ---------- */
.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.wb-filelist.is-dragover,
.wb-canvas.is-dragover,
.mini__side.is-dragover {
  outline: 2px dashed var(--accent);
  outline-offset: -6px;
  background: rgba(18, 71, 204, 0.04);
  border-radius: 8px;
}

/* ---------- 上传中的文件行 ---------- */
.wb-file__fill {
  transition: width 0.12s linear;
}

.wb-file__track {
  transition: height 0.25s ease, opacity 0.25s ease, margin 0.25s ease;
}

.wb-file--uploading {
  cursor: default;
}

.wb-file--done .wb-file__track,
.wb-file__track--done {
  height: 0;
  opacity: 0;
  margin-top: 0;
}

.wb-file--uploading,
.wb-file--done,
.file-row--new {
  animation: rowIn 0.32s cubic-bezier(0.25, 0.8, 0.3, 1);
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 官网：上传完成卡片与解析面板 ---------- */
.upload-toast.is-pop {
  animation: popCard 0.5s cubic-bezier(0.25, 0.8, 0.3, 1);
}

@keyframes popCard {
  0% {
    transform: translateY(6px) scale(0.992);
  }
  60% {
    transform: translateY(-2px) scale(1.006);
  }
  100% {
    transform: none;
  }
}

.dropzone__hint.is-done {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- 轻提示 ---------- */
.toast-host {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-3);
  border-left: 3px solid var(--line-3);
  box-shadow: 0 14px 32px -12px rgba(14, 23, 38, 0.24);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.25, 0.8, 0.3, 1);
}

.toast--in {
  opacity: 1;
  transform: none;
}

.toast--info {
  border-left-color: var(--accent);
}

.toast--ok {
  border-left-color: var(--green);
}

.toast__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.toast__desc {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted-2);
  word-break: break-all;
}

/* ==========================================================================
   编辑能力层 · 配套 editor-tools.js
   ========================================================================== */

/* ---------- 工具栏：菜单触发器 ---------- */
.wb-menu button {
  padding: 5px 7px;
  border-radius: 5px;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.wb-menu button:hover {
  background: var(--surface);
}

.wb-menu button.is-open {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- 浮层菜单 ---------- */
.pop {
  position: fixed;
  z-index: 900;
  min-width: 212px;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-3);
  box-shadow: 0 18px 42px -14px rgba(14, 23, 38, 0.3), 0 2px 6px rgba(14, 23, 38, 0.06);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  pointer-events: none;
}

.pop.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.pop__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-2);
  text-align: left;
  white-space: nowrap;
}

.pop__item:hover {
  background: var(--surface);
  color: var(--ink);
}

.pop__item.is-on {
  color: var(--accent);
  font-weight: 500;
}

.pop__item.is-off {
  opacity: 0.38;
  pointer-events: none;
}

.pop__ico {
  flex: none;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}

.pop__label {
  flex: 1;
}

.pop__key {
  flex: none;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.2px;
  color: var(--muted-2);
}

.pop__item.is-on .pop__key {
  color: var(--accent);
}

.pop__sep {
  height: 1px;
  margin: 5px 6px;
  background: var(--line);
}

.pop__head {
  padding: 7px 9px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--muted-2);
}

/* ---------- 工具栏按钮 / 字体样式的激活态 ---------- */
.icon-btn.is-on {
  background: var(--accent-soft);
}

.icon-btn.is-on svg [stroke] {
  stroke: var(--accent);
}

.icon-btn.is-on svg [fill]:not([fill='none']) {
  fill: var(--accent);
}

.icon-btn.is-off {
  opacity: 0.32;
  pointer-events: none;
}

.font-chip.is-open {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- 侧栏文件列表容器 ----------
   原来是「文件 / 目录」分段控件 + 两个面板，目录搬到右栏后分段控件取消，
   .wb-seg* 的样式一并删掉。 */

.wb-pane {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.wb-pane[hidden] {
  display: none;
}

/* ---------- 文档目录 ---------- */
.wb-outline {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.wb-outline__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 6px 8px 6px 0;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 19px;
  color: var(--muted);
  text-align: left;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.wb-outline__item:hover {
  background: #eef1f5;
  color: var(--ink-3);
}

.wb-outline__item.is-on {
  background: #fff;
  color: var(--accent);
  font-weight: 500;
  box-shadow: var(--shadow-1);
}

.wb-outline__mark {
  flex: none;
  width: 2px;
  align-self: stretch;
  min-height: 15px;
  border-radius: 2px;
  background: transparent;
}

.wb-outline__item.is-on .wb-outline__mark {
  background: var(--accent);
}

.wb-outline__item[data-level='2'] {
  margin-left: 12px;
}

.wb-outline__item[data-level='3'] {
  margin-left: 24px;
}

.wb-outline__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-outline__empty {
  padding: 12px 2px;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted-2);
}

/* ---------- 可编辑正文 ---------- */
.wb-page {
  transition: box-shadow 0.2s ease;
}

.wb-page:focus-within {
  box-shadow: var(--shadow-page), 0 0 0 1px rgba(18, 71, 204, 0.22);
}

.wb-page__body {
  min-height: 220px;
  outline: none;
  caret-color: var(--accent);
}

.wb-page__body ::selection {
  background: rgba(18, 71, 204, 0.16);
}

.wb-page__body > * {
  margin: 0 0 16px;
}

.wb-page__body > *:last-child {
  margin-bottom: 0;
}

.wb-page__body h1 {
  font-size: 26px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.wb-page__body h2 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink);
}

.wb-page__body h3 {
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink);
}

.wb-page__body p {
  font-size: 14px;
  line-height: 26px;
  color: var(--ink-2);
}

.wb-page__body ul,
.wb-page__body ol {
  padding-left: 22px;
  font-size: 14px;
  line-height: 26px;
  color: var(--ink-2);
}

.wb-page__body ul {
  list-style: disc;
}

.wb-page__body ol {
  list-style: decimal;
}

.wb-page__body li {
  margin-bottom: 4px;
}

.wb-page__body li::marker {
  color: var(--muted-2);
}

.wb-page__body blockquote {
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-btn) var(--r-btn) 0;
  background: var(--surface);
  font-size: 14px;
  line-height: 26px;
  color: var(--ink-2);
}

.wb-page__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wb-page__body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-btn);
  cursor: pointer;
}

.wb-page__body img.is-picked {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 图片拖进文档时，正文亮一下作为落点提示 */
.wb-page__body.is-imgdrop {
  outline: 2px dashed var(--accent);
  outline-offset: 10px;
  border-radius: 10px;
  background: rgba(18, 71, 204, 0.03);
}

.wb-page__body hr {
  height: 1px;
  border: 0;
  background: var(--line-2);
}

.wb-page__body b,
.wb-page__body strong {
  font-weight: 700;
  color: var(--ink);
}

.wb-page__body i,
.wb-page__body em {
  font-style: italic;
}

.wb-page__body u {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wb-page__body s,
.wb-page__body strike {
  color: var(--muted-2);
}

.wb-page__body.is-flash [data-flash] {
  animation: headingFlash 1.1s ease;
}

@keyframes headingFlash {
  0% {
    background: rgba(18, 71, 204, 0.14);
  }
  100% {
    background: transparent;
  }
}

/* ---------- 保存状态 ---------- */
.wb-save-status.is-busy {
  color: var(--accent);
}

/* ---------- 弹窗 ---------- */
.ws-veil {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 23, 38, 0.34);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.ws-veil.is-on {
  opacity: 1;
}

.ws-modal {
  width: 392px;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 20px;
  border-radius: var(--r-panel);
  background: #fff;
  box-shadow: 0 24px 64px -18px rgba(14, 23, 38, 0.42);
  transform: translateY(10px) scale(0.99);
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.3, 1);
}

.ws-veil.is-on .ws-modal {
  transform: none;
}

.ws-modal__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.ws-modal__desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted-2);
}

.ws-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.ws-field__label {
  font-size: 12px;
  color: var(--muted);
}

.ws-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line-4);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 71, 204, 0.12);
}

.ws-row {
  display: flex;
  gap: 10px;
}

.ws-row .ws-field {
  flex: 1;
  min-width: 0;
}

.ws-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}

.ws-switch input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.ws-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.ws-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line-4);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}

.ws-btn:hover {
  background: var(--surface);
}

.ws-btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.ws-btn--primary:hover {
  background: #0f3cb0;
}

.ws-keys {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  max-height: min(430px, 56vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ws-keys__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.ws-keys__row:last-child {
  border-bottom: 0;
}

.ws-kbd {
  flex: none;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--muted);
}

.ws-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
  overflow: hidden;
  background: var(--line-2);
}

.ws-stats__cell {
  padding: 12px 14px;
  background: #fff;
}

.ws-stats__num {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.ws-stats__label {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ==========================================================================
   编辑工作台 · 栏位重构
   左栏＝文档库（最近 / 我的 / 共享），右栏＝文档目录
   ========================================================================== */

/* ---------- 左栏分组导航
   原来是 <a>，现在换成 <button>（不再靠 href="#" 占位），
   按钮的默认底/边框/字体都得清掉，否则会盖住原有视觉。 ---------- */

.wb-nav__item {
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.wb-nav__item--active,
.wb-nav__item--active:hover {
  background: #fff;
}

.wb-nav__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-nav__count {
  flex: none;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e2e7ee;
  color: var(--muted-2);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}

.wb-nav__item--active .wb-nav__count {
  background: var(--accent-soft);
  color: var(--accent);
}

.wb-pane--files {
  gap: 8px;
}

/* 分组筛选靠 hidden 属性，但 .wb-file 自带 display:flex 会盖掉 UA 的
   [hidden]{display:none}，必须显式补一条，否则筛选完全不生效。 */

.wb-file[hidden] {
  display: none;
}

/* ---------- 右栏：文档目录占满（在线成员已下线） ---------- */

.wb-panel {
  overflow: hidden;
}

.wb-panel > .wb-outline {
  flex: 1;
  min-height: 0;
}

/* 同理：.wb-panel 是 display:flex，要显式处理 hidden */

#wbPanel[hidden] {
  display: none;
}

.wb-panel__count {
  flex: none;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

/* ---------- 落地页迷你编辑器右栏：文档目录 ----------
   跟工作台右栏同一个说法，别让官网插图和真实界面各说各的。 */

.mini__toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.mini__toc-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}

.mini__toc-item.is-on {
  color: var(--accent);
  font-weight: 600;
}

.mini__toc-mark {
  flex: none;
  width: 2px;
  height: 10px;
  border-radius: 1px;
  background: #d7dde6;
}

.mini__toc-item.is-on .mini__toc-mark {
  background: var(--accent);
}

.mini__toc-item[data-lv='2'] {
  padding-left: 8px;
}

/* 快捷键表又加了几组（查找替换 / 保存到本地等），12 行按原来 430px 会
   把最后一行裁掉半截，放宽到能整行显示，窗口矮了才滚动。 */

.ws-keys {
  max-height: min(500px, 68vh);
}

/* ---------- 分享弹窗 ---------- */

.ws-perm {
  display: flex;
  gap: 2px;
  margin-top: 12px;
  padding: 2px;
  border-radius: var(--r-btn);
  background: #e9edf3;
}

.ws-perm__btn {
  flex: 1;
  padding: 6px 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.ws-perm__btn:hover {
  color: var(--ink-3);
}

.ws-perm__btn.is-on {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-1);
}

.ws-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 3px 3px 3px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
}

.ws-link__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-people {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.ws-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.ws-person .avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
  border-color: transparent;
}

.ws-person__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-person__role {
  flex: none;
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- 查找替换 ---------- */

.ws-find__meta {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-2);
}

.ws-hit {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
}

.ws-find__acts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ws-find__acts .ws-btn {
  flex: 1;
}

/* ---------- 左栏文件区标题行：列表标签 + 新建文档 ---------- */

.wb-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wb-newdoc {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px 3px 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-chip);
  background: #fff;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}

.wb-newdoc:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.wb-newdoc:hover svg path {
  stroke: var(--accent);
}

/* ---------- 标题可编辑：给一点「这里能改」的暗示，但不喧宾夺主 ----------
   h1 在全局 reset 里已经 margin:0/padding:0，所以左右负边距 + 等量内边距
   只是把高亮底色向外扩 8px，文字位置不动。 */

.wb-page__title[contenteditable] {
  margin: 0 -8px;
  padding: 0 8px;
  border-radius: 8px;
  cursor: text;
  transition: background 140ms ease;
}

.wb-page__title[contenteditable]:hover {
  background: rgba(18, 71, 204, 0.04);
}

.wb-page__title[contenteditable]:focus {
  outline: none;
  background: rgba(18, 71, 204, 0.06);
}

/* ---------- 实时保存：还没落盘时顶栏给个圆点 ---------- */

.wb-save-status.is-dirty {
  color: var(--amber-ink);
}

.wb-save-status.is-dirty::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: 1px;
}

/* ---------- 选中图片后浮出的设置条 ---------- */
.img-bar {
  position: fixed;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: #0e1726;
  box-shadow: var(--shadow-2);
}

.img-bar.is-on {
  display: flex;
}

.img-bar__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #cdd5e0;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
}

.img-bar__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.img-bar__btn--danger {
  color: #ffb0b0;
  margin-left: 4px;
}

.img-bar__btn--danger:hover {
  background: rgba(220, 38, 38, 0.32);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .drop-veil,
  .toast,
  .wb-file__fill,
  .wb-file__track,
  .pop,
  .ws-veil,
  .ws-modal,
  .wb-page {
    transition: none;
  }
  .wb-file--uploading,
  .wb-file--done,
  .file-row--new,
  .upload-toast.is-pop,
  .wb-page__body.is-flash [data-flash] {
    animation: none;
  }
}
