/*
Theme Name: Yueji
Theme URI: https://www.hzdeke.com
Description: 两性健康科普站主题，青绿健康媒体风格。
Author: hzdeke
Template: generatepress
Version: 2.5.0
Text Domain: yueji
*/

/*
Theme Name: 悦己健康
Theme URI: https://www.hzdeke.com
Description: 两性健康科普站主题，青绿健康媒体风格。无衬线字体、实心色块、高信息密度。
Author: hzdeke
Template: generatepress
Version: 2.0.0
Text Domain: yueji
*/

/* ============================================================
   方案一 · 青绿健康媒体
   ============================================================ */

:root {
  --bg: #ffffff;
  --soft: #f2f7f6;
  --soft2: #f7faf9;
  --ink: #12262a;
  --ink2: #41585e;
  --mute: #84979c;
  --line: #e2ecea;
  --brand: #0e9c8a;
  --brand-dark: #0a7a6c;
  --brand-soft: #e6f5f2;
  --accent: #ff7a59;
  --radius: 13px;
  --shadow: 0 2px 10px rgba(18,38,42,.05);
  --shadow-hover: 0 12px 30px rgba(14,156,138,.12);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
* { -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: var(--font) !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.site { background: var(--bg); }
a { color: var(--brand-dark); }

/* ---------- 头部 ---------- */
.site-header {
  background: rgba(255,255,255,.95) !important;
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  position: sticky; top: 0; z-index: 100;
}
.site-header .inside-header {
  padding: 0 !important;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 64px; max-width: 1080px; margin: 0 auto; padding: 0 20px !important;
}
.site-branding { display: flex; align-items: center; }
.main-title, .site-title { margin: 0 !important; line-height: 1 !important; }
.main-title a, .site-title a {
  font-family: var(--font) !important;
  font-size: 19px !important; font-weight: 800 !important;
  letter-spacing: -.3px; color: var(--ink) !important;
  display: flex; align-items: center; gap: 9px;
  text-decoration: none !important;
}
.main-title a::before, .site-title a::before {
  content: "悦";
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #0e9c8a, #3cc4ae);
  color: #fff; font-size: 13px; font-weight: 800;
  flex: 0 0 auto;
}
.site-description { display: none !important; }

/* 主导航 */
.main-navigation { background: transparent !important; }
.main-navigation .main-nav ul { display: flex; align-items: center; gap: 26px; }
.main-navigation .main-nav ul li { margin: 0 !important; }
.main-navigation .main-nav ul li a {
  font-family: var(--font) !important;
  font-size: 14.5px !important; font-weight: 500 !important;
  color: var(--ink2) !important; padding: 0 !important;
  letter-spacing: 0; text-decoration: none !important;
  transition: color .18s;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--brand) !important; }
.main-navigation .main-nav ul li a::after { display: none !important; }
.main-navigation .main-nav ul ul {
  border: 1px solid var(--line) !important; border-radius: 10px !important;
  box-shadow: 0 10px 26px rgba(18,38,42,.1) !important; background: #fff !important;
}

/* 顶部搜索 */
.yj-nav-search {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0 14px; height: 36px; background: var(--soft);
  transition: border-color .18s;
}
.yj-nav-search:focus-within { border-color: var(--brand); background: #fff; }
.yj-nav-search input[type="search"] {
  border: 0 !important; background: transparent !important;
  outline: 0; font-size: 13px !important; color: var(--ink) !important;
  width: 148px; padding: 0 !important; box-shadow: none !important;
  border-radius: 0 !important;
}
.yj-nav-search input::placeholder { color: var(--mute); }
.yj-nav-search button {
  border: 0 !important; background: transparent !important;
  color: var(--mute) !important; font-size: 14px !important;
  padding: 0 !important; cursor: pointer; line-height: 1;
}
.yj-nav-search button:hover { color: var(--brand) !important; }

/* ---------- 容器 ---------- */
.yj-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-content { padding-top: 26px !important; }
.grid-container { max-width: 1080px !important; }
.site.grid-container, .separate-containers .inside-article {
  background: transparent !important; border: none !important;
  box-shadow: none !important; border-radius: 0 !important; padding: 0 !important;
}

/* ---------- 首页主视觉 ---------- */
.yj-hero {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px;
  margin-top: 26px;
}
.yj-hero-main {
  background: linear-gradient(125deg, #0e9c8a 0%, #12b39b 55%, #4ecfba 100%);
  border-radius: 16px; padding: 40px 36px; color: #fff;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 320px;
}
.yj-hero-main::after {
  content: ""; position: absolute; right: -70px; bottom: -90px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.10); pointer-events: none;
}
.yj-hero-main::before {
  content: ""; position: absolute; right: 40px; top: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.09); pointer-events: none;
}
.yj-hero-kicker {
  display: inline-block; align-self: flex-start;
  background: rgba(255,255,255,.2); border-radius: 100px;
  padding: 4px 12px; font-size: 11.5px; letter-spacing: .08em;
  margin-bottom: 18px; position: relative; z-index: 1;
}
.yj-hero-main h1 {
  font-family: var(--font) !important;
  font-size: 30px !important; line-height: 1.42 !important;
  font-weight: 800 !important; letter-spacing: -.5px;
  color: #fff !important; margin: 0 0 14px !important;
  position: relative; z-index: 1;
}
.yj-hero-main p {
  font-size: 14.5px !important; line-height: 1.75 !important;
  color: rgba(255,255,255,.88) !important; margin: 0 0 24px !important;
  position: relative; z-index: 1; max-width: 440px;
}
.yj-hero-btn {
  display: inline-block; align-self: flex-start;
  background: #fff; color: var(--brand-dark) !important;
  padding: 11px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 700; text-decoration: none !important;
  position: relative; z-index: 1;
  transition: transform .2s, box-shadow .2s;
}
.yj-hero-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.14); }

.yj-hero-side { display: flex; flex-direction: column; gap: 16px; }
.yj-side-card {
  flex: 1; background: var(--soft); border-radius: 14px;
  padding: 20px 22px; border: 1px solid transparent;
  display: flex; flex-direction: column; justify-content: center;
  text-decoration: none !important; transition: .22s;
}
.yj-side-card:hover { border-color: var(--brand); background: #eaf7f4; }
.yj-side-card .k {
  font-size: 11.5px; color: var(--brand); font-weight: 700;
  letter-spacing: .08em; margin-bottom: 8px;
}
.yj-side-card h2, .yj-side-card h3 {
  font-family: var(--font) !important;
  font-size: 15.5px !important; line-height: 1.55 !important;
  font-weight: 700 !important; color: var(--ink) !important;
  margin: 0 !important;
}

/* ---------- 分类条 ---------- */
.yj-cats { display: flex; gap: 9px; margin: 34px 0 6px; flex-wrap: wrap; }
.yj-cats a {
  background: var(--brand-soft); color: var(--brand-dark) !important;
  padding: 8px 17px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; text-decoration: none !important;
  transition: .18s;
}
.yj-cats a:hover { background: var(--brand); color: #fff !important; }

/* ---------- 区块标题 ---------- */
.yj-sechead { display: flex; align-items: center; gap: 11px; margin: 34px 0 18px; }
.yj-sechead h2 {
  font-family: var(--font) !important;
  font-size: 19px !important; font-weight: 800 !important;
  letter-spacing: -.2px; color: var(--ink) !important; margin: 0 !important;
}
.yj-sechead .bar { width: 4px; height: 19px; background: var(--brand); border-radius: 3px; flex: 0 0 auto; }
.yj-sechead .more {
  margin-left: auto; font-size: 13px; color: var(--mute) !important;
  text-decoration: none !important; transition: color .18s;
}
.yj-sechead .more:hover { color: var(--brand) !important; }

/* ---------- 卡片（横向长条，高密度） ---------- */
.yj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 40px; }
.yj-grid.yj-grid-1 { grid-template-columns: 1fr; }
.yj-grid-1 .yj-card-thumb { flex: 0 0 186px; width: 186px; }

/* 三列网格（栏目页，横条卡片） */
.yj-grid.yj-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; align-items: stretch; }
.yj-grid-3 .yj-card { flex-direction: row; }
.yj-grid-3 .yj-card-thumb { flex: 0 0 96px; width: 96px; aspect-ratio: auto; }
.yj-grid-3 .yj-card-thumb img { height: 100%; }
.yj-grid-3 .yj-card-body { padding: 11px 13px 12px; justify-content: center; flex: 1; }
.yj-grid-3 .yj-pill { font-size: 10px; padding: 2px 7px; margin-bottom: 6px; border-radius: 4px; }
.yj-grid-3 .yj-card h2 { font-size: 13.5px !important; line-height: 1.45 !important; margin-bottom: 5px !important; }
.yj-grid-3 .yj-card p { font-size: 11.5px !important; line-height: 1.55 !important; color: var(--mute) !important; -webkit-line-clamp: 2; }
.yj-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: row;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.yj-card:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.yj-card-thumb { display: block; flex: 0 0 144px; width: 144px; overflow: hidden; background: var(--soft); }
.yj-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yj-card-body { padding: 12px 15px 13px; display: flex; flex-direction: column; flex: 1; min-width: 0; justify-content: center; }
.yj-pill {
  display: inline-block; align-self: flex-start;
  background: var(--brand-soft); color: var(--brand-dark) !important;
  font-size: 10.5px; font-weight: 700; padding: 2px 8px;
  border-radius: 5px; margin-bottom: 7px; text-decoration: none !important;
}
.yj-pill:hover { background: var(--brand); color: #fff !important; }
.yj-card h3, .yj-card h2 {
  font-family: var(--font) !important;
  font-size: 14.5px !important; line-height: 1.5 !important;
  font-weight: 700 !important; margin: 0 0 6px !important;
  letter-spacing: -.1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yj-card h3 a, .yj-card h2 a { color: var(--ink) !important; text-decoration: none !important; transition: color .16s; }
.yj-card h3 a:hover, .yj-card h2 a:hover { color: var(--brand) !important; }
.yj-card p {
  font-size: 12.5px !important; line-height: 1.6 !important;
  color: var(--mute) !important; margin: 0 !important;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 文章页 ---------- */
.yj-single {
  display: grid; grid-template-columns: minmax(0, 1fr) 302px;
  gap: 46px; align-items: start;
}
.yj-article { max-width: none; margin: 0; min-width: 0; }

/* 独立页面（关于/免责声明）：单栏，正文栏宽与文章页一致 */
.yj-page { max-width: 740px; margin: 0 auto; }
.yj-page .yj-article-head { margin-bottom: 26px; }
.yj-page .entry-content h2 { font-size: 20px !important; margin: 34px 0 12px !important; }
.yj-page .entry-content h2:first-child { margin-top: 8px !important; }
.yj-page .entry-content p { font-size: 15.5px !important; line-height: 1.9 !important; margin-bottom: 16px !important; }
@media (max-width: 768px) {
  .yj-page .entry-content h2 { font-size: 18px !important; margin-top: 26px !important; }
  .yj-page .entry-content p { font-size: 15px !important; line-height: 1.85 !important; }
}

/* ---------- 侧栏 ---------- */
.yj-side {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 18px;
}
.yj-w {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 17px 17px 15px;
}
.yj-w-t {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px !important; font-weight: 800 !important;
  color: var(--ink) !important; margin: 0 0 13px !important;
  line-height: 1.4 !important; letter-spacing: 0;
}
.yj-w-t::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: var(--brand); flex: none;
}

/* 热门：大序号 */
.yj-hot { margin: 0; padding: 0; list-style: none; }
.yj-hot li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.yj-hot li:first-child { padding-top: 0; }
.yj-hot li:last-child { border-bottom: 0; padding-bottom: 0; }
.yj-hot i {
  font-style: normal; flex: none; width: 19px;
  font-size: 14px; font-weight: 800; line-height: 1.55;
  color: var(--brand); font-variant-numeric: tabular-nums;
}
.yj-hot li:nth-child(n+4) i { color: #b6c7c4; }
.yj-hot a {
  font-size: 13px; line-height: 1.55; color: var(--ink2) !important;
  text-decoration: none !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yj-hot a:hover { color: var(--brand) !important; }

/* 最近：缩略图 + 日期 */
.yj-recent { margin: 0; padding: 0; list-style: none; }
.yj-recent li { display: flex; gap: 10px; padding: 8px 0; align-items: center; }
.yj-recent li:first-child { padding-top: 0; }
.yj-recent li:last-child { padding-bottom: 0; }
.yj-recent-thumb {
  flex: 0 0 62px; width: 62px; height: 44px;
  border-radius: 7px; overflow: hidden; background: var(--soft); display: block;
}
.yj-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yj-recent-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.yj-recent-txt a {
  font-size: 12.5px; line-height: 1.45; color: var(--ink2) !important;
  text-decoration: none !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yj-recent-txt a:hover { color: var(--brand) !important; }
.yj-recent-txt time { font-size: 11px; color: var(--mute); }

/* 标签云 */
.yj-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.yj-tags a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; line-height: 1; padding: 6px 10px;
  border-radius: 20px; background: var(--soft);
  color: var(--ink2) !important; text-decoration: none !important;
  transition: background .18s, color .18s;
}
.yj-tags a:hover { background: var(--brand); color: #fff !important; }
.yj-tags a em {
  font-style: normal; font-size: 10.5px; font-weight: 700;
  color: var(--mute); font-variant-numeric: tabular-nums;
}
.yj-tags a:hover em { color: rgba(255, 255, 255, .8); }

/* 正文底部话题 */
.yj-article-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 34px 0 4px; padding-top: 22px; border-top: 1px solid var(--line);
}
.yj-at-label { font-size: 12px; color: var(--mute); font-weight: 700; }
.yj-article-tags a {
  font-size: 12.5px; padding: 5px 11px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand-dark) !important;
  text-decoration: none !important;
}
.yj-article-tags a:hover { background: var(--brand); color: #fff !important; }

.yj-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  font-size: 12.5px; color: var(--mute); margin-bottom: 20px;
}
.yj-breadcrumb a { color: var(--mute) !important; text-decoration: none !important; }
.yj-breadcrumb a:hover { color: var(--brand) !important; }
.yj-breadcrumb .yj-sep { color: #c9d6d4; }
.yj-breadcrumb span[aria-current] { color: var(--ink2); }

.yj-article-head { margin-bottom: 28px; }
.yj-article-head h1 {
  font-family: var(--font) !important;
  font-size: 32px !important; line-height: 1.45 !important;
  font-weight: 800 !important; letter-spacing: -.6px;
  color: var(--ink) !important; margin: 12px 0 16px !important;
}
.yj-article-meta {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--mute);
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.yj-article-meta .yj-dot { color: #cbd8d6; }

.yj-article-cover {
  margin: 0 0 30px; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16 / 8; background: var(--soft);
}
.yj-article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.yj-article-body p, .entry-content p {
  font-size: 16.5px !important; line-height: 1.95 !important;
  margin-bottom: 20px !important; color: #2c4045 !important;
}
.entry-content > p:first-of-type { font-size: 17px !important; color: #1f3438 !important; }
.entry-content h2, .yj-article-body h2 {
  font-family: var(--font) !important;
  font-size: 22px !important; font-weight: 800 !important;
  line-height: 1.45 !important; color: var(--ink) !important;
  margin: 40px 0 16px !important; padding-left: 13px;
  border-left: 3px solid var(--brand);
}
.entry-content h3, .yj-article-body h3 {
  font-family: var(--font) !important;
  font-size: 17.5px !important; font-weight: 700 !important;
  color: var(--ink) !important; margin: 28px 0 12px !important;
  line-height: 1.5 !important;
}
.entry-content ul, .entry-content ol { padding-left: 22px; margin-bottom: 20px; }
.entry-content li { font-size: 16.5px; line-height: 1.9; margin-bottom: 9px; color: #2c4045; }
.entry-content strong { color: var(--ink); font-weight: 700; }
.entry-content blockquote {
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 26px 0;
  color: var(--ink2); font-style: normal;
}
.entry-content blockquote p:last-child { margin-bottom: 0 !important; }
.entry-content a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 10px; max-width: 100%; height: auto; }

/* 相关阅读 */
.yj-related {
  margin-top: 34px; background: var(--soft2);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px 16px;
}
/* 提高权重覆盖 .entry-content h2 的 40px 上边距与 22px 字号 */
.entry-content .yj-related-title,
.yj-related .yj-related-title {
  font-family: var(--font) !important;
  font-size: 15px !important; font-weight: 800 !important;
  color: var(--ink) !important; margin: 0 0 2px !important;
  padding: 0 0 0 10px !important; border-left: 3px solid var(--brand);
  line-height: 1.3 !important;
}
.entry-content .yj-related ul { list-style: none; margin: 2px 0 0 !important; padding: 0 !important; }
.yj-related ul { list-style: none; margin: 2px 0 0 !important; padding: 0 !important; }
.yj-related li {
  padding: 8px 0 !important; margin: 0 !important;
  border-bottom: 1px solid #e8f1ef;
  font-size: 14.5px !important; line-height: 1.55 !important;
}
.yj-related li:last-child { border-bottom: none; padding-bottom: 0 !important; }
.yj-related li a {
  color: var(--ink2) !important; text-decoration: none !important;
  display: block; transition: color .18s, padding-left .18s;
}
.yj-related li a:hover { color: var(--brand) !important; padding-left: 5px; }

/* 引流块 */
.yj-cta {
  margin-top: 26px; padding: 26px 28px;
  background: linear-gradient(125deg, #eaf7f4 0%, #f4fbf9 100%);
  border: 1px solid #d3ece7; border-radius: 14px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.yj-cta-text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.yj-cta-text strong { font-size: 15.5px; color: var(--ink); font-weight: 800; }
.yj-cta-text span { font-size: 13.5px; color: var(--ink2); line-height: 1.75; }
.yj-cta-btn {
  flex: 0 0 auto; display: inline-block;
  padding: 12px 26px; background: var(--brand); color: #fff !important;
  border-radius: 100px; font-size: 14px; font-weight: 700;
  text-decoration: none !important; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.yj-cta-btn:hover { background: var(--brand-dark) !important; transform: translateY(-1px); }

/* 上下篇 */
.yj-article-foot { margin-top: 38px; }
.yj-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.yj-postnav-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 12px; text-decoration: none !important;
  transition: border-color .2s, box-shadow .2s;
}
.yj-postnav-item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.yj-postnav-label { font-size: 11.5px; color: var(--mute); letter-spacing: .1em; }
.yj-postnav-title { font-size: 14.5px; color: var(--ink) !important; line-height: 1.55; }
.yj-postnav-next { text-align: right; grid-column: 2; }

/* ---------- 归档 / 搜索页 ---------- */
.yj-archive-head {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #f7fbfa 62%, #ffffff 100%);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 26px 24px; margin-bottom: 26px;
}
.yj-archive-head h1 {
  font-family: var(--font) !important;
  font-size: 28px !important; font-weight: 800 !important;
  letter-spacing: -.5px; line-height: 1.35 !important;
  color: var(--ink) !important; margin: 0 0 10px !important;
}
.yj-archive-desc { font-size: 14.5px; line-height: 1.8; color: var(--ink2); max-width: 700px; margin: 0 0 10px; }
.yj-archive-count { font-size: 13px; color: var(--mute); margin: 0; }
.yj-archive-count strong { color: var(--brand); font-weight: 700; }

.yj-search-lg { display: flex; margin-top: 18px; max-width: 420px; }
.yj-search-lg input[type="search"] {
  flex: 1; padding: 11px 18px !important;
  border: 1px solid var(--line) !important; border-right: 0 !important;
  border-radius: 100px 0 0 100px !important;
  font-size: 14px !important; background: #fff !important;
  box-shadow: none !important;
}
.yj-search-lg input:focus { outline: 0; border-color: var(--brand) !important; }
.yj-search-lg button {
  padding: 11px 22px !important; border: 0 !important;
  background: var(--brand) !important; color: #fff !important;
  border-radius: 0 100px 100px 0 !important;
  font-size: 14px !important; font-weight: 600; cursor: pointer;
}
.yj-search-lg button:hover { background: var(--brand-dark) !important; }

/* 分页 */
.yj-pagination { margin: 40px 0 10px; }
.yj-pagination .nav-links { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.yj-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink2) !important;
  font-size: 13.5px; text-decoration: none !important;
  transition: .18s;
}
.yj-pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand) !important; }
.yj-pagination .page-numbers.current {
  background: var(--brand); border-color: var(--brand); color: #fff !important;
}
.yj-pagination .page-numbers.dots { border: 0; background: transparent; }

/* 空态 / 404 */
.yj-empty {
  padding: 64px 24px; text-align: center;
  background: var(--soft2); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 36px;
}
.yj-empty p { font-size: 15px; color: var(--ink2); margin: 0 0 12px; }
.yj-empty-tip { font-size: 13.5px !important; color: var(--mute) !important; }
.yj-empty-cats { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 20px 0 4px; }
.yj-empty-cats a {
  padding: 8px 17px; border-radius: 9px; background: #fff;
  border: 1px solid var(--line); font-size: 13.5px;
  color: var(--ink2) !important; text-decoration: none !important; transition: .18s;
}
.yj-empty-cats a:hover { border-color: var(--brand); color: var(--brand) !important; }

.yj-404 { text-align: center; padding: 56px 20px 76px; }
.yj-404-code {
  font-size: 88px; font-weight: 800; line-height: 1;
  letter-spacing: -.04em; color: var(--brand-soft); margin-bottom: 8px;
}
.yj-404 h1 {
  font-family: var(--font) !important;
  font-size: 25px !important; font-weight: 800 !important;
  color: var(--ink) !important; margin: 0 0 12px !important;
}
.yj-404 > p { font-size: 14.5px; color: var(--ink2); max-width: 460px; margin: 0 auto; line-height: 1.85; }
.yj-404 .yj-search-lg { margin: 24px auto 0; }
.yj-404-home {
  display: inline-block; margin-top: 22px; font-size: 14.5px;
  color: var(--brand) !important; font-weight: 700; text-decoration: none !important;
}

/* ---------- 页脚 ---------- */
.site-footer, .site-info {
  background: #0f1f22 !important; color: #9db0b2 !important;
  margin-top: 64px !important; padding: 0 !important; border: 0 !important;
}
.yj-footer { max-width: 1080px; margin: 0 auto; padding: 40px 20px 0; }
.yj-footer-brand { text-align: center; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.08); }
.yj-footer-brand strong {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px; font-weight: 800; color: #eaf3f2; margin-bottom: 7px;
}
.yj-footer-brand strong::before {
  content: "悦"; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg, #0e9c8a, #3cc4ae);
  color: #fff; font-size: 12px;
}
.yj-footer-brand span { font-size: 11.5px; color: #6f878a; letter-spacing: .1em; }
.yj-footer-links {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  padding: 22px 0;
}
.yj-footer-links a { font-size: 13px; color: #9db0b2 !important; text-decoration: none !important; }
.yj-footer-links a:hover { color: #fff !important; }
.site-info { background: #0a181a !important; padding: 16px 20px !important; text-align: center; }
.site-info, .site-info a { font-size: 12px !important; color: #6f878a !important; }
.site-info a.yj-icp { text-decoration: none !important; transition: color .15s; }
.site-info a.yj-icp:hover { color: #9db0b2 !important; }

/* ---------- 回到顶部 ---------- */
.yj-top {
  position: fixed; right: 24px; bottom: 30px;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(18,38,42,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink2); font-size: 16px; text-decoration: none;
  opacity: 0; pointer-events: none; z-index: 90;
  transition: opacity .28s, transform .28s, color .2s;
}
.yj-top.show { opacity: 1; pointer-events: auto; }
.yj-top:hover { transform: translateY(-3px); color: var(--brand); border-color: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .yj-grid { grid-template-columns: repeat(2, 1fr); }
  .yj-grid.yj-grid-1 { grid-template-columns: 1fr; }
  .yj-grid.yj-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .yj-single { grid-template-columns: 1fr; gap: 32px; }
  .yj-side { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
  .yj-hero { grid-template-columns: 1fr; }
  .yj-hero-side { flex-direction: row; }
  .yj-hero-main { min-height: 260px; padding: 32px 30px; }
  .yj-hero-main h1 { font-size: 26px !important; }
}

@media (max-width: 768px) {
  .yj-single { gap: 26px; }
  .yj-side { grid-template-columns: 1fr; gap: 12px; }
  .yj-w { padding: 15px 15px 13px; border-radius: 12px; }
  .yj-w-t { font-size: 13.5px !important; margin-bottom: 11px !important; }
  .yj-hot a { font-size: 12.5px; }
  .yj-hot li { padding: 8px 0; }
  .yj-article-tags { margin-top: 28px; padding-top: 18px; }
  /* 头部 */
  .site-header .inside-header {
    height: 54px; padding: 0 16px !important; gap: 10px;
  }
  .main-title a, .site-title a { font-size: 17px !important; gap: 8px; }
  .main-title a::before, .site-title a::before { width: 23px; height: 23px; border-radius: 7px; font-size: 12px; }
  .yj-nav-search { display: none !important; }

  /* 汉堡 */
  .mobile-menu-control-wrapper { display: flex !important; margin: 0 !important; padding: 0 !important; background: transparent !important; }
  .mobile-menu-control-wrapper .menu-toggle,
  button.menu-toggle {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0 !important; margin: 0 !important;
    background: #fff !important; border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    color: transparent !important; font-size: 0 !important;
    text-indent: -9999px; overflow: hidden; position: relative; cursor: pointer;
  }
  button.menu-toggle::before {
    content: "" !important; display: block; width: 17px; height: 1.8px;
    background: var(--ink); border-radius: 2px;
    box-shadow: 0 -5.5px 0 var(--ink), 0 5.5px 0 var(--ink);
  }
  button.menu-toggle.toggled::before {
    background: var(--brand);
    box-shadow: 0 -5.5px 0 var(--brand), 0 5.5px 0 var(--brand);
  }

  /* 导航面板 */
  #site-navigation {
    display: none !important; width: 100% !important; flex-basis: 100% !important;
    background: #fff !important; border-top: 1px solid var(--line);
    box-shadow: 0 14px 26px rgba(18,38,42,.09);
    max-height: 68vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  #site-navigation.toggled { display: block !important; }
  #site-navigation .menu-toggle { display: none !important; }
  #site-navigation .main-nav { width: 100% !important; }
  #site-navigation .main-nav ul {
    display: block !important; width: 100% !important;
    margin: 0 !important; padding: 2px 0 !important; gap: 0 !important;
  }
  #site-navigation .main-nav ul li {
    display: block !important; width: 100% !important;
    margin: 0 !important; float: none !important;
    border-bottom: 1px solid #eef4f3;
  }
  #site-navigation .main-nav ul li:last-child { border-bottom: none; }
  #site-navigation .main-nav ul li a {
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 14px 20px !important; font-size: 15.5px !important;
    color: var(--ink) !important;
  }
  #site-navigation .main-nav ul li a:active { background: var(--brand-soft) !important; color: var(--brand-dark) !important; }

  /* 容器 */
  .yj-wrap { padding: 0 16px; }
  .site-content { padding-top: 16px !important; }

  /* 主视觉 */
  .yj-hero { gap: 11px; margin-top: 16px; }
  .yj-hero-main { padding: 26px 22px; min-height: 0; border-radius: 14px; }
  .yj-hero-main::after { width: 150px; height: 150px; right: -55px; bottom: -60px; }
  .yj-hero-main::before { width: 80px; height: 80px; right: 20px; top: -30px; }
  .yj-hero-kicker { margin-bottom: 13px; font-size: 11px; }
  .yj-hero-main h1 { font-size: 21px !important; line-height: 1.5 !important; margin-bottom: 11px !important; }
  .yj-hero-main p { font-size: 13.5px !important; line-height: 1.72 !important; margin-bottom: 18px !important; }
  .yj-hero-btn { padding: 10px 20px; font-size: 13.5px; }
  .yj-hero-side { flex-direction: column; gap: 9px; }
  .yj-side-card { padding: 14px 16px; border-radius: 11px; flex: 0 0 auto; }
  .yj-side-card .k { font-size: 11px; margin-bottom: 6px; }
  .yj-side-card h2, .yj-side-card h3 { font-size: 14.5px !important; line-height: 1.5 !important; }

  /* 分类条 */
  .yj-cats { gap: 8px; margin: 20px 0 4px; }
  .yj-cats a { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

  /* 区块标题 */
  .yj-sechead { margin: 24px 0 13px; gap: 9px; }
  .yj-sechead h2 { font-size: 17px !important; }
  .yj-sechead .bar { width: 3px; height: 16px; }
  .yj-sechead .more { font-size: 12.5px; }

  /* 卡片：单列 */
  .yj-grid { display: block; margin-bottom: 26px; }
  .yj-card {
    margin-bottom: 12px; flex-direction: row; align-items: stretch;
    border-radius: 12px;
  }
  .yj-card:last-child { margin-bottom: 0; }
  .yj-card:hover { transform: none; }
  .yj-card-thumb {
    flex: 0 0 108px; aspect-ratio: auto; width: 108px;
    border-radius: 0;
  }
  .yj-card-thumb img { height: 100%; }
  .yj-card-body { padding: 13px 15px 14px; min-width: 0; }
  .yj-pill { font-size: 10.5px; padding: 2px 8px; margin-bottom: 7px; }
  .yj-card h3, .yj-card h2 { font-size: 14.5px !important; line-height: 1.5 !important; margin-bottom: 6px !important; }
  .yj-card p { font-size: 12.5px !important; line-height: 1.6 !important; margin-bottom: 0 !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .yj-card .go { display: none; }

  /* 三列网格在移动端回归横向列表 */
  .yj-grid-3 .yj-card { flex-direction: row; }
  .yj-grid-3 .yj-card-thumb { flex: 0 0 108px; width: 108px; aspect-ratio: auto; }
  .yj-grid-3 .yj-card-body { padding: 13px 15px 14px; justify-content: center; }
  .yj-grid-3 .yj-card h2 { font-size: 14.5px !important; }
  .yj-grid.yj-grid-3 { display: block; }

  .yj-archive-head { padding: 17px 17px 18px; border-radius: 13px; margin-bottom: 18px; }
  .yj-archive-head h1 { font-size: 22px !important; margin-bottom: 8px !important; }
  .yj-archive-desc { font-size: 13px !important; line-height: 1.75 !important; margin-bottom: 8px; }

  /* 文章页 */
  .yj-breadcrumb { font-size: 11.5px; margin-bottom: 14px; gap: 6px; }
  .yj-article-head { margin-bottom: 20px; }
  .yj-article-head h1 { font-size: 21.5px !important; line-height: 1.5 !important; margin: 8px 0 12px !important; letter-spacing: -.2px; }
  .yj-article-meta { font-size: 11.5px; padding-bottom: 14px; gap: 7px; }
  .yj-article-cover { margin-bottom: 22px; border-radius: 11px; aspect-ratio: 16 / 9; }
  .yj-article-body p, .entry-content p { font-size: 16.5px !important; line-height: 1.95 !important; margin-bottom: 19px !important; }
  .entry-content > p:first-of-type { font-size: 16.5px !important; }
  .entry-content h2, .yj-article-body h2 { font-size: 19px !important; margin: 32px 0 13px !important; padding-left: 11px; }
  .entry-content h3, .yj-article-body h3 { font-size: 16.5px !important; margin: 23px 0 9px !important; }
  .entry-content li { font-size: 16.5px !important; line-height: 1.9 !important; }
  .yj-related { margin-top: 26px; padding: 14px 15px 13px; border-radius: 12px; }
  .entry-content .yj-related-title,
  .yj-related .yj-related-title { font-size: 14px !important; margin-bottom: 0 !important; padding-left: 9px !important; }
  .yj-related li { padding: 7px 0 !important; font-size: 13.5px !important; line-height: 1.5 !important; }
  .yj-cta { padding: 19px 18px; gap: 13px; border-radius: 12px; margin-top: 20px; }
  .yj-cta-text strong { font-size: 14.5px; }
  .yj-cta-text span { font-size: 13px; }
  .yj-cta-btn { width: 100%; text-align: center; padding: 11px 18px; font-size: 13.5px; }
  .yj-postnav { display: block; }
  .yj-postnav-item { padding: 13px 15px; margin-bottom: 9px; }
  .yj-postnav-next { text-align: left !important; }
  .yj-postnav-title { font-size: 13.5px !important; }

  /* 归档/搜索 */
  .yj-archive-head { padding: 2px 0 18px; margin-bottom: 20px; }
  .yj-archive-head h1 { font-size: 21px !important; margin-bottom: 9px !important; }
  .yj-archive-desc { font-size: 13.5px !important; line-height: 1.75 !important; }
  .yj-archive-count { font-size: 12px !important; }
  .yj-search-lg { max-width: 100%; margin-top: 14px; }

  /* 分页 */
  .yj-pagination { margin: 28px 0 6px; }
  .yj-pagination .page-numbers { min-width: 35px; height: 35px; font-size: 12.5px; border-radius: 8px; }

  /* 空态/404 */
  .yj-empty { padding: 40px 18px; border-radius: 12px; }
  .yj-empty p { font-size: 14px; }
  .yj-404 { padding: 34px 16px 54px; }
  .yj-404-code { font-size: 58px; }
  .yj-404 h1 { font-size: 19px !important; }
  .yj-404 > p { font-size: 13.5px; }

  /* 页脚 */
  .site-footer { margin-top: 44px !important; }
  .yj-footer { padding: 30px 16px 0; }
  .yj-footer-brand { padding-bottom: 18px; }
  .yj-footer-brand strong { font-size: 15px; }
  .yj-footer-links { gap: 16px; padding: 16px 0; }
  .yj-footer-links a { font-size: 12.5px; }
  .site-info { padding: 13px 16px !important; }

  .yj-top { right: 13px; bottom: 14px; width: 36px; height: 36px; font-size: 14px; }
}

@media (max-width: 380px) {
  .yj-wrap { padding: 0 13px; }
  .main-title a, .site-title a { font-size: 16px !important; }
  .yj-hero-main { padding: 22px 18px; }
  .yj-hero-main h1 { font-size: 19.5px !important; }
  .yj-card-thumb { flex-basis: 96px; width: 96px; }
  .yj-card-body { padding: 11px 13px 12px; }
  .yj-card h3, .yj-card h2 { font-size: 14px !important; }
  .yj-card p { display: none; }
  .yj-article-head h1 { font-size: 20px !important; }
}

/* ===== v2.6-arch-sidebar：归档页右侧栏 ===== */
.yj-wrap.yj-wrap-arch { max-width: 1180px; }
.yj-arch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 38px; align-items: start; }
.yj-arch-main { min-width: 0; }
.yj-arch-main .yj-grid.yj-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.yj-arch-main .yj-grid-3 .yj-card-thumb { flex: 0 0 82px; width: 82px; }
.yj-arch-main .yj-grid-3 .yj-card-body { padding: 10px 12px 11px; }
.yj-arch-main .yj-grid-3 .yj-pill { font-size: 9.5px; padding: 2px 6px; margin-bottom: 5px; border-radius: 4px; }
.yj-arch-main .yj-grid-3 .yj-card h2 { font-size: 13px !important; line-height: 1.42 !important; margin-bottom: 4px !important; }
.yj-arch-main .yj-grid-3 .yj-card p { font-size: 11px !important; line-height: 1.5 !important; }

@media (max-width: 1100px) {
  .yj-arch-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
  .yj-arch-main .yj-grid.yj-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .yj-arch-main .yj-grid-3 .yj-card-thumb { flex: 0 0 88px; width: 88px; }
  .yj-arch-main .yj-grid-3 .yj-card h2 { font-size: 13.5px !important; }
  .yj-arch-main .yj-grid-3 .yj-card p { font-size: 11.5px !important; }
}
@media (max-width: 1000px) {
  .yj-arch-layout { grid-template-columns: 1fr; gap: 30px; }
  .yj-arch-main .yj-grid.yj-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .yj-arch-main .yj-grid-3 .yj-card-thumb { flex: 0 0 104px; width: 104px; }
  .yj-arch-main .yj-grid-3 .yj-card-body { padding: 12px 14px 13px; }
  .yj-arch-main .yj-grid-3 .yj-card h2 { font-size: 14.5px !important; }
  .yj-arch-main .yj-grid-3 .yj-card p { font-size: 12.5px !important; }
}

/* ===== v2.6b：归档侧栏宽度微调 ===== */
.yj-arch-layout { grid-template-columns: minmax(0, 1fr) 262px; gap: 28px; }
.yj-arch-main .yj-grid.yj-grid-3 { gap: 11px; }
.yj-arch-main .yj-grid-3 .yj-card-thumb { flex: 0 0 78px; width: 78px; }
.yj-arch-main .yj-grid-3 .yj-card-body { padding: 9px 11px 10px; }
.yj-arch-main .yj-grid-3 .yj-card h2 { font-size: 12.5px !important; line-height: 1.4 !important; }
.yj-arch-main .yj-grid-3 .yj-card p { font-size: 11px !important; line-height: 1.5 !important; }
@media (max-width: 1000px) {
  .yj-arch-layout { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 1100px) and (min-width: 1001px) {
  .yj-arch-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; }
}

/* ===== v2.6c：归档卡片移动端排版回正 ===== */
@media (max-width: 768px) {
  .yj-arch-main .yj-grid-3 .yj-card-thumb { flex: 0 0 104px; width: 104px; }
  .yj-arch-main .yj-grid-3 .yj-card-body { padding: 12px 14px 13px; }
  .yj-arch-main .yj-grid-3 .yj-card h2 { font-size: 14px !important; line-height: 1.48 !important; }
  .yj-arch-main .yj-grid-3 .yj-card p { font-size: 12px !important; line-height: 1.6 !important; }
  .yj-arch-main .yj-grid-3 .yj-pill { font-size: 10.5px; padding: 2px 8px; margin-bottom: 7px; }
}

/* ===== v2.7：归档页右侧栏保持到 769px 才落下 ===== */
@media (min-width: 769px) and (max-width: 1180px) {
  .yj-arch-layout { grid-template-columns: minmax(0, 1fr) 240px !important; gap: 22px !important; }
  .yj-arch-main .yj-grid.yj-grid-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .yj-arch-main .yj-grid-3 .yj-card-thumb { flex: 0 0 92px; width: 92px; }
  .yj-arch-main .yj-grid-3 .yj-card-body { padding: 11px 13px 12px; }
  .yj-arch-main .yj-grid-3 .yj-card h2 { font-size: 13.5px !important; line-height: 1.45 !important; }
  .yj-arch-main .yj-grid-3 .yj-card p { font-size: 11.5px !important; line-height: 1.55 !important; }
  .yj-side { position: static; display: flex; flex-direction: column; gap: 14px; }
}
@media (max-width: 768px) {
  .yj-arch-layout { grid-template-columns: 1fr !important; gap: 26px !important; }
  .yj-arch-main .yj-grid.yj-grid-3 { display: block !important; }
}

/* ===== v2.8：归档页导语卡入左栏，侧栏从顶部并排 ===== */
.yj-arch-main .yj-archive-head {
  padding: 20px 22px 18px; margin-bottom: 20px; border-radius: 14px;
}
.yj-arch-main .yj-archive-head h1 { font-size: 25px !important; margin: 0 0 9px !important; }
.yj-arch-main .yj-archive-desc { font-size: 13.5px; line-height: 1.75; max-width: none; margin-bottom: 0; }
.yj-arch-main .yj-archive-desc p { margin: 0 !important; }
.yj-arch-main .yj-breadcrumb { margin-bottom: 12px; font-size: 12px; }
@media (max-width: 1180px) and (min-width: 769px) {
  .yj-arch-main .yj-archive-head { padding: 17px 18px 18px; }
  .yj-arch-main .yj-archive-head h1 { font-size: 22px !important; }
  .yj-arch-main .yj-archive-desc { font-size: 13px; line-height: 1.72; }
}
@media (max-width: 768px) {
  .yj-arch-main .yj-archive-head { padding: 16px 16px 17px; border-radius: 13px; margin-bottom: 16px; }
  .yj-arch-main .yj-archive-head h1 { font-size: 21px !important; }
  .yj-arch-main .yj-archive-desc { font-size: 13px; }
}

/* ===== v2.9：文章页底部顺序 标签 → 上下篇 → 引流 → 相关推荐 ===== */
.yj-article-tags { margin: 34px 0 0; }
.yj-article-foot { margin-top: 22px; }
.yj-postnav { margin-top: 0; }
.yj-cta { margin-top: 24px; }
.yj-related { margin-top: 20px; }
@media (max-width: 768px) {
  .yj-article-tags { margin: 26px 0 0; padding-top: 18px; }
  .yj-article-foot { margin-top: 16px; }
  .yj-cta { margin-top: 18px; }
  .yj-related { margin-top: 14px; }
}

/* ===== v3.0：栏目页去图，文字卡更透气 ===== */
.yj-arch-main .yj-grid.yj-grid-3.yj-grid-plain {
  gap: 18px; margin-bottom: 30px; align-items: stretch;
}
.yj-arch-main .yj-grid-3 .yj-card.yj-card-plain {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 22px 22px 24px;
  border-radius: 14px;
  min-height: 178px;
  overflow: visible;
}
.yj-arch-main .yj-grid-3 .yj-card.yj-card-plain:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 156, 138, .10);
}
.yj-arch-main .yj-grid-3 .yj-card.yj-card-plain .yj-card-body {
  padding: 0; justify-content: flex-start; flex: 1;
}
.yj-arch-main .yj-grid-3 .yj-card.yj-card-plain .yj-pill {
  font-size: 11px; padding: 3px 9px; margin-bottom: 13px; border-radius: 5px;
}
.yj-arch-main .yj-grid-3 .yj-card.yj-card-plain h2 {
  font-size: 16px !important; line-height: 1.55 !important;
  margin: 0 0 10px !important;
  -webkit-line-clamp: 2;
}
.yj-arch-main .yj-grid-3 .yj-card.yj-card-plain p {
  font-size: 13px !important; line-height: 1.78 !important;
  color: var(--mute) !important;
  -webkit-line-clamp: 3;
}

@media (max-width: 1180px) and (min-width: 769px) {
  .yj-arch-main .yj-grid.yj-grid-3.yj-grid-plain { gap: 16px; }
  .yj-arch-main .yj-grid-3 .yj-card.yj-card-plain { padding: 20px 20px 22px; min-height: 170px; }
  .yj-arch-main .yj-grid-3 .yj-card.yj-card-plain h2 { font-size: 15.5px !important; }
}

@media (max-width: 768px) {
  .yj-arch-main .yj-grid.yj-grid-3.yj-grid-plain { gap: 12px; }
  .yj-arch-main .yj-grid-3 .yj-card.yj-card-plain {
    padding: 18px 18px 20px; min-height: 0; border-radius: 13px;
  }
  .yj-arch-main .yj-grid-3 .yj-card.yj-card-plain .yj-pill { margin-bottom: 10px; }
  .yj-arch-main .yj-grid-3 .yj-card.yj-card-plain h2 {
    font-size: 15px !important; line-height: 1.5 !important; margin-bottom: 8px !important;
  }
  .yj-arch-main .yj-grid-3 .yj-card.yj-card-plain p {
    font-size: 12.5px !important; line-height: 1.7 !important; -webkit-line-clamp: 2;
  }
}

/* ===== v3.1：文章没有图片时，卡片退化为文字卡 ===== */
.yj-card.yj-card-nocover .yj-card-body { padding: 20px 22px 21px; justify-content: center; }
.yj-card.yj-card-nocover h3,
.yj-card.yj-card-nocover h2 {
  font-size: 16px !important; line-height: 1.5 !important; margin-bottom: 9px !important;
}
.yj-card.yj-card-nocover p {
  font-size: 13px !important; line-height: 1.72 !important;
  -webkit-line-clamp: 3;
}
@media (max-width: 768px) {
  .yj-card.yj-card-nocover .yj-card-body { padding: 16px 17px 17px; }
  .yj-card.yj-card-nocover h3,
  .yj-card.yj-card-nocover h2 { font-size: 15px !important; }
  .yj-card.yj-card-nocover p { font-size: 12.5px !important; line-height: 1.7 !important; }
}
/* 侧栏最近更新没有缩略图时，文字占满整行 */
.yj-recent li:not(:has(.yj-recent-thumb)) .yj-recent-txt a { -webkit-line-clamp: 2; }

/* ===== v3.2：正文图片满宽，避免插图缩成小图 ===== */
.entry-content img,
.yj-article-body img {
  width: 100%; max-width: 100%; height: auto;
  display: block; margin: 24px 0;
  border-radius: 12px;
}
/* 正文插图限制最大高度：竖图/方图在 692px 栏里会占 900px 以上，把正文推太远。
   用 object-fit 裁成横向条带，不拉伸变形。 */
.entry-content figure img,
.yj-article-body figure img {
  max-height: 420px;
  object-fit: cover;
  object-position: center 40%;
}
/* 图片独占一段时不叠加段落下边距 */
.entry-content p:has(> img:only-child),
.yj-article-body p:has(> img:only-child) { margin-bottom: 0 !important; }
/* 图注 */
.entry-content figcaption,
.yj-article-body figcaption {
  font-size: 12.5px !important; color: var(--mute) !important;
  text-align: center; margin-top: -12px; margin-bottom: 22px;
}

/* ===== v3.3：文章顶部广告位（有内容才占位） ===== */
.yj-ad-slot { margin: 0 0 26px; }
.yj-ad-slot:empty { display: none; }
.yj-ad-slot img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 10px; }
.yj-ad-top { text-align: center; }
.yj-ad-top a { display: inline-block; }
@media (max-width: 768px) { .yj-ad-slot { margin-bottom: 18px; } }
/* 首页分页与文章列表之间留白 */
#latest .yj-pagination { margin-top: 4px; }

/* ===== v3.5：本周热门 / 新手必读 用文章配图做背景 ===== */
.yj-side-card {
  position: relative; overflow: hidden;
  min-height: 196px;
  padding: 24px 24px 22px;
  justify-content: flex-end;
  isolation: isolate;
  border-radius: 15px;
}
.yj-side-card .yj-side-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: -2;
  transform: scale(1.001);
  transition: transform .55s cubic-bezier(.2, .7, .3, 1);
}
.yj-side-card.has-bg::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
      rgba(8, 34, 32, .12) 0%,
      rgba(8, 34, 32, .42) 46%,
      rgba(8, 34, 32, .82) 100%);
  transition: background .3s;
}
.yj-side-card.has-bg:hover::before {
  background: linear-gradient(180deg,
      rgba(8, 34, 32, .18) 0%,
      rgba(8, 34, 32, .52) 46%,
      rgba(8, 34, 32, .88) 100%);
}
.yj-side-card:hover { border-color: transparent; background: transparent; }
.yj-side-card:hover .yj-side-bg { transform: scale(1.06); }

/* 有背景图时的文字样式 */
.yj-side-card.has-bg .k {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 10px; border-radius: 5px;
  background: rgba(255, 255, 255, .93);
  color: var(--brand-dark);
  font-size: 11px; letter-spacing: .06em;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}
.yj-side-card.has-bg h3 {
  color: #fff !important;
  font-size: 16.5px !important; line-height: 1.5 !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 1000px) {
  .yj-side-card { min-height: 168px; padding: 18px 18px 17px; }
  .yj-side-card.has-bg h3 { font-size: 15px !important; }
}
@media (max-width: 768px) {
  .yj-side-card { min-height: 148px; padding: 15px 16px 14px; border-radius: 12px; }
  .yj-side-card.has-bg .k { font-size: 10.5px; padding: 2px 8px; margin-bottom: 8px; }
  .yj-side-card.has-bg h3 {
    font-size: 14.5px !important; line-height: 1.48 !important;
    -webkit-line-clamp: 2;
  }
}

/* ===== v3.6：没有配图时用品牌渐变兜底，避免一张有图一张空白 ===== */
.yj-side-card:not(.has-bg) {
  background:
    radial-gradient(circle at 82% 18%, rgba(47, 192, 172, .55) 0%, rgba(47, 192, 172, 0) 58%),
    radial-gradient(circle at 12% 88%, rgba(10, 122, 108, .55) 0%, rgba(10, 122, 108, 0) 62%),
    linear-gradient(135deg, #0e9c8a 0%, #0a7a6c 100%);
  border-color: transparent;
  justify-content: flex-end;
}
.yj-side-card:not(.has-bg):hover {
  background:
    radial-gradient(circle at 82% 18%, rgba(47, 192, 172, .68) 0%, rgba(47, 192, 172, 0) 58%),
    radial-gradient(circle at 12% 88%, rgba(10, 122, 108, .62) 0%, rgba(10, 122, 108, 0) 62%),
    linear-gradient(135deg, #11a894 0%, #0b8577 100%);
}
.yj-side-card:not(.has-bg) .k {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 10px; border-radius: 5px;
  background: rgba(255, 255, 255, .93);
  color: var(--brand-dark);
  font-size: 11px; letter-spacing: .06em;
  margin-bottom: 10px;
}
.yj-side-card:not(.has-bg) h3 {
  color: #fff !important;
  font-size: 16.5px !important; line-height: 1.5 !important;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 1000px) {
  .yj-side-card:not(.has-bg) h3 { font-size: 15px !important; }
}
@media (max-width: 768px) {
  .yj-side-card:not(.has-bg) .k { font-size: 10.5px; padding: 2px 8px; margin-bottom: 8px; }
  .yj-side-card:not(.has-bg) h3 {
    font-size: 14.5px !important; line-height: 1.48 !important;
    -webkit-line-clamp: 2;
  }
}

/* ===== v3.7：主视觉已移除「开始阅读」按钮，回收段落尾部留白 ===== */
.yj-hero-main p { margin-bottom: 0 !important; }
@media (max-width: 768px) {
  .yj-hero-main p { margin-bottom: 0 !important; }
}

/* ===== v3.8：主视觉数据行（替代按钮，不抢焦点） ===== */
.yj-hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: 12.5px; letter-spacing: .02em;
  color: rgba(255, 255, 255, .82);
  position: relative; z-index: 1;
}
.yj-hero-meta b {
  font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 14px; margin: 0 1px;
}
.yj-hero-meta i {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  display: inline-block; flex: none;
}

/* ===== v3.8：相关推荐最多 30 篇，双列排布 ===== */
.yj-related-title { display: flex; align-items: center; gap: 8px; }
.yj-related-num {
  font-size: 11px; font-weight: 700;
  color: var(--brand-dark); background: var(--brand-soft);
  padding: 2px 7px; border-radius: 5px;
  letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.entry-content .yj-related ul.yj-related-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px; row-gap: 0;
  list-style: none; margin: 4px 0 0 !important; padding: 0 !important;
}
.yj-related-list li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 0 !important; margin: 0 !important;
  border-bottom: 1px solid #e8f1ef;
  font-size: 13.5px !important; line-height: 1.55 !important;
}
.yj-related-list li i {
  font-style: normal; flex: none;
  font-size: 11px; font-weight: 800; line-height: 1.9;
  color: #b6c7c4; font-variant-numeric: tabular-nums;
}
.yj-related-list li a {
  color: var(--ink2) !important; text-decoration: none !important;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color .16s;
}
.yj-related-list li a:hover { color: var(--brand) !important; }
/* 双列时去掉最后两行的分隔线 */
.yj-related-list li:nth-last-child(-n+2) { border-bottom: none; }

@media (max-width: 768px) {
  .yj-hero-meta {
    margin-top: 18px; padding-top: 15px; gap: 8px; font-size: 11.5px;
  }
  .yj-hero-meta b { font-size: 13px; }
  .entry-content .yj-related ul.yj-related-list { grid-template-columns: 1fr; }
  .yj-related-list li { padding: 7px 0 !important; font-size: 13px !important; }
  .yj-related-list li:nth-last-child(-n+2) { border-bottom: 1px solid #e8f1ef; }
  .yj-related-list li:last-child { border-bottom: none; }
}

/* ===== v3.9：相关推荐双列（选择器去掉 .entry-content 前缀，区块在正文之外） ===== */
.yj-related ul.yj-related-list,
.yj-related .yj-related-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px; row-gap: 0;
  list-style: none; margin: 4px 0 0 !important; padding: 0 !important;
}
@media (max-width: 768px) {
  .yj-related ul.yj-related-list,
  .yj-related .yj-related-list { grid-template-columns: 1fr; }
}

/* ===== v4.0：主视觉视觉配重（纯装饰，不含任何数据） ===== */
.yj-hero-main h1 { font-size: 34px !important; line-height: 1.4 !important; margin-bottom: 16px !important; }
.yj-hero-main p { font-size: 15px !important; line-height: 1.78 !important; max-width: 460px; }

.yj-hero-rule {
  display: block; position: relative; z-index: 1;
  width: 52px; height: 3px; margin-top: 26px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.35));
}
.yj-hero-rule::after {
  content: ""; position: absolute; left: 62px; top: 0;
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.7);
}

@media (max-width: 1000px) {
  .yj-hero-main h1 { font-size: 28px !important; }
  .yj-hero-main p { font-size: 14.5px !important; max-width: none; }
  .yj-hero-rule { margin-top: 20px; }
}
@media (max-width: 768px) {
  .yj-hero-main h1 { font-size: 22px !important; line-height: 1.48 !important; margin-bottom: 12px !important; }
  .yj-hero-main p { font-size: 13.5px !important; line-height: 1.72 !important; }
  .yj-hero-rule { margin-top: 16px; width: 42px; }
  .yj-hero-rule::after { left: 50px; }
}
@media (max-width: 380px) {
  .yj-hero-main h1 { font-size: 20px !important; }
}
