/* ==========================================================================
   易格睿观网 · 商业情报站  portal.css
   墨绿 #0d3b2e + 铜金 #b8873f + 米白 #faf7f2
   ========================================================================== */

:root {
  --yg-green: #0d3b2e;
  --yg-green-d: #072a20;
  --yg-green-t: #e7efeb;
  --yg-copper: #b8873f;
  --yg-copper-l: #d9ad66;
  --yg-copper-t: #f8f1e3;
  --yg-ink: #14120f;
  --yg-text: #232019;
  --yg-text2: #4c4538;
  --yg-muted: #8a8072;
  --yg-line: #e7dfd2;
  --yg-bg: #faf7f2;
  --yg-card: #ffffff;
  --yg-r: 6px;
  --yg-serif: Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
}

html[data-theme="dark"] {
  --yg-green-t: #10241c;
  --yg-copper-t: #2a2113;
  --yg-ink: #f2ede4;
  --yg-text: #e3ddd2;
  --yg-text2: #bdb5a8;
  --yg-muted: #948b7d;
  --yg-line: #2e2a22;
  --yg-bg: #0f0e0c;
  --yg-card: #1a1815;
}

* {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--yg-bg);
  color: var(--yg-text);
  font-size: 15.5px;
  line-height: 1.8;
  -webkit-text-size-adjust: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.hide {
  display: none !important;
}

/* ------------------------------ 顶栏 ------------------------------ */
.yg-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--yg-card);
  border-bottom: 2px solid var(--yg-green);
}

.yg-top.scrolled {
  box-shadow: 0 6px 22px rgba(20, 18, 15, .09);
}

.yg-top-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 22px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.yg-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.yg-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-family: var(--yg-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--yg-bg);
  background: var(--yg-green);
  border-radius: 3px;
}

.yg-brand-text {
  font-family: var(--yg-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--yg-green);
  white-space: nowrap;
}

html[data-theme="dark"] .yg-brand-text {
  color: var(--yg-ink);
}

.yg-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.yg-nav a {
  font-size: 13.5px;
  letter-spacing: .4px;
  color: var(--yg-text2);
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}

.yg-nav a:hover {
  color: var(--yg-green);
  border-bottom-color: var(--yg-copper);
}

html[data-theme="dark"] .yg-nav a:hover {
  color: #7fd0b0;
}

.yg-nav a.yg-nav-hot {
  color: var(--yg-copper);
  font-weight: 600;
}

.yg-search {
  display: flex;
  flex: 0 0 auto;
}

.yg-search input {
  width: 186px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--yg-text);
  background: var(--yg-bg);
  border: 1px solid var(--yg-line);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  outline: none;
}

.yg-search input::placeholder {
  color: var(--yg-muted);
}

.yg-search input:focus {
  border-color: var(--yg-green);
}

.yg-search button {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--yg-bg);
  background: var(--yg-green);
  border: 0;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  transition: background .2s;
}

.yg-search button:hover {
  background: var(--yg-copper);
}

.yg-theme {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--yg-text2);
  background: transparent;
  border: 1px solid var(--yg-line);
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
}

.yg-theme:hover {
  color: var(--yg-copper);
  border-color: var(--yg-copper);
}

.yg-menu-btn {
  display: none;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0 6px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.yg-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yg-text2);
}

/* ------------------------------ 抽屉 ------------------------------ */
.yg-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 59;
  background: var(--yg-card);
  border-bottom: 1px solid var(--yg-line);
  padding: 15px 18px 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.yg-drawer.open {
  display: block;
}

.yg-drawer-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.yg-drawer-search input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--yg-text);
  background: var(--yg-bg);
  border: 1px solid var(--yg-line);
  border-radius: 3px;
  outline: none;
}

.yg-drawer-search button {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--yg-bg);
  background: var(--yg-green);
  border: 0;
  border-radius: 3px;
}

.yg-drawer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--yg-line);
}

.yg-drawer-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--yg-ink);
}

.yg-drawer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.yg-drawer-cats a {
  font-size: 12.5px;
  color: var(--yg-text2);
  border: 1px solid var(--yg-line);
  padding: 4px 10px;
}

/* ------------------------------ HERO 情报台 ------------------------------ */
.yg-hero {
  background: var(--yg-green);
  padding: 44px 0 46px;
  position: relative;
  overflow: hidden;
}

.yg-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(184, 135, 63, .18);
  border-radius: 50%;
  pointer-events: none;
}

.yg-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

.yg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.yg-hero-kicker {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 3px;
  color: var(--yg-copper);
  border-left: 2px solid var(--yg-copper);
  padding-left: 10px;
  margin-bottom: 18px;
}

.yg-hero-title {
  font-family: var(--yg-serif);
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.34;
  font-weight: 400;
  letter-spacing: 2px;
  color: #f6f2ea;
}

.yg-hero-sub {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #a8bcb3;
  max-width: 520px;
}

.yg-hero-search {
  display: flex;
  max-width: 460px;
}

.yg-hero-search input {
  flex: 1 1 auto;
  height: 44px;
  padding: 0 15px;
  font-size: 14px;
  color: #f6f2ea;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  outline: none;
}

.yg-hero-search input::placeholder {
  color: #7f968c;
}

.yg-hero-search input:focus {
  border-color: var(--yg-copper);
}

.yg-hero-search button {
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--yg-green);
  background: var(--yg-copper);
  border: 0;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  transition: background .2s;
}

.yg-hero-search button:hover {
  background: #cfa055;
}

/* 今日三条 */
.yg-brief {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 18px;
}

.yg-brief-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 2.5px;
  color: var(--yg-copper);
  margin-bottom: 14px;
}

.yg-brief-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yg-copper);
}

.yg-brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: brief;
}

.yg-brief-list li {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.yg-brief-list li:last-child {
  border-bottom: 0;
}

.yg-brief-list a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  transition: opacity .2s;
}

.yg-brief-list a:hover {
  opacity: .78;
}

.yg-brief-no {
  flex: 0 0 auto;
  font-family: var(--yg-serif);
  font-size: 12px;
  color: var(--yg-copper);
  letter-spacing: 1px;
}

.yg-brief-title {
  flex: 1 1 auto;
  font-size: 14.5px;
  line-height: 1.6;
  color: #e8e4da;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yg-brief-meta {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: #7f968c;
}

/* ------------------------------ 容器 ------------------------------ */
.yg-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 22px 44px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.yg-main {
  flex: 1 1 auto;
  min-width: 0;
}

.yg-rail {
  flex: 0 0 288px;
  width: 288px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.yg-shell-article .yg-rail-sticky {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ------------------------------ 区块 ------------------------------ */
.yg-section {
  background: var(--yg-card);
  border: 1px solid var(--yg-line);
  border-radius: var(--yg-r);
  padding: 20px 22px 22px;
  margin-bottom: 18px;
}

.yg-section-inline {
  margin-top: 18px;
}

.yg-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--yg-green);
  flex-wrap: wrap;
}

html[data-theme="dark"] .yg-section-head {
  border-bottom-color: var(--yg-line);
}

.yg-section-title {
  font-family: var(--yg-serif);
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--yg-ink);
}

.yg-section-more,
.yg-section-hint {
  font-size: 12.5px;
  letter-spacing: .5px;
  color: var(--yg-muted);
}

.yg-section-more:hover {
  color: var(--yg-copper);
}

/* ------------------------------ 四段路径 ------------------------------ */
.yg-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.yg-stage {
  border-right: 1px solid var(--yg-line);
  padding: 0 18px 4px;
}

.yg-stage:first-child {
  padding-left: 0;
}

.yg-stage:last-child {
  border-right: 0;
  padding-right: 0;
}

.yg-stage-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.yg-stage-no {
  font-family: var(--yg-serif);
  font-size: 11.5px;
  color: var(--yg-copper);
  letter-spacing: 1px;
}

.yg-stage-name {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--yg-green);
}

html[data-theme="dark"] .yg-stage-name {
  color: #7fd0b0;
}

.yg-stage-desc {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--yg-muted);
  margin-bottom: 10px;
}

.yg-stage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yg-stage-links a {
  font-size: 12.5px;
  color: var(--yg-text2);
  background: var(--yg-bg);
  border: 1px solid var(--yg-line);
  border-radius: 2px;
  padding: 3px 9px;
  transition: all .2s;
}

.yg-stage-links a:hover {
  color: var(--yg-bg);
  background: var(--yg-green);
  border-color: var(--yg-green);
}

html[data-theme="dark"] .yg-stage-links a:hover {
  color: #14120f;
}

/* ------------------------------ 深度 rail ------------------------------ */
.yg-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.yg-slider::-webkit-scrollbar {
  height: 4px;
}

.yg-slider::-webkit-scrollbar-thumb {
  background: var(--yg-line);
}

.yg-deep {
  flex: 0 0 296px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  background: var(--yg-bg);
  border: 1px solid var(--yg-line);
  border-top: 2px solid var(--yg-copper);
  border-radius: 3px;
  transition: all .22s;
}

.yg-deep:hover {
  background: var(--yg-card);
  transform: translateY(-2px);
}

.yg-deep-no {
  font-family: var(--yg-serif);
  font-size: 11.5px;
  color: var(--yg-copper);
  letter-spacing: 1px;
}

.yg-deep-title {
  font-family: var(--yg-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--yg-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yg-deep:hover .yg-deep-title {
  color: var(--yg-green);
}

html[data-theme="dark"] .yg-deep:hover .yg-deep-title {
  color: #7fd0b0;
}

.yg-deep-desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--yg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yg-deep-meta {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--yg-muted);
}

/* ------------------------------ 列表 ------------------------------ */
.yg-list {
  display: flex;
  flex-direction: column;
}

.yg-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px 0;
  border-bottom: 1px solid var(--yg-line);
}

.yg-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.yg-item:first-child {
  padding-top: 0;
}

.yg-item-idx {
  flex: 0 0 auto;
  font-family: var(--yg-serif);
  font-size: 12.5px;
  color: var(--yg-copper);
  width: 20px;
  margin-top: 5px;
}

.yg-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.yg-item-title {
  margin: 0 0 7px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--yg-text);
}

.yg-item-title a:hover {
  color: var(--yg-green);
}

html[data-theme="dark"] .yg-item-title a:hover {
  color: #7fd0b0;
}

.yg-item-desc {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--yg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yg-item-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--yg-muted);
}

.yg-dot {
  color: var(--yg-line);
}

/* ------------------------------ 侧栏 ------------------------------ */
.yg-card {
  background: var(--yg-card);
  border: 1px solid var(--yg-line);
  border-radius: var(--yg-r);
  padding: 18px;
}

.yg-card-title {
  display: flex;
  align-items: baseline;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--yg-line);
  font-family: var(--yg-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--yg-ink);
}

.yg-card-title .more {
  margin-left: auto;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--yg-muted);
}

.yg-rank {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yg-rank li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--yg-line);
}

.yg-rank li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.yg-rank .no {
  flex: 0 0 auto;
  font-family: var(--yg-serif);
  font-size: 11.5px;
  width: 16px;
  color: var(--yg-muted);
  margin-top: 3px;
}

.yg-rank .no.hot {
  color: var(--yg-copper);
  font-weight: 700;
}

.yg-rank a {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--yg-text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yg-rank a:hover {
  color: var(--yg-green);
}

html[data-theme="dark"] .yg-rank a:hover {
  color: #7fd0b0;
}

.yg-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.yg-cats a {
  font-size: 12.5px;
  color: var(--yg-text2);
  background: var(--yg-bg);
  border: 1px solid var(--yg-line);
  border-radius: 2px;
  padding: 4px 9px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all .2s;
}

.yg-cats a:hover {
  color: var(--yg-bg);
  background: var(--yg-green);
  border-color: var(--yg-green);
}

.yg-cats-refresh {
  margin-top: 11px;
  width: 100%;
  height: 30px;
  font-size: 12px;
  color: var(--yg-muted);
  background: transparent;
  border: 1px dashed var(--yg-line);
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s;
}

.yg-cats-refresh:hover {
  color: var(--yg-copper);
  border-color: var(--yg-copper);
}

/* 目录 */
.yg-toc {
  max-height: 44vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.yg-toc::-webkit-scrollbar {
  width: 3px;
}

.yg-toc::-webkit-scrollbar-thumb {
  background: var(--yg-line);
}

.yg-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--yg-text2);
  padding: 5px 0 5px 10px;
  border-left: 1px solid var(--yg-line);
  transition: all .2s;
}

.yg-toc a.lv3 {
  padding-left: 20px;
  font-size: 12.5px;
  color: var(--yg-muted);
}

.yg-toc a:hover {
  color: var(--yg-copper);
}

.yg-toc a.on {
  color: var(--yg-green);
  border-left: 2px solid var(--yg-copper);
  font-weight: 600;
}

html[data-theme="dark"] .yg-toc a.on {
  color: #7fd0b0;
}

/* ------------------------------ 分类墙 ------------------------------ */
.yg-catwall {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.yg-catpill {
  font-size: 12.5px;
  color: var(--yg-text2);
  border: 1px solid var(--yg-line);
  padding: 6px 13px;
  margin: -1px 0 0 -1px;
  transition: all .2s;
}

.yg-catpill:hover {
  color: var(--yg-bg);
  background: var(--yg-green);
  border-color: var(--yg-green);
  position: relative;
  z-index: 1;
}

/* ------------------------------ 分页 ------------------------------ */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
}

.pager .page-link {
  display: inline-block;
  width: auto;
  min-width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  padding: 0 11px;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--yg-text2);
  background: transparent;
  border: 1px solid var(--yg-line);
  border-radius: 2px;
  transition: all .2s;
}

.pager .page-link:hover {
  color: var(--yg-green);
  border-color: var(--yg-green);
}

.pager .page-link.current {
  color: var(--yg-bg);
  background: var(--yg-green);
  border-color: var(--yg-green);
}

/* ------------------------------ 文章页 ------------------------------ */
.yg-crumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--yg-muted);
  margin-bottom: 18px;
}

.yg-crumb a:hover {
  color: var(--yg-copper);
}

.yg-article {
  background: var(--yg-card);
  border: 1px solid var(--yg-line);
  border-radius: var(--yg-r);
  padding: 28px 34px;
}

.yg-art-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--yg-line);
  margin-bottom: 24px;
}

.yg-art-cat {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--yg-copper);
  border: 1px solid var(--yg-copper);
  padding: 2px 9px;
  margin-bottom: 14px;
}

.yg-art-cat:hover {
  color: var(--yg-bg);
  background: var(--yg-copper);
}

.yg-art-title {
  font-family: var(--yg-serif);
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: .5px;
  color: var(--yg-ink);
}

.yg-art-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--yg-muted);
}

/* 要点 */
.yg-keypoints {
  margin: 0 0 26px;
  padding: 20px 24px;
  background: var(--yg-green-t);
  border-left: 2px solid var(--yg-green);
}

html[data-theme="dark"] .yg-keypoints {
  background: var(--yg-green-t);
}

.yg-keypoints-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--yg-ink);
  margin-bottom: 11px;
}

.yg-keypoints-icon {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--yg-bg);
  background: var(--yg-green);
  padding: 1px 7px;
}

.yg-keypoints-list {
  margin: 0;
  padding-left: 19px;
}

.yg-keypoints-list li {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--yg-text2);
  margin-bottom: 4px;
}

/* 正文 */
.yg-content {
  font-size: 16.5px;
  line-height: 2.05;
  color: var(--yg-text2);
  overflow-wrap: break-word;
  word-break: break-word;
}

.yg-content p {
  margin: 0 0 1.2em;
}

.yg-content h2 {
  font-family: var(--yg-serif);
  margin: 2em 0 .85em;
  padding-bottom: .35em;
  border-bottom: 1px solid var(--yg-line);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 1px;
  color: var(--yg-ink);
}

.yg-content h3 {
  font-family: var(--yg-serif);
  margin: 1.6em 0 .75em;
  font-size: 18.5px;
  font-weight: 600;
  color: var(--yg-ink);
}

.yg-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em auto;
  cursor: zoom-in;
}

.yg-content a {
  color: var(--yg-green);
  border-bottom: 1px solid rgba(13, 59, 46, .3);
}

html[data-theme="dark"] .yg-content a {
  color: #7fd0b0;
}

.yg-content blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  background: var(--yg-bg);
  border-left: 2px solid var(--yg-copper);
  color: var(--yg-muted);
}

.yg-content ul,
.yg-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.6em;
}

.yg-content li {
  margin-bottom: .5em;
}

.yg-content code {
  background: var(--yg-bg);
  color: #a33a1e;
  padding: 2px 6px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.yg-content pre {
  background: #0b1a14;
  color: #dfe9e3;
  padding: 16px 18px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 13.5px;
  line-height: 1.7;
}

.yg-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  white-space: pre;
}

.yg-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.yg-content table th,
.yg-content table td {
  border: 1px solid var(--yg-line);
  padding: 9px 13px;
  font-size: 14.5px;
  white-space: nowrap;
}

.yg-content table th {
  background: var(--yg-bg);
  font-weight: 700;
}

.yg-art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--yg-line);
}

.yg-art-tags a {
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--yg-text2);
  border: 1px solid var(--yg-line);
  padding: 3px 10px;
}

.yg-art-tags a:hover {
  color: var(--yg-bg);
  background: var(--yg-green);
  border-color: var(--yg-green);
}

/* 上下篇 */
.yg-prevnext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  border: 1px solid var(--yg-line);
  background: var(--yg-card);
}

.yg-prevnext-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  border-right: 1px solid var(--yg-line);
  transition: background .2s;
}

.yg-prevnext-link:last-child {
  border-right: 0;
}

.yg-prevnext-link:hover {
  background: var(--yg-bg);
}

.yg-prevnext-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--yg-muted);
}

.yg-prevnext-title {
  font-family: var(--yg-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--yg-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yg-prevnext-link:hover .yg-prevnext-title {
  color: var(--yg-copper);
}

.yg-prevnext-link.is-empty {
  cursor: default;
}

.yg-prevnext-link.is-empty .yg-prevnext-title {
  color: var(--yg-muted);
}

/* 相关 */
.yg-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
}

.yg-related-item {
  font-size: 14px;
  line-height: 1.7;
  color: var(--yg-text2);
  padding-left: 12px;
  border-left: 1px solid var(--yg-line);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yg-related-item:hover {
  color: var(--yg-green);
  border-left-color: var(--yg-copper);
}

/* ------------------------------ 列表页头 / 面板 ------------------------------ */
.yg-page-head {
  background: var(--yg-card);
  border: 1px solid var(--yg-line);
  border-radius: var(--yg-r);
  padding: 22px 24px 20px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--yg-green);
}

.yg-page-head h1 {
  font-family: var(--yg-serif);
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--yg-ink);
}

.yg-page-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--yg-muted);
}

.yg-panel {
  border: 1px solid var(--yg-line);
  padding: 26px 28px;
  background: var(--yg-card);
  border-radius: var(--yg-r);
}

.yg-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.yg-tagpill {
  font-size: 12.5px;
  color: var(--yg-text2);
  border: 1px solid var(--yg-line);
  padding: 6px 13px;
  margin: -1px 0 0 -1px;
  transition: all .2s;
}

.yg-tagpill:hover {
  color: var(--yg-bg);
  background: var(--yg-copper);
  border-color: var(--yg-copper);
  position: relative;
  z-index: 1;
}

.yg-empty {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--yg-muted);
}

/* 错误页 */
.yg-error {
  max-width: 600px;
  margin: 56px auto;
  padding: 46px 30px;
  text-align: center;
  border: 1px solid var(--yg-line);
  background: var(--yg-card);
}

.yg-error-code {
  font-family: var(--yg-serif);
  font-size: 60px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 4px;
  color: var(--yg-green);
  opacity: .28;
  margin-bottom: 10px;
}

.yg-error h1 {
  font-family: var(--yg-serif);
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--yg-ink);
}

.yg-error p {
  margin: 0 0 26px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--yg-muted);
}

.yg-error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.yg-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all .2s;
}

.yg-btn-primary {
  color: var(--yg-bg);
  background: var(--yg-green);
}

.yg-btn-primary:hover {
  background: var(--yg-copper);
}

.yg-btn-plain {
  color: var(--yg-text2);
  border: 1px solid var(--yg-line);
}

.yg-btn-plain:hover {
  color: var(--yg-copper);
  border-color: var(--yg-copper);
}

/* ------------------------------ 留言板 ------------------------------ */
.guestbook-form {
  max-width: 700px;
  margin: 0 auto;
}

.guestbook-form .form-item {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.guestbook-form .form-label {
  flex: 0 0 92px;
  padding-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--yg-text2);
  text-align: right;
}

.guestbook-form .form-value {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.guestbook-form input[type="text"],
.guestbook-form input[type="number"],
.guestbook-form input[type="email"],
.guestbook-form input[type="file"],
.guestbook-form textarea,
.guestbook-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  font-size: 14.5px;
  color: var(--yg-text);
  background: var(--yg-bg);
  border: 1px solid var(--yg-line);
  border-radius: 2px;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
  color: var(--yg-muted);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus,
.guestbook-form select:focus {
  border-color: var(--yg-green);
}

.guestbook-form textarea {
  resize: vertical;
  line-height: 1.75;
}

.yg-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yg-captcha-row input[type="text"] {
  flex: 1 1 auto;
}

.guestbook-form .form-captcha {
  flex: 0 0 auto;
  width: 116px;
  height: 42px;
  border: 1px solid var(--yg-line);
  cursor: pointer;
  object-fit: cover;
}

.guestbook-form .form-control {
  padding-left: 108px;
  margin-top: 10px;
}

.guestbook-form .form-btn {
  min-width: 146px;
  height: 42px;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--yg-bg);
  background: var(--yg-green);
  border: 0;
  cursor: pointer;
  transition: background .2s;
}

.guestbook-form .form-btn:hover {
  background: var(--yg-copper);
}

/* ------------------------------ 页脚 ------------------------------ */
.yg-foot {
  background: var(--yg-green-d);
  color: #93a89f;
  padding-top: 40px;
}

.yg-foot-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 22px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
}

.yg-foot-col h4 {
  font-family: var(--yg-serif);
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #e6efe9;
}

.yg-foot-col p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #8fa59b;
}

.yg-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.yg-foot-links a {
  font-size: 13px;
  color: #8fa59b;
  transition: color .2s;
}

.yg-foot-links a:hover {
  color: var(--yg-copper);
}

.yg-foot-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: .5px;
  color: #6f887e;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.yg-foot-bottom a:hover {
  color: var(--yg-copper);
}

/* ------------------------------ 回到顶部 / 灯箱 ------------------------------ */
.yg-totop {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 40;
  width: 40px;
  height: 40px;
  font-size: 15px;
  color: var(--yg-bg);
  background: var(--yg-green);
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
}

.yg-totop.show {
  opacity: 1;
  visibility: visible;
}

.yg-totop:hover {
  background: var(--yg-copper);
}

.yg-viewer {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 16, .94);
}

.yg-viewer.open {
  display: flex;
}

.yg-viewer img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
}

.yg-viewer .close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  font-size: 22px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media screen and (max-width: 1120px) {
  .yg-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .yg-hero-title {
    font-size: 34px;
  }

  .yg-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .yg-main {
    width: 100%;
  }

  .yg-rail {
    width: 100%;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
  }

  .yg-shell-article .yg-rail-sticky {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
  }

  .yg-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .yg-stage:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }

  .yg-stage:nth-child(2n+1) {
    padding-left: 0;
  }
}

@media screen and (max-width: 860px) {
  .yg-hero-title {
    font-size: 28px;
  }

  .yg-foot-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .yg-art-title {
    font-size: 25px;
  }

  .yg-related {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 680px) {
  .yg-top-inner {
    height: 56px;
    padding: 0 14px;
    gap: 10px;
  }

  .yg-menu-btn {
    display: flex;
  }

  .yg-nav,
  .yg-search {
    display: none;
  }

  .yg-brand-text {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .yg-drawer {
    top: 56px;
  }

  .yg-theme {
    margin-left: auto;
  }

  .yg-hero {
    padding: 28px 0 30px;
  }

  .yg-hero-inner,
  .yg-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .yg-hero-title {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .yg-hero-sub {
    font-size: 13.5px;
  }

  .yg-section {
    padding: 16px;
  }

  .yg-section-title {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .yg-path {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .yg-stage {
    border-right: 0;
    border-bottom: 1px solid var(--yg-line);
    padding: 0 0 16px;
    margin-bottom: 16px;
  }

  .yg-stage:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .yg-deep {
    flex: 0 0 84%;
  }

  .yg-item-title {
    font-size: 15.5px;
  }

  .yg-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .yg-shell-article .yg-rail-sticky {
    grid-template-columns: minmax(0, 1fr);
  }

  .yg-article {
    padding: 20px 16px;
  }

  .yg-art-title {
    font-size: 21px;
  }

  .yg-content {
    font-size: 16px;
  }

  .yg-content h2 {
    font-size: 19px;
  }

  .yg-prevnext {
    grid-template-columns: minmax(0, 1fr);
  }

  .yg-prevnext-link {
    border-right: 0;
    border-bottom: 1px solid var(--yg-line);
  }

  .yg-prevnext-link:last-child {
    border-bottom: 0;
  }

  .yg-page-head h1 {
    font-size: 23px;
  }

  .yg-panel {
    padding: 18px 16px;
  }

  .yg-error {
    margin: 28px 14px;
    padding: 30px 20px;
  }

  .yg-foot-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .guestbook-form .form-item {
    flex-direction: column;
    gap: 6px;
  }

  .guestbook-form .form-label {
    flex: none;
    width: 100%;
    text-align: left;
    padding-top: 0;
  }

  .guestbook-form .form-control {
    padding-left: 0;
  }

  .yg-totop {
    right: 14px;
    bottom: 18px;
    width: 38px;
    height: 38px;
  }
}
