/* 優惠卡片 */
:root {
  --pc-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --pc-display: "Playfair Display", var(--pc-serif);
  --pc-ease: cubic-bezier(.22, .61, .36, 1);
}
.pcard {
  --pc-w: 300px;
  position: relative; display: flex; flex-direction: column; flex: 0 0 auto;
  width: var(--pc-w); aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--pc-bg); color: var(--pc-fg); text-decoration: none;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  transition: transform .6s var(--pc-ease), box-shadow .6s var(--pc-ease);
}
a.pcard:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgb(0 0 0 / .18); }
.pcard * { box-sizing: border-box; }
.pc-media { position: relative; overflow: hidden; }
.pc-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--pc-ease); }
a.pcard:hover .pc-media img { transform: scale(1.06); }
.pc-body { position: relative; display: flex; flex-direction: column; min-height: 0; }
.pc-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .2em; color: var(--pc-mu); }
.pc-en { font-family: var(--pc-display); font-style: italic; font-size: 16px; letter-spacing: .06em; color: var(--pc-ac); margin-right: 10px; }
.pc-title {
  margin: 0 0 8px; font-family: var(--pc-serif); font-weight: 700; font-size: 21px; line-height: 1.4; letter-spacing: .04em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.pc-date { margin: 0; font-size: 13px; letter-spacing: .08em; color: var(--pc-mu); }
.pc-excerpt {
  margin: 0 0 12px; font-size: 14px; line-height: 1.75; color: var(--pc-mu);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.pc-more { display: inline-flex; align-items: center; margin-top: auto; padding-top: 10px; font-size: 13px; letter-spacing: .1em; color: var(--pc-ac); }
.pc-more::after {
  content: ""; width: 20px; height: 9px; margin-left: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .4s var(--pc-ease);
}
a.pcard:hover .pc-more::after { transform: translateX(5px); }

/* cover */
.pc-cover .pc-media { position: absolute; inset: 0; }
.pc-cover .pc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--pc-bg) 92%, transparent) 100%); }
.pc-cover .pc-body { margin-top: auto; padding: 24px; height: 50%; justify-content: flex-end; }
.pc-cover .pc-more { margin-top: 0; }

/* split */
.pc-split .pc-media { flex: 0 0 56%; }
.pc-split .pc-body { flex: 1; padding: 18px 22px 18px; }
.pc-split .pc-title { -webkit-line-clamp: 2; font-size: 19px; }

/* frame */
.pc-frame { padding: 20px 20px 18px; }
.pc-frame .pc-media { flex: 0 0 auto; aspect-ratio: 4 / 3; outline: 1px solid var(--pc-ac); outline-offset: 6px; margin: 6px 6px 22px; }
.pc-frame .pc-body { flex: 1; padding: 0 4px; justify-content: flex-end; text-align: center; }
.pc-frame .pc-title { -webkit-line-clamp: 2; font-size: 19px; }

/* poster */
.pc-poster .pc-media { flex: 1; background: color-mix(in srgb, var(--pc-fg) 6%, var(--pc-bg)); }
.pc-poster .pc-media img { object-fit: contain; }
a.pc-poster:hover .pc-media img { transform: scale(1.02); }
.pc-poster .pc-body { flex: 0 0 auto; padding: 12px 16px 14px; }
.pc-poster .pc-title { font-size: 16px; -webkit-line-clamp: 1; margin-bottom: 2px; }

/* ticket */
.pc-ticket {
  --notch: 76px;
  -webkit-mask: radial-gradient(circle 11px at 0 calc(100% - var(--notch)), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% calc(100% - var(--notch)), #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 calc(100% - var(--notch)), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% calc(100% - var(--notch)), #0000 98%, #000) right / 51% 100% no-repeat;
}
.pc-ticket::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--pc-ac); opacity: .45; pointer-events: none; }
.pc-ticket .pc-body { flex: 1; padding: 30px 28px 16px; justify-content: center; }
.pc-ticket .pc-title { font-size: 25px; -webkit-line-clamp: 3; }
.pc-ticket .pc-stub {
  flex: 0 0 var(--notch); display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 28px; border-top: 2px dashed color-mix(in srgb, var(--pc-mu) 55%, transparent);
}
.pc-ticket .pc-more { margin: 0; padding: 0; }

/* type */
.pc-type .pc-mark {
  position: absolute; right: -14px; top: 6px; font-family: var(--pc-display); font-style: italic; font-weight: 600;
  font-size: 128px; line-height: 1; color: var(--pc-ac); opacity: .16; pointer-events: none; white-space: nowrap;
}
.pc-type .pc-body { flex: 1; padding: 28px; justify-content: flex-end; }
.pc-type .pc-title { font-size: 26px; }
.pc-type .pc-body::before { content: ""; width: 40px; height: 2px; background: var(--pc-ac); margin-bottom: 18px; }

/* 卡片列 */
.promo-track {
  display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 2px; padding: 8px 2px 20px; scrollbar-width: thin;
}
.promo-track > * { scroll-snap-align: start; flex: 0 0 auto; }
@media (max-width: 600px) {
  .pcard { --pc-w: min(78vw, 300px); }
  .promo-track { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .pc-media img, .pc-more::after { transition: none; }
  a.pcard:hover { transform: none; }
}

/* 文字列不被壓縮（被壓縮時第二行會被切一半）；split 的照片留少一點高度給文字 */
.pc-kicker, .pc-title, .pc-date, .pc-excerpt { flex-shrink: 0; }
.pc-split .pc-media { flex-basis: 50%; }
.pc-split .pc-title { margin-bottom: 4px; }
.pcard { box-sizing: border-box; }
.pc-title, .promo-band h1 { text-wrap: balance; }
