/* 每週活動時間表（12/01 從舊首頁搬來，給 explore.html#week 用）。顏色變數在最上面，配合 v2 的黑白銀 */
#week { --card: #fff; --ink: #05060a; --muted: #8a8fa3; --line: #e6e8ef; --pink: #ffe3ec; --pink-ink: #c2316b; --lilac: #ece6ff; --lilac-ink: #5b3fc4; --mint: #ddf5ea; --mint-ink: #1d7a52; --sky: #dff0ff; --sky-ink: #1f63a8; --sun: #fff1cc; --sun-ink: #8a5a00; }
#week .chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
#week .c-pink { background: var(--pink); color: var(--pink-ink); }
#week .c-lilac { background: var(--lilac); color: var(--lilac-ink); }
#week .c-mint { background: var(--mint); color: var(--mint-ink); }
#week .c-sky { background: var(--sky); color: var(--sky-ink); }
#week .c-sun { background: var(--sun); color: var(--sun-ink); }
/* ===== 11/12 每週活動改版：一眼看懂「今天有什麼可以打」 =====
   上面 7 天膠囊（今天排第一個），下面白卡：左邊當天摘要＋篩選＋全天活動，右邊照時間排的清單。
   清單是 JS 依活動資料畫的；沒有 JS 時 .wk 保持 hidden，下面的文字版時間表預設展開 */
#week .wk { --wa: #ffe1ea; --wb: #ffb9cf; margin-bottom: 14px; }
#week .wk[data-wd="1"] { --wa: #ffe6d6; --wb: #ffc6a3; }
#week .wk[data-wd="2"] { --wa: #fff3cf; --wb: #ffdf8a; }
#week .wk[data-wd="3"] { --wa: #e3f7e9; --wb: #b3e6c7; }
#week .wk[data-wd="4"] { --wa: #dcf3f6; --wb: #a7dde6; }
#week .wk[data-wd="5"] { --wa: #e0ecff; --wb: #b2cbfb; }
#week .wk[data-wd="6"] { --wa: #ebe5ff; --wb: #c9b8ff; }
#week .wk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
#week .wk-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 10px 4px 9px; font: inherit; color: var(--ink); cursor: pointer;
  border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 2px 10px rgba(20,14,40,.03);
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; }
#week .wk-day b { font-size: 15px; font-weight: 700; line-height: 1.3; }
#week .wk-day small { font: 600 12px/1.2 "Manrope", sans-serif; color: var(--muted); font-variant-numeric: tabular-nums; }
#week .wk-day i { font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.2; color: var(--muted); }
#week .wk-day .dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--dc, #ffb9cf); }
#week .wk-day.today i { color: var(--pink-ink); }
#week .wk-day[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 22px -14px rgba(24,23,28,.6); }
#week .wk-day[aria-selected="true"] :is(small, i) { color: rgba(255,255,255,.75); }
#week .wk-day:focus-visible, #week .wk-f:focus-visible, #week .wk-text summary:focus-visible { outline: 2px solid #6b7cff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  #week .wk-day:not([aria-selected="true"]):hover { border-color: #d9d3dc; background: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(40,40,80,.4); }
  #week .wk-f:not([aria-pressed="true"]):hover { background: #fff; border-color: #d9d3dc; color: var(--ink); }
  #week .wk-text summary:hover { color: var(--ink); background: #fff; }
}
/* 當天大卡：白卡＋卡頂插畫漸隱＋當天色漸層 */
#week .wk-panel { position: relative; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 8px 28px; padding: 26px 26px 18px; border-radius: 24px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(20,14,40,.03), 0 18px 44px -30px rgba(40,60,110,.3); overflow: clip; }
/* 11/13 每週活動主圖：一主角＋大量留白的插畫，上面疊毛玻璃卡（白色半透明、模糊、細白框、淡陰影）；卡片放在主角另一側 */
#week .wk-hero { grid-column: 1 / -1; position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 340px; margin: -26px -26px 18px; padding: 28px 40px;
  background: #eef1f4 center 62% / cover no-repeat; border-radius: 24px 24px 0 0; }
#week .wk-hero[data-side="l"] { justify-content: flex-start; }
/* 11/13 GM「圖都做成影片」：每天主圖有循環影片就疊在圖上（原圖當 poster），毛玻璃卡在影片上面；減少動態、省流量模式只顯示靜圖 */
#week .wk-hero > .wk-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; border-radius: inherit; pointer-events: none; z-index: 0; }
#week .wk-glass { position: relative; z-index: 1; }
#week .wk-glass { width: min(420px, 100%); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
#week .wk-gk, #week .wk-gc { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.75); box-shadow: 0 10px 30px -12px rgba(20,25,40,.28); color: var(--ink); }
#week .wk-gk { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
#week .wk-gk i { width: 8px; height: 8px; border-radius: 50%; background: #4fc27a; box-shadow: 0 0 0 3px rgba(79,194,122,.2); }
#week .wk-gc { align-self: stretch; padding: 18px 20px 16px; border-radius: 22px; }
#week .wk-gt { display: block; font: 600 12.5px/1.4 "Manrope", -apple-system, sans-serif; color: #55525e; letter-spacing: .1px; }
#week .wk-gn { display: block; margin: 4px 0 4px; font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -.3px; }
#week .wk-gd { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: #45414d; }
#week .wk-gf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#week .wk-gi { display: flex; gap: 8px; }
#week .wk-gi img { box-sizing: content-box; width: 24px; height: 24px; padding: 7px; border-radius: 12px; background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.9); image-rendering: pixelated; }
#week .wk-go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background-color .15s, transform .15s, box-shadow .15s; }
#week .wk-hero.dark .wk-gk, #week .wk-hero.dark .wk-gc { background: rgba(28,32,62,.42); border-color: rgba(255,255,255,.35); color: #fff; }
#week .wk-hero.dark :is(.wk-gt, .wk-gd) { color: rgba(255,255,255,.82); }
#week .wk-hero.dark .wk-gi img { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.4); }
#week .wk-hero.dark .wk-go { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  #week .wk-go:hover { background: #3a3842; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(24,23,28,.6); }
  #week .wk-hero.dark .wk-go:hover { background: #eef0f6; }
}
#week .wk-panel > :not(.loopv) { position: relative; z-index: 1; min-width: 0; }
#week .wk-panel > .loopv { display: none; }	/* 11/13：循環影片別塞進活動大卡，不然會佔掉格子、左右欄對調 */
#week .wk-side > * { position: relative; z-index: 1; }	/* 窄螢幕 .wk-side 是 display: contents，裡面的字要自己疊在插畫上面 */
#week .wk-side { display: flex; flex-direction: column; gap: 14px; align-self: start; }
@media (min-width: 861px) and (min-height: 880px) { #week .wk-panel > .wk-side { position: sticky; top: 92px; } #week .wk-panel > .wk-foot { grid-column: 2; } }	/* 11/13 桌機：清單很長時左欄跟著捲，不會下面空一大塊 */
#week .wk-k { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: rgba(255,255,255,.88); border: 1px solid rgba(24,23,28,.08); }
#week .wk-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wb); }
#week .wk-h { margin: 0; font-size: 26px; line-height: 1.3; letter-spacing: -.3px; }
#week .wk-h small { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: #45414d; letter-spacing: 0; }
#week .wk-next { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.78); border: 1px solid rgba(24,23,28,.07); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-size: 14px; color: #45414d; }
#week .wk-next b { display: block; font-size: 16px; color: var(--ink); }
#week .wk-next[hidden] { display: none; }
#week .wk-fs { display: flex; flex-wrap: wrap; gap: 6px; }
#week .wk-f { font: inherit; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.8); color: #57525f; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
#week .wk-f[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
#week .wk-allday { display: grid; gap: 8px; }
#week .wk-allday h4 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--muted); }
#week .wk-ad { padding: 10px 12px; border-radius: 14px; background: #faf8f9; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: #45414d; }
#week .wk-ad b { color: var(--ink); }
#week .wk-ad .tm { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
#week .wk-ad code, #week .wk-it code { white-space: nowrap; }
/* 時間清單 */
#week .wk-list { list-style: none; margin: 0; padding: 0; }
#week .wk-it { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
#week .wk-it:last-child { border-bottom: 0; }
#week .wk-it[hidden] { display: none; }
#week .wk-tm { font: 700 18px/1.35 "Manrope", -apple-system, sans-serif; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
#week .wk-tm small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
#week .wk-bd { display: flex; flex-direction: column; gap: 2px; }
#week .wk-nm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; font-weight: 700; line-height: 1.45; }
#week .wk-nm .chip { font-size: 11px; padding: 1px 8px; }
#week .wk-ds { font-size: 14px; line-height: 1.6; color: #57525f; }
#week .wk-rw { font-size: 14px; line-height: 1.6; color: #45414d; }
#week .wk-rw::before { content: "獎勵"; display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 800; line-height: 18px; vertical-align: 1px; background: var(--sun); color: var(--sun-ink); }
#week .wk-cmd { padding-top: 2px; }
#week .wk-it.past { opacity: .45; }
#week .wk-it.on .wk-tm, #week .wk-it.nx .wk-tm { color: var(--pink-ink); }
#week .wk-st { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
#week .wk-it.nx .wk-st { background: var(--pink); color: var(--pink-ink); }
#week .wk-empty { padding: 18px 0; color: var(--muted); font-size: 14px; }
#week .wk-foot { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
/* 文字版整週表（收合） */
#week .wk-text { margin-bottom: 14px; padding: 0; overflow: hidden; }
#week .wk-text summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 24px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; color: #45414d; transition: background-color .15s, color .15s; }
#week .wk-text summary::-webkit-details-marker { display: none; }
#week .wk-text summary::after { content: "+"; font: 500 20px/1 "Manrope", sans-serif; color: var(--muted); }
#week .wk-text[open] summary::after { content: "−"; }
#week .wk-text .rows-in { padding: 0 24px 12px; border-top: 1px solid var(--line); }
#week .two .row { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
#week .two .row > div:first-child { padding-top: 2px; }
@media (max-width: 860px) {
  #week .wk-hero { order: -1; margin: -22px -20px 4px; padding: 20px; min-height: 300px; border-radius: 24px 24px 0 0; }
  /* 窄螢幕：摘要、篩選在上，時間清單緊接著，全天活動放到清單後面 */
  #week .wk-panel { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 16px; }
  #week .wk-side { display: contents; }
  #week .wk-list { order: 1; margin-top: -2px; }
  #week .wk-allday { order: 2; padding-top: 12px; border-top: 1px dashed var(--line); }
  #week .wk-foot { order: 3; }
  #week .wk-allday { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 640px) {
  #week .wk-days { gap: 4px; }
  #week .wk-day { padding: 8px 0 7px; border-radius: 14px; }
  #week .wk-day b { font-size: 14px; }
  #week .wk-day small { font-size: 11px; }
  #week .wk-day i { font-size: 10px; }
  #week .wk-day .dot { top: 5px; right: 5px; width: 5px; height: 5px; }
  #week .wk-panel { padding: 18px 16px 14px; border-radius: 20px; }
  #week .wk-hero, #week .wk-hero[data-side="l"] { align-items: flex-end; justify-content: center; margin: -18px -16px 4px; padding: calc((100vw - 32px) * .5625 - 36px) 12px 12px; min-height: 0; border-radius: 20px 20px 0 0; background: #fff top center / 100% auto no-repeat; }
  #week .wk-hero > .wk-vid { inset: 0 0 auto; height: auto; aspect-ratio: 16 / 9; object-position: center; border-radius: 20px 20px 0 0; }
  #week .wk-gn { font-size: 22px; }
  #week .wk-h { font-size: 22px; }
  #week .wk-allday { grid-template-columns: minmax(0, 1fr); }
  #week .wk-it { grid-template-columns: 54px minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; }
  #week .wk-tm { font-size: 16px; }
  #week .wk-cmd { grid-column: 2; padding-top: 4px; }
  #week .wk-text summary { padding: 14px 18px; }
  #week .wk-text .rows-in { padding: 0 18px 10px; }
  #week .two .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media print { #week .wk { display: none !important; } #week .wk-text .rows-in { display: block; } }

/* 12/01 品牌配色：分類標籤、日期點、強調色改成黑白灰藍（原本粉綠黃紫太花） */
#week { --pink: #e9ecf8; --pink-ink: #2f3f86; --lilac: #ecedf2; --lilac-ink: #3a3f52; --mint: #f0f1f5; --mint-ink: #5b6075;
  --sky: #e6edf9; --sky-ink: #2d5596; --sun: #eef0f5; --sun-ink: #2a2d3a; --muted: #8a8fa3; }
#week .c-pink { background: #1b2052; color: #fff; }	/* 打王：深靛藍實心，最顯眼 */
#week .c-lilac { background: transparent; color: #3a3f52; box-shadow: inset 0 0 0 1px #cfd4e2; }	/* 限定：外框 */
#week .wk { --wa: #eef1f8; --wb: #8ea3d6; }
#week .wk[data-wd] { --wa: #eef1f8; --wb: #8ea3d6; }
#week .wk-day .dot { background: #c5cde2; }
#week .wk-day[aria-selected="true"] .dot { background: #8ea3d6; }
#week .wk-day.today i { color: #2f3f86; }
#week .wk-day[aria-selected="true"].today i { color: rgba(255,255,255,.75); }
#week .wk-day:not([aria-selected="true"]):hover, #week .wk-f:not([aria-pressed="true"]):hover { border-color: #d5d9e4; }
#week .wk-it.on .wk-tm, #week .wk-it.nx .wk-tm { color: #2f3f86; }
#week .wk-it.nx .wk-st { background: #e9ecf8; color: #2f3f86; }
#week .wk-rw::before { background: #eef0f5; color: #2a2d3a; }
#week .wk-gk i { background: #8ea3d6; box-shadow: 0 0 0 3px rgba(142,163,214,.25); }
#week :is(.wk-gt) { color: #555a6c; }
#week :is(.wk-gd, .wk-h small, .wk-next, .wk-ad, .wk-rw, .wk-text summary) { color: #3a3f52; }
#week :is(.wk-ds, .wk-f) { color: #5b6075; }
#week .wk-ad { background: #f6f7fa; }
#week .wk-day:focus-visible, #week .wk-f:focus-visible, #week .wk-text summary:focus-visible { outline-color: #8ea3d6; }
