/* ======== CSS Reset ======== */
/* 1. 通用规则 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

/* 2. 标题标签统一样式 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-size: inherit;
  line-height: inherit;
}

/* 3. 段落、文本标签 */
p,
span,
strong,
em,
b,
i {
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-style: normal;
}

/* 4. 列表无样式 */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 5. 图片处理 */
img {
  max-width: 100%;
  display: block;
  border: none;
}

/* 6. 链接样式 */
a {
  text-decoration: none;
  color: inherit;
}

/* 7. 表单元素 */
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
  padding: 0;
  margin: 0;
}

/* 8. 按钮样式 */
button {
  cursor: pointer;
}

/* 9. HTML5 语义标签 */
article,
aside,
footer,
header,
nav,
section,
main,
figure,
figcaption {
  display: block;
}


/* 字体全局配置 */
@font-face {
  font-family: 'ISOCPEUR';
  src: url('./fonts/ISOCPEUR.ttf') format('truetype');
}

html,
body {
  font-family: 'ISOCPEUR', sans-serif;
  box-sizing: border-box;
}

/* ======== 顶部导航栏  ============ */
nav {
  background: linear-gradient(90deg, #E7D099 12.98%, #2C4FCF 100%);
  box-sizing: border-box;
}

/* 隐藏下拉内容 */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

/* 鼠标悬停时显示 */
.dropdown:hover .dropdown-content {
  display: block;
}

/* 让 <li> 成为相对定位，以便 dropdown-content 定位 */
.dropdown {
  position: relative;
}

/* 让链接元素美观一些 */
.dropdown-content a {
  color: #000;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 18px;
}

.dropdown-content a:hover {
  background-color: #D9D9D9;
}

.menu {
  box-sizing: border-box;
  margin-right: 6.5625rem;
  font-size: 1.875rem;
  color: #FFFFFF;
}

/* ========= footer =========== */
.footer {
  background-color: #BED4EB;
  background-size: cover;
  border-top: 8px solid #2d5dbd;
  color: #000;
  font-size: 1.3rem;
  position: relative;
}

footer a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  color: #2d5dbd;
}


.footer .footer-trim {
  width: 100%;
  min-height: 26px;
  background-color: #2C4FCF;
}

.footer h5 {
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: 3rem;
  line-height: 100%;
  letter-spacing: 0%;
}

.footer-bottom {
  border-top: 1px solid #888;
  color: #333;
}

.footer-bottom a {
  color: #3960eb;
  font-size: 1.2rem;
}

.footer-bottom a:hover {
  color: #d6470f;
  text-decoration: underline;
  font-weight: bold;
}