@import url("/assets/huangguo-v4.css?v=20261118-3");

/* 顶部导航：黄色底标只跟随当前页面 */
.site-header .header-nav a:first-child:after{transform:scaleX(0);transform-origin:center}
.site-header .header-nav a.on{color:var(--hg-text)}
.site-header .header-nav a.on:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:var(--hg-yellow);transform:scaleX(1)}

/* 首页保持内容推荐结构，主视觉为轮播 */
.hg-hero-grid{grid-template-columns:minmax(300px,.78fr) minmax(560px,1.22fr);min-height:470px}
.hg-hero-carousel{position:relative;width:100%;aspect-ratio:16/9;min-height:0;overflow:hidden;border:1px solid rgba(242,236,215,.16);border-radius:10px;background:#292922;box-shadow:var(--hg-shadow)}
.hg-carousel-slide{position:absolute;inset:0;isolation:isolate;display:block;overflow:hidden;background-color:#292922;background-size:cover;background-position:center 40%;opacity:0;pointer-events:none;transition:opacity .45s ease}
.hg-carousel-slide.on{opacity:1;pointer-events:auto}
.hg-carousel-slide:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(10,10,8,.18),transparent 58%)}
.hg-carousel-slide .hg-hero-card-meta{z-index:2;right:132px;bottom:25px}
.hg-carousel-slide .hg-hero-card-play{z-index:3;right:23px;bottom:25px}
.hg-carousel-slide .hg-hero-bottom-mask{z-index:1;height:24px;background:linear-gradient(180deg,transparent 0,#10100e 70%,#10100e 100%)}
.hg-carousel-dots{position:absolute;z-index:4;right:24px;top:18px;display:flex;align-items:center;gap:7px}
.hg-carousel-dots button{width:19px;height:4px;margin:0;padding:0;border:0;border-radius:8px;background:rgba(255,255,255,.38);cursor:pointer;transition:width .2s ease,background .2s ease}
.hg-carousel-dots button.on{width:31px;background:var(--hg-yellow)}
.hg-carousel-dots button:hover{background:#fff3c2}

/* 内容库：四级分类独立页 */
.hg-library-hero{border-bottom:1px solid var(--hg-line);background:linear-gradient(112deg,#161611,#12120f)}
.hg-library-hero .wrap{padding:51px 0 42px}
.hg-library-hero p{margin:0;color:var(--hg-yellow);font-size:12px;font-weight:650}
.hg-library-hero h1{margin:8px 0 24px;color:var(--hg-text);font-size:34px;font-weight:650;letter-spacing:-.7px}
.hg-library-search{display:flex;align-items:center;max-width:680px;height:48px;border:1px solid var(--hg-line-strong);border-radius:7px;background:#191916;overflow:hidden}
.hg-library-search:focus-within{border-color:rgba(237,190,66,.7);box-shadow:0 0 0 3px rgba(237,190,66,.06)}
.hg-library-search input{min-width:0;flex:1;height:100%;border:0;outline:0;background:transparent;color:var(--hg-text);padding:0 15px;font-size:13px}
.hg-library-search input::placeholder{color:#7b7970}
.hg-library-search button{align-self:stretch;min-width:92px;border:0;background:var(--hg-yellow);color:#251e0b;font-size:13px;font-weight:700;cursor:pointer}
.hg-library-search button:hover{background:var(--hg-yellow-bright)}
.hg-library{padding:43px 0 82px}
.hg-library .hg-taxonomy{margin-bottom:42px}
.hg-library-result{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}
.hg-library-result p{margin:0;color:var(--hg-yellow);font-size:12px;font-weight:650}
.hg-library-result h2{margin:7px 0 0;color:var(--hg-text);font-size:27px;font-weight:650}
.hg-library-result>span{border:1px solid var(--hg-line);border-radius:4px;color:#aaa79d;padding:7px 10px;font-size:11px}
.hg-library-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:17px}
.hg-library-grid .cover{width:100%;height:auto;aspect-ratio:3/4;background-size:cover;background-position:center}
.hg-library-grid .card:nth-child(n){display:block}

@media(max-width:1080px){.hg-library-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.hg-hero-grid{grid-template-columns:.82fr 1.18fr}.hg-hero-carousel{aspect-ratio:16/9}}
@media(max-width:780px){.hg-hero-grid{display:block;padding:42px 0 46px}.hg-hero-carousel{margin-top:32px;aspect-ratio:16/9}.hg-carousel-slide .hg-hero-card-meta{left:18px;right:100px;bottom:18px}.hg-carousel-slide .hg-hero-card-meta h2{font-size:23px}.hg-carousel-slide .hg-hero-card-play{right:17px;bottom:18px}.hg-library-hero .wrap{padding:39px 0 35px}.hg-library-hero h1{font-size:29px}.hg-library-search{max-width:none}.hg-library{padding:34px 0 64px}.hg-library-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}}
@media(max-width:480px){.hg-hero-carousel{margin-top:28px;aspect-ratio:4/3}.hg-carousel-slide{background-position:center top}.hg-carousel-slide .hg-hero-card-meta{right:18px;bottom:17px}.hg-carousel-slide .hg-hero-card-play{display:none}.hg-carousel-dots{right:16px;top:13px}.hg-carousel-slide .hg-hero-bottom-mask{height:20px}.hg-library-hero h1{font-size:25px}.hg-library-search{height:44px}.hg-library-search button{min-width:75px}.hg-library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hg-library-result h2{font-size:23px}.hg-library-result>span{display:none}}
