/* ══════════════════════════════════════════════════════════════════════
   爱微圈轻博客 · 主题「Magazine」
   2026-11-04 v3 · 1:1 复刻 a9.aiweiquan.cn 的视觉规格
   ──────────────────────────────────────────────────────────────────
   规格来源：直接读 a9 线上 DOM 的 computedStyle（不是看图猜）
     Banner      1440×600
     标题        36px / 700
     副标题      16px
     搜索框      780×64  白底 圆角10 内距6 阴影 0 10px 34px rgba(0,0,0,.24)
     搜索按钮    106×52  圆角8 左右内距26
     功能卡      310×80  圆角10 内距13 阴影 0 0 10px rgba(116,116,116,.08)
     导航        高69 内距8/20 菜单项52高 15px/700
     容器宽      1270
     主色        #627bf5  强调 #ff4e6a  成功 #00d084
     圆角        10px 统一
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --primary: #627bf5;
  --primary-dark: #4c63e0;
  --primary-light: rgba(98, 123, 245, .1);
  --accent: #ff4e6a;
  --accent-dark: #e83a55;
  --success: #00d084;
  --warning: #ffaa73;
  --vip: #f59e0b;

  --bg: #f5f6f7;
  --card: #ffffff;
  --text: #4e5358;
  --text-2: #777777;
  --text-3: #999999;
  --text-4: #b1b1b1;
  --key: #333333;
  --border: rgba(50, 50, 50, .06);

  --radius: 10px;
  --radius-sm: 4px;
  --shadow-sm: 0 0 10px rgba(116, 116, 116, .08);
  --shadow: 0 0 10px rgba(116, 116, 116, .08);
  --shadow-lg: 0 6px 20px rgba(116, 116, 116, .16);
  --max: 1270px;

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0e1319;
  --card: #171e26;
  --text: #e6ebf2;
  --text-2: #a9b4c2;
  --text-3: #6d7887;
  --text-4: #4d5663;
  --key: #e6ebf2;
  --border: rgba(255, 255, 255, .07);
  --shadow-sm: 0 0 10px rgba(0, 0, 0, .3);
  --shadow: 0 0 10px rgba(0, 0, 0, .3);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ══════════════ 导航（高 69，透明悬浮） ══════════════ */
.navbar {
  height: 69px; padding: 8px 20px;
  position: sticky; top: 0; z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.navbar.solid { box-shadow: var(--shadow); }
.navbar-inner {
  max-width: var(--max); margin: 0 auto;
  height: 52px; display: flex; align-items: center; gap: 16px;
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 700; color: var(--key); flex: none;
  height: 52px; padding: 0 8px;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-mark {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.nav-menu { display: flex; align-items: center; gap: 2px; flex: 1; list-style: none; }
.nav-menu a {
  display: flex; align-items: center; height: 52px; padding: 0 12px;
  font-size: 15px; font-weight: 700; color: var(--text-2);
  border-radius: var(--radius-sm); transition: .15s; white-space: nowrap;
}
.nav-menu a:hover { color: var(--primary); background: var(--primary-light); }
.nav-menu a.on { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.na-btn {
  width: 34px; height: 34px; border: none; background: transparent;
  color: var(--text-2); border-radius: var(--radius-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 14px; transition: .15s;
}
.na-btn:hover { color: var(--primary); background: var(--primary-light); }
.na-user {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 4px;
  border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-2);
  border: 1px solid var(--border); transition: .15s;
}
.na-user:hover { border-color: var(--primary); color: var(--primary); }
.na-user img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.na-burger { display: none; }

/* ══════════════ Banner（600 高） ══════════════ */
.home-banner {
  position: relative; height: 600px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4c63e0, #627bf5);
}
.hb-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hb-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,26,48,.5), rgba(20,26,48,.66));
}
.hb-inner {
  position: relative; z-index: 2; width: 840px; max-width: 100%;
  padding: 0 20px; text-align: center; color: #fff;
  transform: translateY(-40px);
}
.hb-title {
  font-size: 36px; font-weight: 700; line-height: 1.42;
  letter-spacing: -.3px; margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.hb-badge {
  font-size: 11px; font-weight: 700; font-style: normal;
  background: var(--accent); color: #fff;
  padding: 3px 7px; border-radius: 4px; transform: translateY(-8px);
  letter-spacing: .3px;
}
.hb-sub { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 32px; }

/* 搜索框 780×64 */
.search-box { width: 780px; max-width: 100%; margin: 0 auto; }
.search-box form {
  height: 64px; padding: 6px; background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(0,0,0,.24);
  display: flex; align-items: center; gap: 0;
}
.sb-sel { position: relative; flex: none; height: 52px; display: flex; align-items: center; }
.sb-sel select {
  appearance: none; -webkit-appearance: none; border: none; background: transparent;
  height: 52px; padding: 0 32px 0 16px; font-size: 14px; color: var(--text-2);
  cursor: pointer; outline: none; border-radius: var(--radius-sm);
}
.sb-sel select:hover { background: #f7f8fa; }
.sb-sel i { position: absolute; right: 13px; font-size: 10px; color: var(--text-4); pointer-events: none; }
.sb-sel::after { content: ""; width: 1px; height: 20px; background: var(--border); }
.sb-input {
  flex: 1; min-width: 0; height: 52px; border: none; outline: none; background: transparent;
  padding: 0 16px; font-size: 14.5px; color: var(--key);
}
.sb-input::placeholder { color: var(--text-4); }
.sb-btn {
  flex: none; height: 52px; padding: 0 26px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #4fc3f7, var(--primary));
  color: #fff; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; gap: 7px; transition: opacity .15s;
}
.sb-btn:hover { opacity: .92; }

/* Banner 标签 */
.hb-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.hb-chips a {
  padding: 5px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.16); color: rgba(255,255,255,.92);
  font-size: 13px; transition: .15s; backdrop-filter: blur(4px);
}
.hb-chips a:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ══════════════ 功能卡（310×80，压住 banner 底 40px） ══════════════ */
.feature-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: -40px; position: relative; z-index: 5;
}
.feature-card {
  height: 80px; padding: 13px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 11px;
  transition: transform .18s, box-shadow .18s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.fc-icon {
  width: 44px; height: 44px; border-radius: var(--radius); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}
.fc-1 { background: linear-gradient(135deg, #ff9a44, #f0432c); }
.fc-2 { background: linear-gradient(135deg, #8b7cf6, #6d4aff); }
.fc-3 { background: linear-gradient(135deg, #ff7a9c, #e83e63); }
.fc-4 { background: linear-gradient(135deg, #4fc3f7, #2b7fff); }
.fc-body { min-width: 0; }
.fc-title {
  font-size: 14.5px; font-weight: 700; color: var(--key);
  display: flex; align-items: center; gap: 5px; line-height: 1.3; margin-bottom: 2px;
}
.fc-badge {
  font-size: 10px; font-weight: 700; font-style: normal;
  padding: 1px 5px; border-radius: 3px;
  background: #fff0f2; color: var(--accent);
}
.fc-desc { font-size: 12px; color: var(--text-3); line-height: 1.4; }

/* ══════════════ 推荐条（rec-panel 圆角18） ══════════════ */
.rec-panel {
  margin-top: 16px; padding: 24px 24px 26px;
  background: linear-gradient(135deg, #f0fdf6, #e8f7f0);
  border-radius: 18px; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
}
[data-theme="dark"] .rec-panel { background: linear-gradient(135deg, #12261f, #0e1c19); }
.rec-panel::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,208,132,.16), transparent 70%);
}
.rec-bar { width: 3px; height: 20px; border-radius: 2px; background: var(--success); flex: none; }
.rec-title { font-size: 15px; font-weight: 700; color: var(--key); }
.rec-sub { font-size: 13px; color: var(--text-3); margin-left: 4px; }
.rec-link { margin-left: auto; font-size: 13.5px; color: var(--success); font-weight: 600; position: relative; z-index: 2; }

/* ══════════════ Tab（居中胶囊） ══════════════ */
.tabs-section { margin: 28px 0 20px; }
.tabs {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.tab {
  height: 38px; padding: 0 22px; display: inline-flex; align-items: center;
  border-radius: var(--radius); font-size: 14.5px; color: var(--text-2);
  background: transparent; transition: .15s; font-weight: 500;
}
.tab:hover { color: var(--primary); background: var(--primary-light); }
.tab.on {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 700;
  box-shadow: 0 4px 12px rgba(98,123,245,.3);
}

/* ══════════════ 文章列表 ══════════════ */
.main-wrap { padding: 8px 0 60px; }
.page-head { padding: 26px 0 20px; }
.page-head h1 { font-size: 24px; font-weight: 700; color: var(--key); margin-bottom: 4px; }
.page-head p { font-size: 13.5px; color: var(--text-3); }

.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.list-item {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.list-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.li-cover { display: block; aspect-ratio: 2/1; overflow: hidden; background: #eef0f3; }
.li-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.list-item:hover .li-cover img { transform: scale(1.03); }
.li-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.li-cat {
  align-self: flex-start; font-size: 11.5px; font-weight: 700;
  color: var(--primary); background: var(--primary-light);
  padding: 3px 9px; border-radius: var(--radius-sm); margin-bottom: 9px;
}
.li-title {
  font-size: 16.5px; font-weight: 700; line-height: 1.5; color: var(--key);
  margin-bottom: 7px;
}
.li-title a:hover { color: var(--primary); }
.li-desc {
  font-size: 13px; color: var(--text-3); line-height: 1.7;
  margin-bottom: 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.li-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-4);
  padding-top: 11px; border-top: 1px solid var(--border);
}
.li-meta img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.li-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 34px 0 0; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13.5px; color: var(--text-2); transition: .15s;
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; }
.empty-ico {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.empty h2 { font-size: 18px; font-weight: 700; color: var(--key); margin-bottom: 6px; }
.empty p { font-size: 13.5px; color: var(--text-3); }

/* ══════════════ 系统通用页（标签/友链/归档） ══════════════ */
.mg-page .site-main > .content {
  width: 100% !important; max-width: var(--max) !important;
  margin: 0 auto !important; padding: 0 20px 60px !important; box-sizing: border-box;
}
.mg-page .site-main.full-width {
  width: 100% !important; max-width: var(--max) !important;
  margin: 0 auto !important; padding: 0 20px 60px !important; box-sizing: border-box; display: block;
}
.mg-page .site-main { width: 100%; display: block; }

.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); padding: 22px 0 0; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-4); }
.breadcrumb .current { color: var(--text-2); }
.breadcrumb i { font-size: 11px; color: var(--primary); }

.archive-header {
  padding: 16px 0 22px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.archive-title-row { display: flex; align-items: flex-start; gap: 13px; margin-top: 14px; }
.archive-icon {
  width: 46px; height: 46px; border-radius: var(--radius); flex: none;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.archive-title { font-size: 24px; font-weight: 700; color: var(--key); line-height: 1.35; }
.archive-desc { font-size: 13.5px; color: var(--text-3); margin-top: 4px; }
.archive-stats { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--text-3); }
.archive-stats strong { font-size: 16px; color: var(--primary); margin-right: 3px; font-weight: 700; }

.empty-state { text-align: center; padding: 50px 20px 30px; }
.empty-state-icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.empty-state h2 { font-size: 18px; font-weight: 700; color: var(--key); margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; color: var(--text-3); line-height: 1.7; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 37px; padding: 0 18px;
  border: none; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: .15s; line-height: 1;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* 友链申请 */
.link-apply {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 22px; margin-bottom: 22px;
  background: linear-gradient(135deg, #f0f7ff, #eef4ff);
  border-radius: var(--radius); border: 1px solid rgba(98,123,245,.14);
}
[data-theme="dark"] .link-apply { background: linear-gradient(135deg, #182031, #151c2b); }
.link-apply-icon {
  width: 44px; height: 44px; border-radius: var(--radius); flex: none;
  background: var(--card); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.link-apply > div:nth-child(2) { flex: 1; min-width: 200px; }
.link-apply h2 { font-size: 16px; font-weight: 700; color: var(--key); margin-bottom: 3px; }
.link-apply p { font-size: 13px; color: var(--text-3); line-height: 1.65; }

.link-apply-form {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 24px 26px 22px; margin-bottom: 30px;
}
.link-apply-form-head { margin-bottom: 20px; }
.link-apply-form-head h2 {
  font-size: 17px; font-weight: 700; color: var(--key);
  display: flex; align-items: center; gap: 8px;
}
.link-apply-form-head h2 i { color: var(--primary); font-size: 15px; }
.link-apply-form-head p { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.link-apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; margin-bottom: 18px; }
.link-apply-grid label { display: block; }
.link-apply-grid label.full { grid-column: 1 / -1; }
.link-apply-grid label span {
  display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 6px;
}
.link-apply-grid input {
  width: 100%; height: 40px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--key); font-size: 13.5px; outline: none;
  transition: .15s;
}
.link-apply-grid input::placeholder { color: var(--text-4); }
.link-apply-grid input:focus { border-color: var(--primary); background: var(--card); }
.link-apply-submit {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.link-apply-submit > span { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.link-apply-submit > span i { color: var(--success); }
.link-apply-honeypot {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important;
}

/* 标签云 */
.tag-cloud, .tag-list { display: flex; flex-wrap: wrap; gap: 9px; padding: 4px 0 18px; }
.tag-cloud a, .tag-list a {
  display: inline-flex; align-items: baseline; gap: 6px;
  height: 34px; padding: 0 15px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13.5px; color: var(--text-2); transition: .15s;
}
.tag-cloud a:hover, .tag-list a:hover {
  border-color: var(--primary); color: var(--primary); background: var(--primary-light);
}
.tag-cloud a .count, .tag-list a .count { font-size: 11.5px; color: var(--text-4); }

/* 页面内搜索 */
.search-page-form {
  display: flex !important; align-items: stretch !important; gap: 8px !important;
  max-width: 560px; margin-top: 18px !important; flex-wrap: nowrap;
}
.search-page-form input[type="search"],
.search-page-form input[type="text"] {
  flex: 1 1 auto !important; width: auto !important; min-width: 0 !important;
  height: 40px !important; padding: 0 13px !important;
  border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important;
  background: var(--card) !important; color: var(--key) !important;
  font-size: 13.5px !important; outline: none !important; box-sizing: border-box;
}
.search-page-form input:focus { border-color: var(--primary) !important; }
.search-page-form .btn { flex: 0 0 auto !important; height: 40px !important; padding: 0 20px !important; white-space: nowrap; }

/* 系统分页 */
.pagination, .page-nav {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 30px 0 8px; flex-wrap: wrap;
}
.pagination a, .pagination span, .page-nav a, .page-nav span {
  min-width: 36px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13.5px; color: var(--text-2); transition: .15s;
}
.pagination a:hover, .page-nav a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active, .pagination .current, .page-nav .active, .page-nav .current {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* 归档时间轴 */
.year-block { margin-bottom: 32px; }
.year-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.year-num { font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1; }
.year-count { font-size: 12.5px; color: var(--text-3); }
.month-block { margin-top: 14px; }
.month-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 4px; padding-left: 2px;
}
.arc-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 4px 18px; }
.arc-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.arc-row:last-child { border-bottom: none; }
.arc-row time { font-size: 12.5px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.arc-row h3 { font-size: 15px; font-weight: 500; color: var(--key); line-height: 1.5; }
.arc-row h3 a:hover { color: var(--primary); }
.arc-cnt { font-size: 12px; color: var(--text-4); }

/* ══════════════ 文章详情 ══════════════ */
.article-wrap { max-width: 900px; margin: 0 auto; padding: 30px 20px 60px; }
.art-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 30px 34px 28px;
}
.art-kicker { margin-bottom: 14px; }
.art-cat {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  color: var(--primary); background: var(--primary-light);
  padding: 4px 10px; border-radius: var(--radius-sm);
}
.art-title { font-size: 28px; font-weight: 700; line-height: 1.42; color: var(--key); margin-bottom: 16px; }
.art-meta {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-4);
  padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px;
}
.art-meta img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.art-meta .name { color: var(--text-2); font-weight: 500; }
.art-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }
.art-cover { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.art-content { font-size: 15.5px; line-height: 1.9; color: var(--text); }
.art-content p { margin-bottom: 17px; }
.art-content h2 {
  font-size: 21px; font-weight: 700; color: var(--key);
  margin: 30px 0 13px; padding-left: 12px; border-left: 3px solid var(--primary); line-height: 1.45;
}
.art-content h3 { font-size: 17.5px; font-weight: 700; color: var(--key); margin: 24px 0 10px; }
.art-content a { color: var(--primary); }
.art-content a:hover { text-decoration: underline; }
.art-content img { border-radius: var(--radius); margin: 18px 0; }
.art-content ul, .art-content ol { margin: 0 0 17px 22px; }
.art-content li { margin-bottom: 6px; }
.art-content blockquote {
  border-left: 3px solid var(--primary); background: var(--primary-light);
  padding: 13px 18px; margin: 20px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-2);
}
.art-content code {
  background: var(--primary-light); color: var(--primary);
  padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
}
.art-content pre {
  background: #1b2030; color: #e6ebf2; padding: 16px 18px; border-radius: var(--radius);
  overflow-x: auto; margin: 20px 0; font-size: 13px; line-height: 1.7;
}
.art-content pre code { background: none; color: inherit; padding: 0; }
.art-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.art-content th, .art-content td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.art-content th { background: var(--primary-light); font-weight: 700; color: var(--key); }
.art-foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border); }
.art-tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.art-tags a {
  font-size: 12px; color: var(--primary); background: var(--primary-light);
  padding: 4px 10px; border-radius: var(--radius-sm);
}

/* ══════════════ 页脚 ══════════════ */
.footer { background: var(--card); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-in {
  max-width: var(--max); margin: 0 auto; padding: 36px 20px 20px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
}
.ft-brand { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 700; color: var(--key); margin-bottom: 10px; }
.ft-brand img { width: 30px; height: 30px; border-radius: 8px; }
.ft-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.ft-desc { font-size: 13px; color: var(--text-3); line-height: 1.75; margin-bottom: 14px; }
.ft-soc { display: flex; gap: 8px; }
.ft-soc a {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg);
  color: var(--text-2); display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: .15s;
}
.ft-soc a:hover { background: var(--primary); color: #fff; }
.ft-col h4 {
  font-size: 12.5px; font-weight: 700; color: var(--key); margin-bottom: 12px;
  letter-spacing: .5px;
}
.ft-col a { display: block; font-size: 13px; color: var(--text-3); padding: 4px 0; }
.ft-col a:hover { color: var(--primary); }
.ft-bottom {
  max-width: var(--max); margin: 0 auto; padding: 16px 20px 22px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; gap: 8px;
}
.ft-bottom a { color: var(--text-3); }
.ft-bottom a:hover { color: var(--primary); }

/* ══════════════ 响应式 ══════════════ */
@media (max-width: 1100px) {
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; gap: 28px; }
  .search-box { width: 100%; }
}

@media (max-width: 860px) {
  .home-banner { height: 480px; }
  .hb-inner { transform: translateY(-20px); }
  .hb-title { font-size: 26px; }
  .hb-sub { font-size: 14px; margin-bottom: 24px; }
  .list-grid { grid-template-columns: 1fr; }
  .art-card { padding: 24px 20px 22px; }
  .art-title { font-size: 22px; }
}

@media (max-width: 720px) {
  .navbar { padding: 6px 14px; height: 60px; }
  .navbar-inner { height: 48px; }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 6px 14px 12px; box-shadow: var(--shadow-lg); z-index: 99;
  }
  .nav-menu.open a { height: 46px; padding: 0 12px; }
  .na-burger { display: flex; }
  .na-user span { display: none; }

  .home-banner { height: 420px; }
  .hb-inner { transform: translateY(-10px); padding: 0 16px; }
  .hb-title { font-size: 21px; gap: 6px; }
  .hb-badge { font-size: 10px; transform: translateY(-4px); }
  .hb-sub { font-size: 13px; margin-bottom: 20px; }
  .search-box form { height: auto; flex-wrap: wrap; padding: 6px; gap: 6px; }
  .sb-sel { width: 100%; height: 44px; }
  .sb-sel select { width: 100%; height: 44px; background: var(--bg); border-radius: var(--radius-sm); }
  .sb-sel::after { display: none; }
  .sb-input { height: 44px; padding: 0 12px; }
  .sb-btn { width: 100%; height: 44px; justify-content: center; }

  .feature-cards { grid-template-columns: 1fr; gap: 8px; margin-top: -30px; }
  .feature-card { height: auto; min-height: 68px; }
  .wrap { padding: 0 14px; }

  .tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { height: 34px; padding: 0 16px; font-size: 13.5px; white-space: nowrap; }

  .mg-page .site-main > .content,
  .mg-page .site-main.full-width { padding: 0 14px 44px !important; }
  .archive-title { font-size: 20px; }
  .link-apply-form { padding: 18px 16px 16px; }
  .link-apply-grid { grid-template-columns: 1fr; gap: 12px; }
  .arc-row { grid-template-columns: 1fr; gap: 3px; padding: 11px 0; }
  .arc-row time { font-size: 11.5px; }
  .search-page-form { flex-direction: column !important; }
  .search-page-form .btn { width: 100% !important; justify-content: center !important; }
  .article-wrap { padding: 20px 14px 44px; }
  .art-content { font-size: 15px; }
  .footer-in { grid-template-columns: 1fr; gap: 22px; padding: 26px 14px 16px; }
  .ft-bottom { padding: 14px 14px 20px; flex-direction: column; align-items: flex-start; }
}


/* ══════════════════════════════════════════════════════════════
   ★ 2026-11-04 修：Banner 被系统容器限制成 1230 宽（应 1440）
   根因：系统把主题输出包在 <main class="site-main"><div class="content">
        而 .content 有 max-width:1270 + padding ⇒ Banner 继承了这个宽度
   修法：首页（type-home）把 .content 放开成全宽，内部 .wrap 自己管宽度
   ══════════════════════════════════════════════════════════════ */
.mg-page.type-home .site-main > .content {
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}
/* 首页 wrap 自己控制 1270 */
.mg-page.type-home .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
/* Banner 撑满整宽 */
.mg-page .home-banner {
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
@media (max-width: 720px) {
  .mg-page.type-home .site-main > .content { padding: 0 !important; }
  .mg-page.type-home .wrap { padding: 0 14px; }
}


/* ══════════════════════════════════════════════════════════════════════
   v4 · 列表区 1:1 复刻 a9（2026-11-04 实测值）
   ──────────────────────────────────────────────────────────────────────
   a9 实测：
     文章网格      5 列 × 241px，gap 16px
     Tab 容器      642×46 圆角30 内距5 gap4
     Tab 项        102×36 圆角30 14.5px/600 内距8/22
     卡片          圆角14px
     卡片按钮      圆角34（胶囊）13.5px/700 内距0/16
     分类标签      彩色小标签（橙/绿/蓝，按分类轮换）
     卡片头部      三色圆点 + 闪电图标 + 日期
   ══════════════════════════════════════════════════════════════════════ */

/* ── Tab（胶囊容器） ── */
.index-tabs {
  display: flex; align-items: center; gap: 4px;
  height: 46px; padding: 5px; border-radius: 30px;
  background: var(--card); box-shadow: var(--shadow-sm);
  width: fit-content; margin: 0 auto 22px;
}
.itab {
  height: 36px; padding: 8px 22px; border-radius: 30px;
  display: inline-flex; align-items: center;
  font-size: 14.5px; font-weight: 600; color: var(--text-2);
  transition: .18s; white-space: nowrap;
}
.itab:hover { color: var(--primary); background: var(--primary-light); }
.itab.on {
  background: linear-gradient(135deg, #8b9bff, var(--primary));
  color: #fff;
  box-shadow: 0 3px 10px rgba(98,123,245,.35);
}

/* ── 文章网格 5 列 ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ── 卡片（圆角 14） ── */
.post-card {
  background: var(--card); border-radius: 14px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* 卡片头部：三色圆点 + 闪电 + 日期 */
.pc-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px 8px;
}
.pc-dots { display: flex; gap: 3px; flex: none; }
.pc-dots i {
  width: 6px; height: 6px; border-radius: 50%; display: block;
}
.pc-dots i:nth-child(1) { background: #ff6b6b; }
.pc-dots i:nth-child(2) { background: #ffc93c; }
.pc-dots i:nth-child(3) { background: #4fc3f7; }
.pc-bolt {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--text-3); flex: none;
}
.pc-bolt i { color: #4fc3f7; font-size: 11px; }

/* 封面 */
.pc-cover {
  display: block; margin: 0 10px; aspect-ratio: 4/3;
  border-radius: 8px; overflow: hidden; background: #eef0f3;
}
.pc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.post-card:hover .pc-cover img { transform: scale(1.04); }

/* 卡片主体 */
.pc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.pc-title {
  font-size: 13.5px; font-weight: 500; line-height: 1.55; color: var(--key);
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 42px;
}
.pc-title a:hover { color: var(--primary); }

/* 分类彩色标签 */
.pc-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.pc-cat {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 3px;
  background: #eef1ff; color: #5b6bd6;
}
.pc-cat::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.pc-cat.c1 { background: #fff0e8; color: #e8722e; }
.pc-cat.c2 { background: #e8f8ef; color: #1a9b5c; }
.pc-cat.c3 { background: #e8f2ff; color: #2b7ad6; }
.pc-cat.c4 { background: #f4ecff; color: #7c4dd6; }
.pc-cat.c5 { background: #ffeef3; color: #d63a6a; }

/* 卡片按钮（胶囊 34） */
.pc-btn {
  margin-top: auto; height: 34px; border-radius: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #a5b4ff, #7c8cf8);
  transition: .18s;
}
.pc-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* 推荐条里的横滑卡（5 张 + 溢出） */
.rec-scroll {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.rec-wrap {
  background: linear-gradient(135deg, #eaf9f2, #dff4ea);
  border-radius: 18px; padding: 20px 22px 22px;
  position: relative; overflow: hidden; margin-bottom: 24px;
}
[data-theme="dark"] .rec-wrap { background: linear-gradient(135deg, #12261f, #0f1f1a); }
.rec-wrap::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0,208,132,.14), transparent 70%);
}
.rec-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; position: relative; z-index: 2;
}
.rec-head::before { content: ""; width: 3px; height: 18px; border-radius: 2px; background: var(--success); }
.rec-head b { font-size: 15px; font-weight: 700; color: var(--key); }
.rec-head span { font-size: 12.5px; color: var(--text-3); }
.rec-head a { margin-left: auto; font-size: 13px; color: var(--success); font-weight: 600; }

/* 推荐卡用小号（同款卡片，封面方一点） */
.rec-wrap .pc-cover { aspect-ratio: 1/1; }
.rec-wrap .pc-title { font-size: 12.5px; min-height: 38px; }

/* ── 响应式 ── */
@media (max-width: 1280px) {
  .post-grid { grid-template-columns: repeat(4, 1fr); }
  .rec-scroll { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .rec-scroll { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .rec-scroll { grid-template-columns: repeat(2, 1fr); }
  .index-tabs { overflow-x: auto; max-width: 100%; justify-content: flex-start; }
  .index-tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .rec-scroll { grid-template-columns: 1fr; }
  .rec-wrap { padding: 16px 14px 18px; }
  .pc-title { min-height: auto; font-size: 13px; }
}


/* ══════════════════════════════════════════════════════════════════════
   v5 修正（2026-11-04）
   ① 卡片封面被裁：4:3 方框装 16:10 横图 ⇒ 改 16:10，图完整不切
   ② Banner 太暗：遮罩加重了 ⇒ 减淡遮罩，让背景图透出来
   ③ 分类标签：pc-cat 已有样式，等有分类数据自动显示
   ══════════════════════════════════════════════════════════════════════ */

/* ① 封面改 16:10（文章封面原图就是 1200×720 = 16:9.6） */
.pc-cover { aspect-ratio: 16 / 10; }
.rec-wrap .pc-cover { aspect-ratio: 4 / 3; }

/* ② Banner 遮罩减淡，背景图亮出来 */
.hb-mask {
  background: linear-gradient(180deg, rgba(16,22,40,.32), rgba(16,22,40,.44));
}

/* Banner 标题加一点投影，保证淡背景也读得清 */
.hb-title { text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hb-sub { text-shadow: 0 1px 10px rgba(0,0,0,.3); }

/* ③ 功能卡往上提一点，和 a9 一样压住 Banner 底 40 */
.feature-cards { margin-top: -40px; }

/* 卡片标题字号对齐 a9（13.5），行高紧凑 */
.pc-title { font-size: 13.5px; line-height: 1.5; }


/* ══════════════════════════════════════════════════════════════════════
   v6 · 分组页 + 帖子页 + 全站配套
   （2026-11-04，照 wangzjk.com/zcw 截图复刻）
   ══════════════════════════════════════════════════════════════════════ */

/* ── ① 导航角标 NEW / HOT ── */
.nav-tag {
  font-size: 9px; font-weight: 700; font-style: normal;
  padding: 1px 4px; border-radius: 3px; margin-left: 3px;
  transform: translateY(-6px); line-height: 1.2; display: inline-block;
}
.nav-tag.new { background: #e8f2ff; color: #2b7ad6; }
.nav-tag.hot { background: #ffeef0; color: #ff4e6a; }

/* ── ② Banner 彩色插画版（分组页用） ── */
.banner-illust {
  position: relative; height: 400px; margin: 18px 20px 0;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(120deg, #4fc3f7 0%, #627bf5 55%, #7c8cf8 100%);
}
.banner-illust .bi-inner {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 100%; max-width: 940px; padding: 0 30px; text-align: center; color: #fff;
}
.banner-illust .bi-title {
  font-size: 50px; font-weight: 900; letter-spacing: -1px; line-height: 1.18;
  text-shadow: 0 4px 20px rgba(30,50,120,.32); margin-bottom: 8px;
}
.banner-illust .bi-title em { font-style: normal; color: #fff2b0; }
.banner-illust .bi-sub {
  font-size: 28px; font-weight: 800; letter-spacing: .5px;
  text-shadow: 0 3px 14px rgba(30,50,120,.28);
}
/* 底部面包屑条 */
.bi-crumb {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60px; padding: 0 26px;
  display: flex; align-items: center; gap: 10px; color: #fff;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.22);
}
.bi-crumb .ic {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: rgba(255,255,255,.24);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.bi-crumb b { font-size: 15px; font-weight: 700; }
.bi-crumb .cnt { font-size: 13px; color: rgba(255,255,255,.85); }
.bi-crumb a { margin-left: auto; font-size: 13px; color: #fff; opacity: .92; }
.bi-crumb a:hover { opacity: 1; text-decoration: underline; }

/* ── ③ 排序工具条 ── */
.sort-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0 16px; font-size: 13.5px; color: var(--text-3);
}
.sort-bar b { color: var(--text-2); font-weight: 500; font-size: 13px; margin-right: 2px; }
.sort-bar a { color: var(--text-3); transition: .15s; }
.sort-bar a:hover { color: var(--primary); }
.sort-bar a.on { color: var(--primary); font-weight: 700; }
.sort-bar .sp { width: 1px; height: 11px; background: var(--border); }

/* ── ④ 右侧悬浮工具栏 ── */
.float-rail {
  position: fixed; right: 10px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 8px;
}
.fr-item {
  position: relative; width: 46px; padding: 8px 0 7px; border-radius: 10px;
  background: var(--card); box-shadow: 0 2px 12px rgba(116,116,116,.18);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; color: var(--text-2); transition: .16s; cursor: pointer;
  border: none;
}
.fr-item:hover { transform: translateX(-2px); color: var(--primary); }
.fr-item i { font-size: 15px; }
.fr-item.vip { background: linear-gradient(160deg, #ffd76e, #f5a623); color: #7a4a00; }
.fr-item .fr-tag {
  position: absolute; top: -5px; right: -5px;
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 700;
  padding: 1px 4px; border-radius: 3px; line-height: 1.2;
}
@media (max-width: 1200px) { .float-rail { display: none; } }

/* ── ⑤ 卡片封面改方形 ── */
.pc-cover { aspect-ratio: 1 / 1; }
.rec-wrap .pc-cover { aspect-ratio: 1 / 1; }
.pc-title { font-size: 13.5px; line-height: 1.55; min-height: 42px; }
.pc-cats { min-height: 20px; }
.pc-btn {
  height: 32px; border-radius: 30px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #a9b8ff, #8090f8);
}
.pc-btn:hover { background: linear-gradient(135deg, #9aaaff, #6f80f5); }

/* ══════════ 帖子详情页 ══════════ */
.post-shell { max-width: 900px; margin: 0 auto; padding: 20px 20px 60px; }
.post-head {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-sm);
  padding: 26px 30px 22px; margin-bottom: 14px;
}
.post-head h1 {
  font-size: 25px; font-weight: 700; line-height: 1.45; color: var(--key); margin-bottom: 14px;
}
.ph-meta {
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3); padding-top: 14px; border-top: 1px solid var(--border);
}
.ph-author { display: flex; align-items: center; gap: 8px; }
.ph-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ph-author b { font-weight: 600; color: var(--text-2); font-size: 13px; }
.ph-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }
.ph-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 5px; font-size: 12px; font-weight: 600;
  background: var(--primary-light); color: var(--primary);
}
.ph-chip.warm { background: #fff3e8; color: #e8722e; }
.ph-chip.green { background: #e8f8ef; color: #1a9b5c; }

.post-body {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-sm);
  padding: 28px 30px 30px;
}
.post-cover { margin-bottom: 22px; border-radius: 10px; overflow: hidden; }
.post-content { font-size: 15.5px; line-height: 1.92; color: var(--text); }
.post-content p { margin-bottom: 16px; }
.post-content h2 {
  font-size: 20px; font-weight: 700; color: var(--key);
  margin: 28px 0 12px; padding-left: 11px; border-left: 3px solid var(--primary); line-height: 1.45;
}
.post-content h3 { font-size: 17px; font-weight: 700; color: var(--key); margin: 22px 0 10px; }
.post-content a { color: var(--primary); }
.post-content a:hover { text-decoration: underline; }
.post-content img { border-radius: 10px; margin: 16px 0; max-width: 100%; height: auto; }
.post-content ul, .post-content ol { margin: 0 0 16px 22px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  border-left: 3px solid var(--primary); background: var(--primary-light);
  padding: 12px 16px; margin: 18px 0; border-radius: 0 8px 8px 0; color: var(--text-2);
}
.post-content code {
  background: var(--primary-light); color: var(--primary);
  padding: 2px 6px; border-radius: 4px; font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.post-content pre {
  background: #1b2030; color: #e6ebf2; padding: 16px 18px; border-radius: 10px;
  overflow-x: auto; margin: 18px 0; font-size: 13px; line-height: 1.7;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.post-content th { background: var(--primary-light); font-weight: 700; color: var(--key); }

/* 下载框 */
.dl-box {
  margin-top: 22px; border: 1px dashed rgba(98,123,245,.35);
  background: linear-gradient(135deg, #f4f7ff, #eef3ff);
  border-radius: 12px; padding: 20px 22px;
}
[data-theme="dark"] .dl-box { background: linear-gradient(135deg, #171d2b, #141926); }
.dl-box h4 {
  font-size: 15px; font-weight: 700; color: var(--key);
  margin-bottom: 6px; display: flex; align-items: center; gap: 7px;
}
.dl-box h4 i { color: var(--primary); }
.dl-box p { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 26px; border-radius: 30px;
  background: linear-gradient(135deg, #a9b8ff, #7c8cf8); color: #fff;
  font-size: 14px; font-weight: 700; transition: .16s;
}
.dl-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* 上下篇 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.post-nav a {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; transition: .16s;
}
.post-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.post-nav span { font-size: 12px; color: var(--text-3); }
.post-nav b {
  font-size: 14px; font-weight: 600; color: var(--key); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.post-nav .nx { text-align: right; }

/* ── 响应式 ── */
@media (max-width: 860px) {
  .banner-illust { height: 300px; margin: 10px 12px 0; border-radius: 12px; }
  .banner-illust .bi-title { font-size: 30px; }
  .banner-illust .bi-sub { font-size: 18px; }
  .bi-crumb { height: 52px; padding: 0 16px; }
  .bi-crumb b { font-size: 13.5px; }
  .sort-bar { gap: 12px; font-size: 12.5px; padding: 14px 0 12px; }
  .post-head { padding: 20px 20px 16px; }
  .post-head h1 { font-size: 20px; }
  .post-body { padding: 20px 18px 22px; }
  .post-content { font-size: 15px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .nx { text-align: left; }
}
@media (max-width: 560px) {
  .banner-illust { height: 230px; }
  .banner-illust .bi-title { font-size: 23px; }
  .banner-illust .bi-sub { font-size: 14px; }
  .post-shell { padding: 12px 14px 44px; }
}


/* ══════════════════════════════════════════════════════════════════════
   v7 · 帖子页改版（2026-11-04）
   问题：封面被拉成近方形大块占满视口、右侧大片留白、比例失衡
   改法：① 加宽到 1180 两栏  ② 封面限高 380 + cover 裁切
        ③ 右侧加作者卡 / 热门 / 相关  ④ 顶部加面包屑  ⑤ 标题区加大留白
   ══════════════════════════════════════════════════════════════════════ */

/* ── 顶部面包屑条 ── */
.post-crumb {
  max-width: 1180px; margin: 0 auto; padding: 20px 20px 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-3);
}
.post-crumb a { color: var(--text-3); }
.post-crumb a:hover { color: var(--primary); }
.post-crumb .sp { color: var(--text-4); }
.post-crumb .cur { color: var(--text-2); }

/* ── 两栏容器 ── */
.post-layout {
  max-width: 1180px; margin: 0 auto; padding: 16px 20px 60px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px;
  align-items: start;
}
.post-main { min-width: 0; }

/* ── 标题卡 ── */
.post-head {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-sm);
  padding: 32px 36px 26px; margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.post-head::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--primary), #a9b8ff);
}
.post-head h1 {
  font-size: 30px; font-weight: 800; line-height: 1.42; color: var(--key);
  letter-spacing: -.4px; margin-bottom: 18px;
}
.ph-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3);
  padding-top: 16px; border-top: 1px solid var(--border);
}
.ph-author { display: flex; align-items: center; gap: 9px; }
.ph-author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ph-author b { font-weight: 600; color: var(--text-2); font-size: 13.5px; }
.ph-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }
.ph-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 5px; font-size: 12px; font-weight: 600;
  background: var(--primary-light); color: var(--primary);
}
.ph-chip.warm { background: #fff3e8; color: #e8722e; }
.ph-chip.green { background: #e8f8ef; color: #1a9b5c; }

/* ── 正文卡 ── */
.post-body {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-sm);
  padding: 30px 36px 34px;
}
/* 封面：限高 + 裁切，不再拉成大方块 */
.post-cover {
  margin: 0 0 26px; border-radius: 12px; overflow: hidden;
  max-height: 380px; background: #eef0f3;
}
.post-cover img {
  width: 100%; height: 100%; max-height: 380px;
  object-fit: cover; object-position: center;
  display: block;
}
.post-content { font-size: 15.5px; line-height: 1.95; color: var(--text); }
.post-content > *:first-child { margin-top: 0; }
.post-content p { margin-bottom: 17px; }
.post-content h2 {
  font-size: 20px; font-weight: 700; color: var(--key);
  margin: 30px 0 13px; padding-left: 12px; border-left: 3px solid var(--primary); line-height: 1.45;
}
.post-content h3 { font-size: 17px; font-weight: 700; color: var(--key); margin: 24px 0 10px; }
.post-content a { color: var(--primary); }
.post-content a:hover { text-decoration: underline; }
.post-content img { border-radius: 10px; margin: 18px 0; max-width: 100%; height: auto; }
.post-content ul, .post-content ol { margin: 0 0 17px 22px; }
.post-content li { margin-bottom: 7px; }
.post-content blockquote {
  border-left: 3px solid var(--primary); background: var(--primary-light);
  padding: 14px 18px; margin: 20px 0; border-radius: 0 8px 8px 0; color: var(--text-2);
}
.post-content code {
  background: var(--primary-light); color: var(--primary);
  padding: 2px 6px; border-radius: 4px; font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.post-content pre {
  background: #1b2030; color: #e6ebf2; padding: 16px 18px; border-radius: 10px;
  overflow-x: auto; margin: 20px 0; font-size: 13px; line-height: 1.7;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.post-content th { background: var(--primary-light); font-weight: 700; color: var(--key); }

/* 下载框 */
.dl-box {
  margin-top: 26px; border: 1px dashed rgba(98,123,245,.35);
  background: linear-gradient(135deg, #f4f7ff, #eef3ff);
  border-radius: 12px; padding: 22px 24px;
}
[data-theme="dark"] .dl-box { background: linear-gradient(135deg, #171d2b, #141926); }
.dl-box h4 {
  font-size: 15px; font-weight: 700; color: var(--key);
  margin-bottom: 6px; display: flex; align-items: center; gap: 7px;
}
.dl-box h4 i { color: var(--primary); }
.dl-box p { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 28px; border-radius: 30px;
  background: linear-gradient(135deg, #a9b8ff, #7c8cf8); color: #fff;
  font-size: 14px; font-weight: 700; transition: .16s;
}
.dl-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ── 右侧栏 ── */
.post-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.side-card {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-sm);
  padding: 20px 20px 18px;
}
.side-card h4 {
  font-size: 14px; font-weight: 700; color: var(--key); margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
}
.side-card h4::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--primary);
}
.side-card h4 i { color: var(--primary); font-size: 12px; }

/* 作者卡 */
.side-author { text-align: center; padding-top: 24px; }
.side-author img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 10px; box-shadow: 0 4px 14px rgba(98,123,245,.2);
}
.side-author b { display: block; font-size: 15px; font-weight: 700; color: var(--key); margin-bottom: 4px; }
.side-author p { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

/* 热门 / 相关列表 */
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-list a {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  transition: .15s;
}
.side-list a:last-child { border-bottom: none; padding-bottom: 0; }
.side-list a:hover { transform: translateX(2px); }
.side-list .idx {
  flex: none; width: 18px; height: 18px; border-radius: 4px;
  background: var(--bg); color: var(--text-3);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.side-list a:nth-child(1) .idx { background: var(--primary); color: #fff; }
.side-list a:nth-child(2) .idx { background: #ffb84d; color: #fff; }
.side-list a:nth-child(3) .idx { background: #ffd6a0; color: #8a5a00; }
.side-list .tt {
  font-size: 13px; color: var(--text-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.side-list a:hover .tt { color: var(--primary); }

/* 上下篇（放在左侧主栏底部） */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.post-nav a {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; transition: .16s;
}
.post-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.post-nav span { font-size: 12px; color: var(--text-3); }
.post-nav b {
  font-size: 14px; font-weight: 600; color: var(--key); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.post-nav .nx { text-align: right; }

/* ── 响应式 ── */
@media (max-width: 1080px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .post-side .side-card { flex: 1 1 300px; }
}
@media (max-width: 860px) {
  .post-head { padding: 24px 22px 20px; }
  .post-head h1 { font-size: 22px; }
  .post-body { padding: 22px 20px 26px; }
  .post-content { font-size: 15px; }
  .post-cover { max-height: 260px; }
  .post-cover img { max-height: 260px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .nx { text-align: left; }
  .post-crumb { padding: 14px 14px 0; font-size: 12.5px; }
  .post-layout { padding: 12px 14px 44px; }
}
