/* 用户端公开首页：蓝白浅底、海报无边框、首图轮播满宽占首屏约一半高度。 */
.client-shell{min-height:100svh;background:linear-gradient(180deg,#eaf6ff 0,#f7fcff 320px,#ffffff 640px);color:#355d7c;padding-bottom:60px}
.home-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1240px;margin:0 auto;padding:18px 22px}
.home-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#194569}
.home-brand img{width:34px;height:34px}
.home-brand strong{font-size:19px;letter-spacing:1px}
.home-topbar-actions{display:flex;align-items:center;gap:12px}
.home-account{font-size:13px;color:#5d7b94;background:#ffffffb8;border-radius:9px;padding:8px 13px}
.home-login-btn,.home-logout-btn{border:0;border-radius:11px;min-height:42px;padding:10px 22px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit}
.home-login-btn{color:#fff;background:linear-gradient(100deg,#10a1ff,#0871ef);box-shadow:0 6px 18px #0787ef1c}
.home-logout-btn{background:#ffffffb8;color:#397399;border:1px solid #d6e8f4}
.home-logout-btn:hover{background:#fff;border-color:#9cccf0}
.home-hero-wrap{width:100%}
.home-hero{position:relative;width:100%;height:min(52vh,480px);min-height:260px;overflow:hidden;background:linear-gradient(120deg,#0d6ad0,#0a4f9e)}
.home-hero-slide{position:absolute;inset:0;width:100%;height:100%}
.home-hero-slide img{width:100%;height:100%;object-fit:cover;display:block}
.home-hero-shade{position:absolute;inset:0;background:linear-gradient(0deg,#06172bd9 0%,#06172b66 34%,#06172b00 66%)}
.home-hero-caption{position:absolute;left:0;right:0;bottom:0;max-width:1240px;margin:0 auto;padding:0 22px 30px;color:#fff}
.home-hero-caption strong{display:block;font-size:clamp(22px,3vw,34px);font-weight:650;letter-spacing:.5px;text-shadow:0 3px 16px #04162a99}
.home-hero-caption small{display:block;margin-top:9px;font-size:14px;color:#dceaf7;max-width:760px;line-height:1.7}
.home-hero-nav{position:absolute;top:0;bottom:0;width:56px;border:0;background:none;cursor:pointer;color:#fff;font-size:30px;line-height:1;opacity:.75}
.home-hero-nav:hover{opacity:1}
.home-hero-nav.prev{left:0}.home-hero-nav.next{right:0}
.home-hero-indicator{position:absolute;right:0;bottom:16px;left:0;max-width:1240px;margin:0 auto;padding:0 22px;display:flex;justify-content:flex-end}
.home-hero-dots{display:flex;gap:8px}
.home-hero-dots i{width:9px;height:9px;border-radius:50%;background:#ffffff8c;cursor:pointer;transition:width .2s}
.home-hero-dots i.on{background:#fff;width:22px;border-radius:5px}
.home-hero-empty{position:absolute;inset:0;display:grid;place-items:center;color:#dbeaf7;font-size:14px}
.home-wrap{max-width:1240px;margin:0 auto;padding:0 22px}
.home-categories{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:20px 0 4px;border-bottom:1px solid #e4eef7;margin-bottom:8px}
.home-cat-group{display:flex;align-items:center;gap:8px}
.home-cat-group>b{font-size:12px;color:#8aa4b8;font-weight:500}
.home-cat-term{border:1px solid #dbeaf5;background:#ffffffb8;color:#3d76a0;border-radius:20px;padding:6px 14px;font-size:13px;cursor:pointer;font-family:inherit}
.home-cat-term:hover{border-color:#9cccf0;background:#fff;color:#087ff5}
.home-row{margin-top:26px}
.home-row-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.home-row-head h2{margin:0;font-size:19px;color:#1d4566;font-weight:650;letter-spacing:.3px}
.home-refresh{border:0;background:none;color:#4d84a6;font-size:13px;cursor:pointer;font-family:inherit;padding:3px 6px;border-radius:8px}
.home-refresh:hover{color:#087ff5;background:#eaf6ff}
.home-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.home-card{display:flex;flex-direction:column;gap:8px;border:0;background:none;padding:0;text-align:left;cursor:pointer;color:inherit;font-family:inherit}
.home-card-poster{width:100%;aspect-ratio:2/3;border-radius:10px;overflow:hidden;background:#dceef8;display:grid;place-items:center;color:#9bbfd6;font-size:12px;position:relative;transition:transform .18s ease,box-shadow .18s ease}
.home-card:hover .home-card-poster{transform:translateY(-4px);box-shadow:0 12px 26px #0c66ad2e}
.home-card-poster img{width:100%;height:100%;object-fit:cover;display:block}
.home-card strong{font-size:14px;color:#274f70;font-weight:550;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-card small{font-size:12px;color:#8aa4b8;line-height:1.4;overflow-wrap:anywhere}
.home-badge{position:absolute;left:7px;top:7px;background:#e7f4ff;color:#3d7ba6;font-size:11px;border-radius:6px;padding:2px 7px}
.home-blank-hero{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;max-width:1240px;margin:0 auto;padding:24px 22px}
.home-blank-hero-card{aspect-ratio:16/9;border-radius:12px;border:1px dashed #bcd9ec;background:#ffffff4d}
.home-card-poster.blank{border:1px dashed #cfe3f2;background:#ffffff4d}
.home-card.blank{cursor:default}
.home-card.blank .home-card-poster:hover{transform:none;box-shadow:none}
.home-empty{padding:48px 22px;text-align:center;color:#7f9cb1;font-size:14px;line-height:2;background:#ffffff70;border-radius:16px;margin-top:26px}
.home-status-line{margin:26px 0 0;font-size:13px;color:#66879f;min-height:20px}
.home-feedback{margin:4px 0 0;font-size:13px;color:#66879f;min-height:20px}
.home-feedback.error{color:#b4504c}
.home-back{flex-shrink:0;background:#ffffff9e;border:1px solid #d6e8f4;border-radius:10px;padding:8px 16px;color:#397399;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit}
.home-back:hover{background:#fff;border-color:#9cccf0;color:#087cda}
@media(max-width:1100px){.home-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.home-blank-hero{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){.home-hero{height:min(42vh,360px)}.home-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.home-hero-nav{display:none}.home-hero-caption{padding-bottom:22px}.home-blank-hero{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.home-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.home-cat-term{padding:5px 11px;font-size:12px}.home-blank-hero{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* All public catalogue views, including the embedded admin preview, share this sheet. */
.home-hero-open{border:0;background:none;text-align:left;font-family:inherit;cursor:pointer;z-index:1;right:90px}
.home-hero-nav,.home-hero-indicator{z-index:2}.home-hero{touch-action:pan-y}.home-hero-indicator{pointer-events:none}.home-hero-dots{pointer-events:auto}
.home-hero-dots button{position:relative;width:26px;height:30px;border:0;background:none;padding:8px;cursor:pointer}
.home-hero-dots button::before{content:'';position:absolute;inset:10px 8px;border-radius:6px;background:#ffffff8c}
.home-hero-dots button.on::before{inset-inline:2px;background:#fff}
.home-hero-dots button:focus-visible{outline:2px solid white;border-radius:8px}
.home-search{display:flex;align-items:center;gap:12px;max-width:560px;margin:20px 0 0}.home-search input{min-width:0;flex:1;border:1px solid #d1e5f4;border-radius:12px;padding:11px 14px;background:#ffffffb8;color:#315d7d;font:inherit;font-size:14px}.home-search button{white-space:nowrap}
.home-cat-term[aria-pressed=true]{background:#e1f1ff;color:#0875e6;border-color:#98caef}
.home-catalogue{margin-top:24px}.home-pager{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:24px;color:#63849a;font-size:13px}
.home-detail-dialog{width:min(820px,calc(100vw - 36px));box-sizing:border-box;max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #cfe4f4;border-radius:20px;background:#f6fbff;color:#355d7c;padding:26px;box-shadow:0 20px 60px #315d7726}
.home-detail-dialog::backdrop{background:#264d6845}.home-detail-dialog>.home-back{display:block;margin:0 0 18px auto}
.home-detail-head{display:flex;gap:22px;align-items:center}.home-detail-head h2{font-size:26px;color:#214c6c;margin:0 0 12px}.home-detail-head p{font-size:14px;line-height:1.7;color:#658399;margin:6px 0}
.home-detail-cover{width:126px;flex:0 0 126px;aspect-ratio:2/3;overflow:hidden;border-radius:10px;background:#e1eff7}.home-detail-cover img{width:100%;height:100%;object-fit:cover}.home-detail-text{margin:24px 0;line-height:1.9;font-size:14px}.home-detail-text h3{font-size:15px;color:#315d7d}.home-detail-text p{white-space:pre-wrap;overflow-wrap:anywhere}
.home-attribution{display:block;color:#7c97aa;margin-top:16px;font-size:12px}.home-detail-dialog button:disabled{opacity:.55;cursor:default}.home-image-error{font-size:12px;color:#8ca7b9;padding:16px;text-align:center}
body[data-preview="1"] .home-topbar-actions{display:none}body[data-preview="1"] .client-shell{min-height:0}
body[data-preview="1"] .home-card,body[data-preview="1"] .home-hero-open,body[data-preview="1"] .home-brand{cursor:default}
body[data-preview="1"] .home-search button:disabled{opacity:1;cursor:default}
@media(max-width:720px){.home-hero-nav{display:block;width:36px;font-size:25px}.home-hero-caption{padding-left:42px;padding-right:32px}.home-hero-open{right:34px}.home-hero-indicator{bottom:2px}.home-detail-head{gap:16px}.home-detail-cover{width:88px;flex-basis:88px}.home-detail-head h2{font-size:22px}.home-detail-dialog{padding:20px}}

.home-hero-nav[hidden],.home-catalogue[hidden],#home-categories[hidden],.home-hero-wrap[hidden],#home-rows[hidden]{display:none!important}
