  body {
       font-family: Arial, sans-serif;
       margin: 0;
       padding: 0;
       background-color: #f4f4f9;
       color: #333;
   }
/* Header整体样式 */
header {
    background-color: white;  /* 背景为纯白色 */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;       /* 让 header 中的文本水平居中 */
    padding: 20px;
    height: 40px;             /* header 高度 */
    line-height: 60px;        /* 内容垂直居中 */
}

/* Logo样式 */
#logo {
    width: 100px;
    height: auto;
    margin-top: 20px;  /* 向上移动 logo */
    margin-right: 20px;
}

/* 标题样式 */
header h1 {
    margin: 0;
    font-size: 32px;      /* 标题字体大小 */
    line-height: 1.4;     /* 行高，确保中文和英文对齐 */
    color: #333;
}

/* 段落样式 */
header p {
    font-size: 16px;
    margin: 0;
}

/* 文本容器样式 */
header div {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 左对齐 */
}

/* 链接样式 */
header a {
    text-decoration: none;  /* 去掉下划线 */
    color: inherit;         /* 保持字体颜色一致 */
}

header a:visited {
    color: inherit;         /* 已访问链接颜色保持不变 */
}
#header-placeholder,
#nav-placeholder {
    background-color: white;
    padding: 10px 20px;
}

/* 你的现有样式 */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* 将所有内容居中 */
    background-color: #333;
    padding: 5px 0;
}

nav .category-header {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
    text-align: left;  /* 标题左对齐 */
    padding-left: 20px;  /* 给标题增加一些左边距 */
    width: 100%;
    line-height: 1.4;  /* 调整行高，使中文和英文更好地对齐 */
}

nav a {
    color: white;
    padding: 8px 12px;  /* 减少间距，缩小链接的空间 */
    text-decoration: none;
    text-align: center;
    margin: 3px 6px;  /* 减少每个链接之间的间距 */
    font-size: 14px;
    white-space: nowrap;  /* 确保链接文本不会换行 */
    line-height: 1.5;  /* 使链接中文和英文的行高一致 */
    vertical-align: middle;  /* 确保中文和英文在同一水平线上对齐 */
}

/* 下拉菜单的样式 */
nav .nav-item {
    position: relative;
    display: inline-block;
}

/* 下拉菜单容器 */
nav .dropdown {
    display: none;
    position: absolute;
    top: 125%;  /* 下拉菜单距离菜单项更远一点 */
    left: 0;
    background: #fff;
    min-width: 300px;  /* 给下拉菜单设定最小宽度 */
    border-radius: 8px;  /* 圆角 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* 增加阴影效果 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;  /* 增加过渡效果 */
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;  /* 让内容在两列之间分布 */
    padding: 10px;
}

/* 使下拉菜单项显示为两列 */
nav .dropdown a {
    width: 48%;  /* 设置每个链接占据一半的宽度 */
    margin-bottom: 10px;  /* 每行的间距 */
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

/* 下拉菜单背景渐变 */
nav .dropdown {
    background: linear-gradient(180deg, #f9f9f9, #fff);
}

/* hover 高亮 */
nav .dropdown a:hover {
    background-color: #e0e0e0;
    color: #2a6df4;
    padding-left: 20px;  /* 悬停时向左缩进 */
}

/* 显示下拉菜单 */
nav .nav-item:hover .dropdown {
    display: flex;
    opacity: 1;  /* 显示时改变透明度 */
    visibility: visible;  /* 显示时改变可见性 */
}

/* 针对具体的下拉菜单项，例如：雅思、托福等内容 */
nav .nav-item .dropdown .sub-dropdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* 让每个菜单项分为两列 */
    width: 100%;
    padding: 10px 0;
}

nav .dropdown .sub-dropdown a {
    width: 48%;  /* 每个子项占一半宽度 */
    margin-bottom: 10px;  /* 每行的间距 */
    font-size: 14px;
}

/* 悬停效果 */
nav .dropdown .sub-dropdown a:hover {
    background-color: #e0e0e0;
    color: #2a6df4;
    padding-left: 20px;
}



   .main-container {
       padding: 20px;
       text-align: center;
   }

   footer {
       background-color: #333;
       color: white;
       padding: 10px;
       text-align: center;
   }

   .exam-section {
       display: grid;
       grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 自适应布局 */
       gap: 20px;
       margin: 20px 0;
   }

   .exam-card {
       background-color: white;
       padding: 20px;
       border-radius: 8px;
       box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
       text-align: center;
   }

   .exam-card h3 {
       color: #1e90ff;
   }

   .exam-card a {
       display: inline-block;
       margin-top: 10px;
       padding: 10px 20px;
       background-color: #1e90ff;
       color: white;
       text-decoration: none;
       border-radius: 4px;
   }

   .exam-card a:hover {
       background-color: #0056b3;
   }


/* 去掉默认 bullet */
.exam-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 年份标题样式 */
.exam-list .year-title {
  font-weight: bold;
  font-size: 20px;
  margin: 15px 0 5px 0;
}

/* 列表项样式 */
.exam-list li {
  padding: 8px 12px;
  margin-bottom: 5px;
  border-radius: 6px;
  transition: background 0.2s;
}

/* 鼠标悬停效果 */
.exam-list li:hover {
  background-color: #e6f0ff;
}

/* 链接样式，默认状态无蓝色和下划线 */
.exam-list li a {
  text-decoration: none;
  color: inherit; /* 继承父元素颜色 */
  display: block; /* 整行可点击 */
  padding: 6px 0;
}

/* 鼠标悬停链接时显示蓝色和下划线 */
.exam-list li a:hover {
  color: #0077ff;
  text-decoration: underline;
}
/* 容器样式 */
.main-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

/* 网格布局：每行最多 3 个卡片 */
.exam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 一行3列 */
  gap: 15px; /* 卡片之间间距 */
}

/* 卡片样式 */
.exam-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px 20px;
  background-color: #f9f9f9;
  transition: box-shadow 0.2s, transform 0.2s;
}

.exam-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.exam-card h3 {
  margin-top: 0;
  font-size: 22px;
  font-weight: bold;
}

.exam-card p {
  margin: 8px 0 12px 0;
  color: #555;
}

/* 月份按钮 */
.month-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* 小屏幕自动换行 */
}

.month-buttons a {
  padding: 6px 12px;
  background-color: #0077ff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.month-buttons a:hover {
  background-color: #005bb5;
}

/* 响应式：屏幕小于 900px 每行 2 个 */
@media screen and (max-width: 900px) {
  .exam-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 响应式：屏幕小于 600px 每行 1 个 */
@media screen and (max-width: 600px) {
  .exam-grid {
    grid-template-columns: 1fr;
  }
}
.month-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;       /* 小屏幕自动换行 */
  justify-content: center; /* 按钮水平居中 */
}
.quiz-page {
    counter-reset: question; /* 初始化题号计数器 */
    background-color: #f4f6f8;
    padding: 20px;
}

.quiz-page .card {
    max-width: 720px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* 题干 */
.quiz-page .card h2 {
    font-weight: normal;
    counter-increment: question; /* 自动加1 */
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 18px;
}

/* 题号，不留任何缩进，题干紧跟 */
.quiz-page .card h2::before {
    content: counter(question) ". ";
    font-weight: bold;
    display: inline;  /* inline，不保留宽度 */
}

/* 选项按钮 */
.quiz-page .option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fafafa;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.quiz-page .option:hover { background-color: #eef3ff; }
.quiz-page .correct { background-color: #e6f7e6; border-color: #4CAF50; color: #2e7d32; }
.quiz-page .wrong { background-color: #fdecea; border-color: #f44336; color: #c62828; }
.quiz-page .result { margin-top: 12px; font-size: 18px; font-weight: bold; display: none; }
.quiz-page h1 {
    font-size: 24px;   /* 根据需要调小，比如24px */
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;  /* 标题和题目之间的间距 */
    color: #333;
}



</style>