/* ===== Bear Blog × Apple 融合主题 ===== */
/* 基础重置与苹果风格字体 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 整体布局 - 苹果式留白 */
#home {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

#header, #topicList, #main, #footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

/* 头部样式 - 苹果大标题风格 */
#blogTitle {
  text-align: left;
  color: #8ce194;
}
#blogTitle a {
  text-decoration: none;
}
#blogTitle h1 {
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  user-select: none;
}

/* 彩色猫猫 */
#blogTitle h2 {
    font-size: 4rem;
    color: #666;
    font-weight: bold;
    line-height: 2;
    cursor: pointer; /* 鼠标放上去变成小手，提示可点击 */
    transition: color 0.5s ease; /* 让文字颜色变化有0.5秒的平滑过渡 */
    /* 初始颜色可以自己定义，这里用一个暖橙色 */
    color: hsl(30, 100%, 50%);
    display: inline-block; /* 这很重要，让变换动画（旋转、抖动）作用于整个元素 */
    user-select: none;
}
/* 定义旋转动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 定义抖动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

/* 创建应用动画的类 */
.spinning {
    animation: spin 0.8s ease 1; /* 旋转一次，持续0.8秒 */
}
.shaking {
    animation: shake 0.4s ease-in-out 1; /* 抖动一次，持续0.4秒，快速开始和结束 */
}


/* 导航简化 - 苹果菜单风格 */
#navigator {
  margin: 20px 0 40px 0;
  padding: 0;
  border: none;
}
#navList {
  display: block;
}
#navList li {
  display: inline-block;
  margin: 0 1.2rem 1rem 0;
}
#navList a.menu {
  color: #8ce194;
  text-decoration: none;
  font-size: 1.8rem;
  transition: opacity 0.3s;
}
#navList a.menu:hover {
  opacity: 0.7;
  text-decoration: none;
}
#blogStats {
  display: none;
}

/* 主内容区 */
#mainContent {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}
#sideBar {
  display: none;
}

/* 文章样式 - 苹果排版层次 */
.day {
  margin-bottom: 2.5rem;
}
.dayTitle {
  display: none;
}
#cb_post_title_url::before {
  content: '📜 ';
  vertical-align: middle;
}
.postTitle a {
  font-size: 1.5rem;
  font-weight: 600;
  color: #56a407;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.postCon {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  margin: 0 0 1.5rem;
}
.postCon p {
  margin-bottom: 1.8rem;
}
.postDesc {
  color: #888;
  font-size: 0.95rem;
  margin-top: 1.2rem;
}

/* 页脚样式 */
#footer {
  padding: 2.5rem 0;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.6;
}

/* 文章阅读页 - 优化阅读体验 */
#topics .postTitle a {
  font-size: 2.2rem;
  margin-bottom: 1.8rem;
}
.postBody {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}
.postBody h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2.5rem 0 1.5rem;
}
.postBody h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1.2rem;
}
.postBody p {
  margin-bottom: 1.8rem;
}

/* 相关-排行 */

#under_post_card1,#under_post_card2{
  border-top: 8px dashed #8ce194;
  margin-top: 30px;
}

/* 响应式调整 - 苹果式移动体验 */
@media (max-width: 768px) {
  #home {
    padding: 0 15px;
  }
  #blogTitle {
    padding: 40px 0 20px;
  }
  .postTitle a {
    font-size: 1.6rem;
  }
  
  /* 移动端增加侧边留白 */
  #mainContent {
    padding: 0 5px !important;
  }
}

/* 苹果风格细节增强 */
a {
  color: #8ce194;
  text-decoration: none;
  transition: opacity 0.3s;
}
a:hover {
  text-decoration: underline;
  opacity: 0.8;
}
blockquote {
  border-left: 3px solid #ddd;
  padding-left: 20px;
  margin: 1.5rem 0;
  color: #666;
  font-style: italic;
}
code, pre {
  font-family: "SF Mono", Menlo, monospace;
  background: #f8f8f8;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.95rem;
}