body {
    font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 在屏幕宽度大于600px时，每行显示2个项目 */
@media screen and (min-width: 600px) {
  .masonry {
    /* 默认为 4 列布局 */
    column-count: 2;
    column-gap: 1em;
  }
}

/* 在屏幕宽度大于600px时，每行显示2个项目 */
@media screen and (min-width: 800px) {
  .masonry {
    /* 默认为 4 列布局 */
    column-count: 3;
    column-gap: 1em;
  }
}


/* 在屏幕宽度大于1200px时，每行显示4个项目 */
@media screen and (min-width: 1200px) {
  .masonry {
    /* 默认为 4 列布局 */
    column-count: 4;
    column-gap: 1em;
  }
}


.masonry-item {
  display: inline-block;
  margin: 0 0 1em;
  width: 100%;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  border-radius: 10px;
}

.masonry-item img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.masonry-item img:hover {
  transform: scale(1.01);
}

.masonry-item img:active {
  opacity: 0.5;
  transform: scale(0.9);
}



/* 对于小屏幕设备，显示2列 */
@media (max-width: 600px) {
  .masonry {
    column-count: 2;
  }
  .masonry-item img {
    transition: scale(1);
  }
  
  .masonry-item img:active {
    transform: scale(1);
  }
  
  .masonry-item img:hover {
    transform: scale(1);
  }
}

.masonry-item .prompt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.modal-content {
    /* 其他样式 */
    max-height: 160px; /* 假设每行高度为16px，这里设置10行的高度 */
    overflow-y: auto; /* 当内容高度超过max-height时，显示滚动条 */
}



.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.description-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
	padding: 20px;
	position: fixed;
	top: 50%;
	left: 50%;
	font-size: 14px;
	transform: translate(-50%, -50%);
    border-radius: 10px;
    max-width: 40%;
    max-height: 90%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 水平居中对齐 */
	opacity: 0.9;
}

@media (max-width: 600px) {
.modal-content {
    max-width: 90%;
}

}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}



.copy-button:hover, .switch-button:hover {
  font-weight: bold;
}


.modal-button {
  width: 90px;
  height: 35px;
  font-size: 15px;
  font-weight: inherit;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(229, 228, 228, 0.8); /* 设置半透明白色背景 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 添加小阴影 */
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out; /* 添加过渡效果 */
  transform: scale(1); /* 定义原始大小 */
  margin-top: 20px;
  border: none;
}


.button-container {
  display: flex;
  justify-content: center;
  gap: 20px; /* 控制两个按钮之间的距离 */
}

.modal-prompt {
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: auto;
  margin-top: 10px;
}






.copy-success-tooltip {
  position: absolute;
  background-color: #555;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 999;
}

.copy-success-tooltip.show {
  opacity: 1;
}

.modal-content{
	border:aqua;
}


.sk-folding-cube {
  margin: 20px auto;
  width: 40px;
  height: 40px;
  position: relative;
  -webkit-transform: rotateZ(45deg);
          transform: rotateZ(45deg);
}

.sk-folding-cube .sk-cube {
  float: left;
  width: 50%;
  height: 50%;
  position: relative;
  -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1); 
}
.sk-folding-cube .sk-cube:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #333;
  -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
          animation: sk-foldCubeAngle 2.4s infinite linear both;
  -webkit-transform-origin: 100% 100%;
      -ms-transform-origin: 100% 100%;
          transform-origin: 100% 100%;
}
.sk-folding-cube .sk-cube2 {
  -webkit-transform: scale(1.1) rotateZ(90deg);
          transform: scale(1.1) rotateZ(90deg);
}
.sk-folding-cube .sk-cube3 {
  -webkit-transform: scale(1.1) rotateZ(180deg);
          transform: scale(1.1) rotateZ(180deg);
}
.sk-folding-cube .sk-cube4 {
  -webkit-transform: scale(1.1) rotateZ(270deg);
          transform: scale(1.1) rotateZ(270deg);
}
.sk-folding-cube .sk-cube2:before {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}
.sk-folding-cube .sk-cube3:before {
  -webkit-animation-delay: 0.6s;
          animation-delay: 0.6s; 
}
.sk-folding-cube .sk-cube4:before {
  -webkit-animation-delay: 0.9s;
          animation-delay: 0.9s;
}
@-webkit-keyframes sk-foldCubeAngle {
  0%, 10% {
    -webkit-transform: perspective(140px) rotateX(-180deg);
            transform: perspective(140px) rotateX(-180deg);
    opacity: 0; 
  } 25%, 75% {
    -webkit-transform: perspective(140px) rotateX(0deg);
            transform: perspective(140px) rotateX(0deg);
    opacity: 1; 
  } 90%, 100% {
    -webkit-transform: perspective(140px) rotateY(180deg);
            transform: perspective(140px) rotateY(180deg);
    opacity: 0; 
  } 
}

@keyframes sk-foldCubeAngle {
  0%, 10% {
    -webkit-transform: perspective(140px) rotateX(-180deg);
            transform: perspective(140px) rotateX(-180deg);
    opacity: 0; 
  } 25%, 75% {
    -webkit-transform: perspective(140px) rotateX(0deg);
            transform: perspective(140px) rotateX(0deg);
    opacity: 1; 
  } 90%, 100% {
    -webkit-transform: perspective(140px) rotateY(180deg);
            transform: perspective(140px) rotateY(180deg);
    opacity: 0; 
  }
}

#share-switcher-btn {
    display: none;
  }

