/* ============================================
   Fisssssh's Space - Custom Design v4
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
html{scroll-behavior:smooth}
body{background:#fff;font-family:'Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px;color:#334155;line-height:1.7;-webkit-font-smoothing:antialiased}
:root{--cyan:#06b6d4;--cyan-light:#22d3ee;--cyan-dark:#0891b2;--cyan-bg:#ecfeff;--surface:#fff;--border:#e2e8f0;--text-primary:#1e293b;--text-secondary:#64748b;--text-muted:#94a3b8;--shadow-sm:0 1px 3px rgba(0,0,0,.05);--shadow-md:0 4px 14px rgba(0,0,0,.06);--shadow-lg:0 8px 30px rgba(0,0,0,.08);--radius-sm:8px;--radius-md:12px;--radius-lg:16px}
a{color:var(--text-primary);transition:.2s;text-decoration:none}
a:hover{color:var(--cyan)}
h1,h2,h3,h4{color:var(--text-primary)}
h1{font-weight:700;letter-spacing:-.02em}
h2{font-weight:650}
::selection{background:var(--cyan-bg);color:var(--cyan-dark)}
a:focus-visible,button:focus-visible{outline:2px solid var(--cyan-light);outline-offset:2px;border-radius:4px}

.ct-container{max-width:1280px!important;padding:0 1.25rem}
.ct-container>article{max-width:850px!important}
.ct-container>aside{width:340px!important;flex-shrink:0}
#main-container{background:transparent;overflow:visible}

/* === HEADER === */
.ct-header{background:rgba(255,255,255,.9)!important;backdrop-filter:blur(20px) saturate(1.6);-webkit-backdrop-filter:blur(20px) saturate(1.6);border-bottom:1px solid var(--border);transition:all .3s ease;padding:.5rem 0}
@media(min-width:769px){.ct-header{position:sticky;top:0;z-index:100}}
.ct-header[data-sticky],.ct-header:has(.sticky){box-shadow:0 2px 12px rgba(0,0,0,.04)}
.ct-header .custom-logo-link img,.ct-header .site-logo img,.ct-header .site-branding img{max-height:72px!important;border-radius:6px!important}
.ct-header .site-branding{padding:2px 0}
.site-title a,.site-title,.ct-header .site-title a{font-weight:700!important;font-size:1.5rem!important;color:var(--text-primary)!important;letter-spacing:-.02em;transition:color .2s ease}
.site-title a:hover,.ct-header .site-title a:hover{color:var(--cyan)!important}
.ct-header .menu-item a{border-radius:8px;padding:7px 16px!important;color:var(--text-secondary);font-weight:500;font-size:1rem;transition:all .25s cubic-bezier(.4,0,.2,1);position:relative}
.ct-header .menu-item a::after{content:'';position:absolute;bottom:2px;left:50%;width:0;height:2px;background:var(--cyan);border-radius:1px;transition:all .25s cubic-bezier(.4,0,.2,1);transform:translateX(-50%)}
.ct-header .menu-item a:hover::after{width:50%}
.ct-header .menu-item a:hover{background:var(--cyan-bg);color:var(--cyan)}
.ct-header .menu-item.current-menu-item a{background:transparent;color:var(--cyan)!important;font-weight:600;border-bottom:2px solid var(--cyan);padding-bottom:5px!important;border-radius:0}
.ct-header .menu-item.current-menu-item a::after{display:none}
.ct-header-search,.ct-search-trigger{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--text-secondary);transition:all .2s;cursor:pointer}
.ct-header-search:hover,.ct-search-trigger:hover{background:var(--cyan-bg);color:var(--cyan)}

/* === HERO === */
.hero-section{padding:2rem 0 1.2rem!important;text-align:center;position:relative;overflow:hidden}
.hero-section>*{position:relative;z-index:1}
.hero-section .page-title{font-size:2.1rem!important;font-weight:700!important;line-height:1.3;color:var(--text-primary)!important}
.entry-content>*:first-child{text-align:center;padding:.5rem 1rem!important;background:transparent!important;border:none!important;box-shadow:none!important}
.entry-content>*:first-child .wp-block-heading{font-size:2.1rem!important;font-weight:700!important;color:var(--text-primary)!important;margin-bottom:.4rem!important}
.entry-content>*:first-child mark{background:none!important;color:inherit!important;padding:0}

.entry-content>*:first-child div[style*="border-radius"],
.entry-content>*:first-child div[style*="padding:"],
.entry-content>*:first-child div[style*="display:inline-block"],
.entry-content>*:first-child div[style*="background"],
.entry-content>*:first-child div[style*="box-shadow"]{background:transparent!important;border:none!important;box-shadow:none!important;backdrop-filter:none!important}

/* === SOCIAL PILLS === */
.hwc-social-links{background:transparent!important}
.hwc-social-link{display:inline-flex!important;align-items:center;gap:8px;padding:9px 22px!important;margin:4px 5px;border-radius:24px!important;background:var(--surface)!important;border:1px solid var(--border)!important;color:var(--text-secondary)!important;font-size:.88rem;font-weight:500;text-decoration:none!important;transition:all .25s ease;box-shadow:var(--shadow-sm)}
.hwc-social-link:hover{background:var(--cyan-bg)!important;color:var(--cyan)!important;border-color:var(--cyan-light)!important;transform:translateY(-2px);box-shadow:var(--shadow-md)}
.hwc-social-link svg{width:16px;height:16px;opacity:.85}

/* === POST CARDS === */
.hwc-post-cards{display:grid!important;grid-template-columns:repeat(2,1fr);gap:1.2rem}
.hwc-vertical-card{display:flex!important;flex-direction:column;background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-sm)!important;text-decoration:none!important;color:var(--text-primary)!important;transition:all .3s cubic-bezier(.4,0,.2,1);overflow:hidden;position:relative}
.hwc-vertical-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--cyan),var(--cyan-light));opacity:0;transition:opacity .3s ease}
.hwc-vertical-card:hover::before{opacity:1}
.hwc-vertical-card:hover{box-shadow:var(--shadow-lg),0 0 0 4px rgba(6,182,212,.06)!important;transform:translateY(-4px);border-color:rgba(6,182,212,.25)}
.hwc-vertical-card>div{padding:1.4rem!important;display:flex!important;flex-direction:column!important;flex:1}
.hwc-vertical-card span:first-of-type{background:var(--cyan-bg)!important;color:var(--cyan-dark)!important;border-radius:6px!important;padding:3px 10px!important;font-size:.7rem!important;font-weight:600!important;letter-spacing:.04em;text-transform:uppercase;margin-bottom:.6rem!important;align-self:flex-start!important}
.hwc-vertical-card h3{font-size:1.1rem!important;font-weight:650!important;line-height:1.45!important;margin:0 0 8px 0!important;color:var(--text-primary)!important}
.hwc-vertical-card:hover h3{color:var(--cyan)!important}
.hwc-vertical-card p{font-size:.84rem!important;color:var(--text-secondary)!important;line-height:1.6!important;margin:0 0 8px 0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hwc-vertical-card span:last-of-type{font-size:.75rem;color:var(--text-muted);margin-top:auto;padding-top:.5rem}
@keyframes cardFadeIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.hwc-vertical-card{animation:cardFadeIn .5s ease both}
.hwc-vertical-card:nth-child(1){animation-delay:.05s}
.hwc-vertical-card:nth-child(2){animation-delay:.13s}
.hwc-vertical-card:nth-child(3){animation-delay:.21s}
.hwc-vertical-card:nth-child(4){animation-delay:.29s}

.entry-content h2.wp-block-heading{font-size:1.15rem!important;font-weight:650!important;margin:.5rem 0 .6rem!important;color:var(--text-primary)}
.entry-content>.wp-block-group:nth-child(n+2){background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important}
.wp-block-separator{border:none;border-top:1px solid var(--border);margin:.4rem 0;opacity:.4}

/* === SIDEBAR === */
.ct-container>aside{background:transparent;padding-left:1rem}
.ct-container>aside .ct-widget{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-sm)!important;padding:1.1rem!important;margin-bottom:.8rem!important;transition:box-shadow .3s ease}
.ct-container>aside .ct-widget:hover{box-shadow:var(--shadow-md)!important}
.ct-container>aside .ct-widget::before{content:'';display:block;width:24px;height:3px;background:var(--cyan);border-radius:2px;margin-bottom:.6rem}
.ct-container>aside .widget-title{font-size:.8rem!important;font-weight:600!important;color:var(--text-primary)!important;margin-bottom:.5rem!important;padding-bottom:0!important;border-bottom:none!important;letter-spacing:.04em;text-transform:uppercase}

/* === CALENDAR === */
.wp-block-calendar{padding:0!important}
.wp-block-calendar table{width:100%;border-spacing:0;margin:0;border-collapse:collapse}
.wp-block-calendar caption{font-weight:650;color:var(--text-primary);padding-bottom:.5rem;font-size:.82rem}
.wp-block-calendar thead{border-bottom:1px solid var(--border)}
.wp-block-calendar th{font-weight:600;color:var(--text-muted);padding:5px 0;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em}
.wp-block-calendar td{text-align:center;padding:4px 0;border-radius:6px;font-size:.77rem;color:var(--text-primary);transition:.15s}
.wp-block-calendar td:hover{background:#f8fafc}
.wp-block-calendar td a{display:block;background:var(--cyan);color:#fff!important;border-radius:6px;padding:2px 0;font-weight:600;margin:0 3px}
.wp-block-calendar td a:hover{background:var(--cyan-dark)}
#today,.wp-calendar-table #today{background:var(--cyan-bg)!important;border-radius:6px;font-weight:650;color:var(--cyan)!important}
.wp-calendar-nav{display:flex;justify-content:space-between;padding:.35rem 0 0}
.wp-calendar-nav a{color:var(--cyan);font-weight:500;font-size:.8rem}
.ct-widget:has(img[alt*=weather]),.ct-widget:has(img[alt*=天气]){text-align:center}

/* === SINGLE POST === */
.single-post .entry-content{max-width:760px!important;margin:0 auto}
.single-post .entry-content p{font-size:1.08rem;line-height:1.95;margin-bottom:1.5rem;color:#334155}
.single-post .entry-content h2{font-size:1.5rem!important;font-weight:650!important;margin:2.5rem 0 1rem!important;padding-bottom:.5rem;border-bottom:2px solid var(--cyan-bg)}
.single-post .entry-content h3{font-size:1.2rem!important;font-weight:600!important;margin:2rem 0 .75rem!important}
.single-post .entry-content pre{background:#0f172a!important;color:#e2e8f0!important;border-radius:var(--radius-md);font-size:.9rem;padding:1.25rem 1.5rem;overflow-x:auto;line-height:1.7;margin:1.5rem 0}
.single-post .entry-content code{padding:2px 7px;border-radius:4px;background:#f1f5f9;color:var(--cyan-dark);font-size:.9em}
.single-post .entry-content pre code{background:transparent!important;color:inherit!important;padding:0;border-radius:0}
.single-post .entry-content blockquote{border-left:4px solid var(--cyan-light);background:var(--cyan-bg);padding:1rem 1.5rem;border-radius:0 var(--radius-md) var(--radius-md) 0;margin:1.5rem 0;color:var(--text-secondary);font-size:1rem}
.single-post .entry-content ul,.single-post .entry-content ol{padding-left:1.5rem;margin-bottom:1.5rem}
.single-post .entry-content li{margin-bottom:.6rem}
.single-post .entry-content img{border-radius:var(--radius-md);max-width:100%;margin:1.5rem 0;box-shadow:var(--shadow-sm)}
.single-post .entry-content table{width:100%;border-collapse:collapse;margin:1.5rem 0}
.single-post .entry-content th,.single-post .entry-content td{border:1px solid var(--border);padding:10px 14px}
.single-post .entry-content th{background:#f8fafc;font-weight:600}
.single-post .entry-header{text-align:center;padding:1.5rem 0}
.single-post .entry-header .entry-title{font-size:2.1rem!important;font-weight:700!important;line-height:1.3;color:var(--text-primary)}
.single-post .entry-meta{text-align:center;color:var(--text-secondary);font-size:.87rem;margin-bottom:1.5rem}
.archive .entry-content,.blog .entry-content{max-width:880px!important;margin:0 auto}

.comment-respond,.comments-area{margin-top:2rem;padding:1.5rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md)}
.comment-form textarea,.comment-form input{width:100%;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.95rem;transition:.2s}
.comment-form textarea:focus,.comment-form input:focus{border-color:var(--cyan-light);outline:none;box-shadow:0 0 0 3px rgba(6,182,212,.1)}
.comment-form .submit{background:var(--cyan);color:#fff;border:none;border-radius:var(--radius-sm);padding:10px 24px;font-weight:500;cursor:pointer;transition:.2s}
.comment-form .submit:hover{background:var(--cyan-dark)}

/* === FOOTER === */
footer.hwc-footer{background:#f8fafc!important;color:var(--text-secondary)!important;padding:2rem 0 1.5rem!important;border-top:1px solid var(--border)!important}
footer.hwc-footer a{color:var(--text-primary)!important;font-weight:500}
footer.hwc-footer a:hover{color:var(--cyan)!important}
footer.hwc-footer .hwc-footer-accent{display:none!important}
footer.ct-footer{display:none!important}

/* === FUN === */
@keyframes float{0%,100%{transform:translateY(0) rotate(0deg);opacity:.2}50%{transform:translateY(-20px) rotate(180deg);opacity:.4}}
body::after{content:'';position:fixed;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:-1;background-image:radial-gradient(1.5px 1.5px at 20% 30%,var(--cyan-light),transparent),radial-gradient(1.5px 1.5px at 50% 70%,var(--cyan-light),transparent),radial-gradient(1px 1px at 70% 15%,var(--cyan),transparent),radial-gradient(2px 2px at 85% 55%,var(--cyan-light),transparent),radial-gradient(1px 1px at 15% 80%,var(--cyan),transparent),radial-gradient(1.5px 1.5px at 60% 90%,var(--cyan-light),transparent);background-size:200% 200%;animation:float 25s ease-in-out infinite}
#reading-progress{position:fixed;top:0;left:0;z-index:9999;height:2.5px;background:linear-gradient(90deg,var(--cyan),#22d3ee);border-radius:0 2px 0 0}

/* === FLOATING PARTICLES === */
#bg-particles{position:absolute;top:0;left:0;width:100%;pointer-events:none;z-index:0}
#back-to-top{position:fixed;bottom:30px;right:30px;z-index:9999;width:44px;height:44px;border-radius:50%;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-md);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-secondary);font-size:1.3rem;transition:all .3s cubic-bezier(.4,0,.2,1);opacity:0;transform:translateY(20px);pointer-events:none;overflow:hidden}
#back-to-top.show{opacity:1;transform:translateY(0);pointer-events:auto}
#back-to-top:hover{background:var(--cyan);border-color:var(--cyan)}
#back-to-top:hover .rocket{animation:rocketLaunch .6s ease forwards}
@keyframes rocketLaunch{0%{transform:translateY(0)}50%{transform:translateY(-8px) scale(1.2)}100%{transform:translateY(-60px);opacity:0}}
.entry-content>*:first-child .wp-block-heading::after{content:'|';display:inline-block;animation:blink 1s step-end infinite;color:var(--cyan);font-weight:300;margin-left:2px}
@keyframes blink{0%,100%{opacity:1}50%{opacity:0}}
#progress-ring{position:fixed;bottom:30px;right:30px;z-index:998;width:42px;height:42px;border-radius:50%;pointer-events:none;opacity:0;transition:opacity .3s ease}
#progress-ring.show{opacity:1}
#reading-time{display:inline-block;margin-left:1rem;font-size:.82rem;color:var(--text-muted)}
pre{position:relative}
.copy-code-btn{position:absolute;top:8px;right:8px;padding:4px 10px;border-radius:5px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08);color:#94a3b8;font-size:.72rem;cursor:pointer;transition:all .2s;z-index:2;line-height:1.4;font-weight:500}
.copy-code-btn:hover{background:rgba(255,255,255,.18);color:#e2e8f0;border-color:rgba(255,255,255,.25)}
#random-quote{text-align:center;padding:1.25rem 1rem!important}
#random-quote .quote-text{font-size:.88rem;font-style:italic;color:var(--text-secondary);line-height:1.6;margin-bottom:.5rem}
#random-quote .quote-attr{font-size:.72rem;color:var(--text-muted);font-weight:500}
#live-status{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;color:var(--text-muted);font-weight:500;margin-left:auto;padding:0 4px}
.pulse-dot{width:7px;height:7px;border-radius:50%;background:#22c55e;animation:pulse 2s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.5)}}
#dark-mode-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;border:1px solid var(--border);background:transparent;color:var(--text-secondary);font-size:1rem;cursor:pointer;transition:all .25s ease;margin-left:8px}
#dark-mode-toggle:hover{background:var(--cyan-bg);color:var(--cyan);border-color:var(--cyan-light)}

/* === DARK MODE (Manual Toggle) === */
html[data-dark="1"]{--surface:#1e293b;--border:#334155;--text-primary:#f1f5f9;--text-secondary:#cbd5e1;--text-muted:#64748b;--cyan-bg:rgba(6,182,212,.15);--shadow-sm:0 1px 3px rgba(0,0,0,.3);--shadow-md:0 4px 14px rgba(0,0,0,.4);--shadow-lg:0 8px 30px rgba(0,0,0,.5)}
html[data-dark="1"] body{background:#0f172a!important;color:#e2e8f0!important}
html[data-dark="1"] body,html[data-dark="1"] p,html[data-dark="1"] li,html[data-dark="1"] span,html[data-dark="1"] div{color:#e2e8f0}
html[data-dark="1"] h1,html[data-dark="1"] h2,html[data-dark="1"] h3,html[data-dark="1"] h4{color:#f8fafc!important}
html[data-dark="1"] a{color:#cbd5e1!important}
html[data-dark="1"] a:hover{color:var(--cyan-light)!important}
html[data-dark="1"] .ct-header{background:transparent!important;border-bottom-color:#334155!important}
html[data-dark="1"] .ct-header [data-row]{background:rgba(15,23,42,.96)!important}
html[data-dark="1"] .ct-header .ct-container{background:transparent!important}
html[data-dark="1"] .ct-header .menu-item a{color:#cbd5e1!important}
html[data-dark="1"] .ct-header .menu-item a:hover{color:var(--cyan-light)!important}
html[data-dark="1"] .ct-header .menu-item.current-menu-item a{color:var(--cyan-light)!important;border-bottom-color:var(--cyan-light)!important}
html[data-dark="1"] .ct-header-search,html[data-dark="1"] .ct-search-trigger{color:#cbd5e1!important}
html[data-dark="1"] .ct-header-search:hover,html[data-dark="1"] .ct-search-trigger:hover{background:rgba(6,182,212,.15)!important;color:var(--cyan-light)!important}
html[data-dark="1"] .site-title a{color:#f8fafc!important}
html[data-dark="1"] .site-title a:hover{color:var(--cyan-light)!important}
html[data-dark="1"] footer.hwc-footer{background:#1e293b!important;color:#cbd5e1!important;border-top-color:#334155!important}
html[data-dark="1"] footer.hwc-footer a{color:#cbd5e1!important}
html[data-dark="1"] footer.hwc-footer a:hover{color:var(--cyan-light)!important}
html[data-dark="1"] .hwc-vertical-card,html[data-dark="1"] .hwc-vertical-card>div{background:#1e293b!important;border-color:#334155!important}
html[data-dark="1"] .hwc-vertical-card h3{color:#f1f5f9!important}
html[data-dark="1"] .hwc-vertical-card:hover h3{color:var(--cyan-light)!important}
html[data-dark="1"] .hwc-vertical-card p{color:#cbd5e1!important}
html[data-dark="1"] .hwc-vertical-card span:first-of-type{background:rgba(6,182,212,.18)!important;color:var(--cyan-light)!important}
html[data-dark="1"] .hwc-vertical-card span:last-of-type{color:#64748b!important}
html[data-dark="1"] .hwc-social-link{background:#1e293b!important;border-color:#334155!important;color:#cbd5e1!important}
html[data-dark="1"] .hwc-social-link:hover{background:rgba(6,182,212,.18)!important;color:var(--cyan-light)!important}
html[data-dark="1"] .ct-widget *,html[data-dark="1"] aside .ct-widget *,html[data-dark="1"] aside *{color:#e2e8f0!important}
html[data-dark="1"] .ct-widget h3,html[data-dark="1"] aside .ct-widget h3,html[data-dark="1"] aside h3{color:#f1f5f9!important}
html[data-dark="1"] .ct-widget a,html[data-dark="1"] aside .ct-widget a{color:var(--cyan-light)!important}
html[data-dark="1"] .ct-widget [style*=e67e22],html[data-dark="1"] aside [style*=e67e22]{color:#ff9800!important}
html[data-dark="1"] .ct-widget [style*=5dade2],html[data-dark="1"] aside [style*=5dade2]{color:#64b5f6!important}
html[data-dark="1"] .ct-widget .widget-title,html[data-dark="1"] .widget .widget-title{color:#f1f5f9!important}
html[data-dark="1"] .ct-widget::before,html[data-dark="1"] aside .ct-widget::before{background:var(--cyan-light)}
html[data-dark="1"] [style*="background:#fff"],html[data-dark="1"] [style*="background: #fff"],html[data-dark="1"] [style*="background:white"],html[data-dark="1"] [style*="background: white"]{background:#1e293b!important;color:#e2e8f0!important}
html[data-dark="1"] [style*="background:#fff"] h3,html[data-dark="1"] [style*="background:#fff"] h2,html[data-dark="1"] [style*="background:white"] h3,html[data-dark="1"] [style*="background:white"] h2{color:#f1f5f9!important}
html[data-dark="1"] [style*="background:rgba(255"]{background:#1e293b!important;color:#e2e8f0!important}
html[data-dark="1"] [style*="color:#555"],
html[data-dark="1"] [style*="color:#666"],
html[data-dark="1"] [style*="color:#777"],
html[data-dark="1"] [style*="color:#888"],
html[data-dark="1"] [style*="color:#999"],
html[data-dark="1"] [style*="color:#aaa"],
html[data-dark="1"] [style*="color:#bbb"],
html[data-dark="1"] [style*="color:#333"],
html[data-dark="1"] [style*="color:#4a4a4a"],
html[data-dark="1"] [style*="color:#6b6b6b"],
html[data-dark="1"] [style*="color:#e67e22"],
html[data-dark="1"] [style*="color:#5dade2"],
html[data-dark="1"] [style*="color:#222"],
html[data-dark="1"] [style*="color:#1a1a1a"],
html[data-dark="1"] [style*="color: #555"],
html[data-dark="1"] [style*="color: #666"],
html[data-dark="1"] [style*="color: #777"],
html[data-dark="1"] [style*="color: #888"],
html[data-dark="1"] [style*="color: #999"],
html[data-dark="1"] [style*="color: #aaa"],
html[data-dark="1"] [style*="color: #bbb"],
html[data-dark="1"] [style*="color: #333"]
{color:#e2e8f0!important}
html[data-dark="1"] [style*="color:#222"]{color:#f1f5f9!important}
html[data-dark="1"] [style*="color:#bbb"]{color:#cbd5e1!important}
html[data-dark="1"] .wp-block-calendar,html[data-dark="1"] .widget_calendar{background:#1e293b!important}
html[data-dark="1"] .wp-block-calendar table,html[data-dark="1"] .widget_calendar table{background:#1e293b!important}
html[data-dark="1"] .wp-block-calendar th,html[data-dark="1"] .widget_calendar th,html[data-dark="1"] .wp-block-calendar thead th{background:#1e293b!important;color:#94a3b8!important}
html[data-dark="1"] .wp-block-calendar td,html[data-dark="1"] .widget_calendar td{background:#1e293b!important;color:#e2e8f0!important}
html[data-dark="1"] .wp-block-calendar caption{color:#f1f5f9!important}
html[data-dark="1"] .wp-block-calendar td a{background:var(--cyan)!important;color:#fff!important}
html[data-dark="1"] .wp-block-calendar td a:hover{background:var(--cyan-dark)!important}
html[data-dark="1"] .wp-block-calendar td:hover{background:#334155!important}
html[data-dark="1"] .wp-block-calendar thead{border-bottom-color:#334155!important}
html[data-dark="1"] #today,.wp-calendar-table #today{background:rgba(6,182,212,.2)!important;color:var(--cyan-light)!important}
html[data-dark="1"] .wp-calendar-nav a{color:var(--cyan-light)!important}
html[data-dark="1"] .single-post .entry-content p{color:#e2e8f0!important}
html[data-dark="1"] .single-post .entry-content h2{border-bottom-color:#334155!important}
html[data-dark="1"] .single-post .entry-content pre{background:#020617!important}
html[data-dark="1"] .single-post .entry-content code{background:#1e293b;color:#7dd3fc}
html[data-dark="1"] .single-post .entry-content blockquote{background:rgba(6,182,212,.08)!important;color:#cbd5e1!important}
html[data-dark="1"] .entry-content>:first-child .wp-block-heading{color:#f8fafc!important}
html[data-dark="1"] .entry-content h2.wp-block-heading{color:#f1f5f9!important}
html[data-dark="1"] .entry-header .entry-title{color:#f8fafc!important}
html[data-dark="1"] .entry-meta,html[data-dark="1"] .ct-meta{color:#94a3b8!important}
html[data-dark="1"] .related-post-card{background:#1e293b!important;border-color:#334155!important}
html[data-dark="1"] .related-post-card:hover{border-color:rgba(6,182,212,.35)!important}
html[data-dark="1"] .rp-title{color:#f1f5f9!important}
html[data-dark="1"] .rp-excerpt,html[data-dark="1"] .rp-date{color:#94a3b8!important}
html[data-dark="1"] #random-quote .quote-text{color:#cbd5e1}
html[data-dark="1"] #random-quote .quote-attr{color:#64748b}
html[data-dark="1"] .comment-respond,html[data-dark="1"] .comments-area{background:#1e293b!important;border-color:#334155!important}
html[data-dark="1"] .comment-form textarea,html[data-dark="1"] .comment-form input{background:#0f172a!important;color:#e2e8f0!important;border-color:#334155!important}
html[data-dark="1"] .comment-form .submit{background:var(--cyan)!important}
html[data-dark="1"] ::-webkit-scrollbar-thumb{background:#475569}
html[data-dark="1"] ::selection{background:rgba(6,182,212,.25);color:#fff}
html[data-dark="1"] .wp-block-separator{border-top-color:#334155!important;opacity:.3}
html[data-dark="1"] #dark-mode-toggle:hover{background:rgba(6,182,212,.2)}
html[data-dark="1"] #dark-mode-toggle{color:#cbd5e1!important;border-color:#334155!important}
html[data-dark="1"] #back-to-top{background:var(--cyan)!important;border-color:var(--cyan)!important;color:#fff!important}
html[data-dark="1"] #back-to-top:hover{background:var(--cyan-light)!important;border-color:var(--cyan-light)!important}
html[data-dark="1"] #progress-ring{background:transparent!important}
html[data-dark="1"] #live-status{color:#64748b}
html[data-dark="1"] #reading-time{color:#94a3b8}
html[data-dark="1"] #site-counter{color:#cbd5e1!important}
html[data-dark="1"] .hero-section .page-title{color:#f8fafc!important}
html[data-dark="1"] .entry-content p{color:#e2e8f0!important}
html[data-dark="1"] .hwc-gallery-item{background:#1e293b!important}
html[data-dark="1"] .entry-content .wp-block-group:nth-child(4){background:transparent!important}
html[data-dark="1"] .hwc-friend-card{background:#1e293b!important;border-color:#334155!important;color:#cbd5e1!important}
html[data-dark="1"] .hwc-friend-card h2,html[data-dark="1"] .hwc-friend-card h3,html[data-dark="1"] .hwc-friend-card .hwc-friend-name{color:#f1f5f9!important}
html[data-dark="1"] .hwc-friend-card p,html[data-dark="1"] .hwc-friend-card .hwc-friend-desc{color:#cbd5e1!important}
html[data-dark="1"] .hwc-friend-card a{color:#cbd5e1!important}
html[data-dark="1"] .hwc-friend-card a:hover{color:var(--cyan-light)!important}
html[data-dark="1"] .rtoc_widget,html[data-dark="1"] .rtoc_box_wrap,html[data-dark="1"] .rtoc_widget *,html[data-dark="1"] .rtoc_box_wrap *{background:#1e293b!important;color:#cbd5e1!important}
html[data-dark="1"] .rtoc_widget h2,.rtoc_widget h3,.rtoc_box_wrap h2,.rtoc_box_wrap h3{color:#f1f5f9!important}
html[data-dark="1"] .rtoc_widget a,.rtoc_box_wrap a{color:var(--cyan-light)!important}
html[data-dark="1"] table th{background:#1e293b!important;color:#f1f5f9!important}
html[data-dark="1"] table td{background:#1e293b!important;color:#cbd5e1!important}
html[data-dark="1"] .single-post table,.single-post td,.single-post th{border-color:#334155!important}
html[data-dark="1"] #ez-toc-container,html[data-dark="1"] .ez-toc *,html[data-dark="1"] div[id*=toc]{background:#1e293b!important;color:#cbd5e1!important;border-color:#334155!important}
html[data-dark="1"] #ez-toc-container a,html[data-dark="1"] div[id*=toc] a,html[data-dark="1"] .ez-toc a{color:var(--cyan-light)!important}
html[data-dark="1"] #ez-toc-container .ez-toc-title,html[data-dark="1"] div[id*=toc] h2,html[data-dark="1"] .ez-toc-title{color:#f1f5f9!important}
html[data-dark="1"] .hwc-toc-widget,html[data-dark="1"] .hwc-toc-widget *{background:#1e293b!important;color:#cbd5e1!important;border-color:#334155!important}
html[data-dark="1"] .hwc-toc-widget a{color:var(--cyan-light)!important}
html[data-dark="1"] .hwc-toc-title{color:#f1f5f9!important;border-bottom-color:#334155!important}
html[data-dark="1"] .entry-card{background:#1e293b!important;border-color:#334155!important}
html[data-dark="1"] .entry-card h2,.entry-card h3{color:#f1f5f9!important}
html[data-dark="1"] .entry-card p,.entry-card .entry-excerpt,.entry-meta{color:#cbd5e1!important}
html[data-dark="1"] .entry-card a{color:#cbd5e1!important}
html[data-dark="1"] .entry-card a:hover{color:var(--cyan-light)!important}
html[data-dark="1"] .entry-card .entry-meta a{color:var(--cyan-light)!important}
html[data-dark="1"] .post-navigation,html[data-dark="1"] .nav-links,html[data-dark="1"] .nav-previous,html[data-dark="1"] .nav-next{background:#1e293b!important;color:#cbd5e1!important;border-color:#334155!important}
html[data-dark="1"] .single-post .entry-content th{background:#1e293b!important;color:#f1f5f9!important}
html[data-dark="1"] .single-post .entry-content td{background:#1e293b!important;color:#cbd5e1!important}
html[data-dark="1"] [style*="border-top:#f0f0f0"],html[data-dark="1"] [style*="border-bottom:#f0f0f0"],html[data-dark="1"] [style*="#f0f0f0"]{border-color:#334155!important}
html[data-dark="1"] [style*="border-top: 1px"],html[data-dark="1"] [style*="border-bottom: 1px"],html[data-dark="1"] [style*="border-top:1px"]{border-color:#334155!important}
html[data-dark="1"] *{border-color:#334155!important}
html[data-dark="1"] .ct-header,.ct-header [data-row]{border-color:#334155!important}
html[data-dark="1"] .hwc-vertical-card{border-color:#334155!important}
html[data-dark="1"] .ct-widget,html[data-dark="1"] .widget,html[data-dark="1"] .related-post-card{border-color:#334155!important}
html[data-dark="1"] footer.hwc-footer{border-color:#334155!important}
html[data-dark="1"] .wp-block-calendar table,.wp-block-calendar th,.wp-block-calendar td,.wp-block-calendar thead{border-color:#334155!important}
html[data-dark="1"] .comment-respond,html[data-dark="1"] .comments-area{border-color:#334155!important}
html[data-dark="1"] .wp-block-separator{border-color:#334155!important}
html[data-dark="1"] [style*="box-shadow:"][style*="rgba(0,0,0,0.04)"],html[data-dark="1"] [style*="box-shadow:"][style*="rgba(0,0,0,0.05)"],html[data-dark="1"] [style*="box-shadow:"][style*="rgba(0,0,0,0.03)"]{box-shadow:none!important}
html[data-dark="1"] [style*="0 0 0 1px"]{box-shadow:none!important}


/* === System Auto Dark === */
@media(prefers-color-scheme:dark){
html:not([data-dark]){--surface:#1e293b;--border:#334155;--text-primary:#f1f5f9;--text-secondary:#cbd5e1;--text-muted:#64748b;--cyan-bg:rgba(6,182,212,.15);--shadow-sm:0 1px 3px rgba(0,0,0,.3);--shadow-md:0 4px 14px rgba(0,0,0,.4);--shadow-lg:0 8px 30px rgba(0,0,0,.5)}
html:not([data-dark]) body{background:#0f172a!important;color:#e2e8f0!important}
html:not([data-dark]) body,html:not([data-dark]) p,html:not([data-dark]) li,html:not([data-dark]) span,html:not([data-dark]) div{color:#e2e8f0}
html:not([data-dark]) h1,html:not([data-dark]) h2,html:not([data-dark]) h3,html:not([data-dark]) h4{color:#f8fafc!important}
html:not([data-dark]) a{color:#cbd5e1!important}
html:not([data-dark]) a:hover{color:var(--cyan-light)!important}
html:not([data-dark]) .ct-header{background:transparent;border-bottom-color:#334155!important}
html:not([data-dark]) .ct-header [data-row]{background:rgba(15,23,42,.96)!important}
html:not([data-dark]) .ct-header .ct-container{background:transparent}
html:not([data-dark]) .ct-header .menu-item a,html:not([data-dark]) .ct-header-search{color:#cbd5e1!important}
html:not([data-dark]) .ct-header .menu-item.current-menu-item a{color:var(--cyan-light)!important;border-bottom-color:var(--cyan-light)!important}
html:not([data-dark]) .site-title a{color:#f8fafc!important}
html:not([data-dark]) footer.hwc-footer{background:#1e293b!important;color:#cbd5e1!important;border-top-color:#334155!important}
html:not([data-dark]) footer.hwc-footer a{color:#cbd5e1!important}
html:not([data-dark]) .hwc-vertical-card,.hmc-vertical-card>div,.ct-widget,.widget,.related-post-card{background:#1e293b!important;border-color:#334155!important}
html:not([data-dark]) .hwc-vertical-card h3{color:#f1f5f9!important}
html:not([data-dark]) .hwc-vertical-card span:first-of-type{background:rgba(6,182,212,.18)!important;color:var(--cyan-light)!important}
html:not([data-dark]) .hwc-social-link{background:#1e293b!important;border-color:#334155!important;color:#cbd5e1!important}
html:not([data-dark]) [style*="background:#fff"],html:not([data-dark]) [style*="background:white"],html:not([data-dark]) [style*="background:rgba(255"]{background:#1e293b!important;color:#e2e8f0!important}
html:not([data-dark]) [style*="color:#555"],html:not([data-dark]) [style*="color:#666"],html:not([data-dark]) [style*="color:#777"],html:not([data-dark]) [style*="color:#888"],html:not([data-dark]) [style*="color:#999"]{color:#cbd5e1!important}
html:not([data-dark]) [style*="color:#222"]{color:#f1f5f9!important}
html:not([data-dark]) [style*="color:#bbb"]{color:#cbd5e1!important}
html:not([data-dark]) .wp-block-calendar table,.wp-block-calendar th,.wp-block-calendar td{background:#1e293b!important;color:#e2e8f0!important}
html:not([data-dark]) .wp-block-calendar caption{color:#f1f5f9!important}
html:not([data-dark]) .wp-block-calendar thead{border-bottom-color:#334155!important}
html:not([data-dark]) .wp-block-calendar td a{background:var(--cyan)!important;color:#fff!important}
html:not([data-dark]) #today{background:rgba(6,182,212,.2)!important;color:var(--cyan-light)!important}
html:not([data-dark]) .single-post .entry-content p{color:#e2e8f0!important}
html:not([data-dark]) .single-post .entry-content pre{background:#020617!important}
html:not([data-dark]) .single-post .entry-content blockquote{background:rgba(6,182,212,.08)!important;color:#cbd5e1!important}
html:not([data-dark]) .entry-content>:first-child .wp-block-heading,.hero-section .page-title{color:#f8fafc!important}
html:not([data-dark]) .entry-header .entry-title{color:#f8fafc!important}
html:not([data-dark]) .rp-title{color:#f1f5f9!important}
html:not([data-dark]) .rp-excerpt,.rp-date{color:#94a3b8!important}
html:not([data-dark]) .comment-respond,.comments-area{background:#1e293b!important;border-color:#334155!important}
html:not([data-dark]) .comment-form textarea,.comment-form input{background:#0f172a!important;color:#e2e8f0!important;border-color:#334155!important}
html:not([data-dark]) ::-webkit-scrollbar-thumb{background:#475569}
html:not([data-dark]) ::selection{background:rgba(6,182,212,.25);color:#fff}
html:not([data-dark]) .wp-block-separator{border-top-color:#334155!important;opacity:.3}
html:not([data-dark]) #back-to-top{background:var(--cyan)!important;border-color:var(--cyan)!important;color:#fff!important}
html:not([data-dark]) #back-to-top:hover{background:var(--cyan-light)!important;border-color:var(--cyan-light)!important}
html:not([data-dark]) [style*="border-top:#f0f0f0"],html:not([data-dark]) [style*="border-bottom:#f0f0f0"]{border-color:#334155!important}
html:not([data-dark]) [style*="box-shadow:"][style*="rgba(0,0,0,0.04)"],html:not([data-dark]) [style*="box-shadow:"][style*="rgba(0,0,0,0.05)"],html:not([data-dark]) [style*="0 0 0 1px"]{box-shadow:none!important}
html:not([data-dark]) .hwc-gallery-item{background:#1e293b!important}
html:not([data-dark]) .entry-content .wp-block-group:nth-child(4){background:transparent!important}
}
.hwc-gallery-masonry{display:grid!important;grid-template-columns:repeat(3,1fr);gap:12px;padding:0;columns:unset!important;column-count:unset!important;-webkit-column-count:unset!important}
.hwc-gallery-masonry *{break-inside:unset!important}
.hwc-gallery-masonry img{width:100%!important;height:200px!important;object-fit:cover!important;display:block!important;border-radius:var(--radius-md)!important;transition:all .35s ease;margin:0!important}
.hwc-gallery-masonry img:hover{transform:scale(1.05);box-shadow:var(--shadow-lg)}

/* === RELATED POSTS === */
.related-posts-section{max-width:760px;margin:2.5rem auto 1rem;padding:0 1rem}
.related-posts-title{font-size:1.15rem;font-weight:650;color:var(--text-primary);margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid var(--cyan-bg)}
.related-posts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.85rem}
.related-post-card{display:block;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);padding:1.1rem 1.2rem;text-decoration:none;transition:all .25s cubic-bezier(.4,0,.2,1)}
.related-post-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);border-color:rgba(6,182,212,.25)}
.rp-card-inner{display:flex;flex-direction:column}
.rp-date{font-size:.72rem;color:var(--text-muted);margin-bottom:.5rem}
.rp-title{font-size:.95rem;font-weight:600;line-height:1.45;color:var(--text-primary);margin:0 0 .35rem 0}
.related-post-card:hover .rp-title{color:var(--cyan)}
.rp-excerpt{font-size:.8rem;color:var(--text-secondary);line-height:1.5;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* === PAGINATION === */
.navigation.pagination,.ct-pagination{display:flex;justify-content:center;gap:6px;padding:1.5rem 0}
.navigation.pagination .nav-links a,.navigation.pagination .nav-links span,.ct-pagination a,.ct-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);color:var(--text-secondary);font-weight:500;font-size:.88rem;text-decoration:none;transition:.2s}
.navigation.pagination .current,.ct-pagination .current{background:var(--cyan);color:#fff!important;border-color:var(--cyan);font-weight:600}
.navigation.pagination a:hover,.ct-pagination a:hover{background:var(--cyan-bg);color:var(--cyan);border-color:var(--cyan-light)}

::-webkit-scrollbar{width:7px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:#94a3b8}

.button,button,.ct-button{border-radius:var(--radius-sm)!important;font-weight:500!important;padding:10px 22px!important;transition:.15s!important}
.button:hover,button:hover,.ct-button:hover{transform:translateY(-1px);box-shadow:var(--shadow-md)}

.entry-content{padding-bottom:0!important}
article.post,article.page{margin-bottom:0!important}
.site-main,main{padding-bottom:0!important}

/* === RESPONSIVE === */
@media(max-width:768px){
.ct-container>aside{width:100%!important}
.ct-container>article{max-width:100%!important}
.hwc-post-cards{grid-template-columns:1fr}
.hero-section .page-title{font-size:1.5rem!important}
.entry-content>*:first-child .wp-block-heading{font-size:1.5rem!important}
.single-post .entry-header .entry-title{font-size:1.6rem!important}
.hwc-gallery-masonry{grid-template-columns:repeat(2,1fr)}
.hwc-gallery-masonry img{height:150px}
.hwc-social-link{padding:7px 14px!important;font-size:.8rem}
#back-to-top{bottom:20px;right:20px;width:40px;height:40px}
#progress-ring{bottom:20px;right:20px;width:40px;height:40px}
.site-title,.ct-header .site-title a{font-size:1.15rem!important}
.related-posts-grid{grid-template-columns:1fr}
.related-posts-section{max-width:100%;padding:0 1rem}
}

/* === PRINT === */
@media print{
.ct-header,.ct-footer,footer.hwc-footer,.ct-container>aside,.hwc-social-link,#reading-progress,#back-to-top,#progress-ring,#live-status,.copy-code-btn{display:none!important}
body{background:#fff!important;font-size:12pt}
body::after{display:none}
.entry-content{max-width:100%!important}
}
