body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.module {
  width: 200px;
  height: 200px;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  display: inline-block;
  margin: 5px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px; /* Add this line */
  /* ...remaining styles */
}

.module img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.module:hover img {
  transform: scale(1.1);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.right-aligned-text {
  text-align: right;
}

.close-dot {
  display: block;
  width: 12px;
  height: 12px;
  background-color: red;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.rectangle-module {
  width: 400px;
  height: 200px;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  display: inline-block;
  margin: 5px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px; /* Add this line */
  /* ...remaining styles */
}

.rectangle-module:hover img {
  transform: scale(1.1);
}

.hover-text {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 14px;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
}


.hover-text, .hover-background {
  display: none;
  position: absolute;
}
.hover-background {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
.hover-text {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: '华文行楷', 'Brush Script MT', cursive;
  font-weight: bold;
  font-size: 1.5em;
  color: white;
}
.module:hover .hover-text, .module:hover .hover-background {
  display: block;
}
.rectangle-module:hover .hover-text, .module:hover .hover-background {
  display: block;
}





