/* 联系我们、积分方案、每日打卡。沿用墨绿 / 纸白 / 朱红印章色板。 */
[hidden] { display: none !important; }

.contact-hover {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 30;
}
.contact-link,
a.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink-soft, #5c5143);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent-deep, #8c3d1c);
  background: rgba(180, 86, 43, 0.1);
  outline: none;
}
.contact-card {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
  z-index: 40;
}
.contact-hover-end .contact-card {
  left: auto;
  right: 0;
  transform: none;
}
.contact-card-inner {
  width: min(420px, calc(100vw - 24px));
  padding: 14px 14px 16px;
  border: 1px solid var(--line, #e0d1ba);
  border-radius: 16px;
  background: #fffaf3;
  box-shadow: 0 16px 36px rgba(70, 42, 16, 0.14);
  box-sizing: border-box;
}
.contact-card-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted, #8b7d6b);
  letter-spacing: 0.04em;
}
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.contact-qr:hover,
.contact-qr:focus-visible {
  background: rgba(180, 86, 43, 0.08);
  outline: none;
}
.contact-qr img {
  width: 132px;
  height: 132px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line, #e0d1ba);
}
.contact-qr strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #2a2318);
  text-align: center;
}
.contact-qr span {
  font-size: 11.5px;
  color: var(--accent-deep, #8c3d1c);
  word-break: break-all;
  text-align: center;
}
.contact-hover:hover .contact-card,
.contact-hover:focus-within .contact-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.checkin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line-strong, #cbb799);
  border-radius: 999px;
  background: #fffaf3;
  color: var(--accent-deep, #8c3d1c);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}
.checkin-btn:hover,
.checkin-btn:focus-visible {
  background: var(--accent-soft, #f3d6c4);
  outline: none;
}
.checkin-btn.is-done {
  border-color: var(--green, #5d7a4c);
  color: var(--green, #5d7a4c);
  background: rgba(93, 122, 76, 0.1);
}
.checkin-btn:disabled { opacity: 0.7; cursor: default; }

a.credit-link,
a.badge,
a.credit,
a.signed-credits,
a.balance-link {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}
a.credit-link:hover,
a.badge:hover,
a.credit:hover,
a.signed-credits:hover,
a.balance-link:hover {
  filter: brightness(0.96);
  box-shadow: 0 0 0 1px rgba(140, 61, 28, 0.25);
}

.checkin-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(42, 35, 24, 0.28);
  box-sizing: border-box;
}
.checkin-dialog {
  width: min(420px, 100%);
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid var(--line, #e0d1ba);
  background: #fffaf3;
  box-shadow: 0 18px 40px rgba(70, 42, 16, 0.16);
  box-sizing: border-box;
}
.checkin-dialog h3 {
  margin: 0 0 8px;
  font: 600 20px/1.3 var(--text-font, "Source Han Serif SC", serif);
  color: var(--ink, #2a2318);
}
.checkin-dialog p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft, #5c5143);
}
.checkin-dialog .checkin-grant {
  color: var(--accent-deep, #8c3d1c);
  font-weight: 700;
}
.checkin-dialog-actions { display: flex; justify-content: flex-end; }
.checkin-dialog-actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent, #b4562b);
  color: #f6efe3;
  font-size: 14px;
  cursor: pointer;
}

/* 独立页：联系我们 / 积分方案 */
.engage-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper, #f3eadc);
  color: var(--ink, #2a2318);
  font-family: var(--ui-font, "Source Han Sans SC", "Noto Sans SC", sans-serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.engage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 58px;
  padding: 0 24px;
  background: var(--panel, #fbf6ee);
  border-bottom: 1px solid var(--line, #e0d1ba);
  box-sizing: border-box;
}
.engage-top .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink, #2a2318);
  text-decoration: none;
  min-width: auto;
  flex-shrink: 0;
  white-space: nowrap;
}
.engage-top .brand svg { width: 22px; height: 22px; color: var(--accent, #b4562b); flex: 0 0 auto; }
.engage-top .brand b {
  font: 600 15px/1 var(--text-font, "Source Han Serif SC", serif);
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}
.engage-top-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.engage-top-links a {
  color: var(--ink-soft, #5c5143);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.engage-top-links a:hover { color: var(--accent-deep, #8c3d1c); background: rgba(180, 86, 43, 0.08); }
.engage-main {
  flex: 1 1 auto;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
  box-sizing: border-box;
}
.engage-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--accent, #b4562b);
}
.engage-main h1 {
  margin: 0 0 10px;
  font: 600 30px/1.3 var(--text-font, "Source Han Serif SC", serif);
}
.engage-lead {
  margin: 0 0 28px;
  color: var(--ink-soft, #5c5143);
  line-height: 1.8;
  font-size: 15px;
}
.engage-credits {
  display: inline-flex;
  align-items: center;
  margin: 0 0 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft, #f3d6c4);
  color: var(--accent-deep, #8c3d1c);
  font-size: 13px;
  text-decoration: none;
}
.manifesto {
  margin: 0 0 28px;
  padding: 22px 24px;
  border: 1px solid var(--line, #e0d1ba);
  border-left: 6px solid var(--accent, #b4562b);
  border-radius: 16px;
  background: #fffaf3;
  box-sizing: border-box;
}
.manifesto p {
  margin: 0;
  font: 600 22px/1.55 var(--text-font, "Source Han Serif SC", serif);
  color: var(--ink, #2a2318);
}
.manifesto p + p { margin-top: 6px; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 36px;
}
.plan-card {
  min-width: 0;
  padding: 20px 18px 18px;
  border: 1px solid var(--line, #e0d1ba);
  border-radius: 16px;
  background: #fffaf3;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(70, 42, 16, 0.06);
}
.plan-card h2 {
  margin: 0 0 12px;
  font: 600 20px/1.35 var(--text-font, "Source Han Serif SC", serif);
  color: var(--ink, #2a2318);
}
.plan-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan-card li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft, #5c5143);
}
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green, #5d7a4c);
}
.plan-card .plan-em {
  color: var(--accent-deep, #8c3d1c);
  font-weight: 700;
}
.plan-price {
  display: block;
  margin: 2px 0;
  font: 700 28px/1.2 var(--text-font, "Source Han Serif SC", serif);
  color: var(--accent, #b4562b);
}
.plan-price small {
  font-size: 14px;
  font-weight: 600;
  margin-left: 4px;
  color: var(--ink-soft, #5c5143);
}
.contact-board {
  padding: 22px 20px;
  border: 1px solid var(--line, #e0d1ba);
  border-radius: 18px;
  background: #fffaf3;
  box-sizing: border-box;
}
.contact-board h2 {
  margin: 0 0 8px;
  font: 600 22px/1.35 var(--text-font, "Source Han Serif SC", serif);
}
.contact-board .board-note {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft, #5c5143);
}
.contact-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.wechat-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.wechat-card img {
  width: min(220px, 100%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line, #e0d1ba);
  background: #fff;
}
.wechat-card strong { font-size: 16px; }
.wechat-id {
  font-size: 14px;
  color: var(--accent-deep, #8c3d1c);
  word-break: break-all;
}
.copy-wechat {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong, #cbb799);
  border-radius: 10px;
  background: #fbf6ee;
  color: var(--ink, #2a2318);
  font-size: 13.5px;
  cursor: pointer;
}
.copy-wechat:hover,
.copy-wechat:focus-visible {
  background: var(--accent-soft, #f3d6c4);
  outline: none;
}
.copy-wechat.is-copied {
  border-color: var(--green, #5d7a4c);
  color: var(--green, #5d7a4c);
}

@media (max-width: 760px) {
  .contact-hover .contact-card { display: none; }
  .contact-link,
  .checkin-btn { min-height: 44px; font-size: 13px; }
  .engage-top { padding: 0 10px; min-height: 52px; padding-top: env(safe-area-inset-top, 0px); gap: 8px; }
  .engage-top .brand { gap: 6px; }
  .engage-top .brand b { letter-spacing: 0.04em; }
  .engage-top-links { gap: 0; }
  .engage-top-links a { padding: 6px 6px; font-size: 12.5px; }
  .engage-main { width: min(960px, calc(100% - 24px)); padding: 24px 0 48px; }
  .engage-main h1 { font-size: 24px; }
  .manifesto { padding: 16px 16px 16px 18px; }
  .manifesto p { font-size: 18px; }
  .plan-grid,
  .contact-board-grid,
  .contact-card-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-card, .contact-board, .wechat-card, .engage-main, .manifesto { max-width: 100%; }
  .wechat-card img { width: min(260px, 100%); }
}
