/* 一体式封面：轮播铺满头部，标题、数据与搜索叠在同一张画面上。 */
html[data-ui-theme="midnight"] header.top:has(.home-carousel){isolation:isolate;min-height:350px;padding:38px 0 30px;margin-bottom:22px;gap:24px 36px;--carousel-gutter:54px}
html[data-ui-theme="midnight"] .home-carousel{position:absolute;inset:0 calc(-1 * var(--carousel-gutter));z-index:-1;min-width:0}
.home-carousel-stage,.home-carousel-slide,.home-carousel-content{position:absolute;inset:0;display:block;width:100%;height:100%}
.home-carousel-stage{bottom:92px;height:auto;overflow:hidden;background:var(--bg)}
.home-carousel-content{color:var(--ink)}
.home-carousel-content img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 48%}
.home-carousel-content:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#101117fa 0%,#101117eb 27%,#10111755 62%,#10111724 100%),linear-gradient(0deg,#101117ed,transparent 45%)}
html[data-theme="light"] .home-carousel-content:after{background:linear-gradient(90deg,#f6f5fbfa 0%,#f6f5fbeb 27%,#f6f5fb50 65%,#f6f5fb14 100%),linear-gradient(0deg,#f6f5fbf5,transparent 55%)}
.home-carousel-content:focus-visible{outline:3px solid var(--accent2);outline-offset:-5px}
.home-carousel-footer{position:absolute;z-index:2;bottom:110px;left:var(--carousel-gutter);right:var(--carousel-gutter);display:flex;align-items:center;justify-content:flex-end;gap:18px}
.home-carousel-labels{min-width:0;max-width:480px;margin-left:auto;text-align:right}
.home-carousel-caption{display:inline-block;vertical-align:middle;max-width:100%;padding:9px 14px;border:1px solid #ffffff52;border-radius:24px;background:#17132587;backdrop-filter:blur(12px);color:#fff;font-size:13px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}
html[data-theme="light"] .home-carousel-caption{background:#ffffffce;border-color:#ffffffb0;color:#3f3155}
a.home-carousel-caption:hover{background:#704cc4dd;color:#fff;border-color:#a68ae1}
html[data-ui-theme="midnight"] header.top:has(.home-carousel)>.midnight-heading,
html[data-ui-theme="midnight"] header.top:has(.home-carousel)>.counters,
html[data-ui-theme="midnight"] header.top:has(.home-carousel)>.midnight-search{position:relative;z-index:1}
html.has-home-carousel[data-ui-theme="midnight"] body:before{display:none}
.home-carousel-controls{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;gap:6px;max-width:100%}
.home-carousel-controls button{display:flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;border:1px solid #ffffff38;border-radius:50%;background:#17132570;color:#fff;backdrop-filter:blur(12px);font:inherit;font-size:19px;cursor:pointer;padding:2px}
.home-carousel-controls>button{flex-shrink:0}.home-carousel-controls>button:last-child{font-size:11px}.home-carousel-controls button:hover{background:#704cc4dd}
html[data-theme="light"] .home-carousel-controls button{background:#ffffffc7;border-color:#d6cee4;color:#53416e}
html[data-theme="light"] .home-carousel-controls button:hover{background:#e7dcf8}
.home-carousel-dots{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0;min-width:0}
.home-carousel-dots button{min-width:24px;min-height:34px;border:0;background:transparent!important;backdrop-filter:none;padding:2px}
.home-carousel-dots button:after{content:"";width:6px;height:6px;border-radius:6px;background:#e1d6f9a6}.home-carousel-dots button[aria-current="true"]:after{width:17px;background:#bca2ff}
html[data-theme="light"] .home-carousel-dots button:after{background:#7c699f80}html[data-theme="light"] .home-carousel-dots button[aria-current="true"]:after{background:#7750d6}
@media(max-width:1190px){html[data-ui-theme="midnight"] header.top:has(.home-carousel){--carousel-gutter:30px}}
@media(max-width:900px){html[data-ui-theme="midnight"] header.top:has(.home-carousel){min-height:390px}html[data-ui-theme="midnight"] header.top:has(.home-carousel)>.counters{margin-bottom:70px}.home-carousel-footer{bottom:105px}.home-carousel-caption{font-size:12px}}
@media(max-width:600px){
  html[data-ui-theme="midnight"] header.top:has(.home-carousel){--carousel-gutter:18px;min-height:0;padding:28px 0 24px;gap:22px;margin-bottom:20px}
  html[data-ui-theme="midnight"] header.top:has(.home-carousel)>.midnight-heading{padding-top:0;padding-bottom:0}
  html[data-ui-theme="midnight"] header.top:has(.home-carousel.home-carousel-many)>.counters{margin-bottom:186px}
  .home-carousel-stage{bottom:80px}
  .home-carousel-content img{object-position:68% center}
  .home-carousel-content:after{background:linear-gradient(90deg,#101117ee,#10111766),linear-gradient(0deg,#101117fa,transparent 70%)}
  html[data-theme="light"] .home-carousel-content:after{background:linear-gradient(90deg,#f6f5fbe8,#f6f5fb65),linear-gradient(0deg,#f6f5fbfa,transparent 70%)}
  html[data-ui-theme="midnight"] header.top:has(.home-carousel)>.counters{margin-bottom:116px}
  .home-carousel-footer{bottom:90px;gap:8px;flex-wrap:wrap}.home-carousel-labels{width:100%;max-width:none;text-align:center;margin:0}.home-carousel-caption{font-size:11px;padding:7px 12px}
  .home-carousel-controls{gap:4px;max-width:100%;flex-shrink:1}
  .home-carousel-controls button{min-width:40px;min-height:40px}.home-carousel-dots{max-width:calc(100% - 132px)}.home-carousel-dots button{min-width:24px;min-height:40px}
}
