/* 全站浅灰底，白块浮在上面。首页 / 分类 / 搜索 / 文章同一视觉。 */
html,
body {
  background: #f2f2f2 !important;
  background-image: none !important;
}

main {
  background: transparent;
}

.site-header {
  background: #fff !important;
  border-bottom: 1px solid #e5e5e5;
}

.site-footer {
  background: #f2f2f2;
  border-top: 1px solid #e5e5e5;
}

.home-widget {
  margin-bottom: 0;
}

.yeluzi-home {
  padding-top: 18px;
  padding-bottom: 36px;
}

.yeluzi-home-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-left: 3px solid #d97706;
}

.yeluzi-home-promo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 240px;
}

.yeluzi-home-promo-search {
  display: flex;
  flex: 1 1 360px;
  max-width: 520px;
  min-width: 180px;
}

.yeluzi-home-promo-search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid #e5e5e5;
  border-right: 0;
  padding: 0 12px;
  font-size: 13px;
  background: #fff;
}

.yeluzi-home-promo-search input:focus {
  outline: none;
  border-color: #d97706;
}

.yeluzi-home-promo-search button {
  height: 36px;
  padding: 0 16px;
  background: #d97706;
  color: #fff;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.yeluzi-home-promo-search button:hover {
  background: #b45309;
}

.yeluzi-home-promo-copy strong {
  font-size: 15px;
  color: #222;
  font-weight: 700;
}

.yeluzi-home-promo-copy span {
  color: #888;
  font-size: 13px;
}

.yeluzi-home-promo-btn,
.yeluzi-side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 2px;
  padding: 6px 16px;
  background: #d97706;
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
}

.yeluzi-home-promo-btn:hover,
.yeluzi-side-btn:hover {
  background: #b45309;
  color: #fff !important;
}

.yeluzi-panel,
.yeluzi-widget,
.single .content-wrapper > .card,
.page .content-wrapper > .card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  box-shadow: none;
}

.yeluzi-panel-head,
.yeluzi-widget > h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.yeluzi-panel-head h3,
.yeluzi-widget > h4 {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
}

.yeluzi-widget > h4 {
  display: block;
  position: relative;
  padding-left: 14px;
}

.yeluzi-widget > h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #d97706;
}

.yeluzi-home-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}

.yeluzi-home-cats a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
}

.yeluzi-home-cats a:hover,
.yeluzi-home-cats a[href]:focus {
  color: #d97706;
}

.yeluzi-inline-search input {
  height: 32px;
  border: 1px solid #e5e5e5;
  padding: 0 10px;
  font-size: 13px;
  min-width: 180px;
  background: #fff;
}

.yeluzi-home-feed .posts-warp,
.yeluzi-archive .posts-warp {
  margin: 0;
}

.yeluzi-home-feed .item-list,
.yeluzi-archive .item-list {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 14px;
  border-bottom: 1px solid #eee;
}

.yeluzi-home-feed .col:last-child .item-list,
.yeluzi-archive .col:last-child .item-list {
  border-bottom: 0;
}

.yeluzi-home-feed .item-list .entry-media,
.yeluzi-archive .item-list .entry-media {
  width: 150px;
  min-width: 150px;
  --bs-aspect-ratio: 100%;
  border-radius: 0;
}

.yeluzi-home-feed .entry-title,
.yeluzi-archive .entry-title {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.yeluzi-home-feed .entry-title a,
.yeluzi-archive .entry-title a {
  color: #222;
}

.yeluzi-home-feed .entry-title a:hover,
.yeluzi-archive .entry-title a:hover {
  color: #d97706;
}

.yeluzi-home-feed .entry-desc,
.yeluzi-archive .entry-desc {
  color: #888;
  font-size: 13px;
}

.yeluzi-home-feed .page-nav,
.yeluzi-archive .page-nav {
  padding: 12px 14px 16px;
  border-top: 1px solid #eee;
  margin: 0 !important;
}

/* 下拉自动加载：去掉黑底按钮，保留加载转圈 */
.yeluzi-home .infinite-scroll-button.infinite-auto {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  color: transparent;
  font-size: 0;
  line-height: 0;
  padding: 10px 0;
  min-height: 28px;
  width: 100%;
  justify-content: center;
  pointer-events: none;
  cursor: default;
  border-radius: 0;
}

.yeluzi-home .infinite-scroll-button.infinite-auto .infinite-scroll-status {
  margin: 0;
  color: #999;
}

.yeluzi-home .infinite-scroll-msg {
  font-size: 13px;
  color: #999;
}

.yeluzi-widget {
  margin-bottom: 14px;
}

.yeluzi-widget-body {
  padding: 12px 14px 14px;
}

.yeluzi-about-text {
  margin: 0 0 8px;
  color: #555;
  font-size: 13px;
  line-height: 1.7;
}

.yeluzi-about-vip {
  margin: 0 0 10px;
  color: #d97706;
  font-size: 14px;
  font-weight: 700;
}

.yeluzi-side-prices,
.yeluzi-side-posts,
.yeluzi-side-funcs,
.yeluzi-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yeluzi-side-prices {
  margin-bottom: 12px;
}

.yeluzi-side-prices li,
.yeluzi-side-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed #eee;
  font-size: 13px;
  color: #444;
}

.yeluzi-side-prices li:last-child,
.yeluzi-side-list li:last-child {
  border-bottom: 0;
}

.yeluzi-side-prices b {
  color: #d97706;
  font-weight: 700;
}

.yeluzi-side-list a {
  display: flex;
  justify-content: space-between;
  flex: 1;
  color: #333;
  text-decoration: none;
}

.yeluzi-side-list em {
  color: #999;
  font-style: normal;
  font-size: 12px;
}

.yeluzi-side-btn {
  width: 100%;
}

.yeluzi-side-search {
  display: flex;
}

.yeluzi-side-search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid #e5e5e5;
  border-right: 0;
  padding: 0 10px;
  font-size: 13px;
  background: #fff;
}

.yeluzi-side-search button {
  height: 36px;
  padding: 0 14px;
  background: #d97706;
  color: #fff;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.yeluzi-side-search button:hover {
  background: #b45309;
}

.yeluzi-side-posts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  line-height: 1.5;
}

.yeluzi-side-posts li:last-child,
.yeluzi-side-funcs li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.yeluzi-side-posts li:first-child,
.yeluzi-side-funcs li:first-child {
  padding-top: 0;
}

.yeluzi-side-posts em {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: #eee;
  color: #888;
  font-style: normal;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.yeluzi-side-posts li:nth-child(-n+3) em {
  background: #d97706;
  color: #fff;
}

.yeluzi-side-posts a,
.yeluzi-side-funcs a {
  color: #333;
  text-decoration: none;
  flex: 1;
}

.yeluzi-side-posts a:hover,
.yeluzi-side-funcs a:hover,
.yeluzi-side-list a:hover {
  color: #d97706;
}

.yeluzi-side-rand li {
  display: block;
}

.yeluzi-side-funcs li {
  border-bottom: 1px solid #f0f0f0;
}

.yeluzi-side-funcs a {
  display: block;
  padding: 8px 0;
}

/* 文章页：比例贴近首页 8/4，卡片去圆角 */
@media (min-width: 992px) {
  .single .content-wrapper.col-lg-9,
  .page .content-wrapper.col-lg-9 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .single .sidebar-wrapper.col-lg-3,
  .page .sidebar-wrapper.col-lg-3 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

.sidebar .widget {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  box-shadow: none;
}

.sidebar .widget > .widget-title {
  display: none;
}

.sidebar .widget .yeluzi-widget {
  margin-bottom: 0;
}

.single .content-wrapper > .card,
.page .content-wrapper > .card {
  padding: 22px 24px 28px;
}

.container-full.bg-white {
  background: #fff !important;
  border-bottom: 1px solid #e5e5e5;
}

.archive-hero {
  display: none;
}

.yeluzi-archive .filter-warp {
  padding: 10px 14px 0;
  background: #fff;
}

.yeluzi-archive .filter-warp .container {
  max-width: none;
  padding: 0;
}

/* 下载组件贴合白板 */
.sidebar .ri-down-warp,
.sidebar .post-buy-widget .ri-down-warp {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  padding: 14px;
}

.navbar-search .search-form input,
.navbar-search .form-select {
  border-radius: 2px;
}

@media (max-width: 991.98px) {
  .yeluzi-home-promo {
    flex-direction: column;
    align-items: stretch;
  }

  .yeluzi-home-promo-copy {
    min-width: 0;
  }

  .yeluzi-home-promo-search {
    max-width: none;
    flex: 1 1 auto;
  }

  .yeluzi-home-promo-btn {
    align-self: flex-end;
  }

  .yeluzi-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .yeluzi-home-feed .item-list .entry-media,
  .yeluzi-archive .item-list .entry-media {
    width: 110px;
    min-width: 110px;
  }
}
