/* ===== 公告和开馆时间区域 ===== */
.announcement-opening-section {
  width: 100%;
  height: 372px;
  background-color: #ffffff;
}

.announcement-opening-section .container {
  padding: 16px;
}

/* 公告区域 */
.announcement {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-image: url("/images/bowuguan/announcement-bg.png");
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 64px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.announcement-title {
  font-family: "Noto Serif SC", serif;
  font-size: 40px;
  font-weight: 700;
  color: #fde68a;
}

.announcement-divider {
  width: 1px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.5);
}

.announcement-text {
  font-size: 20px;
  color: #ffffff;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-text:hover {
  text-decoration: underline;
}

.announcement-date {
  font-size: 20px;
  white-space: nowrap;
}

.announcement-more {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.announcement-more:hover {
  text-decoration: underline;
}

.announcement-more i {
  font-size: 12px;
}

/* 开馆时间区域 */
.opening-hours {
  background-color: #ffffff;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.opening-hours-left {
  display: flex;
  flex-direction: column;
}

.time-info {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.time-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.time-label {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 4px;
}

.time-value {
  font-size: 36px;
  font-weight: 700;
  color: #111827;
}

.time-divider {
  width: 32px;
  height: 6px;
  margin: 0 24px;
}

.opening-note {
  font-size: 14px;
  color: #b91c1c;
  white-space: nowrap;
}

/* 快捷链接 */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quick-link-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #b91c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.quick-link-circle span {
  font-size: 16px;
  font-weight: 700;
  color: #b91c1c;
}

/* ===== 区块标题通用样式 ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  margin-bottom: 24px;
  width: 1200px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  font-family: "Noto Serif SC", serif;
  line-height: 1.2;
  color: #333;
}

.section-title.white {
  color: #ffffff;
}

.more-link {
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 4px;
}

.more-link:hover {
  text-decoration: underline;
}

.more-link.white {
  color: #ffffff;
}

.more-link i {
  font-size: 12px;
}

/* ===== 资讯动态区域 ===== */
.news-section {
  width: 100%;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  padding: 48px 0;
}

.news-content {
  display: flex;
  gap: 40px;
}

.news-featured {
  width: 40%;
}

.news-featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured-info {
  margin-top: 16px;
}

.news-featured-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-featured-info p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 14px;
  color: #9ca3af;
}

/* 新闻列表 */
.news-list {
  width: 60%;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 0;
}

.news-item-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  margin-right: 16px;
}

.news-item-date .year-month {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.news-item-date .day {
  font-size: 28px;
  font-weight: 600;
  color: #1f2937;
}

.news-item-divider {
  width: 2px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.12);
  margin-right: 16px;
}

.news-item-title {
  font-size: 20px;
  font-weight: normal;
  line-height: 1.5;
  word-break: break-word;
  flex: 1;
  transition: color 0.3s;
}

.news-item-title:hover {
  color: #b91c1c;
}

.news-item-line {
  width: 100%;
  height: 1px;
  background-color: #9b0000;
  margin: 20px 0;
}

/* ===== 文化大数据区域 ===== */
.cultural-data-section {
  width: 100%;
  background-color: #ffffff;
  padding: 48px 0;
}

.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.artifact-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

/* 文物轮播图样式 */
.artifact-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.artifact-img {
  position: absolute;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 分离变换和透明度动画 */
  /* 启用GPU加速 */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.artifact-img.left {
  height: 320px;
  width: auto;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.9;
}

.artifact-img.center {
  height: 384px;
  width: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0);
}

.artifact-img.right {
  height: 320px;
  width: auto;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.9;
}

.artifact-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: background-color 0.3s;
}

.artifact-nav:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.artifact-nav.prev {
  left: 8px;
}

.artifact-nav.next {
  right: 8px;
}

.artifact-nav i {
  font-size: 12px;
}

.artifact-title {
  color: #333;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

/* 资源按钮 */
.resource-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.resource-btn {
  position: relative;
  width: 580px;
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s;
}

.resource-btn:hover {
  transform: scale(1.02);
}

.resource-btn-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.resource-btn-content i {
  font-size: 30px;
  margin-bottom: 8px;
}

.resource-btn-content span {
  font-size: 20px;
  font-weight: 700;
}

/* ===== 数字导览区域 ===== */
.digital-tour-section {
  position: relative;
  height: 685px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  color: #ffffff;
  padding: 64px 0 32px;
  margin: 0;
}

.digital-tour-content {
  display: flex;
  gap: 32px;
  position: relative;
}

.museum-model {
  width: 515px;
}

.museum-model img {
  width: 100%;
  height: auto;
}

.gallery-section {
  flex: 1;
}
.gallery-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gallery-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.gallery-title-icon {
  width: 18px;
  height: 16px;
  margin-bottom: 12px;
}
/* 3D 画廊 */
.gallery-3d {
  position: relative;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background-color 0.3s;
}

.gallery-nav:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.gallery-nav.prev {
  left: 0;
}

.gallery-nav.next {
  right: 0;
}

.gallery-container {
  display: flex;
  height: 180px;
  overflow: hidden;
  perspective: 580px;
  perspective-origin: center;
  align-items: center;
  position: relative;
  width: 100%;
  gap: 30px;
}

.gallery-item {
  position: absolute;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* 分离变换和透明度动画 */
  width: 180px;
  height: 180px;
  transform-style: preserve-3d;
  /* 启用GPU加速 */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.gallery-item.left {
  left: 76px;
  transform: rotateY(45deg) translateZ(-80px) scale(0.75);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.gallery-item.center {
  left: 50%;
  transform: translate(-50%, 0) translateZ(40px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  z-index: 30;
}

.gallery-item.right {
  right: 76px;
  left: auto;
  transform: rotateY(-45deg) translateZ(-80px) scale(0.75);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 20;
}


/* 隐藏的图片样式 */
.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.4);
  z-index: 0;
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* 博物馆描述 */
.museum-description {
  margin-top: 16px;
  padding: 16px;
  background-color: transparent;
  border-radius: 4px;
}

.museum-description p {
  font-size: 16px;
  line-height: 1.6;
}

/* 导览按钮 */
.tour-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.tour-btn {
  background-color: #b91c1c;
  color: #ffffff;
  padding: 8px 16px;
  min-width: 192px;
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-btn:hover {
  background-color: #991b1b;
}

/* 楼层按钮 */
.floor-buttons {
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 0;
  width: 1300px;
  align-items: flex-end;
  margin: 0 auto;
}

.floor-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #374151;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.3s;
}

.floor-btn.active {
  background-color: #b91c1c;
}

.floor-btn:hover {
  background-color: #b91c1c;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
  .navbar {
    width: 100%;
  }


  .digital-tour-content {
    flex-wrap: wrap;
  }

.opening-hours-left{width:46%}
.floor-buttons {
    right: 51%;
}
}

@media (max-width: 768px) {
  .banner-section {
    height: 500px;
  }

  .banner-content h1 {
    font-size: 32px;
  }

  .banner-content p {
    font-size: 16px;
  }

    .logo img {
    height: 40px;
}
  .announcement {
    flex-direction: column;
    gap: 16px;
  }

  .announcement-left {
    flex-wrap: wrap;
  }

  .opening-hours {
    flex-direction: column;
  }

  .time-info {
    flex-wrap: wrap;
    justify-content: center;
  }

  .quick-links {
    gap: 16px;
  }

  .news-content {
    flex-direction: column;
  }

  .news-featured,
  .news-list {
    width: 100%;
  }

  .artifacts-grid {
    grid-template-columns: 1fr;
  }

  .resource-buttons {
    flex-direction: column;
    align-items: center;
  }

  .resource-btn {
    width: 100%;
    max-width: 580px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 楼层区域显示控制 ===== */
/* 默认隐藏所有楼层区域 */
[id^="floor-"] {
  display: none;
}

/* 默认显示第一个楼层区域（建筑） */
#floor-building {
  display: block;
}

/* ===== Banner 轮播 ===== */
.banner-artifacts {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.artifacts-wrapper {
  width: 100%;
  height: 100%;
  background-color: black;
}
.banner-artifacts .artifacts-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-artifacts .artifacts-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.banner-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.banner-content {
  display: none;
  position: absolute;
  inset: 0;
  /* display: flex; */
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #ffffff;
  z-index: 10;
  padding: 0 16px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 33%,
    rgba(0, 0, 0, 0) 100%
  );
}

.banner-content-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.banner-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.banner-content p {
  font-size: 18px;
  margin-bottom: 24px;
  max-width: 672px;
}

.banner-btn {
  margin-top: 24px;
  background-color: #b91c1c;
  color: #ffffff;
  padding: 8px 24px;
  font-size: 16px;
  transition: background-color 0.3s;
}

.banner-btn:hover {
  background-color: #991b1b;
}

/* artifacts 导航按钮 */

.banner-artifacts .artifacts-button-prev,
.banner-artifacts .artifacts-button-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.banner-artifacts .artifacts-button-prev {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  z-index: 1;
}
.banner-artifacts .artifacts-button-next {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 1;
}

.banner-artifacts .artifacts-button-prev:hover,
.banner-artifacts .artifacts-button-next:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.banner-artifacts .artifacts-button-prev::after,
.banner-artifacts .artifacts-button-next::after {
  font-size: 16px;
}

/* artifacts 分页器 */
.banner-artifacts .artifacts-pagination {
  height: 12px;
  position: absolute;
  bottom: 32px;
  z-index: 99;
  display: flex;
  justify-content: center;
  gap: 8px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

.banner-artifacts .artifacts-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.banner-artifacts .artifacts-pagination-bullet-active {
  width: 32px;
  height: 12px;
  border-radius: 6px;
  background-color: rgb(185, 28, 28);
}

/* 轮播图动画 - 性能优化版本 */
.banner-artifacts .artifacts-slide {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* 更快的缓动函数 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* 启用GPU加速 */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.banner-artifacts .artifacts-slide.active {
  opacity: 1;
  z-index: 1;
  /* 减少重绘 */
  will-change: opacity;
}

.banner-artifacts .artifacts-slide.prev {
  opacity: 0;
  z-index: 0;
}

.banner-artifacts .artifacts-slide.next {
  opacity: 0;
  z-index: 0;
}

.opening-hours{
    height: 100px;
}
.digital-tour-section{
    min-width: 1280px;
}
.quick-links {
    flex-wrap: nowrap;
    width: 100%;
}
.footer,.content,.page-wrapper {
   
}
