.gegechaodai{
    width: 100%;
    height: 100vh;
    background-color: #0D0D0D;
}
.zuozise{
    padding-left: 10%;
    width: 35%;
    height: 100%;
    background-color: #453654;
    display: flex;
    flex-direction: row;
    position: relative;

}
.tupian{
    width: 90%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 60%;
}
/* 主容器样式 */
    .container {
      width: 100%;
      position: relative;
    }
    
    /* 图片容器样式 */
    .image-container {
      position: relative;
      width: 100%;
      height: auto;
      overflow: hidden;
      border-radius: 8px;
      transition: transform 0.3s ease;
    }
    
    /* 主图片样式 */
    .main-image {
      display: block;
      width: 100%;
      height: auto;
      transition: transform 0.3s ease;
    }
    
    /* 悬停时主图片效果 */
    .image-container:hover .main-image {
      transform: scale(1.02);
    }
    
    /* 悬停时容器效果 */
    .image-container:hover {
      transform: translateY(-5px);
    }
    
    /* 小图片容器样式 */
    .hover-image-container {
      position: absolute;
      top: -5%;
      right: -20%;
      width: 50%;
      border-radius: 50%;
      overflow: hidden;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
      transform: scale(0) translate(50%, -50%);
      transform-origin: bottom left;
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 20;
      border: 1px solid rgba(255, 255, 255, 0.5);
    }
    
    /* 小图片样式 */
    .hover-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    /* 悬停时小图片显示效果 */
    .container:hover .hover-image-container {
      transform: scale(1) translate(0, 0);
      opacity: 1;
    }
    
    /* 图片标题样式 */
    .image-title {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 15px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
      color: white;
      font-size: 18px;
      font-weight: bold;
      margin: 0;
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.3s ease;
    }
    
    /* 悬停时标题显示效果 */
    .image-container:hover .image-title {
      opacity: 1;
      transform: translateY(0);
    }
    
    /* 装饰元素 */
    .decoration {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .image-container:hover .decoration {
      opacity: 1;
    }
    .wenwubiaoti{
        width: 48px;
        writing-mode: vertical;
        text-align: center;
        font-size: 24px;
        color: rgb(255, 255, 255);
        letter-spacing: 2px;
        position: absolute;
        top: 20%;
        display: flex;
        flex-direction: column;
    }
    .wenwubiaotiimg{
        width: 25px;
    }
    .shangbtk{
        display: flex;
        flex-direction: row;
        justify-content:left;
    }
    .xiabtk{
        display: flex;
        flex-direction: row;
        justify-content:right;
    }
    .xizhoumingcheng{
        writing-mode: vertical-lr;
        letter-spacing: 20px;
        position: absolute;
        right: 10%;
        top: 10%;
    }
    .xizhou{
        width: 100%;
        display: flex;
        flex-direction: row;
    }
    .xz-wenwujieshao{
        width: 30%;
        position: absolute;
        top: 60%;
        right: 10%;
        font-size: 14px;
        text-indent: 28px;
        line-height: 1.8;
    }

    /* 第二屏 */
    h1, h2 {
  font-family: 'Playfair Display', serif;
}

/* 背景装饰元素 */
.bg-decor {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  pointer-events: none;
}

.bg-decor::before,
.bg-decor::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.bg-decor::before {
  top: 80px;
  left: 80px;
  width: 256px;
  height: 256px;
  background-color: #9D4EDD;
}

.bg-decor::after {
  bottom: 80px;
  right: 80px;
  width: 320px;
  height: 320px;
  background-color: #5A189A;
}



/* 主要内容区 */
.main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 10%;
}

@media (min-width: 768px) {
  .main-content {
    flex-direction: row;
  }
}

/* 左侧圆形图片区域 */
.left-section {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 32px;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .left-section {
    width: 20%;
  }
}

.circle-container {
  position: relative;
  width: 200px;
  height: 200px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .circle-container {
    width: 200px;
    height: 200px;
  }
}

.circle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  filter: brightness(1.1) contrast(1.05);
}

.circle-container:hover .circle-image {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.circle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(157, 78, 221, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.circle-container:hover .circle-overlay {
  opacity: 1;
}

.circle-text {
  font-size: 12px;
  font-weight: 500;
  color: white;
  padding: 4px 8px;
  border-radius: 16px;
  background-color: rgba(157, 78, 221, 0.8);
  backdrop-filter: blur(2px);
}

@media (min-width: 768px) {
  .circle-text {
    font-size: 14px;
  }
}

/* 右侧方形图片区域 */
.right-section {
    height: 90%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
}

@media (min-width: 768px) {
  .right-section {
    width: 75%;
  }
}

.square-grid {
    height: 70%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 100%;
}

@media (min-width: 768px) {
  .square-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.square-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  background: linear-gradient(135deg, #1A1A2E 0%, #2A2A4A 100%);
  backdrop-filter: blur(8px);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(157, 78, 221, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.square-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.square-image-container {
  width: 70%;
}

.square-image {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  filter: brightness(1.1) contrast(1.05);
}

@media (min-width: 768px) {
  .square-image {
    height: 100%;
  }
}

.square-content {
  width: 100%;
  margin-top: 12px;
}

.square-title {
  font-size: 18px;
  font-weight: bold;
  color: #9D4EDD;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .square-title {
    font-size: 20px;
  }
}

.square-description {
  color: rgba(226, 232, 240, 0.8);
  font-size: 14px;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .square-description {
    font-size: 16px;
  }
}

.square-tags {
  display: flex;
  gap: 8px;
}

.tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
}

.tag:nth-child(1) {
  background-color: rgba(157, 78, 221, 0.2);
  color: #E0AAFF;
}

.tag:nth-child(2) {
  background-color: rgba(90, 24, 154, 0.2);
  color: #E0AAFF;
}

/* 装饰性的"唐"字 */
.decor-text {
    height: 100%;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 10vw, 8rem);
  font-weight: 900;
  color: rgba(202, 158, 238, 0.6);
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-top: 32px;
  animation: float 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.tangchao{
    display: flex;

}
.songyuan{
    display: flex;
    height: 90vh;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      overflow: hidden;
      position: relative;
      margin-top: -10vh;
      margin-bottom: 5vh;
}
.radial-gradient-background {
      position: absolute;
      inset: 0;
    }

    .carousel-container {
      position: relative;
      width: 100%;
      max-width: 66rem;
      margin-left: auto;
      margin-right: auto;
    }

    .carousel {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 80vh;
    }

    .carousel-item {
      position: absolute;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .carousel-item {
      position: absolute;
    }

    .circle-shadow {
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .carousel-button-container {
      position: absolute;
      top: 50%;
      left: -1rem;
      transform: translateY(-50%);
      z-index: 30;
    }

    .carousel-item {
      transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .circle-shadow {
      box-shadow: 0 0 25px rgba(151, 120, 180, 0.6);
    }

    .custom-glow {
      box-shadow: 0 0 25px rgba(151, 120, 180, 0.4);
    }

    .custom-overlay {
      background: linear-gradient(to top, rgba(13, 13, 13, 0.9), rgba(151, 120, 180, 0.2));
    }

    #leftItem,
    #rightItem {
      width: 20rem;
      height: 20rem;
      border-radius: 50%;
      background-size: cover;
      background-position: center;
      cursor: pointer;
      opacity: 0.7;
      z-index: 10;
    }

    #centerItem {
      width: 24rem;
      height: 24rem;
      border-radius: 50%;
      background-size: cover;
      background-position: center;
      transform: scale(1);
      z-index: 20;
    }

    #prevBtn,
    #nextBtn {
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      background-color: rgba(151, 120, 180, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
      color: white;
    }

    #prevBtn:hover,
    #nextBtn:hover {
      background-color: rgba(151, 120, 180, 0.5);
    }

    @media (min-width: 768px) {

      #leftItem,
      #rightItem {
        width: 20rem;
        height: 20rem;
      }

      #centerItem {
        width: 24rem;
        height: 24rem;
      }

      #prevBtn,
      #nextBtn {
        width: 3rem;
        height: 3rem;
      }

      #leftItem {
        transform: translateX(-14rem) scale(0.75);
      }

      #rightItem {
        transform: translateX(14rem) scale(0.75);
      }
    }

    .centered-bottom {
      position: absolute;
      bottom: 3.5rem;
      left: 0;
      right: 0;
      text-align: center;
    }

    .artifact-title {
      margin-top: 2rem;
      color: rgb(212, 172, 226);
      font-size: 1.25rem;
      font-weight: 600;
    }

    .absolute-position {
      position: absolute;
      top: 50%;
      right: -1px;
      transform: translateY(-50%);
      z-index: 30;
    }

    .tishiwenzi {
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.75rem;
    }

    .wenwujieshao {
      margin-top: 0.5rem;
      padding-left: 1rem;
      padding-right: 1rem;
    }

    .wenwujieshaowz {
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.875rem;
    }

    #artifactInfo {
      position: absolute;
      bottom: -3rem;
      left: 0;
      right: 0;
      max-width: 600px;
      margin: 0 auto;
      text-align: center;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.5s ease;
    }

    #artifactInfo.visible {
      opacity: 1;
      transform: translateY(0);
    }

    #artifactDesc {
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.875rem;
      line-height: 1.5;
      margin-top: 0.5rem;
    }
    .symingcheng{
        writing-mode: vertical-lr;
        letter-spacing: 20px;
        position: absolute;
        right: 10%;
        top: 1%;
    }

    .mingchao{
        width: 80%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    /* 网格布局 - 修改：设置固定高度 */
.image-grid {
    width: 85%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: 12px;
  height: 65vh;
}

@media (min-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 网格项定位 */
.grid-item-1 {
  grid-column: 1;
  grid-row: span 5;
}

.grid-item-2 {
  grid-column: 1;
  grid-row: 6 / span 3;
}

.grid-item-3 {
  grid-column: 2;
  grid-row: span 3;
}

.grid-item-4 {
  grid-column: 2;
  grid-row: 4 / span 5;
}

.grid-item-5 {
  grid-column: 3;
  grid-row: span 5;
}

.grid-item-6 {
  grid-column: 3;
  grid-row: 6 / span 3;
}

.grid-item-7 {
  grid-column: 4;
  grid-row: span 3;
}

.grid-item-8 {
  grid-column: 4;
  grid-row: 4 / span 5;
}

/* 图片样式 */
.grid-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 悬停效果 */
.grid-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.grid-item:hover img {
  transform: scale(1.05);
}

/* 圆角和阴影 */
.rounded-lg {
  border-radius: 8px;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}    

/* 图片网格 */
.qing-image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    height: 40vh;
}

@media (min-width: 768px) {
    .qing-image-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.qingchao{
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 90vh;
    margin-top: -5vh;
}
.qcmingcheng{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    height: auto;
    margin-bottom: 40px;
}
/* 图片卡片 */
.qing-image-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
}

.qing-image-card:hover {
    transform: scale(1.03);
}

.qing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.qing-image-card:hover .image {
    transform: scale(1.05);
}

/* 覆盖层 */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.9), rgba(13, 13, 13, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.qing-image-card:hover .overlay {
    opacity: 1;
}

.overlay-content {
    padding: 1rem;
}

.category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: rgba(192, 132, 252, 0.2);
    color: white;
    font-size: 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.title {
    color: #E0AAFF;
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.description {
    color:#fefefe;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

/* 动画类 */
.hide {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}