/* ********************** */
/* TOP SECTION */
/* ********************** */
.about-top {
  width: 100%;
  height: calc(100vw * 830 / 1920);
  overflow: hidden;
}

.top-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ********************** */
/* INTRO SECTION */
/* ********************** */
.intro-section {
  margin-top: calc(100vw * 176 / 1920);
}

.intro-content-box {
    margin-top: calc(100vw * 40 / 1920);
  gap: calc(100vw * 55 / 1920);
}

.intro-content {
  width: calc(100vw * 850 / 1920);
  font-size: calc(100vw * 15.5 / 1920);
  line-height: calc(100vw * 23 / 1920);
  letter-spacing: calc(100vw * 1 / 1920);
}

.intro-content p {
  /* text-indent CSS 属性设置区块元素中文本行前面空格（缩进）的长度。 */
  text-indent: calc(100vw * 34 / 1920);
}

.content-img {
  width: calc(100vw * 495 / 1920);
}

/* ********************** */
/* CULTURE SECTION */
/* ********************** */
.culture-section {
  margin-top: calc(100vw * 106 / 1920);
  gap: calc(100vw * 89 / 1920);
  background-color: #eee;
  padding-top: calc(100vw * 103 / 1920);
  padding-bottom: calc(100vw * 114 / 1920);
}

.color--2.culture-color {
  background-color: #fff;
}

.culture-gap {
  column-gap: calc(100vw * 324 / 1920);
  row-gap: calc(100vw * 95 / 1920);
}

.culture-item {
  gap: calc(100vw * 36 / 1920);
}

.culture-item h4 {
  font-size: calc(100vw * 24 / 1920);
  line-height: calc(100vw * 24 / 1920);
  color: #d42220;
}

.culture-item p {
  font-size: calc(100vw * 18 / 1920);
  line-height: calc(100vw * 18 / 1920);
  color: #3b3b3b;
}

.culture-item div p:not(:last-child) {
  line-height: calc(100vw * 60 / 1920);
}

/* ********************** */
/* HISTORY SECTION */
/* ********************** */
.history-section {
    padding-top: calc(100vw * 114 / 1920);
    padding-bottom: calc(100vw * 91 / 1920);
    background-image: linear-gradient(to right, #eee, #fff);
    gap: calc(100vw * 92 / 1920);
}

.history-gap {
    gap: calc(100vw * 75 / 1920);
}

.rolling-content {
    gap: calc(100vw * 108 / 1920);
}

.rolling-text {
    width: calc(100vw * 503 / 1920);
    height: calc(100vw * 503 / 1920);
}

.title-container {
    position: relative;
    width: 100%;
    height: calc(100vw * 178 / 1920);
}

.rolling-text-title {
    font-size: calc(100vw * 64 / 1920);
    line-height: calc(100vw * 178 / 1920);
    width: calc(100vw * 503 / 1920);
    color: #db1c21;
    font-weight: 700;
    letter-spacing: calc(100vw * 2 / 1920);
}

.title-hidden {
    position: absolute;
    top: 0;
    opacity: 0;
}

.text-container {
    width: calc(100vw * 503 / 1920);
    height: calc(100vw * 325 / 1920);
    position: relative;
    overflow: hidden;
}

.texts {
    width: 100%;
    /*height: 800%;*/
    position: absolute;
    top: 0;
    transition: top 1.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.rolling-text-content {
    font-size: calc(100vw * 18 / 1920);
    line-height: calc(100vw * 34 / 1920);
    letter-spacing: calc(100vw * 1 / 1920);
    text-indent: calc(100vw * 40 / 1920);
    height: calc(100vw * 325 / 1920);
}

.rolling-img {
    width: calc(100vw * 789 / 1920);
    height: calc(100vw * 503 / 1920);
    padding-left: calc(100vw * 59 / 1920);
    padding-right: calc(100vw * 59 / 1920);
}

.rolling-img-container {
    width: 100%;
    height: 100%;
    padding: calc(100vw * 30 / 1920);
    background-color: #dcdedd;
    position: relative;
    overflow: hidden;
    gap: calc(100vw * 30 / 1920);
}

.rolling-img-container div {
    width: 100%;
    height: 100%;
}

.rolling-img div img {
    height: calc(100vw * 443 / 1920);
}

.rolling-treering {
    position: relative;
}

.rolling-time-container {
    width: calc(100vw * 576 / 1920);
    height: calc(100vw * 62 / 1920);
    position: relative;
    overflow: hidden;
}

.rolling-time {
    /*width: calc(100vw * 1152 / 1920);*/
    height: calc(100vw * 62 / 1920);
    transition: transform 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.year-month {
    width: calc(100vw * 144 / 1920);
    height: 100%;
    gap: calc(100vw * 10 / 1920);
}

.year-month p {
    color: #c63546;
    font-size: calc(100vw * 22 / 1920);
    line-height: calc(100vw * 22 / 1920);
    letter-spacing: calc(100vw * 1 / 1920);
    font-weight: 600;
    cursor: pointer;
}

.animated-cube-container {
    height: calc(100vw * 30 / 1920);
    width: calc(100vw * 4 / 1920);
    position: relative;
}

.animated-cube {
    position: absolute;
    bottom: 0;
    height: calc(100vw * 15 / 1920);
    width: calc(100vw * 6 / 1920);
    background-color: #a0a0a0;
    transition: transform 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    transform-origin: bottom center;
}

.animated-cube.active {
    transform: scaleY(2);
}

/* 缩放动画关键帧 */
@keyframes shrinkAndRestore {
    0% {
        transform: scaleY(1);
        transform-origin: bottom center; /* 关键：设置变换原点为顶部 */
    }
    50% {
        transform: scaleY(0.5);
        transform-origin: bottom center;
    }
    100% {
        transform: scaleY(1);
        transform-origin: bottom center;
    }
}

/* 应用动画的类 */
.scale-animation {
    animation: shrinkAndRestore 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.rolling-shell {
    position: absolute;
    bottom: 0;
}

.rolling-gear-container {
    width: calc(100vw * 984 / 1920);
    height: calc(100vw * 15 / 1920);
    position: relative;
    overflow: hidden;
}

:root{
    --count: 0;
}

.rolling-gear {
    width: calc(100vw * (984 + 144 * var(--count)) / 1920);
    height: 100%;
    position: relative;
    background: url(../img/history/gear-1.png) left bottom;
    background-repeat: repeat-x;
    background-size: calc(100vw * 24 / 1920);
    transition: transform 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.history-btn {
    position: absolute;
    width: calc(100vw * 75 / 1920);
    height: calc(100vw * 62 / 1920);
    cursor: pointer;
    top: 0;
}

.history-btn.left {
    left: calc(100vw * 20 / 1920);
}

.history-btn img {
    width: calc(100vw * 11 / 1920);
    height: calc(100vw * 13 / 1920);
}

.history-btn.right {
    right: calc(100vw * 20 / 1920);
    transform: rotate(180deg);
}

.time-scroll-box {
  display: flex;
  gap: 3.2rem;
  height: 50rem;
}

.time-scroll {
  width: 20%;
  height: 100%;

  overflow-y: hidden;
  position: relative;
  scroll-behavior: smooth;
}

.time-scroll li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 5rem;
  list-style: none;
  transition: 0.5s;
  cursor: pointer;
}

.time-scroll li .time {
  color: #000;
  padding: 0.8rem;
  font-weight: 400;
  font-size: 1.6rem;
  transition: 0.5s;
  border-radius: 2rem;
}

.time-scroll li.active .time {
  font-size: 2.4rem;
  color: #fff;
  background-color: #b10000;
}

.images-box {
  width: 80%;
  height: 100%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;

  /* 美化滚动条 (WebKit浏览器) */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  position: relative;
}

/* WebKit浏览器滚动条样式 */
.images-box::-webkit-scrollbar {
  width: 0;
  background-color: transparent;
}
.images-box::-webkit-scrollbar-track {
  background: transparent;
}
.images-box::-webkit-scrollbar-thumb {
  background-color: transparent;
}

.images-box section {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.4rem;
}

.card-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem;
  box-shadow: 0 1px 25px rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  width: 100rem;
}

.images-box section p {
  font-size: 1.4rem;
  text-align: center;
  height: 2.4rem;
}

.img-box {
  height: calc(100% - 3.6rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-box img {
  max-height: 100%;
}

/* ********************** */
/* STORY SECTION */
/* ********************** */
.story-section {
  margin-top: calc(100vw * 118 / 1920);
  gap: calc(100vw * 83 / 1920);
}

.story-gap {
  gap: calc(100vw * 39 / 1920);
}

.story-first {
  gap: calc(100vw * 55 / 1920);
}

.story-img {
  width: calc(100vw * 546 / 1920);
  font-size: 0;
  text-align: center;
}

.story-first p {
  font-size: calc(100vw * 14 / 1920);
    line-height: calc(100vw * 24 / 1920);
  text-indent: calc(100vw * 30 / 1920);
    font-weight: 300;
}

.story-first .story-header.header--1 {
    font-size: calc(100vw * 18 / 1920);
    color: #000;
}

.story-first p.foreword {
    font-style: italic;
}

.story-second p {
  font-size: calc(100vw * 14 / 1920);
    line-height: calc(100vw * 24 / 1920);
  text-indent: calc(100vw * 30 / 1920);
    font-weight: 300;
}

.story-second .story-header,
.story-first .story-header {
    font-weight: 600;
}

.second-gap {
  padding-top: calc(100vw * 17 / 1920);
}

/* ********************** */
/* PARTY SECTION */
/* ********************** */
.party-section {
  margin-top: calc(100vw * 208 / 1920);
  margin-bottom: calc(100vw * 80 / 1920);
  gap: calc(100vw * 72 / 1920);
}

.logo-title {
  gap: calc(100vw * 19 / 1920);
}

.party-logo {
  height: calc(100vw * 37 / 1920);
}

.party-gap {
  gap: calc(100vw * 122 / 1920);
}

.party--1 {
  gap: calc(100vw * 61 / 1920);
}

.party-gap h2 {
  font-size: calc(100vw * 28 / 1920);
  line-height: calc(100vw * 28 / 1920);
  color: #af2a2f;
}

.party-info {
  row-gap: calc(100vw * 50 / 1920);
  column-gap: calc(100vw * 50 / 1920);
}

.party-info-item {
  gap: calc(100vw * 18 / 1920);
}

.party-info-item img {
  width: calc(100vw * 335 / 1920);
  height: calc(100vw * 211 / 1920);
}

.party-info-item p {
  font-size: calc(100vw * 18 / 1920);
}

.party--2 {
  gap: calc(100vw * 148 / 1920);
}

.party-construction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: calc(100vw * 73 / 1920);
}

.party-construction p {
  font-size: calc(100vw * 47 / 1920);
  line-height: calc(100vw * 47 / 1920);
  font-weight: bold;
  letter-spacing: calc(100vw * 3 / 1920);
}

.party-construction img {
  width: calc(100vw * 610 / 1920);
}
