.page {
    width: 80%; /* 根据需要设置宽度 */
    margin: 0 auto; /* 水平居中 */
    max-width: 1200px; /* 最大宽度 */
    float: none; /* 取消浮动 */
    padding-left:0;
    padding: 0 20px; /* 添加页面两侧内边距 */
    position: relative; /* 为大纲导航的定位提供参考 */
}

.post-header {
  margin-bottom: 4rem;
  text-align: left;
}

.post-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-excerpt {
  font-size: 1.2rem;
  color: #636e72;
  margin: 1.5rem 0;
  line-height: 1.6;
  font-weight: 300;
}

.article-byline {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  gap: 1rem;
}

.author-list {
  flex-shrink: 0;
}

.author-avatar {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.author-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-byline-meta {
  flex-grow: 1;
}

.author-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.author-name a {
  color: #2d3436;
  text-decoration: none;
}

.author-name a:hover {
  color: #e17055;
}

.byline-meta-content {
  flex: 1;
  max-width: 50%;
  color: #636e72;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bull {
  margin: 0 0.5rem;
  color: #b2bec3;
}

.post-meta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #636e72;
}

.category-link,
.tag-link {
  color: #e17055;
  text-decoration: none;
  transition: color 0.3s ease;
}

.category-link:hover,
.tag-link:hover {
  color: #d35400;
}

.separator {
  color: #b2bec3;
  margin: 0 0.3rem;
}

.post-content {
  line-height: 1.8;
  color: #2c3e50;
}

.post-content h1 {
  font-size: 2.2rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.post-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1.2rem;
}

.post-navigation {
    border-top: 1px solid #f5f6fa;
    display: flex;
    justify-content: space-between;
    
    a {
      color: #e17055;
      text-decoration: none;
      transition: all 0.4s ease;
      max-width: 45%;
      padding: 0.8rem 1.2rem;
      border-radius: 6px;
      
      &:hover {
        color: #d35400;
        background: #fff8f5;
      }
      
      &.prev:hover {
        transform: translateX(-5px);
      }
      
      &.next:hover {
        transform: translateX(5px);
      }
    }
  }

.reading-progress-nav {
  position: fixed;
  left: calc(80% + 40px);
  top: 80px;
  width: 250px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-bar {
  width: 100%;
  height: 2px;
  background: #eee;
  margin-bottom: 15px;
}

.progress-indicator {
  height: 100%;
  width: 0%;
  background: #e17055;
  transition: width 0.3s ease;
}

.reading-sections {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.section-link {
  display: block;
  padding: 6px 12px;
  margin: 4px 0;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.section-link.h3 {
  padding-left: 24px;
  font-size: 13px;
}

.section-link.active {
  color: #e17055;
  background: rgba(225, 112, 85, 0.1);
}

.section-link:hover {
  color: #e17055;
  background: rgba(225, 112, 85, 0.05);
}

.byline-links {
  display: flex;
  gap: 1rem;
  margin-top: 0;  /* 移除上边距 */
  /* 移除之前的定位相关样式 */
}

.byline-link-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 16px;
  background-color: #2d3436;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 基础悬停效果 */
.byline-link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

/* Homepage 按钮悬停效果 - 绿色 */
.byline-link-button:hover .fa-home,
.byline-link-button:has(.fa-home):hover {
  background-color: #00b894;
}

/* Paper 按钮悬停效果 - 紫色 */
.byline-link-button:hover .fa-file-alt,
.byline-link-button:has(.fa-file-alt):hover {
  background-color: #df2727;
}

/* Code 按钮悬停效果 - 深灰色 */
.byline-link-button:hover .fa-github,
.byline-link-button:has(.fa-github):hover {
  background-color: #2d3436;
}

/* HuggingFace 按钮悬停效果 - 橙色 */

.byline-link-button[href*="huggingface"]:hover {
  background-color: #ff6b35;
}


/* 响应式设计 */
@media (max-width: 768px) {
  .byline-links {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .byline-link-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .byline-link-button i {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .byline-links {
    flex-direction: column;
    align-items: stretch;
  }
  
  .byline-link-button {
    justify-content: center;
  }
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.byline-meta-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

.author-name-wrapper {
  flex: 1;
  max-width: 50%;
}

blockquote {
  margin: 0;
}

.language-plaintext.highlighter-rouge {
  background-color: rgba(175, 184, 193, 0.3);
  border-radius: 6px;
  padding: 0;
  color: #ff0000;
  font-size: 90%;
  /* font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; */
}

@media (max-width: 1400px) {
  .reading-progress-nav {
    display: none;
  }
}

@media (max-width: 1024px) {
  .reading-progress-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .page{
    width: 100%;
  }
  
  .post-title {
    font-size: 2rem;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .comments-header {
    flex-direction: column;
    gap: 1rem;
  }

  .byline-meta-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .byline-links {
    margin-left: 0;
  }

  .byline-meta-wrapper {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }

  .author-name-wrapper,
  .byline-meta-content {
    max-width: 100%;
  }
}