/*
Theme Name: 1kj Mirror
Theme URI: https://1kj.org
Author: 1kj.org
Description: Windows 原版镜像资源库主题。左右两栏布局，镜像按分类/版本/语言组织，支持 ed2k、BT、百度网盘、夸克网盘等下载渠道展示，自带后台字段与演示数据。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 1kj-mirror
Tags: custom-post-types, two-columns, custom-menu, translation-ready
*/

/* ===== 1kj.org 共享样式表 ===== */
:root {
  --brand: #2b7cd6;
  --brand-dark: #1f66b8;
  --brand-light: #e8f1fb;
  --text-main: #1f2329;
  --text-sub: #6b7280;
  --border: #e5e7eb;
  --bg: #f5f7fa;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  font-size: 14px;
}
a { text-decoration: none; color: inherit; }

/* ===== 顶部导航栏 ===== */
.topbar {
  height: 60px;
  background: linear-gradient(90deg, #2b7cd6 0%, #2e86e0 100%);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(43,124,214,.25);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}
.logo .logo-mark {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logo .logo-mark svg { width: 18px; height: 18px; }
.logo .divider { opacity: .45; font-weight: 300; margin: 0 2px; }
.logo .sub { font-size: 16px; font-weight: 500; }

.search-box {
  flex: 0 1 520px;
  height: 38px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}
.search-box svg { width: 16px; height: 16px; stroke: #9ca3af; flex: none; }
.search-box input {
  border: none; outline: none; width: 100%;
  font-size: 13px; color: var(--text-main);
  background: transparent;
}
.search-box input::placeholder { color: #9ca3af; }
.search-box kbd {
  flex: none;
  font-size: 11px; color: #9ca3af;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: inherit;
}

.topbar-notice {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.92);
  font-size: 12.5px;
  white-space: nowrap;
}
.topbar-notice svg { width: 14px; height: 14px; flex: none; }

/* ===== 主体两栏 ===== */
.layout {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 60px);
}

/* ----- 左侧栏 ----- */
.sidebar {
  width: 232px;
  flex: none;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 16px 0 32px;
}
.nav-group { margin-bottom: 4px; }
.nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: color .15s;
}
.nav-group-title:hover { color: var(--brand); }
.nav-group-title svg {
  width: 12px; height: 12px;
  stroke: #9ca3af;
  transition: transform .2s;
}
.nav-group-title svg.open { transform: rotate(0deg); }
.nav-group-title svg.collapsed { transform: rotate(-90deg); }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 32px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.nav-item:hover { color: var(--brand); background: #fafbfc; }
.nav-item.active {
  color: var(--brand);
  background: var(--brand-light);
  border-left-color: var(--brand);
  font-weight: 500;
}
.nav-item .count {
  margin-left: auto;
  font-size: 11px;
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 1px 8px;
}
.nav-item.active .count { background: rgba(43,124,214,.14); color: var(--brand); }
.nav-item svg.os-icon { width: 16px; height: 16px; flex: none; opacity: .75; }
.nav-group-title .cat-icon { width: 16px; height: 16px; margin-right: 10px; flex: none; opacity: .85; }

/* ----- 右侧内容区 ----- */
.content {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 48px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 6px;
}
.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}
.page-title .en { color: var(--brand); }
.page-meta {
  margin: 8px 0 20px;
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #d1d5db; }

/* 筛选 chips */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.chip {
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
  color: #4b5563;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 500;
}
.filter-row .lang-select {
  margin-left: auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: #4b5563;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.filter-row .lang-select svg { width: 12px; height: 12px; stroke: #9ca3af; }

/* ===== 镜像列表 ===== */
.table-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16,24,40,.04);
}
.table-head, .table-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 110px 100px 120px 150px 190px;
  align-items: center;
  padding: 0 20px;
}
.table-head {
  height: 44px;
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-sub);
}
.table-row {
  min-height: 68px;
  border-bottom: 1px solid #f0f1f3;
  cursor: pointer;
  transition: background .15s;
}
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: #fafbfc; }

.file-cell { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 0; }
.file-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 9px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
}
.file-icon svg { width: 20px; height: 20px; }
.file-info { min-width: 0; }
.file-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: 1px;
}
.tag.biz { background: #e8f1fb; color: var(--brand); }
.tag.consumer { background: #ecfdf3; color: #12b76a; }
.tag.x86 { background: #fef6e7; color: #d97706; }
.tag.standard { background: #e8f1fb; color: var(--brand); }
.tag.datacenter { background: #f3e8ff; color: #8b5cf6; }
.tag.ltsc { background: #fef6e7; color: #d97706; }
.tag.volume { background: #ecfdf3; color: #12b76a; }
.tag.retail { background: #fdf2f8; color: #db2777; }
.col-plain { font-size: 13px; color: #374151; }
.col-date { font-size: 13px; color: var(--text-sub); }
.col-size { font-size: 13px; color: #374151; font-variant-numeric: tabular-nums; }

.hash-cell { font-size: 12px; color: var(--text-sub); font-family: Consolas, monospace; }
.hash-cell .copy {
  color: var(--brand);
  cursor: pointer;
  margin-left: 6px;
  font-size: 11px;
  font-family: inherit;
}
.actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn {
  height: 30px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
  transition: all .15s;
}
.btn svg { width: 13px; height: 13px; }
.btn-primary { background: var(--brand); color: #fff; font-weight: 500; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: #4b5563; border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); }

/* 展开详情 */
.detail-row {
  background: #f8fafc;
  border-bottom: 1px solid #f0f1f3;
  padding: 18px 20px 20px 70px;
  display: none;
}
.detail-row.open { display: block; }
.detail-grid {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr);
  row-gap: 10px;
  column-gap: 18px;
  font-size: 13px;
  max-width: 980px;
}
.detail-grid .k { color: var(--text-sub); }
.detail-grid .v { color: var(--text-main); font-family: Consolas, monospace; word-break: break-all; }
.detail-links { display: flex; gap: 10px; margin-top: 14px; }
.link-pill {
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.link-pill.ed2k { background: var(--brand-light); color: var(--brand); font-weight: 500; }
.link-pill.bt { background: #ecfdf3; color: #12b76a; font-weight: 500; }
.link-pill.magnet { background: #f3f4f6; color: #4b5563; }
.link-pill.baidu { background: #e8f1fb; color: #2b5cff; }
.link-pill.quark { background: #eef2ff; color: #4c6ef5; }

/* 底部提示 */
.notice-strip {
  margin-top: 20px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.7;
}
.notice-strip svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.notice-strip b { font-weight: 600; }

.footer-tip {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.8;
}

/* ===== 附加组件（多页共用） ===== */
/* 搜索结果高亮 */
mark {
  background: #fff3c2;
  color: #b45309;
  border-radius: 2px;
  padding: 0 2px;
}

/* 搜索结果页：结果分组与面包屑 */
.result-group-title {
  margin: 26px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-group-title .g-count {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-sub);
  background: #f3f4f6;
  border-radius: 10px;
  padding: 2px 9px;
}
.result-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all .15s;
}
.result-item:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(43,124,214,.10); }
.result-item .file-cell { flex: 1; min-width: 0; padding: 0; }
.crumb {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.crumb .sep { color: #d1d5db; }
.crumb .cur { color: var(--brand); }

/* 空状态 */
.empty-state {
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 64px 32px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.empty-state .empty-icon {
  width: 96px; height: 96px;
  border-radius: 24px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.empty-state .empty-icon svg { width: 44px; height: 44px; }
.empty-state h3 { font-size: 17px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text-sub); line-height: 1.8; max-width: 460px; }
.empty-state .empty-actions { display: flex; gap: 12px; margin-top: 24px; }
.empty-state .btn { height: 36px; padding: 0 20px; border-radius: 8px; font-size: 13px; }
.btn-outline { background: #fff; color: var(--brand); border: 1px solid var(--brand); font-weight: 500; }
.btn-outline:hover { background: var(--brand-light); }

/* ===== 运行版补充：可折叠导航组 ===== */
.nav-group.closed .nav-item { display: none; }
.nav-group.closed .nav-group-title svg { transform: rotate(-90deg); }
.detail-links { flex-wrap: wrap; }

/* ===== 语言下拉 ===== */
.lang-select select {
  border: none; outline: none; background: transparent;
  font-size: 13px; color: #4b5563; font-family: inherit; cursor: pointer;
}

/* ===== 轻提示 Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 40px;
  transform: translateX(-50%) translateY(16px);
  background: #1f2329; color: #fff;
  font-size: 13px; padding: 9px 20px;
  border-radius: 8px; opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 详情页 ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-sub); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-sub); transition: color .15s; cursor: pointer; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: #d1d5db; }
.breadcrumb .cur { color: var(--text-main); font-weight: 500; }
.detail-head { margin-bottom: 22px; }
.detail-head .title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-head h1 { font-size: 24px; font-weight: 700; }
.detail-head .title-sub { margin-top: 8px; font-size: 13px; color: var(--text-sub); font-family: Consolas, monospace; }
.detail-head .meta-row { margin-top: 12px; display: flex; gap: 16px; font-size: 13px; color: var(--text-sub); align-items: center; flex-wrap: wrap; }
.detail-head .meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: #d1d5db; }
.badge-new { background: #ecfdf3; color: #12b76a; font-size: 11px; padding: 3px 8px; border-radius: 4px; font-weight: 500; }
.detail-layout { display: flex; gap: 24px; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail-aside { width: 300px; flex: none; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1024px) { .detail-layout { flex-direction: column; } .detail-aside { width: 100%; } }

.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.panel-head { padding: 15px 20px; border-bottom: 1px solid #f0f1f3; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 15px; font-weight: 600; }
.panel-head .hint { font-size: 12px; color: var(--text-sub); }
.panel-body { padding: 18px 20px; }

.info-grid { display: grid; grid-template-columns: 96px minmax(0,1fr); row-gap: 13px; column-gap: 16px; font-size: 13px; }
.info-grid .k { color: var(--text-sub); }
.info-grid .v { color: var(--text-main); word-break: break-all; }
.info-grid .v.mono { font-family: Consolas, monospace; }
.hash-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn {
  height: 24px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--border); background: #fff;
  font-size: 11.5px; color: var(--brand); cursor: pointer;
  flex: none; transition: all .15s; font-family: inherit;
}
.copy-btn:hover { border-color: var(--brand); background: var(--brand-light); }

.dl-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #f5f6f8; }
.dl-row:last-child { border-bottom: none; }
.dl-icon { width: 38px; height: 38px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.dl-icon svg { width: 20px; height: 20px; }
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-size: 13.5px; font-weight: 500; color: var(--text-main); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-desc { margin-top: 3px; font-size: 12px; color: var(--text-sub); }
.dl-extra { margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code-pill { font-size: 12px; font-family: Consolas, monospace; color: var(--text-main); background: #f3f4f6; border-radius: 6px; padding: 3px 9px; }
.code-pill b { color: var(--brand); font-weight: 600; letter-spacing: 1px; }
.dl-action { flex: none; }
.rc-tag { font-size: 10.5px; line-height: 1; padding: 3px 6px; border-radius: 4px; font-weight: 500; }
.rc-recommend { background: #fff1f0; color: #f5222d; }
.rc-fast { background: #ecfdf3; color: #12b76a; }

.aside-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.spec-list { display: flex; flex-direction: column; gap: 11px; font-size: 13px; }
.spec-list .row { display: flex; justify-content: space-between; gap: 12px; }
.spec-list .row .k { color: var(--text-sub); flex: none; }
.spec-list .row .v { color: var(--text-main); text-align: right; }
.aside-card .panel-body { padding: 16px 18px; }
.rel-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 13px; color: #374151; cursor: pointer; border-bottom: 1px solid #f5f6f8; }
.rel-link:last-child { border-bottom: none; }
.rel-link:hover { color: var(--brand); }
.rel-link .arr { color: #d1d5db; font-size: 12px; }
.feedback-btn {
  width: 100%; height: 36px; border-radius: 8px;
  border: 1px dashed #d1d5db; background: #fafbfc;
  font-size: 13px; color: #4b5563; cursor: pointer; transition: all .15s; font-family: inherit;
}
.feedback-btn:hover { color: var(--brand); border-color: var(--brand); }
.series-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid #f5f6f8; font-size: 13px; cursor: pointer; }
.series-row:last-child { border-bottom: none; }
.series-row:hover { color: var(--brand); }
.series-row .s-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.series-row .s-size { color: var(--text-sub); font-variant-numeric: tabular-nums; flex: none; }

/* ===== 帮助与教程页 ===== */
.tut-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.tut-card {
  width: calc((100% - 32px) / 3);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 1px 3px rgba(16,24,40,.04);
}
@media (max-width: 1100px) { .tut-card { width: calc((100% - 16px) / 2); } }
@media (max-width: 720px) { .tut-card { width: 100%; } }
.tut-card:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(43,124,214,.12); transform: translateY(-2px); }
.tut-top { display: flex; align-items: center; gap: 10px; }
.tut-icon { width: 38px; height: 38px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.tut-icon svg { width: 20px; height: 20px; }
.tut-cat { font-size: 11px; padding: 3px 8px; border-radius: 4px; font-weight: 500; }
.cat-install { background: #e8f1fb; color: var(--brand); }
.cat-hash { background: #fef6e7; color: #d97706; }
.cat-usb { background: #f3e8ff; color: #8b5cf6; }
.cat-faq { background: #f3f4f6; color: #4b5563; }
.tut-title { font-size: 14.5px; font-weight: 600; color: var(--text-main); line-height: 1.5; }
.tut-desc { font-size: 12.5px; color: var(--text-sub); line-height: 1.7; flex: 1; }
.tut-meta { display: flex; gap: 12px; font-size: 11.5px; color: #9ca3af; border-top: 1px solid #f5f6f8; padding-top: 10px; }

.faq-item { border-bottom: 1px solid #f5f6f8; }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; font-size: 14px; font-weight: 500; color: var(--text-main); cursor: pointer; }
.faq-q:hover { color: var(--brand); }
.faq-q svg { width: 13px; height: 13px; stroke: #9ca3af; transition: transform .2s; flex: none; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 4px 16px; font-size: 13px; color: var(--text-sub); line-height: 1.9; }
.faq-item.open .faq-a { display: block; }
.faq-a code { font-family: Consolas, monospace; background: #f3f4f6; border-radius: 4px; padding: 1px 6px; color: #374151; font-size: 12px; }
.section-label { font-size: 15px; font-weight: 600; margin: 28px 0 14px; }
.section-label:first-of-type { margin-top: 4px; }

/* ===== 侧栏菜单项防换行 ===== */
.nav-item { white-space: nowrap; }

/* ===== WordPress 适配样式 ===== */
a.tut-card, a.result-item, a.series-row, a.rel-link { text-decoration: none; color: inherit; }
a.tut-card { display: flex; }
.series-row { display: flex; }

/* 分页 */
.pager { display: flex; gap: 8px; justify-content: center; margin: 22px 0 4px; flex-wrap: wrap; }
.pager .page-numbers {
  min-width: 32px; height: 32px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: #4b5563; background: #fff;
}
.pager .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .page-numbers:hover { border-color: var(--brand); color: var(--brand); }

/* 正文排版 */
.entry-content { font-size: 14px; line-height: 1.9; color: #374151; }
.entry-content h2 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; color: var(--text-main); }
.entry-content h3 { font-size: 15px; font-weight: 600; margin: 18px 0 8px; color: var(--text-main); }
.entry-content p { margin-bottom: 12px; }
.entry-content ul, .entry-content ol { margin: 0 0 12px 22px; }
.entry-content li { margin-bottom: 6px; }
.entry-content code {
  font-family: Consolas, "Courier New", monospace;
  background: #f3f4f6; border-radius: 4px; padding: 1px 6px; font-size: 12.5px;
}
.entry-content pre {
  background: #1f2329; color: #e5e7eb; border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; margin-bottom: 14px;
}
.entry-content pre code { background: transparent; color: inherit; padding: 0; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content a { color: var(--brand); text-decoration: underline; }
.entry-content blockquote {
  border-left: 3px solid var(--brand-light); padding-left: 14px;
  color: var(--text-sub); margin: 0 0 14px;
}

/* 响应式 */
@media (max-width: 900px) {
  .topbar { padding: 0 16px; gap: 12px; height: auto; min-height: 60px; flex-wrap: wrap; }
  .topbar-notice { display: none; }
  .search-box { flex: 1 1 100%; margin-bottom: 10px; }
  .layout { flex-direction: column; min-height: auto; }
  .sidebar {
    width: 100%; border-right: none; border-bottom: 1px solid var(--border);
    padding: 8px 0; display: flex; flex-wrap: wrap; gap: 0 8px;
  }
  .nav-group { flex: 1 1 100%; margin-bottom: 0; }
  .nav-group-title { padding: 8px 16px; }
  .nav-item { padding: 8px 16px 8px 28px; }
  .content { padding: 20px 16px 40px; }
  .table-card { overflow-x: auto; }
  .table-head, .table-row { min-width: 780px; }
  .detail-row { min-width: 780px; }
  .detail-layout { flex-direction: column; }
  .detail-aside { width: 100%; }
  .detail-grid { grid-template-columns: 86px minmax(0, 1fr); }
  .pager { justify-content: flex-start; }
}

/* 分组标题图标由 span gap 控制间距 */
.nav-group-title span .cat-icon { margin-right: 0; }

/* 登录状态下让顶栏避开管理工具栏 */
body.admin-bar .topbar { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .topbar { top: 46px; }
}

/* 搜索输入框在部分浏览器中的默认样式重置 */
.search-box input[type="search"] { -webkit-appearance: none; appearance: none; }
.search-box input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* 阿里云盘胶囊 */
.link-pill.aliyun { background: #fff7ed; color: #c2410c; }
