/* =========================================================
   内蒙古工业大学工会 · 公共样式
   设计稿还原：1091 × 1020
   包含：头部 / 导航（含二级菜单）/ 主体背景 / 网站链接 / 页脚
   固定按 150% 缩放呈现（zoom: 1.5），不随浏览器缩放重排
   页面主体样式：css/index.css（首页）、css/neirong.css（内容页）
   ========================================================= */
/* =========================================================
   内容页骨架（面包屑 / 左侧栏目 / 正文容器）
   内容页与列表页共用，所以放在公共样式里
   ========================================================= */
.main.inner-main {
  padding: 33px 0 60px;
}

.inner-shell { padding-left: 34px; }

/* 面包屑 */
.breadcrumb {
  height: 24px;
  padding-left: 7px;
  font-size: 16px;
  line-height: 24px;
  color: #2f2f2f;
}

.breadcrumb .crumb-sep { margin: 0 2px; }

.breadcrumb span { display: inline; }

/* 左侧栏目 + 正文（横向尺寸为原设计稿的 140%，整体拉宽 40%） */
.inner-layout {
  display: grid;
  grid-template-columns: 157px minmax(0, 1fr);   /* 正文列占满剩余宽度，窗口过窄时自动收窄 */
  column-gap: 168px;
  align-items: start;
  margin-top: 34px;
}

.side-nav { width: 157px; }

.side-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 一级选项 */
.side-menu-parent {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 157px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 3px;
  background: linear-gradient(180deg, #4173a8 0%, #366092 50%, #2e578a 100%);
  color: #fff;
  font-family: var(--font-song);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: default;
}

/* 二级选项 */
.side-submenu {
  margin: 0;
  padding: 19px 0 0 8px;
  list-style: none;
}

.side-submenu li { line-height: 48px; }

.side-submenu a {
  display: inline-flex;
  align-items: center;
  color: #111;
  font-family: var(--font-song);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: default;
}

.side-submenu a:hover,
.side-submenu a:focus-visible {
  color: #111;
  font-weight: 700;
}

.side-submenu .arrow {
  margin-right: 3px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
}

/* 正文容器（内容页放文章正文，列表页放选项列表） */
.article {
  width: 1036px;
  max-width: 100%;
  padding-top: 39px;
  font-family: var(--font-song);
  font-size: 24px;
  line-height: 43.3px;
  letter-spacing: 0;
  color: #151515;
  text-align: left;
}

/* 只给读屏软件的文字 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


:root {
  --wrap: 1512px;          /* 内容最大宽度 */
  --pad: 30px;             /* 内容左右留白 */
  --gap: 12px;             /* 两栏间距 */
  --navy: #366092;         /* 导航 / 页脚主色 */
  --navy-deep: #123a66;    /* 深海军蓝 */
  --red: #c0141f;          /* 标语红 */
  --bar-h: 44px;           /* 栏目条高度 */
  --font-sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --font-song: "SimSun", "宋体", "Songti SC", "STSong", serif;
  --font-kai: "STKaiti", "KaiTi", "楷体", "Kaiti SC", serif;
 
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: #eef0f2;
}

/*
 * 固定 150% 版式
 * zoom 将整页按 1.5 倍渲染；min-width 锁定设计稿 1091px 的布局宽度。
 * 浏览器缩放时页面只整体缩放，不触发任何响应式重排；
 * 窗口宽度不足时出现横向滚动条。
 * 若要调整全局倍率，只改 --page-zoom 即可。
 */
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  background: #eef0f2;
 
}
.page {
  width: 1527px;
  margin: 0 auto;
}
img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, p { margin: 0; }

button, input { font: inherit; }

.wrap {
  width:90%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* =========================================================
   头部（约 128px）
   背景为浅蓝渐变，右侧留出建筑插画与搜索框
   ========================================================= */
.site-header {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(180deg,
    #72afff 0%,
    #7bb3fe 17%,
    #8abbfa 33%,
    #9ec5f4 49%,
    #b1cdf0 64%,
    #c2d5ed 80%,
    #c5d7ed 100%);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* 页面整体缩到 70% 后头部被拉宽到窗口宽，图片按原先铺满宽度的 85% 显示，避免过大 */
  /*background: url("../images/header-decor.png") center / 55% auto no-repeat;*/
 background: url("../images/header-decor.png") calc(50% + 90px) center / 53% auto no-repeat;
  opacity: .35;
  pointer-events: none;
}
.header-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: -2px;
  transform: translateY(-3px);
}

/* LOGO 插槽：按高度等比缩放，替换图片即可 */
.brand-logo {
  height: 130px;
  width: auto;
}

.brand-title {
margin-left: 10px;
  font-family: var(--font-song);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy-deep);
  letter-spacing: 1px;
  white-space: nowrap;
}

/* 搜索框 */
.search {
  position: relative;
  top: 13px;
  margin-left: auto;
  width: 208px;
  height: 34px;
  flex: none;
}

.search input {
  width: 100%;
  height: 100%;
  padding: 0 40px 0 16px;
  border: 1px solid rgba(105, 140, 184, .5);
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  color: var(--navy-deep);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search input:focus {
  background: rgba(255, 255, 255, .8);
  border-color: #9db8d8;
  box-shadow: 0 0 0 3px rgba(120, 160, 210, .18);
}

.search button {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #23456f;
  cursor: pointer;
}

.search button:hover { color: #0f2f56; }

/* =========================================================
   主导航（38px）
   ========================================================= */
.main-nav {
  position: relative;
  z-index: 3;
  background: var(--navy);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -1px 0 rgba(0, 0, 0, .14);
}

.main-nav .wrap {
  max-width: var(--wrap);
  padding: 0;
}

.main-nav ul {
  display: flex;
  height: 38px;
}

.main-nav li { flex: 1; }

.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-song);
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  transition: background .2s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, .12);
  outline: none;
}

/* =========================================================
   导航二级菜单
   ========================================================= */
.main-nav li { position: relative; }

.main-nav .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 30;
  display: block;
  height: auto;
  min-width: 132px;
  padding: 5px 0;
  transform: translateX(-50%);
  border-top: 2px solid #7aa6d8;
  border-radius: 0 0 3px 3px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 52, 88, .22);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.main-nav .has-submenu:hover > .submenu,
.main-nav .has-submenu:has(a:focus-visible) > .submenu {
  opacity: 1;
  visibility: visible;
}

.main-nav .submenu li { flex: none; }

.main-nav .submenu a {
  display: block;
  height: auto;
  padding: 8px 20px;
  font-family: var(--font-song);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  color: #23456f;
}

.main-nav .submenu a:hover,
.main-nav .submenu a:focus-visible {
  background: #edf4fb;
  color: #b21f2d;
  outline: none;
}

/* =========================================================
   主体背景（浅蓝 → 浅灰的连续渐变）
   ========================================================= */
.main {
  padding: 20px 0 0;
  background: linear-gradient(180deg,
    #c7d8ec 0%,
    #cadbed 10%,
    #d6e1f0 36%,
    #e0e7f1 62%,
    #e8ecf1 84%,
    #edeff1 100%);
}

/* =========================================================
   网站链接
   ========================================================= */
.links-strip {
  background: #eef0f2;
  padding: 10px 0 16px;
}

.links-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  min-height: 35px;
  padding-left: calc(var(--pad) + 15px);
}

.links-label {
  margin-right: 10px;
  font-size: 16px;
  color: #222;
  white-space: nowrap;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  padding: 0 18px;
  border: 1px solid #bfd3e9;
  border-radius: 6px;
  background: linear-gradient(180deg, #d9e8f8 0%, #c4d8ef 100%);
  font-size: 15px;
  color: #303030;
  transition: background .2s, border-color .2s, color .2s;
}

.links-inner .link-pill:nth-of-type(2) { padding: 0 24px; }
.links-inner .link-pill:nth-of-type(3) { padding: 0 14px; }

.link-pill:hover,
.link-pill:focus-visible {
  border-color: #a9c5e4;
  background: linear-gradient(180deg, #e6f0fb 0%, #cfe0f3 100%);
  color: var(--navy-deep);
  outline: none;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 6px 0;
}

.copyright {
  font-size: 14px;
  line-height: 30px;
  letter-spacing: .5px;
}

.footer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 28px;
  margin-top: 4px;
  font-size: 14px;
  line-height: 30px;
}

.footer-meta .tel { white-space: nowrap; }

/* 降低动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}



/* =========================================================
   首页主体样式
   标语 / 轮播图 / 工会新闻 / 通知公告 / 职工风采
   （需要与 style.css 配合使用）
   ========================================================= */


/* ---------- 红色标语 ---------- */
.slogans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 18px;
  /* 左右留白对称（原来左 1%、右 3.5%），两条标语才能各自居中对齐下方左右两栏 */
  padding: 0;
}

.slogans h2 {
  font-family: var(--font-song);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: .12em;
  text-indent: .12em;
  text-align: center;
  color: var(--red);
  white-space: nowrap;
}

/* ---------- 两栏布局 ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 左右两栏等宽 */
  gap: var(--gap);
  align-items: stretch;
}

.content-grid + .content-grid { margin-top: 22px; }

/* ---------- 轮播图 ---------- */
.hero {
  min-width: 0;
  display: flex;
}

.carousel {
  position: relative;
  flex: 1;
align-self: flex-start;
  /* 用 padding-top 百分比撑出 3:2 的最小高度（720 / 1080 = 66.6667%）。
     百分比 padding 始终按「容器宽度」计算，所有内核都支持；
     aspect-ratio 需要 Chrome 88+，旧版搜狗内核会直接丢弃这条规则。 */
  padding-top: 55.6667%;
  min-height: 350px;   /* 窗口过窄时的兜底高度 */
  overflow: hidden;
  border-radius: 2px;
  background: #d7e3f2;
}

.slides { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

/* 不用 inset —— 旧内核不识别时伪元素/绝对定位盒子会塌成 0×0，图片整个看不见 */
.slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide--empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #d3e2f2, #e9eff7);
  color: rgba(54, 96, 146, .38);
  font-size: 15px;
  letter-spacing: .25em;
}

/* 轮播圆点 */
.dots {
  position: absolute;
  right: 20px;
  bottom: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
}

.dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dot::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  left: 2px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0, 0, 0, .18);
  transition: background .25s;
}

.dot.is-active::before {
  top: 1.5px;
  right: 1.5px;
  bottom: 1.5px;
  left: 1.5px;
  background: rgba(255, 255, 255, .95);
}

.dot:focus-visible { outline: none; }

.dot:focus-visible::before {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 1px;
}

/* =========================================================
   栏目面板
   ========================================================= */
.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.panel-head {
  flex: none;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  padding: 0 22px 0 44px;
  border-radius: 3px;
  /* 标题条：底层仍是原来的竖向明暗，上面盖一层「左深蓝 → 右白色」的横向渐变，
     左侧 18% 保持原色（托住白色标题），随后渐隐到白色，
     「更多」落在白色一端，所以用深蓝字保证可读 */
  background:
    linear-gradient(90deg, #013a72 0%, #013a72 18%, #fff 100%),
    linear-gradient(180deg, #3a6799 0%, #366092 35%, #2f5a8d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(0, 0, 0, .12);
  color: #fff;
}

.panel-head h2 {
  font-family: var(--font-song);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
}

.more {
  margin-left: auto;
  margin-right: 18px;
  font-family: var(--font-kai);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--navy);   /* 标题条右侧已渐隐为白色，改用原来的背景色作字色 */
  white-space: nowrap;
}

.more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 新闻 / 公告列表 ---------- */
.list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 2px 2px 2px 20px;
}

.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
}

.list a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #2f2f2f;
  transition: color .2s;
}

.list a:hover,
.list a:focus-visible { color: #b21f2d; }

.list time {
  flex: none;
  white-space: nowrap;
  color: #333;
  font-variant-numeric: tabular-nums;
}



/* 新闻列表按设计稿固定行高 */
.news-list {
  justify-content: flex-start;
  padding: 10px 2px 0 20px;
}

.news-list li {
  height: 28.4px;
 
}

/* 工会新闻 / 通知公告 / 职工风采：宋体，字号与职工风采一致 */
.news-list a,
.notice-list a,
.staff-list a {
  font-family: var(--font-song);
  font-size: 16px;
}

.news-list time,
.notice-list time,
.staff-list time {
  font-family: var(--font-song);
  font-size: 15px;


/* 下方两个栏目 */
.content-grid.lower .list {
  justify-content: flex-start;
  padding: 16px 12px 23px 18px;
}

.content-grid.lower .list li {
  height: 29px;
  min-height: 0;
}

.content-grid.lower .notice-list { padding-right: 17px; padding-left: 15px; }
.content-grid.lower .staff-list { padding-right: 12px; padding-left: 10px; }