.follow {
    background-color: rgb(69 115 115);
}

.hengtiao {
    background-color: rgb(69 115 115);
}

/* ============================================
   Obsidian / GitHub 风格标注提示框
   由 layouts/_default/_markup/render-blockquote.html 输出
   ============================================ */
.alert-box {
    margin: 1.2em 0;
    padding: 10px 16px 12px;
    border-radius: 10px;
    border-left: 4px solid #4a90d9;
    background-color: rgba(74, 144, 217, .08);
    overflow: hidden;
}
.alert-box .alert-title {
    margin: 0 0 4px;
    font-weight: bold;
    font-size: 14px;
    color: #337ab7;
}
.alert-box .alert-title .fa {
    margin-right: 8px;
}
.alert-box .alert-body p {
    margin: 6px 0;
    font-size: 14px;
}
.alert-box .alert-body p:first-child {
    margin-top: 0;
}
.alert-box .alert-body p:last-child {
    margin-bottom: 0;
}

/* 各类型配色（半透明底色，浅色/暗色主题均可用） */
.alert-box.tip {
    border-left-color: #2bb673;
    background-color: rgba(43, 182, 115, .09);
}
.alert-box.tip .alert-title {
    color: #1f9e60;
}

.alert-box.important {
    border-left-color: #9b59b6;
    background-color: rgba(155, 89, 182, .09);
}
.alert-box.important .alert-title {
    color: #8e44ad;
}

.alert-box.warning {
    border-left-color: #f0a020;
    background-color: rgba(240, 160, 32, .10);
}
.alert-box.warning .alert-title {
    color: #d48806;
}

.alert-box.caution {
    border-left-color: #e05656;
    background-color: rgba(224, 86, 86, .09);
}
.alert-box.caution .alert-title {
    color: #c0392b;
}

/* ============ 自建评论系统（EdgeOne KV + 边缘函数） ============ */
.eo-comments { font-size: 14px; }
.eo-cm-loading, .eo-cm-tip, .eo-cm-empty { color: #999; padding: 8px 0; }
.eo-cm-tip.is-error, .eo-cm-msg.is-error { color: #d9534f; }

.eo-cm-form { margin-bottom: 14px; }
.eo-cm-row { display: flex; gap: 8px; margin-bottom: 8px; }
.eo-cm-row input {
    flex: 1; min-width: 0; padding: 6px 10px;
    border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none;
}
.eo-cm-row input:focus, .eo-cm-content:focus { border-color: #6c8cff; }
.eo-cm-content {
    width: 100%; box-sizing: border-box; padding: 8px 10px; resize: vertical;
    border: 1px solid #ddd; border-radius: 6px; font-size: 13px; line-height: 1.6; outline: none;
    font-family: inherit;
}
.eo-cm-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.eo-cm-msg { font-size: 12px; color: #67a53e; min-height: 1em; }
.eo-cm-submit {
    padding: 6px 14px; border: none; border-radius: 6px; cursor: pointer;
    background: #6c8cff; color: #fff; font-size: 13px;
}
.eo-cm-submit:hover { background: #5578f0; }
.eo-cm-submit:disabled { opacity: .55; cursor: not-allowed; }

.eo-cm-count { font-weight: 600; margin: 10px 0 6px; color: #555; }
.eo-comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #eee; }
.eo-comment:last-child { border-bottom: none; }
.eo-comment-avatar {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
    color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.eo-comment-main { flex: 1; min-width: 0; }
.eo-comment-head { display: flex; align-items: baseline; gap: 8px; }
.eo-comment-nick { font-weight: 600; color: #4a6bd8; text-decoration: none; word-break: break-all; }
.eo-comment-time { font-size: 12px; color: #aaa; white-space: nowrap; }
.eo-comment-body {
    margin-top: 3px; color: #444; line-height: 1.7; word-break: break-word; white-space: pre-wrap;
}

/* ============ 侧栏移到左侧（文章页/列表页/分类页） ============ */
/* 原分隔线在侧栏左缘（sidebar 在右时）；sidebar 移到左后，分隔线改到右缘 */
.zhuti-r::after {
    left: auto;
    right: -1px;
    border-left: 1px solid var(--bgc-1);
    border-right: 1px solid rgb(220, 220, 220);
}

/* ============ 紧凑文章列表（左对齐） ============ */
/* 作用于：首页（.zhuti-l-home）与 标签/分类详情页（.terms-body，如 /tags/blog/） */
.zhuti-l-home .terms-row,
.terms-body .terms-row {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
}
.zhuti-l-home .terms-root,
.terms-body .terms-root {
    flex: 0 0 auto; /* 纵向列表：不伸不缩、按内容高（flex:100% 会变成横排列） */
    max-width: 100%;
    padding: 0;
}
.zhuti-l-home .card-large,
.terms-body .card-large {
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bgc-3);
    box-shadow: 2px 2px 6px 1px var(--bs-1);
}
.zhuti-l-home .card-large:hover,
.terms-body .card-large:hover {
    transform: translateX(3px);
}
.zhuti-l-home .card-large-img,
.terms-body .card-large-img {
    position: relative;
    flex: 0 0 168px;
    width: 168px;
    min-height: 96px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}
/* 图片绝对定位铺满容器：容器高度只有 min-height 时，img 的 height:100% 会失效导致上下露白 */
.zhuti-l-home .card-large-img img,
.terms-body .card-large-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.zhuti-l-home .card-large-content,
.terms-body .card-large-content {
    width: auto;
    flex: 1;
    min-width: 0;
    justify-content: center;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 0;
    color: var(--color);
    text-shadow: none;
}
.zhuti-l-home .up-title,
.terms-body .up-title {
    text-align: left;
    font-size: 17px;
    margin-bottom: 6px;
}
.zhuti-l-home .up-title a,
.terms-body .up-title a {
    color: var(--color);
}
.zhuti-l-home .up-title a:hover,
.terms-body .up-title a:hover {
    color: var(--primary);
    text-shadow: none;
}
.zhuti-l-home .up-date,
.terms-body .up-date {
    text-align: left;
    margin-bottom: 4px;
    color: var(--color);
    opacity: .72;
    text-shadow: none;
}
.zhuti-l-home .up-date a,
.terms-body .up-date a {
    color: var(--color);
    text-shadow: none;
}
.zhuti-l-home .up-date a:hover,
.terms-body .up-date a:hover {
    color: var(--primary);
    text-shadow: none;
}
.zhuti-l-home .down-summary,
.terms-body .down-summary {
    text-align: left;
    color: var(--color);
    opacity: .78;
    -webkit-line-clamp: 1;
}
.zhuti-l-home .card-readmore,
.zhuti-l-home .dang,
.terms-body .card-readmore,
.terms-body .dang {
    display: none;
}
.zhuti-l-home .down-type,
.terms-body .down-type {
    text-align: left;
    padding: 0 2px;
    margin: 2px 0 0;
}
/* 区块标题（最新文章/标签等）改为左对齐（去掉左侧装饰线） */
.zhuti-l-home .zuixin,
.taxo-body .zuixin {
    justify-content: flex-start;
}
.zhuti-l-home .zuixin .xian-l,
.taxo-body .zuixin .xian-l {
    display: none;
}
.zhuti-l-home .zuixin h3,
.taxo-body .zuixin h3 {
    padding-left: 4px;
}

/* ============ 分类页 / 标签页（taxo-body）左对齐 ============ */
/* 主题给 taxo-body 设了 space-between，会把标题与内容撑开吊底，改为顶部对齐 */
.taxo-body {
    justify-content: flex-start;
}
.taxo-body .taxo-row {
    justify-content: flex-start;
}

/* 标签页：药丸行下方的文件夹卡片行，与药丸留出间距 */
.taxo-body .taxo-row-cards {
    margin-top: 14px;
}

/* ============ 分类/标签页顶部的筛选药丸（带文章数，点击过滤下方卡片） ============ */
.taxo-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--bgc-3);
    background-color: var(--bgc-2);
    box-shadow: 1px 1px 4px 1px var(--bs-1);
    color: var(--color);
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: all .2s;
}
.taxo-tag-pill .fa-tag {
    font-size: 12px;
    opacity: .7;
}
.taxo-tag-pill .taxo-tag-count {
    font-size: 11px;
    opacity: .55;
}
.taxo-tag-pill:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 2px 2px 6px 1px var(--bs-1);
}
/* 选中态：蓝色实底（用户指定蓝色），同时过滤下方文件夹卡片 */
.taxo-tag-pill.is-active,
.taxo-tag-pill.is-active:hover {
    background-color: #6c8cff;
    border-color: #6c8cff;
    color: #fff;
    box-shadow: 2px 2px 6px 1px rgba(108, 140, 255, .4);
}
.taxo-tag-pill.is-active .fa-tag,
.taxo-tag-pill.is-active .taxo-tag-count {
    opacity: .9;
}

/* 侧栏移到左侧后，悬浮按钮组（收起侧栏/回到顶部）从内容卡右缘改到左缘 */
.long {
    right: auto;
    left: -34px;
}

/* 页脚构建标记：弱化显示，不抢版权行的注意力，但足够看清版本与构建时间 */
.footer-item.footer-version {
    opacity: .6;
    font-size: .85em;
    letter-spacing: .2px;
}
