/* style.css - 2025 Final Complete Version */

/* --- 1. 全局设置 (字体与基础颜色) --- */
body {
  margin: 0;
  padding: 0;
  /* 完整的现代字体栈 */
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  background-color: #f5f5f5;
  color: #1a1a1a;
}

/* --- 2. Logo 样式 (PC端基础定义) --- */
/* 🔴 之前丢失的就是这部分，现在补回来了 */
#logo {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 9999;
  display: block;
  width: 50px;
  height: 50px;
  /* 确保 img 文件夹里有 andrew.jpg */
  background-image: url('img/andrew.jpg'); 
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
  outline: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

/* --- 3. 内容容器 --- */
#content {
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  padding: 30px;
  background-color: #fff;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

/* --- 4. 标题样式 (一浓一淡) --- */
h1, h2 {
  position: relative;
  padding-left: 15px;
  font-weight: bold;
  line-height: 1.2;
  color: #333;
}

/* H1: 深色粗线 (观点/主标题) */
h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 26px;
  background-color: #0073bb;
  border-radius: 2px;
}

/* H2: 浅色细线 (分享/副标题) */
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 18px;
  background-color: rgba(0, 115, 187, 0.35); /* 半透明淡蓝 */
  border-radius: 1px;
}

h1 { font-size: 32px; margin-top: 0; }
h2 { font-size: 24px; margin-top: 35px; }

/* --- 5. 正文与链接 --- */
p {
  line-height: 1.7;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #333;
}

a {
  color: #0073bb;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.7; }

/* --- 6. 图片 (无横线) --- */
img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: none; /* ✅ 这里的 none 确保了没有横线 */
}

/* --- 7. Sitemap 列表样式 --- */
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { border-bottom: 1px solid #eee; }
.article-list li:has(img) { border-bottom: none; } /* 双重保险：有图不显示底线 */
.article-list li:last-child { border-bottom: none; }
.article-list a {
  display: block;
  padding: 18px 5px;
  font-size: 18px;
  color: #333;
  text-decoration: none;
}
.article-list a:hover {
  background-color: #fafafa;
  padding-left: 10px;
}

/* --- 8. 底部版权 --- */
#footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  font-size: 12px;
  color: #999;
}

/* --- 9. 移动端适配 --- */
@media (max-width: 767px) {
  #logo {
    position: absolute !important;
    top: 15px;
    left: 15px;
    /* 确保手机上大小合适 */
    width: 48px;
    height: 48px;
  }
  
  #content {
    margin-top: 90px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 25px 20px;
    -webkit-overflow-scrolling: touch;
  }
  
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
}
