.profile-links > button.profile-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #293f4b;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.profile-links > button.profile-link:hover { color: #315f4d; }
.profile-link.email-reveal { position: relative; }
.profile-link .email-address {
  position: absolute;
  left: 46px;
  top: calc(100% + 3px);
  z-index: 5;
  max-width: 230px;
  padding: 5px 9px;
  border: 1px solid #c5d9d4;
  border-radius: 5px;
  background: #f8fcfa;
  color: #315f4d;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  box-shadow: 0 5px 18px rgba(40, 70, 58, .12);
}
.contact-icon.feedback { color: #7b5b3a; background: #f8efe2; }
.profile-links > button.profile-link .contact-icon { flex: 0 0 33px; }

.suggestion-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid #c5d9d4;
  border-radius: 12px;
  background: #fbfdfc;
  color: #263b45;
  box-shadow: 0 24px 70px rgba(31, 53, 45, .22);
}
.suggestion-dialog::backdrop { background: rgba(24, 42, 35, .38); backdrop-filter: blur(2px); }
.suggestion-dialog form { display: grid; gap: 12px; padding: 24px; }
.suggestion-dialog h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; color: #20333e; }
.suggestion-lead { margin: 0 0 3px; color: #647a72; font-size: 13px; line-height: 1.7; }
.suggestion-dialog label { display: grid; gap: 5px; color: #526a61; font-size: 12px; }
.suggestion-dialog input,
.suggestion-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #cbdcd6;
  border-radius: 6px;
  background: #fff;
  color: #20333e;
  font: inherit;
  font-size: 14px;
  line-height: 1.65;
}
.suggestion-dialog textarea { min-height: 118px; resize: vertical; }
.suggestion-dialog input:focus,
.suggestion-dialog textarea:focus { outline: 2px solid #8fbaac; outline-offset: 1px; border-color: #8fbaac; }
.suggestion-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 3px; }
.suggestion-actions button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #b9cec6;
  border-radius: 6px;
  background: #fff;
  color: #3b5d50;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.suggestion-actions button.primary { border-color: #3d7b64; background: #3d7b64; color: #fff; }
.suggestion-actions button:disabled { opacity: .55; cursor: wait; }
#suggestion-status { min-height: 20px; margin: 0; color: #7b5b3a; font-size: 12px; }
#suggestion-status:empty { display: none; }

@media (max-width: 700px) {
  .profile-links { flex-wrap: wrap; gap: 14px 20px; }
  .profile-links > button.profile-link { font-size: 12px; min-height: 36px; gap: 7px; }
  .profile-links > button.profile-link .contact-icon { width: 27px; height: 27px; border-radius: 7px; }
  .profile-link .email-address { left: 34px; max-width: min(220px, calc(100vw - 100px)); }
  .suggestion-dialog form { padding: 18px; }
  .suggestion-dialog h2 { font-size: 22px; }
}

/* Keep the theme switch outside the scrollable nav, so it cannot cover 项目. */
@media (max-width: 760px) {
  .site-header { display: flex; align-items: center; gap: 6px; padding: 0 14px; }
  .site-header nav { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; padding-right: 0; gap: 18px; }
  .theme-menu { position: static; right: auto; top: auto; transform: none; flex: 0 0 auto; margin: 0; }
  .theme-menu summary { padding: 5px 7px; gap: 0; }
  .theme-menu summary span:last-child { display: none; }
}

@media (max-width: 380px) {
  .site-header nav { gap: 17px; }
}

@media (max-width: 340px) {
  .site-header nav { gap: 8px; }
}
