/* 第四版：完全不同的设计语言
   - 左侧固定侧边栏导航
   - 右侧长文档式内容
   - 无大图 hero，无卡片阴影
   - 更偏“文档/知识库”站点风格
*/

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

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #151515;
  line-height: 1.8;
}

a {
  color: #006f6b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

/* 左侧侧边栏：深色 + 竖排导航 */
.sidebar {
  background: #111827;
  color: #e5e7eb;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.logo-block h1 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.logo-block p {
  font-size: 0.8rem;
  color: #9ca3af;
}

.nav-block h2,
.quick-block h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

.nav-list,
.quick-list {
  list-style: none;
  font-size: 0.9rem;
}

.nav-list li + li,
.quick-list li + li {
  margin-top: 0.35rem;
}

.nav-link {
  display: block;
  padding: 0.25rem 0.1rem;
  border-left: 2px solid transparent;
  color: #e5e7eb;
}

.nav-link:hover {
  border-color: #047857;
}

.nav-link.is-active {
  border-color: #38bdf8;
  color: #f9fafb;
  font-weight: 600;
}

.quick-list a {
  color: #9ca3af;
}

.quick-list a:hover {
  color: #e5e7eb;
}

.sidebar-foot {
  margin-top: auto;
  font-size: 0.75rem;
  color: #6b7280;
}

/* 右侧内容区：文档式布局 */
.main {
  padding: 1.8rem 2.2rem 2.4rem;
  max-width: 920px;
}

.page-title {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.page-sub {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1.4rem;
}

.meta-line {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 1.4rem;
}

.section {
  margin-bottom: 1.8rem;
}

.section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid #10b981;
  padding-left: 0.5rem;
}

.section p {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  text-indent: 2em;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 0.6rem;
}

.pill {
  font-size: 0.78rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
}

.list-block {
  margin-top: 0.4rem;
}

.list-block ul {
  padding-left: 1.4rem;
  font-size: 0.93rem;
}

.list-block li + li {
  margin-top: 0.3rem;
}

.inline-link {
  color: #0f766e;
}

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

/* 列表页：条目式目录 */
.list-page-title {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.list-intro {
  font-size: 0.94rem;
  color: #4b5563;
  margin-bottom: 1.1rem;
}

.article-list {
  list-style: none;
}

.article-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.article-item-title {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.article-item-title a {
  color: #111827;
}

.article-item-title a:hover {
  color: #0f766e;
}

.article-item-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.2rem;
}

.article-item-desc {
  font-size: 0.88rem;
  color: #4b5563;
}

/* 文章页通用 */
.article-content p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-indent: 2em;
}

.article-content h2 {
  font-size: 1.1rem;
  margin: 0.8rem 0 0.4rem;
  border-left: 3px solid #10b981;
  padding-left: 0.45rem;
}

.article-cover {
  margin-bottom: 0.9rem;
}

.article-cover img {
  width: 100%;
  border-radius: 0.6rem;
}

.article-meta {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* 响应式：窄屏下侧边栏移动到上方，变成顶部导航条 */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: column;
    gap: 1rem;
  }
  .main {
    padding: 1.4rem 1.2rem 2rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  .sidebar {
    padding: 1rem 1rem 1.1rem;
  }
}

