:root {
  --yb-bg: #f5efe4;
  --yb-paper: #fffdf8;
  --yb-ink: #111615;
  --yb-ink2: #3f4b47;
  --yb-muted: #7a817d;
  --yb-line: rgba(17, 22, 21, .15);
  --yb-green: #173e36;
  --yb-gold: #9b7434;
  --yb-cream: #f1e7d6;
  --yb-serif: "Songti SC", "Noto Serif SC", Georgia, serif;
  --yb-sans: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.yb-shell {
  color: var(--yb-ink);
  font-family: var(--yb-sans);
}

.yb-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--yb-line);
  background: rgba(245, 239, 228, .92);
  backdrop-filter: blur(18px);
}

.yb-header-inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: clamp(12px, 1.6vw, 22px);
  align-items: center;
  margin: auto;
}

.yb-brand {
  display: grid;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.yb-brand strong {
  font: 700 1.08rem var(--yb-serif);
}

.yb-brand span {
  overflow: hidden;
  color: var(--yb-muted);
  font-size: .66rem;
  letter-spacing: .12em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-nav {
  display: flex;
  justify-content: center;
  gap: clamp(11px, 1.25vw, 20px);
  align-items: center;
  white-space: nowrap;
}

.yb-nav a {
  padding: 9px 0;
  border-bottom: 1px solid transparent;
  color: var(--yb-ink2);
  font-size: .86rem;
  text-decoration: none;
}

.yb-nav a:hover,
.yb-nav a.is-active {
  border-color: var(--yb-gold);
  color: var(--yb-ink);
}

.yb-search {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--yb-line);
  padding: 0 14px;
  background: rgba(255, 253, 248, .62);
  color: var(--yb-green);
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.yb-search:hover {
  border-color: var(--yb-green);
  background: var(--yb-green);
  color: #fff;
}

.yb-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--yb-line);
  background: var(--yb-paper);
  font-size: 1.1rem;
}

.yb-breadcrumb {
  width: min(1200px, calc(100% - 40px));
  margin: 22px auto 0;
  color: var(--yb-muted);
  font-size: .8rem;
}

.yb-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.yb-breadcrumb span {
  margin: 0 8px;
}

.yb-footer {
  margin-top: 70px;
  background: #0c100f;
  color: #d4dad7;
}

.yb-footer-inner {
  width: min(1200px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  margin: auto;
  padding: 42px 0;
}

.yb-footer h3 {
  margin: 0 0 12px;
  font: 700 1.35rem var(--yb-serif);
}

.yb-footer h4 {
  margin: 0 0 12px;
  color: #fff;
}

.yb-footer p,
.yb-footer a {
  color: #aeb8b3;
  font-size: .86rem;
  line-height: 1.8;
  text-decoration: none;
}

.yb-footer-bottom {
  border-top: 1px solid #ffffff18;
  padding: 18px 0;
  color: #909b96;
  font-size: .76rem;
}

.yb-footer-bottom > div {
  width: min(1200px, calc(100% - 40px));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin: auto;
}

.yb-page-head {
  width: min(1200px, calc(100% - 40px));
  margin: 30px auto 36px;
  padding: 52px 0 32px;
  border-bottom: 1px solid var(--yb-line);
}

.yb-page-head small {
  color: var(--yb-gold);
  font-weight: 900;
  letter-spacing: .15em;
}

.yb-page-head h1 {
  margin: 14px 0 12px;
  font: 700 clamp(2.8rem, 6vw, 6rem)/1 var(--yb-serif);
}

.yb-page-head p {
  max-width: 780px;
  color: var(--yb-ink2);
  line-height: 1.9;
}

.yb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.yb-meta span {
  padding: 7px 10px;
  background: var(--yb-cream);
  font-size: .74rem;
}

.yb-back {
  display: inline-flex;
  margin-top: 18px;
  color: var(--yb-green);
  font-weight: 800;
  text-decoration: none;
}

.yb-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.yb-prevnext a {
  border: 1px solid var(--yb-line);
  padding: 18px;
  background: var(--yb-paper);
  color: inherit;
  text-decoration: none;
}

.yb-prevnext small {
  display: block;
  margin-bottom: 7px;
  color: var(--yb-muted);
}

.yb-card {
  border: 1px solid var(--yb-line);
  background: rgba(255, 253, 248, .78);
  transition: .2s;
}

.yb-card:hover {
  transform: translateY(-3px);
  background: #fff;
}

.yb-pill {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: #e1ebe6;
  color: var(--yb-green);
  font-size: .7rem;
  font-weight: 900;
}

@media (max-width: 900px) {
  .yb-header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: auto;
    padding: 14px 0;
  }

  .yb-menu {
    flex: 0 0 auto;
    display: none;
  }

  .yb-brand {
    flex: 1 1 auto;
  }

  .yb-search {
    flex: 0 0 auto;
  }

  .yb-nav {
    min-width: 0;
    max-width: 100%;
    position: static;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    display: flex;
    gap: 18px;
    padding-bottom: 2px;
  }

  .yb-nav.is-open {
    display: flex;
  }

  .yb-nav a {
    padding: 8px 0;
  }

  .yb-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .yb-header-inner,
  .yb-breadcrumb,
  .yb-page-head,
  .yb-footer-inner,
  .yb-footer-bottom > div {
    width: min(100% - 28px, 1200px);
  }

  .yb-brand {
    padding-right: 100px;
  }

  .yb-brand span {
    display: none;
  }

  .yb-search {
    width: 42px;
    justify-content: center;
    padding: 0 10px;
    overflow: hidden;
    color: transparent;
  }

  .yb-search::before {
    content: "搜";
    color: var(--yb-green);
    font-size: .82rem;
  }

  .yb-search:hover::before {
    color: #fff;
  }

  .yb-footer-inner,
  .yb-prevnext {
    grid-template-columns: 1fr;
  }
}
