.card-name,
.card-description {
  text-align: left;
}


.copy-button {
  width: 90px;
  height: 35px;
  font-size: 15px;
  margin-top: 10px;
  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); /* 定义原始大小 */
}

.copy-button:hover {
  font-weight: bold;
}



.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;
}

@keyframes fadeout {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px 10px;
}

.card-name {
    font-size: 18px;
    align-self: flex-start;
    margin-bottom: 20px;
    width: 100%;  /* 调整为百分比 */
    max-width: 200px;  /* 可选，限制最大宽度 */
}


.recommendation-cards {
    width: auto;
    height: 230px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px; /* 圆角边 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加小阴影 */
    transition: box-shadow 0.3s; /* 添加过渡效果 */
}

@media only screen and (max-width: 767px){
.recommendation-cards {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 0;
    box-shadow: none;
    border-radius: 20px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加小阴影 */
	transition: box-shadow 0.3s; /* 添加过渡效果 */
}

.card-name {
  font-size: 18px; /* 调整字体大小 */
  align-self: flex-start; /* 将标题放置在左上角 */
  margin-bottom: 20px;
  width: 250px;
}

}

.card-description {
  height: 4.5em; /* 限制高度为3行文本 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.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 {
	border: none;
    padding: 10px;
    border-radius: 10px;
    max-width: 40%;
    max-height: 90%;
    overflow-y: auto;
	display: flex;
	flex-direction: column;
	align-items: center; /* 垂直居中对齐 */
	justify-content: center; /* 水平居中对齐 */
}

.modal-content h2{
	 font-size: 1.5em;
	 font-weight: bold;
	 margin-bottom: 0;
}

@media only screen and (max-width: 767px){
.modal-content {
    max-width: 90%;
}

.modal-content h2{
	 margin-bottom: 3%;
}

}

.close-modal {
    display: inline-block;
	border: none;
    color: #fff;
    padding: 5px 10px;
    height: 35px;
	width: 40%;
    font-size: 15px;
    color: black;
    justify-content: center;
    align-items: center;
    background-color: rgba(229, 228, 228, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease-in-out;
	border-radius: 10px;
	font-size: 13px;	
	margin-top: 3%;
}

.modal-content p {
    max-height: 22.5em; /* 假设每行高度为 1.2em，10 行总高度为 12em */
    overflow: auto;
    line-height: 1.5em;
	padding: 10px;
}

.lang-switch-button {
    position: absolute;
    right: 10px;
    top: 20px;
    border: none;
    border-radius: 50%; 
    background-color: transparent;
    transition: transform 0.3s;
    padding: 5px; 
}


.lang-switch-button:hover{
	transform: scale(1.1); /* 悬停时稍微放大按钮的大小 */
	cursor: pointer; /* 改变鼠标样式 */
}

.lang-switch-button:active{
	transform: scale(0.9); /* 点击时稍微缩小按钮的大小 */
}

@media only screen and (max-width: 767px){
.lang-switch-button{
	position: absolute;
	right: 25px;
	top: 32px;
	border: none;
	border-radius: 5px;
	font-family: Helvetica Neue,PingFang SC,Microsoft YaHei;
	transition: transform 0.3s; /* 过渡效果，使按钮的变化更平滑 */
	 background-color: transparent;
}

}

.body-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.no-scroll {
    overflow: hidden;
    position: static; /* 使用 'static' 而不是 'fixed' */
    width: 100%;
    height: 100%;
}

