/* ============================================================
   副业研究所 - 网站样式
   说明：这是一个纯静态网站，你不需要改这个文件也能用。
   想换颜色，只改下面 :root 里的几个变量即可。
   ============================================================ */
:root {
  --brand: #16a34a;          /* 主色：成长绿（想换蓝色就改成 #2563eb） */
  --brand-dark: #15803d;
  --ink: #1f2933;            /* 正文深色字 */
  --muted: #6b7280;          /* 次要灰色字 */
  --bg: #ffffff;             /* 页面背景 */
  --bg-soft: #f6f8f7;        /* 浅灰区块背景 */
  --line: #e5e7eb;           /* 分割线 */
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,.06);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-weight: 800; font-size: 20px; color: var(--brand); letter-spacing: .5px; }
.logo span { color: var(--ink); }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 15px;
  transition: .2s; cursor: pointer; border: none;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* ---------- 首页 Hero ---------- */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #f0faf3 0%, #ffffff 100%); }
.hero h1 { font-size: 40px; line-height: 1.25; font-weight: 800; margin-bottom: 18px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tag {
  display: inline-block; font-size: 13px; color: var(--brand-dark);
  background: #dcfce7; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; font-weight: 600;
}

/* ---------- 通用区块 ---------- */
.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 32px; }

/* ---------- 分类卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover h3 { color: var(--brand); }
.cat-count {
  display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600;
  color: var(--brand); background: #ecfdf5; border-radius: 999px; padding: 4px 11px;
}

/* ---------- 栏目分组标题 ---------- */
.cat-head { display: flex; align-items: center; gap: 10px; margin: 40px 0 6px; scroll-margin-top: 80px; }
.cat-head:first-of-type { margin-top: 6px; }
.cat-head .bar { width: 4px; height: 20px; background: var(--brand); border-radius: 2px; flex: none; }
.cat-head h3 { font-size: 21px; color: var(--ink); }
.cat-head .num {
  font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px;
}
.cat-desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card .ico { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- 项目卡片 ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s;
}
.project:hover { transform: translateY(-4px); border-color: var(--brand); }
.project .thumb {
  height: 150px; background: linear-gradient(135deg, var(--brand) 0%, #4ade80 100%);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; font-weight: 800;
}
.project .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { font-size: 12px; color: var(--brand-dark); background: #dcfce7; padding: 3px 10px; border-radius: 999px; }
.project h3 { font-size: 18px; margin-bottom: 8px; }
.project p { color: var(--muted); font-size: 14px; flex: 1; }
.project .more { margin-top: 14px; color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------- 广告 / 联盟推广位 ---------- */
.ad-box {
  border: 2px dashed #cbd5e1; border-radius: var(--radius); padding: 28px;
  text-align: center; color: var(--muted); background: #fff;
}
.ad-box .label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #94a3b8; }
.ad-box .big { font-size: 18px; color: var(--ink); margin-top: 6px; font-weight: 600; }

/* ---------- 微信引流区 ---------- */
.lead { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.lead h2 { font-size: 28px; margin-bottom: 14px; }
.lead p { color: var(--muted); margin-bottom: 20px; }
.qr {
  width: 180px; height: 180px; margin: 0 auto; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; text-align: center; padding: 10px;
}

/* 微信名片（头像 + 昵称 + 微信号） */
.wx-head { display: flex; align-items: center; gap: 14px; }
.wx-avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .12); background: #e5e7eb;
}
.wx-name { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.wx-id { font-size: 14px; color: var(--muted); margin-top: 2px; }
.wx-id strong { color: var(--brand); letter-spacing: .3px; }
.wx-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.copy-tip { font-size: 13px; color: var(--muted); }

/* 二维码卡片 */
.qr-box {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 18px 14px; text-align: center; width: fit-content; margin: 0 auto;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}
.qr-box img { display: block; width: 220px; height: 220px; border-radius: 10px; }
.qr-cap { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- 文章页 ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.article .meta a { color: var(--brand); font-weight: 600; text-decoration: none; }
.article .meta a:hover { text-decoration: underline; }
.article ul { margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; font-size: 16px; }
.article h1 { font-size: 32px; line-height: 1.3; margin-bottom: 18px; }
.article h2 { font-size: 22px; margin: 32px 0 12px; }
.article p { margin-bottom: 16px; font-size: 16px; }
.article .note {
  background: #fffbeb; border-left: 4px solid #f59e0b; padding: 14px 18px;
  border-radius: 8px; color: #92400e; font-size: 15px; margin: 20px 0;
}
.article .back { display: inline-block; margin-top: 30px; color: var(--brand); font-weight: 600; }

/* 文章底部引流卡（二维码） */
.article-qr {
  display: flex; gap: 18px; align-items: center; margin: 38px 0 0;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 16px; padding: 18px;
}
.article-qr img {
  width: 132px; height: 132px; border-radius: 10px; background: #fff; flex: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
}
.article-qr-text strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.article-qr-text span {
  display: block; font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 12px;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
@media (max-width: 520px) {
  .article-qr { flex-direction: column; text-align: center; }
  .article-qr img { width: 150px; height: 150px; }
}

/* ---------- 页脚 ---------- */
.footer { background: #0f172a; color: #cbd5e1; padding: 40px 0; font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer a { color: #93c5fd; }
.footer .dis { max-width: 560px; line-height: 1.6; color: #94a3b8; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 30px; }
  .nav-links { display: none; }
  .wx-head { justify-content: center; text-align: left; }
  .wx-actions { justify-content: center; }
  .qr-box img { width: 200px; height: 200px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   以下为「三栏博客布局」（对照原站 Jz52_fthree 主题结构）
   左 280px 侧栏 + 中间文章列表 + 右 280px 侧栏
   ============================================================ */

/* ---------- 顶部：logo + 横向导航 + 搜索 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .inner {
  max-width: 1330px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.brand { font-weight: 800; font-size: 21px; color: var(--brand); letter-spacing: .5px; flex: none; }
.brand span { color: var(--ink); }
.topnav { display: flex; gap: 26px; font-size: 15.5px; flex: 1; min-width: 0; }
.topnav a { position: relative; padding: 5px 0; color: #384152; white-space: nowrap; }
.topnav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand); border-radius: 2px; transition: right .25s ease;
}
.topnav a:hover { color: var(--brand); }
.topnav a:hover::after { right: 0; }
.search-btn {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; transition: .2s;
}
.search-btn:hover { color: var(--brand); border-color: var(--brand); }
.search-bar { display: none; border-top: 1px solid var(--line); background: #fff; }
.search-bar.open { display: block; }
.search-bar .sb-in { max-width: 1330px; margin: 0 auto; padding: 12px 20px 16px; }
.search-bar input {
  width: 100%; padding: 12px 16px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc;
}
.search-bar input:focus { outline: none; border-color: var(--brand); background: #fff; }

/* ---------- 三栏骨架 ---------- */
.blog {
  max-width: 1330px; margin: 0 auto; padding: 24px 20px 64px;
  display: grid; grid-template-columns: 280px minmax(0,1fr) 280px;
  gap: 26px; align-items: start;
}

/* ---------- 顶部简介条（原站副标题位） ---------- */
.masthead {
  grid-column: 1 / -1;
  background: linear-gradient(118deg, #f0fdf4 0%, #ffffff 62%);
  border: 1px solid #dcfce7; border-radius: 18px;
  padding: 24px 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.masthead h1 { font-size: 25px; font-weight: 800; line-height: 1.35; }
.masthead > div:first-child { flex: 1 1 320px; min-width: 0; }
.masthead p { color: var(--muted); font-size: 14.5px; margin-top: 7px; max-width: 700px; }
.masthead .mh-cta { display: flex; gap: 12px; margin-left: auto; flex-wrap: wrap; }

/* ---------- 侧栏 ---------- */
.col-side { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 6px 22px rgba(15,23,42,.05); overflow: hidden;
}
.widget-h {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid #f1f5f9;
  font-weight: 700; font-size: 15px;
}
.widget-h::before { content: ""; width: 3px; height: 15px; background: var(--brand); border-radius: 2px; }
.widget-b { padding: 16px 18px; }

.about-card { text-align: center; }
.about-card img.avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px;
  box-shadow: 0 5px 16px rgba(22,163,74,.28);
}
.about-card .name { font-weight: 700; font-size: 16px; }
.about-card .desc { color: var(--muted); font-size: 13.5px; line-height: 1.75; margin-top: 8px; }
.about-card .wxid { font-size: 13px; color: var(--muted); margin-top: 10px; }
.about-card .wxid strong { color: var(--brand-dark); }
.about-card .qr-mini { width: 136px; margin: 12px auto 0; border-radius: 10px; border: 1px solid var(--line); }
.about-card .btn { margin-top: 12px; padding: 8px 18px; font-size: 14px; }

.cat-list { list-style: none; }
.cat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px dashed #eef2f4; font-size: 14.5px;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { color: #384152; }
.cat-list a:hover { color: var(--brand); }
.cat-list .n {
  font-size: 12px; color: var(--muted); background: #f1f5f9;
  border-radius: 999px; padding: 1px 9px; flex: none;
}

.rank-list, .latest-list { list-style: none; }
.rank-list li, .latest-list li { border-bottom: 1px dashed #eef2f4; }
.rank-list li:last-child, .latest-list li:last-child { border-bottom: none; }
.rank-list a, .latest-list a {
  display: flex; gap: 9px; padding: 9px 0; font-size: 14px;
  line-height: 1.55; color: #384152;
}
.rank-list a:hover, .latest-list a:hover { color: var(--brand); }
.rank-list .idx {
  flex: none; width: 19px; height: 19px; margin-top: 2px; border-radius: 6px;
  background: #f1f5f9; color: #64748b;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.rank-list li:nth-child(1) .idx { background: var(--brand); color: #fff; }
.rank-list li:nth-child(2) .idx { background: #22c55e; color: #fff; }
.rank-list li:nth-child(3) .idx { background: #4ade80; color: #fff; }
.latest-list a { flex-wrap: wrap; }
.latest-list .dt { flex: 0 0 100%; display: block; font-size: 12px; color: #9aa3af; margin-top: 2px; white-space: nowrap; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a {
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
  background: #f8fafc; border: 1px solid var(--line); color: #475569; transition: .2s;
}
.tagcloud a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.ad-mini {
  border: 1.5px dashed #cbd5e1; border-radius: 12px; padding: 18px 12px;
  text-align: center; color: var(--muted); font-size: 13px; background: #fbfdfc;
}
.ad-mini strong { display: block; color: #475569; font-size: 13.5px; margin-bottom: 4px; }

/* ---------- 中间文章列表（横向大卡） ---------- */
.col-main { min-width: 0; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--brand); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar button {
  font: inherit; font-size: 13.5px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: #475569; cursor: pointer; transition: .2s;
}
.filter-bar button:hover { border-color: var(--brand); color: var(--brand); }
.filter-bar button.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.cat-head { margin: 26px 0 6px; }
.cat-head:first-of-type { margin-top: 4px; }
.cat-head[hidden] { display: none; }
.cat-desc { margin-bottom: 16px; }
.cat-desc[hidden] { display: none; }

.post {
  display: grid;
  grid-template-columns: 212px minmax(0,1fr);
  grid-template-areas: "img title" "img content" "meta meta";
  column-gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px 12px; margin-bottom: 18px;
  box-shadow: 0 6px 22px rgba(15,23,42,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15,23,42,.09);
  border-color: #d1fae5;
}
.post[hidden] { display: none; }

.post-img {
  grid-area: img;
  align-self: stretch; min-height: 140px;
  border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 21px; font-weight: 800; letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--g1, #16a34a), var(--g2, #4ade80));
  position: relative;
}
.post-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 16%, rgba(255,255,255,.34), transparent 58%);
}
.post:hover .post-img > span { transform: scale(1.06); }
.post-img > span { position: relative; z-index: 1; transition: transform .35s ease; }

.post-title { grid-area: title; }
.post-title h2 { font-size: 19px; line-height: 1.45; font-weight: 700; margin-bottom: 8px; }
.post-title h2 a:hover { color: var(--brand); }
.cat-link {
  font-size: 12px; font-weight: 600; color: var(--brand-dark) !important;
  background: #dcfce7; border-radius: 6px; padding: 2px 8px;
}
.cat-link:hover { background: var(--brand); color: #fff !important; }
.post-content { grid-area: content; }
.post-content p {
  color: var(--muted); font-size: 14.5px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta {
  grid-area: meta; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 11px; border-top: 1px solid #f1f5f9;
  font-size: 12.5px; color: #9aa3af;
}
.post-meta .l { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.post-meta .l a { color: #8b93a0; }
.post-meta .l a:hover { color: var(--brand); }
.post-meta img {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px #e5e7eb; flex: none;
}

/* ============================================================
   文章内页（Entry）
   ============================================================ */
.head-btn { flex: none; padding: 8px 18px; font-size: 14px; }
.crumb .sep { color: #c7cdd6; margin: 0 7px; }
.crumb b { color: #4b5563; font-weight: 600; }

.entry {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 6px 22px rgba(15,23,42,.05); overflow: hidden;
}
.entry-hero {
  position: relative; height: 166px; padding: 20px 28px;
  display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(135deg, var(--g1, #16a34a), var(--g2, #4ade80));
  overflow: hidden;
}
.entry-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 84% 6%, rgba(255,255,255,.32), transparent 56%);
}
.entry-hero .chip {
  position: absolute; top: 18px; left: 28px; z-index: 1;
  font-size: 12px; letter-spacing: .5px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.42);
}
.entry-hero .cat {
  position: absolute; top: 20px; right: 28px; z-index: 1;
  font-size: 12.5px; opacity: .92; letter-spacing: .5px;
}
.entry-hero .word {
  position: relative; z-index: 1;
  font-size: 40px; font-weight: 800; letter-spacing: 4px; line-height: 1;
  text-shadow: 0 3px 16px rgba(0,0,0,.18);
}

.entry-inner { padding: 26px 30px 30px; }
.entry-title { font-size: 26px; line-height: 1.5; font-weight: 800; letter-spacing: -.2px; margin-bottom: 14px; }
.entry-meta {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 13px; color: #9aa3af;
  padding-bottom: 18px; border-bottom: 1px solid #f1f5f9; margin-bottom: 22px;
}
.entry-meta img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #e5e7eb; }
.entry-meta .au { color: #374151; font-weight: 600; font-size: 13.5px; }
.entry-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #d1d5db; }
.entry-meta .pill { background: #dcfce7; color: var(--brand-dark); font-weight: 600; padding: 2px 9px; border-radius: 6px; }
.entry-meta .pill:hover { background: var(--brand); color: #fff; }

.entry-lead {
  font-size: 15.5px; line-height: 1.85; color: #4b5563;
  background: #f7fbf8; border-left: 3px solid #86efac; border-radius: 0 10px 10px 0;
  padding: 13px 16px; margin-bottom: 26px;
}

.entry-body { font-size: 16.5px; line-height: 1.95; color: #374151; }
.entry-body > p { margin-bottom: 18px; }
.entry-body h2 {
  font-size: 19.5px; font-weight: 700; color: var(--ink); line-height: 1.55;
  margin: 34px 0 12px; padding-left: 12px; border-left: 4px solid var(--brand);
  border-radius: 2px;
}
.entry-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 26px 0 10px; }
.entry-body strong { color: var(--brand-dark); font-weight: 700; }
.entry-body a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-body .soft-p { color: var(--muted); font-size: 14.5px; }

.entry-body ul.facts {
  list-style: none; margin: 8px 0 20px; padding: 10px 18px;
  background: #f8fafc; border: 1px solid #eef2f4; border-radius: 12px;
}
.entry-body ul.facts li {
  position: relative; padding: 8px 0 8px 17px; margin: 0;
  font-size: 15.5px; line-height: 1.8; color: #475569;
  border-bottom: 1px dashed #e8edf1;
}
.entry-body ul.facts li:last-child { border-bottom: none; }
.entry-body ul.facts li::before {
  content: ""; position: absolute; left: 1px; top: 17px;
  width: 6px; height: 6px; border-radius: 50%; background: #86efac;
}

.entry-body ul.dir-list { list-style: none; margin: 10px 0 22px; }
.entry-body ul.dir-list li {
  display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start;
  padding: 13px 0; margin: 0; border-bottom: 1px dashed #eef2f4;
}
.entry-body ul.dir-list li:last-child { border-bottom: none; }
.entry-body ul.dir-list .no {
  width: 26px; height: 26px; border-radius: 8px; margin-top: 3px;
  background: #ecfdf5; color: var(--brand-dark);
  font-size: 12.5px; font-weight: 700; display: grid; place-items: center;
}
.entry-body ul.dir-list b { display: block; font-size: 15.5px; color: var(--ink); font-weight: 700; margin-bottom: 3px; }
.entry-body ul.dir-list span { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.entry-body ul:not(.facts):not(.dir-list) { margin: 0 0 18px 22px; }
.entry-body li { margin-bottom: 8px; }

/* 原版正文里的引用块 / 图片 / 视频链接 */
.entry-body blockquote {
  margin: 18px 0; padding: 12px 18px;
  background: #f8fafc; border-left: 4px solid #cbd5e1; border-radius: 0 10px 10px 0;
  color: #475569; font-size: 15.5px; line-height: 1.95;
}
.entry-body blockquote p { margin-bottom: 6px; }
.entry-body blockquote p:last-child { margin-bottom: 0; }
.entry-body img {
  margin: 12px auto; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15,23,42,.08);
}
.entry-body .video-link a {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8;
  font-weight: 600; text-decoration: none;
}
.entry-body .video-link a:hover { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }

.entry-body .note {
  background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid #f97316;
  border-radius: 10px; padding: 14px 16px; font-size: 14.5px; line-height: 1.85;
  color: #92400e; margin: 24px 0;
}
.entry-body .note.tip {
  background: #eff6ff; border-color: #bfdbfe; border-left-color: #3b82f6; color: #1e40af;
}
.entry-body .note strong { color: inherit; }

.entry-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 4px; }
.entry-tags a {
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  background: #f8fafc; border: 1px solid var(--line); color: #5b6472; transition: .2s;
}
.entry-tags a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.entry-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.entry-nav a {
  display: flex; flex-direction: column; gap: 5px;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  background: #fff; transition: .22s;
}
.entry-nav a:hover { border-color: #d1fae5; background: #f8fffa; transform: translateY(-2px); }
.entry-nav .k { font-size: 12px; color: #9aa3af; }
.entry-nav .t { font-size: 14.5px; font-weight: 600; color: #242b38; line-height: 1.55; }
.entry-nav a:hover .t { color: var(--brand); }
.entry-nav a.next { text-align: right; align-items: flex-end; }

.related { margin-top: 24px; }
.rel-h { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 700; margin-bottom: 14px; }
.rel-h::before { content: ""; width: 4px; height: 17px; background: var(--brand); border-radius: 2px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(15,23,42,.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.rel-card:hover { transform: translateY(-3px); border-color: #d1fae5; box-shadow: 0 14px 30px rgba(15,23,42,.08); }
.rel-thumb {
  display: flex; align-items: center; justify-content: center; height: 74px;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--g1, #16a34a), var(--g2, #4ade80));
}
.rel-body { padding: 11px 13px 13px; }
.rel-body h4 {
  font-size: 14px; line-height: 1.55; font-weight: 600; color: #242b38;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rel-card:hover h4 { color: var(--brand); }
.rel-body .d { font-size: 11.5px; color: #9aa3af; margin-top: 7px; }

@media (max-width: 760px) {
  .entry-hero { height: 132px; padding: 16px 20px; }
  .entry-hero .chip { top: 14px; left: 20px; }
  .entry-hero .cat { top: 16px; right: 20px; }
  .entry-hero .word { font-size: 30px; letter-spacing: 3px; }
  .entry-inner { padding: 20px 18px 24px; }
  .entry-title { font-size: 21px; }
  .entry-body { font-size: 16px; line-height: 1.9; }
  .rel-grid { grid-template-columns: 1fr; }
  .head-btn { display: none; }
}
@media (max-width: 560px) {
  .entry-nav { grid-template-columns: 1fr; }
  .entry-nav a.next { text-align: left; align-items: flex-start; }
}

/* ---------- 三栏布局响应式 ---------- */
@media (max-width: 1160px) {
  .blog { grid-template-columns: minmax(0,1fr); padding-top: 18px; }
  .col-side { display: none; }
  .col-main { max-width: 900px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .site-head .inner { gap: 16px; height: 58px; }
  .topnav { gap: 16px; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .brand { font-size: 18px; }
  .masthead { padding: 18px 20px; }
  .masthead h1 { font-size: 20px; }
  .masthead .mh-cta { margin-left: 0; width: 100%; }
  .masthead .mh-cta .btn { padding: 9px 18px; font-size: 14px; }
}
@media (max-width: 600px) {
  .post {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "img" "title" "content" "meta";
    padding: 14px 16px 10px;
  }
  .post-img { aspect-ratio: 16 / 9; align-self: auto; min-height: 0; margin-bottom: 13px; font-size: 24px; }
  .post-title h2 { font-size: 17.5px; }
  .post-meta { font-size: 12px; }
  .post-meta .l { gap: 10px; }
}

.entry-body .link-off { color: #9aa3af; font-size: 14px; }
