/* =========================================================
   臺大 98 校慶主視覺：滿版動態主視覺與主選單
   ========================================================= */

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #e9d6a8;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
.sr {
  position: absolute; width: 1px; height: 1px; margin: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 主視覺區塊 ----------
   滿版：高度等於螢幕高，但限制在螢幕寬度的 50%–65% 之間，
   讓圖片上下只裁掉一點點，左上標題與右下百年標誌永遠在畫面內。
   .hero-canvas 保持原圖比例，像 object-fit: cover 一樣填滿區塊。 */
.hero {
  --h: clamp(50vw, 100svh, 65vw);
  --ratio: 1.538;                       /* 1932 / 1256 */
  position: relative;
  width: 100%;
  height: var(--h);
  overflow: hidden;
  background: #e9d6a8;
}
.hero-canvas {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, calc(var(--h) * var(--ratio)));
  aspect-ratio: 1932 / 1256;
  visibility: hidden;                   /* 動畫開始前先隱藏，避免完成畫面先閃現 */
}
.hero.play .hero-canvas,
.hero.static .hero-canvas { visibility: visible; }
.hero-canvas > svg,
.hero-canvas > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}

/* ---------- 右上主選單 ---------- */
.topnav {
  position: absolute; z-index: 3;
  top: clamp(14px, 2vw, 32px);
  right: clamp(14px, 2vw, 40px);
}
.topnav ul {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 4px;
  background: #fffaf0e0;
  border-radius: 999px;
  box-shadow: 0 2px 10px #7a4a1a1f;
}
.topnav a {
  display: flex; align-items: center; gap: 6px;
  padding: .45em 1em;
  border-radius: 999px;
  color: #3d3a39;
  font-size: clamp(13.5px, .95vw, 19px);
  font-weight: 500; line-height: 1.4;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s;
}
.topnav a:hover { background: #e7651f; color: #fff; }
.topnav a:focus-visible,
.burger:focus-visible { outline: 2px solid #cf4a0c; outline-offset: 2px; }
.topnav .en-link {
  border-left: 1px solid #d9cbb0;
  border-radius: 0 999px 999px 0;
  letter-spacing: .04em;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e23b2e;
  animation: live 1.8s ease-out infinite;
}
@keyframes live {
  0%       { box-shadow: 0 0 0 0 #e23b2e80; }
  70%,100% { box-shadow: 0 0 0 7px #e23b2e00; }
}

/* 漢堡按鈕（窄螢幕才顯示） */
.burger {
  display: none; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0;
  border-radius: 50%;
  background: #fffaf0e6;
  box-shadow: 0 2px 10px #7a4a1a26;
  cursor: pointer;
}
.burger i {
  grid-area: 1 / 1; display: block;
  width: 20px; height: 2px; border-radius: 2px;
  background: #3d3a39;
  transition: transform .25s, opacity .2s;
}
.burger i:nth-child(1) { transform: translateY(-6px); }
.burger i:nth-child(3) { transform: translateY(6px); }
.topnav.open .burger i:nth-child(1) { transform: rotate(45deg); }
.topnav.open .burger i:nth-child(2) { opacity: 0; }
.topnav.open .burger i:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 880px) {
  .topnav { top: 12px; right: 12px; }
  .burger { display: grid; }
  .topnav ul {
    position: absolute; right: 0; top: 52px;
    flex-direction: column; align-items: stretch; gap: 0;
    min-width: 188px; padding: 8px; border-radius: 14px;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .topnav.open ul {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .2s, transform .2s;
  }
  .topnav a { padding: 10px 14px; font-size: 15px; border-radius: 8px; }
  .topnav .en-link {
    border-left: 0; border-top: 1px solid #d9cbb0;
    border-radius: 0 0 8px 8px; margin-top: 4px;
  }
}

/* 手機：改直式構圖（裁切與標題、標誌位移由 hero.js 處理） */
@media (max-width: 640px) {
  .hero { --h: min(125vw, 100svh); --ratio: .8; }
  .hero-canvas { aspect-ratio: 1005 / 1256; }
  .titleburst { display: none; }
}

/* ---------- 選單浮動區塊 ----------
   按下選單項目後，在主視覺上方浮出白色半透明區塊。 */
.topnav a.is-active,
.topnav a.is-active:hover { background: #e7651f; color: #fff; }

/* 區塊高度：
   --panel-min  最小高度（桌機 720px；平板與手機 620px，見下方媒體查詢）
   --panel-room 選單下方可用的空間；空間不夠時以可用空間為準，內容在區塊內捲動 */
.panel {
  --panel-top: calc(clamp(14px, 2vw, 32px) + 3.4em);
  --panel-min: 720px;
  --panel-room: calc(100% - var(--panel-top) - 24px);
  position: absolute; z-index: 2;
  top: var(--panel-top);
  right: clamp(14px, 2vw, 40px);
  width: min(680px, calc(100% - 2 * clamp(14px, 2vw, 40px)));
  min-height: min(var(--panel-min), var(--panel-room));
  max-height: var(--panel-room);
  display: flex; flex-direction: column;
  color: #3d3a39;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 20px;
  box-shadow: 0 24px 60px -24px rgba(110, 60, 15, .45);
  font-size: clamp(14px, .95vw, 17px);
  line-height: 1.65;
  animation: panelIn .28s cubic-bezier(.2,.8,.2,1) both;
}
.panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }

.panel-head {
  display: grid; grid-template-columns: 1fr auto; align-items: start;
  gap: 0 12px;
  padding: 1.2em 1.4em .8em;
  border-bottom: 1px solid rgba(61, 58, 57, .12);
}
.panel-eyebrow {
  grid-column: 1; margin: 0;
  font-size: .74em; font-weight: 700; letter-spacing: .16em;
  color: #cf4a0c;
}
.panel-head h2 {
  grid-column: 1; margin: .1em 0 0;
  font-size: 1.45em; font-weight: 700; line-height: 1.3;
  text-wrap: balance; outline: none;
}
.panel-close {
  grid-column: 2; grid-row: 1 / span 2;
  width: 40px; height: 40px; padding: 0; border: 0;
  border-radius: 50%;
  background: rgba(61, 58, 57, .08);
  color: #3d3a39; font-size: 24px; line-height: 1;
  cursor: pointer;
}
.panel-close:hover { background: rgba(61, 58, 57, .16); }
.panel-close:focus-visible,
.panel a:focus-visible,
.panel button:focus-visible,
.panel summary:focus-visible { outline: 2px solid #cf4a0c; outline-offset: 2px; }

.panel-body {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: .4em 1.4em 1em;
}
.panel-foot {
  padding: .8em 1.4em 1.1em;
  border-top: 1px solid rgba(61, 58, 57, .12);
}
.panel-foot a {
  display: inline-flex; align-items: center; gap: .4em;
  color: #cf4a0c; font-weight: 700; text-decoration: none;
}
.panel-foot a::after { content: "→"; transition: translate .2s; }
.panel-foot a:hover::after { translate: 4px 0; }
.panel-status { color: #6f6a66; margin: 1em 0; }
.panel-lead { margin: .8em 0 1em; }

/* 活動清單 */
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-item { position: relative; padding: .9em 0; border-bottom: 1px solid rgba(61, 58, 57, .1); }
.ev-item:last-child { border-bottom: 0; }
.ev-title { margin: 0 0 .25em; padding-right: 8.8em; font-size: 1.05em; font-weight: 700; line-height: 1.45; }
.ev-tag {
  display: inline-block; margin-right: .5em; padding: 0 .55em;
  border-radius: 999px; vertical-align: .1em;
  font-size: .72em; font-weight: 700; line-height: 1.8;
  background: rgba(231, 101, 31, .12); color: #b8460c;
}
.ev-meta { margin: 0; color: #5b5652; font-size: .92em; font-variant-numeric: tabular-nums; }
.ev-meta span + span::before { content: "｜"; color: rgba(61, 58, 57, .35); }
/* 「更多資訊」固定在每則活動的右上角，展開的內容仍接在地點下方 */
.ev-more summary {
  position: absolute; top: .95em; right: 0;
  display: inline-flex; align-items: center;
  padding: .1em .75em;
  border: 1px solid rgba(207, 74, 12, .35); border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: #cf4a0c; font-size: .85em; font-weight: 700; line-height: 1.6;
  white-space: nowrap; cursor: pointer; list-style: none;
  transition: background .2s, color .2s;
}
.ev-more summary:hover,
.ev-more[open] summary { background: #e7651f; border-color: #e7651f; color: #fff; }
.ev-more summary::-webkit-details-marker { display: none; }
.ev-more summary::after { content: " ＋"; }
.ev-more[open] summary::after { content: " －"; }
/* 有海報的活動：按鈕前加一個圖片小圖示 */
.ev-more summary.has-poster::before {
  content: ""; width: 1em; height: 1em; margin-right: .35em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2h12v12H2z' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M3 13l3.5-4.5 2.5 3 1.8-2.2L13 13z'/%3E%3Ccircle cx='10.5' cy='5.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2h12v12H2z' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M3 13l3.5-4.5 2.5 3 1.8-2.2L13 13z'/%3E%3Ccircle cx='10.5' cy='5.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ev-detail { margin-top: .5em; font-size: .94em; }
/* 展開後：海報縮圖在左、文字在右；窄螢幕改為海報在上 */
.ev-detail.has-poster {
  display: grid; grid-template-columns: 132px minmax(0, 1fr);
  gap: .4em 1.1em; align-items: start;
}
.ev-poster {
  display: block; position: relative;
  border-radius: 8px; overflow: hidden;
  background: rgba(61, 58, 57, .06);
  box-shadow: 0 6px 18px -8px rgba(80, 45, 10, .45);
  text-decoration: none;
}
.ev-poster img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: contain; }
.ev-poster span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .25em 0; text-align: center;
  background: rgba(61, 58, 57, .72); color: #fff;
  font-size: .78em; font-weight: 700;
  opacity: 0; transition: opacity .2s;
}
.ev-poster:hover span,
.ev-poster:focus-visible span { opacity: 1; }
@media (hover: none) { .ev-poster span { opacity: 1; } }
@media (max-width: 560px) {
  .ev-detail.has-poster { grid-template-columns: 1fr; }
  .ev-poster { width: 55%; max-width: 200px; justify-self: center; margin-bottom: .4em; }
  .ev-poster img { max-height: 280px; }
}
.ev-detail p { margin: 0 0 .6em; }
.ev-detail strong { display: block; font-size: .85em; color: #6f6a66; }
.ev-detail a { color: #b8460c; }
.ev-detail .glyphicon { display: none; }

/* 最新消息：日期切換 */
.day-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: .8em 0 .4em; padding: 0; list-style: none;
}
.day-chips button {
  min-width: 4.4em; padding: .35em .8em;
  border: 1px solid rgba(61, 58, 57, .18); border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  color: #3d3a39; font: inherit; font-size: .9em; line-height: 1.3;
  font-variant-numeric: tabular-nums; cursor: pointer;
}
.day-chips button small { display: block; font-size: .78em; color: #6f6a66; }
.day-chips button[aria-pressed="true"] { background: #e7651f; border-color: #e7651f; color: #fff; }
.day-chips button[aria-pressed="true"] small { color: #fff; }
.day-heading { margin: .9em 0 0; font-size: .95em; color: #6f6a66; }

/* Live / English */
.panel-facts { margin: 0; }
.panel-facts div { padding: .7em 0; border-bottom: 1px solid rgba(61, 58, 57, .1); }
.panel-facts div:last-child { border-bottom: 0; }
.panel-facts dt { font-size: .85em; font-weight: 700; color: #6f6a66; }
.panel-facts dd { margin: 0; }
.panel-facts a { color: #cf4a0c; font-weight: 700; }
.panel-links { list-style: none; margin: 0; padding: 0; }
.panel-links li { border-bottom: 1px solid rgba(61, 58, 57, .1); }
.panel-links li:last-child { border-bottom: 0; }
.panel-links a {
  display: flex; justify-content: space-between; padding: .75em 0;
  color: #3d3a39; font-weight: 700; text-decoration: none;
}
.panel-links a::after { content: "→"; color: #cf4a0c; }
.panel-links a:hover { color: #cf4a0c; }

/* Live 區塊：轉播名稱、倒數與兩個觀看管道 */
.live-box {
  margin: .9em 0 .6em; padding: 1.1em 1.1em 1.2em;
  border-radius: 16px; text-align: center;
  background: rgba(255, 255, 255, .6);
  box-shadow: inset 0 0 0 1px rgba(61, 58, 57, .08);
}
.live-name { margin: 0; font-size: 1.15em; font-weight: 700; line-height: 1.4; }
.live-when {
  display: inline-block; margin: .5em 0 0; padding: .1em .9em;
  border-radius: 999px; background: rgba(231, 101, 31, .12);
  color: #b8460c; font-weight: 700; font-variant-numeric: tabular-nums;
}
.live-when:empty { display: none; }
.live-state { margin: .8em 0 .5em; color: #5b5652; font-weight: 700; font-size: .95em; }
.live-state.is-live { color: #b8460c; }
.live-state.is-live::before {
  content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .45em;
  border-radius: 50%; background: #e23b2e; vertical-align: .1em;
  animation: live 1.8s ease-out infinite;
}
.live-cd { display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.live-cd[hidden] { display: none; }
.live-cd li {
  flex: 1; max-width: 5.2em; padding: .45em .2em .35em;
  border-radius: 12px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(61, 58, 57, .1);
}
.live-cd b { display: block; font-size: 1.7em; line-height: 1.1; color: #e7651f; font-variant-numeric: tabular-nums; }
.live-cd small { font-size: .78em; color: #6f6a66; }
.live-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1em; }
.live-btn {
  flex: 1 1 10em; display: inline-flex; align-items: center; justify-content: center;
  padding: .65em 1.2em; border-radius: 999px; border: 2px solid #e7651f;
  background: rgba(255, 255, 255, .7); color: #cf4a0c;
  font-weight: 700; text-decoration: none; transition: background .2s, color .2s;
}
.live-btn.is-primary { background: #e7651f; color: #fff; }
.live-btn:hover { background: #cf4a0c; border-color: #cf4a0c; color: #fff; }
.live-btn:focus-visible { outline: 2px solid #cf4a0c; outline-offset: 2px; }

/* 平板與手機：主視覺較矮，區塊改以整個螢幕為範圍，最小高度 620px */
@media (max-width: 1024px) {
  .panel {
    --panel-min: 620px;
    --panel-room: calc(100svh - var(--panel-top) - env(safe-area-inset-bottom, 0px) - 12px);
    position: fixed;
    font-size: 15px;
  }
}
@media (max-width: 880px) {
  .panel {
    --panel-top: calc(env(safe-area-inset-top, 0px) + 66px);
    left: 12px; right: 12px; width: auto;
  }
  .panel-head { padding: 1em 1.1em .7em; }
  .panel-body { padding: .3em 1.1em .9em; }
  .panel-foot { padding: .7em 1.1em .9em; }
}

/* ---------- 動畫 ----------
   原檔圖層本身帶有 transform 屬性，所以動畫一律使用獨立的
   translate / scale / rotate 屬性，疊加在原本的位置上而不覆蓋它。
   每個元素的變形原點由 hero.js 依圖稿座標設定。 */
#art .m { transform-box: view-box; }

/* 1. 色帶 */
.play .k-img    { animation: fadeIn .5s ease-out .55s both; }
.play .k-rise   { animation: riseY .55s cubic-bezier(.2,.8,.2,1) var(--d) both; }
.k-shim         { opacity: 0; }
.play .k-shim   { animation: shim var(--t) ease-in-out var(--d) infinite; }
.play .k-gloss  { animation: gloss 7s ease-in-out 3.2s infinite both; }

/* 2. 校舍：中央升起，兩翼向外展開 */
.play .k-lift   { animation: liftY .6s cubic-bezier(.2,.8,.2,1) .4s both; }
.play .k-spread { animation: spreadX .55s cubic-bezier(.2,.8,.2,1) .62s both; }

/* 3. 傅鐘 */
.play .k-frame  { animation: riseY .5s cubic-bezier(.2,.8,.2,1) 1.15s both; }
.play .k-bell   { animation: fadeIn .35s ease-out 1.45s both, ring 9s ease-in-out 1.6s infinite; }
.k-wave         { opacity: 0; }
.play .k-wave   { animation: wave 9s ease-out var(--d) infinite; }

/* 4. 椰林：樹幹與樹葉整棵一起進場，之後樹葉以樹幹頂端為軸左右搖曳 */
.play .k-trunk  { animation: palmIn .6s cubic-bezier(.2,.8,.2,1) var(--d) both; }
.play .k-leaf   { animation: palmIn .6s cubic-bezier(.2,.8,.2,1) var(--d) both,
                             sway var(--t) ease-in-out var(--o) infinite; }
.play .k-burst  { animation: palmIn .6s cubic-bezier(.2,.8,.2,1) var(--d) both,
                             twirl var(--t) ease-in-out var(--o) infinite; }

/* 5. 標題  6. 百年標誌 */
.play .k-title  { animation: titleIn .7s cubic-bezier(.2,.8,.2,1) var(--d) both; }
.play .k-logo   { animation: logoIn .6s cubic-bezier(.2,.8,.2,1) 2.4s both; }
.play .k-sun    { animation: sunUp .8s cubic-bezier(.2,.8,.2,1) 2.5s both; }

/* 選單淡入 */
.play .topnav   { animation: fadeIn .4s ease-out both; }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseY   { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes spreadX { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes liftY   { from { translate: 0 90px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes palmIn  { from { translate: 0 36px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes sway    { 0%,100% { transform: skewX(-2.5deg); } 50% { transform: skewX(2.5deg); } }
@keyframes twirl   { 0%,100% { rotate: -6deg; } 50% { rotate: 6deg; } }
@keyframes ring    { 0%,24%,100% { rotate: 0deg; } 4% { rotate: 15deg; } 9% { rotate: -12deg; }
                     14% { rotate: 8deg; } 19% { rotate: -4deg; } }
@keyframes wave    { 0% { scale: .5; opacity: 0; } 3% { opacity: .85; } 16%,100% { scale: 2.6; opacity: 0; } }
@keyframes titleIn { from { translate: 0 40px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes logoIn  { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes sunUp   { from { translate: 0 26px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes shim    { 0%,100% { opacity: 0; } 50% { opacity: .2; } }
@keyframes gloss   { 0% { translate: -260px 0; } 55%,100% { translate: 620px 0; } }

/* 使用者系統設定「減少動態效果」時，只顯示靜態畫面 */
@media (prefers-reduced-motion: reduce) {
  .hero * { animation: none !important; }
}

/* ---------- 校內直播播放器（首頁） ---------- */
.player {
  width: min(1100px, calc(100% - 24px));
  padding: 0; border: 0; border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -20px rgba(40, 20, 5, .6);
  color: #3d3a39;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
.player::backdrop { background: rgba(40, 25, 10, .55); }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.player-head h2 { margin: 0; font-size: 20px; }
.player-close {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(61, 58, 57, .08); color: #3d3a39; font-size: 24px; cursor: pointer;
}
.player-close:focus-visible { outline: 2px solid #cf4a0c; outline-offset: 2px; }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-note { margin: 0; padding: 12px 18px 16px; font-size: 14px; line-height: 1.6; color: #b8460c; }

/* ---------- 站內搜尋 ---------- */
/* 主選單的搜尋項目：桌機只顯示放大鏡，漢堡選單內顯示「搜尋」文字 */
.topnav .nav-search { padding-inline: .8em; }
.topnav .nav-search svg { flex: none; }
.nav-search-label {
  position: absolute; width: 1px; height: 1px; margin: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 880px) {
  .topnav .nav-search { padding-inline: 14px; }
  .nav-search-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* 搜尋區塊：內容少時不需要撐到 720px */
.panel-search { --panel-min: 460px; }
@media (max-width: 1024px) { .panel-search { --panel-min: 420px; } }

.search-form { padding: .9em 1.4em .2em; }
.search-form input {
  width: 100%;
  padding: .7em 1em .7em 2.6em;
  border: 1px solid rgba(61, 58, 57, .2); border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.75' fill='none' stroke='%23cf4a0c' stroke-width='2'/%3E%3Cpath d='M13 13l4.5 4.5' stroke='%23cf4a0c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 1em 50% / 1.1em no-repeat;
  color: #3d3a39; font: inherit; font-size: max(16px, 1em);   /* 16px 以上，iOS 才不會自動放大畫面 */
  box-shadow: 0 6px 18px -12px rgba(110, 60, 15, .5);
}
.search-form input::placeholder { color: #8a837d; }
.search-form input:focus { outline: none; border-color: #e7651f; box-shadow: 0 0 0 3px rgba(231, 101, 31, .22); }
@media (max-width: 880px) { .search-form { padding: .8em 1.1em .2em; } }

.search-status { margin: .6em 0 .4em; color: #6f6a66; font-size: .92em; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { border-bottom: 1px solid rgba(61, 58, 57, .1); }
.search-results li:last-child { border-bottom: 0; }
.sr-link {
  display: block; margin: 0 -.6em; padding: .75em .6em;
  border-radius: 10px; color: inherit; text-decoration: none;
  transition: background .15s;
}
.sr-link:hover { background: rgba(255, 255, 255, .6); }
.sr-link:hover .sr-title { color: #cf4a0c; }
.sr-link > span { display: block; }
.sr-path { color: #8a837d; font-size: .8em; }
.sr-title { margin: .1em 0 .15em; font-size: 1.05em; font-weight: 700; line-height: 1.45; transition: color .15s; }
.sr-meta { color: #5b5652; font-size: .9em; font-variant-numeric: tabular-nums; }
.sr-snip { margin-top: .3em; color: #5b5652; font-size: .9em; }
.sr-snip b { margin-right: .5em; color: #6f6a66; font-size: .9em; }
.search-results mark { padding: 0 .1em; border-radius: 3px; background: rgba(231, 101, 31, .22); color: inherit; }

/* 從搜尋結果跳過來的活動：短暫標示 */
.ev-item.is-found { animation: found 2.6s ease-out both; border-radius: 10px; }
.ev-title:focus { outline: none; }
@keyframes found {
  0%, 35% { background: rgba(231, 101, 31, .14); box-shadow: 0 0 0 .6em rgba(231, 101, 31, .14); }
  100%    { background: rgba(231, 101, 31, 0);   box-shadow: 0 0 0 .6em rgba(231, 101, 31, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ev-item.is-found { animation: none; background: rgba(231, 101, 31, .12); box-shadow: 0 0 0 .6em rgba(231, 101, 31, .12); }
}
