    body {
      cursor: pointer;
      position: relative;
      font-family: Arial, sans-serif;
    }
    .click-counter { position: fixed; top: 10px; left: 10px; font-size: 16px; }
    .global-counter { position: fixed; top: 10px; right: 10px; font-size: 16px; }
    .top-bar {
      position: fixed;
      top: 0;
      right: 0;
      display: flex;
      justify-content: flex-end;  /* 整体靠右 */
      align-items: center;
      padding: 10px 20px;
      z-index: 1000;             /* 保证在最上层 */
      background: transparent;   /* 如需背景色可自行调整 */
}
    /* 登录按钮 - 顶部居中 */
    .auth-buttons {
      position: fixed;
  top: 15px;
  right: 230px;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 4px;
  border-radius: 5px;
  font-size: 18px;
  z-index: 1000;
    }
    .auth-buttons button {
      padding: 5px 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      background: transparent;
      cursor: pointer;
      font-size: 14px;
    }
    /* 模态框基础样式（保持最前） */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .modal {
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      width: 300px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
      position: relative;
      z-index: 1001;
    }
    .modal h2 { margin-top: 0; font-size: 18px; }
    .modal .form-group { margin-bottom: 12px; }
    .modal .form-group label { display: block; margin-bottom: 4px; }
    .modal .form-group input { width: 100%; padding: 6px; box-sizing: border-box; }
    .modal .actions { text-align: right; }
    .modal .actions button { padding: 6px 12px; margin-left: 6px; }
    /* 注册按钮位于登录模态底部 */
    #registerInLogin { margin-top: 10px; background: none; border: none; color: #007BFF; cursor: pointer; text-decoration: underline; }

    /* 悬浮窗美化 */
.user-info {
  position: relative;
  display: inline-block;
}
.hover-info {
  display: none;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border: 1px solid rgba(200, 200, 200, 0.5);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  /* 新增宽度与横向布局 */
  min-width: 300px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 16px;
}
.user-info:hover .hover-info {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hover-info p {
  margin: 0;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}
.hover-info button {
  margin-left: auto;
  align-self: center;
  padding: 6px 12px;
  font-size: 14px;
  background-color: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.hover-info button:hover {
  background-color: #ff4b4b;
}

/* 登录/注册模态框美化 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 24px 32px;
  width: 320px;
  max-width: 90%;
  animation: fadeInScale 0.4s ease;
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.modal h2 {
  margin-bottom: 16px;
  font-size: 20px;
  color: #222;
}
.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #555;
}
.form-group input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: #888;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.actions button {
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}
#loginSubmit, #registerSubmit {
  background-color: #4caf50;
  color: #fff;
}
#loginSubmit:hover, #registerSubmit:hover {
  background-color: #45a047;
}
#loginCancel, #registerCancel {
  background-color: #f1f1f1;
  color: #333;
}
#loginCancel:hover, #registerCancel:hover {
  background-color: #e0e0e0;
}
#registerInLogin {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}
#registerInLogin:hover {
  color: #0056b3;
}
.comment-board { padding: 1rem; background: #f9f9f9; margin-top: 2rem; }
.comment-board h2 { margin-bottom: 0.5rem; }
.comment-form textarea { width: 100%; resize: vertical; }
.comment-form button { margin-top: 0.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { padding: 0.5rem 0; border-bottom: 1px solid #ddd; }
.comment-list .time { font-size: 0.8rem; color: #888; margin-left: 0.5rem; }
