/* --- 1. 全局重置与色彩基调 --- */
* { box-sizing: border-box; }
body {
    background-color: #f0f1f3 !important;
    margin: 0;
    font-family: -apple-system, "Noto Sans SC", "PingFang SC", sans-serif;
    color: #444; /* 正文深灰 */
    line-height: 1.7;
    overflow-x: hidden;
}

/* 统一重置所有紫色链接 */
a { color: #333; text-decoration: none; transition: 0.2s; }
a:hover { color: #2196F3; }

/* 画布层 */
#particle-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

/* --- 2. 顶部导航重塑 --- */
#custom-top-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background: #ffffff; border-bottom: 1px solid #eee;
    z-index: 9999; display: flex; justify-content: center;
}
.nav-content {
    width: 100%; max-width: 900px;
    display: flex; justify-content: space-between; align-items: center; padding: 0 20px;
}
/* 导航文字去紫色 */
.logo { font-size: 19px; font-weight: 700; color: #1a1a1a !important; letter-spacing: 1px; text-decoration: none; }
.nav-right a { margin-right: 25px; font-size: 14px; color: #666; font-weight: 500; }
.nav-right a:hover { color: #2196F3; }

/* --- 3. 首页卡片与文字去色 --- */
#home { position: relative; z-index: 10; max-width: 800px; margin: 90px auto 50px !important; }

.day {
    background: #ffffff !important;
    padding: 40px 50px; margin-bottom: 35px;
    border-radius: 4px; border: 1px solid #eaeaea;
    transition: 0.3s;
}
.day:hover { border-color: #2196F3; box-shadow: 0 8px 30px rgba(0,0,0,0.04); }

/* 重点：修正标题和链接的紫色 */
.postTitle { font-size: 22px; font-weight: 600; margin-bottom: 15px; }
.postTitle a { 
    color: #1a1a1a !important; /* 强制去紫色 */
    position: relative;
}
/* 高级交互：鼠标移入标题才出现蓝线 */
.postTitle a::after {
    content: ''; position: absolute; width: 100%; height: 1px;
    bottom: -2px; left: 0; background-color: #2196F3;
    transform: scaleX(0); transition: transform 0.3s ease;
}
.postTitle a:hover { color: #2196F3 !important; }
.postTitle a:hover::after { transform: scaleX(1); }

/* 日期与摘要去紫色 */
.dayTitle a { color: #999 !important; font-size: 13px; font-family: "Georgia", serif; font-style: italic; }
.c_b_p_desc { color: #555; font-size: 15px; line-height: 1.8; margin-top: 15px; }
/* 阅读全文链接 */
.c_b_p_desc a { color: #2196F3 !important; font-size: 14px; border-bottom: 1px solid transparent; }
.c_b_p_desc a:hover { border-bottom: 1px solid #2196F3; }

/* --- 4. 侧边栏及其他 --- */
#sideBar {
    position: fixed !important; top: 0; right: -320px;
    width: 320px !important; height: 100vh;
    background: #ffffff !important; border-left: 1px solid #eee;
    z-index: 10001; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px 30px;
}
.show-sidebar { right: 0 !important; }
/* 侧边栏链接同步 */
#sideBar a { color: #555 !important; }
#sideBar a:hover { color: #2196F3 !important; }
.catListTitle { font-size: 15px; font-weight: 600; color: #111; margin: 20px 0 10px; }

/* 隐藏干扰元素 */
#header, #blog_post_info_block, #comment_form, #blog-comments-placeholder, 
.postDesc, #footer, .ad_text_commentbox, #under_post_card1, #under_post_card2, 
#HistoryToday, #sidebar_search { display: none !important; }

/* 详情页内部紫色修正 */
#cnblogs_post_body { color: #333 !important; font-size: 16px; }
#cnblogs_post_body h1, #cnblogs_post_body h2 { color: #1a1a1a !important; border-left: 4px solid #2196F3; padding-left: 15px; }

/* --- 6. 签名与备案信息对调布局 (修复版) --- */
#footer {
    display: flex !important;
    flex-direction: column !important; /* 强制纵向 */
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 0 100px !important;
    background: transparent !important;
    border: none !important;
    gap: 20px; /* 元素之间的自然间距 */
}

/* 1. 签名容器：强制排在第一位 */
#footer-signature-container {
    order: -1 !important; /* 负值确保它绝对在最前 */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.custom-signature {
    max-width: 220px;
    height: auto;
    opacity: 0.85;
    filter: grayscale(100%);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-signature:hover {
    opacity: 1; filter: grayscale(0%); transform: scale(1.05);
}

.footer-info {
    font-size: 11px;
    color: #ccc;
    letter-spacing: 2.5px;
    margin-top: 12px;
    text-transform: uppercase;
}

/* 2. 系统备案信息：强制排在后面 */
#footer > div, 
#footer #poweredby,
#footer > .footer-text {
    order: 2 !important;
    color: #bbb !important;
    font-size: 12px !important;
    opacity: 0.8;
    text-align: center;
}

/* 修正警徽图标的大小，恢复原色 */
#footer img:not(.custom-signature) {
    width: 14px !important;
    height: 14px !important;
    vertical-align: middle;
    margin-right: 5px;
    /* 已移除 grayscale(100%) 以恢复原色 */
}

#footer a { color: #bbb !important; }
#footer a:hover { color: #2196F3 !important; }

/* --- 7. 首页全屏 Hero Banner 增强 --- */
#home-banner {
    position: relative;
    width: 100%;
    height: 100vh; /* 占据整个屏幕高度 */
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
                url('https://images.cnblogs.com/cnblogs_com/blogs/865261/galleries/2501240/o_260404032358_Weixin%20Image_2026-04-03_155506_577.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* 视差滚动效果 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5; /* 位于粒子层之上，导航层之下 */
    overflow: hidden;
    animation: bannerFadeIn 1.5s ease-out; /* 整体渐显 */
}

/* --- 7. 首页艺术展屏区 (70% 高度优化版) --- */
#home-banner {
    position: relative;
    width: 100%;
    height: 70vh; /* 调整为屏幕高度的 70% */
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('https://images.cnblogs.com/cnblogs_com/blogs/865261/galleries/2501240/o_260404031146_dd8c68cd367f131f3d4f3003faf3d572.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    overflow: hidden;
    animation: bannerFadeIn 2.5s ease-in-out;
}

/* 文字容器 */
.banner-content {
    text-align: center;
    color: #fff;
    user-select: none;
    padding: 0 20px;
    z-index: 10;
}

/* 主标题：ShoreKitenの小屋 */
.banner-title {
    font-size: 3.2rem; /* 稍微放大一点以匹配更高的背景 */
    font-weight: 300;
    letter-spacing: 12px;
    font-family: "Optima", "Georgia", "STKaiti", "KaiTi", "华文楷体", serif;
    text-shadow: 0 5px 25px rgba(0,0,0,0.3);
    margin-bottom: 18px;
    opacity: 0;
    animation: textBlurIn 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

/* 副标题：长候待君至，此生不问离 */
.banner-subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: rgba(255,255,255,0.9);
    font-family: "STKaiti", "KaiTi", "华文楷体", serif;
    opacity: 0;
    animation: textBlurIn 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s forwards;
}

/* 渐显与模糊动画 */
@keyframes textBlurIn {
    0% { opacity: 0; filter: blur(12px); transform: translateY(25px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes bannerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 修正：内容区紧跟在 Banner 之后 */
#home {
    margin-top: 50px !important; 
    padding-top: 0;
}

/* 滚轮提示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
}