/* =========================================================
   博客 10 种风格 + 8 套配色
   ========================================================= */
.blog-wrap {
  --bl-accent: #ff9900;
  --bl-accent2: #295eaf;
  --bl-bg: #fcfcfc;
  --bl-surface: #ffffff;
  --bl-text: #3a3f45;
  --bl-muted: #8a929c;
  --bl-line: #ececec;
  --bl-radius: 2px;
  padding: 45px 0 60px;
  color: var(--bl-text);
  background: var(--bl-bg);
}
.blog-wrap[data-palette="2"] { --bl-accent:#295eaf; --bl-accent2:#ff9900; --bl-bg:#f6f9fd; --bl-text:#22334a; --bl-muted:#6b7c93; --bl-line:#e2e9f3; }
.blog-wrap[data-palette="3"] { --bl-accent:#0f8b8d; --bl-accent2:#f2a03d; --bl-bg:#f4fbfb; --bl-text:#1e3d3d; --bl-muted:#6c8686; --bl-line:#d8ecec; }
.blog-wrap[data-palette="4"] { --bl-accent:#9b1c31; --bl-accent2:#c9a227; --bl-bg:#fdf8f8; --bl-text:#3a1a20; --bl-muted:#8a6a6f; --bl-line:#f0dfe2; }
.blog-wrap[data-palette="5"] { --bl-accent:#1f7a4d; --bl-accent2:#d4a017; --bl-bg:#f6fbf8; --bl-text:#183a2a; --bl-muted:#6d8b7c; --bl-line:#dcebe2; }
.blog-wrap[data-palette="6"] { --bl-accent:#2f3640; --bl-accent2:#ff9900; --bl-bg:#f4f5f7; --bl-text:#23272e; --bl-muted:#7b838f; --bl-line:#e1e4e8; }
.blog-wrap[data-palette="7"] { --bl-accent:#6b4fbb; --bl-accent2:#ffb300; --bl-bg:#f8f6ff; --bl-text:#2c2344; --bl-muted:#7f7796; --bl-line:#e6e0f5; }
.blog-wrap[data-palette="8"] { --bl-accent:#b8860b; --bl-accent2:#1f3a5f; --bl-bg:#fffdf5; --bl-text:#3c3220; --bl-muted:#8b7d63; --bl-line:#efe5cf; }

.blog-wrap * { box-sizing: border-box; }
.blog-wrap h2, .blog-wrap h3, .blog-wrap h4 { color: var(--bl-text); }
.blog-wrap a { color: inherit; }
.blog-wrap a:hover { color: var(--bl-accent); }
.bl-meta { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--bl-muted); }
.bl-cat { display: inline-block; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--bl-accent); margin-bottom: 8px; }
.bl-more { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .6px; color: var(--bl-accent); text-transform: uppercase; }
.bl-empty { text-align: center; color: var(--bl-muted); padding: 60px 0; }

/* 统一图片占位 */
.bl-thumb, .bl-featured-media, .bl-ed-media, .bl-side-thumb, .bl-overlay-card > a { display: block; overflow: hidden; background: var(--bl-line); position: relative; }
.bl-thumb img, .bl-featured-media img, .bl-ed-media img, .bl-side-thumb img, .bl-overlay-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bl-thumb:hover img, .bl-featured-media:hover img, .bl-ed-media:hover img, .bl-overlay-card:hover img { transform: scale(1.04); }
.bl-thumb .ph, .bl-featured-media .ph, .bl-ed-media .ph, .bl-side-thumb .ph, .bl-overlay-card .ph {
  width: 100%; height: 100%; min-height: 200px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bl-accent) 0%, var(--bl-accent2) 100%);
}
.bl-thumb .ph span, .bl-featured-media .ph span, .bl-ed-media .ph span, .bl-side-thumb .ph span, .bl-overlay-card .ph span {
  font-size: 64px; font-weight: 700; color: rgba(255,255,255,.82); line-height: 1;
}

/* ---------- Style 2 / 5 / 7 通用卡片 ---------- */
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.bl-grid-2 { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
.bl-card { background: var(--bl-surface); border: 1px solid var(--bl-line); display: flex; flex-direction: column; }
.bl-card .bl-thumb { aspect-ratio: 16/10; }
.bl-card-body { padding: 22px 22px 26px; }
.bl-card h3 { font-size: 19px; line-height: 1.35; font-weight: 600; margin: 4px 0 8px; }
.bl-card h3 a { color: var(--bl-text); }
.bl-card h3 a:hover { color: var(--bl-accent); }
.bl-card p { font-size: 13px; line-height: 21px; color: var(--bl-muted); margin: 10px 0 0; }

/* ---------- Style 1 时间线 ---------- */
.bl-timeline { position: relative; max-width: 900px; margin: 0 auto; padding-left: 0; }
.bl-timeline::before { content: ""; position: absolute; left: 158px; top: 0; bottom: 0; width: 1px; background: var(--bl-line); }
.bl-tl-item { display: flex; gap: 26px; position: relative; padding-bottom: 42px; }
.bl-tl-date { width: 130px; text-align: right; flex: 0 0 130px; padding-right: 14px; }
.bl-tl-date strong { display: block; font-size: 34px; line-height: 1; font-weight: 700; color: var(--bl-accent); }
.bl-tl-date span { font-size: 12px; color: var(--bl-muted); letter-spacing: .8px; text-transform: uppercase; }
.bl-tl-dot { position: absolute; left: 152px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--bl-surface); border: 2px solid var(--bl-accent); }
.bl-tl-body { padding-left: 20px; flex: 1; }
.bl-tl-body h3 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.bl-tl-body p { font-size: 13px; line-height: 22px; color: var(--bl-muted); margin: 8px 0 0; }

/* ---------- Style 4 极简 ---------- */
.bl-minimal { max-width: 900px; margin: 0 auto; }
.bl-row { display: flex; align-items: center; gap: 20px; padding: 24px 6px; border-bottom: 1px solid var(--bl-line); }
.bl-row h3 { font-size: 18px; font-weight: 500; margin: 0 0 4px; }
.bl-row h3 a { color: var(--bl-text); }
.bl-row h3 a:hover { color: var(--bl-accent); }
.bl-row-main { flex: 1; }
.bl-arrow { color: var(--bl-accent); font-size: 20px; opacity: 0; transform: translateX(-6px); transition: .25s; }
.bl-row:hover .bl-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Style 10 大字头条 ---------- */
.bl-headlines { max-width: 960px; margin: 0 auto; }
.bl-headlines .bl-row { border-bottom: 2px solid var(--bl-line); padding: 30px 0; }
.bl-headlines .bl-num { font-size: 38px; font-weight: 800; line-height: 1; color: var(--bl-line); width: 70px; flex: 0 0 70px; }
.bl-headlines .bl-row:hover .bl-num { color: var(--bl-accent); }
.bl-headlines h3 { font-size: 28px; line-height: 1.25; font-weight: 700; }
.bl-headlines .bl-row:hover h3 { color: var(--bl-accent); }

/* ---------- Style 3 杂志 ---------- */
.bl-featured { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--bl-surface); border: 1px solid var(--bl-line); margin-bottom: 10px; }
.bl-featured-media { min-height: 360px; }
.bl-featured-body { padding: 42px 40px; display: flex; flex-direction: column; justify-content: center; }
.bl-featured-body h2 { font-size: 30px; line-height: 1.25; font-weight: 700; margin: 4px 0 10px; }
.bl-featured-body p { color: var(--bl-muted); line-height: 22px; margin-top: 12px; }

/* ---------- Style 5 瀑布流 ---------- */
.bl-masonry { column-count: 3; column-gap: 28px; }
.bl-masonry .bl-card { break-inside: avoid; margin-bottom: 28px; }
.bl-masonry .bl-thumb { aspect-ratio: auto; height: auto; }
.bl-masonry .bl-thumb .ph { min-height: 160px; }
.bl-masonry .bl-card:nth-child(3n+1) .bl-thumb { aspect-ratio: 4/5; }

/* ---------- Style 6 编辑风 ---------- */
.bl-editorial { display: flex; flex-direction: column; gap: 45px; }
.bl-ed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--bl-surface); border: 1px solid var(--bl-line); }
.bl-ed-row.rev .bl-ed-media { order: 2; }
.bl-ed-media { min-height: 320px; }
.bl-ed-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.bl-big-date { font-size: 44px; font-weight: 700; line-height: .9; color: var(--bl-accent); margin-bottom: 14px; }
.bl-big-date span { display: block; font-size: 12px; font-weight: 500; letter-spacing: 2px; color: var(--bl-muted); margin-top: 6px; text-transform: uppercase; }
.bl-ed-body h3 { font-size: 23px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }
.bl-ed-body p { color: var(--bl-muted); font-size: 13px; line-height: 22px; }

/* ---------- Style 7 深色 ---------- */
.bl-dark { background: #1f242b; padding: 40px; --bl-surface:#272d36; --bl-line:#353c47; --bl-text:#f2f4f7; --bl-muted:#9aa4b2; --bl-bg:#1f242b; }
.bl-dark .bl-card { border-color: #353c47; }
.bl-dark h3 a { color: #f2f4f7; }
.bl-dark h3 a:hover { color: var(--bl-accent); }
.bl-dark .bl-card p { color: #9aa4b2; }

/* ---------- Style 8 侧栏 ---------- */
.bl-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 45px; }
.bl-side-item { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--bl-line); }
.bl-side-thumb { aspect-ratio: 4/3; }
.bl-side-item h3 { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 4px 0 8px; }
.bl-side-item p { color: var(--bl-muted); font-size: 13px; line-height: 21px; }
.bl-sidebar h4 { font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid var(--bl-accent); margin: 0 0 16px; }
.bl-sidebar ul { list-style: none; padding: 0; margin: 0 0 32px; }
.bl-sidebar li { padding: 9px 0; border-bottom: 1px solid var(--bl-line); font-size: 13px; line-height: 19px; }
.bl-sidebar li a { color: var(--bl-text); }
.bl-sidebar li span { display: block; font-size: 11px; color: var(--bl-muted); margin-top: 3px; }

/* ---------- Style 9 蒙版卡片 ---------- */
.bl-overlay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bl-overlay-card { position: relative; overflow: hidden; min-height: 360px; }
.bl-overlay-card > a { height: 100%; }
.bl-overlay-card img { position: absolute; inset: 0; height: 100%; }
.bl-overlay-card .ph { position: absolute; inset: 0; min-height: 0; }
.bl-overlay-card .ph span { font-size: 90px; }
.bl-overlay-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.05) 100%); pointer-events: none; }
.bl-ov-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 2; }
.bl-ov-body .bl-meta { color: rgba(255,255,255,.75); }
.bl-ov-body h3 { color: #fff; font-size: 21px; line-height: 1.35; font-weight: 600; margin: 6px 0 0; }
.bl-ov-body .bl-more { color: #fff; opacity: 0; transform: translateY(6px); transition: .3s; }
.bl-overlay-card:hover .bl-more { opacity: 1; transform: translateY(0); }
.bl-overlay-card:hover h3 { color: #fff; }

/* ---------- 分页 ---------- */
.bl-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 45px; }
.bl-pagination a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--bl-line); font-size: 13px; color: var(--bl-text); background: var(--bl-surface); }
.bl-pagination a.active, .bl-pagination a:hover { background: var(--bl-accent); border-color: var(--bl-accent); color: #fff; }

/* ---------- 文章详情 ---------- */
.blog-single { --bl-accent:#ff9900; --bl-accent2:#295eaf; --bl-text:#3a3f45; --bl-muted:#8a929c; --bl-line:#ececec; --bl-surface:#fff; --bl-bg:#fcfcfc; }
.blog-single[data-palette="2"] { --bl-accent:#295eaf; --bl-accent2:#ff9900; --bl-bg:#f6f9fd; --bl-text:#22334a; --bl-muted:#6b7c93; --bl-line:#e2e9f3; }
.blog-single[data-palette="3"] { --bl-accent:#0f8b8d; --bl-accent2:#f2a03d; --bl-bg:#f4fbfb; --bl-text:#1e3d3d; --bl-muted:#6c8686; --bl-line:#d8ecec; }
.blog-single[data-palette="4"] { --bl-accent:#9b1c31; --bl-accent2:#c9a227; --bl-bg:#fdf8f8; --bl-text:#3a1a20; --bl-muted:#8a6a6f; --bl-line:#f0dfe2; }
.blog-single[data-palette="5"] { --bl-accent:#1f7a4d; --bl-accent2:#d4a017; --bl-bg:#f6fbf8; --bl-text:#183a2a; --bl-muted:#6d8b7c; --bl-line:#dcebe2; }
.blog-single[data-palette="6"] { --bl-accent:#2f3640; --bl-accent2:#ff9900; --bl-bg:#f4f5f7; --bl-text:#23272e; --bl-muted:#7b838f; --bl-line:#e1e4e8; }
.blog-single[data-palette="7"] { --bl-accent:#6b4fbb; --bl-accent2:#ffb300; --bl-bg:#f8f6ff; --bl-text:#2c2344; --bl-muted:#7f7796; --bl-line:#e6e0f5; }
.blog-single[data-palette="8"] { --bl-accent:#b8860b; --bl-accent2:#1f3a5f; --bl-bg:#fffdf5; --bl-text:#3c3220; --bl-muted:#8b7d63; --bl-line:#efe5cf; }
.bl-single-wrap { max-width: 860px; margin: 0 auto; padding: 55px 20px 70px; }
.bl-single-wrap .bl-meta { margin-bottom: 10px; }
.bl-single-wrap h1 { font-size: 36px; line-height: 1.25; font-weight: 700; color: var(--bl-text); margin: 0 0 24px; }
.bl-single-body { font-size: 15px; line-height: 28px; color: var(--bl-text); }
.bl-single-body p { margin-bottom: 18px; }
.bl-single-body img { height: auto; margin: 10px 0 20px; }
.bl-single-body a { color: var(--bl-accent2); text-decoration: underline; }
.bl-back { display: inline-block; margin-top: 40px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--bl-accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-masonry { column-count: 2; }
  .bl-featured { grid-template-columns: 1fr; }
  .bl-featured-media { min-height: 260px; }
  .bl-ed-row { grid-template-columns: 1fr; }
  .bl-ed-row.rev .bl-ed-media { order: 0; }
  .bl-ed-media { min-height: 240px; }
  .bl-with-sidebar { grid-template-columns: 1fr; }
  .bl-overlay-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-timeline::before { left: 86px; }
  .bl-tl-date { width: 70px; flex-basis: 70px; }
  .bl-tl-date strong { font-size: 26px; }
  .bl-tl-dot { left: 60px; }
  .bl-headlines h3 { font-size: 22px; }
}
@media (max-width: 640px) {
  .bl-grid, .bl-grid-2, .bl-overlay-grid { grid-template-columns: 1fr; }
  .bl-masonry { column-count: 1; }
  .bl-side-item { grid-template-columns: 1fr; }
  .bl-side-thumb { aspect-ratio: 16/9; }
  .bl-timeline { padding-left: 0; }
  .bl-timeline::before, .bl-tl-dot { display: none; }
  .bl-tl-item { display: block; }
  .bl-tl-date { text-align: left; display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
  .bl-tl-date strong { font-size: 22px; }
  .bl-tl-body { padding-left: 0; }
  .bl-single-wrap h1 { font-size: 26px; }
  .bl-headlines .bl-num { font-size: 26px; width: 50px; flex-basis: 50px; }
  .bl-headlines h3 { font-size: 20px; }
}

/* ---------------- 动效增强 ---------------- */
.bl-card, .bl-overlay-card, .bl-row, .bl-side-item, .bl-ed-row, .bl-tl-item {
  transition: transform .32s ease, box-shadow .32s ease;
}
.bl-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,0,0,.1); }
.bl-thumb, .bl-featured-media, .bl-ed-media, .bl-side-thumb, .bl-overlay-card > a.thumb {
  overflow: hidden; display: block;
}
.bl-thumb img, .bl-featured-media img, .bl-ed-media img, .bl-side-thumb img {
  transition: transform .65s cubic-bezier(.22,.68,.24,1);
}
.bl-card:hover .bl-thumb img,
.bl-featured:hover .bl-featured-media img,
.bl-ed-row:hover .bl-ed-media img,
.bl-side-item:hover .bl-side-thumb img { transform: scale(1.05); }
.bl-more { display: inline-flex; align-items: center; gap: 6px; }
.bl-more::after { content: "→"; transition: transform .25s ease; }
.bl-more:hover::after { transform: translateX(4px); }
.bl-overlay-card img { transition: transform .7s cubic-bezier(.22,.68,.24,1); }
.bl-overlay-card:hover img { transform: scale(1.06); }
.bl-row:hover { transform: translateX(4px); }
.bl-pagination a { transition: background .2s, color .2s, transform .2s; }
.bl-pagination a:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .bl-card, .bl-overlay-card, .bl-row, .bl-side-item, .bl-ed-row, .bl-tl-item,
  .bl-thumb img, .bl-featured-media img, .bl-ed-media img, .bl-side-thumb img,
  .bl-overlay-card img, .bl-pagination a { transition: none !important; }
  .bl-card:hover, .bl-row:hover { transform: none; }
}
