/* 全局重置 */
body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

/* 第一屏背景 */
.first-screen {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url('https://i.postimg.cc/g2zzr7Nn/desktop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* 页首区域 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: fixed;
  width: 90%;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.nav-center {
  display: flex;
  font-size: 18px;
  justify-content: center;
  flex-grow: 1;
  margin-left: -144px; 
}

.nav-center a {
  margin: 0 15px;
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-center a:hover {
  color: #1e88e5;
  border-bottom: 2px solid #1e88e5;
  padding-bottom: 5px;
}

.header-right img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #eee;
}

/* 页面主体核心区 */
.main-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  z-index: 2;
}

.main-title {
  font-size: 48px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  font-family: "SimSun", serif;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.sub-title {
  font-size: 24px;
  letter-spacing: 4px;
  color: #fff;
}

/* 独立居中的分类导航 */
.category-nav-container {
  width: 100%;
  background-color: white;
  padding: 20px 0;
  margin-bottom: 30px;
  position: relative;
  z-index: 5;
}

.category-nav {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
  border-bottom: 1px solid #eee;
}

.category-nav a {
  color: #666;
  text-decoration: none;
  padding: 10px 20px;
  margin: 0 5px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 15px;
}

.category-nav a:hover {
  color: #1e88e5;
  background-color: #f5f7fa;
  border-radius: 4px;
}

/* 博客内容区容器 */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  background-color: white;
  position: relative;
}

/* 主内容区 */
.blog-main {
  flex: 1;
  padding-right: 30px;
}

/* 文章列表 */
.article-list {
  margin-bottom: 40px;
}

.article-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.article-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.article-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.article-title a:hover {
  color: #1e88e5;
}

.article-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.article-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 侧边栏 */
.blog-sidebar {
  width: 250px;
}

.sidebar-notice,
.sidebar-calendar,
.sidebar-tags,
.sidebar-stats {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.sidebar-notice h4,
.sidebar-calendar h4,
.sidebar-tags h4,
.sidebar-stats h4 {
  font-size: 16px;
  color: #444;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.notice-content p {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

.tags-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  color: #666;
  background-color: #f5f5f5;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s;
}

.tag:hover {
  color: white;
  background-color: #1e88e5;
}

.stats-content p {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.stats-content span {
  color: #1e88e5;
  font-weight: bold;
}

/* 博客园默认页脚居中样式 */
#footer {
  text-align: center !important;
  padding: 20px 0 !important;
  font-size: 12px !important;
  color: #999 !important;
  background-color: #fff !important;
  border-top: 1px solid #fff !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

#footer-text {
  text-align: center !important;
  margin: 5px 0 !important;
  width: 100% !important;
}

#poweredby {
  text-align: center !important;
  margin: 5px 0 !important;
  width: 100% !important;
}

#footer-links {
  text-align: center !important;
  margin: 5px 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

#footer-links a {
  margin: 0 10px !important;
  color: #fff !important;
  text-decoration: none !important;
}

.topicListFooter {
  text-align: center !important;
  padding: 20px 0 !important;
  width: 100% !important;
  margin: 0 auto !important;
}

#nav_next_page {
  text-align: center !important;
  margin: 0 auto !important;
  width: 100% !important;
}
/* 默认 */
/* === 主布局元素 === */
/* #header { display: none !important; } */       /* 保留顶部导航栏 */
/* #sidebar { display: none !important; } */      /* 保留右侧边栏容器 */
/* #footer { display: none !important; } */       /* 保留页面底部区域 */
/* #main { display: none !important; } */         /* 保留主内容容器 */
/* #mainContent { display: none !important; } */  /* 保留文章内容区域 */

/* === 侧边栏组件 === */
#blog-news { display: none !important; }            /* 隐藏博客公告区域 */
#blog-calendar { display: none !important; }        /* 隐藏日历组件 */
#blog-sidecolumn-tags { display: none !important; } /* 隐藏标签云 */
#blog-sidecolumn-stats { display: none !important; }/* 隐藏博客统计信息 */
#blog-sidecolumn-search { display: none !important; }/* 隐藏搜索框 */
#blog-sidecolumn-categories { display: none !important; } /* 隐藏文章分类 */
#blog-sidecolumn-comments { display: none !important; }   /* 隐藏最新评论 */
#blog-sidecolumn-topdiggers { display: none !important; } /* 隐藏推荐排行榜 */

/* === 页脚元素 === */
/* #footer-text { display: none !important; } */  /* 保留页脚版权文字 */
/* #poweredby { display: none !important; } */    /* 保留"Powered by BlogEngine"标识 */
/* #footer-links { display: none !important; } */ /* 保留底部链接 */

/* === 文章相关元素 === */
/* .day { display: none !important; } */          /* 保留按日期分组的文章列表容器 */
/* .dayTitle { display: none !important; } */     /* 保留文章日期标题 */
/* .postTitle { display: none !important; } */    /* 保留文章标题 */
/* .postCon { display: none !important; } */      /* 保留文章内容 */
/* .postDesc { display: none !important; } */     /* 保留文章描述(作者、发布时间等) */
/* .c_b_p_desc { display: none !important; } */   /* 保留文章摘要 */

/* === 其他布局元素 === */
/* .forFlow { display: none !important; } */      /* 保留文章流容器 */
/* .topicListFooter { display: none !important; } */ /* 保留主题列表页脚 */
/* #nav_next_page { display: none !important; } */  /* 保留分页导航 */
#sideBarMain { display: none !important; }    /* 隐藏侧边栏主容器 */
#leftcontentcontainer { display: none !important; } /* 隐藏左侧内容容器 */
#sidebar_search { display: none !important; } /* 隐藏侧边栏搜索框(旧版) */
#sidebar_categories { display: none !important; } /* 隐藏侧边栏分类(旧版) */
#calendar { display: none !important; }      /* 隐藏日历容器(旧版) */

/* === 自定义内容显示 === */
.blog-container { 
  margin-top: 0 !important;    /* 移除自定义容器的上边距 */
  display: block !important;   /* 确保自定义内容正常显示 */
}


/* 禁用默认光标和文本选择
body {
  cursor: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
} */

/* 隐藏默认光标 */
body {
  cursor: none !important;
}

/* 主光标样式 */
.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  background-image: url('https://i.postimg.cc/brKkbbdV/f-I8ff-Ihh-J.png');
  background-size: contain;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

/* 链接悬停效果 */
.custom-cursor.link-hover {
  transform: translate(-50%, -50%) scale(1.2);
}

/* 拖尾元素样式 - 增强版 */
.cursor-trail {
  position: fixed;
  width: 24px;
  height: 24px;
  background-image: url('https://i.postimg.cc/brKkbbdV/f-I8ff-Ihh-J.png');
  background-size: contain;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  filter: blur(1px);
  transition: 
    opacity 0.3s ease,
    transform 0.3s ease,
    width 0.3s ease,
    height 0.3s ease;
}

/* 拖尾元素动画效果 */
@keyframes trail-fade {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}

/* 水波纹效果 */
.cursor-ripple {
  position: fixed;
  border: 2px solid rgba(30, 136, 229, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

/* 右键提示样式 */
.right-click-alert {
  position: fixed;
  padding: 8px 12px;
  background-color: #ff9ff3;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  animation: bounce 0.5s ease;
  white-space: nowrap;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 禁止文本选择 */
body {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}
