#modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 320px;
  max-width: 90vw;
  min-height: 100px;
  max-height: 80vh;
  background: rgba(255, 255, 255, 0.85); /* -半透明更明显 */
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  z-index: 9999;
  flex-direction: column;
  font-family: Arial, sans-serif;
  user-select: none;
  transform: translate(-50%, -50%);
  color: #333;
  overflow: auto;
}

#title {
  background: #fff;
  color: #333;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: bold;
  line-height: 24px;
  text-align: center; /* 标题文本居中 */
  border-radius: 8px 8px 0 0;
  cursor: move;
  user-select: none;
  display: flex;
  justify-content: center; /* 水平居中内容 */
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

#content {
  flex: 1;
  padding: 15px;
  overflow: auto;
  font-size: 14px;
  color: #333;
}

#closeBtn {
  position: absolute;
  right: 15px;
  top: 8px;
  width: 28px;
  height: 28px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #777777;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, color 0.3s;
  box-sizing: border-box;
}

#closeBtn:hover {
  background: #ddd;
  color: #333;
}
