/* 活動頁 /events/<id> */
.ev { padding: 100px 0 80px; }
.ev-flag { position: sticky; top: 72px; z-index: 5; width: fit-content; margin: 0 auto 18px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.ev-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ev-eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ev-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
.ev-head h1 { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 54px); font-weight: 900; line-height: 1.1; margin: 12px 0 14px; word-break: keep-all; overflow-wrap: anywhere; }
.ev-sub { margin: 0 0 14px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); line-height: 1.6; }
.ev-period { margin: 0 0 22px; display: inline-flex; gap: 6px; font-weight: 700; font-size: 15px; background: var(--white); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.ev-hero img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); display: block; }
.ev-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ev-ctas.big { justify-content: center; }
.ev-ended { background: var(--white); border-radius: 14px; padding: 14px 18px; color: var(--ink-soft); line-height: 1.6; }
.ev-ended a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.ev-sec { margin-top: clamp(40px, 6vw, 72px); max-width: 920px; margin-inline: auto; }
.ev-h2 { display: block; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; margin: 0 0 18px; }
.ev-md { font-size: 16px; line-height: 1.8; color: var(--ink-soft); background: var(--white); border-radius: var(--r); padding: clamp(20px, 3vw, 34px); }
.ev-md > :first-child { margin-top: 0; }
.ev-md > :last-child { margin-bottom: 0; }
.ev-md h1, .ev-md h2, .ev-md h3 { font-family: var(--font-display); color: var(--ink); font-size: 19px; font-weight: 800; margin: 24px 0 8px; }
.ev-md p { margin: 0 0 12px; }
.ev-md ul, .ev-md ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 4px; }
.ev-md a { color: var(--ink); text-decoration: underline; overflow-wrap: anywhere; }
.ev-md.small { font-size: 14px; line-height: 1.7; padding: 0; background: none; margin-top: 14px; }
.ev-vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ev-vids figure { margin: 0; display: grid; gap: 6px; }
.ev-vids iframe, .ev-vids video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #000; display: block; }
.ev-vids .tall iframe, .ev-vids .tall video { aspect-ratio: 9 / 16; max-height: 78vh; }
.ev-vids.one .tall { max-width: 420px; margin-inline: auto; }
.ev-vids small { color: var(--muted); font-size: 13px; text-align: center; }
.ev-gallery { columns: 3 240px; column-gap: 14px; }
.ev-gallery a { display: block; margin-bottom: 14px; break-inside: avoid; }
.ev-gallery img { width: 100%; border-radius: 14px; display: block; }
.ev-tours { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ev-tour { display: grid; background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s; }
.ev-tour:hover { transform: translateY(-3px); }
.ev-tour img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ev-tour div { padding: 14px 16px 16px; display: grid; gap: 4px; }
.ev-tour b { font-size: 16px; line-height: 1.35; }
.ev-tour .ev-tsub { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.ev-tour small { color: var(--muted); font-size: 13.5px; }
.ev-cta-band { background: var(--ink); border-radius: var(--r); padding: 30px 20px; }
.ev-cta-band .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.ev-terms { background: var(--white); border-radius: 14px; padding: 16px 20px; }
.ev-terms summary { cursor: pointer; font-weight: 800; }
@media (max-width: 820px) {
  .ev { padding-top: 84px; }
  .ev-head { grid-template-columns: minmax(0, 1fr); }
  .ev-hero { order: -1; }
}

/* 「立刻參加活動」彈窗（components/JoinCampaign.tsx，外框用 style.css 的 .private-dialog） */
.jn-form, .jn-done { display: grid; gap: 14px; padding-top: 16px !important; padding-bottom: 22px !important; }
.jn-ev { margin: 0; font-weight: 800; font-size: 16px; color: var(--ink-soft); }
.jn-f { display: grid; gap: 6px; }
.jn-f > span, .jn-f > label { font-size: 14px; font-weight: 700; }
.jn-f input, .jn-f select { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.jn-f input:focus, .jn-f select:focus { outline: none; border-color: var(--ink); }
.jn-f input[aria-invalid="true"] { border-color: #c0352b; }
.jn-terms { max-height: 220px; overflow-y: auto; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); background: #faf9f6; overscroll-behavior: contain; }
.jn-terms > :first-child { margin-top: 0; }
.jn-terms h1, .jn-terms h2, .jn-terms h3 { font-size: 15px; margin: 12px 0 6px; color: var(--ink); }
.jn-terms ul, .jn-terms ol { padding-left: 20px; margin: 0 0 10px; }
.jn-terms p { margin: 0 0 8px; }
.jn-note { color: var(--muted); font-size: 12.5px; }
.jn-phone { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 8px; }
.jn-hint { color: #a26a00; font-size: 13px; font-weight: 600; }
.jn-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.jn-agree input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.jn-agree.off { opacity: .45; cursor: not-allowed; }
.jn-err { color: #c0352b; font-size: 13px; }
.jn-fail { background: #fdecea; color: #a12a20; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.jn-go { justify-content: center; width: 100%; }
.jn-go:disabled { opacity: .6; transform: none; }
.jn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.jn-next { background: #fffbe0; border-radius: 14px; padding: 14px 16px; line-height: 1.7; }
.jn-next p { margin: 0 0 6px; }
.jn-next p:last-child { margin: 0; }
.jn-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.jn-acts .btn { flex: 1; justify-content: center; }
