/* 定义帮助中心头部高度变量，供 calc() 与定位使用 */
:root{ --hc-header-h: 56px; }
/* 去掉浏览器默认 8px 外边距，避免容器与视口产生额外空隙 */
html, body{ margin: 0; }

.hc-shell{/* max-width: 1200px; */margin: 0px auto;display: flex;align-items: flex-start;gap: 16px;box-shadow: 0 6px 16px rgba(15,23,42,.06);min-height: calc(100vh - var(--hc-header-h));}



/* 顶部固定 Header */
.hc-header{   position: fixed;    inset: 0 0 auto 0;    height: var(--hc-header-h);   background: #fff;     z-index: 20; display:none; }
.hc-article-cover img {width: 100%;}
.hc-header .inner{        max-width: 1200px;     margin: 0 auto;     height: 100%;     display: flex;     align-items: center;     justify-content: space-between;     padding: 9px 12px;     box-sizing: border-box;     box-shadow: 0 6px 16px rgba(15,23,42,.06); }
.hc-header .logo{ font-weight: 700; }
.hc-header .nav{ display: flex; gap: 16px; margin-left: auto; }
.hc-header a{ color: #111827; text-decoration: none; }
.hc-header .left{ display:flex; align-items:center; gap:10px; justify-self:start; }
.hc-menu-btn{ display:none; border:1px solid #e5e7eb; background:#fff; border-radius:8px; padding:6px 10px; font-size:16px; }
/* 仅移动端显示头部与占位 */
@media (max-width: 768px){
  .hc-header{ display:block; }
  .hc-header-spacer{ height: var(--hc-header-h); }
}
@media (min-width: 769px){
  .hc-header-spacer{ display:none; }
}

/* 左右栏高度适配 */
.hc-left.hc-sticky, .hc-right.hc-sticky {position: sticky;/* top: var(--hc-header-h); */height: calc(100vh - var(--hc-header-h));}
.hc-left{flex:0 0 260px}
.hc-main{flex:1 1 auto;min-width:0}
.hc-right{flex:0 0 280px}
.hc-left .profile{display:flex;align-items:center;gap:12px;padding:16px}
.hc-left .avatar{width:56px;height:56px;border-radius:50%;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.hc-left .name{font-weight:700}
.hc-left .intro{color:#64748b;font-size:12px}
.hc-left .nav{padding:8px 12px}
.hc-left .nav a{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:8px;color:#111827;text-decoration:none}
.hc-left .nav a:hover{background:#f1f5f9}
.hc-left .nav a.active{background:#eef2ff;border:1px solid #e5e7eb}
.hc-left .nav a .cat-badge{margin-left:auto;background:#e5e7eb;color:#334155;border-radius:999px;padding:2px 6px;font-size:12px}
.hc-left .nav .muted{color:#64748b;font-size:12px;padding:6px 12px}
.hc-main .hc-hero{padding:18px 18px 8px}
.hc-main .hc-hero h1{margin:0 0 6px;font-size:28px}
.hc-main .sub{color:#64748b;font-size:13px}
.hc-main .hc-toc{margin:12px 18px;padding:12px;border-top:1px dashed #e5e7eb}
.hc-toc a{color:#0f766e;text-decoration:none}
.hc-toc a:hover{text-decoration:underline}
.hc-toc-list{margin-top:6px}
.hc-main .hc-article{padding:0 18px 18px}

.link{
    text-decoration: none;
    color: #000000;
}
.post-box {
    padding: 8px;
}
/* Markdown 样式已抽离到 markdown.css */

.hc-main .hc-article .hc-article-meta{    color:#64748b;    font-size: 12px;    margin: 8px 0 12px;  }

/* 面包屑 */
.hc-crumb{margin:0 18px 12px;padding:8px 12px;background:#f8fafc;color:#475569;font-size:13px;display:flex;align-items:center;gap:6px}
.hc-crumb a{color:#0f766e;text-decoration:none}
.hc-crumb a:hover{text-decoration:underline}
.crumb-icon{opacity:.9}
.crumb-sep{color:#94a3b8}

.hc-right{padding:12px}
.hc-right h3{margin:4px 0 12px;font-size:16px}
.hc-right .hot-item{display:block;padding:10px 8px;border-radius:8px;color:#111827;text-decoration:none}
.hc-right .hot-item:hover{background:#f1f5f9}
.hc-right .hot-item .title{font-size:14px;line-height:1.4}
.hc-right .hot-item .meta{color:#64748b;font-size:12px;margin-top:4px}

.hc-toolbar{display:none;position:sticky;top:var(--hc-header-h);z-index:5;margin:0 0 8px}
.hc-toolbar .btn{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:8px 12px;box-shadow:0 6px 16px rgba(15,23,42,.06)}

@media (max-width: 1024px){.hc-left{flex-basis:220px}.hc-right{display:none}}
@media (max-width: 768px){   .hc-shell{flex-direction:column}   .hc-toolbar{display:none}   .hc-menu-btn{display:inline-block}   .hc-left.hc-sticky{position:fixed;left:0;top:0;bottom:0;inset:0 30% 0 0;height:100vh;height:100dvh;overflow:auto;transform:translateX(-100%);transition:transform .25s ease;z-index:31}   .hc-left.hc-sticky.open{transform:translateX(0);background-color: white;}   .hc-mask{display:none;position:fixed;inset:0;background:rgba(2,6,23,.45);backdrop-filter:saturate(140%) blur(2px);z-index:30}   .hc-mask.show{display:block} }

/* 移动端：Crumb 内的菜单按钮无背景，图标为黑色 */
@media (max-width: 768px){
  .hc-crumb .hc-menu-btn{
    background: transparent;
    border: none;
    box-shadow: none;
    color: #000;
    padding: 4px 8px;
    line-height: 1;
  }
}

/* 固定左侧 #hc-side（桌面端），并给主内容让出空间 */
@media (min-width: 769px){
  #hc-side{
    position: fixed;
    /* top: var(--hc-header-h); */
    left: 0;
    width: 280px;
    height: 100%;
    overflow: auto;
    z-index: 10;
  }
  .hc-main{ margin-left: calc(260px + 16px); }
}

/* 大屏时让侧栏与 1200px 居中容器左边对齐（避免 100vw 包含滚动条带来的偏差） */
@media (min-width: 1200px){
  #hc-side{
    /* left: calc(50% - 600px); */
    background-color: #f2f2f2;
    }
}

/* 文章卡片 */
.post-card{display:flex;flex-direction:column;gap:10px;/* padding:12px; */border-radius: 8px;background:#fff;box-shadow:0 6px 16px rgba(15,23,42,.06)}
.post-cover{    /* width: 100%; */
    border-radius: 10px 10px 0px 0px;
    /* overflow: hidden; */
    /* height: 219px; */
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    /* border-radius: 12px; */
    overflow: hidden;}
.post-cover img{width:100%;display:block}
.post-title{    font-size: 18px;
    line-height: 1.4;
    margin: 15px 0px 15px 0px;
    /* text-decoration: none; */
    /* color: azure; */}
.badge{display:inline-block;/* background:#ef4444; */color: #000000;border-radius:6px;/* padding:2px 6px; */font-size:12px;margin-right:6px}
.post-excerpt{        color: rgb(100, 116, 139);
    font-size: 14px;
    height: 200px;
    margin: 10px 0px;}
.post-excerpt p{margin:4px 0}
.post-excerpt ul,.post-excerpt ol{margin:6px 0 6px 18px}
.post-meta{display:flex;gap:12px;color:#64748b;font-size:12px}
.ops{
        border: 1px solid #999;
    border-radius: 999px;
    padding: 0px 7px 0px 7px;
}
/* 右侧细节 */
.hc-right-title{padding:6px 4px 0 4px;margin:0 0 8px 0;border-bottom:1px solid #e5e7eb}
.hc-right-list{display:flex;flex-direction:column}
.hc-list{padding:0 18px 18px;display:flex;flex-direction:column;gap:14px}
.hc-pager{display:flex;gap:8px;align-items:center;justify-content:center;padding:10px 0}
.avatar-img{object-fit:cover}

/* 额外 Markdown 列表缩进规则已迁移至 markdown.css */

/* Markdown 列表修复包已迁移至 markdown.css */
