/**
 * 卡尼奶主题 用户中心样式
 * 结构与视觉对齐 zibll9.0 用户中心：author-header + user-center + drawer-sm。
 * 全部规则收敛于 .knn-uc 作用域，避免污染全站其它元素。
 */

/*---------- 变量映射（子比变量 -> 卡尼奶变量/固定值） ----------*/
.knn-uc {
  --main-bg-color: var(--knn-bg-color-card, #fff);
  --body-bg-color: var(--knn-bg-color, #f5f6f7);
  --main-shadow: var(--knn-shadow-color, rgba(116, 116, 116, 0.08));
  --main-radius: 8px;
  --mini-radius: calc(var(--main-radius) / 1.4);
  --muted-color: #777;
  --muted-2-color: #999;
  --muted-3-color: #b1b1b1;
  --muted-border-color: rgba(0, 0, 0, 0.03);
  --main-border-color: rgba(50, 50, 50, 0.06);
  --theme-color: var(--knn-color-primary, #f04494);
  --focus-color: var(--theme-color);
  --focus-color-opacity1: rgba(0, 122, 255, 0.1);
  color: var(--knn-text-color, #4e5358);
}

body.dark-mode .knn-uc,
body.dark-mode-auto .knn-uc {
  --main-shadow: rgba(24, 24, 24, 0.1);
  --muted-color: #b4b6bb;
  --muted-2-color: #888a8f;
  --muted-3-color: #636469;
  --main-border-color: rgba(114, 114, 114, 0.1);
  --muted-border-color: rgba(184, 184, 184, 0.02);
}

/*---------- SVG 图标（对齐子比 main.css: svg 基础尺寸）----------*/
.knn-uc svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

/*---------- 等级 PNG 图标（对齐子比 .img-icon）----------*/
.knn-uc .img-icon {
  height: 1.1em;
  max-width: 6em;
  vertical-align: -0.15em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: inline-block;
}
.knn-uc .img-icon img { height: 100%; }

/*---------- flex 布局工具 ----------*/
.knn-uc .flex { display: flex; }
.knn-uc .inflex { display: inline-flex; }
.knn-uc .flex.hh { flex-wrap: wrap; }
.knn-uc .flex.xx { flex-direction: column; }
.knn-uc .flex.ac { align-items: center; }
.knn-uc .flex.at { align-items: flex-start; }
.knn-uc .flex.jc { align-items: center; justify-content: center; }
.knn-uc .flex.jsb { justify-content: space-between; }
.knn-uc .flex.jsa { justify-content: space-around; }
.knn-uc .flex .flex0 { flex: none; }
.knn-uc .flex .flex1 { flex: 1; overflow: hidden; }

/*---------- 通用工具 ----------*/
.knn-uc .relative { position: relative; }
.knn-uc .absolute { position: absolute; }
.knn-uc .hide { display: none; }
.knn-uc .text-center { text-align: center; }
.knn-uc .font-bold { font-weight: bold; }
.knn-uc .opacity5 { opacity: 0.5; }

.knn-uc .px12 { font-size: 12px; }
.knn-uc .em09 { font-size: 0.9em; }
.knn-uc .em12 { font-size: 1.2em; }
.knn-uc .em14 { font-size: 1.4em; }
.knn-uc .em16 { font-size: 1.6em; }
.knn-uc .em2x { font-size: 2em; }
.knn-uc .em4x { font-size: 4em; }

.knn-uc .muted-color { color: var(--muted-color); }
.knn-uc .muted-2-color { color: var(--muted-2-color); }
.knn-uc .muted-3-color { color: var(--muted-3-color); }
.knn-uc .main-bg { background: var(--main-bg-color); }

.knn-uc .mt3 { margin-top: 3px; }
.knn-uc .mt6 { margin-top: 6px; }
.knn-uc .mt10 { margin-top: 10px; }
.knn-uc .mb6 { margin-bottom: 6px; }
.knn-uc .mb10 { margin-bottom: 10px; }
.knn-uc .mb20 { margin-bottom: 20px; }
.knn-uc .mb40 { margin-bottom: 40px; }
.knn-uc .ml3 { margin-left: 3px; }
.knn-uc .ml6 { margin-left: 6px; }
.knn-uc .ml10 { margin-left: 10px; }
.knn-uc .mr3 { margin-right: 3px; }
.knn-uc .mr6 { margin-right: 6px; }
.knn-uc .mr10 { margin-right: 10px; }
.knn-uc .padding-6 { padding: 6px; }
.knn-uc .padding-10 { padding: 10px; }
.knn-uc .padding-w10 { padding-left: 10px; padding-right: 10px; }
.knn-uc .radius8 { border-radius: 8px; }

/*---------- 卡片 ----------*/
.knn-uc .zib-widget {
  clear: both;
  background-color: var(--main-bg-color);
  padding: 15px;
  box-shadow: 0 0 10px var(--main-shadow);
  border-radius: var(--main-radius);
  margin-bottom: 20px;
}

/*---------- 按钮 / 徽章 ----------*/
.knn-uc .but,
.knn-uc .badg {
  border-radius: 4px;
  display: inline-block;
  transition: 0.15s;
  border: 1px solid var(--this-border);
  vertical-align: middle;
  padding: 0.3em 0.6em;
  text-align: center;
  font-weight: normal;
  box-shadow: var(--this-shadow);
  background: var(--this-bg);
  color: var(--this-color);
  --this-bg: rgba(136, 136, 136, 0.1);
  --this-border: transparent;
  --this-shadow: none;
  --this-color: #888;
  text-shadow: 0 0 0;
  line-height: 1.44;
}
.knn-uc .but a { color: inherit; }
.knn-uc .but.pw-1em { padding-right: 1em; padding-left: 1em; }
.knn-uc .but .icon,
.knn-uc .but > .fa { margin-right: 0.25em; }
.knn-uc .but.radius,
.knn-uc .badg.radius { border-radius: 50px; padding: 0.3em 1em; }
.knn-uc .but:hover { opacity: 0.8; color: var(--this-color); }

/*---------- 颜色类 ----------*/
.knn-uc .c-gray { --this-color: #888; --this-bg: rgba(136, 136, 136, 0.1); }
.knn-uc .c-red { --this-color: #ff5473; --this-bg: rgba(255, 84, 115, 0.1); }
.knn-uc .c-yellow { --this-color: #ff6f06; --this-bg: rgba(255, 111, 6, 0.1); }
.knn-uc .c-blue { --this-color: #2997f7; --this-bg: rgba(41, 151, 247, 0.1); }
.knn-uc .c-cyan { --this-color: #09a4a1; --this-bg: rgba(8, 196, 193, 0.1); }
.knn-uc .c-green { --this-color: #18a52a; --this-bg: rgba(18, 185, 40, 0.1); }
.knn-uc .c-purple { --this-color: #e434e1; --this-bg: rgba(213, 72, 245, 0.1); }
.knn-uc .c-blue, .knn-uc .c-green, .knn-uc .c-purple, .knn-uc .c-red { color: var(--this-color); }

/*---------- 头像 ----------*/
.knn-uc .avatar {
  width: 100%;
  height: 100%;
  transition: all 0.2s;
  overflow: hidden;
  object-fit: cover;
  border-radius: 100px;
  display: inline-block;
}
.knn-uc .avatar-img,
.knn-uc .avatar-lg {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  --this-size: 38px;
  width: var(--this-size);
  height: var(--this-size);
}
.knn-uc .avatar-lg { --this-size: 80px; }
.knn-uc .avatar-mini { --this-size: 20px; }

/*---------- 徽章 badge / badg-sm ----------*/
.knn-uc badge {
  font-size: 0.8em;
  line-height: 1.2;
  padding: 0.1em 0.4em;
  min-width: 0.8em;
  display: inline-block;
  vertical-align: 0.1em;
  border-radius: 50px;
  background: var(--this-bg);
  color: var(--this-color);
  --this-color: #fff;
  --this-bg: #fe3459;
  text-align: center;
}
.knn-uc .badg.p2-10,
.knn-uc badge.p2-10 { padding: 2px 10px; }
.knn-uc .badg.badg-sm {
  font-size: 0.8em;
  padding: 0 0.2em;
  vertical-align: 0.1em;
  min-width: 1.6em;
}
.knn-uc .checkin-mini-box > .badg.badg-sm {
  display: block;
  margin: 2px;
  padding: 0.2em;
  line-height: 1.2;
}
.knn-uc .smail { font-size: 0.8em; }

/* 填充色（背景色）变体 */
.knn-uc .b-green { --this-bg: #12b928; --this-color: #fff; color: var(--this-color); background: var(--this-bg); }
.knn-uc .b-purple { --this-bg: #d448f5; --this-color: #fff; color: var(--this-color); background: var(--this-bg); }
.knn-uc .b-blue { --this-bg: #2997f7; --this-color: #fff; color: var(--this-color); background: var(--this-bg); }

/*---------- 签到弹窗 ----------*/
.knn-uc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.knn-uc-modal.knn-open { display: flex; }
.knn-uc-modal.knn-open .knn-uc-modal-mask {
  animation: knn-fade-in 0.3s ease forwards;
}
.knn-uc-modal.knn-open .knn-uc-modal-dialog {
  animation: knn-modal-in 0.4s cubic-bezier(0.28, 0.9, 0.34, 0.99) forwards;
}
@keyframes knn-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes knn-modal-in {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
.knn-uc-modal .knn-uc-modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.knn-uc-modal .knn-uc-modal-dialog {
  position: relative;
  width: 400px;
  max-width: calc(100% - 20px);
  background: var(--main-bg-color);
  border-radius: var(--main-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 1;
}
.knn-uc-modal .knn-modal-loading {
  display: none;
  align-items: center;
  justify-content: center;
  height: 120px;
  opacity: 0.5;
}
.knn-uc-modal .knn-modal-loading .loading-circle {
  width: 2em;
  height: 2em;
  animation: knn-rotate 2s linear infinite;
  fill: none;
}
.knn-uc-modal .knn-modal-loading .loading-circle circle {
  animation: knn-dash 1.5s ease-in-out infinite;
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  stroke-width: 3;
  stroke: var(--muted-2-color);
  stroke-linecap: round;
}
@keyframes knn-rotate {
  100% { transform: rotate(360deg); }
}
@keyframes knn-dash {
  0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; }
  100% { stroke-dasharray: 89, 200; stroke-dashoffset: -124px; }
}
.knn-uc-modal .modal-colorful-header {
  border-radius: var(--main-radius) var(--main-radius) 0 0;
  background-size: 120%;
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  --this-bg: rgba(41, 151, 247, 0.6);
  --this-color: #fff;
}
.knn-uc-modal .modal-colorful-header > .close {
  position: absolute;
  right: 10px; top: 10px;
  color: var(--this-color);
  opacity: 0.6;
  font-size: 18px;
  z-index: 9;
  cursor: pointer;
}
.knn-uc-modal .modal-colorful-body { padding: 15px; }
.knn-uc-modal .modal-colorful-body .zib-widget { margin-bottom: 0; }

/*---------- 多彩背景 ----------*/
.knn-uc .colorful-bg {
  background-size: 120%;
  overflow: hidden;
  position: relative;
  color: var(--this-color);
  background: var(--this-bg);
}
.knn-uc .colorful-bg > .colorful-make::after,
.knn-uc .colorful-bg > .colorful-make::before,
.knn-uc .colorful-bg > .colorful-make {
  position: absolute;
  color: var(--this-color);
  background: var(--this-bg);
  border-radius: 100%;
  content: ' ';
}
.knn-uc .colorful-bg > .colorful-make { bottom: 0; height: 290px; width: 323px; top: 60%; }
.knn-uc .colorful-bg > .colorful-make::before {
  right: -558px; bottom: 0; height: 300px; width: 677px; top: -325px;
  transform: rotate(341deg); opacity: 0.6;
}
.knn-uc .colorful-bg > .colorful-make::after {
  left: -262px; bottom: 0; height: 214px; width: 402px; top: -170px;
  transform: rotate(326deg); opacity: 0.4;
}
.knn-uc .colorful-bg > .colorful-make + * { position: relative; }
.knn-uc-modal .modal-colorful-header.colorful-bg > .colorful-make {
  animation: knn-random1 120s linear infinite;
}
@keyframes knn-random1 {
  from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  20% { transform: translate3d(-30px, -20px, 50px) rotate(87deg) scale(0.9); }
  65% { transform: translate3d(-80px, -40px, 0px) rotate(156deg) scale(0.6); }
  to { transform: translate3d(0, 0, 0) rotate(360deg) scale(1); }
}
.knn-uc .jb-vip1 {
  --this-bg: linear-gradient(25deg, #eabe7b 10%, #f5e3c7 70%, #edc788 100%);
  --this-color: #866127;
}

.knn-uc .linear-mask {
  background-image: linear-gradient(0deg, rgba(29, 41, 49, 0.4) 3em, rgba(255, 255, 255, 0) 8em);
}

/*---------- 用户中心头部 ----------*/
.knn-uc .main-shadow {
  box-shadow: 0 0 10px var(--main-shadow);
  transition: box-shadow 0.3s;
}
.knn-uc .author-header {
  position: relative;
  overflow: hidden;
}
.knn-uc .author-header .page-cover {
  position: relative;
  border-radius: var(--main-radius) var(--main-radius) 0 0;
  padding-bottom: calc(20% + 100px);
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-color: #d7dde3;
}
.knn-uc .author-header .page-cover .linear-mask {
  top: 0; left: 0; right: 0; bottom: 0;
}
.knn-uc .author-header .header-content { padding: 18px 42px; }
.knn-uc .author-header .header-info { align-items: flex-start; }
.knn-uc .author-header .header-info > .header-avatar {
  margin-top: -80px;
  margin-right: 20px;
}
.knn-uc .author-header .avatar-img { --this-size: 140px; }
.knn-uc .author-header .avatar-img .avatar {
  border-radius: 6px;
  border: 4px solid var(--main-bg-color);
}
.knn-uc .author-header .display-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--knn-text-color, #333);
}
.knn-uc .author-header .desc { max-width: 520px; margin-top: 4px; }
.knn-uc .author-header .user-identity > .but,
.knn-uc .author-header .user-identity > .badg {
  font-size: 12px;
  padding: 2px 6px;
  margin: 5px 6px 0 0;
  line-height: 1.4;
}
.knn-uc .author-header .header-btns { margin-top: 10px; }
/* 子比页面基准字号 14px，knn 为 16px 且全局 a 强制 16px，此处锁定对齐子比按钮实际尺寸 */
.knn-uc .author-header .header-btns .but { font-size: 14px; }
.knn-uc .header-avatar .avatar-set-link {
  top: 0; left: 0; right: 0; bottom: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  opacity: 0;
  transition: 0.2s;
  font-size: 13px;
}
.knn-uc .header-avatar:hover .avatar-set-link { opacity: 1; }

/*---------- 栅格（对齐子比 row / col-md）----------*/
.knn-uc .row { display: flex; flex-wrap: wrap; margin-left: -10px; margin-right: -10px; }
.knn-uc .col-md-5,
.knn-uc .col-md-7 { padding-left: 10px; padding-right: 10px; box-sizing: border-box; width: 100%; }
.knn-uc .col-md-5 > .zib-widget,
.knn-uc .col-md-7 > .zib-widget { margin-bottom: 20px; }
@media (min-width: 768px) {
  .knn-uc .col-md-5 { width: 41.66667%; }
  .knn-uc .col-md-7 { width: 58.33333%; }
}

/*---------- 工具类补充（等级页）----------*/
.knn-uc .ab { align-items: flex-end; }
.knn-uc .opacity8 { opacity: 0.8; }
.knn-uc .shrink0 { flex-shrink: 0; }
.knn-uc .text-right { text-align: right; }
.knn-uc .mr20 { margin-right: 20px; }
.knn-uc .mt20 { margin-top: 20px; }
.knn-uc .padding-h6 { padding-top: 6px; padding-bottom: 6px; }
.knn-uc .padding-h10 { padding-top: 10px; padding-bottom: 10px; }
.knn-uc .border-bottom { border-bottom: 1px solid var(--main-border-color); }
.knn-uc .focus-color { color: var(--focus-color); }
.knn-uc .block { display: block; }
.knn-uc .muted-box { background-color: var(--muted-border-color); border-radius: var(--main-radius); padding: 15px; }

/*---------- 灰色卡片配色 ----------*/
.knn-uc .colorful-bg.c-gray { --this-bg: linear-gradient(25deg, #f0f2f5 10%, #fafbfc 70%, #eef0f3 100%); --this-color: #666; }

/*---------- 等级进度条 ----------*/
.knn-uc .progress.integral-progress {
  z-index: 1;
  position: relative;
  height: 3px;
  border-radius: 4px;
  margin: 0;
  background: #dbbd8e;
}
.knn-uc .progress.integral-progress .progress-bar {
  height: 100%;
  border-radius: 4px;
  background: #9b6b4e;
}

/*---------- 成长体系柱状图 ----------*/
.knn-uc .pillar-box {
  height: 100%;
  display: flex;
  align-items: flex-end;
  position: relative;
  flex: auto;
  width: 100%;
}
.knn-uc .pillar-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  overflow: unset;
  flex: 1;
}
.knn-uc .pillar-item .value { margin-bottom: 6px; font-size: 0.85em; color: var(--muted-2-color); }
.knn-uc .pillar-item + .pillar-item { padding-left: 20px; }
.knn-uc .pillar-item .pillar {
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(0deg, #707479 10%, #bfc5cc 100%);
}
.knn-uc .pillar-item .level-name { margin-top: 6px; }
.knn-uc .pillar-item.active ~ .pillar-item { opacity: 0.5; }
.knn-uc .pillar-item.active { color: #b97030; }
.knn-uc .pillar-item.active .pillar { background: linear-gradient(0deg, #c1764a 10%, #e8c48e 100%); }

/*---------- tab 切换（对齐子比 tab-pane）----------*/
.knn-uc .tab-content { display: block; }
.knn-uc .tab-content > .tab-pane { display: none; }
.knn-uc .tab-content > .tab-pane.active { display: block; }
.knn-uc .but.active { --this-bg: var(--focus-color); --this-color: #fff; color: var(--this-color); }

/*---------- 用户中心主体 ----------*/
.knn-uc .user-center { display: flex; gap: 20px; }
.knn-uc .user-center .user-center-sidebar { width: 320px; flex-shrink: 0; }
.knn-uc .user-center .user-center-content { width: calc(100% - 320px); }

/*---------- 侧边栏 统计 ----------*/
.knn-uc .user-statistics-item {
  flex: 1;
  color: inherit;
  display: block;
}
.knn-uc .user-statistics-item:hover { color: var(--focus-color); }

/*---------- 侧边栏 图标按钮组 ----------*/
.knn-uc .icon-but-box { flex-wrap: wrap; }
.knn-uc .user-icon-but-box > item {
  width: calc(25% - 10px);
  margin: 5px;
  min-width: 50px;
  max-width: 100px;
  cursor: pointer;
  display: block;
  transition: 0.2s;
}
.knn-uc .user-icon-but-box > item:hover { transform: translateY(-2px); }
.knn-uc .user-icon-but-box > item a { color: inherit; display: block; }

/*---------- 右侧 tab 内容 ----------*/
.knn-uc .user-tab-content { display: none; }
.knn-uc .user-tab-content.active { display: block; }
.knn-uc .drawer-header { display: none; }

/*---------- 移动端全屏抽屉 ----------*/
@media (max-width: 768px) {
  .knn-uc .mb10-sm { margin-bottom: 10px; }
  .knn-uc .user-center { display: block; }
  .knn-uc .user-center .user-center-sidebar,
  .knn-uc .user-center .user-center-content { width: 100%; }
  .knn-uc .author-header .header-content { padding: 12px 20px; }

  /* 移动端通栏 + 头部（对齐子比 full-widget-sm 区块） */
  .knn-uc .full-widget-sm {
    box-shadow: none;
    border-radius: 0;
    margin-left: -10px;
    margin-right: -10px;
  }
  .knn-uc .author-header.full-widget-sm { margin-top: -20px; }
  .knn-uc .author-header.full-widget-sm .page-cover { border-radius: 0; }
  .knn-uc .author-header .avatar-img { --this-size: 100px; }
  .knn-uc .author-header .header-info > .header-avatar {
    margin-top: -60px;
    margin-bottom: 10px;
  }
  .knn-uc .author-header .header-info > .flex1 { flex-basis: 100%; }
  .knn-uc .author-header .avatar-img .avatar {
    border-radius: 100px;
    border-width: 3px;
  }
  .knn-uc .author-header .header-btns {
    position: absolute;
    top: 0;
    right: 0;
  }

  .knn-uc .drawer-sm {
    position: fixed;
    top: 0; right: 0; left: 0;
    height: 100%;
    width: 100%;
    visibility: hidden;
    background: var(--body-bg-color);
    transition: 0.6s;
    padding: 72px 10px 80px;
    z-index: 996;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(110%);
    -webkit-overflow-scrolling: touch;
  }
  .knn-uc .drawer-sm.show {
    transition: 0.6s cubic-bezier(0.28, 0.9, 0.34, 0.99);
    visibility: unset;
    transform: unset;
  }
  .knn-uc .drawer-sm .drawer-header {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: var(--main-bg-color);
    height: 68px;
    font-size: 18px;
    color: var(--muted-color);
    padding: 0 26px;
    z-index: 1000;
    box-shadow: 0 4px 10px var(--main-shadow);
  }
  .knn-uc .drawer-sm .drawer-close { font-size: 22px; width: 30px; }
  .knn-uc .drawer-sm .drawer-title { flex: 1; text-align: center; margin-right: 30px; }
}

/*---------- 作者主页 /user/:id ----------*/
/* 封面右上角统计胶囊（对齐子比 single-metabox / cover-meta / abs-right） */
.knn-author-home .abs-right {
  position: absolute;
  top: 50%;
  right: 0.7em;
  transform: translateY(-50%);
  z-index: 1;
}
.knn-author-home .single-metabox {
  right: 0;
  font-size: 15px;
  --meta-color: var(--muted-color);
}
.knn-author-home .single-metabox .post-metas {
  background: var(--body-bg-color);
  right: 0;
  padding: 2px 6px;
  border-radius: 100px;
  color: var(--meta-color);
}
.knn-author-home .single-metabox .post-metas item { margin: 0 6px; }
.knn-author-home .single-metabox .post-metas item a { color: inherit; }
.knn-author-home .single-metabox .post-metas item .fa,
.knn-author-home .single-metabox .post-metas item .icon { margin-right: 3px; }
.knn-author-home .single-metabox.cover-meta {
  font-size: 14px;
  right: 1em;
  top: 1.6em;
  transform: none;
  --meta-color: rgba(255, 255, 255, 0.8);
  --body-bg-color: rgba(0, 0, 0, 0.3);
}

/* svg 图标基础（对齐子比全局 svg 规则） */
.knn-uc svg.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

/* 渐变按钮（对齐子比 jb-pink / jb-blue） */
.knn-uc .jb-pink,
.knn-uc .jb-blue {
  border: none;
  --this-color: #fff;
  color: var(--this-color);
  background: var(--this-bg);
}
.knn-uc .jb-pink { --this-bg: linear-gradient(135deg, #ff5e7f 30%, #ff967e 100%); }
.knn-uc .jb-blue { --this-bg: linear-gradient(135deg, #59c3fb 10%, #268df7 100%); }

/* 关注按钮已关注态 */
[data-action="knn-follow-user"].jb-pink.actived {
  background: var(--muted-2-color, #ccc);
  color: var(--muted-color, #777);
}

/* Tab 导航 */
.knn-author-tab { overflow: hidden; }
.knn-author-tab-nav {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.knn-author-tab-nav .knn-author-tab-link {
  position: relative;
  flex-shrink: 0;
  padding: 13px 22px;
  font-size: 15px;
  color: var(--muted-color, #777);
  transition: color 0.2s;
}
.knn-author-tab-nav .knn-author-tab-link .tab-count {
  margin-left: 5px;
  font-size: 12px;
  opacity: 0.75;
}
.knn-author-tab-nav .knn-author-tab-link:hover { color: var(--focus-color, #ff5e5c); }
.knn-author-tab-nav .knn-author-tab-link.active {
  color: var(--focus-color, #ff5e5c);
  font-weight: bold;
}
.knn-author-tab-nav .knn-author-tab-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--focus-color, #ff5e5c);
}

/* Tab 面板：全量渲染 + JS 切换 */
.knn-author-panels .knn-author-tab-pane { display: none; }
.knn-author-panels .knn-author-tab-pane.active { display: block; }

/* 粉丝/关注 minicard 列表 */
.knn-minicard-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.author-minicard {
  padding: 14px 16px;
  background: var(--main-bg-color, #fff);
  box-shadow: 0 2px 8px var(--main-shadow, rgba(0, 0, 0, 0.05));
}
.author-minicard .avatar-img { --this-size: 60px; }
.author-minicard .avatar-img .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.author-minicard .knn-mini-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--knn-text-color, #333);
  max-width: 9em;
}
.author-minicard .knn-mini-name:hover { color: var(--focus-color, #ff5e5c); }

/* 作者页评论列表 */
.knn-author-comment-list { padding: 6px 20px; }
.knn-author-comment-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--main-border-color, #eee);
}
.knn-author-comment-item:last-child { border-bottom: 0; }
.knn-author-comment-item .comment-text {
  font-size: 14px;
  line-height: 1.7;
  word-break: break-all;
}
.knn-author-comment-item .comment-meta a { color: var(--focus-color, #ff5e5c); }

@media (max-width: 992px) {
  .knn-minicard-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .knn-author-home .single-metabox.cover-meta { font-size: 13px; }
  .knn-author-home .single-metabox .post-metas item { margin: 0 4px; }
  .knn-author-tab-nav .knn-author-tab-link { padding: 11px 15px; font-size: 14px; }
  .knn-minicard-list { grid-template-columns: 1fr; }
  .knn-author-comment-list { padding: 2px 14px; }
}
