/* 导学师规范：右下角「全部注释」+ 侧栏（对齐 6Q_leader_battalion notes） */

.feat-notes-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  cursor: pointer;
  font: 600 13px/1 "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

.feat-notes-btn:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.feat-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  z-index: 9991;
}
.feat-mask[hidden],
.feat-notes-panel[hidden] {
  display: none !important;
}

.feat-notes-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(720px, 96vw);
  height: 100%;
  z-index: 9992;
  background: #fff;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #0f172a;
}

.feat-notes-panel.is-open {
  transform: translateX(0);
}

.feat-notes-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.feat-notes-panel__head strong {
  font-size: 16px;
}

.feat-ver {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #595959;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.feat-notes-panel__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.feat-link {
  font-size: 12px;
  font-weight: 600;
  color: #1677ff;
  text-decoration: none;
}

.feat-link:hover {
  text-decoration: underline;
}

.feat-x {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.feat-x:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.feat-notes-panel__body {
  flex: 1;
  overflow: auto;
  padding: 20px 24px 40px;
}

.feat-notes-panel__body > h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feat-notes-lead {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}

.feat-notes-ver {
  display: inline-block;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #595959;
  margin: 0 0 16px;
}

.feat-notes-toc {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.feat-notes-toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
}

.feat-notes-toc a {
  color: #1677ff;
  text-decoration: none;
  font-weight: 600;
}

.feat-notes-toc a:hover {
  text-decoration: underline;
}

.feat-notes-sec {
  padding: 14px 0 18px;
  border-top: 1px dashed #f0f0f0;
}

.feat-notes-sec:first-of-type {
  border-top: none;
}

.feat-notes-sec h3 {
  margin: 0 0 6px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feat-notes-idx {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #1677ff;
  background: #e6f4ff;
  border: 1px solid #91caff;
  border-radius: 10px;
  padding: 1px 7px;
}

.feat-notes-sec h4 {
  margin: 14px 0 6px;
  font-size: 13px;
  color: #334155;
}

.feat-notes-sec ul,
.feat-notes-sec ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: #334155;
}

.feat-notes-tips {
  margin: 0 0 8px;
  font-size: 12px;
  color: #8c8c8c;
}

.feat-notes-bodyhtml {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.6;
}

.feat-notes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 8px 0 4px;
}

.feat-notes-table th,
.feat-notes-table td {
  border: 1px solid #f0f0f0;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.feat-notes-table th {
  background: #f6ffed;
  font-weight: 600;
  color: #0f172a;
}

/* 导学师：仅迭代项小红点 */
.feat-dot-inline {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: #ff4d4f;
  vertical-align: super;
}

.feat-empty {
  color: #8c8c8c;
  font-size: 13px;
}

.feat-case {
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.feat-case__title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feat-case__steps {
  margin: 4px 0;
  padding-left: 18px;
  font-size: 13px;
}

.feat-case__expect {
  margin: 6px 0 0;
  font-size: 12px;
  color: #475569;
}

.feat-flow {
  font-size: 11px;
  background: #f8fafc;
  padding: 10px;
  border-radius: 8px;
  overflow: auto;
  white-space: pre-wrap;
}

.feat-mermaid {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
}

/* 兼容旧类名：避免残留样式炸裂 */
.feat-fab,
.feat-panel,
.feat-note,
.feat-dots,
.feat-dot {
  display: none !important;
}
