/* ===================== 核心适配：按钮切换+默认深色+custom皮肤覆盖 ===================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 加载动画（赛博风） */
#loading{
    bottom:0;left:0;position:fixed;right:0;top:0;z-index:9999;background-color:#0a0a23 !important;pointer-events:none;
}
.loader-inner{
    will-change:transform;width:40px;height:40px;position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px;background-color:#ff7eb9 !important;border-radius:50%;animation:scaleout 0.6s infinite ease-in-out forwards;text-indent:-99999px;z-index:999991;box-shadow:0 0 20px #ff7eb9,0 0 40px #a855f7 !important;
}
@keyframes scaleout{0%{transform:scale(0);opacity:0;}40%{opacity:1;}100%{transform:scale(1);opacity:0;}}

/* 🌟 默认深色模式（优先级最高，覆盖custom皮肤） */
body.custom, body.custom .awescnb-wrap {
    background: linear-gradient(135deg, #0a0a23 0%, #1a1a40 100%) !important;
    color: #fff !important;
    background-attachment: fixed !important;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 🌟 浅色模式（按钮切换后生效） */
body.custom:not(.awescnb-dark), 
body.custom:not(.awescnb-dark) .awescnb-wrap {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #333 !important;
}

/* 核心兜底：文章内容区域 */
body.custom #cnblogs_post_body {
    color: #fff !important;
    line-height: 1.8;
    font-size: 16px;
}
body.custom:not(.awescnb-dark) #cnblogs_post_body {
    color: #212529 !important;
}
body.custom:not(.awescnb-dark) #cnblogs_post_body a {
    color: #d946ef !important;
    text-shadow: 0 0 5px #d946ef !important;
}

/* 玻璃拟态卡片（深色模式） */
body.custom .awescnb-card, 
body.custom .awescnb-header, 
body.custom .day, 
body.custom #sidebar .profile_block, 
body.custom .calendar, 
body.custom .links-wrap {
    background: rgba(0, 20, 50, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 2px solid #ff7eb9 !important;
    box-shadow: 0 0 20px rgba(255, 126, 185, 0.5), 0 0 40px rgba(168, 85, 247, 0.3) !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* 玻璃拟态卡片（浅色模式） */
body.custom:not(.awescnb-dark) .awescnb-card, 
body.custom:not(.awescnb-dark) .awescnb-header, 
body.custom:not(.awescnb-dark) .day, 
body.custom:not(.awescnb-dark) #sidebar .profile_block, 
body.custom:not(.awescnb-dark) .calendar, 
body.custom:not(.awescnb-dark) .links-wrap {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 0 20px rgba(255, 126, 185, 0.3), 0 0 40px rgba(168, 85, 247, 0.2) !important;
}

/* 卡片二次元装饰元素 */
body.custom .awescnb-card::before, 
body.custom .awescnb-header::before, 
body.custom .calendar::before {
    content: "❤️" !important;position: absolute !important;top: -10px !important;left: 20px !important;font-size: 24px !important;color: #ff7eb9 !important;text-shadow: 0 0 10px #ff7eb9, 0 0 20px #ff00ff !important;animation: float 4s ease-in-out infinite !important;z-index: 1 !important;
}
body.custom .awescnb-card::after, 
body.custom .awescnb-header::after, 
body.custom .calendar::after {
    content: "⭐" !important;position: absolute !important;bottom: -10px !important;right: 20px !important;font-size: 24px !important;color: #ff7eb9 !important;text-shadow: 0 0 10px #ff7eb9, 0 0 20px #ff00ff !important;animation: float 4s ease-in-out infinite 1s !important;z-index: 1 !important;
}

/* 霓虹发光文字 */
body.custom .awescnb-wrap a, 
body.custom .awescnb-header .title a, 
body.custom .postTitle a, 
body.custom .awescnb-header .name {
    color: #ff7eb9 !important;text-shadow: 0 0 10px #ff7eb9, 0 0 20px #a855f7, 0 0 40px #a855f7 !important;transition: all 0.3s !important;font-family: "Ma Shan Zheng", cursive !important;letter-spacing: 2px !important;
}
body.custom .awescnb-wrap a:hover, 
body.custom .postTitle a:hover {
    color: #a855f7 !important;text-shadow: 0 0 15px #a855f7, 0 0 30px #ff7eb9, 0 0 50px #ff7eb9 !important;
}

/* 代码块赛博风 */
body.custom .cnblogs_code, 
body.custom .awescnb-highlight code {
    background: rgba(0, 10, 30, 0.9) !important;border: 1px solid #a855f7 !important;color: #fff !important;border-radius: 8px !important;box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.3) !important;padding: 10px !important;
}

/* 侧边栏/日历适配 */
body.custom .calendar, 
body.custom .links-wrap {
    padding: 15px !important;margin-bottom: 20px !important;
}
body.custom .calendar td, 
body.custom .calendar th {
    color: #fff !important;
}
body.custom:not(.awescnb-dark) .calendar td, 
body.custom:not(.awescnb-dark) .calendar th {
    color: #333 !important;
}
body.custom .calendar td a {
    background: #ff7eb9 !important;color: #0a0a23 !important;border-radius: 50% !important;box-shadow: 0 0 10px #ff7eb9 !important;
}

/* 漂浮动画 */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}