/*
Theme Name: 枢云 Shuyun
Theme URI: https://bbbb.bid
Author: 枢云
Author URI: https://bbbb.bid
Description: 轻氧白昼风格的中文内容型 WordPress 主题。柔光渐变、白色卡片、置顶推荐与今日热榜，内置资源横条、作者卡片与完整评论样式，开箱即用的响应式体验。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shuyun
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns
*/

/* =========================================================
   Reset & tokens
   ========================================================= */
:root{
  --primary:#6366f1;
  --primary-2:#a855f7;
  --cyan:#22d3ee;
  --text:#171a2c;
  --muted:#737892;
  --bg:#f6f7fc;
  --card:#ffffff;
  --line:rgba(23,26,44,.07);
  --radius:18px;
  --shadow:0 12px 34px -16px rgba(49,46,129,.22);
  --shadow-hover:0 22px 44px -18px rgba(49,46,129,.34);
  --grad:linear-gradient(120deg,#6366f1 0%,#8b5cf6 55%,#d946ef 100%);
  --header-h:72px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 560px at 8% -8%, #ece9ff 0%, transparent 62%),
    radial-gradient(900px 480px at 96% -4%, #e2f4ff 0%, transparent 58%),
    var(--bg);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto;background:#e8e9f5}
button,input,textarea,select{font-family:inherit}
.container{width:min(1240px,calc(100% - 48px));margin:0 auto}
.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;
  overflow:hidden;padding:0;position:absolute !important;word-wrap:normal !important;
}
.screen-reader-text:focus{background:#fff;border-radius:6px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto !important;clip-path:none;color:var(--primary);display:block;font-size:14px;height:auto;left:16px;line-height:normal;padding:12px 20px;top:16px;width:auto;z-index:100000}
.alignleft{float:left;margin:0 1.4em 1em 0}
.alignright{float:right;margin:0 0 1em 1.4em}
.aligncenter{margin-left:auto;margin-right:auto}
.alignwide{margin-left:-24px;margin-right:-24px;max-width:calc(100% + 48px)}
.alignfull{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw;width:100vw}
.wp-caption{max-width:100%}
.wp-caption-text{font-size:12px;color:var(--muted);text-align:center;margin-top:8px}
.sticky{position:relative}
.bypostauthor{display:block}

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(255,255,255,.72);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  backdrop-filter:blur(18px) saturate(160%);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;gap:28px;height:var(--header-h)}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0;min-width:0}
.logo-mark{
  width:36px;height:36px;border-radius:11px;background:var(--grad);
  color:#fff;font-weight:700;font-size:19px;display:grid;place-items:center;flex-shrink:0;
  box-shadow:0 8px 18px -6px rgba(99,102,241,.55);
}
.logo-text{display:block;font-size:19px;font-weight:800;letter-spacing:.5px;line-height:1.1}
.logo-sub{display:block;font-size:9px;font-weight:600;letter-spacing:2.4px;color:var(--muted);margin-top:2px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.custom-logo-link{display:flex;align-items:center}
.custom-logo{width:auto;height:40px;background:none;border-radius:10px}

.nav{display:flex;align-items:center;gap:4px;flex:1;min-width:0}
.nav ul{display:flex;align-items:center;gap:4px;list-style:none;flex-wrap:wrap}
.nav a{
  display:inline-block;padding:8px 14px;border-radius:10px;font-size:14.5px;color:#3d4257;font-weight:500;
  transition:.22s;position:relative;white-space:nowrap;
}
.nav ul li{position:relative}
.nav a:hover{color:var(--primary);background:rgba(99,102,241,.08)}
.nav .current-menu-item > a,
.nav .current-menu-ancestor > a,
.nav .current_page_item > a{color:var(--primary);font-weight:700}
.nav .current-menu-item > a::after,
.nav .current-menu-ancestor > a::after,
.nav .current_page_item > a::after{
  content:"";position:absolute;left:50%;bottom:2px;transform:translateX(-50%);
  width:18px;height:3px;border-radius:3px;background:var(--grad);
}
.nav ul ul{
  position:absolute;top:calc(100% + 6px);left:0;min-width:180px;padding:8px;
  background:#fff;border-radius:14px;border:1px solid var(--line);
  box-shadow:0 22px 40px -24px rgba(23,26,44,.35);
  display:none;flex-direction:column;align-items:stretch;gap:2px;z-index:70;
}
.nav ul li:hover > ul{display:flex}
.nav ul ul a{font-size:13.5px;padding:9px 12px}

.header-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.btn-login{
  height:40px;line-height:40px;padding:0 20px;border-radius:99px;font-size:14px;font-weight:600;
  background:var(--grad);color:#fff;box-shadow:0 10px 22px -10px rgba(99,102,241,.8);
  transition:.25s;display:inline-block;border:0;cursor:pointer;
}
.btn-login:hover{transform:translateY(-1px);box-shadow:0 14px 26px -10px rgba(99,102,241,.9);color:#fff}
.btn-ghost{
  height:40px;line-height:38px;padding:0 18px;border-radius:99px;font-size:14px;font-weight:600;
  border:1px solid var(--line);background:#fff;color:#3d4257;transition:.25s;display:inline-block;
}
.btn-ghost:hover{border-color:#c9c9f5;color:var(--primary)}
.mobile-menu{
  display:none;width:40px;height:40px;border-radius:12px;border:1px solid var(--line);
  background:#fff;place-items:center;cursor:pointer;padding:0;
}
.mobile-menu svg{width:18px;height:18px;fill:none;stroke:#3d4257;stroke-width:2;stroke-linecap:round}

/* =========================================================
   Search form
   ========================================================= */
.search-form{
  display:flex;align-items:center;gap:8px;height:40px;padding:0 16px;
  border-radius:99px;background:#fff;border:1px solid var(--line);width:100%;
  color:var(--muted);font-size:13.5px;transition:.25s;
  box-shadow:0 2px 8px rgba(23,26,44,.03);
}
.search-form svg{width:16px;height:16px;flex-shrink:0;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.search-form input[type="search"]{
  border:0;outline:0;background:transparent;width:100%;min-width:0;
  font-size:13.5px;color:var(--text);padding:0;-webkit-appearance:none;appearance:none;
}
.search-form input[type="search"]::placeholder{color:var(--muted)}
.search-form .search-submit{display:none}
.header-actions .search-form{width:230px}
.header-actions .search-form:focus-within{width:270px;border-color:rgba(99,102,241,.45);box-shadow:0 6px 20px -8px rgba(99,102,241,.35)}
.search-big{height:54px;padding:0 22px;border-radius:16px;max-width:520px;margin:0 auto;box-shadow:var(--shadow)}
.search-big input[type="search"]{font-size:15px}
.search-big svg{width:18px;height:18px}

/* =========================================================
   Hero
   ========================================================= */
.hero{display:grid;grid-template-columns:1.62fr .8fr;gap:20px;margin-top:26px}
.hero-main{
  position:relative;border-radius:24px;overflow:hidden;min-height:400px;isolation:isolate;
  box-shadow:var(--shadow);display:block;color:#fff;
}
.hero-img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;
  transition:transform .8s cubic-bezier(.2,.8,.2,1);
}
.hero-main:hover .hero-img{transform:scale(1.05)}
.hero-fallback{background:var(--grad)}
.hero-main::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(18,20,42,.05) 0%,rgba(18,20,42,.25) 45%,rgba(15,16,34,.86) 100%);
}
.hero-main--empty{display:flex;align-items:flex-end;background:var(--grad)}
.hero-main--empty::after{background:linear-gradient(180deg,rgba(18,20,42,0) 30%,rgba(15,16,34,.45) 100%)}
.hero-top{position:absolute;top:22px;left:22px;display:flex;gap:8px;z-index:2}
.pill-glass{
  display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:99px;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  color:#fff;font-size:12.5px;font-weight:600;
}
.pill-glass.accent{background:linear-gradient(120deg,rgba(236,72,153,.85),rgba(168,85,247,.85));border-color:transparent}
.hero-body{position:absolute;left:0;right:0;bottom:0;padding:30px 32px;z-index:2}
.hero-title{
  display:block;color:#fff;font-size:clamp(24px,3vw,36px);font-weight:800;line-height:1.32;letter-spacing:-.3px;
  max-width:90%;text-shadow:0 4px 24px rgba(0,0,0,.3);
}
.hero-desc{display:block;color:rgba(255,255,255,.78);font-size:14px;margin-top:12px;max-width:78%;line-height:1.7}
.hero-meta{display:flex;align-items:center;gap:16px;margin-top:20px;color:rgba(255,255,255,.7);font-size:12.5px;flex-wrap:wrap}
.hero-meta .who{display:flex;align-items:center;gap:8px;color:#fff;font-weight:600}
.hero-meta .who span{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,#fbbf24,#f472b6);display:grid;place-items:center;font-size:11px;font-weight:700;color:#fff}
.dot{width:3px;height:3px;border-radius:50%;background:rgba(255,255,255,.4)}

.hero-side{
  background:var(--card);border-radius:24px;padding:22px;box-shadow:var(--shadow);
  display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.6);
}
.side-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.side-head h3,.side-head h2{font-size:16px;font-weight:800;display:flex;align-items:center;gap:8px}
.side-head h3::before,.side-head h2::before{content:"";width:4px;height:16px;border-radius:3px;background:var(--grad)}
.side-head a{font-size:12px;color:var(--muted);transition:.2s}
.side-head a:hover{color:var(--primary)}
.hot-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px dashed var(--line);align-items:flex-start}
.hot-item:last-child{border-bottom:0}
.hot-rank{
  font-size:19px;font-weight:800;font-style:italic;width:24px;flex-shrink:0;line-height:1.1;
  background:linear-gradient(160deg,#6366f1,#d946ef);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.hot-rank.muted{background:linear-gradient(160deg,#b9bdd4,#d5d8e6);-webkit-background-clip:text;background-clip:text;color:transparent}
.hot-item p,.hot-item .hot-title{font-size:13.5px;font-weight:600;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:.2s}
.hot-item:hover p,.hot-item:hover .hot-title{color:var(--primary)}
.hot-item .tag{font-size:11px;color:var(--muted);margin-top:6px;display:inline-block;background:#f3f4fb;padding:2px 8px;border-radius:6px}
.hot-empty{font-size:13px;color:var(--muted);padding:18px 0}

/* =========================================================
   Category chips
   ========================================================= */
.cats{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 30px}
.chip{
  display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 16px;border-radius:99px;
  background:#fff;border:1px solid var(--line);font-size:13.5px;color:#454a61;font-weight:600;
  transition:.22s;box-shadow:0 2px 6px rgba(23,26,44,.03);
}
.chip i{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;font-size:11px;font-style:normal;font-weight:700;color:#fff;flex-shrink:0}
.chip:hover{transform:translateY(-2px);border-color:#d4d3fb;box-shadow:0 10px 20px -12px rgba(99,102,241,.45)}
.chip.active{background:var(--grad);border-color:transparent;color:#fff;box-shadow:0 10px 22px -12px rgba(99,102,241,.8)}
.chip.active i{background:rgba(255,255,255,.22) !important}

/* =========================================================
   Layout & cards
   ========================================================= */
.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:10px}
.section-head h2{font-size:20px;font-weight:800;letter-spacing:-.2px;display:flex;align-items:center;gap:10px}
.section-head h2::before{content:"";width:6px;height:20px;border-radius:4px;background:var(--grad);flex-shrink:0}
.section-head .more{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:4px;transition:.2s;white-space:nowrap}
.section-head .more:hover{color:var(--primary)}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.post-card{
  background:var(--card);border-radius:var(--radius);overflow:hidden;border:1px solid rgba(255,255,255,.7);
  box-shadow:0 6px 20px -14px rgba(23,26,44,.18);transition:.28s;display:flex;flex-direction:column;
}
.post-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-hover)}
.thumb{position:relative;overflow:hidden;aspect-ratio:16/10;background:var(--grad)}
.thumb img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.post-card:hover .thumb img{transform:scale(1.07)}
.thumb-fallback{display:grid;place-items:center}
.thumb-letter{font-size:44px;font-weight:800;color:rgba(255,255,255,.9);letter-spacing:2px;text-shadow:0 10px 26px rgba(0,0,0,.18)}
.thumb::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(16,18,38,.42));opacity:0;transition:.3s;pointer-events:none}
.post-card:hover .thumb::after{opacity:1}
.thumb .cat-badge{
  position:absolute;left:12px;top:12px;z-index:2;padding:5px 11px;border-radius:8px;
  font-size:11.5px;font-weight:700;color:#fff;background:rgba(20,22,44,.55);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.18);
}
.thumb .vip{
  position:absolute;right:12px;top:12px;z-index:2;padding:5px 10px;border-radius:8px;
  font-size:11px;font-weight:800;letter-spacing:.6px;color:#4a3200;
  background:linear-gradient(120deg,#ffe08a,#ffb547);box-shadow:0 6px 14px -6px rgba(255,181,71,.7);
}
.post-body{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
.post-card h3{font-size:17px;font-weight:700;line-height:1.5;transition:.2s;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-card:hover h3{color:var(--primary)}
.post-card .excerpt{font-size:13px;color:var(--muted);line-height:1.7;margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-meta{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:14px;font-size:12px;color:var(--muted)}
.author{display:flex;align-items:center;gap:7px;font-weight:600;color:#454a61;min-width:0}
.author span{width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#8b5cf6,#22d3ee);display:grid;place-items:center;font-size:10px;color:#fff;font-weight:700;flex-shrink:0}
.post-meta .views{display:flex;align-items:center;gap:4px;margin-left:auto;flex-shrink:0}
.post-meta .views svg{width:13px;height:13px;fill:none;stroke:var(--muted);stroke-width:1.8}

/* =========================================================
   Resource band
   ========================================================= */
.resource-band{
  margin:24px 0;border-radius:22px;padding:22px;
  background:linear-gradient(120deg,#eef0ff 0%,#f7f0ff 45%,#eefaff 100%);
  border:1px solid rgba(255,255,255,.8);box-shadow:inset 0 1px 0 #fff;
}
.resource-band .rb-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:10px}
.resource-band .rb-head strong{font-size:15.5px;font-weight:800;display:flex;align-items:center;gap:8px}
.rb-badge{font-size:10.5px;font-weight:800;letter-spacing:.8px;color:#fff;background:var(--grad);padding:3px 8px;border-radius:6px}
.rb-more{font-size:12.5px;color:#6b6f8a;transition:.2s}
.rb-more:hover{color:var(--primary)}
.res-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.res{
  display:flex;align-items:center;gap:14px;background:#fff;border-radius:14px;padding:12px 14px;
  border:1px solid rgba(255,255,255,.9);box-shadow:0 8px 18px -14px rgba(49,46,129,.35);transition:.25s;min-width:0;
}
.res:hover{transform:translateY(-3px);box-shadow:0 16px 26px -16px rgba(49,46,129,.45)}
.res-icon{width:46px;height:46px;border-radius:12px;flex-shrink:0;display:grid;place-items:center;font-size:13px;font-weight:800;color:#fff;letter-spacing:.5px}
.res-info{min-width:0;flex:1}
.res-info h4{font-size:13.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.res-info p{font-size:11.5px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.res-btn{
  margin-left:auto;flex-shrink:0;height:30px;line-height:30px;padding:0 12px;border-radius:99px;
  font-size:11.5px;font-weight:700;color:var(--primary);background:rgba(99,102,241,.1);
}

/* =========================================================
   Sidebar
   ========================================================= */
.sidebar{display:flex;flex-direction:column;gap:20px;position:sticky;top:calc(var(--header-h) + 20px)}
.side-card{background:var(--card);border-radius:20px;padding:20px;border:1px solid rgba(255,255,255,.7);box-shadow:var(--shadow)}
.user-card{padding:0;overflow:hidden;text-align:center}
.user-banner{height:86px;background:var(--grad);position:relative}
.user-banner::after{content:"";position:absolute;inset:0;background:radial-gradient(120px 60px at 20% 10%,rgba(255,255,255,.35),transparent 70%)}
.user-avatar{
  width:70px;height:70px;border-radius:50%;margin:-35px auto 0;position:relative;overflow:hidden;
  background:linear-gradient(135deg,#fff,#e9e6ff);display:grid;place-items:center;
  font-size:24px;font-weight:800;color:var(--primary);border:4px solid #fff;
  box-shadow:0 10px 24px -10px rgba(99,102,241,.6);
}
.user-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;background:none}
.user-card h4{font-size:15.5px;font-weight:800;margin-top:10px}
.user-card h4 em{font-style:normal;font-size:10px;font-weight:800;color:#fff;background:linear-gradient(120deg,#f59e0b,#f97316);padding:2px 6px;border-radius:5px;vertical-align:2px;margin-left:4px}
.user-stats{display:flex;justify-content:center;gap:26px;margin:14px 0 16px}
.user-stats div b{display:block;font-size:16px;font-weight:800}
.user-stats div span{font-size:11px;color:var(--muted)}
.checkin{
  display:block;width:calc(100% - 36px);margin:0 18px 18px;height:40px;line-height:40px;border-radius:12px;
  background:var(--grad);color:#fff;font-size:13.5px;font-weight:700;
  box-shadow:0 12px 24px -12px rgba(99,102,241,.8);transition:.25s;
}
.checkin:hover{transform:translateY(-1px);box-shadow:0 16px 26px -12px rgba(99,102,241,.9);color:#fff}
.rank-list{list-style:none;margin-top:4px}
.rank-list li{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px dashed var(--line);font-size:13px}
.rank-list li:last-child{border-bottom:0}
.rank-list li b{width:18px;font-size:12px;font-style:italic;color:#a6a9c2;flex-shrink:0}
.rank-list li b.top{color:var(--primary)}
.rank-list li p,.rank-list li a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;display:block;min-width:0}
.rank-list li:hover p,.rank-list li:hover a{color:var(--primary)}
.tag-cloud{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.tag-cloud a,.side-card .tagcloud a{padding:6px 12px;border-radius:9px;background:#f4f5fb;font-size:12px !important;color:#5a5f78;transition:.2s;display:inline-block}
.tag-cloud a:hover,.side-card .tagcloud a:hover{background:rgba(99,102,241,.12);color:var(--primary)}
.notice{padding:16px 20px;border-radius:16px;background:linear-gradient(120deg,#fff8e6,#fff2f6);border:1px solid #ffeccf;font-size:12.5px;color:#8a6a2f;line-height:1.8}
.notice strong{display:block;color:#a4660a;font-size:13px;margin-bottom:4px}
.side-card ul{list-style:none}
.side-card > ul li,.side-card.widget ul li{padding:9px 0;border-bottom:1px dashed var(--line);font-size:13.5px}
.side-card > ul li:last-child,.side-card.widget ul li:last-child{border-bottom:0}
.side-card.widget ul li a{color:#4a4f6b;transition:.2s}
.side-card.widget ul li a:hover{color:var(--primary)}
.side-card.widget p{font-size:13px;color:var(--muted);line-height:1.8}
.side-card.widget select{width:100%;border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-size:13px;background:#fff}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{margin-top:46px;background:#101223;color:rgba(255,255,255,.68);padding:52px 0 0}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:36px;padding-bottom:40px}
.footer-brand .logo-text{color:#fff}
.footer-brand p{font-size:13px;line-height:1.9;margin-top:14px;max-width:300px;color:rgba(255,255,255,.55)}
.footer-col h5{font-size:14px;color:#fff;margin-bottom:14px;font-weight:700}
.footer-col ul{list-style:none}
.footer-col a{display:block;font-size:13px;padding:6px 0;transition:.2s}
.footer-col a:hover{color:#fff;transform:translateX(3px)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:18px 0;display:flex;justify-content:space-between;font-size:12px;color:rgba(255,255,255,.42);flex-wrap:wrap;gap:10px}
.footer-bottom a{color:rgba(255,255,255,.55)}
.footer-bottom a:hover{color:#fff}

/* =========================================================
   Back to top
   ========================================================= */
.fab{
  position:fixed;right:26px;bottom:30px;width:46px;height:46px;border-radius:50%;background:#fff;
  box-shadow:0 14px 30px -12px rgba(23,26,44,.4);display:grid;place-items:center;z-index:50;
  border:1px solid var(--line);cursor:pointer;padding:0;
  opacity:0;visibility:hidden;transform:translateY(12px);transition:.3s;
}
.fab.show{opacity:1;visibility:visible;transform:none}
.fab svg{width:18px;height:18px;fill:none;stroke:var(--primary);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* =========================================================
   Breadcrumb
   ========================================================= */
.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);margin-bottom:16px}
.breadcrumb a{color:var(--muted);transition:.2s}
.breadcrumb a:hover{color:var(--primary)}
.breadcrumb span{color:#b3b6c9}
.breadcrumb .current{color:#5a5f78;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* =========================================================
   Page head (archive / search / blog)
   ========================================================= */
.page-head{
  background:var(--card);border-radius:20px;padding:26px 30px;box-shadow:var(--shadow);
  margin-bottom:22px;border:1px solid rgba(255,255,255,.7);position:relative;overflow:hidden;
}
.page-head::before{
  content:"";position:absolute;right:-40px;top:-60px;width:200px;height:200px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(168,85,247,.16),transparent);pointer-events:none;
}
.page-kicker{
  display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:.5px;color:var(--primary);
  background:rgba(99,102,241,.1);padding:4px 10px;border-radius:6px;
}
.page-title{font-size:28px;font-weight:800;margin-top:10px;letter-spacing:-.3px;line-height:1.35}
.page-desc{color:var(--muted);font-size:14px;line-height:1.8;margin-top:10px;max-width:640px}
.page-desc p{margin:0}

/* =========================================================
   Pagination
   ========================================================= */
.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin:34px 0 4px;flex-wrap:wrap}
.pagination .page-numbers{
  min-width:38px;height:38px;line-height:36px;padding:0 12px;border-radius:11px;text-align:center;
  background:#fff;border:1px solid var(--line);font-size:13.5px;color:#454a61;font-weight:600;transition:.22s;
}
.pagination .page-numbers:hover{border-color:#c9c9f5;color:var(--primary);transform:translateY(-1px)}
.pagination .page-numbers.current{background:var(--grad);border-color:transparent;color:#fff;box-shadow:0 10px 22px -12px rgba(99,102,241,.8)}
.pagination .page-numbers.dots{background:transparent;border-color:transparent}

/* =========================================================
   Single entry
   ========================================================= */
.single{
  background:var(--card);border-radius:22px;padding:32px 34px;border:1px solid rgba(255,255,255,.7);
  box-shadow:var(--shadow);min-width:0;
}
.entry-head{margin-bottom:8px}
.entry-cats{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px}
.entry-cats a,.entry-cats .cat{
  display:inline-block;padding:5px 12px;border-radius:8px;font-size:11.5px;font-weight:700;
  color:var(--primary);background:rgba(99,102,241,.1);transition:.2s;
}
.entry-cats a:hover{background:rgba(99,102,241,.18)}
.entry-cats .vip-static{
  padding:5px 10px;border-radius:8px;font-size:11px;font-weight:800;letter-spacing:.6px;color:#4a3200;
  background:linear-gradient(120deg,#ffe08a,#ffb547);box-shadow:0 6px 14px -8px rgba(255,181,71,.7);
}
.entry-title{font-size:clamp(25px,3.2vw,34px);font-weight:800;line-height:1.38;letter-spacing:-.4px}
.entry-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:16px;font-size:12.5px;color:var(--muted)}
.entry-meta a{color:inherit;transition:.2s}
.entry-meta a:hover{color:var(--primary)}
.entry-meta .author{font-size:12.5px}
.entry-meta .author span{width:26px;height:26px}
.entry-cover{margin-top:24px;border-radius:16px;overflow:hidden;aspect-ratio:16/8;background:var(--grad)}
.entry-cover img{width:100%;height:100%;object-fit:cover}

.entry-content{font-size:16px;line-height:1.95;color:#2c3047;margin-top:26px;word-break:break-word}
.entry-content > *:first-child{margin-top:0}
.entry-content p{margin:0 0 1.25em}
.entry-content h2{font-size:24px;font-weight:800;line-height:1.4;margin:1.9em 0 .75em;letter-spacing:-.2px}
.entry-content h3{font-size:20px;font-weight:800;line-height:1.45;margin:1.7em 0 .7em}
.entry-content h4{font-size:17px;font-weight:700;margin:1.5em 0 .6em}
.entry-content a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
.entry-content a:hover{color:var(--primary-2)}
.entry-content ul,.entry-content ol{padding-left:1.5em;margin:0 0 1.25em}
.entry-content li{margin-bottom:.45em}
.entry-content img{border-radius:14px;margin:1.5em auto}
.entry-content blockquote{
  margin:1.6em 0;padding:16px 22px;border-left:4px solid var(--primary);
  background:#f5f4ff;border-radius:0 14px 14px 0;color:#4a4f6b;
}
.entry-content blockquote p:last-child{margin-bottom:0}
.entry-content hr{border:0;height:1px;background:var(--line);margin:2em 0}
.entry-content code{background:#f1f2f9;padding:2px 6px;border-radius:6px;font-size:.9em;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.entry-content pre{background:#11132a;color:#e5e7ff;padding:18px 20px;border-radius:14px;overflow:auto;font-size:13.5px;line-height:1.7;margin:1.6em 0}
.entry-content pre code{background:none;padding:0;color:inherit;font-size:inherit}
.entry-content table{width:100%;border-collapse:collapse;margin:1.6em 0;font-size:14px}
.entry-content th,.entry-content td{border:1px solid var(--line);padding:10px 12px;text-align:left}
.entry-content th{background:#f7f7fd;font-weight:700}
.entry-content .wp-block-button__link{border-radius:10px}
.entry-content .wp-block-quote{border-left:4px solid var(--primary);padding-left:18px}
.entry-foot{margin-top:30px;padding-top:22px;border-top:1px dashed var(--line)}
.entry-tags{display:flex;flex-wrap:wrap;gap:8px}
.entry-tags a{
  padding:6px 12px;border-radius:9px;background:#f4f5fb;font-size:12px;color:#5a5f78;transition:.2s;
}
.entry-tags a:hover{background:rgba(99,102,241,.12);color:var(--primary)}
.page-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:20px;font-size:13px}
.page-links .post-page-numbers{min-width:32px;height:32px;line-height:30px;text-align:center;border-radius:9px;border:1px solid var(--line);padding:0 8px}
.page-links .post-page-numbers.current{background:var(--grad);color:#fff;border-color:transparent}

/* author box */
.author-box{
  display:flex;gap:16px;align-items:flex-start;margin-top:26px;padding:20px;
  border-radius:16px;background:linear-gradient(120deg,#f4f5ff,#faf5ff);
  border:1px solid rgba(255,255,255,.9);
}
.author-box-avatar{border-radius:50%;flex-shrink:0}
.author-box h4{font-size:15px;font-weight:800;margin-bottom:6px}
.author-box h4 a{color:var(--text)}
.author-box p{font-size:13px;color:var(--muted);line-height:1.8}

/* post navigation */
.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}
.post-nav a{
  display:flex;flex-direction:column;gap:4px;padding:14px 18px;border-radius:14px;
  background:#fff;border:1px solid var(--line);transition:.22s;min-width:0;
}
.post-nav a:hover{border-color:#d4d3fb;box-shadow:0 12px 24px -18px rgba(99,102,241,.5)}
.post-nav .nav-label{font-size:11px;color:var(--muted);font-weight:600}
.post-nav .nav-title{font-size:13.5px;font-weight:700;line-height:1.5;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.post-nav .next{text-align:right}

/* related */
.related{margin-top:32px}
.related .section-head h2{font-size:18px}
.related .post-card h3{font-size:15px}
.related .post-card .excerpt{display:none}

/* =========================================================
   Comments
   ========================================================= */
.comments-area{margin-top:36px;padding-top:26px;border-top:1px solid var(--line)}
.comments-area .comment-list{list-style:none;display:flex;flex-direction:column;gap:16px;margin-top:18px}
.comment-list .children{list-style:none;margin-top:16px;padding-left:38px;display:flex;flex-direction:column;gap:16px}
.comment-inner{display:flex;gap:14px;background:#f8f9fe;border-radius:14px;padding:16px;min-width:0;flex:1}
.comment-avatar{border-radius:50%;flex-shrink:0;background:none}
.comment-body{min-width:0;flex:1}
.comment-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:6px}
.comment-head strong,.comment-head .fn{font-size:13.5px;font-weight:700;font-style:normal}
.comment-head strong a,.comment-head .fn a{color:var(--text)}
.comment-head time,.comment-head .comment-metadata{font-size:11.5px;color:var(--muted)}
.comment-text{font-size:13.5px;line-height:1.85;color:#3c4158;word-break:break-word}
.comment-text p:last-child{margin-bottom:0}
.comment-actions{margin-top:8px;font-size:12px}
.comment-actions a{color:var(--primary);font-weight:600}
.comment-pending{font-size:11px;color:#b45309;background:#fff7e6;padding:2px 8px;border-radius:6px}
.comment-reply-title,.comments-title{font-size:18px;font-weight:800;display:flex;align-items:center;gap:10px}
.comment-reply-title::before,.comments-title::before{content:"";width:5px;height:18px;border-radius:3px;background:var(--grad)}
.comment-reply-title small{font-size:12px;font-weight:500}
.comment-respond{margin-top:26px}
.comment-notes,.logged-in-as{font-size:12.5px;color:var(--muted);margin-bottom:14px}
.comment-form{display:flex;flex-direction:column;gap:14px}
.comment-form-author,.comment-form-email,.comment-form-url{display:flex;flex-direction:column;gap:6px}
.comment-form label{font-size:12.5px;font-weight:600;color:#454a61}
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"],.comment-form textarea{
  width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:14px;
  background:#fff;color:var(--text);outline:0;transition:.2s;
}
.comment-form input:focus,.comment-form textarea:focus{border-color:rgba(99,102,241,.5);box-shadow:0 0 0 3px rgba(99,102,241,.12)}
.comment-form textarea{min-height:130px;resize:vertical;line-height:1.7}
.comment-form .comment-form-cookies-consent{flex-direction:row;align-items:center;gap:8px}
.comment-form .comment-form-cookies-consent label{font-weight:500;font-size:12.5px;color:var(--muted)}
.comment-form-cookies-consent input{width:15px;height:15px}
.comment-submit{width:fit-content;min-width:130px;border:0;cursor:pointer}
.comment-navigation{margin-top:18px;font-size:13px}
.no-comments{font-size:13px;color:var(--muted);margin-top:12px}
.comments-area .pingback{display:none}

/* =========================================================
   404
   ========================================================= */
.not-found{
  background:var(--card);border-radius:22px;padding:70px 30px;text-align:center;
  border:1px solid rgba(255,255,255,.7);box-shadow:var(--shadow);margin:26px 0;
}
.nf-code{
  font-size:clamp(70px,14vw,120px);font-weight:900;line-height:1;letter-spacing:-4px;
  background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.not-found h1{font-size:22px;font-weight:800;margin-top:10px}
.not-found p{font-size:14px;color:var(--muted);line-height:1.8;margin:10px auto 22px;max-width:440px}
.not-found .search-form{margin-bottom:20px}
.no-results-search{margin-top:18px;max-width:420px}
.page-desc .search-form{margin-top:16px}

/* =========================================================
   Entry (pages)
   ========================================================= */
.page .single{padding:32px 34px}
.page .entry-title{margin-bottom:6px}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1080px){
  .layout{grid-template-columns:1fr}
  .sidebar{position:static;flex-direction:row;flex-wrap:wrap}
  .sidebar>*{flex:1 1 280px}
  .hero{grid-template-columns:1fr}
  .hero-main{min-height:380px}
  .hero-side{flex-direction:row;flex-wrap:wrap;gap:0 24px}
  .hero-side .hot-item{flex:1 1 200px}
  .hero-side .side-head{width:100%}
  .hero-side .side-head{margin-bottom:0}
}
@media (max-width:860px){
  .nav{
    display:none;position:absolute;left:0;right:0;top:var(--header-h);z-index:60;
    background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
    padding:10px 18px 16px;border-bottom:1px solid var(--line);
    box-shadow:0 24px 34px -26px rgba(23,26,44,.45);
    flex-direction:column;align-items:stretch;gap:2px;max-height:calc(100vh - var(--header-h));overflow:auto;
  }
  .nav.is-open{display:flex}
  .nav ul{flex-direction:column;align-items:stretch;gap:2px}
  .nav a{padding:11px 14px}
  .nav ul ul{position:static;display:flex;box-shadow:none;border:0;padding:0 0 0 14px;background:transparent}
  .nav .current-menu-item > a::after{display:none}
  .mobile-menu{display:grid}
  .header-actions .search-form{display:none}
  .header-inner{gap:14px}
  .header-actions{margin-left:auto}
  .grid{grid-template-columns:1fr}
  .res-list{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .entry-title{font-size:26px}
  .post-nav{grid-template-columns:1fr}
  .post-nav .next{text-align:left}
  .single{padding:26px 22px}
}
@media (max-width:560px){
  .container{width:calc(100% - 28px)}
  .hero-main{min-height:330px}
  .hero-body{padding:22px}
  .hero-desc{max-width:100%;font-size:13px}
  .hero-meta{flex-wrap:wrap;gap:8px 12px}
  .hero-title{max-width:100%}
  .logo-sub{display:none}
  .btn-ghost{display:none}
  .footer-grid{grid-template-columns:1fr}
  .page-head{padding:20px 22px}
  .page-title{font-size:22px}
  .single{padding:22px 18px;border-radius:18px}
  .entry-content{font-size:15.5px}
  .entry-content h2{font-size:21px}
  .entry-content h3{font-size:18px}
  .entry-cover{aspect-ratio:16/10;margin-top:18px}
  .author-box{flex-direction:column}
  .fab{right:16px;bottom:18px}
  .alignwide{margin-left:0;margin-right:0;max-width:100%}
  .alignfull{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
}
