/* ===== 首页样式 ===== */

/* === ② 红色大 banner === */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 812;   /* 等比缩放，避免在窄屏上被裁切 */
  max-height: 812px;
  overflow: hidden;
}
.hero__swiper { width: 100%; height: 100%; }
.hero__swiper .swiper-slide { height: 100%; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* 轮播指示器：用 Swiper CSS 变量套设计稿样式（圆点 11×11，激活纯白 / 非激活白 50%，间距 13）*/
.hero__dots {
  z-index: 5;
  --swiper-pagination-bullet-width: 11px;
  --swiper-pagination-bullet-height: 11px;
  --swiper-pagination-bullet-horizontal-gap: 6.5px;     /* 圆点间距 = 2×6.5 = 13 */
  --swiper-pagination-bullet-inactive-color: #fff;      /* 非激活态填充 */
  --swiper-pagination-bullet-inactive-opacity: .5;      /* 非激活态 50% */
  --swiper-pagination-bullet-opacity: 1;                /* 激活态不透明 */
}
.hero .hero__dots { bottom: 10%; }                      /* 设计稿指示器 y720/812（覆盖 Swiper 默认 bottom:10px）*/
.hero__dots .swiper-pagination-bullet-active { background: #fff; }   /* 激活态纯白（Swiper7 无 pagination-color 变量）*/
.hero__dots .swiper-pagination-bullet:only-child { display: none; }  /* CMS 仅 1 张时隐藏指示器 */

/* === ③ 最新动态：白底圆角卡叠在 banner 底部 42px，4 列新闻（日期 + 虚线 + 标题 + 简介）=== */
.latest {
  position: relative;
  margin-top: -42px;       /* 卡片顶 y770，hero 底 y812 → 上叠 42px */
  z-index: 10;
}
.latest__inner {
  height: 220px;
  /* 设计稿：填充 上#F4EAC5→下#FFFFFF 竖向渐变；2px 渐变描边 #F5F5CF→#F8F3E7（同形状）*/
  border: 2px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #F4EAC5 0%, #FFFFFF 100%) padding-box,
    linear-gradient(180deg, #F5F5CF 44%, #F8F3E7 100%) border-box;
  padding: 19px 60px 22px;  /* 列 1 文字 x220，卡片 x160 → 内缩 60 */
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.latest__list {
  display: flex;
  gap: 56px;
  margin-top: 20px;        /* 为跨年「年份标签」预留的上方空间 */
}
.latest__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  position: relative;      /* 年份标签以本条为定位基准 */
}
/* 年份标签：标在「该年第一条」日期的正上方，left:0 与日期左对齐（不随大号「日」数字偏移）*/
.latest__year {
  position: absolute;
  left: 0;
  top: -20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;        /* PingFangSC-Semibold */
  color: #333;
  line-height: 20px;
}
.latest__date {
  font-family: var(--font-num);    /* DIN Alternate */
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: baseline;
  height: 37px;
}
.latest__date .d { font-size: 32px; line-height: 37px; }
.latest__date .dm { font-size: 22px; line-height: 37px; margin-left: 2px; }
.latest__date .m {
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 400;
  line-height: 25px;
  margin-left: 3px;
}
.latest__dots {
  flex: 1;
  align-self: center;
  height: 0;
  border-top: 1px dotted #333;
  margin-left: 12px;
  /* 行高被大号「日」数字撑高，行中心(18.5)偏上；下移 4.5px 对齐到小号「/月」文字中心(23) */
  transform: translateY(4.5px);
}
.latest__link { display: block; margin-top: 15px; }
.latest__title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  line-height: 30px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest__desc {
  font-size: 14px;
  color: #666;
  line-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest__link:hover .latest__title { color: var(--color-brand); }

/* === ④ 项目介绍：左 960×540 视频 + 右 722×540 米黄卡（卡片左缘被视频压住 80px）=== */
.intro {
  padding: 50px 0 0;
}
.intro__grid {
  display: flex;
  aspect-ratio: 1602 / 540;   /* 视频+卡片行：设计稿 1602×540，行高随宽等比缩放 */
}
.intro__poster {
  flex: 0 0 59.93%;           /* 960 / 1602 */
  height: 100%;
  position: relative;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  z-index: 2;
}
.intro__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
}
.intro__play::after {
  content: '';
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 20px 0 20px 34px;
  border-color: transparent transparent transparent #fff;
}
.intro__card {
  flex: 0 0 45.07%;          /* 722 / 1602 */
  margin-left: -5%;          /* 卡片左缘叠在视频上：80 / 1602 ≈ 5% */
  height: 100%;              /* 与视频等高（高度由 .intro__grid 的 aspect-ratio 统一决定）*/
  background: var(--color-bg-soft);     /* #F0E6CF 米黄卡 */
  border-radius: 16px;
  padding: 56px 40px 30px 120px;        /* 左 120 = 上叠 80 + 内边距 40 */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.intro__text {
  flex: 1;                             /* 吸收卡片富余高度，使「查看详情/子项」间距固定为设计值；过长自动裁切 */
  min-height: 0;
  font-size: 14px;
  line-height: 35px;
  color: #333;                         /* 设计稿 #333333 */
  text-align: justify;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.intro__more {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #674E11;
  margin-top: 11px;                    /* 设计稿 正文→链接 间距 */
}
.intro__sub {
  display: flex;
  gap: 17px;
  margin-top: 48px;                    /* 设计稿「查看详情」→ 子项 固定间距 */
}
.intro__sub-item {
  flex: 1;                             /* 3 项等分卡片内宽，自适应不溢出 */
  height: 112px;
  background: var(--color-bg-tag);     /* #E9DBBB */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;             /* 文字水平居中（设计稿左右各留 48）*/
  box-sizing: border-box;
}
.intro__sub-item h4 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--color-brand-deep);      /* #614400 */
}

/* === ⑤ 人物志：5 圆头像 + 第 3 张高亮金卡 === */
.persons {
  padding: 50px 0 0;
}
.persons__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 40px;         /* 设计稿未标注 item 间距，按人工判断取 40px（item 两侧各留 20）*/
}
.persons__item {
  background: transparent;
  padding: 0;
  border-radius: 16px;       /* 与 .is-active 同款圆角常驻，避免 hover 移出时露直角 */
  transition: background-color .3s ease, color .3s ease;
  cursor: pointer;
  text-align: center;
  min-width: 0;
  height: 603px;             /* 固定高度：hover 切换激活态时高度恒定，下方「了解更多」不位移、不抖动 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* 顶对齐：所有头像贴卡片顶、对齐一致（富余空间留在底部）*/
}
.persons__item.is-active {
  background: rgba(140, 108, 33, 0.9);   /* 设计稿 hover 卡 #8c6c21 @ 90% 不透明度 */
  border-radius: 16px;
  padding: 64px 20px 40px;
  color: #fff;
  justify-content: flex-start;           /* 激活态顶对齐：姓名落在 padding-top 64 处（符合设计）*/
}
.persons__item.is-active .persons__photo { display: none; }
.persons__photo {
  width: 100%;
  max-width: 212px;
  aspect-ratio: 212 / 285;              /* 与 renwuzhi 一致：方形头像（圆角矩形），非圆形 */
  border-radius: 8px;
  margin: 0 auto 26px;                  /* 头像底→姓名 间距 */
  position: relative;
  overflow: hidden;
}
.persons__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.persons__name {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 900;          /* STSongti-SC-Black */
  color: var(--color-text-secondary);  /* #2E2E2E */
  text-align: center;
  line-height: 28px;
  margin-bottom: 17px;       /* 设计稿 姓名→简介信息 间距 */
}
.persons__item.is-active .persons__name { color: #fff; font-size: 30px; }

.persons__meta {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 14px;
}
.persons__meta span { display: block; }
.persons__meta span:first-child { margin-bottom: 13px; }
.persons__meta span:last-child { color: var(--color-text-muted); }   /* #6E6E6E */
.persons__item.is-active .persons__meta,
.persons__item.is-active .persons__meta span:last-child { color: #fff; }

.persons__bio {
  font-size: 14px;
  line-height: 28px;
  color: var(--color-text-muted);     /* #6E6E6E（设计稿正常卡简介色）*/
  text-align: justify;
  margin-top: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 6;              /* 设计稿简介 h168 / lh28 = 6 行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.persons__item.is-active .persons__bio { color: #fff; -webkit-line-clamp: 13; margin-top: 36px; }

/* === ⑥ 视听馆：2 张 782×440 视频卡 === */
.videos {
  padding: 50px 0 0;
}
.videos__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-top: 24px;
}
.videos__link {
  display: block;
  position: relative;
  aspect-ratio: 782 / 440;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
}
.videos__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.videos__play img { width: 100px; height: 100px; }
.videos__title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  height: 64px;
  background: rgba(0, 0, 0, 0.6);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;       /* STSongti-SC-Bold */
  color: #fff;
  line-height: 25px;
  padding: 20px 36px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === ⑦ 重要活动：3 张 509×360 卡 === */
.events {
  padding: 50px 0 0;
}
.events__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 24px;
}
.events__link {
  display: block;
  position: relative;
  aspect-ratio: 509 / 360;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
}
.events__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 112px;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 100%);
}
.events__title,
.events__sub {
  position: relative; z-index: 2;
  color: #fff;
}
.events__title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  position: absolute;
  left: 36px; right: 36px;
  bottom: 64px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.events__sub {
  position: absolute;
  left: 36px; right: 36px; bottom: 28px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === ⑧ 文献成果：标题 + 单张 1600×771 大图 === */
.wenxian {
  padding: 50px 0 80px;
}
.wenxian__img {
  display: block;
  aspect-ratio: 1600 / 771;
  border-radius: 16px;
  overflow: hidden;
}
.wenxian__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== 小屏档（1024~1199）：流式延伸，项目介绍改上下堆叠 ===== */
@media (max-width: 1199.98px) {
  /* 项目介绍：窄屏改为视频在上、文字卡在下（取消等高叠压）*/
  .intro__grid {
    flex-direction: column;
    aspect-ratio: auto;
  }
  .intro__poster {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 960 / 540;
  }
  .intro__card {
    flex: none;
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-top: 20px;
    padding: 40px;
  }
  .intro__text { flex: none; }
}
