@charset "utf-8";
/* =========================================================
   儒家文明省部共建协同创新中心 · 公共样式
   包含：变量 / 重置 / 版心 / 页头 / 主导航 / 页脚 / 公共组件
   ========================================================= */

:root {
  --c-primary: #8f5c2a;
  --c-primary-dark: #734e1f;
  --c-primary-mid: #816036;
  --c-sub-bg: rgba(197, 173, 148, .94);
  --c-accent: #a82328;
  --c-line: rgba(143, 92, 42, .2);
  --c-dash: #ded3c7;
  --c-line-on-dark: #9a805c;
  --c-bg: #f4f3f1;
  --c-paper: #f7f6f3;
  --c-text: #333;
  --c-text-2: #666;
  --c-text-3: #999;
  --c-white: #fff;
  --wrap: 1400px;
  --ease: cubic-bezier(.25, .8, .25, 1);
  --font: "Microsoft YaHei", "PingFang SC", Arial, Helvetica, sans-serif;
  --font-serif: var(--font);
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--c-text);
  background: var(--c-white);
  min-width: 320px;
}

h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s, background-color .3s;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.wrap {
  width: var(--wrap);
  max-width: 92%;
  margin: 0 auto;
}

.l1 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.l2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   页头
   ========================================================= */
.header-top {
  position: relative;
  height: 170px;
  background: var(--c-paper) url(../images/header-bg.jpg) no-repeat center bottom / cover;
}

/* 页头左侧远山（全站通用）：复用轮播原画，以遮罩淡出边缘。 */
.header-top::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  background: url(../images/slide-01.jpg) no-repeat left -180px top -35px / 1500px auto;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: .22;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 65%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 42%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 0%, #000 65%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 42%, #000 76%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}

@media (max-width: 960px) {
  .header-top::before {
    width: 78%;
    background-position: left -90px top -25px;
    background-size: 900px auto;
    opacity: .16;
  }
}

.header-top__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-top__inner::before {
  /* 线刻人物点缀 */
  content: "";
  position: absolute;
  right: 30%;
  bottom: 0;
  width: 120px;
  height: 160px;
  background: url(../images/header-confucius-public-domain-v1.png) no-repeat center bottom / contain;
  opacity: .18;
  filter: sepia(1) saturate(.45);
  pointer-events: none;
}

/* 站名标识：图片写在 HTML 的 img 里，换图改 img 的 src 即可，不必动这里。
   图为已上好色的透明底 PNG（页头深红 #920f15 / 页脚米白 #fff9ef），
   换新图时保持笔画紧贴画布边缘、无多余留白，宽高比接近 5.9:1，下面的尺寸就不用调。 */
.logo {
  flex: none;
  width: 650px;
  max-width: 100%;
}

.logo a {
  display: block;
  transition: opacity .3s;
}

.logo a:hover {
  opacity: .82;
}

.logo img {
  display: block;
  width: 90%;
  height: auto;
  margin: 0 auto;
  /* 书法的墨迹重心比图片几何中心高约 9%（"儒""文""创"等字的撇捺向下延伸，
     把裁剪边界拉低了），所以元素盒居中时看着偏上，这里下移一点做视觉居中。
     各断点 logo 高度不同，偏移量随之调整，见下面的响应式段。 */
  transform: translateY(8px);
}

/* 搜索框：全站只有这一个表单元素。
   桌面在页头，960 以下由 common.js 搬进移动端抽屉，样式由它所在的位置决定
   （.header-top 内 = 下面这套；.site-nav 内 = 960 断点里的那套）。 */
.search {
  display: flex;
  align-items: center;
  width: 260px;
  height: 38px;
  border: 1px solid var(--c-primary);
  background: rgba(255, 255, 255, .85);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: none;
  outline: none;
  font-size: 14px;
}

.search input::placeholder {
  color: var(--c-text-3);
}

.search button {
  width: 44px;
  height: 100%;
  background: var(--c-primary) url(../images/search.svg) no-repeat center / 18px;
}

.search button:hover {
  background-color: var(--c-primary-dark);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--c-primary);
  transition: .3s;
}

.nav-open .menu-btn span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-btn span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   主导航
   ========================================================= */
.site-nav {
  position: relative;
  z-index: 100;
  background: var(--c-primary);
  box-shadow: 0 2px 10px rgba(80, 50, 20, .18);
}

.nav {
  display: flex;
  justify-content: space-between;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0 6px;
  line-height: 62px;
  font-size: 20px;
  font-weight: bold;
  color: var(--c-white);
  white-space: nowrap;
  letter-spacing: 1px;
}

.nav-link::after {
  /* 当前态小三角 */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  margin-left: -8px;
  border: 8px solid transparent;
  border-bottom-color: var(--c-white);
  border-top-width: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: .35s var(--ease);
}

/* 当前栏目：.on 为设计稿约定，.cur / .selected 兼容 CMS 自带的高亮类名 */
.nav-item:hover>.nav-link::after,
.nav-item:focus-within>.nav-link::after,
.nav-item.on>.nav-link::after,
.nav-item.cur>.nav-link::after,
.nav-item.selected>.nav-link::after {
  opacity: 1;
  transform: none;
}

.nav-item:hover>.nav-link,
.nav-item:focus-within>.nav-link {
  color: #fbeed8;
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 170px;
  padding: 12px 0;
  background: var(--c-sub-bg);
  box-shadow: 0 8px 20px rgba(60, 35, 10, .25);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  opacity: 0;
  visibility: hidden;
  transition: .4s var(--ease);
}

.nav-sub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--c-accent);
}

.nav-sub:empty {
  display: none;
}

/* CMS 循环可能给无子栏目的项输出空 .nav-sub，避免弹出空白下拉框 */
.nav-sub a {
  display: block;
  padding: 0 22px;
  line-height: 44px;
  font-size: 16px;
  color: var(--c-white);
  text-align: center;
  white-space: nowrap;
}

.nav-sub a:hover,
.nav-sub a.on,
.nav-sub a.cur,
.nav-sub a.selected {
  background: var(--c-primary);
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
  visibility: visible;
}

.sub-toggle {
  display: none;
}

/* =========================================================
   公共组件：版块标题 / 更多 / 列表
   ========================================================= */
.sec-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 64px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--c-line);
}

.sec-title h2 {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 14px;
  font-size: 32px;
  line-height: 1.2;
  color: var(--c-primary);
  font-weight: bold;
  font-family: var(--font-serif);
  letter-spacing: 2px;
}

/* 山形标识：置于标题文字左侧，与文字垂直居中 */
.sec-title h2::before {
  content: "";
  flex: none;
  width: 34px;
  height: 24px;
  margin-right: 12px;
  background-color: var(--c-accent);
  -webkit-mask: url(../images/mark-peak.png) no-repeat center / contain;
  mask: url(../images/mark-peak.png) no-repeat center / contain;
}

/* 标题下划线：压在版块分隔线上，标识下方为朱红、文字下方为赭色 */
.sec-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(to right, var(--c-accent) 0 46px, var(--c-primary) 46px);
}

.sec-title h2 small {
  align-self: flex-end;
  margin: 0 0 4px 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(143, 92, 42, .3);
  font: 13px/1 Georgia, "Times New Roman", serif;
  color: #a2825f;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.more {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin-bottom: 14px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--c-primary);
  font-size: 14px;
  color: var(--c-primary);
}

.more::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 4px;
  background: url(../images/more.svg) no-repeat center / contain;
  transition: transform .3s;
}

.more:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.more:hover::after {
  background-image: url(../images/more-white.svg);
  transform: translateX(3px);
}

/* 标题 + 日期 列表 */
.news-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 24px;
  line-height: 50px;
  position: relative;
}

.news-list li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6px;
  background: url(../images/bullet.svg) no-repeat center / contain;
}

.news-list .t {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  color: var(--c-text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .3s;
}

.news-list .d {
  flex-shrink: 0;
  margin-left: 24px;
  font-size: 15px;
  color: var(--c-text-2);
}

.news-list li a:hover .t {
  color: var(--c-primary);
}

/* 日期块列表 */
.date-list li a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px dashed var(--c-dash);
  overflow: hidden;
}

.date-list li:first-child a {
  border-top: 1px dashed var(--c-dash);
}

.date-list li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--c-primary) url(../images/cloud.svg) no-repeat right -20px bottom -30px / 150px;
  opacity: 0;
  z-index: 0;
}

.date-list li a:hover::before {
  opacity: 1;
}

.date-list .date {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 92px;
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid rgba(143, 92, 42, .4);
  text-align: center;
  color: var(--c-primary);
  font-size: 14px;
  line-height: 1.3;
}

.date-list .date .day {
  display: block;
  font-size: 36px;
  font-weight: bold;
  line-height: 1.1;
  font-family: "Times New Roman", Times, "Noto Serif SC", "Songti SC", serif;
  font-variant-numeric: lining-nums tabular-nums;
}

.date-list .con {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.date-list .t {
  display: block;
  font-size: 18px;
  line-height: 1.8;
  color: var(--c-text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.date-list .s {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-2);
}

.date-list li a:hover .date,
.date-list li a:hover .t,
.date-list li a:hover .s {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, .4);
}

.date-list li a:hover .t {
  font-weight: bold;
}

/* 图片容器：统一比例，img 用 object-fit，适合循环输出 */
.pic {
  position: relative;
  overflow: hidden;
  background: #e9e3da;
}

.pic img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: 33px;
  color: var(--c-white);
  background: var(--c-primary-dark) url(../images/footer-tile.jpg) repeat;
}

.site-footer::before {
  /* 页脚上沿回纹带：上下双边 + 正反相扣回纹，用遮罩裁出页脚底纹 */
  content: "";
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 33px;
  pointer-events: none;
  background: var(--c-primary-dark) url(../images/footer-tile.jpg) repeat left bottom;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='11' viewBox='0 -0.5 20 11'%3E%3Cg fill='none' stroke='%23000' stroke-width='1' stroke-linejoin='miter'%3E%3Cpath d='M0 0H20M0 10H20M1 10V2H9V8H5V4H7V6M11 0V8H19V2H15V6H17V4'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom / 60px 33px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='11' viewBox='0 -0.5 20 11'%3E%3Cg fill='none' stroke='%23000' stroke-width='1' stroke-linejoin='miter'%3E%3Cpath d='M0 0H20M0 10H20M1 10V2H9V8H5V4H7V6M11 0V8H19V2H15V6H17V4'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom / 60px 33px;
}

.footer-links {
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.footer-links .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 26px 0;
}

.footer-links h4 {
  font-size: 18px;
  font-weight: bold;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links li a {
  display: block;
  min-width: 190px;
  padding: 0 20px;
  line-height: 38px;
  text-align: center;
  font-size: 15px;
  border: 1px solid rgba(232, 210, 176, .55);
  background: rgba(255, 255, 255, .04);
}

.footer-links li a:hover {
  background: var(--c-primary);
  border-color: #e8d2b0;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 32px 0 36px;
}

.footer-info p {
  font-size: 15px;
  line-height: 2;
  color: rgba(255, 255, 255, .9);
  text-align: right;
}

.footer-info a:hover {
  color: #f3dcb5;
  text-decoration: underline;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 40px;
  z-index: 90;
  width: 46px;
  height: 46px;
  background: var(--c-primary) url(../images/arrow-right.svg) no-repeat center / 20px;
  transform: rotate(-90deg);
  opacity: 0;
  visibility: hidden;
  transition: .35s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background-color: var(--c-accent);
}

/* =========================================================
   响应式（公共部分）
   ========================================================= */
@media (max-width: 1360px) {
  .nav-link {
    font-size: 18px;
  }

  .logo {
    width: 600px;
  }

  .header-top__inner::before {
    right: 26%;
  }
}

@media (max-width: 1100px) {
  .nav-link {
    font-size: 16px;
    padding: 0 2px;
  }

  .header-top__inner::before {
    display: none;
  }

  .search {
    width: 210px;
  }
}

@media (max-width: 960px) {
  .header-top {
    height: 96px;
  }

  .logo {
    width: calc(100% - 64px);
    /* 这一档页头只有 96px，原先 560px 的 logo 几乎贴满（上下只剩 5px），
       收到 500px 既留出呼吸空间，也够做视觉居中 */
    max-width: 500px;
  }

  .logo img {
    transform: translateY(7px);
  }

  /* JS 搬走之前先藏住，避免移动端页头闪一下搜索框；搬进抽屉后此规则不再匹配 */
  .header-top .search {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 1000;
    box-shadow: none;
  }

  .nav-open .site-nav {
    transform: none;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .3);
  }

  .nav-mask {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
  }

  .nav-open .nav-mask {
    opacity: 1;
    visibility: visible;
  }

  .site-nav .wrap {
    max-width: 100%;
    width: 100%;
    padding: 70px 0 30px;
  }

  .site-nav .search {
    display: flex;
    align-items: center;
    width: auto;
    height: 42px;
    margin: 0 24px 20px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(0, 0, 0, .1);
  }

  .site-nav .search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: 0;
    background: none;
    outline: none;
    color: var(--c-white);
    font-size: 15px;
  }

  .site-nav .search input::placeholder {
    color: rgba(255, 255, 255, .65);
  }

  .site-nav .search button {
    width: 44px;
    height: 100%;
    background: url(../images/search.svg) no-repeat center / 18px;
  }

  .nav {
    display: block;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, .15);
  }

  .nav-link {
    padding: 0 24px;
    line-height: 54px;
    font-size: 17px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-item.on>.nav-link,
  .nav-item.cur>.nav-link,
  .nav-item.selected>.nav-link {
    background: var(--c-primary-dark);
  }

  .sub-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 54px;
    height: 54px;
  }

  .sub-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -6px 0 0 -4px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: .3s;
  }

  .nav-item.sub-open .sub-toggle::before {
    transform: rotate(-135deg);
    margin-top: -2px;
  }

  .nav-sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    min-width: 0;
    padding: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, .12);
  }

  .nav-sub::before {
    display: none;
  }

  .nav-item:hover .nav-sub {
    transform: none;
  }

  .nav-item.sub-open .nav-sub {
    display: block;
  }

  .nav-sub a {
    text-align: left;
    padding: 0 40px;
    line-height: 44px;
    font-size: 15px;
  }

  .footer-main {
    flex-direction: column;
    text-align: center;
  }

  .footer-info p {
    text-align: center;
  }

}

@media (max-width: 640px) {
  .header-top {
    height: 72px;
  }

  .logo {
    width: calc(100% - 48px);
  }

  /* 窄屏按高度收敛：页头只有 72px，满宽会让书法高到 89px 顶出页头 */
  .logo img {
    width: 100%;
    max-height: 56px;
    object-fit: contain;
    transform: translateY(4px);
  }

  .sec-title {
    height: 52px;
    margin-bottom: 20px;
  }

  .sec-title h2 {
    font-size: 24px;
    padding-bottom: 12px;
  }

  .sec-title h2::before {
    width: 26px;
    height: 18px;
    margin-right: 8px;
  }

  .sec-title h2::after {
    background: linear-gradient(to right, var(--c-accent) 0 34px, var(--c-primary) 34px);
  }

  .sec-title h2 small {
    display: none;
  }

  .news-list li a {
    line-height: 44px;
  }

  .news-list .t {
    font-size: 15px;
  }

  .news-list .d {
    font-size: 13px;
    margin-left: 12px;
  }

  .date-list li a {
    padding: 16px 10px;
  }

  .date-list .date {
    width: 70px;
    padding-right: 12px;
    margin-right: 14px;
    font-size: 12px;
  }

  .date-list .date .day {
    font-size: 26px;
  }

  .date-list .t {
    font-size: 16px;
  }

  .date-list .s {
    font-size: 13px;
  }

  .footer-links li a {
    min-width: 0;
  }

  .footer-info p {
    font-size: 13px;
    line-height: 1.9;
  }

  .back-top {
    right: 12px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
}

/* 页脚与移动导航优化 */
.site-footer {
  margin-top: 0;
  border-top: 2px solid #b89a70;
  background: #674a2d;
}

.site-footer::before {
  display: none;
}

.footer-links .wrap {
  padding: 22px 0;
}

.footer-main {
  padding: 28px 0 36px;
}

.footer-info {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nav-close {
  display: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

.search input:focus-visible {
  outline: none;
}

@media (max-width: 960px) {
  .nav-open {
    overflow: hidden;
  }

  /* 关闭按钮：两条斜线拼成的 X，不用文字（无障碍名称由 aria-label 提供） */
  .nav-close {
    display: block;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    font-size: 0;
  }

  .nav-close::before,
  .nav-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 2px;
    margin: -1px 0 0 -12px;
    background: #fff;
    transition: background .3s;
  }

  .nav-close::before {
    transform: rotate(45deg);
  }

  .nav-close::after {
    transform: rotate(-45deg);
  }

  .nav-close:hover::before,
  .nav-close:hover::after {
    background: var(--c-accent);
  }

  body:not(.nav-open) .site-nav {
    visibility: hidden;
  }

  .nav-open .site-nav {
    visibility: visible;
  }

  .site-nav :focus-visible {
    outline-color: #fff;
  }

  .footer-info p {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  body {
    min-width: 0;
  }
}

/* 页脚：项目原有山水织纹，细线及纹样形成卷轴收边 */
.site-footer {
  position: relative;
  border-top: 0;
  background: linear-gradient(rgba(102, 69, 29, .88), rgba(102, 69, 29, .88)), url(../images/footer-tile.jpg) repeat;
  color: #fff9ef;
}

.site-footer::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: auto;
  top: 0;
  width: 100%;
  height: 6px;
  background: none;
  border-top: 1px solid #c4a575;
  -webkit-mask: none;
  mask: none;
  filter: none;
  opacity: 1;
  pointer-events: none;
}

.footer-links {
  padding-top: 10px;
  border-bottom: 1px solid rgba(238, 218, 189, .22);
}

.footer-links .wrap {
  gap: 18px 28px;
  padding: 26px 0;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

.footer-links ul {
  gap: 14px 20px;
}

.footer-links li a {
  width: 191px;
  height: 36px;
  min-width: 0;
  padding: 0;
  line-height: 36px;
  border: 0;
  background: url(../images/footer-link-bg.png) no-repeat center / 100% 100%;
  color: #fff;
  font-size: 16px;
}

.footer-links li a:hover {
  color: #f0d8b5;
  border-color: transparent;
  background: transparent url(../images/footer-link-bg.png) no-repeat center / 100% 100%;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  padding: 38px 0 44px;
  align-items: center;
}

/* 站名标识（页脚米白版）：同样由 HTML 的 img 输出，换图改 img 的 src */
.footer-logo {
  width: 650px;
  max-width: 100%;
}

.footer-logo a {
  display: block;
  transition: opacity .3s;
}

.footer-logo a:hover {
  opacity: .82;
}

.footer-logo img {
  display: block;
  width: 90%;
  height: auto;
  margin: 0 auto;
}

.footer-info {
  padding-left: 30px;
  border-left: 1px solid rgba(238, 218, 189, .22);
}

.footer-info p {
  text-align: left;
  font-size: 14px;
  line-height: 2;
  color: #f2e8db;
}

.footer-info p:last-child {
  margin-top: 6px;
}

.footer-info a {
  color: #e5cba6;
}

@media (max-width: 1100px) {
  .footer-main {
    gap: 30px;
  }

  .footer-info {
    padding-left: 20px;
  }
}

@media (max-width: 960px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 30px 0 38px;
  }

  .footer-logo {
    width: 600px;
  }

  .footer-info {
    border-left: 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(238, 218, 189, .18);
  }
}

@media (max-width: 640px) {
  .footer-links .wrap {
    gap: 14px;
    padding: 22px 0;
  }

  .footer-links h4 {
    width: 100%;
  }

  .footer-links ul {
    width: 100%;
    gap: 10px;
  }

  .footer-links li {
    flex: 0 1 191px;
  }

  .footer-links li a {
    width: 100%;
    height: 36px;
    padding: 0;
    line-height: 36px;
  }

  .footer-logo {
    width: 100%;
  }

  .footer-logo img {
    width: 100%;
    max-height: 64px;
    object-fit: contain;
  }

  .footer-info {
    padding-right: 24px;
  }

  .footer-info p {
    font-size: 13px;
  }
}

