/* ==========================================================================
   Shared Site Chrome: Accessibility Helpers, Account Menu & Unified Footer
   ========================================================================== */
.zhijw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared Top-Right Account Menu & Login Pill */
.acct-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: #068f90;
  border: 1px solid #068f90;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(6, 143, 144, 0.18);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.acct-login-btn:hover,
.acct-login-btn:focus-visible {
  background: #057879;
  border-color: #057879;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(6, 143, 144, 0.24);
}

.acct-menu {
  position: relative;
  display: inline-block;
  text-align: left;
}

.acct-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 4px 12px 4px 5px;
  border-radius: 999px;
  background: #f4f9f9;
  border: 1px solid #cbe2e2;
  color: #184a4f;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.acct-trigger::-webkit-details-marker {
  display: none;
}

.acct-trigger:hover,
.acct-menu[open] > .acct-trigger {
  background: #eaf5f5;
  border-color: #068f90;
  box-shadow: 0 2px 8px rgba(6, 143, 144, 0.12);
}

.acct-trigger:focus-visible {
  outline: 2px solid #068f90;
  outline-offset: 2px;
}

.acct-trigger-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #068f90 0%, #0b6d75 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acct-online-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  border: 1.5px solid #ffffff;
}

.acct-trigger-label {
  letter-spacing: 0.2px;
}

.acct-trigger-caret {
  color: #4b7277;
  transition: transform 0.16s ease;
}

.acct-menu[open] .acct-trigger-caret {
  transform: rotate(180deg);
}

.acct-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 268px;
  max-width: calc(100vw - 28px);
  background: #ffffff;
  border: 1px solid #d5e4e6;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 39, 44, 0.12), 0 2px 8px rgba(15, 39, 44, 0.05);
  z-index: 1200;
  overflow: hidden;
  text-align: left;
}

.acct-dropdown-head {
  padding: 13px 15px 12px;
  background: linear-gradient(180deg, #f5fbfb 0%, #ffffff 100%);
  border-bottom: 1px solid #e7eff0;
}

.acct-dropdown-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.acct-dropdown-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  color: #647a80;
}

.acct-dropdown-status {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e8f7f0;
  border: 1px solid #bce6d2;
  color: #0d6e47;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.acct-dropdown-email {
  margin: 5px 0 0;
  font-size: 13.5px;
  font-weight: 650;
  color: #1b3339;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.acct-dropdown-links {
  padding: 6px;
  display: grid;
  gap: 2px;
}

.acct-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #243b41 !important;
  text-decoration: none !important;
  transition: background-color 0.14s ease;
}

.acct-dropdown-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #068f90;
}

.acct-dropdown-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #1b3339;
}

.acct-dropdown-item span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #687e84;
}

.acct-dropdown-item:hover,
.acct-dropdown-item:focus-visible {
  background: #f1f8f8;
}

.acct-dropdown-item.is-active {
  background: #eaf5f5;
}

.acct-dropdown-item.is-active strong {
  color: #057576;
}

.acct-dropdown-foot {
  padding: 6px;
  border-top: 1px solid #ebf1f2;
  background: #fafcfc;
}

.acct-dropdown-foot form {
  margin: 0;
}

.acct-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5b7076;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.acct-logout-btn:hover,
.acct-logout-btn:focus-visible {
  background: #fef2f2;
  color: #b4232c;
}

/* Unified Site Footer */
.zhijw-footer {
  margin-top: 36px;
  padding: 22px 0 28px;
  border-top: 1px solid #dce7e9;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  text-align: left;
  color: #64787e;
}

.zhijw-footer-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf3f4;
}

.zhijw-footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.zhijw-footer-nav a {
  color: #365057;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.zhijw-footer-nav a:hover,
.zhijw-footer-nav a:focus-visible,
.zhijw-footer-nav a[aria-current="page"] {
  color: #068f90;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zhijw-footer-notice {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #798c92;
}

.zhijw-footer-bottom {
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: #70848a;
}

.zhijw-footer-icp {
  color: #64787e;
  text-decoration: none;
  transition: color 0.15s ease;
}

.zhijw-footer-icp:hover,
.zhijw-footer-icp:focus-visible {
  color: #068f90;
  text-decoration: underline;
}

@media (max-width: 680px) {
  .acct-trigger {
    height: 34px;
    padding: 3px 10px 3px 4px;
    font-size: 13px;
    gap: 6px;
  }
  .acct-trigger-avatar {
    width: 25px;
    height: 25px;
  }
  .acct-login-btn {
    height: 34px;
    padding: 0 13px;
    font-size: 13px;
  }
  .zhijw-footer {
    margin-top: 28px;
    padding: 18px 0 24px;
  }
  .zhijw-footer-nav {
    gap: 8px 14px;
  }
  .zhijw-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media print {
  .zhijw-footer {
    display: none !important;
  }
}
