@charset "UTF-8";
/* BasinLens help-center Pages Common Styles */

/* Top navigation styles */
#topnav {
  padding: 0 1.5rem!important;
}
#topnav #topnav-wrapper {
  max-width: 100%!important;
}
/* Sidebar styles */
.sidebar-link {
  display: block;
  padding: 0.25rem 1.5rem;
  border-radius: 0.375rem;
  transition: color 0.2s;
}
.sidebar-link.active,
.sidebar-link:hover {
  color: #fb923c; /* text-orange-400 */
  background-color:#fff7ed /* bg-orange-50 */
}
/* TOC styles */
.toc-item {
  transition: all 0.2s;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}
.toc-item:hover {
  color: #fb923c; /* text-orange-400 */
}
.toc-item.active {
  color: #fb923c; /* text-orange-400 */
}
.h3-item {
  padding-left: 1rem;
}
.h4-item {
  padding-left: 2rem;
}

/* 内容样式 */
.help-center-content {
  line-height: 1.75;
  color: #334155; /* gray-700 */
  position: relative; /* 为图片放大功能添加相对定位 */
}

.help-center-content h1,
.help-center-content h2,
.help-center-content h3,
.help-center-content h4,
.help-center-content h5,
.help-center-content h6 {
  font-weight: 600;
  line-height: 1.5;
  color: #1e293b; /* gray-800 */
}

.help-center-content h1 {
  font-size: 1.875rem; /* text-3xl */
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.help-center-content h2 {
  font-size: 1.5rem; /* text-2xl */
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  /* 帮助中心的 h2 保留下划线 */
  padding-bottom: 0.3rem;
}

.help-center-content h3 {
  font-size: 1.25rem; /* text-xl */
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.help-center-content h4 {
  font-size: 1.125rem; /* text-lg */
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.help-center-content p {
  margin-bottom: 1rem;
}

.help-center-content strong {
  font-weight: 600;
}

.help-center-content img {
  width: 100%; /* 使图片宽度自适应容器 */
  max-width: 1024px; /* 限制图片最大宽度 */
  height: auto;
  margin: 2em auto 2em 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  display: block;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: zoom-in; /* 鼠标悬停在图片上时显示放大图标 */
  transition: all 0.3s ease;
}

/* 图片惰性加载样式 */
.help-center-content img.lazy-loading {
  filter: blur(2px);
  opacity: 0.6;
  background-color: #f1f5f9; /* gray-100 */
  min-height: 200px; /* 占位符最小高度 */
}

.help-center-content img.lazy-loaded {
  filter: none;
  opacity: 1;
}

/* 为没有data-src属性的图片（直接加载的图片）设置过渡动画 */
.help-center-content img:not([data-src]) {
  opacity: 0;
  animation: fadeInImage 0.5s ease-in-out forwards;
}

@keyframes fadeInImage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 图片放大功能相关样式 */
.help-center-content .img-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  /* 仅保留淡入动画，淡出时直接消失 */
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-out;
}

.help-center-content .img-overlay.active {
  opacity: 1;
  visibility: visible;
}

.help-center-content .img-overlay img {
  width: auto;
  height: auto;
  max-width: 95vw; /* 使用视口宽度，提高空间利用率 */
  max-height: 95vh; /* 使用视口高度，提高空间利用率 */
  margin: 0;
  object-fit: contain;
  transform: scale(0.9);
  /* 仅保留放大动画，取消缩小动画 */
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-out;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1); /* 添加微妙的白色边框 */
  border-radius: 8px; /* 轻微圆角 */
}

.help-center-content .img-overlay.active img {
  transform: scale(1);
}

.help-center-content a {
  color: #f97316;
  text-decoration: none;
  border-bottom: 1px dashed #f97316;
  transition: all 0.3s ease;
}

.help-center-content a:hover {
  color: #ea580c;
  border-bottom: 1px solid #ea580c;
}

.help-center-content pre {
  background-color: #f8fafc;
  border-radius: 0.375rem;
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid #e2e8f0;
}

.help-center-content code {
  background-color: #f1f5f9;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  color: #334155;
}

.help-center-content pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.help-center-content blockquote {
  max-width: 1024px;
  background-color: #fff7ed; /* orange-50 */
  padding: 1rem;
  border: 1px solid #fdba74; /* orange-300 */
  border-radius: 0.5rem;
  margin: 1.5em 0;
  color: #78350f; /* amber-800 */
}

.help-center-content blockquote p:last-child {
  margin-bottom: 0;
}

.help-center-content ul,
.help-center-content ol {
  margin: 1em 0 1.5em 0;
  padding-left: 1.25rem;
}

.help-center-content ul {
  list-style-type: disc;
  list-style-position: outside;
}

.help-center-content ul ul {
  list-style-type: circle;
}

.help-center-content ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.help-center-content li {
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
}

.help-center-content ul li::marker {
  color: #f97316;/* orange-500 */
}

.help-center-content li > ul,
.help-center-content li > ol {
  margin-top: 0.5em;
  margin-bottom: 0;
}

.help-center-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  overflow-x: auto;
  display: block;
}

.help-center-content table th,
.help-center-content table td {
  border: 1px solid #e2e8f0;
  padding: 0.75em;
  text-align: left;
}

.help-center-content table th {
  background-color: #f8fafc;
  font-weight: 600;
}

.help-center-content table tr:nth-child(even) {
  background-color: #f8fafc;
}

.help-center-content hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 2em 0;
}
