:root {
  color-scheme: light;
  --green: #187446;
  --green-deep: #125d38;
  --gold: #f1bf43;
  --ink: #173b2b;
  --paper: #f4f6ed;
  --line: rgba(24, 116, 70, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.9), transparent 48rem),
    var(--paper);
}

.page-shell {
  width: min(100% - 36px, 920px);
  margin: 0 auto;
  padding: 38px 0 22px;
}

.page-header {
  text-align: center;
  padding: 0 12px 24px;
}

h1 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(2rem, 6vw, 3.45rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.12;
}

.subtitle {
  margin: 9px 0 0;
  color: #536d5c;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.subtitle span {
  color: var(--green);
  font-weight: 900;
}

.quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.quick-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.quick-link--primary {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.quick-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(24, 84, 53, 0.16);
}

.quick-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.poster-section {
  width: min(100%, 820px);
  margin: 0 auto;
}

.poster-hint {
  margin: 0 0 10px;
  color: #63766a;
  font-size: 0.8rem;
  text-align: center;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(30, 69, 47, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(34, 64, 43, 0.16), 0 3px 10px rgba(34, 64, 43, 0.08);
  line-height: 0;
}

.poster-image {
  display: block;
  width: 100%;
  height: auto;
}

.poster-hotspot {
  position: absolute;
  z-index: 1;
  display: block;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  -webkit-tap-highlight-color: rgba(24, 116, 70, 0.18);
}

/* 這兩個位置以原海報的寬、高百分比定位，海報縮放時會同步縮放。 */
.poster-hotspot--form {
  left: 79.4%;
  top: 62.7%;
  width: 14.5%;
  height: 10.6%;
}

.poster-hotspot--details {
  left: 67.2%;
  top: 77.2%;
  width: 21.8%;
  height: 13.8%;
}

.poster-hotspot:hover {
  border-color: rgba(24, 116, 70, 0.82);
  background: rgba(24, 116, 70, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7) inset;
}

.poster-hotspot:focus-visible {
  border-color: var(--gold);
  outline: 3px solid var(--green-deep);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px auto 0;
  color: #6f8375;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 20px, 920px);
    padding-top: 26px;
  }

  .page-header {
    padding-bottom: 19px;
  }

  .quick-links {
    gap: 8px;
    margin-top: 16px;
  }

  .quick-link {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .poster-hint {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }

  .poster-frame {
    border-radius: 8px;
  }

  .page-footer {
    margin-top: 13px;
    font-size: 0.57rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
