/* stylelint-disable selector-max-id */
body {
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #24292e;
  overflow-x: hidden; /* 防止横向滚动 */
  width: 100%;
}

/* 固定header样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
  z-index: 1000;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 标题样式 */
.header-title {
  font-size: 18px;
  font-weight: bold;
  display: none; /* 默认在小屏幕上隐藏 */
}

/* 在大屏幕上显示标题 */
@media (width >= 768px) {
  .header-title {
    display: block;
  }
}

/* 优化select样式 */
#language-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}

#language-select:hover {
  border-color: #aaa;
}

#language-select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgb(74 144 226 / 20%);
}

.main-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box; /* 确保padding不会增加总宽度 */
}

/* 小屏幕下的样式 */
@media (width <= 767px) {
  .main-content {
    padding: 15px;
    width: 100%;
  }
  
  .header {
    padding: 10px 15px;
  }
  
  /* 确保表格在小屏幕上不会溢出 */
  .doc-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  /* 确保图片不会溢出容器 */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* 表格样式 */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.doc-table th,
.doc-table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.doc-table th {
  background-color: #f6f8fa;
  font-weight: 600;
}

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

.doc-table tr:hover {
  background-color: #f1f4f7;
}

/* 标题样式 */
h1,
h2,
h3 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 2em;
  padding-bottom: .3em;
  border-bottom: 1px solid #eaecef;
}

h2 {
  font-size: 1.5em;
  padding-bottom: .3em;
  border-bottom: 1px solid #eaecef;
}

h3 {
  font-size: 1.25em;
}