/*
Theme Name: 星和夜 · Night Atlas
Author: xingheye
Description: 冰蓝星空、轻盈玻璃、星尘轨迹与专注阅读。搭配星和夜星友社区插件。
Version: 2.0.0
Requires PHP: 7.4
Text Domain: xingheye-night
License: GNU General Public License v2 or later
*/
:root{--bg:#080d1c;--text:#e8edf9;--muted:#a1adc6;--accent:#a7d9f6;--border:rgba(183,208,255,.14);--glass:rgba(19,28,49,.64);--serif:Georgia,'Noto Serif SC','Songti SC',SimSun,serif;color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.8 -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none;transition:color .2s}a:hover{color:var(--accent)}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}:focus-visible{outline:2px solid var(--accent);outline-offset:5px}::selection{background:#638fb855;color:white}h1,h2,h3,p{margin:0}img{max-width:100%;height:auto}button{color:inherit}#night-sky{position:fixed;inset:0;z-index:-1;pointer-events:none;width:100%;height:100%}.aurora{position:fixed;inset:0;pointer-events:none;z-index:-2;background:radial-gradient(ellipse at 78% 9%,#17345455,transparent 48%),radial-gradient(ellipse at 2% 70%,#36304b35,transparent 40%)}.shell{width:min(1200px,calc(100% - 72px));margin:auto}.glass{background:linear-gradient(140deg,rgba(27,39,62,.74),rgba(13,21,38,.65));border:1px solid var(--border);border-radius:18px;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 18px 60px #00000012}.site-header{position:sticky;top:0;z-index:40;border-bottom:1px solid var(--border);background:#080e1bd9;backdrop-filter:blur(22px)}.admin-bar .site-header{top:32px}.header-inner{width:min(1280px,calc(100% - 72px));height:92px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:13px;font:600 23px/1.3 var(--serif);letter-spacing:3px}.brand small{display:block;font:9px/1.8 sans-serif;letter-spacing:4px;color:#899bb6;margin-top:5px}.brand-mark{font:42px/1 serif;color:#b3d6ee}.site-header nav{display:flex;gap:34px;color:#acb7ca;font-size:14px}.site-header nav a{position:relative;white-space:nowrap}.site-header nav a:hover,.site-header nav a[aria-current]{color:white}.site-header nav a[aria-current]:after{content:'';position:absolute;bottom:-17px;left:calc(50% - 2px);width:4px;height:4px;background:#bddff8;border-radius:50%;box-shadow:0 0 12px #a7d9f6}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:11px 22px;min-height:44px;border:1px solid #acc9f42b;border-radius:8px;background:#bdd4ef0b;color:#e9f2ff;font-size:14px;font-weight:500;transition:background .2s,transform .2s}.button:hover{background:#bdd4ef1b;color:white;transform:translateY(-1px)}.primary{background:#c0dff1;color:#142234;border-color:#c0dff1}.primary:hover{background:#d5ebf8;color:#102030}.hero{min-height:602px;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;position:relative;padding:70px 0 80px}.hero-copy{z-index:1}.hero-kicker{font-size:12px;letter-spacing:3px;color:#b5c2d7;display:flex;align-items:center;gap:10px;margin-bottom:28px}.hero-kicker>span{width:6px;height:6px;border-radius:50%;background:#a5dfd2;box-shadow:0 0 13px #91e8dc}.hero h1{font:500 clamp(44px,4.9vw,68px)/1.3 var(--serif);letter-spacing:5px;margin:0 0 25px}.hero h1 span{color:#b4d7f6}.hero-copy>p{color:#9daec5;line-height:2.1;letter-spacing:1px;font-size:15px}.hero-actions{display:flex;align-items:center;gap:32px;margin-top:30px}.hero-actions .button{padding:12px 26px}.quiet-link{font-size:13px;color:#b5c5d8}.hero-note{color:#778ca8;font-size:11px;letter-spacing:1px;display:flex;align-items:center;gap:10px;margin-top:36px}.hero-note span{font-size:19px;color:#a3c2de}.cosmos{position:relative;height:440px;margin-left:-10px}.planet{position:absolute;width:258px;height:258px;left:50%;top:48%;transform:translate(-50%,-50%) rotate(-24deg);border-radius:50%;background:radial-gradient(circle at 29% 23%,#dbf2ff 0%,#9dbcd4 12%,#6688aa 28%,#294968 52%,#0e1c34 72%);box-shadow:inset -30px -20px 48px #020714,inset 5px 3px 8px #d9faff70,0 0 64px #83b1df23,0 0 130px #437bbd19}.planet:before{content:'';position:absolute;inset:0;border-radius:50%;background:repeating-linear-gradient(13deg,transparent 0px,transparent 11px,#10224020 16px,#d3edff10 18px,transparent 24px);box-shadow:inset -30px -25px 42px #020715aa;filter:blur(2px)}.planet:after{content:'';position:absolute;inset:-3px;border-radius:50%;border:1px solid #b2dbf22a}.orbit{position:absolute;width:440px;height:180px;border:1px solid #a4ccec30;border-radius:50%;left:50%;top:48%;transform:translate(-50%,-50%) rotate(-30deg);z-index:2;box-shadow:0 1px 2px #bed5ea10}.orbit-one:before{content:'';position:absolute;inset:8px -22px;border:1px solid #8cb8dc18;border-radius:50%}.orbit-two{width:390px;height:360px;transform:translate(-50%,-50%) rotate(55deg);z-index:0;border-color:#91b3db14}.orbit-dot{position:absolute;width:10px;height:10px;border-radius:50%;background:#d1ebff;left:5%;top:68%;box-shadow:0 0 20px #acd9ff}.cosmic-label{position:absolute;white-space:nowrap;color:#738da9;font:9px/1.5 sans-serif;letter-spacing:3px}.label-one{right:0;top:12%;transform:rotate(90deg);transform-origin:right}.label-two{left:38%;bottom:3%;font-size:10px;letter-spacing:10px}.star-cross{position:absolute;color:#a8c5df}.cross-one{font-size:38px;right:15%;top:8%}.cross-two{left:12%;top:20%;font-size:22px}.eyebrow{display:block;color:#8195b0;font-size:10px;letter-spacing:2.5px;font-weight:500}.journal-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 28px;padding-top:8px}.journal-heading h2{font:500 25px/1.8 var(--serif);letter-spacing:1px;margin-top:6px}.journal-heading h2 span{font:9px sans-serif;letter-spacing:2px;color:#667c96;margin-left:12px}.journal-heading form{display:flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#14203955;width:245px}.journal-heading input{border:0;background:none;padding:10px 14px;color:#c4d2e7;min-width:0;width:100%;font-size:12px}.journal-heading button{border:0;background:none;width:45px;color:#a5bad1;font-size:25px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;align-items:start}.posts-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;min-width:0}.post-card{padding:25px 26px;display:flex;flex-direction:column;transition:border-color .25s,transform .25s;min-height:280px}.post-card:hover{border-color:#9dc6ed50;transform:translateY(-3px)}.post-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8296b3;gap:12px}.category{font-size:10px;color:#b5ccdf;background:#a4c7e40c;border:1px solid #a4c7e41a;padding:2px 9px;border-radius:5px}.post-card h2{font:500 22px/1.6 var(--serif);margin:20px 0 12px;overflow-wrap:anywhere}.excerpt{font-size:13px;line-height:1.9;color:#9aaac0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:26px}.post-bottom{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #c2d9f310;padding-top:17px;margin-top:auto;font-size:10px;color:#8195af}.post-bottom>a{color:#b8cfe3;white-space:nowrap}.post-bottom>a span{padding-left:8px}.cover{margin:18px -6px 0;overflow:hidden;border-radius:9px}.cover img{display:block;width:100%;max-height:200px;object-fit:cover}.sidebar{display:grid;gap:20px}.profile-card,.widget,.invitation{padding:26px}.profile-card h2{font:500 22px/1.5 var(--serif);margin:10px 0 12px}.profile-card p,.invitation p{font-size:12px;color:#96a7be;line-height:1.95}.mini-orbit{width:48px;height:48px;border:1px solid #9bb7d350;border-radius:50%;display:grid;place-items:center;font:30px serif;color:#c8e2f5;background:radial-gradient(circle at 30% 20%,#aacfe630,#142032);margin-bottom:22px}.profile-stats{display:flex;justify-content:space-between;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:20px 0 16px;padding:14px 0}.profile-stats div{display:grid;text-align:center;gap:2px}.profile-stats b{font:23px var(--serif);font-weight:400;color:#cee1f2}.profile-stats span{font-size:10px;color:#8499b2}.text-link{display:flex;justify-content:space-between;font-size:11px;color:#adc2d9}.widget h3,.invitation h3{font:500 18px var(--serif);margin:10px 0 18px}.categories{list-style:none;padding:0;margin:0;color:#8095ad;font-size:11px}.categories li{border-bottom:1px solid #c2d9f310;padding:10px 0}.categories li:last-child{border:0}.categories a{color:#becbdb;font-size:12px;margin-right:12px}.invitation{background:linear-gradient(135deg,#31405a65,#1b203647)}.invitation a{display:inline-block;color:#bad5eb;font-size:12px;margin-top:20px}.site-footer{margin-top:90px;padding-top:34px;padding-bottom:34px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:24px}.footer-brand{font:22px var(--serif);letter-spacing:3px}.site-footer p{color:#7f93ad;font-size:11px;margin-top:12px;letter-spacing:1px}.site-footer>div:last-child{text-align:right;display:grid;gap:10px;font-size:11px;color:#8094ae}.site-footer button{border:0;background:none;text-align:right;color:#9bb1ca;padding:0;font-size:11px}.pagination{grid-column:1/-1;margin:20px 0;display:flex;gap:12px;flex-wrap:wrap}.page-numbers{padding:7px 12px;border:1px solid var(--border);border-radius:5px}.page-numbers.current{background:#a5c8e52b}.page-heading{padding:65px 0 40px}.page-heading h1{font:500 42px/1.5 var(--serif);margin:14px 0}.page-heading p{font-size:14px;color:var(--muted)}.empty{text-align:center;padding:60px 30px;grid-column:1/-1}.empty h2,.empty h3{font:24px/1.6 var(--serif);margin:15px 0}.empty p{color:var(--muted);margin:15px 0 25px}.empty-star{font:55px serif;color:#b4d7f6}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:26px;margin-top:45px;align-items:start}.article{padding:45px 48px;min-width:0}.back-link{font-size:12px;color:#99afca}.article-heading{border-bottom:1px solid var(--border);padding:30px 0}.article-heading h1{font:500 36px/1.55 var(--serif);margin:15px 0 25px;overflow-wrap:anywhere}.article-author{display:flex;align-items:center;gap:12px;color:#9db0c7;font-size:12px;flex-wrap:wrap}.avatar{border-radius:50%;object-fit:cover}.article-content{font-size:16px;line-height:2.15;color:#c4cfdf;padding-top:28px;overflow-wrap:anywhere}.article-content p{margin:0 0 1.4em}.article-content h2,.article-content h3,.article-content h4{color:#e5edf8;line-height:1.5;margin:1.8em 0 .8em}.article-content h2{font-size:27px}.article-content h3{font-size:22px}.article-content img{border-radius:10px}.article-content figure{margin:26px 0}.article-content figcaption{font-size:12px;color:#90a3be;text-align:center}.article-content a{color:#abd7f3;text-decoration:underline;text-underline-offset:4px}.article-content blockquote{margin:24px 0;padding:16px 24px;border-left:2px solid #a0cbe6;background:#a0cbe608;color:#b9cadf}.article-content blockquote p:last-child{margin:0}.article-content hr{border:0;border-top:1px solid var(--border);margin:40px 0}.article-content pre{background:#050b16;border:1px solid var(--border);border-radius:8px;padding:20px;overflow:auto;font-size:13px;line-height:1.7}.article-content code{font-family:Consolas,monospace;background:#a6c3e00a;padding:2px 5px}.article-content table{display:block;overflow:auto;border-collapse:collapse}.article-content td,.article-content th{padding:10px;border:1px solid var(--border)}.article-tags a{display:inline-block;font-size:12px;padding:3px 10px;background:#aacceb0b;border-radius:5px;margin:10px 7px 10px 0}.article-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:35px 0}.like-button[aria-pressed=true]{color:#eac0d8;border-color:#dca2c355;background:#dca2c30b}.action-message{font-size:12px;color:#a6bdd4}.post-nav{display:flex;justify-content:space-between;gap:24px;border-top:1px solid var(--border);padding-top:22px;font-size:12px}.toc{position:sticky;top:145px;padding:24px;font-size:12px}.toc h3{font:20px var(--serif);margin:10px 0 20px}.toc nav{display:grid;gap:12px;margin-bottom:26px;color:#9db1ca}.toc nav .sub{padding-left:12px}.toc>a{color:#bdd8ee}.page-article{margin:50px auto;max-width:900px}.comments{border-top:1px solid var(--border);margin-top:38px;padding-top:35px}.comments h2{font:25px var(--serif);margin:10px 0 25px}.comments small{font:14px sans-serif;color:#9db1ca;margin-left:8px}.comment-list{list-style:none;padding:0}.comment-list .children{list-style:none;padding-left:25px}.comment-body{padding:22px 0;border-bottom:1px solid var(--border);font-size:14px}.comment-author{display:flex;align-items:center;gap:10px}.comment-metadata{font-size:10px;color:#7c91ad;margin:8px 0}.comment-content{color:#c0ccdc;margin:15px 0}.reply{font-size:12px}.comment-form{display:grid;gap:15px}.comment-form label{display:block;color:#acbbd0;font-size:13px;margin-bottom:6px}.comment-form input:not([type=checkbox]),.comment-form textarea{width:100%}.comment-form-cookies-consent{display:flex;gap:10px}.comment-form-cookies-consent label{display:inline}.comment-form .submit,#wp-submit{background:#c0dff1;color:#142234;border:0;padding:12px 23px;border-radius:7px;cursor:pointer;width:auto!important}.muted{color:var(--muted)}.small{font-size:12px}.form-panel{max-width:510px;margin:0 auto;padding:38px}.form-panel h2{font:27px var(--serif);margin-bottom:15px}.form-panel>p{font-size:13px}.stack-form{display:grid;gap:20px;margin-top:28px}input:not([type=checkbox]):not([type=radio]):not([type=submit]),textarea,select{background:#060d1b77;border:1px solid #b8d1ee24;border-radius:7px;color:#d4e1f2;padding:11px 13px;max-width:100%}input::placeholder,textarea::placeholder{color:#7588a2}.stack-form label{display:grid;gap:8px;font-size:13px;color:#b6c8de}.stack-form input,.stack-form textarea{width:100%}.form-foot{display:flex;justify-content:space-between;gap:20px;margin-top:24px;font-size:12px}.form-foot a{color:#b8d6eb}#loginform{margin-top:24px}#loginform p{margin:18px 0}#loginform label{display:block;font-size:13px;color:#a9bed7;margin-bottom:8px}#loginform input[type=text],#loginform input[type=password]{width:100%}.honeypot{position:absolute;left:-9999px;opacity:0}.notice{padding:16px 22px;background:#91c8b517;border:1px solid #91c8b544;border-radius:9px;margin-bottom:25px;color:#bdedda}.editor-panel{padding:35px}.title-field{width:100%;font-size:26px!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0!important;padding:18px 0!important;margin-bottom:20px;font-family:var(--serif)!important}.category-field{display:flex;align-items:center;gap:20px;font-size:13px;margin-bottom:20px}.editor-attachments{display:flex;align-items:center;gap:15px;margin:24px 0 15px;flex-wrap:wrap}.editor-attachments input{max-width:230px!important;font-size:12px}#upload-status,#draft-status{font-size:12px;color:#9fb2cc}.editor-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:25px}.editor-actions>div{display:flex;gap:10px}.wp-editor-container{border-radius:8px;overflow:hidden;color-scheme:light}.wp-editor-wrap textarea{border:0!important;border-radius:0!important;background:#fbfcfe!important;color:#19283d!important}.editor-panel .wp-editor-tabs button{color:#17263c}.account-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:25px}.account-profile,.my-posts{padding:28px}.account-avatar{display:flex;align-items:center;gap:20px}.account-avatar h2{font:22px var(--serif);margin-top:8px}.account-avatar img{width:70px;height:70px}.account-links{display:flex;gap:24px;margin-top:25px;font-size:12px;color:#a6c0d9}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.section-title h2{font:26px var(--serif);margin-top:8px}.my-post{border-top:1px solid var(--border);padding:22px 0;display:flex;align-items:center;justify-content:space-between;gap:20px}.my-post h3{font:19px/1.6 var(--serif);margin:8px 0}.my-post time{font-size:10px;color:#8098b3}.status-pill{font-size:10px;padding:3px 7px;color:#bcd6e8;background:#95bce212;border-radius:4px}.my-post-actions{display:flex;gap:15px;font-size:12px;align-items:center;flex-wrap:wrap}.danger-link{font-size:11px;border:0;background:none;padding:0;color:#dba4b3;white-space:nowrap}.screen-reader-text,.skip-link{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}.skip-link:focus{clip:auto;width:auto;height:auto;z-index:10000;padding:10px;background:white;color:black;top:10px;left:10px}#to-top{position:fixed;right:24px;bottom:24px;width:40px;height:40px;border-radius:50%;border:1px solid var(--border);background:#1b2b42e6;z-index:30}.motion-off *{animation:none!important;scroll-behavior:auto!important}
@media(min-width:1400px){.hero{min-height:650px}.cosmos{transform:scale(1.07)}}
@media(max-width:1000px){.shell,.header-inner{width:calc(100% - 44px)}.site-header nav{gap:20px}.hero{min-height:540px}.hero h1{font-size:48px}.cosmos{transform:scale(.8);margin-left:-40px}.layout{grid-template-columns:minmax(0,1fr) 260px}.posts-grid{grid-template-columns:1fr}.article-layout{grid-template-columns:minmax(0,1fr) 190px}.article{padding:30px}.account-layout{grid-template-columns:280px minmax(0,1fr)}.my-post{align-items:start;flex-direction:column}.post-card{min-height:245px}}
@media(max-width:760px){.shell,.header-inner{width:calc(100% - 36px)}.header-inner{height:auto;min-height:80px;flex-wrap:wrap;gap:12px;padding:15px 0}.brand{font-size:20px}.brand-mark{font-size:33px}.brand small{font-size:8px}.site-header nav{order:3;width:100%;justify-content:space-between;gap:10px;font-size:12px;padding:6px 0 3px}.site-header nav a[aria-current]:after{bottom:-8px}.write-link{font-size:12px;padding:7px 12px;min-height:36px}.hero{grid-template-columns:1fr;min-height:0;padding:45px 0 25px;overflow:hidden}.hero-copy{position:relative;z-index:2}.hero h1{font-size:47px;letter-spacing:3px}.hero-kicker{font-size:10px;letter-spacing:1.3px}.hero-copy>p{font-size:13px}.cosmos{position:absolute;right:-155px;top:5px;width:440px;height:440px;transform:scale(.7);opacity:.33;z-index:0}.hero-note{margin-top:30px;font-size:10px}.hero-actions{gap:22px}.hero-actions .button{padding:10px 18px;font-size:13px}.journal-heading{margin-top:28px;align-items:start;gap:20px;flex-direction:column}.journal-heading form{width:100%}.journal-heading h2{font-size:24px}.layout{grid-template-columns:1fr}.posts-grid{grid-template-columns:1fr}.post-card{padding:24px;min-height:245px}.sidebar{grid-template-columns:1fr}.profile-card{display:none}.site-footer{margin-top:55px;flex-direction:column;align-items:flex-start;padding-top:28px}.site-footer>div:last-child{text-align:left}.site-footer button{text-align:left}.article-layout{grid-template-columns:1fr;margin-top:25px}.article{padding:24px 20px;border-radius:12px}.article-heading h1{font-size:28px}.article-content{font-size:15px}.toc{display:none}.post-nav{flex-direction:column}.page-heading{padding:40px 0 28px}.page-heading h1{font-size:34px}.form-panel{padding:25px}.editor-panel{padding:20px 14px}.title-field{font-size:23px!important}.editor-actions{align-items:stretch;flex-direction:column}.editor-actions>div{justify-content:space-between}.account-layout{grid-template-columns:1fr}.account-profile,.my-posts{padding:24px}.article-author{gap:8px}.article-author>span:last-child{font-size:10px}.admin-bar .site-header{top:46px}.archive-list .post-card{min-height:0}}
@media(max-width:600px){.admin-bar .site-header{top:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}


/* ══════════════════════════════════════════════════════════════
   1. 增强星空与动态效果 (Dynamic Enhancements)
   ══════════════════════════════════════════════════════════════ */
.aurora {
    animation: aurora-flow 18s ease-in-out infinite alternate !important;
}
@keyframes aurora-flow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.75; }
    50% { transform: scale(1.08) translate(-20px, 15px); opacity: 1; }
    100% { transform: scale(1.04) translate(25px, -15px); opacity: 0.85; }
}

.orbit-one {
    animation: orbit-spin 40s linear infinite !important;
    transform-origin: center center;
}
.orbit-two {
    animation: orbit-spin-rev 60s linear infinite !important;
    transform-origin: center center;
}
.planet {
    animation: planet-float 6s ease-in-out infinite !important;
}
.orbit-dot {
    animation: dot-pulse 3s ease-in-out infinite alternate !important;
}
.star-cross {
    animation: star-glow 4s ease-in-out infinite alternate !important;
}
.brand-mark {
    display: inline-block;
    transition: transform 0.4s ease, filter 0.4s ease;
    animation: brand-glow 5s ease-in-out infinite alternate;
}
.brand:hover .brand-mark {
    transform: rotate(45deg) scale(1.15);
    filter: drop-shadow(0 0 12px var(--accent));
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes orbit-spin-rev {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
@keyframes planet-float {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 25px rgba(167, 217, 246, 0.4)); }
    50% { transform: translateY(-10px) scale(1.03); filter: drop-shadow(0 0 38px rgba(167, 217, 246, 0.75)); }
}
@keyframes dot-pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 10px #fff); }
}
@keyframes star-glow {
    0% { transform: scale(0.85) rotate(0deg); opacity: 0.4; }
    50% { opacity: 1; }
    100% { transform: scale(1.2) rotate(15deg); opacity: 0.85; }
}
@keyframes brand-glow {
    0% { filter: drop-shadow(0 0 4px rgba(167, 217, 246, 0.3)); }
    100% { filter: drop-shadow(0 0 12px rgba(167, 217, 246, 0.85)); }
}

.glass {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease;
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 25px rgba(167, 217, 246, 0.16);
    border-color: rgba(167, 217, 246, 0.4);
}
.post-card .cover img {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.post-card:hover .cover img {
    transform: scale(1.05);
}
.button {
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(167, 217, 246, 0.3);
}

/* ══════════════════════════════════════════════════════════════
   2. 顶部北京时间显示器 (24小时制)
   ══════════════════════════════════════════════════════════════ */
.beijing-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 0 12px rgba(167, 217, 246, 0.05);
    user-select: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.beijing-clock:hover {
    border-color: rgba(167, 217, 246, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), inset 0 0 16px rgba(167, 217, 246, 0.12);
}
.clock-time {
    font-family: 'SF Mono', Consolas, Monaco, 'Courier New', monospace;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 2px;
    color: var(--accent);
    text-shadow: 0 0 14px rgba(167, 217, 246, 0.55);
}
.clock-date {
    font-size: 11px;
    line-height: 1.3;
    color: var(--muted);
    letter-spacing: 0.5px;
    margin-top: 3px;
    white-space: nowrap;
}

@media(max-width: 900px) {
    .beijing-clock {
        order: 2;
        padding: 4px 12px;
    }
    .clock-time {
        font-size: 17px;
    }
    .clock-date {
        font-size: 10px;
    }
}
@media(max-width: 600px) {
    .beijing-clock {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   3. 写文章输入框全透明化 (Transparent Editor)
   ══════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   3. 写文章输入框全透明化与精致星空工具栏 (Full Visual WYSIWYG)
   ══════════════════════════════════════════════════════════════ */
/* 超高特异性重置：彻底消除外层与 iframe 包裹层的所有白色背景 */
html body #wp-xh_content-wrap,
html body #wp-xh_content-wrap .mce-tinymce,
html body #wp-xh_content-wrap .mce-panel,
html body #wp-xh_content-wrap .mce-stack-layout,
html body #wp-xh_content-wrap .mce-stack-layout-item,
html body #wp-xh_content-wrap div.mce-edit-area,
html body #wp-xh_content-wrap div.mce-edit-area iframe,
html body #wp-xh_content-wrap iframe#xh_content_ifr,
html body #wp-xh_content-wrap .wp-editor-container,
html body #wp-xh_content-wrap textarea#xh_content.wp-editor-area {
    background: transparent !important;
    background-color: transparent !important;
    border-color: rgba(183, 208, 255, 0.14) !important;
}

html body #wp-xh_content-wrap .mce-tinymce {
    border: none !important;
    box-shadow: none !important;
}

.wp-editor-container {
    border: 1px solid rgba(183, 208, 255, 0.2) !important;
    border-radius: 14px !important;
    overflow: hidden;
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.wp-editor-container:focus-within {
    border-color: rgba(167, 217, 246, 0.5) !important;
    box-shadow: 0 0 18px rgba(167, 217, 246, 0.2) !important;
}

div.mce-edit-area iframe {
    width: 100% !important;
    min-height: 440px !important;
    background: transparent !important;
    background-color: transparent !important;
}

textarea#xh_content.wp-editor-area {
    color: var(--text) !important;
    border: none !important;
    padding: 18px !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    caret-color: var(--accent) !important;
    box-shadow: none !important;
    font-family: inherit !important;
}

/* TinyMCE 工具栏 (粗体、斜体、列表、标题、分割线、引用等) 顶级暗色星空风格 */
.mce-top-part {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid var(--border) !important;
}
div.mce-toolbar-grp {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 8px 12px !important;
    display: block !important;
}
div.mce-toolbar {
    margin: 3px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    align-items: center !important;
}

/* 按钮与下拉格式列表样式 */
div.mce-btn {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 6px !important;
    margin: 2px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}
div.mce-btn:hover {
    background: rgba(167, 217, 246, 0.25) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 8px rgba(167, 217, 246, 0.2) !important;
}
div.mce-btn.mce-active,
div.mce-btn:active {
    background: rgba(167, 217, 246, 0.35) !important;
    border-color: var(--accent) !important;
}
div.mce-btn button {
    padding: 5px 8px !important;
    font-size: 13px !important;
    line-height: 20px !important;
    color: #e8edf9 !important;
    text-shadow: none !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
div.mce-ico {
    color: #e8edf9 !important;
    font-size: 16px !important;
    line-height: 20px !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    text-align: center !important;
}

/* 标题格式下拉菜单 (formatselect 段落/标题1/标题2/标题3等) */
div.mce-menubtn {
    padding: 0 4px !important;
}
div.mce-menubtn span.mce-txt {
    color: #e8edf9 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
div.mce-caret {
    border-top-color: #a7d9f6 !important;
    margin-top: 8px !important;
}

/* 标题下拉菜单弹出层 (包含 标题1、标题2、标题3、代码块、引用等) */
div.mce-menu {
    background: #0b1329 !important;
    border: 1px solid rgba(167, 217, 246, 0.35) !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(167, 217, 246, 0.15) !important;
    padding: 6px !important;
}
div.mce-menu-item {
    color: #e8edf9 !important;
    border-radius: 6px !important;
    padding: 7px 14px !important;
    transition: background 0.15s;
}
div.mce-menu-item:hover,
div.mce-menu-item.mce-selected {
    background: rgba(167, 217, 246, 0.25) !important;
    color: #ffffff !important;
}
div.mce-menu-item-text {
    color: inherit !important;
    font-size: 13.5px !important;
}

/* 底部状态栏与字数统计微调 */
.mce-statusbar {
    background: rgba(255, 255, 255, 0.02) !important;
    border-top: 1px solid var(--border) !important;
    color: var(--muted) !important;
    font-size: 11px !important;
    padding: 4px 12px !important;
}

/* 隐藏无关杂项切换标签，保持纯粹优雅的全可视化编辑体验 */
.wp-editor-tools,
.wp-editor-tabs {
    display: none !important;
}


/* ══════════════════════════════════════════════════════════════
   4. 文章底部右下角发布与修改时间记录（精确到秒）
   ══════════════════════════════════════════════════════════════ */
.article-timestamps-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}
.article-timestamps-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
.article-timestamps-inner .time-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-timestamps-inner .time-label {
    opacity: 0.75;
}
.article-timestamps-inner time {
    color: var(--accent);
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════
   5. 侧边栏用户个人面板与未登录访客面板
   ══════════════════════════════════════════════════════════════ */
.user-profile-panel .panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.user-avatar-wrap img {
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 16px rgba(167, 217, 246, 0.35);
    display: block;
    object-fit: cover;
}
.user-meta-info h2 {
    font-size: 20px;
    line-height: 1.3;
    color: var(--text);
}
.user-bio {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}
.panel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.panel-actions .small-btn {
    padding: 7px 14px;
    font-size: 12px;
}
.panel-actions .small-link {
    font-size: 12px;
    color: var(--accent);
}
.panel-actions .logout-link {
    margin-left: auto;
    font-size: 12px;
    color: #f6a7a7;
    opacity: 0.85;
}
.panel-actions .logout-link:hover {
    color: #ff6e6e;
    opacity: 1;
}

/* 未登录状态面板 */
.guest-profile-panel {
    text-align: left;
}
.guest-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(167, 217, 246, 0.12);
    border: 1px solid rgba(167, 217, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
    box-shadow: 0 0 16px rgba(167, 217, 246, 0.2);
}
.guest-profile-panel h2 {
    font-size: 20px;
    margin-bottom: 8px;
}
.guest-profile-panel p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}
.guest-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 12px;
}
.guest-actions .guest-login-btn {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
}
.guest-actions .guest-reg-link {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}
.guest-actions .guest-reg-link:hover {
    color: var(--accent);
}

/* 云端自动保存动画 */
.saving-pulse {
    display: inline-block;
    animation: pulse-spin 1s infinite alternate ease-in-out;
}
@keyframes pulse-spin {
    from { transform: scale(0.9); opacity: 0.6; }
    to { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 6px #7bf1a8); }
}


/* ══════════════════════════════════════════════════════════════
   8. 精选帖子徽标与版权声明弹窗样式
   ══════════════════════════════════════════════════════════════ */
/* 精选卡片与标签 */
.post-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.featured-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #120b00;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    padding: 3px 8px;
    border-radius: 5px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
}
.is-featured-card {
    border-color: rgba(255, 215, 0, 0.35) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 215, 0, 0.12) !important;
}
.featured-badge-inline {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #120b00;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    margin-right: 12px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}
.featured-toggle-btn[aria-pressed="true"] {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: #ffd700 !important;
    color: #ffd700 !important;
}

/* 站长与星友写作分类权限条 */
.webmaster-publish-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.featured-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #ffd700;
    cursor: pointer;
    user-select: none;
}
.guest-fixed-category {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cat-pill {
    background: rgba(167, 217, 246, 0.15);
    border: 1px solid rgba(167, 217, 246, 0.3);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}
.admin-crown {
    font-size: 12px;
    color: #ffd700;
    margin-left: 6px;
    font-weight: normal;
}

/* 首次访问版权弹窗 */
body.modal-locked {
    overflow: hidden !important;
}
.copyright-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modal-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.copyright-modal-backdrop.modal-closing {
    animation: modal-fade-out 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modal-fade-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes modal-fade-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

.copyright-modal-box {
    width: min(680px, 95vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 32px 36px;
    border-radius: 20px;
    border: 1px solid rgba(167, 217, 246, 0.25);
    background: rgba(11, 18, 33, 0.94);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 45px rgba(167, 217, 246, 0.12);
}
.modal-header {
    margin-bottom: 16px;
}
.modal-badge {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.modal-header h2 {
    font-size: 24px;
    font-family: var(--serif);
    color: #f0f4fd;
    margin-bottom: 6px;
}
.modal-subtitle {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* 声明内容可滚动框 */
.copyright-scroll-box {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
    padding: 20px 22px;
    background: rgba(4, 9, 20, 0.65);
    border: 1px solid rgba(183, 208, 255, 0.12);
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 1.85;
    color: #d1dcec;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}
.copyright-scroll-box::-webkit-scrollbar {
    width: 6px;
}
.copyright-scroll-box::-webkit-scrollbar-thumb {
    background: rgba(167, 217, 246, 0.3);
    border-radius: 4px;
}
.copyright-scroll-box::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 217, 246, 0.6);
}

.copyright-text p {
    margin-bottom: 12px;
}
.copyright-text ol {
    margin: 12px 0 16px 20px;
    padding: 0;
}
.copyright-text li {
    margin-bottom: 8px;
}
.copyright-text strong {
    color: var(--accent);
}
.copyright-contact {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}
.copyright-contact a {
    color: var(--accent);
    text-decoration: underline;
}
.scroll-bottom-anchor {
    text-align: center;
    font-size: 12px;
    color: #7bf1a8;
    margin-top: 18px;
    padding: 6px 0;
    opacity: 0.85;
}

/* 弹窗底部控制栏 */
.modal-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.read-progress-hint {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}
.timer-tag, .scroll-tag {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.25s;
}
.tag-done {
    background: rgba(123, 241, 168, 0.15) !important;
    color: #7bf1a8 !important;
    font-weight: 600;
}
.confirm-btn {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 10px;
    transition: all 0.3s;
}
.confirm-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    color: var(--muted);
}
.confirm-btn.glow-ready {
    background: linear-gradient(135deg, #2b6cb0 0%, #319795 100%) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    box-shadow: 0 0 20px rgba(49, 151, 149, 0.6) !important;
    animation: confirm-pulse 2s infinite alternate ease-in-out;
}
@keyframes confirm-pulse {
    from { box-shadow: 0 0 15px rgba(49, 151, 149, 0.4); }
    to { box-shadow: 0 0 30px rgba(167, 217, 246, 0.7); }
}

@media(max-width: 600px) {
    .copyright-modal-box {
        padding: 22px 18px;
    }
    .modal-header h2 {
        font-size: 20px;
    }
    .copyright-scroll-box {
        max-height: 250px;
        font-size: 13.5px;
    }
    .read-progress-hint {
        flex-direction: column;
        gap: 6px;
    }
}


/* ══════════════════════════════════════════════════════════════
   9. 站长自定义分类管理器与精美星空标签样式
   ══════════════════════════════════════════════════════════════ */
.category-manager-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.category-input-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.cat-label {
    font-size: 13.5px;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}
.cat-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 280px;
    flex-wrap: wrap;
}
.custom-category-input {
    flex: 1;
    min-width: 220px;
    background: rgba(167, 217, 246, 0.08) !important;
    border: 1px solid rgba(167, 217, 246, 0.38) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.25s ease;
}
.custom-category-input:focus {
    border-color: #a7d9f6 !important;
    box-shadow: 0 0 14px rgba(167, 217, 246, 0.35), inset 0 0 10px rgba(0, 0, 0, 0.3) !important;
    background: rgba(167, 217, 246, 0.12) !important;
}
.cat-input-hint {
    font-size: 11.5px;
    color: var(--muted);
    opacity: 0.85;
}
.history-categories-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.history-title {
    font-size: 12px;
    color: var(--accent);
    white-space: nowrap;
    opacity: 0.9;
}
.history-pills-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 彻底去除灰色，采用清亮星空蓝流光标签 */
.history-cat-pill {
    background: rgba(167, 217, 246, 0.1) !important;
    border: 1px solid rgba(167, 217, 246, 0.32) !important;
    border-radius: 20px !important;
    padding: 5px 14px !important;
    font-size: 12.5px !important;
    color: #d1e3fa !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.history-cat-pill::before {
    content: '✧';
    font-size: 11px;
    color: var(--accent);
}
.history-cat-pill:hover {
    background: rgba(167, 217, 246, 0.25) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(167, 217, 246, 0.3) !important;
}
.history-cat-pill.is-active {
    background: linear-gradient(135deg, rgba(30, 73, 118, 0.85) 0%, rgba(32, 99, 143, 0.85) 100%) !important;
    border-color: #a7d9f6 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 0 16px rgba(167, 217, 246, 0.45) !important;
}

/* 隐藏原生灰色 file 控件，启用星空琉璃上传按钮 */
input#attach-file {
    display: none !important;
}
.attach-upload-btn {
    background: rgba(167, 217, 246, 0.12) !important;
    border: 1px solid rgba(167, 217, 246, 0.4) !important;
    color: #e8edf9 !important;
    padding: 9px 18px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 0 10px rgba(167, 217, 246, 0.08) !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.attach-upload-btn:hover {
    background: rgba(167, 217, 246, 0.25) !important;
    border-color: #a7d9f6 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(167, 217, 246, 0.35) !important;
}
.upload-icon-star {
    color: #a7d9f6;
    font-size: 15px;
    animation: star-glow 3s infinite alternate;
}


/* ══════════════════════════════════════════════════════════════
   10. 字数统计与星空蓝光标签增强 (Word Count & Stellar Glow)
   ══════════════════════════════════════════════════════════════ */
.article-word-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: normal;
}
.word-count-num {
    color: #a7d9f6;
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    font-weight: 600;
}
.post-word-pill {
    color: #8da4be;
    font-size: 11px;
}
.my-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

/* 个人中心数据统计卡片增强 */
.account-stats-summary {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px 12px !important;
    margin: 16px 0 20px !important;
    border: 1px solid var(--border);
}
.account-stats-summary div b {
    color: #a7d9f6 !important;
    font-size: 26px !important;
    text-shadow: 0 0 16px rgba(167, 217, 246, 0.45);
}

/* 彻底封杀平时泄漏在页面底部的 wp-link 链接窗口 */
div#wp-link-wrap,
div#wp-link-backdrop,
div.wp-link-backdrop {
    display: none !important;
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 评论区多余的站点(URL)输入框彻底隐藏 */
.comment-form-url {
    display: none !important;
}

/* 历史分类标签：鲜艳星空深蓝发光胶囊，绝无任何暗灰色 */
.history-cat-pill {
    background: rgba(30, 58, 102, 0.75) !important;
    border: 1px solid #7bc5f1 !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 10px rgba(123, 197, 241, 0.3) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.history-cat-pill:hover,
.history-cat-pill.is-active {
    background: linear-gradient(135deg, #1b6ca8 0%, #0098a6 100%) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 16px rgba(167, 217, 246, 0.6) !important;
}


/* ══════════════════════════════════════════════════════════════
   10. 字数统计与星空蓝光标签增强 (Word Count & Stellar Glow)
   ══════════════════════════════════════════════════════════════ */
.article-word-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: normal;
}
.word-count-num {
    color: #a7d9f6;
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    font-weight: 600;
}
.post-word-pill {
    color: #8da4be;
    font-size: 11px;
}
.my-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

/* 个人中心数据统计卡片增强 */
.account-stats-summary {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px 12px !important;
    margin: 16px 0 20px !important;
    border: 1px solid var(--border);
}
.account-stats-summary div b {
    color: #a7d9f6 !important;
    font-size: 26px !important;
    text-shadow: 0 0 16px rgba(167, 217, 246, 0.45);
}

/* 彻底封杀平时泄漏在页面底部的 wp-link 链接窗口 */
div#wp-link-wrap,
div#wp-link-backdrop,
div.wp-link-backdrop {
    display: none !important;
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 评论区多余的站点(URL)输入框彻底隐藏 */
.comment-form-url {
    display: none !important;
}

/* 历史分类标签：鲜艳星空深蓝发光胶囊，绝无任何暗灰色 */
.history-cat-pill {
    background: rgba(30, 58, 102, 0.75) !important;
    border: 1px solid #7bc5f1 !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 10px rgba(123, 197, 241, 0.3) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.history-cat-pill:hover,
.history-cat-pill.is-active {
    background: linear-gradient(135deg, #1b6ca8 0%, #0098a6 100%) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 16px rgba(167, 217, 246, 0.6) !important;
}

#upload-dropzone{border:1px dashed #a7d9f65c;padding:18px;border-radius:10px;flex-wrap:wrap}#write-form.upload-drag #upload-dropzone{border-color:#a7d9f6;background:#a7d9f61a}#upload-status{overflow-wrap:anywhere;white-space:pre-line}
