/* 电脑端布局 */
.app { display: flex; min-height: 100vh; }

.side {
  width: 236px; flex: none; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, #0f2d5c 0%, #14315f 55%, #16396c 100%);
  color: #c8d8ee; display: flex; flex-direction: column; z-index: 30;
  box-shadow: 4px 0 20px rgba(15, 45, 92, .18);
}
.side .logo { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.side .logo .en { font-size: 9px; letter-spacing: 1.6px; color: var(--gold-2); opacity: .85; }
.side .logo h1 { font-size: 16px; color: #fff; margin: 5px 0 2px; letter-spacing: 2px; font-weight: 700; }
.side .logo .sub { font-size: 11px; color: rgba(255, 255, 255, .5); letter-spacing: 1px; }
.side .nav { flex: 1; padding: 12px 0; overflow: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 20px; cursor: pointer;
  font-size: 13px; border-left: 3px solid transparent; transition: .16s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: rgba(200, 164, 92, .15); border-left-color: var(--gold); color: #fff; font-weight: 600; }
.nav-item .ico { width: 18px; text-align: center; opacity: .9; }
.nav-item.sub-item { padding: 8px 20px 8px 44px; font-size: 12px; opacity: .82; }
.nav-item.sub-item .sub-dot { font-size: 14px; opacity: .7; }
.nav-item.sub-item.active { font-weight: 600; }
.nav-item .cnt {
  margin-left: auto; background: var(--danger); color: #fff; font-size: 10px;
  min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.side .foot { padding: 12px 20px; font-size: 11px; color: rgba(255, 255, 255, .38); border-top: 1px solid rgba(255, 255, 255, .08); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  height: 60px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 24px;
  background: rgba(255, 255, 255, .74); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.top h2 { font-size: 16px; margin: 0; color: var(--navy); font-weight: 700; letter-spacing: 1px; }
.top .crumb { font-size: 12px; color: var(--muted); }
.search {
  display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 6px 14px; min-width: 230px;
}
.search input { border: none; outline: none; background: transparent; width: 100%; font-size: 13px; }
.bell { position: relative; cursor: pointer; font-size: 18px; }
.bell .dot {
  position: absolute; top: -2px; right: -5px; background: var(--danger); color: #fff;
  font-size: 9px; min-width: 15px; height: 15px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.me { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.me .avatar {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-2), var(--gold)); color: #fff; font-weight: 700; font-size: 13px;
}
.me .nm { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.me .rl { font-size: 11px; color: var(--muted); }

.content { padding: 20px 24px 48px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .7); transition: .16s;
}
.chip:hover { border-color: var(--navy-3); }
.chip.on { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff; border-color: transparent; }

.ms-item {
  display: flex; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; background: rgba(255, 255, 255, .72); cursor: pointer; transition: .16s; align-items: center;
}
.ms-item:hover { border-color: var(--navy-3); transform: translateX(3px); box-shadow: var(--shadow); }
.ms-item .t { font-size: 14px; font-weight: 600; color: var(--navy); }
.ms-item .m { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ms-item .go { color: var(--gold); font-size: 18px; }

/* 流程进度条 */
.chain { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; padding: 6px 0; }
.chain .nd { display: flex; flex-direction: column; align-items: center; width: 58px; flex: none; }
.chain .dot {
  width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line); background: #fff;
  position: relative; z-index: 2;
}
.chain .nd.done .dot { background: var(--navy-2); border-color: var(--navy-2); }
.chain .nd.now .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 164, 92, .22); }
.chain .nd.reject .dot { background: var(--danger); border-color: var(--danger); }
.chain .lb { font-size: 10px; color: var(--muted); margin-top: 5px; text-align: center; line-height: 1.3; }
.chain .nd.now .lb { color: #8a6a20; font-weight: 700; }
.chain .nd.done .lb { color: var(--navy-2); }
.chain .ln { flex: 1; height: 2px; background: var(--line); margin-top: 7px; min-width: 8px; }
.chain .ln.done { background: var(--navy-2); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab {
  padding: 8px 16px; cursor: pointer; font-size: 13px; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--navy-2); }
.tab.on { color: var(--navy); font-weight: 700; border-bottom-color: var(--gold); }

.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.attach {
  position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
}
.attach img { width: 100%; height: 92px; object-fit: cover; display: block; }
.attach .nm { font-size: 11px; padding: 4px 6px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach .rm { position: absolute; right: 4px; top: 4px; background: rgba(0, 0, 0, .5); color: #fff; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; }

/* 正文 + 图片附件合并为同一区域 */
.body-editor { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.body-editor .body-edit {
  display: block; width: 100%; border: none; border-radius: 0; box-shadow: none;
  min-height: 280px; padding: 14px 16px;
}
.body-editor .body-edit:focus { border: none; box-shadow: none; }
.body-editor .body-ro { padding: 14px 16px; }
.body-attach { border-top: 1px dashed var(--line); padding: 10px 12px 12px; background: rgba(26, 84, 144, .035); }
.attach-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; align-items: flex-start; }
.attach-row .attach { width: 136px; }
.attach img { cursor: zoom-in; }
/* 编辑/预览切换条 */
.be-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.body-edit.drag { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(26, 84, 144, .12); }

.op-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(255, 255, 255, .78); }
.op-box h4 { margin: 0 0 10px; font-size: 13px; color: var(--navy); }

.step-flow { display: flex; gap: 10px; flex-wrap: wrap; }
.step-card {
  flex: 1; min-width: 168px; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: rgba(255, 255, 255, .74); position: relative;
}
.step-card .n { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.step-card .t { font-size: 13px; font-weight: 700; color: var(--navy); margin: 3px 0 5px; }
.step-card .d { font-size: 11.5px; color: var(--text-2); line-height: 1.75; }

@media (max-width: 1180px) {
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .side { width: 62px; }
  .side .logo h1, .side .logo .sub, .side .logo .en, .nav-item span:not(.ico):not(.cnt), .side .foot { display: none; }
  .nav-item { justify-content: center; padding: 13px 0; }
  .content { padding: 14px; }
}
