/* 
 * 悬浮按钮样式
 */
.feature-doc-btn {
  position: fixed !important;
  bottom: 30px !important;
  left: 30px !important;
  width: 50px !important;
  height: 50px !important;
  background-color: var(--primary, #0056D2) !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  opacity: 0.8 !important;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s !important;
  z-index: 999999 !important;
  border: none !important;
  visibility: visible !important;
}

.feature-doc-btn:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.feature-doc-btn i {
  font-size: 20px;
}

/*
 * 遮罩层
 */
.feature-doc-overlay {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 999998 !important;
}

.feature-doc-overlay.open {
  display: block !important;
}

/*
 * 抽屉面板
 */
.feature-doc-drawer {
  position: fixed !important;
  top: 0 !important;
  left: -620px; /* 默认隐藏在左侧屏幕外 */
  width: 600px !important;
  height: 100vh !important;
  background: #fff !important;
  box-shadow: 4px 0 16px rgba(0,0,0,0.1) !important;
  z-index: 999999 !important;
  transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  display: flex !important;
  flex-direction: column !important;
}

.feature-doc-drawer.open {
  left: 0;
}

/* 
 * 头部
 */
.feature-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line, #eee);
  background: #f8f9fa;
  flex-shrink: 0;
}

.feature-doc-header h2 {
  font-size: 18px;
  margin: 0;
  color: #333;
}

.feature-doc-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.feature-doc-close:hover {
  background: #eee;
  color: #000;
}

/* 
 * Markdown 内容区
 */
.feature-doc-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  line-height: 1.6;
  color: #333;
  font-size: 14px;
}

/* 常用 Markdown 排版优化 */
.feature-doc-content h1, 
.feature-doc-content h2, 
.feature-doc-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #111;
}

.feature-doc-content h1 { font-size: 22px; }
.feature-doc-content h2 { font-size: 18px; border-bottom: 1px solid #eee; padding-bottom: 8px;}
.feature-doc-content h3 { font-size: 16px; font-weight: 600; }

.feature-doc-content p {
  margin-bottom: 1em;
  color: #555;
}

.feature-doc-content ul, .feature-doc-content ol {
  margin-bottom: 1em;
  padding-left: 20px;
  color: #555;
}

.feature-doc-content li {
  margin-bottom: 4px;
}

.feature-doc-content .table-wrapper {
  overflow-x: auto;
  margin-bottom: 1em;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.feature-doc-content table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 13px;
}

.feature-doc-content th, .feature-doc-content td {
  border: 1px solid #e0e0e0;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.feature-doc-content th {
  background: #f8f9fa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.feature-doc-content tr:nth-child(even) {
  background: #fafafa;
}

.feature-doc-content tr:hover {
  background: #f0f5ff;
}

.feature-doc-content code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
}

/* 
 * 异常反馈
 */
.feature-doc-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #888;
  font-size: 14px;
}
