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

.hc-shell{max-width: 1200px;margin: 24px auto;display: flex;align-items: stretch;/* gap: 16px; */box-shadow: 0 2px 3px rgba(0,0,0,.1);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 2px 3px rgba(0,0,0,.1); }
.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; }
}

/* 左右栏高度适配（等高由 align-items:stretch 提供） */
.hc-left.hc-sticky, .hc-right.hc-sticky { background-color: #f9f9f9; }
.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 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: #ffffff;/* 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}

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

  /* 左侧分类抽屉（移动端） */
  .hc-left{
    position: fixed;
    left: 0; top: var(--hc-header-h);
    width: 78%; max-width: 340px;
    height: calc(100vh - var(--hc-header-h));
    overflow: auto;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 31;
  }
  .hc-left.open{ transform: translateX(0); }
  .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; }

  /* 隐藏右侧栏，主内容满宽 */
  .hc-right{ display:none; }
  .hc-main{ margin-left: 0; }

  /* 文章卡片与摘要在移动端自适应，不固定高度 */
  .post-excerpt{ height:auto; display:-webkit-box;  -webkit-box-orient:vertical; overflow:hidden; }
}

/* 固定左侧 #hc-side（桌面端），并给主内容让出空间 */
@media (min-width: 769px){
  #hc-side{
    position: static;
    top: auto;
    width: 280px;
    /* 不在 aside 上滚动，避免破坏 sticky */
    overflow: visible;
    z-index: 10;
  }
  .hc-main{margin-left: 0;}
}

/* 等高 + 粘性组合：外层拉伸等高，内层负责粘性定位 */
.hc-sticky-inner{ position: sticky; top: 1px; }
@media (max-width: 768px){ .hc-sticky-inner{ position: static; } }

/* 大屏时让侧栏与 1200px 居中容器左边对齐（避免 100vw 包含滚动条带来的偏差） */


/* 文章卡片 */
.post-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  /* padding:12px; */
  /* border-radius: 8px; */
  background: #ffffff;
  width: 100%;
  object-fit: cover;
  /* border-radius: 12px; */
  overflow: hidden;
  /* border: 1px solid #9999; */
  }
.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: 24px 24px;display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width: 769px){
  .hc-list{grid-template-columns: repeat(1, 1fr);}
}
.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 */


.hc-body {
    background-color: white;
}

/* 顶部面包屑（客服中心样式） */
.p-breadcrumbs { padding: 6px 8px; color: #686f7e; border-bottom: 1px solid #dddddd; background-color: #ffffff; box-shadow: 0 2px 3px rgba(0,0,0,.1); }
.p-breadcrumbs .nav-lists { max-width: 1200px; margin: 0 auto; }
.p-breadcrumbs .nav-lists a { color: #374151; text-decoration: none; }
.p-breadcrumbs .sep { margin: 0 6px; color: #9ca3af; }
.p-breadcrumbs .trail { color: #9ca3af; }

/* 恢复前样式，删除统计/筛选/顶部面包屑定制 */
