/* 页面基础：固定使用 1920px 设计画布，再随视口整体等比例缩放。 */
:root {
  --primary: #165c91;
  --text: #333333;
  --muted: #999999;
  --line: #dddddd;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  background: #ffffff;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

/* 外层舞台跟随领导分工内容自然撑开，避免固定高度裁切内容。 */
.page-stage {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* 内层画布保留 Figma 像素坐标，页面高度由实际内容决定。 */
.page-canvas {
  width: 1920px;
  height: auto;
  zoom: calc(100vw / 1920px);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* 公共内容宽度固定为 1680px，对应设计稿左右各 120px 留白。 */
.page-content,
.organization-shell {
  width: 1680px;
  margin-right: auto;
  margin-left: auto;
}

/* 顶部导航：尺寸和坐标与职能介绍页的 Figma 头部一致。 */
.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  width: 1920px;
  height: 120px;
  padding: 0 60px;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 150px;
  align-items: center;
  background: #ffffff;
}

.brand {
  display: flex;
  width: 804px;
  align-items: center;
}

.brand-school {
  width: 222px;
  height: 60px;
  object-fit: contain;
}

.brand-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 60px;
  margin: 0 29px;
  background: #d6d6d6;
}

.brand-department {
  width: 522px;
  height: 60px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  flex: 0 0 auto;
  height: 100%;
  align-items: center;
  gap: 40px;
  font-size: 18px;
}

.nav-item {
  position: relative;
  display: grid;
  height: 100%;
  align-items: center;
}

.nav-link {
  position: relative;
  z-index: 0;
  display: grid;
  height: 100%;
  align-items: center;
  white-space: nowrap;
}

/* 主导航悬停装饰沿用现有 Figma 切图。 */
.nav-link::before,
.nav-link::after {
  position: absolute;
  left: 50%;
  z-index: -1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .18s ease;
}

.nav-link::before {
  top: 0;
  width: 126px;
  height: 42px;
  background-image: url("../img/figma/nav-decoration-top.png");
}

.nav-link::after {
  bottom: 0;
  width: 80px;
  height: 42px;
  background-image: url("../img/figma/nav-decoration.png");
}

.nav-item:hover .nav-link::before,
.nav-item:hover .nav-link::after,
.nav-item:focus-within .nav-link::before,
.nav-item:focus-within .nav-link::after {
  opacity: 1;
}

/* 桌面二级导航使用首页相同的 iOS 风格浮层。 */
.sub-nav { position: absolute; z-index: 2; top: 100%; left: 50%; visibility: hidden; min-width: 170px; padding: 8px; border: 1px solid rgba(0, 0, 0, .08); border-radius: 8px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); opacity: 0; transform: translate(-50%, -8px); transition: opacity .18s ease, transform .18s ease, visibility .18s; backdrop-filter: blur(16px); }
.sub-nav a { display: block; padding: 9px 14px; border-radius: 6px; color: var(--text); font-size: 16px; line-height: 24px; text-align: center; white-space: nowrap; }
.sub-nav a:hover, .sub-nav a:focus-visible { color: var(--primary); background: #f1f6fa; }
.nav-item:hover .sub-nav, .nav-item:focus-within .sub-nav { visibility: visible; opacity: 1; transform: translate(-50%, 0); }

/* 桌面端隐藏移动导航，手机端显示规则在文件末尾统一覆盖。 */
.mobile-navigation {
  display: none;
}

/* 机构设置横幅：从页面 y=120 开始，高度固定为 550px。 */
.organization-hero {
  position: relative;
  width: 1920px;
  height: 550px;
}

.organization-banner {
  width: 1920px;
  height: 550px;
  object-fit: cover;
}

.organization-shell {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 左侧栏目标题位于页面 x=120、y=370，尺寸为 280×380。 */
.organization-title {
  position: absolute;
  top: 250px;
  left: 0;
  z-index: 2;
  width: 280px;
  height: 380px;
  color: #ffffff;
  text-align: center;
  pointer-events: auto;
}

.organization-panel {
  position: absolute;
  inset: 0;
  width: 280px;
  height: 380px;
}

.organization-icon {
  position: relative;
  width: 48px;
  height: 42px;
  margin: 95px auto 0;
  object-fit: contain;
}

.organization-title h1 {
  position: relative;
  margin: 14px 0 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 34px;
}

/* 桌面端正文容器距二级栏目底部 60px，栏目向横幅下方延伸 20px。 */
.page-content {
  margin-top: 50px;
}

.breadcrumb {
  position: relative;
  height: 78px;
}

.breadcrumb::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 2px;
  background: var(--primary);
  content: "";
}

.breadcrumb p {
  position: absolute;
  bottom: 18px;
  left: 0;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.breadcrumb p span {
  color: var(--muted);
}

.breadcrumb img {
  position: absolute;
  right: 10px;
  bottom: 0;
  z-index: 1;
  width: 210px;
  height: 78px;
  object-fit: contain;
}

/* 领导列表直接从正文容器起点开始，两列卡片之间保留 60px。 */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 810px);
  gap: 60px;
  padding: 0 0 120px;
}

/* 单个领导模块严格使用 Figma 的 810×360px 展示区域。 */
.leader-card {
  position: relative;
  width: 810px;
  height: 360px;
}

/* 人物照片按 Figma 使用 260×340px，并覆盖在姓名栏上方。 */
.leader-photo {
  position: relative;
  z-index: 2;
  width: 260px;
  height: 340px;
  max-width: none;
  object-fit: cover;
}

/* 右侧详情区从卡片 x=300px、y=60px 开始，顶部横线宽 510px。 */
.leader-details {
  position: absolute;
  top: 60px;
  left: 300px;
  width: 510px;
  padding-top: 33px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 26px;
}

.leader-duty,
.leader-phone {
  margin: 0;
}

/* 职责文字按 Figma 保留 450px 行宽，避免长文字贴近卡片右边缘。 */
.leader-duty {
  width: 450px;
}

/* 电话与职责末行保持设计稿中的 5px 行间距。 */
.leader-phone {
  margin-top: 5px;
  line-height: 36px;
}

/* 姓名栏位于卡片 x=150px、y=280px，尺寸为 660×80px。 */
.leader-name {
  position: absolute;
  bottom: 0;
  left: 150px;
  z-index: 1;
  display: flex;
  width: 660px;
  height: 80px;
  padding-left: 150px;
  align-items: center;
  color: #ffffff;
  background: url("../img/figma/leader-name-panel.svg") center / 660px 80px no-repeat;
}

.leader-name strong {
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  white-space: nowrap;
}

.leader-name span {
  display: flex;
  margin-left: 20px;
  align-items: center;
  font-size: 16px;
  line-height: 36px;
  white-space: nowrap;
}

/* 职务分隔线位于姓名右侧 20px，尺寸为 1×24px。 */
.leader-name span::before {
  width: 1px;
  height: 24px;
  margin-right: 20px;
  background: rgba(255, 255, 255, .5);
  content: "";
}

/* 手机端公共布局：使用设备判断结果，取消桌面画布缩放并启用一级汉堡菜单。 */
.is-mobile .page-stage {
  height: auto;
  overflow: visible;
}

.is-mobile .page-canvas {
  width: 100%;
  height: auto;
  zoom: 1;
}

.is-mobile .site-header {
  width: 100%;
  height: 72px;
  padding: 0 16px;
  grid-template-columns: minmax(0, 1fr) 44px;
  column-gap: 10px;
}

.is-mobile .brand {
  width: 100%;
  min-width: 0;
}

.is-mobile .brand-school {
  width: 96px;
  height: 36px;
}

.is-mobile .brand-divider {
  height: 34px;
  margin: 0 10px;
}

.is-mobile .brand-department {
  width: min(190px, calc(100% - 117px));
  height: 36px;
}

/* 手机端仅隐藏桌面主导航，机构栏目菜单由公共样式统一处理。 */
.is-mobile .main-nav {
  display: none;
}

/* 手机端原生折叠菜单仅保留一级导航，样式与首页汉堡菜单保持一致。 */
.is-mobile .mobile-navigation {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
}

.is-mobile .mobile-navigation summary {
  display: block;
  width: 44px;
  height: 44px;
  padding: 10px;
  list-style: none;
  cursor: pointer;
}

.is-mobile .mobile-navigation summary::-webkit-details-marker {
  display: none;
}

.is-mobile .mobile-navigation summary span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--primary);
  transition: transform .2s ease, opacity .2s ease;
}

.is-mobile .mobile-navigation[open] summary span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.is-mobile .mobile-navigation[open] summary span:nth-child(2) {
  opacity: 0;
}

.is-mobile .mobile-navigation[open] summary span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.is-mobile .mobile-navigation nav {
  position: absolute;
  top: 52px;
  right: 0;
  display: grid;
  width: calc(100vw - 24px);
  max-height: calc(100vh - 88px);
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  backdrop-filter: blur(16px);
}

.is-mobile .mobile-navigation nav a {
  display: flex;
  min-height: 48px;
  padding: 0 14px;
  align-items: center;
  border-radius: 6px;
  font-size: 16px;
}

/* 手机端正文与二级栏目之间统一保留 60px。 */
.is-mobile .page-content {
  width: calc(100% - 32px);
  margin-top: 50px;
}

.is-mobile .breadcrumb {
  display: flex;
  min-height: 58px;
  height: auto;
  align-items: center;
}

.is-mobile .breadcrumb p {
  position: static;
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  white-space: normal;
}

.is-mobile .breadcrumb img {
  display: none;
}

/* 手机端领导卡片使用左图右文结构，卡片之间按单列纵向排列。 */
.is-mobile .leader-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 0 40px;
}

.is-mobile .leader-card {
  display: grid;
  width: 100%;
  height: auto;
  min-height: 180px;
  overflow: hidden;
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  border-radius: 8px;
  background: #f7f7f7;
}

.is-mobile .leader-photo {
  position: static;
  width: 108px;
  height: 100%;
  min-height: 180px;
  grid-row: 1 / 3;
  object-fit: cover;
}

.is-mobile .leader-details {
  position: static;
  width: auto;
  padding: 16px;
  border-top: 0;
  font-size: 13px;
  line-height: 1.7;
}

/* 手机端取消桌面职责固定宽度，长文字随卡片宽度自然换行。 */
.is-mobile .leader-duty {
  width: auto;
}

.is-mobile .leader-phone {
  margin-top: 8px;
  line-height: 22px;
}

.is-mobile .leader-name {
  position: static;
  width: auto;
  height: auto;
  min-height: 48px;
  padding: 8px 14px;
  background: var(--primary);
}

.is-mobile .leader-name strong {
  font-size: 17px;
  line-height: 24px;
}

.is-mobile .leader-name span {
  margin-left: 10px;
  font-size: 12px;
  line-height: 20px;
}

.is-mobile .leader-name span::before {
  height: 18px;
  margin-right: 10px;
}
