/* Scope homepage changes; retain the theme's background and visitor effect preference. */
body.qingsi-polished{--qs-panel:rgba(255,255,255,.9);--qs-ink:#303440;--qs-muted:#777b88;--qs-line:rgba(80,80,100,.12)}
body.qingsi-polished.dark{--qs-panel:rgba(30,32,40,.9);--qs-ink:#ececf0;--qs-muted:#a1a3ae;--qs-line:rgba(255,255,255,.1)}
body.qingsi-polished .site-content{max-width:1120px;padding:0 28px}
body.qingsi-polished .focusinfo .header-tou img{width:110px;height:110px;border:3px solid rgba(255,255,255,.7);box-shadow:0 12px 45px rgba(0,0,0,.2)}
body.qingsi-polished .focusinfo .header-info{max-width:580px;width:calc(100% - 64px);white-space:normal;line-height:1.9;border-radius:24px;padding:20px 26px;box-shadow:0 16px 55px rgba(0,0,0,.08)}
body.qingsi-polished .focusinfo .header-info p{white-space:normal;letter-spacing:.07em}
.qs-home-intro{text-align:center;color:var(--qs-ink);padding:68px 0 38px;clear:both}
body.qingsi-polished #main>.qs-home-intro{grid-column:1/-1;order:-2;padding:48px 0 16px}
body.qingsi-polished #main:has(>.qs-home-intro)>.main-title{display:none}
.qs-eyebrow{display:block;letter-spacing:.24em;font-size:12px;color:var(--qs-muted)}
.qs-home-intro h2{margin:16px 0 12px;font-size:clamp(26px,4vw,38px);font-family:Georgia,'Noto Serif SC','Songti SC',serif;font-weight:500;letter-spacing:.1em}
.qs-home-intro p{color:var(--qs-muted);font-size:14px;line-height:1.9;margin:0}
.qs-home-intro nav{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:25px}
.qs-home-intro nav a{border:1px solid var(--qs-line);background:var(--qs-panel);color:var(--qs-ink);padding:8px 17px;border-radius:100px;font-size:12px;text-decoration:none;transition:transform .2s,border-color .2s}
.qs-home-intro nav a:hover{transform:translateY(-2px);border-color:var(--theme-skin-matching,#b28a9f)}
body.qingsi-polished #main.site-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;align-items:start}
body.qingsi-polished #main.site-main.qs-single-post{grid-template-columns:minmax(0,760px);justify-content:center}
body.qingsi-polished #main>.main-title,body.qingsi-polished #main>.archive-header,body.qingsi-polished #main>.shuoshuo-item{grid-column:1/-1}
body.qingsi-polished #main>.main-title{font-size:17px;letter-spacing:.12em;margin:10px 0 0;padding-bottom:14px;border-bottom:1px solid var(--qs-line);color:var(--qs-ink)}
body.qingsi-polished .post-list-thumb{float:none;width:100%;height:auto;min-height:350px;margin:0;display:flex;flex-direction:column;overflow:hidden;border-radius:22px;background:var(--qs-panel);border:1px solid var(--qs-line);box-shadow:0 8px 32px rgba(0,0,0,.045);opacity:1;content-visibility:visible;transition:transform .25s,box-shadow .25s}
body.qingsi-polished .post-list-thumb:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(0,0,0,.11)}
body.qingsi-polished .post-list-thumb .post-thumb{position:relative;float:none;height:auto;width:100%;display:block;flex:none;transition:none}
body.qingsi-polished .post-list-thumb .post-thumb a{height:auto;aspect-ratio:16/10;display:block}
body.qingsi-polished .post-list-thumb .post-thumb a img,body.qingsi-polished .post-list-thumb .post-thumb a video{display:block;height:100%;object-fit:cover;transition:transform .5s}
body.qingsi-polished .post-list-thumb .post-title{position:static;max-width:none;max-height:none;width:auto;height:auto;margin:0;padding:22px 24px 8px;background:transparent;border:0;box-shadow:none;backdrop-filter:none;display:block}
body.qingsi-polished .post-list-thumb .post-title h3{color:var(--qs-ink);font-size:19px;line-height:1.6;letter-spacing:.03em;white-space:normal}
body.qingsi-polished .post-list-thumb .post-excerpt{position:static;width:auto;height:auto;max-height:none;margin:0;padding:0 24px 24px;color:var(--qs-muted);font-size:13px;line-height:1.9;display:block;background:none;box-shadow:none;opacity:1}
body.qingsi-polished .post-list-thumb .post-excerpt p{margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.qingsi-polished .post-list-thumb .post-excerpt .ai-excerpt-tip{display:none}
body.qingsi-polished .post-list-thumb .post-date,body.qingsi-polished .post-list-thumb .post-meta{background:rgba(20,24,34,.45);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(8px);border-radius:9px;font-size:11px;color:#fff}
body.qingsi-polished .post-list-thumb .post-meta{max-width:60%}
/* Failed covers become readable text cards instead of a large empty image box. */
body.qingsi-polished .post-list-thumb.qs-cover-missing{min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:0;padding:24px 28px;border-top:3px solid var(--theme-skin-matching,#b28a9f)}
body.qingsi-polished .qs-cover-missing .post-thumb{display:none}
body.qingsi-polished .qs-cover-missing .post-date,body.qingsi-polished .qs-cover-missing .post-meta{position:static;max-width:none;width:auto;float:none;margin:0 0 16px;padding:0;background:none;border:0;backdrop-filter:none;color:var(--qs-muted);box-shadow:none}
body.qingsi-polished .qs-cover-missing .post-meta{text-align:right}
body.qingsi-polished .qs-cover-missing .post-title,body.qingsi-polished .qs-cover-missing .post-excerpt{grid-column:1/-1;padding:0;width:auto}
body.qingsi-polished .qs-cover-missing .post-title{margin:0 0 12px}
body.qingsi-polished .qs-cover-missing .post-title h3{font-size:23px}
body.qingsi-polished .post-list-thumb .post-excerpt p{max-height:none}
body.qingsi-polished #pagination,body.qingsi-polished .traditional-pagination{grid-column:1/-1}
body.qingsi-polished .traditional-pagination,body.qingsi-polished #pagination{margin:42px auto}
/* Music occupies the opposite corner from the existing simple-mode control. */
#qs-bgm{position:fixed;left:22px;bottom:22px;z-index:99990;width:330px;max-width:calc(100vw - 44px);color:#ececf2;background:rgba(28,30,39,.94);border:1px solid rgba(255,255,255,.16);border-radius:18px;box-shadow:0 12px 40px rgba(0,0,0,.16);backdrop-filter:blur(16px);font:13px/1.5 system-ui,sans-serif;padding:12px;box-sizing:border-box}
#qs-bgm *,#qs-bgm *::before,#qs-bgm *::after{box-sizing:border-box}
#qs-bgm [hidden]{display:none!important}
#qs-bgm button{appearance:none;border:0;background:transparent;color:inherit;cursor:pointer;padding:0;min-height:36px;min-width:32px;border-radius:10px;font:inherit}
#qs-bgm button:hover{background:rgba(255,255,255,.1)}
#qs-bgm button:focus-visible,#qs-bgm input:focus-visible{outline:2px solid #efc4dd;outline-offset:3px}
.qs-bgm-bar{display:flex;align-items:center;gap:5px}
#qs-bgm .qs-bgm-play{background:#e5c4d8;color:#332737;border-radius:50%;width:40px;height:40px;flex:0 0 40px;margin-right:5px}
.qs-bgm-song{min-width:0;flex:1}.qs-bgm-title,.qs-bgm-artist{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qs-bgm-title{font-size:13px;font-weight:600}.qs-bgm-artist{font-size:10px;color:#b5b3c0;margin-top:3px}
#qs-bgm-panel{padding-top:15px;border-top:1px solid rgba(255,255,255,.1);margin-top:12px}
.qs-bgm-time{color:#bab7c6;font-size:10px;display:block}.qs-bgm-seek{width:100%;margin:8px 0 12px}
#qs-bgm input[type=range]{accent-color:#e5c4d8;cursor:pointer;height:14px}
.qs-bgm-volume{display:flex;align-items:center;gap:12px;color:#bab7c6;font-size:11px}.qs-bgm-volume-input{flex:1;min-width:0}
.qs-bgm-list{max-height:210px;overflow:auto;margin-top:12px}
#qs-bgm .qs-bgm-list button{display:block;text-align:left;width:100%;padding:8px 10px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#qs-bgm .qs-bgm-list button[aria-pressed=true]{background:rgba(229,196,216,.14);color:#f0cce2}
.qs-bgm-message{font-size:11px;color:#e5c4d8;display:block;margin-top:6px}.qs-bgm-message:empty{display:none}
#qs-home-button{position:fixed;right:20px;bottom:180px;z-index:99990;display:flex;align-items:center;gap:8px;padding:10px 16px;min-height:44px;border:1px solid rgba(255,255,255,.2);border-radius:24px;background:rgba(35,35,35,.92);color:#fff;text-decoration:none;font:13px/1.5 system-ui,sans-serif;box-shadow:0 5px 20px rgba(0,0,0,.15);box-sizing:border-box}
#qs-home-button span:first-child{font-size:22px;line-height:1}
#qs-home-button:hover{background:rgba(75,75,75,.96);color:#fff}
#qs-support-link{position:fixed;right:20px;bottom:calc(238px + env(safe-area-inset-bottom));z-index:99990;display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid rgba(166,187,235,.3);border-radius:24px;background:linear-gradient(135deg,rgba(31,38,53,.95),rgba(38,31,49,.95));color:#e4ecff;text-decoration:none;font:13px/1.5 system-ui,sans-serif;box-sizing:border-box}
#qs-support-link:hover{background:#34405a;color:#fff}#qs-support-link:focus-visible{outline:2px solid #bfd0f3;outline-offset:3px}
#qs-home-button:focus-visible{outline:2px solid #efc4dd;outline-offset:3px}
body.login #qs-home-button{bottom:calc(24px + env(safe-area-inset-bottom))}
@media(max-width:760px){#qs-home-button{right:20px;bottom:calc(180px + env(safe-area-inset-bottom));padding:10px 12px}}
@media(max-width:760px){body.qingsi-polished .site-content{padding:0 18px}body.qingsi-polished #main.site-main{grid-template-columns:minmax(0,1fr);gap:22px}.qs-home-intro{padding-top:45px}.qs-home-intro nav{gap:8px}.qs-home-intro nav a{padding:7px 13px}body.qingsi-polished .focusinfo .header-info{max-width:calc(100vw - 65px);padding:16px 18px}body.qingsi-polished .post-list-thumb{min-height:0}#qs-bgm{left:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:calc(100vw - 90px);width:300px;padding:9px;border-radius:15px}#qs-bgm button{min-width:28px}.qs-bgm-artist{font-size:10px}}
@media(prefers-reduced-motion:reduce){body.qingsi-polished .post-list-thumb,body.qingsi-polished .post-list-thumb .post-thumb a img,.qs-home-intro nav a{transition:none}body.qingsi-polished .post-list-thumb:hover,.qs-home-intro nav a:hover{transform:none}}

/* Blue and lilac accents, scoped to the studio and existing corner controls. */
body.qingsi-polished .post-list-thumb{position:relative;border-color:rgba(131,160,214,.2);transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease}
body.qingsi-polished.dark .post-list-thumb{background:linear-gradient(145deg,rgba(34,38,50,.94),rgba(26,28,37,.94));border-color:rgba(154,180,232,.18)}
body.qingsi-polished .post-list-thumb::before{content:"";position:absolute;top:0;left:20%;right:20%;height:1px;background:linear-gradient(90deg,transparent,rgba(177,191,247,.7),transparent);pointer-events:none;z-index:2}
body.qingsi-polished .post-list-thumb .post-thumb a img{transform:scale(1);transition:transform .55s ease}
body.qingsi-polished .post-list-thumb:focus-within{border-color:rgba(128,162,223,.65);box-shadow:0 12px 34px rgba(83,112,172,.16)}
body.qingsi-polished.dark .post-list-thumb .post-title h3{color:#edf1ff}
body.qingsi-polished .qs-home-intro nav a[aria-current="page"]{border-color:rgba(137,166,221,.5);box-shadow:0 3px 15px rgba(97,126,186,.1)}
#qs-bgm{background:linear-gradient(135deg,rgba(30,36,51,.96),rgba(35,29,47,.96));border-color:rgba(163,184,239,.28);box-shadow:0 10px 35px rgba(0,0,0,.22),inset 0 1px 0 rgba(218,226,255,.06)}
#qs-bgm .qs-bgm-play{background:linear-gradient(135deg,#bfdcff,#cfbdf0);color:#27304c;box-shadow:0 3px 14px rgba(152,174,240,.2);transition:box-shadow .2s ease}
#qs-bgm input[type=range]{accent-color:#bfd0f3}
#qs-bgm .qs-bgm-list button[aria-pressed=true]{background:rgba(159,183,243,.14);color:#d6e1ff}
.qs-bgm-message{color:#c4d6f5}
.qs-bgm-details{display:flex;align-items:center;gap:8px;min-width:0;margin-top:3px}
.qs-bgm-details .qs-bgm-artist{min-width:0;flex:0 1 auto;margin-top:0}
.qs-bgm-wave{display:flex;align-items:center;justify-content:space-between;width:19px;height:14px;flex:0 0 19px;color:#bbcdf5}
.qs-bgm-wave i{display:block;width:3px;height:12px;border-radius:2px;background:currentColor;transform:scaleY(.25);animation:qs-wave .95s ease-in-out infinite;animation-play-state:paused}
.qs-bgm-wave i:nth-child(2){animation-delay:-.45s}.qs-bgm-wave i:nth-child(3){animation-delay:-.2s}.qs-bgm-wave i:nth-child(4){animation-delay:-.65s}
#qs-bgm[data-playing="true"] .qs-bgm-wave i{animation-play-state:running}
@keyframes qs-wave{0%,100%{transform:scaleY(.25)}50%{transform:scaleY(1)}}
body #qs-home-button,body #simple-mode-toggle,body #changskin,body #moblieGoTop{background:linear-gradient(135deg,rgba(31,38,53,.95),rgba(38,31,49,.95));color:#e4ecff;border:1px solid rgba(166,187,235,.28);border-radius:24px;box-shadow:0 5px 22px rgba(0,0,0,.18),inset 0 1px 0 rgba(218,226,255,.06);backdrop-filter:blur(12px);transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}
body #simple-mode-toggle{min-height:44px;box-sizing:border-box}
body #qs-home-button:focus-visible,body #simple-mode-toggle:focus-visible,body #changskin:focus-visible,body #moblieGoTop:focus-visible{outline:2px solid #bfd0f3;outline-offset:3px}
@media(hover:hover) and (pointer:fine){
  body.qingsi-polished .post-list-thumb:hover{transform:translateY(-5px);border-color:rgba(153,175,231,.65);box-shadow:0 16px 40px rgba(58,83,138,.18),0 0 20px rgba(155,136,217,.1)}
  body.qingsi-polished .post-list-thumb:hover .post-thumb a img{transform:scale(1.035)}
  body #qs-home-button:hover,body #simple-mode-toggle:hover,body #changskin:hover,body #moblieGoTop:hover{background:linear-gradient(135deg,rgba(45,58,80,.97),rgba(59,45,74,.97));border-color:rgba(183,204,249,.62);box-shadow:0 5px 25px rgba(104,126,187,.22)}
  #qs-bgm .qs-bgm-play:hover{box-shadow:0 3px 19px rgba(152,174,240,.38)}
}
@media(hover:none){body.qingsi-polished .post-list-thumb:hover{transform:none}body.qingsi-polished .post-list-thumb:hover .post-thumb a img{transform:none}}
html.simple-mode #qs-bgm .qs-bgm-wave i{animation:none;transform:scaleY(.25)}
html.simple-mode body.qingsi-polished .post-list-thumb,html.simple-mode body.qingsi-polished .post-list-thumb .post-thumb a img{transition:none}
html.simple-mode body.qingsi-polished .post-list-thumb:hover,html.simple-mode body.qingsi-polished .post-list-thumb:hover .post-thumb a img{transform:none}
@media(prefers-reduced-motion:reduce){
  #qs-bgm .qs-bgm-wave i{animation:none;transform:scaleY(.25)}
  body.qingsi-polished .post-list-thumb,body.qingsi-polished .post-list-thumb .post-thumb a img,body #qs-home-button,body #simple-mode-toggle,body #changskin,body #moblieGoTop,#qs-bgm .qs-bgm-play{transition:none}
  body.qingsi-polished .post-list-thumb:hover,body.qingsi-polished .post-list-thumb:hover .post-thumb a img{transform:none}
}

/* The cover keeps Sakurairo's own configured typing signature. */
body.qingsi-polished .focusinfo .qs-hero-title{margin:24px auto 18px;padding:0 20px;max-width:90vw;font:500 clamp(30px,5vw,54px)/1.45 Georgia,'Noto Serif SC','Songti SC',serif;letter-spacing:.12em;color:#eef3ff;text-wrap:balance;overflow-wrap:anywhere;text-shadow:0 2px 12px rgba(0,0,0,.65),0 0 24px rgba(154,185,241,.32),0 0 42px rgba(188,159,226,.18)}
body.qingsi-polished .focusinfo .center-text{color:#eef3ff;text-shadow:0 2px 12px rgba(0,0,0,.65),0 0 24px rgba(154,185,241,.32),0 0 42px rgba(188,159,226,.18)}
body.qingsi-polished .focusinfo .header-info{border:1px solid rgba(184,201,241,.22);box-shadow:0 12px 36px rgba(0,0,0,.12),inset 0 1px 0 rgba(231,236,255,.08)}
body.qingsi-polished.dark .focusinfo .header-info{background:linear-gradient(135deg,rgba(29,36,51,.84),rgba(39,31,48,.84));color:#e7edfc}
body.qingsi-polished .focusinfo .header-info .element{letter-spacing:.04em;line-height:1.9}
body.qingsi-polished .focusinfo .header-info .typed-cursor{color:#b8caed}
body.qingsi-polished .focusinfo .header-tou img{border-color:rgba(206,219,255,.65);box-shadow:0 8px 32px rgba(0,0,0,.2),0 0 22px rgba(149,174,232,.15)}
@media(max-width:760px){body.qingsi-polished .focusinfo .qs-hero-title{font-size:clamp(27px,7vw,38px);margin:18px auto 14px;letter-spacing:.08em}body.qingsi-polished .focusinfo .header-tou img{width:88px;height:88px}}
@media(max-height:600px){body.qingsi-polished .focusinfo .qs-hero-title{font-size:28px;margin:10px auto}body.qingsi-polished .focusinfo .header-tou img{width:70px;height:70px}body.qingsi-polished .focusinfo .header-info{padding:10px 18px}}
