/* 藝文活動樞紐頁（/events）：票券海報風
   次要文字白天 #4a3d52、夜間 #d6cce4，對背景對比皆 ≥ 7:1 */
.evx {
  --ev-bg: #FFF8EE; --ev-panel: #ffffff; --ev-line: #EADFCC; --ev-text: #1f1626; --ev-text-2: #4a3d52;
  --ev-hot: #E5322B; --ev-hot-text: #ffffff; --ev-ink: #1f1626;
  --ev-concert: #CC3A14; --ev-music: #6A3DE0; --ev-exhibit: #0B7373; --ev-stage: #B8336A; --ev-family: #2F7D32;
  --ev-chip: #F3E8D6; --ev-chip-on: #1f1626; --ev-chip-on-text: #FFF8EE;
  --ev-free: #1B6B2F; --ev-free-bg: #E3F4E6; --ev-buy: #8A4B00; --ev-buy-bg: #FFEFD6;
  background: var(--ev-bg); color: var(--ev-text); padding: 20px 0 48px;
}
[data-theme="night"] .evx {
  --ev-bg: #14101c; --ev-panel: #1f1830; --ev-line: #352a4a; --ev-text: #f6f1fb; --ev-text-2: #d6cce4;
  --ev-hot: #FF5A4F; --ev-hot-text: #14101c; --ev-ink: #f6f1fb;
  --ev-concert: #FF6A45; --ev-music: #9B7BFF; --ev-exhibit: #2CC2C2; --ev-stage: #F06AA0; --ev-family: #6BCB6F;
  --ev-chip: #2a2140; --ev-chip-on: #f6f1fb; --ev-chip-on-text: #14101c;
  --ev-free: #9BE3A6; --ev-free-bg: rgba(107,203,111,0.16); --ev-buy: #FFCC80; --ev-buy-bg: rgba(255,183,77,0.14);
}
.evx .container { display: grid; gap: 18px; }
.evx a { color: inherit; }
.evx .hub-crumb { font-size: 13px; color: var(--ev-text-2); display: flex; gap: 6px; flex-wrap: wrap; }
.evx .hub-crumb a { color: var(--ev-text-2); text-decoration: none; }
.evx .hub-crumb a:hover { color: var(--ev-hot); }

/* 標題區 */
.evx-hd { display: grid; gap: 8px; justify-items: start; }
.evx-loc { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ev-hot); color: var(--ev-hot-text); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.evx-hd h1 { margin: 0; font-size: clamp(28px, 6vw, 40px); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.evx-ans { margin: 0; max-width: 46em; font-size: 15px; line-height: 1.7; color: var(--ev-text-2); }
.evx-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.evx .evx-links a, .evx .evx-mine { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1.5px solid var(--ev-ink); border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ev-text); }
.evx .evx-links a:hover, .evx .evx-mine:hover { background: var(--ev-ink); color: var(--ev-bg); }
.evx .evx-mine { background: var(--ev-ink); color: var(--ev-bg); }
.evx .city-pin-btn { padding: 6px 12px; border: 1.5px dashed var(--ev-text-2); border-radius: 999px; background: transparent; color: var(--ev-text); font-size: 13px; font-weight: 700; cursor: pointer; }
.evx .city-pin-btn.is-pinned { border-style: solid; border-color: var(--ev-hot); color: var(--ev-hot); }

/* 類型篩選 */
.evx-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; position: sticky; top: 56px; z-index: 5; background: var(--ev-bg); }
.evx-chips::-webkit-scrollbar { display: none; }
.evx-chips button { flex: none; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--ev-chip); color: var(--ev-text); font-size: 14px; font-weight: 700; cursor: pointer; }
.evx-chips button span { font-weight: 600; color: var(--ev-text-2); font-variant-numeric: tabular-nums; }
.evx-chips button.on { background: var(--ev-chip-on); color: var(--ev-chip-on-text); }
.evx-chips button.on span { color: inherit; opacity: .85; }

/* 區塊 */
.evx-sec { display: grid; gap: 12px; }
.evx-sec h2 { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 20px; font-weight: 900; padding-bottom: 8px; border-bottom: 3px solid var(--ev-ink); }
.evx-sec h2 small { font-size: 13px; font-weight: 600; color: var(--ev-text-2); }
.evx-sec h2 .n { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ev-text-2); font-variant-numeric: tabular-nums; }

/* 票券卡片 */
.tk-list, .tk-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.tk-more { grid-column: 1 / -1; }
.evx [hidden] { display: none !important; }
.tk { --c: var(--ev-music); position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr); min-height: 96px; border-radius: 12px; background: var(--ev-panel); border: 1px solid var(--ev-line); text-decoration: none; color: var(--ev-text); overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.tk:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,22,38,.12); }
.tk.t-concert { --c: var(--ev-concert); }
.tk.t-exhibit { --c: var(--ev-exhibit); }
.tk.t-stage { --c: var(--ev-stage); }
.tk.t-family { --c: var(--ev-family); }
/* 存根：彩色日期＋虛線撕口 */
.tk-dt { display: grid; place-content: center; justify-items: center; gap: 2px; background: var(--c); color: #fff; text-align: center; border-right: 2px dashed var(--ev-bg); padding: 8px 4px; }
[data-theme="night"] .tk-dt { color: #14101c; }
.tk-dt b { font-size: 22px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.tk-dt small { font-size: 11px; font-weight: 700; line-height: 1.2; }
.tk::before, .tk::after { content: ""; position: absolute; left: 70px; width: 16px; height: 16px; border-radius: 50%; background: var(--ev-bg); z-index: 1; }
.tk::before { top: -8px; }
.tk::after { bottom: -8px; }
.tk-bd { display: grid; align-content: center; gap: 4px; padding: 10px 14px; min-width: 0; }
.tk-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.tk-meta i { font-style: normal; font-weight: 800; color: var(--c); }
.tk-meta em { font-style: normal; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--ev-free-bg); color: var(--ev-free); }
.tk-meta em.buy { background: var(--ev-buy-bg); color: var(--ev-buy); }
.tk-bd > b { font-size: 15px; font-weight: 800; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-v { font-size: 13px; color: var(--ev-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.evx-more { justify-self: center; grid-column: 1 / -1; padding: 10px 22px; border: 2px solid var(--ev-ink); border-radius: 999px; background: transparent; color: var(--ev-text); font-size: 14px; font-weight: 800; cursor: pointer; }
.evx-more:hover { background: var(--ev-ink); color: var(--ev-bg); }

/* 縣市 */
.evx-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.evx-cities a { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--ev-panel); border: 1px solid var(--ev-line); font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ev-text); }
.evx-cities a span { font-size: 12px; font-weight: 700; color: var(--ev-text-2); font-variant-numeric: tabular-nums; }
.evx-cities a:hover { border-color: var(--ev-ink); }
.evx-cities a.cur { background: var(--ev-hot); border-color: var(--ev-hot); color: var(--ev-hot-text); }
.evx-cities a.cur span { color: inherit; }

.evx-src { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ev-text-2); }
.evx-src a { text-decoration: underline; }

@media (max-width: 600px) {
  .evx { padding-top: 14px; }
  .evx-chips { top: 50px; }
  .tk { grid-template-columns: 70px minmax(0, 1fr); }
  .tk::before, .tk::after { left: 62px; }
}
.tk-cap { grid-column: 1 / -1; }
