/* 基础样式 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0.1;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 头部和图片 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* 更新 header-left，改为垂直排列 */
.header-left {
  flex: 1;
  text-align: left;
}

.header-left h1 {
  margin: 0;
  font-size: 2em;
}

.contact p {
  margin: 5px 0 0;
  font-size: 1em;
}

/* header-right 保持不变 */
.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.header h1 {
  margin: 0;
  font-size: 2em;
  margin-right: auto; /* 将 h1 推至左侧 */
}

.header img {
  width: 100%;
  max-width: 100px;
  height: auto;
  border-radius: 50%;
}

/* 图片容器 */
.image-container {
  max-width: 720px;
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 30px;
}

.image-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* 文本及列表 */
h2 {
  margin-top: 0;
}

h3 {
  display: flex;
  justify-content: center;
  align-items: center;
}

p {
  line-height: 1.1;
}

ul {
  padding: 0;
  margin: 0;
}

li {
  list-style: none;
  margin-bottom: 5px;
}

/* 图片通用 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

table thead {
  background: #f0f0f0;
}

/* 各表的特殊样式 */
/* Table1 */
.table1 {
  width: 100%;
  border-collapse: collapse;
}

.table1 th,
.table1 td {
  border: 1px solid black;
}

.table1 th {
  text-align: center;
}

.table1 td {
  text-align: left;
}

.table1 th:nth-child(1),
.table1 td:nth-child(1),
.table1 th:nth-child(2),
.table1 td:nth-child(2),
.table1 th:nth-child(3),
.table1 td:nth-child(3),
.table1 th:nth-child(4),
.table1 td:nth-child(4) {
  text-align: center;
}

/* Table2 */
.table2 {
  width: 100%;
  border-collapse: collapse;
}

.table2 th,
.table2 td {
  border: 1px solid black;
}

.table2 th {
  text-align: center;
}

.table2 td {
  text-align: left;
}

.table2 th:nth-child(1),
.table2 td:nth-child(1),
.table2 th:nth-child(3),
.table2 td:nth-child(3) {
  text-align: center;
}

/* Table3 */
.table3 {
  width: 100%;
  border-collapse: collapse;
}

.table3 th,
.table3 td {
  border: 1px solid black;
  padding: 8px;
}

.table3 th {
  text-align: center;
}

.table3 td {
  text-align: left;
}

.table3 th:nth-child(1),
.table3 td:nth-child(1){
  text-align: center;
}

/* Table4 */
.table4 {
  width: 100%;
  border-collapse: collapse;
}

.table4 th,
.table4 td {
  border: 1px solid black;
}

.table4 th {
  text-align: center;
}

.table4 td {
  text-align: left;
}

/* Table5 */
.table5 {
  width: 100%;
  border-collapse: collapse;
}

.table5 th,
.table5 td {
  border: 1px solid black;
  padding: 8px;
}

.table5 th:nth-child(1),
.table5 td:nth-child(1)，
.table5 th:nth-child(2),
.table5 td:nth-child(2){
  text-align: center;
}

/* 菜单区 */
#menuBar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f0f0f0;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.toggle-button {
  cursor: pointer;
  font-size: 1.2em;
  color: #333;
}

.toggle-button .collapse-label {
  margin-left: 5px;
}

/* 底部 */
.footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  background-color: #f2f2f2;
  padding: 20px 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 10px;
  }
}
