/*
Theme Name: QQBLOG
Author: QQBLOG
Description: 深色朋友圈风格的响应式 WordPress 博客主题，支持前台动态、图片、点赞和评论。
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: qqblog
*/

*{box-sizing:border-box}
:root{scrollbar-color:#4e5664 #121416;scrollbar-width:thin}
:root{
  --bg:#101113;
  --panel:#17191b;
  --panel2:#242628;
  --text:#f5f5f5;
  --muted:#9da0a6;
  --blue:#91a4d2;
  --line:#2a2c2f;
  --accent:#d7d7d7;
}
html,body{margin:0;background:#050607;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5}
body{min-height:100vh}
*{scrollbar-width:thin;scrollbar-color:#4e5664 transparent}
*::-webkit-scrollbar{width:8px;height:8px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{background:#4e5664;border:2px solid transparent;border-radius:8px;background-clip:padding-box}
*::-webkit-scrollbar-thumb:hover{background:#707b8d;border:2px solid transparent;background-clip:padding-box}
body.admin-bar .hero-top{padding-top:max(54px,calc(env(safe-area-inset-top) + 32px))}
a{color:inherit;text-decoration:none;transition:color .2s ease,background-position .45s ease}
a:hover{color:transparent;background:linear-gradient(100deg,#fff 20%,#9eb4e8 45%,#fff 70%);background-size:220% 100%;background-position:200% 0;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:link-shimmer 2.4s ease-in-out infinite alternate}
button,input,textarea{font:inherit}
button{color:inherit}
.app{width:100%;max-width:760px;margin:auto;background:#111316;min-height:100vh;overflow:hidden}
.hero{position:relative;height:650px;min-height:580px;background:#111316;overflow:hidden}
.hero-bg{
  position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(14,15,18,.1) 0%,rgba(14,15,18,.2) 34%,rgba(14,15,18,.88) 72%,#111316 100%),
    radial-gradient(circle at 75% 35%,rgba(230,235,245,.32),transparent 10%),
    radial-gradient(circle at 50% 55%,rgba(120,145,180,.18),transparent 35%),
    linear-gradient(145deg,#60646b 0%,#30343b 42%,#111316 80%);
  filter:saturate(.72);
  background-position:center;background-size:cover;
}
.hero-bg:before{
  content:"";
  position:absolute;
  z-index:1;
  inset:-24px;
  background-image:inherit;
  background-position:center;
  background-size:cover;
  -webkit-mask-image:linear-gradient(to bottom,transparent 42%,rgba(0,0,0,.08) 52%,rgba(0,0,0,.7) 68%,#000 84%);
  mask-image:linear-gradient(to bottom,transparent 42%,rgba(0,0,0,.08) 52%,rgba(0,0,0,.7) 68%,#000 84%);
  filter:blur(20px);
  opacity:.88;
  pointer-events:none;
}
.hero:after{
  content:"";
  position:absolute;
  z-index:1;
  left:0;right:0;bottom:0;height:270px;
  background:linear-gradient(180deg,rgba(17,19,22,0) 0%,rgba(17,19,22,.12) 24%,rgba(17,19,22,.64) 72%,#111316 100%);
  pointer-events:none;
}
.hero-bg:after{
  content:"";position:absolute;inset:0;opacity:.3;
  background-image:radial-gradient(#fff 0 1px,transparent 2px);
  background-size:73px 73px;
  mask-image:linear-gradient(to bottom,transparent 0%,#000 30%,transparent 72%);
}
.safe-top{padding-top:max(22px,env(safe-area-inset-top))}
.hero-top{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;padding-left:38px;padding-right:38px}
.hero-spacer{display:block;width:72px;height:72px}
.round-btn{
  border:0;background:rgba(24,25,28,.86);box-shadow:0 7px 22px rgba(0,0,0,.15);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);cursor:pointer
}
.round-btn{width:72px;height:72px;border-radius:50%;font-size:39px;line-height:1}
.round-btn .iconfont{font-size:inherit}
.top-right{display:flex;gap:12px;align-items:center;transform:translate(10px,-42px)}
.top-right .round-btn{
  width:50px;height:50px;font-size:28px;
  background:transparent;box-shadow:none;border-radius:0;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
.profile{position:absolute;z-index:2;left:38px;right:38px;bottom:135px;display:flex;align-items:flex-end;gap:24px}
.profile-avatar{width:138px;height:138px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.9);background:#ddd}
.profile-main{padding-bottom:8px}
.profile-name{font-size:24px;font-weight:600;letter-spacing:.3px;line-height:1.25;text-shadow:0 2px 10px #000}
.profile-signature{margin-top:8px;color:#f1f1f1;font-size:14px;line-height:1.5;text-shadow:0 2px 8px #000}
.view-count{margin-top:12px;font-size:14px;color:#f1f1f1}
.view-count strong{font-weight:500}.eye{font-size:20px;margin-right:6px;vertical-align:-2px}
.profile-nav{position:absolute;z-index:3;left:24px;right:24px;bottom:24px;display:grid;grid-template-columns:repeat(5,1fr)}
.profile-nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:12px;cursor:pointer;color:#fff}
.profile-nav .iconfont{font-size:38px;line-height:1;font-weight:300}
.profile-nav b{font-size:14px;font-weight:400}
.profile-nav button.active b{font-weight:600}
main{background:#111316}
.feed{padding:0 28px}
.log-card{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:200px;margin:18px 0;padding:28px 32px;background:#27292b;border:1px solid rgba(255,255,255,.025);border-radius:12px;color:#f2f3f5;transition:background .2s ease,transform .2s ease}
.log-card:hover{color:#fff;background:#2d2f32;transform:translateY(-1px);-webkit-text-fill-color:initial}
.log-card-copy{display:flex;flex:1;min-width:0;min-height:136px;flex-direction:column;justify-content:space-between}
.log-card-copy h2{display:-webkit-box;overflow:hidden;margin:0;color:#f2f3f5;font-size:30px;line-height:1.45;font-weight:700;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.log-card-meta{display:flex;align-items:center;gap:22px;color:#a1a4aa;font-size:18px;line-height:1.3}
.log-card-meta span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.log-card-meta .iconfont{font-size:20px}
.log-card-meta time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.log-card-thumb{position:relative;flex:0 0 136px;width:136px;height:136px;overflow:hidden;border-radius:7px;background:#383a3d}
.log-card-thumb img{width:100%;height:100%;object-fit:cover}
.log-card-thumb>span{position:absolute;right:0;bottom:0;display:flex;align-items:center;gap:5px;padding:3px 7px;background:rgba(0,0,0,.52);color:#fff;font-size:14px}
.log-card-thumb>span .iconfont{font-size:16px}
.log-card:focus-visible{outline:2px solid #91a4d2;outline-offset:3px}
.post{padding:24px 0;border-bottom:1px solid #1a1a1a}
.post-head{display:flex;align-items:center;gap:18px}
.post-avatar{width:50px;height:50px;border-radius:50%;object-fit:cover;background:#333;border:2px solid rgba(255,255,255,.12)}
.post-user{font-size:14px;color:#90a5d5;font-weight:600}
.post-entry-title{margin:10px 0 0;font-size:16px;line-height:1.5;font-weight:600;color:#f0f0f2}.post-entry-title a{color:inherit}
.post-more-wrap{position:relative;margin-left:auto}.post-more{border:0;background:transparent;font-size:26px;cursor:pointer;color:#eee;padding:0}.post-more:disabled{opacity:.5;cursor:wait}
.post-more .iconfont{font-size:23px}
.post-menu{position:absolute;z-index:8;right:36px;top:50%;display:flex;align-items:center;min-width:72px;height:38px;padding:0 4px;background:#48494b;border:0;border-radius:4px;box-shadow:0 5px 15px rgba(0,0,0,.25);transform:translateY(-50%);animation:post-menu-in .16s ease-out both}
.post-menu[hidden]{display:none!important}
.post-menu button{display:block;width:100%;height:30px;border:0;background:transparent;color:#fff;text-align:center;padding:0 12px;border-radius:3px;cursor:pointer;font-size:14px;line-height:30px}.post-menu button:hover{background:#5a5b5e;color:#fff}
@keyframes post-menu-in{from{opacity:0;transform:translate(8px,-50%)}to{opacity:1;transform:translate(0,-50%)}}
.post-text{font-size:14px;line-height:1.6;margin:10px 0 14px;color:#eee;white-space:pre-wrap;word-break:break-word}
.post-grid{display:grid;gap:4px;max-width:100%;grid-template-columns:repeat(3,1fr)}
.post-grid.one{grid-template-columns:minmax(0,500px)}
.post-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.post-grid img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:#242628;cursor:pointer}
.post-grid.one img{aspect-ratio:auto;max-height:650px;object-fit:contain;background:#08090a}
.post-meta{display:flex;align-items:center;justify-content:space-between;margin-top:12px;color:#909399;font-size:12px}
.post-actions{display:flex;gap:26px}
.post-actions button{border:0;background:none;color:#eee;font-size:25px;cursor:pointer;padding:0}
.post-actions button .iconfont{font-size:inherit}
.post-actions button.liked{color:#91a4d2}
.album-label{display:inline-flex;align-items:center;gap:8px;background:#292b2e;border-radius:7px;padding:6px 10px;margin-top:9px;color:#e5e5e5;font-size:12px}
.comments{margin-top:14px;padding:0 0 0 2px}
.like-line{color:#fff;font-size:13px;line-height:1.5;padding:2px 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.like-line .iconfont{font-size:19px;vertical-align:-2px;color:#91a4d2}.like-line span{color:#91a4d2;margin-left:7px}.comment{font-size:13px;line-height:1.55;padding:1px 0;color:#f0f0f2}.comment-author,.comment-mention{color:#9299ad;text-decoration:none}.comment-author{font-weight:600}.comment-reply-label{color:#fff}.comment-mention{font-weight:500}.comment[role="button"]{cursor:pointer}.comment[role="button"]:focus-visible{outline:1px solid #91a4d2;outline-offset:2px}.comment-author:hover,.comment-mention:hover{text-decoration:underline}
.comment-reply-label{color:#fff}
.comment-sheet{position:fixed;inset:0;z-index:110;visibility:hidden;pointer-events:none;transition:visibility 0s linear .28s}
.comment-sheet.show{visibility:visible;pointer-events:auto;transition-delay:0s}
.comment-sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.58);opacity:0;transition:opacity .28s ease}
.comment-sheet.show .comment-sheet-backdrop{opacity:1}
.comment-panel{position:absolute;left:50%;bottom:0;width:min(100%,760px);display:flex;flex-direction:column;background:#232629;border-radius:0;box-shadow:0 -12px 40px rgba(0,0,0,.35);transform:translate(-50%,100%);transition:transform .32s cubic-bezier(.22,.8,.28,1)}
.comment-sheet.show .comment-panel{transform:translate(-50%,0)}
.comment-panel-handle{width:42px;height:4px;margin:10px auto 2px;border-radius:4px;background:#65686d}
.comment-toolbar{display:flex;align-items:center;gap:24px;min-height:76px;padding:10px 24px 4px;color:#f1f2f3}
.comment-toolbar button{border:0;background:transparent;color:inherit;padding:0;font-size:35px;line-height:1;cursor:pointer}
.comment-toolbar button .iconfont{font-size:35px}
.comment-form{display:flex;gap:10px;align-items:center;padding:0 30px calc(20px + env(safe-area-inset-bottom));background:#232629}
.comment-input-wrap{position:relative;flex:1;min-width:0;height:44px;background:#36393d;border-radius:7px}
.comment-form textarea{display:block;width:100%;height:44px;min-height:44px;max-height:44px;overflow:hidden;resize:none;border:0;outline:0;background:transparent;color:#fff;border-radius:7px;padding:10px 16px;font-size:14px;line-height:24px}
.comment-reply-prefix{position:absolute;z-index:1;left:16px;top:10px;color:#9299ad;font-size:14px;line-height:24px;white-space:pre;pointer-events:none}.comment-reply-prefix.is-hidden{display:none}.comment-reply-prefix .comment-reply-label{color:#fff}.comment-reply-name{color:#9299ad}
.comment-form textarea::placeholder{color:#858990}
.comment-form button{height:44px;border:0;border-radius:7px;background:#dfe3eb;color:#151618;padding:0 18px;font-size:14px;font-weight:600;cursor:pointer}
.comment-form button:disabled{opacity:.5;cursor:wait}
body.comment-sheet-open{overflow:hidden}
.site-footer{position:fixed;left:14px;bottom:10px;z-index:20;display:flex;justify-content:flex-start;align-items:center;gap:8px;flex-wrap:wrap;max-width:calc(100vw - 28px);padding:4px 0;color:#747983;font-size:12px;text-align:left;pointer-events:none}.site-footer a{color:inherit;text-decoration:none;pointer-events:auto}.site-footer a:hover{text-decoration:underline}.site-footer-separator{color:#4e535a}.site-footer-visitor{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.site-footer-visitor-icon{font-size:14px;color:#747983}
.load-more{height:90px;display:flex;align-items:center;justify-content:center;gap:10px;color:#777;cursor:default}
.load-more[hidden],.empty[hidden]{display:none!important}
.load-more.retry{cursor:pointer}
.loader{display:inline-block;width:16px;height:16px;box-sizing:border-box;border:2px solid rgba(255,255,255,.16);border-top-color:#969da8;border-radius:50%;animation:spin .8s linear infinite}
.load-more:not(.loading) .loader{display:none}
.empty{height:90px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0;color:#666}
.single-app{width:100%;max-width:760px;min-height:100vh;margin:0 auto;background:#111316;color:#f3f4f5}
.single-topbar{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:56px 1fr 56px;align-items:center;height:76px;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.1);background:rgba(25,27,29,.68);box-shadow:0 8px 24px rgba(0,0,0,.14);backdrop-filter:blur(22px) saturate(150%);-webkit-backdrop-filter:blur(22px) saturate(150%);text-align:center;font-size:20px}
.single-back,.single-edit{display:flex;align-items:center;justify-content:center;min-width:40px;height:44px;color:#f3f4f5}.single-back{justify-self:start;font-size:32px}.single-edit{justify-self:end;font-size:14px}.single-topbar-spacer{width:40px}
.single-content{padding:48px 44px 100px}
.single-title{margin:0 0 38px;color:#f4f4f5;font-size:38px;line-height:1.35;font-weight:700;overflow-wrap:anywhere}
.single-author{display:flex;align-items:center;gap:16px;margin-bottom:42px}
.single-author>img{width:72px;height:72px;flex:0 0 72px;border:2px solid rgba(255,255,255,.16);border-radius:50%;object-fit:cover;background:#292b2e}
.single-author>div{display:grid;gap:7px}.single-author-name{font-size:18px;font-weight:600;color:#f2f3f4}.single-author time{color:#888c93;font-size:15px}
.single-entry-content{color:#e5e6e8;font-size:21px;line-height:1.9;overflow-wrap:anywhere}
.single-entry-content p{margin:0 0 18px}.single-entry-content h2,.single-entry-content h3{margin:32px 0 14px;color:#f1f2f3;line-height:1.45}
.single-entry-content h2{font-size:26px}.single-entry-content h3{font-size:22px}
.single-entry-content a{color:#8da9ee}.single-entry-content ul,.single-entry-content ol{padding-left:1.5em;margin:18px 0}
.single-entry-content img,.single-entry-content video,.single-entry-content iframe{max-width:100%;height:auto}
.single-entry-content figure{max-width:100%;margin:32px 0}.single-entry-content figure img{display:block;width:100%;height:auto}
.single-entry-content figcaption{padding-top:8px;color:#92959b;font-size:14px;text-align:center}
.single-entry-content pre{max-width:100%;overflow:auto;padding:18px;background:#1d2023;border-radius:6px;font-size:15px}
.single-entry-content blockquote{margin:22px 0;padding:4px 0 4px 18px;border-left:3px solid #56667f;color:#b9bdc4}
.single-featured-image{margin:0 0 28px}.single-featured-image img{display:block;width:100%;height:auto}
.single-actions-row{display:flex;align-items:center;justify-content:space-between;margin-top:38px;padding:18px 0;color:#92969e;font-size:15px}
.single-view-count,.single-actions{display:flex;align-items:center;gap:24px}.single-view-count .iconfont{font-size:20px}
.single-actions{gap:30px}.single-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:34px;min-height:36px;padding:0;border:0;background:transparent;color:#e8e9eb;font-size:25px;cursor:pointer}.single-action .iconfont{font-size:inherit}.single-action.is-liked{color:#91a4d2}.single-action:disabled{opacity:.5;cursor:wait}
.single-comments{padding:12px 0 64px;scroll-margin-top:90px}.single-comments-inner{padding-bottom:24px;border-bottom:1px solid #1a1a1a}.single-comments-title{margin:0 0 16px;color:#f1f2f3;font-size:15px;font-weight:600}
.single-comment-list{margin:0 0 4px}.single-comment-list>.comment-list,.single-comment-list .children{margin:0;padding:0;list-style:none}.single-comment-list .children{margin:6px 0 4px 16px;padding-left:12px}.single-comment-list li{margin:0;padding:0;list-style:none}.single-comment-item>.comment{padding:3px 0 8px;border-bottom:0}.single-comment-content{color:#f0f0f2;white-space:pre-wrap;overflow-wrap:anywhere}.single-comment-item .comment-author,.single-comment-item .comment-mention{color:#9299ad}.single-comments-empty,.single-comments-closed{color:#8d9198;font-size:13px}
.toast{position:fixed;left:50%;bottom:80px;transform:translate(-50%,20px);background:rgba(0,0,0,.82);color:#fff;padding:10px 18px;border-radius:8px;opacity:0;pointer-events:none;transition:.25s;z-index:50}
.toast.show{opacity:1;transform:translate(-50%,0)}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.94);z-index:100;display:none;align-items:center;justify-content:center;padding:30px}
.modal.show{display:flex}.modal img{max-width:96vw;max-height:90vh;object-fit:contain}.modal-close{position:absolute;top:18px;right:24px;border:0;background:none;color:#fff;font-size:45px;cursor:pointer}.modal-close .iconfont{font-size:inherit}
.no-script-feed{padding-bottom:40px}.no-script-feed .post-user a{text-decoration:none}.post button:disabled{opacity:.55;cursor:wait}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes link-shimmer{0%{background-position:200% 0}100%{background-position:-20% 0}}
.comment-author:hover,.comment-mention:hover,.site-footer a:hover{text-decoration:none}
@media(max-width:700px){
  .hero{height:620px;min-height:620px}
  .hero-top{padding-left:18px;padding-right:18px}.round-btn{width:54px;height:54px;font-size:30px}.top-right{gap:6px;transform:translate(8px,-38px)}.top-right .round-btn{width:42px;height:42px;font-size:25px}
  .hero-spacer{width:54px;height:54px}.profile{left:24px;right:24px;bottom:126px;gap:18px}.profile-avatar{width:112px;height:112px}.profile-name{font-size:20px}.profile-signature{font-size:13px;margin-top:6px}
  .profile-nav{left:10px;right:10px;bottom:16px}.profile-nav .iconfont{font-size:31px}.profile-nav b{font-size:13px}
  .feed{padding:0 14px}.post{padding:22px 0}.post-avatar{width:48px;height:48px}.post-head{gap:12px}.post-user{font-size:14px}.post-more{font-size:24px}.post-text{font-size:14px;margin:10px 0 12px}.post-meta{font-size:12px;margin-top:10px}.post-actions{gap:24px}.post-actions button{font-size:24px}.album-label{font-size:12px}.comments{padding:0}.comment{font-size:13px}
  .log-card{min-height:142px;gap:14px;margin:12px 0;padding:18px 16px;border-radius:9px}.log-card-copy{min-height:106px}.log-card-copy h2{font-size:20px;line-height:1.45;-webkit-line-clamp:2}.log-card-meta{gap:12px;font-size:13px}.log-card-meta .iconfont{font-size:16px}.log-card-thumb{flex-basis:96px;width:96px;height:96px}.log-card-thumb>span{font-size:12px}.log-card-thumb>span .iconfont{font-size:14px}
  .single-topbar{height:60px;padding:0 14px;font-size:17px;grid-template-columns:44px 1fr 44px}.single-back{font-size:28px}.single-content{padding:32px 22px 88px}.single-title{margin-bottom:26px;font-size:29px;line-height:1.4}.single-author{gap:12px;margin-bottom:30px}.single-author>img{width:58px;height:58px;flex-basis:58px}.single-author-name{font-size:16px}.single-author time{font-size:13px}.single-entry-content{font-size:17px;line-height:1.85}.single-entry-content h2{font-size:22px}.single-entry-content h3{font-size:19px}.single-entry-content figure{margin:24px 0}.single-stats{margin-top:28px;font-size:14px}
  .comment-toolbar{gap:18px;padding-left:18px;padding-right:18px}.comment-toolbar button,.comment-toolbar button .iconfont{font-size:30px}.comment-form{padding-left:14px;padding-right:14px}.comment-form textarea,.comment-reply-prefix{font-size:14px}.comment-form textarea,.comment-input-wrap{height:42px;min-height:42px;max-height:42px}.comment-form button{height:42px}.comment-form textarea{line-height:22px;padding-top:10px}.comment-reply-prefix{top:10px;line-height:22px}
}
@media(min-width:701px){
  body{
    background:
      radial-gradient(circle at 18% 16%,rgba(120,145,180,.09),transparent 28%),
      radial-gradient(circle at 82% 74%,rgba(230,235,245,.05),transparent 24%),
      #050607;
  }
  .app{box-shadow:0 0 50px rgba(0,0,0,.35)}
}
