/* 主页模板专用样式，拆分自“首页-建议效果预览”。 */
body.lingxyh-home-active{overflow:hidden;overscroll-behavior:none}
.lingxyh-template-home,.lingxyh-template-home *{box-sizing:border-box}
.lingxyh-template-home{position:fixed;inset:0;z-index:100000;width:100vw;height:100vh;height:100dvh;overflow:hidden;color:#fff;font-family:"Microsoft YaHei","PingFang SC",sans-serif;background:#26384d}
.lingxyh-template-home a{color:inherit;text-decoration:none}
.lingxyh-template-home button,.lingxyh-template-home input{font:inherit}
.lingxyh-template-home button{cursor:pointer}
.lingxyh-template-home .home{position:relative;width:100%;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;background:url("https://api.lingxyh.com/img/bg") center/cover}
.lingxyh-template-home .home:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.05),transparent 36%),linear-gradient(rgba(10,16,26,.18),rgba(10,16,26,.58));pointer-events:none}
.lingxyh-template-home .home:after{content:"";position:absolute;inset:0;z-index:1;background:rgba(6,10,18,.12);opacity:0;pointer-events:none;transition:opacity .38s ease}
.lingxyh-template-home .home.search-active:after{opacity:1}
.lingxyh-template-home .h-top,.lingxyh-template-home .h-main,.lingxyh-template-home .dock{position:relative;z-index:2}
.lingxyh-template-home .h-top{width:min(1280px,calc(100% - clamp(16px,3vw,28px)));height:clamp(48px,8.4vh,72px);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:18px}
.lingxyh-template-home .brand{display:inline-flex;align-items:center;gap:10px;font-size:clamp(16px,1.7vw,22px);font-weight:800;opacity:0;animation:lingxyh-home-top .55s ease .05s forwards}
.lingxyh-template-home .brand-logo{display:block;width:clamp(30px,3vw,38px);height:clamp(30px,3vw,38px);object-fit:contain;transition:transform .22s ease}
.lingxyh-template-home .brand:hover .brand-logo{transform:scale(1.05)}
.lingxyh-template-home .h-top>div{display:flex;align-items:center;gap:6px;opacity:0;animation:lingxyh-home-top .55s ease .12s forwards}
.lingxyh-template-home .btn{min-height:36px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.2);border-radius:9px;line-height:1;white-space:nowrap;background:rgba(17,25,37,.76);color:#fff;transition:background .18s,border-color .18s,color .18s,transform .18s}
.lingxyh-template-home .btn:hover,.lingxyh-template-home .btn.active{border-color:#d95860;background:#d95860;color:#fff;transform:translateY(-1px)}
.lingxyh-template-home .h-main{width:min(840px,calc(100% - clamp(16px,3vw,28px)));height:100%;min-height:0;margin:0 auto;padding:clamp(8px,2.2vh,24px) 0 clamp(58px,8vh,78px);display:flex;flex-direction:column;align-items:stretch;justify-content:center;text-align:center;transform:translateY(clamp(-34px,-4.2vh,-18px))}
.lingxyh-template-home .h-title{margin:0;font-size:clamp(34px,7.2vmin,62px);line-height:1.05;letter-spacing:clamp(4px,1vw,9px);text-shadow:0 6px 20px rgba(0,0,0,.53);opacity:0;animation:lingxyh-home-main .65s cubic-bezier(.2,.75,.25,1) .12s forwards}
.lingxyh-template-home .h-main>p:not(.quote){margin:clamp(5px,1.2vh,10px) 0 0;font-size:clamp(11px,1.4vw,14px);line-height:1.45;opacity:0;animation:lingxyh-home-main .6s ease .2s forwards}
.lingxyh-template-home .search{position:relative;z-index:3;width:100%;margin-top:clamp(10px,2.3vh,26px);padding:clamp(6px,1vh,10px);display:flex;gap:clamp(5px,.8vw,8px);border:1px solid rgba(255,255,255,.38);border-radius:clamp(12px,1.6vw,18px);background:rgba(255,255,255,.25);-webkit-backdrop-filter:blur(22px) saturate(120%);backdrop-filter:blur(22px) saturate(120%);box-shadow:0 10px 32px rgba(8,14,24,.08);opacity:0;animation:lingxyh-home-main .6s ease .28s forwards;transition:border-color .24s,background .24s,box-shadow .24s}
.lingxyh-template-home .search:after{content:"";position:absolute;inset:3px;border:1px solid transparent;border-radius:calc(clamp(12px,1.6vw,18px) - 3px);pointer-events:none;transition:border-color .24s}
.lingxyh-template-home .search:hover{background:rgba(255,255,255,.3);border-color:rgba(255,255,255,.5)}
.lingxyh-template-home .search:focus-within{border-color:rgba(217,88,96,.78);background:rgba(255,255,255,.34);box-shadow:0 0 0 3px rgba(217,88,96,.11),0 14px 38px rgba(8,14,24,.16)}
.lingxyh-template-home .search:focus-within:after{border-color:rgba(255,255,255,.18)}
.lingxyh-template-home .search input{flex:1;min-width:0;height:clamp(40px,6.2vh,54px);padding:0 clamp(11px,1.5vw,17px);border:0;border-radius:12px;outline:0;background:rgba(255,255,255,.92);color:#20242b;font-size:clamp(12px,1.4vw,14px);box-shadow:inset 0 0 0 1px rgba(33,42,54,.04);transition:background .24s,box-shadow .24s}
.lingxyh-template-home .search input::placeholder{color:#7b838e}
.lingxyh-template-home .search input:focus{background:#fff;box-shadow:inset 0 0 0 1px rgba(217,88,96,.16)}
.lingxyh-template-home .search button{width:clamp(68px,10vw,96px);min-width:0;border:0;border-radius:12px;background:#d95860;color:#fff;font-size:clamp(12px,1.4vw,14px);transform:scale(1);transform-origin:center;transition:background .34s,box-shadow .34s,transform .34s cubic-bezier(.2,.75,.25,1)}
.lingxyh-template-home .search button:hover{background:#e0646c;box-shadow:0 10px 22px rgba(120,29,36,.22);transform:scale(1.045)}
.lingxyh-template-home .search button:active{background:#ca4e57;box-shadow:0 3px 10px rgba(120,29,36,.14);transform:scale(1.015)}
.lingxyh-template-home .templates{width:100%;margin-top:clamp(10px,2vh,22px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(6px,1vw,10px)}
.lingxyh-template-home .templates a{position:relative;min-width:0;padding:clamp(10px,1.8vh,17px) clamp(6px,1vw,10px);overflow:hidden;border:1px solid rgba(255,255,255,.28);border-radius:clamp(10px,1.4vw,14px);background:rgba(255,255,255,.15);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 8px 24px rgba(8,14,24,.06);opacity:0;transform:translateY(16px) scale(.98);animation:lingxyh-home-card .58s cubic-bezier(.2,.8,.25,1) forwards;transition:transform .4s cubic-bezier(.2,.75,.25,1),background .4s,border-color .4s,box-shadow .4s;color: #fff;}
.lingxyh-template-home .templates a:nth-child(1){animation-delay:.36s}.lingxyh-template-home .templates a:nth-child(2){animation-delay:.43s}.lingxyh-template-home .templates a:nth-child(3){animation-delay:.5s}.lingxyh-template-home .templates a:nth-child(4){animation-delay:.57s}
.lingxyh-template-home .templates a:before{content:"";position:absolute;top:-55%;left:-70%;width:45%;height:210%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent);transform:rotate(18deg);transition:left .68s;pointer-events:none}
.lingxyh-template-home .templates a:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.44);background:rgba(217,88,96,.72);box-shadow:0 14px 30px rgba(8,14,24,.16)}
.lingxyh-template-home .templates a:hover:before{left:125%}.lingxyh-template-home .templates a:active{transform:translateY(1px);transition-duration:.08s}
.lingxyh-template-home .templates strong,.lingxyh-template-home .templates span{position:relative;z-index:1;display:block}.lingxyh-template-home .templates strong{font-size:clamp(12px,1.55vw,16px);line-height:1.3;white-space:nowrap}.lingxyh-template-home .templates span{margin-top:2px;font-size:clamp(9px,1vw,11px);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.8}
.lingxyh-template-home .quote{margin:clamp(8px,1.7vh,16px) 0 0;font:clamp(12px,1.8vw,18px)/1.35 KaiTi,STKaiti,serif;opacity:0;animation:lingxyh-home-main .65s ease .68s forwards}
.lingxyh-template-home .dock{position:absolute;left:50%;bottom:clamp(8px,1.8vh,18px);max-width:calc(100vw - 12px);padding:clamp(4px,.8vh,8px);display:flex;flex-wrap:nowrap;gap:clamp(1px,.55vw,7px);border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(10,16,26,.48);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);white-space:nowrap;transform:translateX(-50%);opacity:0;animation:lingxyh-home-dock .55s ease .78s forwards}
.lingxyh-template-home .dock button{flex:0 0 auto;min-width:0;height:clamp(29px,4.5vh,35px);padding:0 clamp(5px,1vw,13px);border:0;border-radius:999px;background:transparent;color:#fff;font-size:clamp(9px,1.15vw,12px);line-height:1;white-space:nowrap;transition:background .32s,transform .32s}.lingxyh-template-home .dock button:hover{background:rgba(255,255,255,.15);transform:translateY(-1px)}
.lingxyh-template-home .overlay{position:fixed;inset:0;z-index:2000;visibility:hidden;opacity:0;background:rgba(8,12,18,.58);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);transition:opacity .34s,visibility .34s}.lingxyh-template-home .overlay.show{visibility:visible;opacity:1}
.lingxyh-template-home .modal{position:fixed;z-index:2200;left:50%;top:50%;width:min(760px,calc(100vw - 28px));max-height:84vh;visibility:hidden;opacity:0;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(22px) saturate(145%);backdrop-filter:blur(22px) saturate(145%);box-shadow:0 20px 70px rgba(0,0,0,.35);transform:translate(-50%,-48%) scale(.98);transition:opacity .4s,transform .4s cubic-bezier(.2,.75,.25,1),visibility .4s}.lingxyh-template-home .modal.show{visibility:visible;opacity:1;transform:translate(-50%,-50%) scale(1)}
.lingxyh-template-home .modal-head{height:52px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.14);font-weight:700}.lingxyh-template-home .modal-body{max-height:calc(84vh - 52px);padding:16px;overflow:auto}.lingxyh-template-home .close{width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:#fff;font-size:20px;line-height:1;box-shadow:none}.lingxyh-template-home .close:hover{background:rgba(255,255,255,.12)}
.lingxyh-template-home .grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.lingxyh-template-home .card{padding:14px;border:1px solid rgba(255,255,255,.26);border-radius:13px;background:rgba(255,255,255,.14);color:#fff;transition:transform .2s,background .2s}.lingxyh-template-home .card:hover{background:rgba(255,255,255,.24);transform:translateY(-2px)}.lingxyh-template-home .card strong,.lingxyh-template-home .card span{display:block}.lingxyh-template-home .card span{margin-top:5px;font-size:11px;opacity:.72}
.lingxyh-template-home .stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.lingxyh-template-home .stat{padding:14px;text-align:center;border:1px solid rgba(255,255,255,.18);border-radius:11px;background:rgba(255,255,255,.12)}.lingxyh-template-home .stat b{display:block;font-size:24px;color:#ff7b84}.lingxyh-template-home .home-about-content{line-height:1.8}.lingxyh-template-home .home-about-content>:first-child{margin-top:0}.lingxyh-template-home .home-about-content>:last-child{margin-bottom:0}
.lingxyh-template-home .toast{position:fixed;z-index:5000;left:50%;bottom:28px;padding:10px 16px;border-radius:999px;background:rgba(15,22,32,.92);color:#fff;opacity:0;pointer-events:none;transform:translate(-50%,18px);transition:opacity .22s,transform .22s}.lingxyh-template-home .toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes lingxyh-home-top{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes lingxyh-home-main{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes lingxyh-home-card{0%{opacity:0;transform:translateY(16px) scale(.98)}72%{opacity:1;transform:translateY(-2px) scale(1)}100%{opacity:1;transform:translateY(0) scale(1)}}@keyframes lingxyh-home-dock{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-height:760px){.lingxyh-template-home .h-main{padding-top:6px;padding-bottom:54px;transform:translateY(-18px)}.lingxyh-template-home .h-title{font-size:clamp(32px,6.5vmin,52px)}.lingxyh-template-home .search{margin-top:9px}.lingxyh-template-home .templates{margin-top:8px}.lingxyh-template-home .quote{margin-top:7px}}
@media(max-height:650px){.lingxyh-template-home .h-top{height:46px}.lingxyh-template-home .h-main{transform:translateY(-10px)}.lingxyh-template-home .h-title{font-size:clamp(28px,6vmin,44px)}.lingxyh-template-home .search input{height:38px}.lingxyh-template-home .templates a{padding-top:7px;padding-bottom:7px}.lingxyh-template-home .quote{font-size:12px}}
@media(max-height:555px){.lingxyh-template-home .quote{display:none}.lingxyh-template-home .h-main{padding-bottom:48px;transform:translateY(-4px)}.lingxyh-template-home .h-main>p:not(.quote){margin-top:3px;font-size:10px}.lingxyh-template-home .search{margin-top:5px;padding:5px}.lingxyh-template-home .templates{margin-top:5px}}
@media(max-width:700px){.lingxyh-template-home .home{grid-template-rows:48px minmax(0,1fr)}.lingxyh-template-home .h-top{height:48px}.lingxyh-template-home .h-top>div{display:none}.lingxyh-template-home .h-title{font-size:clamp(30px,10vw,42px);letter-spacing:clamp(3px,1.5vw,6px)}.lingxyh-template-home .h-main{width:min(calc(100% - 16px),640px);padding:clamp(5px,1.2vh,12px) 0 clamp(50px,8vh,68px);transform:translateY(-10px)}.lingxyh-template-home .templates{grid-template-columns:repeat(2,minmax(0,1fr))}.lingxyh-template-home .grid4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.lingxyh-template-home .h-main{width:calc(100% - 12px)}.lingxyh-template-home .templates{gap:5px}.lingxyh-template-home .templates a{padding-left:4px;padding-right:4px}.lingxyh-template-home .dock{bottom:6px;gap:0;padding:4px 3px}.lingxyh-template-home .dock button{height:28px;padding:0 4px;font-size:9px}}
@media(max-width:340px){.lingxyh-template-home .h-title{font-size:28px}.lingxyh-template-home .templates strong{font-size:11px}.lingxyh-template-home .templates span{font-size:8px}.lingxyh-template-home .dock button{padding:0 3px;font-size:8px}}
@media(prefers-reduced-motion:reduce){.lingxyh-template-home *,.lingxyh-template-home :before,.lingxyh-template-home :after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
