/* ============================================================
   帧码软件发布主题 zhenma v2.7.0
   配色变量由主题配置注入（:root 于 header.php <style>）
   ============================================================ */

:root {
  --kd-main: #3b6cff;
  --kd-top: #16192b;
  --kd-price: #f04142;
  --kd-bg: #f5f6fa;
  --kd-card: #ffffff;
  --kd-text: #2a2f3d;
  --kd-muted: #8a90a2;
  --kd-border: #e6e8f0;
  --kd-radius: 10px;
  --kd-shadow: 0 2px 12px rgba(22, 25, 43, .06);
  --kd-shadow-hover: 0 8px 24px rgba(22, 25, 43, .12);
}

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

html { -webkit-text-size-adjust: 100%; }

body.kd-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--kd-bg);
  color: var(--kd-text);
  font-size: 15px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.kd-container { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }

/* ---------------- 顶部导航 ---------------- */
.kd-top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 16, 32, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 4px 24px rgba(2, 6, 23, .25);
}
.kd-top-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 18px;
}
.kd-logo { display: flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; text-decoration: none; }
.kd-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--kd-main), #7c94ff);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 108, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.kd-logo-text { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.kd-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: visible; }
.kd-nav a {
  color: rgba(255, 255, 255, .78); font-size: 14.5px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  transition: .2s;
}
.kd-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.kd-nav a.on,
.kd-nav-dropdown.on > .kd-nav-link {
  color: #fff;
  background: linear-gradient(135deg, var(--kd-main), #5f83ff);
  box-shadow: 0 3px 10px rgba(59, 108, 255, .4);
}

/* 导航二级悬停下拉菜单 (Dropdown) */
.kd-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.kd-nav-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}
.kd-nav-arrow {
  display: inline-block;
  font-size: 10px;
  margin-left: 3px;
  transition: transform 0.2s ease;
  font-style: normal;
  vertical-align: middle;
}
.kd-nav-dropdown:hover .kd-nav-arrow {
  transform: rotate(180deg);
}
.kd-subnav {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  border: 1px solid #e2e8f0;
  padding: 6px 0;
  display: none;
  z-index: 999;
  animation: kdFadeIn 0.15s ease;
}
.kd-nav-dropdown:hover .kd-subnav {
  display: block;
}
.kd-subnav a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #334155 !important;
  padding: 9px 16px !important;
  font-size: 13.5px !important;
  border-radius: 0 !important;
  background: transparent !important;
  line-height: 1.4 !important;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.kd-subnav a:hover {
  background: #f1f5f9 !important;
  color: var(--kd-main, #3b6cff) !important;
}
.kd-subnav a.sub-on {
  background: #eff6ff !important;
  color: var(--kd-main, #3b6cff) !important;
  font-weight: 600;
}
.kd-sub-icon {
  font-size: 13px;
  opacity: 0.85;
}
.kd-search { display: flex; flex-shrink: 0; align-items: center; }
.kd-search input {
  width: 168px; height: 36px; border: 1px solid rgba(255, 255, 255, .16); border-right: none;
  outline: none; border-radius: 999px 0 0 999px; padding: 0 14px; font-size: 13.5px;
  background: rgba(255, 255, 255, .1); color: #fff; transition: .2s;
}
.kd-search input:focus { background: rgba(255, 255, 255, .17); border-color: rgba(255, 255, 255, .32); }
.kd-search input::placeholder { color: rgba(255, 255, 255, .5); }
.kd-search button {
  width: 42px; height: 36px; border: 1px solid rgba(255, 255, 255, .16); border-left: none;
  cursor: pointer; border-radius: 0 999px 999px 0;
  background: rgba(255, 255, 255, .1); color: transparent; font-size: 0;
  position: relative; transition: .2s;
}
.kd-search button::before {
  content: ''; position: absolute; left: 13px; top: 10px;
  width: 9px; height: 9px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%;
}
.kd-search button::after {
  content: ''; position: absolute; left: 22px; top: 20px;
  width: 7px; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .85); transform: rotate(45deg);
}
.kd-search button:hover { background: var(--kd-main); border-color: var(--kd-main); }
.kd-nav-toggle {
  display: none; border: none; background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 18px; width: 38px; height: 34px;
  border-radius: 6px; cursor: pointer;
}

/* 顶部用户/登录入口 */
.kd-top-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kd-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
  line-height: 1.4;
  white-space: nowrap;
  background: rgba(255, 255, 255, .06);
}
.kd-btn-login:hover {
  background: var(--kd-main);
  border-color: var(--kd-main);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(59, 108, 255, .4);
}
.kd-user-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 3px 6px 3px 8px;
  gap: 8px;
  font-size: 13px;
}
.kd-user-admin {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: none;
}
.kd-user-admin:hover { color: #60a5fa; }
.kd-user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--kd-main, #2563eb);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.kd-user-name {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kd-user-logout {
  color: rgba(255, 255, 255, .65);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
  transition: all .2s;
}
.kd-user-logout:hover {
  color: #fff;
  background: rgba(239, 68, 68, .7);
}

/* 公告条 */
.kd-notice { background: #fff7e6; border-bottom: 1px solid #ffe7ba; }
.kd-notice-inner {
  max-width: 1200px; margin: 0 auto; padding: 8px 16px;
  font-size: 13.5px; color: #ad6800;
}

/* ---------------- 按钮 ---------------- */
.kd-btn {
  display: inline-block; padding: 9px 22px; border-radius: 8px;
  font-size: 14.5px; cursor: pointer; border: none; transition: .2s;
  text-align: center;
}
.kd-btn-main { background: var(--kd-main); color: #fff; }
.kd-btn-main:hover { filter: brightness(1.1); }
.kd-btn-hero {
  background: #fff; color: #10132e; font-weight: 700;
  padding: 13px 38px; font-size: 16px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, .35);
}
.kd-btn-hero:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(2, 6, 23, .45); }
.kd-btn-hero-ghost {
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 13px 38px; font-size: 16px; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.kd-btn-hero-ghost:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.kd-btn-demo {
  display: block; margin-top: 10px; width: 100%;
  background: #eef2ff; color: var(--kd-main); border: 1px solid var(--kd-main);
}
.kd-btn-demo:hover { background: var(--kd-main); color: #fff; }
.kd-btn-qq {
  display: block; margin-top: 10px; width: 100%;
  background: #f0f7ff; color: #1976d2; border: 1px solid #bbdefb;
}
.kd-btn-qq:hover { background: #1976d2; color: #fff; }

/* ---------------- Hero 现代工业轻量首屏 (去AI模板味) ---------------- */
.kd-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a; padding: 48px 16px 36px; text-align: center;
}
.kd-hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.kd-hero h1 {
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.5px;
  color: #0f172a; margin-bottom: 10px; text-shadow: none; line-height: 1.25;
}
.kd-hero p { font-size: 15px; color: #475569; margin-bottom: 22px; letter-spacing: normal; line-height: 1.6; }
.kd-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.kd-btn-hero {
  background: #0f172a; color: #ffffff; border-radius: 8px;
  padding: 8px 22px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); transition: all 0.15s ease;
}
.kd-btn-hero:hover { background: var(--kd-main, #2563eb); color: #fff; transform: translateY(-1px); }
.kd-btn-hero-ghost {
  background: #ffffff; color: #334155; border: 1px solid #cbd5e1;
  border-radius: 8px; padding: 8px 20px; font-size: 13.5px; font-weight: 500;
  transition: all 0.15s ease;
}
.kd-btn-hero-ghost:hover { background: #f8fafc; border-color: #94a3b8; color: #0f172a; }

/* ---------------- 统计条（精致轻量 Trust Bar） ---------------- */
.kd-stats-wrap {
  max-width: 840px; margin: 28px auto 0; padding: 0 8px;
}
.kd-stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center;
  background: #ffffff; border-radius: 10px; border: 1px solid #e2e8f0;
  padding: 12px 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.kd-stat { position: relative; }
.kd-stat + .kd-stat::before {
  content: ''; position: absolute; left: 0; top: 16%; bottom: 16%;
  width: 1px; background: #e2e8f0;
}
.kd-stat b { display: block; font-size: 18px; color: #0f172a; font-weight: 700; font-variant-numeric: tabular-nums; }
.kd-stat span { font-size: 11.5px; color: #64748b; margin-top: 1px; display: block; }

/* ---------------- 区块与分类胶囊 ---------------- */
.kd-section { max-width: 1200px; margin: 0 auto; padding: 30px 16px 8px; }
.kd-section-pills { padding-top: 14px !important; padding-bottom: 0px !important; }
.kd-pills-bar {
  display: flex; align-items: center; gap: 10px;
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 7px 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.kd-pill-label {
  font-size: 12px; font-weight: 600; color: #64748b; white-space: nowrap;
  padding-right: 8px; border-right: 1px solid #e2e8f0;
}
.kd-pill-list { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.kd-pill-item {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  background: #f1f5f9; border-radius: 20px; font-size: 12px; color: #334155;
  text-decoration: none; white-space: nowrap; transition: all 0.15s ease;
}
.kd-pill-item:hover { background: #e2e8f0; color: #0f172a; text-decoration: none; }
.kd-pill-count {
  font-size: 10.5px; color: #64748b; background: #ffffff;
  padding: 1px 5px; border-radius: 8px; line-height: 1.2;
}

.kd-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 16px; border-left: none; padding-left: 0;
}
.kd-section-head-main { display: flex; align-items: baseline; gap: 10px; }
.kd-section-head h2 { font-size: 19px; font-weight: 700; color: #0f172a; letter-spacing: -0.3px; margin: 0; }
.kd-section-sub { font-size: 12.5px; color: #64748b; font-weight: normal; }

/* 分类入口 */
.kd-cate-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px;
}
.kd-cate-card {
  background: var(--kd-card); border-radius: var(--kd-radius);
  padding: 20px 14px; text-align: center; box-shadow: var(--kd-shadow);
  transition: .2s; border: 1px solid transparent;
}
.kd-cate-card:hover { transform: translateY(-3px); box-shadow: var(--kd-shadow-hover); border-color: var(--kd-main); }
.kd-cate-ico {
  display: inline-flex; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--kd-main), #7c9aff);
  color: #fff; font-size: 20px; font-weight: 700;
  align-items: center; justify-content: center; margin-bottom: 10px;
}
.kd-cate-name { display: block; font-size: 15px; font-weight: 600; }
.kd-cate-num { display: block; font-size: 12.5px; color: var(--kd-muted); margin-top: 4px; }

/* ---------------- 卡片网格 (现代软件卡片质感) ---------------- */
.kd-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
}
.kd-card {
  background: #ffffff; border-radius: 12px;
  border: 1px solid #e2e8f0; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03); transition: all .2s ease;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.kd-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07); border-color: #cbd5e1; text-decoration: none; }
.kd-card-img { position: relative; aspect-ratio: 16 / 9; background: #f8fafc; overflow: hidden; }
.kd-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.kd-card:hover .kd-card-img img { transform: scale(1.03); }
.kd-card-ver {
  position: absolute; top: 8px; left: 8px;
  background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(4px); color: #fff;
  font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 4px;
}
.kd-card-price {
  position: absolute; right: 8px; bottom: 8px;
  background: var(--kd-price, #e11d48); color: #fff; font-weight: 700;
  font-size: 13px; padding: 2px 9px; border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.kd-card-price.kd-price-free {
  background: #059669; font-size: 11.5px; font-weight: 600; padding: 2px 8px;
}
.kd-card-price.kd-price-pill-plugin {
  background: #4f46e5; font-size: 11.5px; font-weight: 500; padding: 2px 8px;
}
.kd-card-price i { font-style: normal; font-size: 11px; margin-right: 1px; }
.kd-card-body { padding: 13px 14px 12px; display: flex; flex-direction: column; flex: 1; }
.kd-card-title {
  font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 44px; margin: 0;
}
.kd-card:hover .kd-card-title { color: var(--kd-main, #2563eb); }
.kd-card-desc {
  font-size: 12.5px; color: #64748b; line-height: 1.6; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.kd-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 9px; border-top: 1px solid #f1f5f9;
  font-size: 12px; color: #64748b;
}
.kd-card-cate { color: var(--kd-main, #2563eb); font-weight: 500; }

/* ---------------- 列表页 ---------------- */
.kd-list-head { margin-bottom: 22px; }
.kd-list-head h1 { font-size: 24px; font-weight: 700; }
.kd-list-desc { color: var(--kd-muted); font-size: 14px; margin-top: 6px; }
.kd-empty {
  background: var(--kd-card); border-radius: var(--kd-radius);
  padding: 60px 20px; text-align: center; color: var(--kd-muted);
}

/* 分类/聚合横幅 */
.kd-cate-hero {
  background: var(--kd-card);
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius);
  padding: 22px 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.kd-cate-hero-left {
  flex: 1;
  min-width: 0;
}
.kd-cate-hero-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--kd-main);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.kd-cate-hero-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
}
.kd-cate-hero-desc {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
}
.kd-cate-hero-meta {
  flex-shrink: 0;
}
.kd-cate-hero-stat {
  font-size: 13px;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 20px;
}
.kd-cate-hero-stat b {
  color: var(--kd-main);
  font-size: 15px;
}
.kd-art-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 640px) {
  .kd-cate-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }
}

/* ---------------- 布局：正文 + 侧栏 ---------------- */
.kd-layout { display: flex; gap: 24px; align-items: flex-start; }
.kd-main { flex: 1; min-width: 0; }
.kd-side { width: 330px; flex-shrink: 0; }
.kd-side-soft { position: sticky; top: 76px; }

/* 面包屑 */
.kd-breadcrumb {
  font-size: 13px; color: var(--kd-muted); margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.kd-breadcrumb a:hover { color: var(--kd-main); }
.kd-breadcrumb i { font-style: normal; color: #c5c9d6; }

/* ---------------- 文章正文区 ---------------- */
.kd-post {
  background: var(--kd-card); border-radius: var(--kd-radius);
  padding: 26px 28px; box-shadow: var(--kd-shadow);
}
.kd-title { font-size: 24px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.kd-meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 13px; color: var(--kd-muted);
  padding-bottom: 16px; border-bottom: 1px solid var(--kd-border); margin-bottom: 18px;
}
.kd-meta a { color: var(--kd-main); }
.kd-meta-ver {
  background: #eef2ff; color: var(--kd-main);
  padding: 1px 8px; border-radius: 4px; font-weight: 600;
}
.kd-meta-tags a { margin-right: 6px; }
.kd-meta-tags a:hover { text-decoration: underline; }

.kd-tagsline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.kd-tagline-item {
  font-size: 12.5px; color: var(--kd-main); background: #eef2ff;
  border: 1px solid #dbe4ff; padding: 2px 10px; border-radius: 20px;
}

/* 正文排版 */
.kd-content { font-size: 15px; line-height: 1.9; word-wrap: break-word; }
.kd-content h2 { font-size: 20px; margin: 26px 0 12px; padding-left: 10px; border-left: 4px solid var(--kd-main); }
.kd-content h3 { font-size: 17px; margin: 22px 0 10px; }
.kd-content h4 { font-size: 15.5px; margin: 18px 0 8px; }
.kd-content p { margin: 10px 0; }
.kd-content img { border-radius: 8px; margin: 12px 0; }
.kd-content ul, .kd-content ol { margin: 10px 0 10px 22px; }
.kd-content ul li { list-style: disc; margin: 4px 0; }
.kd-content ol li { list-style: decimal; margin: 4px 0; }
.kd-content blockquote {
  border-left: 4px solid var(--kd-main); background: #f7f9ff;
  padding: 10px 16px; margin: 14px 0; color: #555; border-radius: 0 8px 8px 0;
}
.kd-content pre {
  background: #232a5c; color: #e8eaf6; padding: 14px 16px;
  border-radius: 8px; overflow-x: auto; font-size: 13.5px; line-height: 1.6;
}
.kd-content code { background: #eef0f6; padding: 1px 6px; border-radius: 4px; font-size: 13.5px; }
.kd-content pre code { background: none; padding: 0; }
.kd-content a { color: var(--kd-main); }
.kd-content a:hover { text-decoration: underline; }
.kd-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.kd-content th, .kd-content td { border: 1px solid var(--kd-border); padding: 8px 12px; }
.kd-content th { background: #f7f8fc; }

/* 更新日志盒 */
.kd-box {
  margin-top: 24px; border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius); overflow: hidden;
}
.kd-box-title {
  background: #f7f8fc; padding: 10px 16px; font-weight: 600; font-size: 15px;
  border-bottom: 1px solid var(--kd-border);
}
.kd-changelog { padding: 12px 16px 12px 36px; }
.kd-changelog li { list-style: disc; margin: 5px 0; font-size: 14px; color: #4a5064; }

/* 标签 & 上下篇 */
.kd-post-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.kd-post-tags a {
  font-size: 12.5px; color: var(--kd-muted); background: #f0f2f8;
  padding: 3px 10px; border-radius: 20px;
}
.kd-post-tags a:hover { background: var(--kd-main); color: #fff; }
.kd-prevnext {
  display: flex; justify-content: space-between; gap: 14px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--kd-border);
  font-size: 13.5px;
}
.kd-prevnext a {
  flex: 1; color: var(--kd-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kd-prevnext a:hover { color: var(--kd-main); }
.kd-prevnext .kd-next { text-align: right; }
.kd-prevnext i { font-style: normal; color: var(--kd-main); }

/* ---------------- 软件购买卡 ---------------- */
.kd-buy-card {
  background: var(--kd-card); border-radius: var(--kd-radius);
  box-shadow: var(--kd-shadow); overflow: hidden; margin-bottom: 20px;
  border: 1px solid var(--kd-border);
}
.kd-buy-cover { aspect-ratio: 16 / 9; background: #eef0f6; }
.kd-buy-cover img { width: 100%; height: 100%; object-fit: cover; }
.kd-buy-price {
  padding: 18px 20px 14px; text-align: center;
  background: linear-gradient(180deg, #fff6f6, #fff);
  border-bottom: 1px dashed var(--kd-border);
}
.kd-price-now { font-size: 32px; font-weight: 700; color: var(--kd-price); }
.kd-price-now i { font-style: normal; font-size: 18px; margin-right: 2px; }
.kd-price-old {
  font-size: 14px; color: var(--kd-muted); text-decoration: line-through; margin-left: 10px;
}
.kd-price-free { font-size: 26px; font-weight: 700; color: #07c160; }

.kd-info-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kd-info-table th, .kd-info-table td { padding: 8px 20px; text-align: left; }
.kd-info-table th { color: var(--kd-muted); font-weight: 400; width: 76px; }
.kd-info-table tr + tr th, .kd-info-table tr + tr td { border-top: 1px solid #f0f2f8; }

.kd-down-list { padding: 14px 20px 18px; }
.kd-down-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.kd-down-btn {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--kd-main); color: #fff; border-radius: 8px;
  padding: 10px 16px; margin-bottom: 10px; font-size: 14px; transition: .2s;
}
.kd-down-btn:hover { filter: brightness(1.12); }
.kd-down-name { font-weight: 600; }
.kd-down-act { font-size: 12.5px; background: rgba(255, 255, 255, .22); padding: 2px 10px; border-radius: 20px; }
.kd-down-pwd {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #4a5064; margin: -4px 0 12px;
}
.kd-down-pwd b { color: var(--kd-price); letter-spacing: 1px; }
.kd-copy {
  border: 1px solid var(--kd-border); background: #f7f8fc; color: var(--kd-muted);
  font-size: 12px; padding: 1px 8px; border-radius: 4px; cursor: pointer;
}
.kd-copy:hover { border-color: var(--kd-main); color: var(--kd-main); }
.kd-down-tip { font-size: 12.5px; color: var(--kd-muted); margin-top: 6px; }
.kd-down-none {
  margin: 0 20px 18px; padding: 12px; text-align: center;
  background: #f7f8fc; border-radius: 8px; color: var(--kd-muted); font-size: 13.5px;
}

/* ---------------- 侧栏小部件 ---------------- */
.kd-widget {
  background: var(--kd-card); border-radius: var(--kd-radius);
  box-shadow: var(--kd-shadow); margin-bottom: 20px; overflow: hidden;
}
.kd-widget-title {
  font-size: 15px; font-weight: 600; padding: 12px 16px;
  border-bottom: 1px solid var(--kd-border);
  border-left: 4px solid var(--kd-main);
}
.kd-widget-search { display: flex; padding: 14px 16px; gap: 8px; }
.kd-widget-search input {
  flex: 1; height: 34px; border: 1px solid var(--kd-border);
  border-radius: 6px; padding: 0 10px; outline: none; font-size: 13.5px;
}
.kd-widget-search button {
  height: 34px; padding: 0 14px; border: none; border-radius: 6px;
  background: var(--kd-main); color: #fff; cursor: pointer; font-size: 13.5px;
}
.kd-widget-list { padding: 8px 16px 14px; }
.kd-widget-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; font-size: 14px; border-bottom: 1px dashed #f0f2f8;
}
.kd-widget-list li:last-child { border-bottom: none; }
.kd-widget-list li a {
  flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.kd-widget-list li a:hover { color: var(--kd-main); }
.kd-widget-list li span { font-size: 12px; color: var(--kd-muted); margin-left: 10px; flex-shrink: 0; }

/* 后台模块（{template:sidebar} 输出的 dl.function）适配 */
.kd-side .function, .kd-side dl.function { margin: 0 0 20px; background: var(--kd-card); border-radius: var(--kd-radius); box-shadow: var(--kd-shadow); overflow: hidden; }
.kd-side .function_t, .kd-side dt.function_t {
  font-size: 15px; font-weight: 600; padding: 12px 16px;
  border-bottom: 1px solid var(--kd-border); border-left: 4px solid var(--kd-main);
}
.kd-side .function_c, .kd-side dd.function_c { padding: 10px 16px 14px; font-size: 14px; }
.kd-side .function_c ul li, .kd-side dd.function_c ul li { padding: 5px 0; border-bottom: 1px dashed #f0f2f8; }
.kd-side .function_c ul li:last-child, .kd-side dd.function_c ul li:last-child { border-bottom: none; }
.kd-side .function_c a:hover, .kd-side dd.function_c a:hover { color: var(--kd-main); }

/* ---------------- 分页 ---------------- */
.kd-pagebar {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin: 34px 0 10px;
}
.kd-pagebar a, .kd-pagebar .now-page {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--kd-card); border: 1px solid var(--kd-border);
  border-radius: 8px; font-size: 14px; color: var(--kd-text);
}
.kd-pagebar a:hover { border-color: var(--kd-main); color: var(--kd-main); }
.kd-pagebar .on, .kd-pagebar .now-page {
  background: var(--kd-main); border-color: var(--kd-main); color: #fff; font-weight: 600;
}

/* ---------------- 评论 ---------------- */
.kd-comments { margin-top: 28px; }
.kd-comments-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.kd-comment-list { }
.kd-comment {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px dashed var(--kd-border);
}
.kd-comment-avatar { flex-shrink: 0; }
.kd-comment-avatar img { border-radius: 50%; background: #eef0f6; }
.kd-comment-main { flex: 1; min-width: 0; }
.kd-comment-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--kd-muted); }
.kd-comment-head b { color: var(--kd-text); font-size: 14px; }
.kd-comment-reply { margin-left: auto; color: var(--kd-main); font-size: 12.5px; }
.kd-comment-text { font-size: 14px; margin-top: 5px; line-height: 1.8; word-wrap: break-word; }
.kd-comment-sub { margin-top: 10px; }
.kd-comment-sub .kd-comment { border-bottom: none; padding: 10px 0 0; }
.kd-comment-post { margin-top: 20px; }
.kd-comment-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.kd-input {
  width: 100%; border: 1px solid var(--kd-border); border-radius: 8px;
  padding: 9px 12px; font-size: 14px; outline: none; font-family: inherit;
  background: #fbfcfe;
}
.kd-input:focus { border-color: var(--kd-main); background: #fff; }
.kd-comment-row .kd-input { flex: 1; min-width: 160px; }
.kd-comment-form textarea.kd-input { resize: vertical; }

/* ---------------- 页脚 ---------------- */
.kd-footer { background: var(--kd-top); color: rgba(255, 255, 255, .75); margin-top: 40px; }
.kd-foot-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 16px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.kd-logo-foot { margin-bottom: 14px; }
.kd-foot-about { font-size: 13.5px; line-height: 1.85; max-width: 360px; }
.kd-foot-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kd-foot-badges span {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .55);
}
.kd-foot-col h4 {
  position: relative; font-size: 14px; color: #fff;
  margin-bottom: 18px; padding-bottom: 10px; letter-spacing: .5px;
}
.kd-foot-col h4:after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 20px; height: 2px; border-radius: 2px; background: var(--kd-main);
}
.kd-foot-col a { display: block; font-size: 13.5px; padding: 5px 0; transition: color .15s, transform .15s; }
.kd-foot-col a:hover { color: #fff; transform: translateX(3px); }
.kd-foot-col p { font-size: 13.5px; padding: 4px 0; }
.kd-foot-links { display: flex; flex-direction: column; }
.kd-muted { color: rgba(255, 255, 255, .4); }
.kd-copyright {
  max-width: 1200px; margin: 0 auto; padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255, 255, 255, .5);
}
.kd-copyright a { color: rgba(255, 255, 255, .7); }
.kd-copyright a:hover { color: #fff; }

/* ---------------- 返回顶部 ---------------- */
.kd-gotop {
  position: fixed; right: 22px; bottom: 32px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--kd-main); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(59, 108, 255, .4);
  opacity: 0; visibility: hidden; transition: .3s;
}
.kd-gotop.show { opacity: 1; visibility: visible; }
.kd-gotop:hover { filter: brightness(1.15); }

/* ---------------- 404 ---------------- */
.kd-404-hero { text-align: center; padding: 70px 20px 36px; }
.kd-404-code {
  font-size: 120px; font-weight: 800; line-height: 1; letter-spacing: 2px;
  background: linear-gradient(120deg, var(--kd-main), #232a5c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kd-404-tip { color: var(--kd-muted); margin: 14px 0 26px; font-size: 16px; }
.kd-404-search { display: flex; max-width: 520px; margin: 0 auto 22px; gap: 10px; }
.kd-404-search input {
  flex: 1; height: 46px; padding: 0 16px; font-size: 15px; color: #1f2430;
  background: #fff; border: 1px solid #dfe3ea; border-radius: 10px; outline: none;
}
.kd-404-search input:focus { border-color: var(--kd-main); box-shadow: 0 0 0 3px rgba(55,138,221,.15); }
.kd-404-search button {
  height: 46px; padding: 0 26px; font-size: 15px; color: #fff; cursor: pointer;
  background: var(--kd-main); border: none; border-radius: 10px;
}
.kd-404-search button:hover { filter: brightness(1.08); }
.kd-404-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.kd-404-actions .kd-btn { padding: 11px 26px; font-size: 14.5px; border-radius: 10px; }
.kd-404-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.kd-404-sec { background: #fff; border: 1px solid #eceef2; border-radius: 14px; padding: 6px 4px 14px; }
.kd-404-cats { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
.kd-404-cats a {
  display: inline-block; padding: 7px 14px; font-size: 13.5px; color: #3a4252;
  background: #f3f5f9; border-radius: 999px; text-decoration: none;
}
.kd-404-cats a:hover { background: var(--kd-main); color: #fff; }
@media (max-width: 900px) { .kd-404-cols { grid-template-columns: 1fr; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .kd-layout { flex-direction: column; }
  .kd-side { width: 100%; }
  .kd-side-soft { position: static; }
  .kd-foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .kd-top-inner { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
  .kd-logo { order: 1; }
  .kd-top-user { order: 2; margin-left: auto; }
  .kd-nav-toggle { display: block; order: 3; }
  .kd-search { order: 4; width: 100%; margin-top: 4px; }
  .kd-search input { width: 100%; flex: 1; }
  .kd-nav {
    display: none; order: 5; width: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding-bottom: 8px;
  }
  .kd-nav.open { display: flex; }
  .kd-nav a { padding: 9px 14px; }
  .kd-nav-dropdown { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
  .kd-nav-dropdown::after { display: none; }
  .kd-nav-dropdown .kd-subnav {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(255, 255, 255, .06) !important;
    border-radius: 6px !important;
    padding: 2px 0 2px 12px !important;
    margin: 2px 0 6px !important;
  }
  .kd-nav-dropdown .kd-subnav a {
    color: rgba(255, 255, 255, .75) !important;
    padding: 7px 12px !important;
    font-size: 13px !important;
  }
  .kd-nav-dropdown .kd-subnav a:hover,
  .kd-nav-dropdown .kd-subnav a.sub-on {
    color: #fff !important;
    background: rgba(255, 255, 255, .12) !important;
  }
  .kd-hero { padding: 44px 16px 52px; }
  .kd-hero h1 { font-size: 25px; }
  .kd-hero p { font-size: 14px; }
  .kd-btn-hero, .kd-btn-hero-ghost { padding: 10px 24px; font-size: 14.5px; }
  .kd-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .kd-post { padding: 18px 16px; }
  .kd-title { font-size: 20px; }
  .kd-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .kd-foot-inner { grid-template-columns: 1fr; gap: 22px; }
  .kd-copyright { justify-content: center; text-align: center; }
  .kd-404-hero { padding: 48px 20px 28px; }
  .kd-404-code { font-size: 84px; }
}

@media (max-width: 480px) {
  .kd-grid { grid-template-columns: 1fr; }
  .kd-cate-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 隐藏侧边栏多余的“导航栏”模块（全站顶部已有导航） */
#divNavBar,
dl#divNavBar,
.kd-side #divNavBar,
.widget_navbar {
  display: none !important;
}

/* ===== 现代化侧栏标签云 (Tag Cloud) ===== */
.kd-side #divTags .function_c,
.kd-side dl#divTags dd.function_c,
#divTags .function_c,
#divTags dd {
  padding: 14px 16px;
  max-height: 260px;
  overflow-y: auto;
}

#divTags .function_c::-webkit-scrollbar {
  width: 4px;
}
#divTags .function_c::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
#divTags .function_c::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

#divTags ul,
dl#divTags ul,
.kd-side #divTags ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#divTags ul li,
dl#divTags ul li,
.kd-side #divTags ul li {
  display: inline-flex !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: none !important;
}

#divTags ul li a,
dl#divTags ul li a,
.kd-side #divTags ul li a {
  display: inline-flex !important;
  align-items: center !important;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  transition: all 0.15s ease;
  line-height: 1.4;
}

#divTags ul li a:hover,
dl#divTags ul li a:hover,
.kd-side #divTags ul li a:hover {
  background: var(--kd-main);
  color: #ffffff !important;
  border-color: var(--kd-main);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(59,108,255,0.25);
}

/* ===== 首页运营干货与SEO文章专属双栏流布局 ===== */
.kd-home-art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.kd-home-art-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kd-home-art-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SEO文章行级卡片 (自适应有图/无图) */
.kd-art-card {
  background: var(--kd-card);
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  padding: 18px 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.2s ease;
  text-decoration: none;
}
.kd-art-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.kd-art-cover {
  width: 170px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  display: block;
}
.kd-art-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.kd-art-card:hover .kd-art-cover img {
  transform: scale(1.05);
}
.kd-art-main {
  flex: 1;
  min-width: 0;
}
.kd-art-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.kd-art-cate {
  background: #eff6ff;
  color: var(--kd-main);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 11.5px;
}
.kd-art-cate:hover {
  background: var(--kd-main);
  color: #fff;
}
.kd-art-title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
.kd-art-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s;
}
.kd-art-title a:hover {
  color: var(--kd-main);
}
.kd-art-excerpt {
  margin: 0 0 10px 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kd-art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kd-art-tag {
  font-size: 11.5px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s;
}
.kd-art-tag:hover {
  background: var(--kd-main);
  color: #fff;
  border-color: var(--kd-main);
}
/* 无封面图时的纯文本优雅卡片 */
.kd-art-card-noimg {
  padding: 16px 20px;
}
.kd-art-card-noimg .kd-art-excerpt {
  -webkit-line-clamp: 3;
}

/* 首页资讯侧栏小组件 */
.kd-side-box {
  background: var(--kd-card);
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  padding: 16px 18px;
}
.kd-side-box-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.kd-rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kd-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kd-rank-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kd-rank-num-1 { background: #fee2e2; color: #ef4444; }
.kd-rank-num-2 { background: #ffedd5; color: #f97316; }
.kd-rank-num-3 { background: #fef9c3; color: #eab308; }
.kd-rank-info {
  flex: 1;
  min-width: 0;
}
.kd-rank-title {
  display: block;
  font-size: 13.5px;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.kd-rank-title:hover {
  color: var(--kd-main);
}
.kd-rank-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}
.kd-rank-price {
  color: var(--kd-price);
  font-weight: 600;
}
.kd-home-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kd-tag-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.kd-tag-chip:hover {
  background: var(--kd-main);
  color: #fff;
  border-color: var(--kd-main);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .kd-home-art-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .kd-art-card {
    flex-direction: column;
  }
  .kd-art-cover {
    width: 100%;
    height: 160px;
  }
}

/* 全站悬浮客服挂件 */
.kd-float-bar {
  position: fixed;
  right: 18px;
  bottom: 80px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kd-float-item {
  position: relative;
}
.kd-float-btn {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px;
}
.kd-float-btn i {
  font-size: 17px;
  margin-bottom: 2px;
}
.kd-float-btn span {
  font-size: 11px;
  line-height: 1;
}
.kd-float-btn:hover {
  background: var(--kd-main, #2563eb);
  color: #ffffff;
  border-color: var(--kd-main, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.kd-float-pop {
  display: none;
  position: absolute;
  right: 58px;
  bottom: 0;
  width: 200px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  padding: 14px;
  text-align: center;
  z-index: 1000;
}
.kd-float-pop::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 16px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  transform: rotate(45deg);
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}
.kd-float-wx:hover .kd-float-pop {
  display: block;
  animation: kdFadeIn 0.2s ease;
}
.kd-float-pop-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
}
.kd-float-pop-qr {
  width: 140px;
  height: 140px;
  margin: 0 auto 8px;
  display: block;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
}
.kd-float-pop-num {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}
.kd-float-pop-num b {
  color: #2563eb;
}
.kd-float-pop-time {
  font-size: 11px;
  color: #94a3b8;
}
.kd-float-top {
  display: none;
}
.kd-float-top.show {
  display: block;
}
@keyframes kdFadeIn {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 768px) {
  .kd-float-bar {
    right: 10px;
    bottom: 60px;
    gap: 8px;
  }
  .kd-float-btn {
    width: 42px;
    height: 42px;
  }
  .kd-float-pop {
    right: 50px;
    width: 180px;
  }
  .kd-float-pop-qr {
    width: 120px;
    height: 120px;
  }
}

/* 文章管理操作条（编辑/删除）与字号调节 */
.kd-meta-manage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}
.kd-act-edit, .kd-act-del {
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.kd-act-edit { color: #2563eb; }
.kd-act-edit:hover { color: #1d4ed8; text-decoration: underline; }
.kd-act-del { color: #ef4444; }
.kd-act-del:hover { color: #b91c1c; text-decoration: underline; }

.kd-font-ctrl {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kd-font-ctrl a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.kd-font-ctrl a:hover {
  background: var(--kd-main, #2563eb);
  color: #fff;
  border-color: var(--kd-main, #2563eb);
}

/* 扫码访问与版权声明卡片 */
.kd-article-copyright {
  margin-top: 30px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.kd-qr-box {
  width: 86px;
  height: 86px;
  background: #ffffff;
  padding: 3px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kd-qr-box canvas {
  width: 80px !important;
  height: 80px !important;
}
.kd-copyright-info {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
}
.kd-qr-tip {
  color: #334155;
  font-weight: 500;
  margin-bottom: 2px;
}
.kd-copy-author b {
  color: #1e293b;
}
.kd-copy-link {
  word-break: break-all;
}
.kd-copy-link a {
  color: #2563eb;
  text-decoration: none;
}
.kd-copy-link a:hover {
  text-decoration: underline;
}

/* 分享给朋友 */
.kd-share-row {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kd-share-label {
  font-size: 13px;
  color: #64748b;
  flex-shrink: 0;
}
.kd-share-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kd-share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.kd-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.kd-share-btn i {
  font-size: 15px;
  line-height: 1;
}
.kd-share-weibo { background: #e6162d; }
.kd-share-wx { background: #07c160; }
.kd-share-qq { background: #12b7f5; }
.kd-share-qzone { background: #ffce00; color: #8c6b00; }
.kd-share-x { background: #000000; }

/* 底部文章切换与返回列表 */
.kd-post-nav {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.kd-post-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.kd-nav-item {
  font-size: 13.5px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kd-nav-tag {
  color: #94a3b8;
  margin-right: 4px;
}
.kd-nav-item a {
  color: #334155;
  text-decoration: none;
}
.kd-nav-item a:hover {
  color: var(--kd-main, #2563eb);
}
.kd-post-backlist {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: #ffffff;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.kd-post-backlist:hover {
  background: var(--kd-main, #2563eb);
  color: #ffffff;
  border-color: var(--kd-main, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

@media (max-width: 640px) {
  .kd-article-copyright {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .kd-post-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .kd-post-backlist {
    align-self: flex-start;
  }
}

/* 点赞与打赏模块 */
.kd-reward-wrap {
  margin: 32px auto 20px;
  text-align: center;
}
.kd-reward-btns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}
.kd-btn-like, .kd-btn-reward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  position: relative;
}
.kd-btn-like {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}
.kd-btn-like:hover {
  background: #ffe4e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.22);
}
.kd-btn-like.liked {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}
.kd-btn-like.liked .kd-like-count {
  color: #ffffff;
}
.kd-like-count {
  font-weight: 700;
  margin-left: 2px;
}
.kd-like-plus {
  position: absolute;
  top: -18px;
  right: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #e11d48;
  animation: kdLikeFloat 1s forwards ease-out;
}
@keyframes kdLikeFloat {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-16px); }
}

.kd-reward-box {
  position: relative;
}
.kd-btn-reward {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}
.kd-btn-reward:hover {
  background: #ffedd5;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.22);
}
.kd-reward-pop {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  border: 1px solid #e2e8f0;
  padding: 16px 18px 12px;
  width: 330px;
  max-width: 90vw;
  display: none;
  z-index: 100;
  text-align: center;
}
.kd-reward-pop::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.kd-reward-pop.active, .kd-reward-box:hover .kd-reward-pop {
  display: block;
  animation: kdFadeIn 0.2s ease;
}
.kd-reward-qrs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
}
.kd-reward-qr-item {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}
.kd-reward-alipay .kd-reward-qr-header {
  background: #027aff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 4px;
}
.kd-reward-wxpay .kd-reward-qr-header {
  background: #07c160;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 4px;
}
.kd-reward-qr-img img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 8px auto;
  object-fit: contain;
}
.kd-reward-pop-tip {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   插件生态与依赖联动系统 (v2.5.0)
   ============================================================ */

/* 卡片角标 */
.kd-card-type-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(124, 58, 237, 0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}
.kd-price-pill-plugin {
  background: #059669 !important;
  color: #ffffff !important;
}

/* 插件详情页：依赖告警与主程序跳转看板 */
.kd-plugin-alert-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.06);
}
.kd-pac-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.kd-pac-badge {
  background: #6366f1;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.kd-pac-title {
  font-size: 15px;
  color: #1e1b4b;
}
.kd-pac-title a {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kd-pac-title a:hover {
  color: #3730a3;
}
.kd-pac-desc {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 12px;
}
.kd-pac-desc b {
  color: #0f172a;
}
.kd-pac-benefit {
  display: block;
  margin-top: 4px;
  color: #047857;
}
.kd-pac-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.kd-pac-btn-host {
  display: inline-flex;
  align-items: center;
  background: #4f46e5;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: all 0.15s ease;
}
.kd-pac-btn-host:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.kd-pac-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
}
.kd-pac-pill.kd-pill-free {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
  font-weight: 600;
}
.kd-pac-install {
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed #c7d2fe;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
}
.kd-pac-install-head {
  font-weight: 700;
  color: #312e81;
  margin-bottom: 4px;
}
.kd-pac-steps {
  margin: 0;
  padding-left: 20px;
  color: #475569;
  line-height: 1.7;
}
.kd-pac-steps code {
  background: #e0e7ff;
  color: #3730a3;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: monospace;
}

/* 主程序详情页：配套扩展插件生态专区 */
.kd-eco-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 24px;
}
.kd-eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.kd-eco-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
  color: inherit;
  text-decoration: none;
}
.kd-eco-card:hover {
  background: #ffffff;
  border-color: #818cf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}
.kd-eco-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.kd-eco-main {
  flex: 1;
  min-width: 0;
}
.kd-eco-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.kd-eco-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kd-eco-card:hover .kd-eco-title {
  color: #4f46e5;
}
.kd-eco-price {
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
  flex-shrink: 0;
}
.kd-eco-price.kd-free {
  color: #059669;
  font-weight: 600;
  font-size: 11px;
  background: #ecfdf5;
  padding: 1px 6px;
  border-radius: 4px;
}
.kd-eco-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kd-eco-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.kd-eco-tag {
  color: #94a3b8;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 3px;
}
.kd-eco-more {
  color: #4f46e5;
  font-weight: 600;
}

/* ============================================================
   主程序 / 扩展插件 分层展示 (v2.5.4)
   ============================================================ */

/* 混合网格里的插件卡片：紫色顶边提示（inset 阴影不占布局，不影响与主程序卡片对齐） */
.kd-card-is-plugin { box-shadow: inset 0 3px 0 0 #7c3aed, var(--kd-shadow); }
.kd-card-is-plugin:hover { box-shadow: inset 0 3px 0 0 #7c3aed, var(--kd-shadow-hover); }

/* 首页：配套扩展插件专区的紧凑卡片网格 (VS Code / Extension 级质感) */
.kd-plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.kd-plugin-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  transition: all .2s ease;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.kd-plugin-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
  text-decoration: none;
}
.kd-pc-badge {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.kd-plugin-card:hover .kd-pc-badge {
  background: #eff6ff;
  color: var(--kd-main, #2563eb);
}
.kd-icon-plug {
  display: block;
}
.kd-pc-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.kd-pc-main { flex: 1; min-width: 0; }
.kd-pc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.kd-pc-title {
  font-size: 14px; font-weight: 700; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kd-plugin-card:hover .kd-pc-title { color: var(--kd-main, #2563eb); }
.kd-pc-price { font-size: 12px; font-weight: 700; color: #e11d48; flex-shrink: 0; }
.kd-pc-price.kd-pc-free {
  color: #059669; font-weight: 600; font-size: 11px;
  background: #ecfdf5; padding: 1px 7px; border-radius: 4px;
}
.kd-pc-desc {
  font-size: 12px; color: #64748b; line-height: 1.55; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kd-pc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; }
.kd-pc-host {
  color: #64748b; background: #f8fafc; border: 1px solid #f1f5f9; padding: 1px 7px; border-radius: 4px;
  max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kd-pc-more { color: var(--kd-main, #2563eb); font-weight: 600; flex-shrink: 0; }
  background: #ecfdf5; padding: 1px 7px; border-radius: 4px;
}
.kd-pc-desc {
  font-size: 12.5px; color: #64748b; line-height: 1.55; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kd-pc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; }
.kd-pc-host {
  color: #94a3b8; background: #f8fafc; padding: 1px 7px; border-radius: 3px;
  max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kd-pc-more { color: #7c3aed; font-weight: 600; flex-shrink: 0; }

/* 详情页侧栏：所属主程序卡片 */
.kd-side-eco-app {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px 16px; padding: 10px 12px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  color: inherit; text-decoration: none; transition: all .2s;
}
.kd-side-eco-app:hover { background: #fff; border-color: #a78bfa; box-shadow: 0 2px 10px rgba(124, 58, 237, .08); }
.kd-se-icon { font-size: 20px; flex-shrink: 0; }
.kd-se-main { flex: 1; min-width: 0; }
.kd-se-title { display: block; font-size: 13px; font-weight: 700; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd-se-sub { display: block; font-size: 11px; color: #94a3b8; margin-top: 2px; }
.kd-se-arrow { color: #7c3aed; font-weight: 700; flex-shrink: 0; }

@media (max-width: 640px) {
  .kd-plugin-grid { grid-template-columns: 1fr; }
}

/* 分类页：统一卡片网格（软件产品卡 + 普通文章卡同处一个流，不做板块切分） */
.kd-cate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px;
  align-items: stretch;
}
/* 条目很少时不把卡片拉成一整行宽，保持自然卡宽、左对齐 */
.kd-cate-grid > * { max-width: 460px; }

/* 网格里的普通文章卡：无图也能撑住版面，不塞占位图 */
.kd-mini-card {
  display: flex; flex-direction: column;
  background: var(--kd-card, #fff);
  border: 1px solid var(--kd-border, #e5e9f2);
  border-radius: var(--kd-radius, 12px);
  padding: 18px 20px;
  box-shadow: var(--kd-shadow, 0 2px 10px rgba(15,23,42,.05));
  transition: .22s;
}
.kd-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59,108,255,.35);
  box-shadow: 0 8px 22px rgba(59,108,255,.10);
}
.kd-mini-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #94a3b8; margin-bottom: 8px;
}
.kd-mini-cate {
  color: var(--kd-main, #3b6cff); font-weight: 600;
  background: rgba(59,108,255,.08); padding: 1px 8px; border-radius: 4px;
}
.kd-mini-title {
  margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kd-mini-title a { color: #1e293b; text-decoration: none; }
.kd-mini-card:hover .kd-mini-title a { color: var(--kd-main, #3b6cff); }
.kd-mini-desc {
  margin: 0 0 12px; font-size: 13px; color: #64748b; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.kd-mini-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px dashed #e8edf5;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #94a3b8;
}
.kd-mini-more { color: var(--kd-main, #3b6cff); font-weight: 600; }

@media (max-width: 640px) {
  .kd-cate-grid { grid-template-columns: 1fr; }
  .kd-cate-grid > * { max-width: none; }
}

/* ============================================================
   分类列表页子产品线快捷筛选胶囊 Tab (v2.5.7)
   ============================================================ */
.kd-cate-tabs-wrap {
  margin: 0 0 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.kd-cate-tabs-wrap::-webkit-scrollbar {
  display: none;
}
.kd-cate-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0;
}
.kd-cate-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 15px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.kd-cate-tab:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
  transform: translateY(-1px);
}
.kd-cate-tab.on {
  background: var(--kd-main, #3b6cff) !important;
  border-color: var(--kd-main, #3b6cff) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(59, 108, 255, 0.28);
}
.kd-cate-tab-count {
  font-size: 11px;
  opacity: 0.8;
  font-weight: normal;
}
/* ---- 顶部/Hero 重做：移动端微调（2026-10-21） ---- */
@media (max-width: 768px) {
  .kd-hero { padding: 54px 16px 76px; }
  .kd-hero h1 { font-size: 26px; }
  .kd-hero p { font-size: 14px; margin-bottom: 26px; }
  .kd-btn-hero, .kd-btn-hero-ghost { padding: 11px 26px; font-size: 14.5px; }
  .kd-stats { margin-top: -36px; }
  .kd-stat + .kd-stat::before { display: none; }
  .kd-search input { width: 100%; }
}

/* ---- 顶部导航：修复 kd-nav-item 后置规则污染下拉项颜色（2026-10-21） ---- */
.kd-top .kd-nav .kd-nav-item > .kd-nav-link { color: rgba(255, 255, 255, .8); }
.kd-top .kd-nav .kd-nav-item > .kd-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.kd-top .kd-nav .kd-nav-item.on > .kd-nav-link {
  color: #fff;
  background: linear-gradient(135deg, var(--kd-main), #5f83ff);
  box-shadow: 0 3px 10px rgba(59, 108, 255, .4);
}

/* ---- 分类页：主程序/插件分区（2026-10-21） ---- */
.kd-cate-plugins { margin: 30px 0 6px; }
.kd-cate-plugins .kd-section-head { margin-bottom: 16px; }
@media (max-width: 768px) {
  .kd-cate-plugins { margin-top: 22px; }
}

/* ---------------- 文章 FAQ 折叠区（AI/搜索结构化问答） ---------------- */
.kd-faq {
  max-width: 860px; margin: 28px auto 0; padding: 22px 24px;
  background: #fff; border: 1px solid var(--kd-border); border-radius: 14px;
}
.kd-faq-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; margin: 0 0 14px; color: #1e293b;
}
.kd-faq-title span { font-size: 17px; }
.kd-faq-item {
  border-top: 1px solid var(--kd-border);
  padding: 12px 0;
}
.kd-faq-item:first-of-type { border-top: none; }
.kd-faq-item summary {
  cursor: pointer; font-size: 15px; font-weight: 600; color: #1e293b;
  list-style: none; position: relative; padding-right: 22px; line-height: 1.6;
}
.kd-faq-item summary::-webkit-details-marker { display: none; }
.kd-faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 0;
  color: var(--kd-main); font-weight: 700; font-size: 17px; transition: transform .2s;
}
.kd-faq-item[open] summary::after { content: '−'; }
.kd-faq-item summary:hover { color: var(--kd-main); }
.kd-faq-a {
  margin-top: 8px; font-size: 14.5px; line-height: 1.85; color: #475569;
}
/* 正文首段「一句话结论」高亮，利于 AI 摘要摘取 */
.kd-answer {
  padding: 14px 16px; background: #f5f8ff; border-left: 3px solid var(--kd-main);
  border-radius: 0 10px 10px 0; color: #1e293b;
}
@media (max-width: 768px) {
  .kd-faq { padding: 18px 16px; border-radius: 12px; }
  .kd-faq-title { font-size: 16px; }
}
