body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* 顶部 Logo 区域 */
.logo-bar {
  background-color: #ffffff;
  padding: 20px 0;
}

/* 让 logo 和右边文字同一行、左右分布 */
.logo-bar-inner {
  max-width: 1200px;
  margin: 0 auto;          /* 中间居中，而不是 0 100px */
  padding: 0 24px;
  display: flex;
  justify-content: space-between;   /* 左右两端对齐 */
  align-items: center;
  box-sizing: border-box;
}


/* 控制 logo 尺寸，防止太大 */
.logo-main {
  max-height: 80px;
  height: auto;
  width: auto;
}

/* “Sign up for email alerts” 按钮样式 */
.email-alerts-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: #113d80;
  text-decoration: none;

  margin-left: auto;    /* ✅ 把自己“顶”到 flex 容器的最右边 */
  white-space: nowrap;  /* ✅ 禁止在空格处换行，整句始终在一行 */
}


.email-alerts-link:hover {
  text-decoration: underline;
}

/* 小箭头稍微大一点 */
.email-alerts-arrow {
  font-size: 24px;
}



/* ===== 顶部导航栏 & breadcrumb ===== */

/* 顶部深蓝导航条 */
.top-nav {
  background-color: #113d80;
  color: #fff;
}

.top-nav-inner {
  max-width: 2400px;
  margin: 0;
  padding: 20px 120px;
  display: flex;
  justify-content: flex-start; 
  align-items: center;
  box-sizing: border-box;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  align-items: center;   /* 关键：让子元素在交叉轴居中 */
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-dropdown-toggle {
  display: inline-flex;      /* 用 flex，让文字在自身盒子里垂直居中 */
  align-items: center;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: none;
  border: none;
  padding: 0;                /* 去掉 button 默认的上下 padding */
  cursor: pointer;
  line-height: 1;            /* 统一行高 */
}

.nav-link:hover,
.nav-dropdown-toggle:hover {
  text-decoration: underline;
}

/* 导航栏右侧社交图标区域 */
.nav-social {
  display: flex;
  align-items: center;
  gap: 36px;          /* 图标之间的间距 */
  margin-left: auto; /* 把社交图标推到导航栏最右侧 */
}

/* 单个图标图片 */
.nav-social img {
  width: 32px;
  height: 32px;
  display: block;
}

/* 鼠标悬停时轻微效果（可选） */
.nav-social a:hover img {
  opacity: 0.8;
  transform: translateY(-1px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}


/* About 下拉菜单 */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #5877a6;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 220px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

/* breadcrumb（road map） */
.breadcrumb {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 ;
  padding: 12px 80px;
  font-size: 18px;
  color: #10264a;
  box-sizing: border-box;
}

.breadcrumb-inner a {
  color: #10264a;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-inner a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 4px;
}

.dept-section {
  background-color: #f4f4f4;      /* 和截图里很像的浅灰 */
  padding: 60px 0 40px;           /* 上下留白 */
}

/* ===== 世界地图横幅部分 ===== */
.worldmap-banner {
  background-color: #ffffff;
  padding: 0px 0;          /* 控制中间露出的高度 */
  overflow: hidden;         /* 把超出部分截掉 */
  text-align: center;
  position: relative;
  z-index: 1;
}

/* 地图图片：不要铺满宽度，只在中间显示 */
.worldmap-banner img {
  width: 100%;
  height: 250px;
  opacity: 0.65;            /* 淡淡的背景效果 */
  display: inline-block;
}

/* 正中间的“DEPARTMENTS”标题 */
.worldmap-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
}

/* 右下角的管理员信息 */
.worldmap-admin {
  position: absolute;
  right: 40px;          /* 离右边的距离，可以按需要调 */
  bottom: 20px;         /* 离底部的距离，可以按需要调 */
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);  /* 让白字在星空上更清晰 */
  z-index: 2;           /* 确保在图片之上 */
}

/* 管理员名字的链接样式：白色 + 下划线 */
.worldmap-admin a:link,
.worldmap-admin a:visited {
  color: #ffffff;
  text-decoration: underline;
}

/* 悬停时稍微加粗一点下划线效果 */
.worldmap-admin a:hover,
.worldmap-admin a:active {
  color: #ffffff;
  text-decoration: underline;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* ===== EDITORIAL OFFICE 部分 ===== */
/* 蓝色标题条 */
.section-header {
background-color: #113d80;      /* 深蓝：你想要的颜色 */
color: #fff;
padding: 48px 0;
}

.section-header-inner {
  max-width: none;   /* 或者干脆删掉这一行 */
  width: 100%;
  margin: 0;         /* 关键：不要再居中了 */
  display: flex;
  align-items: center;
  padding-left: 120px;   /* 或者你想要的任意值 */
}

.section-title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* 标题右边那根金色竖线 */
.section-divider {
  display: inline-block;
  width: 2px;
  height: 32px;
  background-color: #c9a44f;      /* 金色 */
  margin-left: 18px;
}

/* 三张卡片整体容器 */
.editorial-office {
  max-width: 1200px;
  margin: 40px auto 60px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

/* 单张卡片 */
.editorial-card {
  flex: 1;
  text-align: center;

  /* 新增：用 flex 把内部内容竖着排并水平居中 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 头像容器，确保自己也居中 */
.editorial-card .avatar {
  margin: 0 auto 20px;
}

/* 教授名字链接的下划线颜色 + 把链接当成一个竖向的小容器 */
.editorial-card a {
  display: inline-flex;          /* 新增：让 a 也用 flex */
  flex-direction: column;
  align-items: center;

  text-decoration-color: #c9a44f; /* 设置下划线为金色 */
  text-decoration-thickness: 2px; /* 下划线粗细可选 */
}

.editorial-card a:hover {
  text-decoration-color: #e6c477; /* 悬停时稍微亮一点，可选 */
}

/* ===== Department Editors: 两列布局 ===== */
.dept-editors-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr)); /* 每行两个 */
  gap: 26px 60px;  /* 行间距 / 列间距，可按需调 */
  margin-top: 14px;
}

/* 单个 editor 块 */
.dept-editor{
  line-height: 1.6;
}

/* 教授名字链接可保持你原来的 prof-name 风格 */
.dept-editor .prof-name{
  font-weight: 700;
}

/* 小屏自动变一列（必须要，不然手机会挤爆） */
@media (max-width: 900px){
  .dept-editors-grid{
    grid-template-columns: 1fr;
  }
}


/* 圆形头像 */
.avatar {
  width: 260px;
  height: 260px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}


.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 新增这一行：把裁剪的中心稍微往上移 */
  object-position: center 15%;
  display: block;
}


/* 名字 & 职位 & 文本 */
.name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #b38b2e;                 /* 有点偏金的黄色 */
}

.role {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #555;
}

.detail {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

/* -------- 以下是 ALL DEPARTMENTS 的可折叠 bar -------- */

/* 外层容器 */
.departments-wrapper {
  width: 100%;      /* 占满整行 */
  max-width: none;  /* 不要限制在 1200px */
  margin: 0;        /* 去掉居中和外边距 */
}

/* 使用 <details> 做折叠，不需要 JS */
details.dept-accordion {
  width: 100%;
  margin: 0;              /* 关键：去掉间隙 */
  border-radius: 0;
  overflow: hidden;
  display: block;         /* 明确整行 */
}

/* summary 就是你看到的那一条金色 bar */
details.dept-accordion > summary {
  cursor: pointer;
  background: linear-gradient(90deg,  #7498ac 0%, #bcd2df 100%);
  color: #ffffff;
  padding: 36px 120px;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  list-style: none;
  width: 100%;            /* 占满整行 */
  box-sizing: border-box; /* 包含 padding */
}

/* 去掉默认的小箭头（各浏览器兼容写法） */
details.dept-accordion > summary::-webkit-details-marker {
  display: none;              /* Chrome / Safari */
}

/* 去掉不同 bar 之间的缝隙（有些浏览器会给 details 默认 margin） */
details.dept-accordion + details.dept-accordion {
  margin-top: 0;
}

/* 左边的小三角图标 */
.dept-triangle {
  margin-right: 16px;
  font-size: 22px;
}

/* 折叠栏里面的“Departmental Editors”小标题 */
.dept-subtitle {
  margin: 24px 0 12px;      /* 上下留白 */
  font-size: 26px;          /* 字号比名字大一点 */
  font-weight: 700;         /* 加粗 */
  color: #12233a;           /* 深蓝色，和整体风格一致 */
}

/* 展开的内容区域 */
.dept-panel {
  background-color: #f4f4f4;
  padding: 24px 160px;
  color: #333;
  font-size: 18px;
  line-height: 1.6;
}

.prof-name {
  font-weight: 700;        /* 加粗 */
  color: #113d80;          /* 换成你想要的颜色，这里示例用金色 */
}

.email-link {
  color: #001a33;          /* 和正文一样的颜色 */
  text-decoration: none;   /* 去掉下划线（按你需要来） */
}

/* 在邮箱后面自动加一个小信封图标 */
.email-link::after {
  content: "✉";            /* 信封符号 */
  margin-left: 4px;
  font-size: 0.8em;
}


/* 响应式：屏幕窄的时候竖着排 */
@media (max-width: 992px) {
  .editorial-office {
    flex-direction: column;
    align-items: center;
  }

  .editorial-card {
    max-width: 380px;
  }
}

.dept-subtitle-link {
  color: inherit;          /* 继承 h3 的颜色 */
  font-size: inherit;      /* 继承 h3 的字号 */
  font-weight: inherit;    /* 继承 h3 的粗细 */
  text-decoration: underline;  /* 保留下划线 */
}

.dept-subtitle-link:hover {
  text-decoration: underline;  /* hover 时仍保持一致 */
}


/* ==== 底部栏整体 ==== */
.dsj-footer {
  background-color: #102846;      /* 深蓝，和上方导航呼应 */
  color: #ffffff;
  padding: 40px 80px;
  margin-top: 60px;               /* 和上面内容留一点空隙 */
}

/* 内部布局：左 logo + 右新闻 */
.dsj-footer-inner {
  max-width: 2400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 200px;
}

/* 左侧 logo 区 */
.dsj-footer-left {
  flex: 0 0 auto;
}

.dsj-footer-logo {
  max-width: 400px;               /* 根据实际 logo 大小可微调 */
  height: auto;
  display: block;
}

/* 右侧新闻区 */
.dsj-footer-right {
  flex: 1 1 auto;
}

.dsj-footer-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* 新闻列表 */
.dsj-footer-news {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dsj-footer-news li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

/* 日期和正文做一点区分 */
.dsj-footer-news .news-date {
  display: inline-block;
  min-width: 90px;
  font-weight: 600;
  color: #c9d4e5;                 /* 淡一点的蓝灰色 */
}

.dsj-footer-news .news-text {
  color: #f5f7fb;
}

/* 小屏幕自适应：上下排列 */
@media (max-width: 900px) {
  .dsj-footer {
    padding: 30px 24px;
  }

  .dsj-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .dsj-footer-logo {
    max-width: 220px;
  }
}



/* Scoped styles for this AE/ERB page only */
.dept-page-container {
  max-width: 1100px;
  margin: 28px auto 60px;
  padding: 0 18px;
}
.dept-page-header-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  margin-bottom: 14px;
}
.dept-backlink {
  font-size: 14px;
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 8px;
}
.dept-page-title {
  margin: 6px 0 4px;
  font-size: 26px;
  line-height: 1.2;
}
.dept-page-subtitle {
  margin: 0 0 8px;
  font-size: 15px;
  opacity: 0.85;
}
.dept-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 6px;
}
.dept-action-btn {
  font-size: 14px;
  text-decoration: underline;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 8px 10px;
  border-radius: 10px;
  display: inline-block;
}
.dept-page-hint {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.75;
}

.ae-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start; /* ✅ 关键：防止同一行另一张卡片被“拉高” */
}

@media (max-width: 820px) {
  .ae-grid { grid-template-columns: 1fr; }
}

.ae-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}
.ae-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  align-items: flex-start;
}
.ae-card summary::-webkit-details-marker { display: none; }
.ae-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ae-affil {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.35;
}
.ae-caret {
  font-size: 18px;
  opacity: 0.7;
  padding-top: 2px;
}
.ae-body {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
}
.meta-label {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 6px;
}
.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 12px;
  line-height: 1.15;
}
