:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1a2630;
  background: #f4f8f6;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.contact-card {
  width: min(100%, 440px);
  padding: 32px 26px;
  background: #fff;
  border: 1px solid #e1eee8;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(27, 75, 55, .08);
  text-align: center;
}

.eyebrow { color: #168551; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
h1 { margin: 10px 0 10px; font-size: clamp(24px, 6vw, 30px); line-height: 1.35; }
.intro { margin: 0 0 22px; color: #62716b; font-size: 15px; line-height: 1.6; }
.contact-image, .qr-placeholder {
  width: min(100%, 296px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 10px solid #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 1px #d9e9df, 0 6px 25px rgba(30, 80, 55, .08);
}
.contact-image { display: block; object-fit: contain; }
.qr-placeholder { display: grid; place-items: center; padding: 24px; color: #768a7d; background: #f6faf8; }
.instructions { margin-top: 22px; }
.instructions p { margin: 0 0 16px; color: #5b6d64; font-size: 14px; line-height: 1.7; }
.secondary-button, .primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid #168551;
  background: #fff;
  color: #127448;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.primary-button { background: #168551; color: white; }
.secondary-button:hover, .primary-button:hover { filter: brightness(.96); }
.secondary-button:disabled, .primary-button:disabled { opacity: .6; cursor: not-allowed; }
.wechat-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  background: #f3f8f5;
  overflow-wrap: anywhere;
}
.text-button { padding: 4px; border: 0; color: #147b4b; background: transparent; font-weight: 700; cursor: pointer; }
.status-text { min-height: 22px; margin: 16px 0 0; color: #147b4b; font-size: 14px; line-height: 1.5; }
.status-text.error { color: #be3939; }
.footnote { margin: 16px 0 0; color: #81918a; font-size: 12px; line-height: 1.6; }

.admin-wrap { align-items: flex-start; }
.admin-card { width: min(100%, 680px); text-align: left; }
.admin-card > .eyebrow, .admin-card > h1, .admin-card > .intro { text-align: center; }
.admin-section { padding: 22px 0; border-top: 1px solid #e5eee9; }
.admin-section h2 { margin: 0 0 14px; font-size: 17px; }
.entry-layout { display: flex; align-items: center; gap: 22px; }
.entry-image { width: 180px; height: 180px; border: 1px solid #e0e8e2; border-radius: 12px; }
.entry-url { overflow-wrap: anywhere; font-weight: 700; }
.small-note { color: #687a70; font-size: 13px; line-height: 1.7; }
.field-label { display: block; margin: 14px 0 8px; font-weight: 650; font-size: 14px; }
.admin-section input[type="text"], .admin-section input[type="password"], .admin-section input[type="file"] {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #cbdcd2;
  border-radius: 10px;
  background: white;
}
.admin-section input:focus { outline: 2px solid #92cdaa; outline-offset: 1px; }
.current-image { display: block; width: 180px; height: 180px; margin: 12px 0; object-fit: contain; border: 1px solid #e0e8e2; border-radius: 12px; }
.text-link { color: #127448; }

@media (max-width: 570px) {
  .contact-card { padding: 26px 18px; }
  .entry-layout { flex-direction: column; align-items: flex-start; }
}
