:root {
  --community-fixed-blue: var(--blue, #275a7a);
  --community-fixed-ink: var(--ink, #1f2328);
  --community-fixed-surface: var(--surface, #fffefa);
}

.community-fixed-trigger {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  min-width: 132px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: var(--community-fixed-blue);
  box-shadow: 0 12px 30px rgba(31, 35, 40, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 15px/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.community-fixed-trigger::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 6px 0 0 -3px currentColor;
}

.community-fixed-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(31, 35, 40, 0.28);
}

.community-fixed-trigger:focus-visible,
.community-fixed-close:focus-visible {
  outline: 3px solid rgba(39, 90, 122, 0.3);
  outline-offset: 3px;
}

.community-fixed-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 20px;
  background: rgba(20, 24, 28, 0.62);
  display: none;
  place-items: center;
  overflow: auto;
}

.community-fixed-modal.is-open { display: grid; }

.community-fixed-panel {
  width: min(100%, 420px);
  padding: 18px;
  border: 1px solid rgba(31, 35, 40, 0.12);
  border-radius: 12px;
  background: var(--community-fixed-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.community-fixed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.community-fixed-title {
  margin: 0;
  color: var(--community-fixed-ink);
  font: 800 20px/1.3 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.community-fixed-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(31, 35, 40, 0.14);
  border-radius: 8px;
  color: var(--community-fixed-ink);
  background: transparent;
  font: 400 27px/1 sans-serif;
  cursor: pointer;
}

.community-fixed-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .community-fixed-trigger {
    right: 24px;
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-fixed-trigger { transition: none; }
}

