* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
p {
  font-size: 13px;
}

/* Layout containers */
.container,
.pageTitle-wrapper,
.content-wrapper2,
.content-section,
.video-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.pageTitle-wrapper {
  margin: 0 auto;
  padding-top: 10px;
}
.page-title h1 {
  font-size: 20px;
  font-weight: bold;
  padding: 0 15px;
}
.expo-logo-wrapper {
  position: absolute;
  top: 0;
  z-index: 99;
  aspect-ratio: 5/3;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-top .expo-logo {
  width: 16%;
  margin-top: -10%;
}
.content-wrapper2 {
  align-items: center;
  padding: 0 15px;
  margin: 0 auto;
  margin-bottom: 120px;
}
.container2 img {
  width: 100%;
  margin: 0 auto;
}
.content-title-wrapper {
  display: flex;
  justify-content: space-between;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #a5936f;
  margin-bottom: 0;
}
.content-wrapper-half {
  max-width: 50%;
  display: flex;
  flex-direction: column;
}
.content-wrapper-half img {
  width: 100%;
  height: auto;
  max-width: 340px;
  margin: 0 auto;
}
.content-text-wrapper {
  padding-top: 30px;
}
.content-text2 {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 限制最多 3 行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.5em; /* 3 行文本的高度 */
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}
.content-text2.expanded {
  display: block;
  max-height: none; /* 展开 */
}

.more-btn {
  display: inline-block;
  margin-top: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  margin-right: 0;
  color: #363636;
}

/* slick slider static */
.slider-wrapper-static {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  will-change: transform;
}
.swiper-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.slider-item-static img {
  width: 100%;
  object-fit: cover;
}

.dots-wrapper {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  list-style: none;
  z-index: 999;
}
.dots-wrapper ul {
  margin-bottom: 0;
}
.dots-wrapper li {
  width: 7px;
  height: 7px;
  margin: 0 5px;
  background: #d5d5d5;
  border-radius: 50%;
  cursor: pointer;
}

.dots-wrapper li:hover,
.dots-wrapper li.slick-active {
  background: #a5936f;
}
.dots-wrapper li button {
  border-radius: 50%;
  border: none;
  font-size: 0; /* 隐藏默认数字 */
  padding: 0;
  transition: all 0.3s ease-in-out;
}

/* new slider with tab */

.slider-tab-container {
  display: none;
}
.slider-tab-container.active {
  display: block;
}
.slider-tab img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.slider-tab-btns {
  margin-bottom: -20px;
}
.slider-tab-btns-wrapper {
  position: relative;
  display: inline-block;
}

.tab-bg-img {
  display: block;
  width: 100%;
  height: auto;
}
.tab-btn {
  position: relative;
  padding: 5px 20px;
  font-size: 12px;
  border-style: none;
  background-color: transparent;
  display: inline-block;
  color: #494949;
}
.tab-btn:hover .tab-text {
  text-underline-offset: 6px;
  text-decoration: underline;
  font-weight: 600;
  transform: scale(1.2);
}
.tab-btn.active .tab-text {
  text-decoration: underline;
  text-underline-offset: 6px;
  font-weight: 600;
  transform: scale(1.2);
}
.tab-btn:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  align-self: anchor-center;
}
.tab-text {
  display: inline-block;
  transition: transform 0.3s ease;
  transform-origin: center bottom;
}
/* new version */
.site-header {
  position: fixed;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#main .container-fluid {
  max-width: none;
  padding: 0;
  overflow: hidden;
}
.wrapper {
  padding-bottom: 0;
}

.hero-top {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  overflow: hidden;
  margin-bottom: 30px;
}
.hero-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* position: relative; */
  pointer-events: none;
}
.mask {
  mask: url("../img/japan-pavilion/mask.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 20%;
  z-index: 15;
  pointer-events: none;
}
.mask img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* #main img {
  object-fit: cover;
} */
.hero img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  position: relative;
  z-index: 99;
  object-position: 0 80%;
}

.content-section {
  padding: 30px 0 0 0;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  flex-direction: column;
}

.content-wrapper {
  gap: 20px;
  width: 100%;
  align-items: start;
}
.content-wrapper img {
  width: 100%;
}
.content-wrapper h1 {
  font-size: 1.5rem;
}

.video-section {
  width: 100%;
  padding: 0;
  position: relative;
  margin: 0 auto;
}
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  margin-bottom: 30px;
}
video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* 或 cover */
}
.video-container {
  position: relative;
}
.playButton {
  color: #363636;
  position: absolute;
  font-size: 11px;
  bottom: 20px;
  right: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #363636;
  background-color: transparent;
}
.playButton:hover {
  background-color: #363636;
  color: #fff;
  transition: all 0.5s ease-in-out;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 内容文本样式 */
.content-text {
  font-size: 13px;
  line-height: 2;
  max-width: 680px;
  margin-bottom: 20px;
  margin: 0 auto;
}
/* Centered content for full-width images */
.center {
  display: block;
  margin: 0 auto; /* 图片居中 */
  max-width: 100%;
}
.gif {
  max-width: 50%;
}

.image-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.image-verticle {
  flex-direction: column;
}

.image-row img {
  width: 50%;
  height: auto;
  object-fit: contain;
}
.image-verticle img {
  width: 100%;
}

/* collaboration slider */

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  margin-top: 30px;
}
.slider-wrapper {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  will-change: transform;
}
.slick-slide {
  height: auto !important; /* 避免 height: 100% 问题 */
  touch-action: auto;
}

.slick-track {
  height: auto !important;
  display: flex !important;
  align-items: stretch; /* 可选，用于让 slide 等高 */
}
.slick-slide img {
  width: 100%; /* 使图片填充容器的宽度 */
  height: auto; /* 保持图片的比例 */
}
.slider-item {
  position: relative;
  text-align: center;
}
.slider-item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 0 15px;
}

.slick-arrow {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  border: none;
  outline: none;
  z-index: 999;
  transition: ease-in 0.3s;
}
.slick-slide:hover,
.slick-arrow:hover {
  opacity: 1;
}

.slick-prev {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(220, 220, 220, 0.2),
    rgba(255, 255, 255, 0)
  );
}
.slick-next {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(220, 220, 220, 0.2),
    rgba(255, 255, 255, 0)
  );
}
.slick-prev::before {
  content: "";
  position: absolute;
  left: 20px;
  width: 30px;
  height: 30px;
  background-image: url("../img/japan-pavilion/chevron-left-solid.svg");
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}

.slick-next::before {
  content: "";
  position: absolute;
  right: 20px;
  width: 30px;
  height: 30px;
  background-image: url("../img/japan-pavilion/chevron-right-solid.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;
  pointer-events: none;
}

.slider,
.slick-slide {
  margin: 0;
  padding: 0;
}

.slick-list,
.slick-track {
  height: auto;
  max-height: 720px;
}

.slider .slick-list {
  overflow: hidden;
  margin: 0;
  padding: 0;
  height: 720px !important; /* 或者用 JS 自动设定高度 */
}
/* Hover 显示箭头 */
.slider-container:hover .arrow {
  opacity: 1;
}
.title p {
  font-size: 1.25rem;
  margin-top: -5px;
  font-weight: 600;
  color: #a5936f;
}
.profile-container-row {
  display: flex;
  flex-direction: row;
  border-top: 1px solid;
  border-bottom: 1px solid;
  padding: 60px 20px;
  margin: 0 auto;
  max-width: 960px;
  gap: 40px;
  margin-top: 60px;
}
.profile-container-row,
.profile-container-row p {
  text-align: start;
}
.team {
  margin-top: 30px;
  margin-bottom: 60px;
}
.team,
.title {
  text-align: center;
}
.profile-wrapper {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}
.profile-wrapper > * {
  flex: 1;
}
.profile-container {
  max-width: 360px;
  padding: 30px 20px;
}

.profile-container-row p,
.profile-container p {
  margin-bottom: 0;
}
.profile-image {
  text-align: center;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  flex-flow: column;
}
.profile-image img {
  max-width: 240px;
}

.role {
  text-align: center;
}
.caption {
  padding-top: 0.5rem;
  font-size: 0.65rem;
}
.profile-name {
  text-align: center;
  font-weight: 600;
  font-size: 1.125rem;
  padding-bottom: 0.5rem;
}
.profile-title {
  margin-bottom: 0.5rem;
  align-self: center;
}
.profile-caption {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: end;
  max-width: 960px;
  display: block;
  margin: 0 auto;
}
.profile-detail p {
  text-align: start;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
}
.credits {
  font-size: 12px;
  margin-top: 0;
  margin-bottom: 0;
  max-width: 960px;
  padding: 0 20px;
  margin: 0 auto;
  margin-bottom: 120px;
}
.credits-text{
  margin-bottom: 0.5rem;

}
.download-wrapper {
  font-size: 12px;
  text-align: start;
  min-width: 360px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 15px;
}
.download-wrapper img {
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  margin-left: 0.5em;
  width: 10px;
  height: auto;
}

/* tablet&smart phone size */

@media (max-width: 768px) {
  .page-title h1 {
    font-size: 16px;
  }
  .section-title {
    font-size: 15px;
  }
  .pageTitle-wrapper {
    padding-top: 15px;
  }
  .expo-logo-wrapper {
    aspect-ratio: 4/5;
  }
  .hero-top .expo-logo {
    width: 44%;
    margin-top: -40px;
  }
  .content-title-wrapper {
    flex-direction: column;
  }
  .content-wrapper-half {
    max-width: 100%;
  }
  .content-wrapper2 {
    margin-bottom: 60px;
  }
	
	.content-text{
		padding:0 15px;
	}
  .content-text2 {
    -webkit-line-clamp: 2;
  }
  .content-text2 p {
    margin-bottom: 0;
  }
  .dots-wrapper {
    bottom: -15px;
  }
  .dots-wrapper li {
    width: 4px;
    height: 4px;
    margin: 0 2px;
  }

  .playButton {
    width: 30px;
    height: 30px;
    bottom: 0;
    font-size: 8.5px;
  }

  /* ↑↑↑↑↑↑↑↑↑↑↑↑↑↑　new versiony　↑↑↑↑↑↑↑↑↑↑↑↑↑↑ */
  .content-section {
    flex-direction: column; /* 改为垂直布局 */
    padding: 15px 0;
    align-items: center;
  }

  .content-wrapper {
    flex-direction: column; /* 内容项改为一栏排列 */
    gap: 0;
  }
  .content-wrapper h1 {
    font-size: 1.2rem;
  }
  .hero {
    margin-top: 60px;
  }
  .hero img {
    object-position: bottom;
  }
  .sectionTitle {
    padding: 0 20px;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
  }
  .title p {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0;
  }
  .subtitle p {
    margin-top: -5px;
  }

  .content-text {
    line-height: 1.75;
  }
  .image-row {
    flex-direction: column; /* 图片排列改为竖向 */
    align-items: center;
  }
  .image-row img {
    width: 100%;
  }
  .slider-container {
    margin-top: 30px;
  }
  .slider-item img {
    padding: 0 5px;
  }

  .slider-text {
    padding: 10px;
  }
  .slider-logo {
    align-self: flex-start !important;
    padding: 0;
    display: none;
  }
  .team {
    margin-top: 15px;
  }
  .profile-container-row {
    gap: 0;
  }
  .profile-container-row,
  .profile-wrapper {
    flex-direction: column; /* 个人信息布局改为垂直排列 */
    align-items: center;
    max-width: 360px;
    margin: 0 auto;
  }

  .profile-container-row,
  .profile-container-row p {
    text-align: center;
  }
  .profile-detail p {
    text-align: start;
  }
  .profile-caption {
    width: 320px;
    margin: 0 auto;
  }
  .credits{
    max-width: 360px;
    padding: 0 15px;
  }
}
