/* 设置全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    padding-top: 80px; /* 为固定导航栏留出空间 */
    margin: 0;
  }
  
  .container {
    padding: 20px;
    width: 100%;
  }
  
  /* 首页容器样式 */
  .home-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto; /* 首页内容居中 */
  }
  
  /* 文档页面容器样式 */
  .doc-container {
    text-align: left;
    max-width: calc(100% - 250px); /* 减去目录宽度 */
    margin-left: 250px; /* 为固定目录留出空间 */
  }
  
  .podcast-info h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
  }
  
  .podcast-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
    text-indent: 2em; /* 使用CSS缩进替代&nbsp; */
  }
  
  /* 图标样式 */
  .icon-container {
    position: relative;
    display: inline-block;
  }
  
  .podcast-icon {
    width: 150px;
    height: 150px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* 鼠标移上时的发光效果 */
  .podcast-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(100, 149, 237, 0.7);
  }
  
  /* 订阅平台链接样式 */
  .subscription-links {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .subscription-links h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
  }
  
  .subscription-links ul {
    list-style: none;
  }
  
  .subscription-links li {
    margin-bottom: 10px;
  }
  
  .subscription-links a {
    text-decoration: none;
    color: #1e90ff;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: block;
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f9fa;
  }
  
  .subscription-links a:hover {
    color: #fff;
    background-color: #1e90ff;
  }
  
  /* 复制成功消息的样式 */
  #copyMessage {
    margin-top: 15px;
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
  }
  
  /* RSS提示 */
  .rss-hint {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
  }

/* 导航栏样式 */
.navbar {
    background-color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    text-align: left;
}

.nav-logo {
    color: white;
    padding: 15px 0;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 15px;
    display: block;
    transition: background-color 0.3s;
}

.nav-menu li a:hover {
    background-color: #555;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 15px 0;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* 页面主内容 */
.main-content {
  padding-top: 100px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 100vh;
  width: 100%;
}

/* 卡片样式 */
.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  width: 100%;
  padding: 30px;
  margin: 20px 20px 20px 0;
}

/* Markdown 内容样式 */
.markdown-content {
  line-height: 1.7;
  color: #333;
  font-size: 16px;
  max-width: 100%;
}

.markdown-content h1, .markdown-content h2, .markdown-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #222;
  font-weight: 600;
  line-height: 1.3;
}

.markdown-content h1 {
  font-size: 2em;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.markdown-content h2 {
  font-size: 1.5em;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.markdown-content h3 {
  font-size: 1.3em;
}

.markdown-content p {
  margin: 15px 0;
}

.markdown-content a {
  color: #007BFF;
  text-decoration: none;
  border-bottom: 1px dashed #007BFF;
}

.markdown-content a:hover {
  text-decoration: underline;
  border-bottom: none;
}

.markdown-content code {
  background-color: #f7f7f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: #d6336c;
  font-size: 0.9em;
}

.markdown-content pre {
  background-color: #f7f7f9;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: #333;
  font-size: 0.9em;
  line-height: 1.5;
  margin: 20px 0;
}

.markdown-content pre code {
  background: none;
  padding: 0;
}

.markdown-content ul, .markdown-content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.markdown-content li {
  margin: 8px 0;
}

.markdown-content blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  border-left: 4px solid #007BFF;
  background-color: #f8f9fa;
  color: #666;
}

.markdown-content blockquote p {
  margin: 0;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  overflow-x: auto;
  display: block;
}

.markdown-content th, .markdown-content td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.markdown-content th {
  background-color: #f8f9fa;
  font-weight: bold;
}

.markdown-content tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* 目录样式 */
.toc {
  position: fixed;
  top: 80px;
  left: 0;
  width: 250px;
  height: calc(100vh - 80px);
  background-color: #fff;
  border-right: 1px solid #eee;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  transition: transform 0.3s ease;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
  z-index: 999;
}

.toc::-webkit-scrollbar {
  width: 6px;
}

.toc::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.toc::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.toc::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.toc h2 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
  padding: 6px 10px;
  display: block;
  border-radius: 4px;
  transition: all 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc a:hover {
  background-color: #f0f0f0;
  color: #0056b3;
}

/* 活动状态指示 */
.toc a.active {
  background-color: #007BFF;
  color: white;
  font-weight: 500;
}

/* 不同级别的标题样式 */
.toc .toc-level-1 a {
  font-weight: bold;
  font-size: 15px;
}

.toc .toc-level-2 a {
  font-size: 14px;
  padding-left: 20px;
}

.toc .toc-level-3 a {
  font-size: 13px;
  padding-left: 35px;
}

.toc .toc-level-4 a {
  font-size: 12px;
  padding-left: 50px;
}

/* 移动端适配 */
.toc-toggle {
  display: none;
  position: fixed;
  top: 90px;
  left: 10px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  font-size: 14px;
}

@media screen and (max-width: 1024px) {
  .toc {
    transform: translateX(-100%);
  }
  
  .toc.open {
    transform: translateX(0);
  }
  
  .toc-toggle {
    display: block;
  }
  
  .main-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .card {
    padding: 20px;
    max-width: calc(100% - 40px);
    margin: 20px;
  }
  
  .doc-container {
    max-width: 100%;
    margin-left: 0; /* 在小屏幕上移除左边距 */
  }
}

@media screen and (max-width: 768px) {
  .toc {
    width: 220px;
  }
  
  /* 小屏幕设备上目录位置调整 */
  .toc {
    top: 60px;
    height: calc(100vh - 60px);
  }
  
  .toc-toggle {
    top: 70px;
  }
  
  .nav-menu {
    display: none;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #333;
    flex-direction: column;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .nav-container {
    flex-wrap: wrap;
  }
  
  body {
    padding-top: 60px;
  }
  
  .main-content {
    padding-top: 80px;
  }
  
  .card {
    margin: 10px;
    padding: 15px;
    max-width: calc(100% - 20px);
  }
  
  .container {
    padding: 15px;
    max-width: 100%;
  }
  
  .podcast-info h1 {
    font-size: 2rem;
  }
  
  .podcast-info p {
    font-size: 1rem;
  }
  
  .subscription-links a {
    font-size: 1rem;
  }
  
  .markdown-content {
    font-size: 15px;
  }
  
  .markdown-content h1 {
    font-size: 1.7em;
  }
  
  .markdown-content h2 {
    font-size: 1.4em;
  }
  
  .markdown-content h3 {
    font-size: 1.2em;
  }
}