.yuyu-home-skin .yuyu-hero-grid {
  width: min(1170px, calc(100% - 30px)); margin: 18px auto 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 28%); gap: 16px;
  --yuyu-banner-height: 470px;
}
.yuyu-home-skin .yuyu-hero-single { grid-template-columns: minmax(0, 1fr); }
.yuyu-home-skin .yuyu-hero, .yuyu-home-skin .yuyu-ranking {
  position: relative; isolation: isolate; min-width: 0;
  border: 1px solid #b445867a; background: #20172f; border-radius: 20px;
  box-shadow: 0 15px 37px -24px #d449ee90;
}
.yuyu-home-skin .yuyu-hero { overflow: hidden; --yuyu-text: #f3effc; --yuyu-muted: #baacca; }
.yuyu-home-skin .yuyu-slider-widget { display: block !important; }
.yuyu-home-skin .yuyu-slider-widget .slide-widget { margin: 0; height: var(--yuyu-banner-height); overflow: hidden; }
.yuyu-home-skin .yuyu-slider-widget .swiper-slide > a { display: block; }
.yuyu-home-skin .yuyu-slider-widget .swiper-slide img {
  width: 100%; height: var(--yuyu-banner-height);
  min-height: 0; max-height: none; object-fit: cover; border-radius: 0;
}
.yuyu-home-skin .yuyu-slider-widget .slide-text {
  top: 14px; bottom: auto; left: 14px; right: auto;
  transform: none; max-width: calc(100% - 28px);
}
.yuyu-home-skin .yuyu-slider-widget .slide-title { font-size: 13px; }
.yuyu-home-skin .yuyu-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #100b1be8, #100b1b60 60%, transparent),
    linear-gradient(0deg, #100b1bea, transparent 62%);
}
.yuyu-home-skin .yuyu-hero .swiper-button-prev,
.yuyu-home-skin .yuyu-hero .swiper-button-next,
.yuyu-home-skin .yuyu-hero .swiper-pagination { z-index: 3; }
.yuyu-home-skin .yuyu-hero-copy {
  position: absolute; left: 5.5%; bottom: 12%; z-index: 2;
  width: min(480px, 77%); color: var(--yuyu-text); pointer-events: none;
}
.yuyu-home-skin .yuyu-eyebrow {
  display: inline-block; padding: 3px 9px; border: 1px solid #39ff9e80; border-radius: 4px;
  color: var(--yuyu-mint); font: 700 11px/1.4 Consolas, monospace; letter-spacing: .13em;
}
.yuyu-home-skin .yuyu-hero-title {
  margin: 8px 0 5px; color: #fff; font-size: clamp(26px, 4vw, 48px); font-weight: 800;
  text-shadow: 0 0 23px #cf67f7a3;
}
.yuyu-home-skin .yuyu-hero-copy > p { margin: 0 0 16px; color: #e2d6ef; }
.yuyu-home-skin .yuyu-search {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 6px 5px 13px; border: 1px solid #ffffff36; border-radius: 999px;
  background: #170e28d9; pointer-events: auto;
}
.yuyu-home-skin .yuyu-search:focus-within { border-color: var(--yuyu-mint); }
.yuyu-home-skin .yuyu-search input {
  flex: 1; min-width: 0; min-height: 33px; border: 0; outline: none;
  background: transparent; color: var(--yuyu-text);
}
.yuyu-home-skin .yuyu-search input::placeholder { color: var(--yuyu-muted); }
.yuyu-home-skin .yuyu-search button {
  border: 0; border-radius: 999px; padding: 7px 13px;
  color: #fff; background: var(--yuyu-accent); font-weight: 700;
}

.yuyu-home-skin .yuyu-ranking {
  display: flex; flex-direction: column; padding: 14px 15px;
  background: linear-gradient(145deg, #2c2046, #181128); --yuyu-text: #f3effc; --yuyu-muted: #baacca; --yuyu-border: #ffffff20;
}
.yuyu-home-skin .yuyu-ranking-head {
  display: flex; justify-content: space-between; padding: 2px 3px 10px;
  border-bottom: 1px dashed var(--yuyu-border);
  color: var(--yuyu-mint); font-weight: 700;
}
.yuyu-home-skin .yuyu-ranking-head > span:last-child {
  color: var(--yuyu-muted); font: 700 11px/1.8 Consolas, monospace; letter-spacing: .11em;
}
.yuyu-home-skin .yuyu-ranking-list {
  flex: 1; display: grid; grid-auto-rows: minmax(0, 1fr); gap: 4px;
  list-style: none; padding: 0; margin: 5px 0 0;
}
.yuyu-home-skin .yuyu-ranking-list > li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid #ffffff13;
}
.yuyu-home-skin .yuyu-ranking-list > li:last-child { border: 0; }
.yuyu-home-skin .yuyu-rank-no {
  display: grid; place-items: center; inline-size: 21px; block-size: 21px; color: #fff;
  border-radius: 8px; background: var(--yuyu-accent); font-size: 11px; font-weight: 700;
}
.yuyu-home-skin .yuyu-rank-link {
  display: grid; grid-template-columns: minmax(56px, 35%) minmax(0, 1fr);
  align-items: center; gap: 9px; color: var(--yuyu-text);
}
.yuyu-home-skin .yuyu-rank-link:hover { color: #f9a2d0; }
.yuyu-home-skin .yuyu-rank-thumb {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 7px; background: #493362;
}
.yuyu-home-skin .yuyu-rank-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yuyu-home-skin .yuyu-rank-copy strong {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; font-size: 13px; line-height: 1.45;
}
.yuyu-home-skin .yuyu-rank-copy small { display: block; margin-top: 4px; color: var(--yuyu-muted); }
.yuyu-home-skin .fluid-widget-wrap .swiper-bulletin {
  width: min(1170px, calc(100% - 30px)); margin: 0 auto 16px;
  padding: 5px 10px; background: var(--yuyu-panel); color: var(--yuyu-text);
  border: 1px solid var(--yuyu-border); border-radius: 13px;
}
.yuyu-home-skin .fluid-widget-wrap .widget-graphic-cover {
  width: min(1170px, calc(100% - 30px)); margin-inline: auto;
}
.yuyu-home-skin .fluid-widget-wrap .widget-graphic-cover .graphic {
  box-shadow: 0 0 0 1px #9949b05e; border-radius: 13px;
}
.yuyu-home-skin main .index-tab > .relative > ul {
  display: flex; gap: 17px; border-radius: 0; background: transparent;
  border-bottom: 1px solid var(--yuyu-border);
}
.yuyu-home-skin main .index-tab > .relative > ul > li {
  position: relative; flex: none; margin: 0;
  background: transparent; box-shadow: none; color: var(--yuyu-text);
}
.yuyu-home-skin main .index-tab > .relative > ul > li.active::after {
  content: ""; position: absolute; inset: auto 0 0; height: 2px;
  border-radius: 2px; background: var(--yuyu-accent); pointer-events: none;
}
@media (max-width: 899px) {
  .yuyu-home-skin .yuyu-hero-grid { grid-template-columns: minmax(0, 1fr); --yuyu-banner-height: 340px; }
  .yuyu-home-skin .yuyu-ranking { display: none; }
}
@media (max-width: 767px) {
  .yuyu-home-skin .yuyu-hero-grid {
    width: calc(100% - 20px); margin-top: 12px; --yuyu-banner-height: 240px;
  }
  .yuyu-home-skin .yuyu-hero { border-radius: 15px; }
  .yuyu-home-skin .yuyu-hero-copy { left: 6%; bottom: 10%; width: 86%; }
  .yuyu-home-skin .yuyu-hero-copy > p { margin-bottom: 9px; }
  .yuyu-home-skin .yuyu-search input { min-height: 28px; }
  .yuyu-home-skin main .index-tab > .relative > ul { gap: 9px; }

}
/* 让轮播封面贴边，把搜索和分类入口放在清晰的暗色区。 */
.yuyu-home-skin .yuyu-hero::before {
  content: ""; position: absolute; inset: 13px; z-index: 2; pointer-events: none;
  --yuyu-corner: linear-gradient(var(--yuyu-mint), var(--yuyu-mint));
  background: var(--yuyu-corner) left top / 22px 2px no-repeat,
    var(--yuyu-corner) left top / 2px 22px no-repeat,
    var(--yuyu-corner) right top / 22px 2px no-repeat,
    var(--yuyu-corner) right top / 2px 22px no-repeat,
    var(--yuyu-corner) left bottom / 22px 2px no-repeat,
    var(--yuyu-corner) left bottom / 2px 22px no-repeat,
    var(--yuyu-corner) right bottom / 22px 2px no-repeat,
    var(--yuyu-corner) right bottom / 2px 22px no-repeat;
}
.yuyu-home-skin .yuyu-hero-grid { margin-top: 12px; }
.yuyu-home-skin .yuyu-slider-widget,
.yuyu-home-skin .yuyu-slider-widget > .widget-container,
.yuyu-home-skin .yuyu-slider-widget .widget-content,
.yuyu-home-skin .yuyu-slider-widget .zib-slider {
  padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.yuyu-home-skin .yuyu-slider-widget .swiper-slide img {
  display: block; width: 100%; object-fit: cover;
}
.yuyu-home-skin .yuyu-slider-widget .slide-text {
  top: 16px; left: 44px; max-width: calc(100% - 88px);
}
.yuyu-home-skin .yuyu-slider-widget .slide-title {
  display: inline-block; max-width: 100%; padding: 4px 8px;
  border-radius: 6px; color: #f3effc; background: #140c22c9;
  font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.yuyu-home-skin .yuyu-hero::after {
  background: linear-gradient(90deg, #100b1beb, #100b1b85 46%, #100b1b10 80%),
    linear-gradient(0deg, #100b1bf2, transparent 58%);
}
.yuyu-home-skin .yuyu-hero-copy { left: 5.8%; bottom: 11%; width: min(510px, 83%); }
.yuyu-home-skin .yuyu-hero-title { margin-top: 12px; }
.yuyu-home-skin .yuyu-search { padding: 3px 5px 3px 17px; background: #181123e6; }
.yuyu-home-skin .yuyu-search button {
  display: grid; place-items: center; width: 42px; height: 42px;
  padding: 0; background: transparent; color: #ff78b9; cursor: pointer;
}
.yuyu-home-skin .yuyu-search button:hover { background: #f46db328; }
.yuyu-home-skin .yuyu-search button svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
.yuyu-home-skin .yuyu-quick-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; pointer-events: auto; }
.yuyu-home-skin .yuyu-quick-links a {
  padding: 4px 10px; border: 1px solid #ffffff36; border-radius: 999px;
  color: #f3effc; background: #1b1328d9; font-size: 12px; line-height: 1.4;
}
.yuyu-home-skin .yuyu-quick-links a:is(:hover, :focus-visible) { border-color: var(--yuyu-mint); color: var(--yuyu-mint); }
.yuyu-home-skin .yuyu-search button:focus-visible,
.yuyu-home-skin .yuyu-quick-links a:focus-visible { outline: 2px solid var(--yuyu-mint); outline-offset: 2px; }
.yuyu-home-skin .yuyu-rank-no { border-radius: 6px; box-shadow: 0 0 13px #de57cf60; }
@media (max-width: 767px) {
  .yuyu-home-skin .yuyu-hero::before { inset: 9px; }
  .yuyu-home-skin .yuyu-hero-copy { left: 6%; bottom: 12%; width: 88%; }
  .yuyu-home-skin .yuyu-hero-title { margin-top: 6px; }
  .yuyu-home-skin .yuyu-quick-links { display: none; }
  .yuyu-home-skin .yuyu-search button { width: 38px; height: 36px; }
  .yuyu-home-skin .yuyu-slider-widget .slide-text { left: 33px; max-width: calc(100% - 66px); }
}
/* 子比轮播有独立的图片限高和 autoHeight，统一到同一个实际高度。 */
.yuyu-home-skin .yuyu-hero .slide-widget {
  --pc-height: var(--yuyu-banner-height) !important;
  --m-height: var(--yuyu-banner-height) !important;
  --min-height: var(--yuyu-banner-height) !important;
  --max-height: var(--yuyu-banner-height) !important;
}
.yuyu-home-skin .yuyu-hero .slide-widget .swiper-wrapper {
  height: var(--yuyu-banner-height) !important;
}
.yuyu-home-skin .yuyu-hero .slide-widget .swiper-slide,
.yuyu-home-skin .yuyu-hero .slide-widget .swiper-slide > a {
  height: 100%;
}
.yuyu-home-skin .yuyu-hero .slide-widget .swiper-slide img:not(.img-icon):not(.avatar) {
  height: 100%; min-height: var(--yuyu-banner-height); max-height: var(--yuyu-banner-height);
  object-fit: cover;
}
.yuyu-home-skin .yuyu-hero,
.yuyu-home-skin .yuyu-ranking {
  border: 1px solid transparent;
  background: linear-gradient(#20162e, #160f22) padding-box,
    linear-gradient(130deg, #ff75b68c, #9b5fe351 42%, #e452ab7d 78%, #41e9b34d) border-box;
  box-shadow: inset 0 1px 0 #ffffff08, 0 15px 38px -25px #d24dd09c;
}
.yuyu-home-skin .yuyu-ranking::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 2px;
  background: linear-gradient(90deg, #ff589e, #ae5fff 70%, #39ff9e);
  border-radius: 2px; pointer-events: none;
}

/* 白天模式下提高多栏目标题和切换文字的对比度，不改栏目布局。 */
body.home.yuyu-site-skin:not(.dark-theme) main .title-theme {
  color: #30243d;
}
body.home.yuyu-site-skin:not(.dark-theme) main .title-theme small {
  color: #756582;
}
body.home.yuyu-site-skin:not(.dark-theme) main .index-tab > .relative > ul > li > a {
  color: #51435f !important;
}
body.home.yuyu-site-skin:not(.dark-theme) main .index-tab > .relative > ul > li.active > a {
  color: #61358d !important;
  font-weight: 700;
}

/* 宽度只在小工具外层计算一次，避免被 15px 内边距重复扣减。 */
.yuyu-home-skin .fluid-widget-wrap > :is(.yuyu-bulletin-widget, .yuyu-cover-widget) {
  width: min(1170px, calc(100% - 30px)); margin-inline: auto;
}
.yuyu-home-skin .fluid-widget-wrap > :is(.yuyu-bulletin-widget, .yuyu-cover-widget) > .widget-container {
  width: 100%; max-width: none; padding-inline: 0;
}
.yuyu-home-skin .yuyu-bulletin-widget .swiper-bulletin,
.yuyu-home-skin .yuyu-cover-widget .widget-graphic-cover {
  width: 100%; margin-inline: 0;
}
.yuyu-home-skin .yuyu-bulletin-widget .swiper-bulletin {
  display: flex; position: relative; align-items: center;
  min-height: 44px; padding: 4px 14px 4px 77px; margin-bottom: 16px;
  border: 1px solid var(--yuyu-border); border-radius: 14px;
  background: var(--yuyu-panel); color: var(--yuyu-text);
}
.yuyu-home-skin .swiper-bulletin::before {
  content: "NEWS"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  padding: 5px 9px; border-radius: 999px;
  color: #fff; background: linear-gradient(115deg, #f14594, #a44bfa);
  font: 800 10px/1 Consolas, monospace; letter-spacing: .08em;
}
.yuyu-home-skin .swiper-bulletin::after { display: none; }
.yuyu-home-skin .swiper-bulletin .new-swiper { flex: 1; min-width: 0; }
.yuyu-home-skin .swiper-bulletin .bulletin-icon { display: none; }
.yuyu-home-skin .swiper-bulletin .notice-slide > a {
  min-width: 0; color: var(--yuyu-text); font-size: 13px; font-weight: 600;
}
.yuyu-home-skin .swiper-bulletin .notice-slide > a > .ml6 { margin-left: 0; }
.yuyu-home-skin .swiper-bulletin .notice-slide > a:hover { color: var(--yuyu-link); }

/* 保留图文/视频封面卡片原本的列数、比例、内容和事件。 */
.yuyu-home-skin .yuyu-cover-widget .widget-graphic-cover .graphic {
  border-radius: 13px; outline: 1px solid #c775d65c; outline-offset: -1px;
  box-shadow: 0 7px 20px -15px #d64bba70 !important;
}
.yuyu-home-skin .yuyu-cover-widget .widget-graphic-cover a:is(:hover, :focus-visible) .graphic {
  outline-color: #ee8bd4bf;
  box-shadow: 0 0 0 1px #c25cd24a, 0 10px 24px -12px #bc4ddd94 !important;
}

@media (max-width: 767px) {
  .yuyu-home-skin .yuyu-hero-grid {
    --yuyu-banner-height: 240px; width: calc(100% - 20px); margin-top: 10px;
  }
  .yuyu-home-skin .yuyu-hero-copy {
    position: absolute; inset: auto 18px 23px; width: auto;
    margin: 0; min-height: 0; padding: 0; pointer-events: none;
  }
  .yuyu-home-skin .yuyu-hero::after { inset: 0; height: auto; }
  .yuyu-home-skin .yuyu-hero::before { inset: 10px; height: auto; }
  .yuyu-home-skin .yuyu-hero-title { font-size: 27px; line-height: 1.2; margin: 7px 0 5px; }
  .yuyu-home-skin .yuyu-eyebrow { font-size: 10px; }
  .yuyu-home-skin .yuyu-hero-copy > p { font-size: 12px; margin-bottom: 12px; }
  .yuyu-home-skin .yuyu-search { height: 44px; min-height: 0; padding: 0 4px 0 13px; }
  .yuyu-home-skin .yuyu-search input {
    height: 42px; min-height: 0; padding-block: 0; font-size: 16px;
  }
  .yuyu-home-skin .yuyu-search button { height: 36px; width: 36px; flex: none; }
  .yuyu-home-skin .yuyu-quick-links { display: none; }
  .yuyu-home-skin .fluid-widget-wrap > :is(.yuyu-bulletin-widget, .yuyu-cover-widget) {
    width: calc(100% - 20px);
  }
  .yuyu-home-skin .yuyu-bulletin-widget .swiper-bulletin {
    min-height: 40px; padding: 3px 10px 3px 64px; border-radius: 12px; margin-bottom: 12px;
  }
  .yuyu-home-skin .swiper-bulletin::before { left: 10px; font-size: 9px; padding: 4px 7px; }
  .yuyu-home-skin .swiper-bulletin .notice-slide > a { font-size: 12px; }
}
