/* HOMECASE002：僅新招牌輪播／案例；不改既有首頁樣式。11/10 改版：配合首頁深藍 hero 與數據卡的玻璃質感、品牌橘色。 */
body.swd-home .home-showcase{margin:-26px 0 40px;padding:22px 22px 14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:22px;box-shadow:0 20px 50px rgba(0,0,0,.14);text-align:left;min-width:0}
body.swd-home .home-showcase h2{color:#fff}
.home-showcase-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.home-showcase-heading h2{font-size:1.12rem;line-height:1.5;margin:0;color:#fff;font-weight:800;letter-spacing:.02em}
.home-showcase a{color:#ffb066;text-underline-offset:4px}
.home-showcase-note{font-size:.8rem;color:#aeb9d5;line-height:1.7;margin:4px 0 14px}
.home-showcase-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:.88rem}
.home-showcase-actions a{color:#ffb066;font-weight:700;text-decoration:none}
.home-showcase-actions a:hover{color:#ffd0a1}
.home-showcase-toggle{border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:5px 12px;font:inherit;font-size:.78rem;line-height:1.4;color:#c9d2e8;background:rgba(255,255,255,.06);cursor:pointer;white-space:nowrap}
.home-showcase-toggle[hidden]{display:none}
.home-showcase-toggle:hover{background:rgba(255,255,255,.14);color:#fff}
.home-showcase-window{overflow-x:auto;overflow-y:hidden;border-radius:14px;padding:4px 0 10px;scrollbar-width:none;-ms-overflow-style:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%)}
.home-showcase-window::-webkit-scrollbar{display:none}
.home-showcase-track{display:flex;width:max-content}
.home-showcase--ready .home-showcase-track{animation:home-showcase-scroll var(--showcase-duration,165s) linear infinite}
.home-showcase-list{display:flex;flex-shrink:0;gap:14px;list-style:none;margin:0;padding:0 14px 0 0}
.home-showcase-list li{flex:0 0 220px;width:220px;margin:0}
.home-showcase-list[aria-hidden]{display:none}
.home-showcase--ready .home-showcase-list[aria-hidden]{display:flex}
.home-showcase-card{display:block;text-decoration:none;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(10,14,40,.55);overflow:hidden;color:#fff;transition:transform .2s,border-color .2s}
.home-showcase-card:hover{transform:translateY(-3px);border-color:rgba(255,176,102,.6)}
.home-showcase-sign{display:flex;align-items:center;justify-content:center;height:77px;background:#11163a;padding:0}
.home-showcase-sign img{display:block;width:100%;height:77px;object-fit:cover;object-position:center;background:#11163a}
.home-showcase-sign--text{background:linear-gradient(135deg,#2a3170,#1b2150)}
.home-showcase-sign--text>span{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:8px;margin:8px;padding:6px 12px}
.home-showcase-sign>span{padding:8px;color:#fff;font-weight:700;font-size:.92rem;text-align:center;overflow-wrap:anywhere}
.home-showcase-name{display:block;min-height:0;padding:9px 12px 11px;font-size:.85rem;font-weight:700;line-height:1.45;color:#e8ecf8;overflow-wrap:anywhere;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-showcase-window:hover .home-showcase-track{animation-play-state:paused}
.home-showcase--paused .home-showcase-track,.home-showcase-window:focus-within .home-showcase-track{animation:none;transform:none}
.home-showcase--paused .home-showcase-list[aria-hidden],.home-showcase-window:focus-within .home-showcase-list[aria-hidden]{display:none}
.home-showcase a:focus-visible,.home-showcase-window:focus-visible,.home-showcase-toggle:focus-visible,.home-showcase-all summary:focus-visible{outline:3px solid #ff8300;outline-offset:3px}
.home-showcase-all{margin-top:4px;font-size:.82rem;color:#aeb9d5}
.home-showcase-all summary{cursor:pointer;min-height:32px;padding:4px 0;font-weight:700;color:#aeb9d5}
.home-showcase-all summary:hover{color:#fff}
.home-showcase-all ul{display:flex;flex-wrap:wrap;gap:8px 20px;list-style:none;padding:10px 0;margin:0}
.home-showcase-all li{margin:0;overflow-wrap:anywhere;max-width:100%}
.home-showcase-all a{color:#c9d2e8}
@keyframes home-showcase-scroll{to{transform:translateX(-50%)}}
body.swd-home .home-real-cases{padding:72px 0;background:#f7f8fc;scroll-margin-top:90px}
.home-cases-heading{margin-bottom:32px;text-align:center}
.home-cases-heading>p:first-child{font-size:.85rem;font-weight:800;color:#ff8300;letter-spacing:.12em}
.home-cases-heading h2{font-size:clamp(1.5rem,4vw,2.1rem);line-height:1.45;color:#1a1a2e;margin:8px 0}
.home-cases-heading p{color:#5b6178;line-height:1.7}
.home-cases-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}
.home-case-card{display:flex;flex-direction:column;border:1px solid #e6e8f0;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(26,26,46,.06);min-width:0}
.home-case-card figure{margin:0;padding:0;background:#1a1a2e}
.home-case-card figure img{display:block;width:100%;height:300px;margin:0;object-fit:cover;object-position:center;border-radius:0;background:#1a1a2e}
.home-case-card figcaption{padding:10px 20px;font-size:.74rem;line-height:1.6;color:#aeb9d5;background:#1a1a2e}
.home-case-body{display:flex;flex-direction:column;flex:1;padding:24px 26px 26px}
.home-case-body h3{font-size:1.45rem;color:#1a1a2e;line-height:1.4;margin:6px 0 12px}
.home-case-body>p{line-height:1.85;color:#4a5068;margin:0 0 20px}
.home-case-body .home-case-type{font-size:.78rem;font-weight:700;color:#ff8300;margin-bottom:2px}
.home-case-primary{display:flex;align-items:center;justify-content:space-between;margin-top:auto;background:#ff8300;color:#fff!important;padding:13px 18px;border-radius:12px;font-weight:800;text-decoration:none;line-height:1.5;box-shadow:0 6px 16px rgba(255,131,0,.25)}
.home-case-primary:hover{background:#e67300}
.home-case-entry{display:inline-block;padding:14px 0 4px;color:#1a1a2e;text-underline-offset:4px;font-size:.88rem;font-weight:700}
.home-case-body .home-case-warning{font-size:.78rem;color:#8a6a2c;margin:2px 0 0}
.home-case-body a:focus-visible{outline:3px solid #ff8300;outline-offset:3px}
body.swd-home .home-cases-guide{text-align:center;padding:40px 20px;background:#f7f8fc}
.home-cases-guide h2{font-size:1.4rem;color:#1a1a2e;margin:0 0 12px}
.home-cases-guide p{color:#4a5068;line-height:1.8}
.home-cases-guide a{display:inline-block;color:#ff8300;font-weight:700;text-underline-offset:5px;padding:12px}
@media(max-width:700px){body.swd-home .home-showcase{margin:-34px 0 32px;padding:16px 12px 10px;border-radius:18px}.home-showcase-heading{gap:8px}.home-showcase-heading h2{font-size:1rem}.home-showcase-actions{width:100%;justify-content:space-between;gap:8px;font-size:.8rem}.home-showcase-toggle{padding:4px 10px}.home-showcase-list li{flex-basis:150px;width:150px}.home-showcase-list{gap:10px;padding-right:10px}.home-showcase-sign,.home-showcase-sign img{height:52px}.home-showcase-name{font-size:.76rem;padding:7px 10px 9px}.home-showcase-note{font-size:.74rem;margin-bottom:10px}body.swd-home .home-real-cases{padding:48px 0}.home-cases-grid{grid-template-columns:1fr;gap:22px}.home-case-card figure img{height:260px}.home-case-body{padding:20px}.home-case-body h3{font-size:1.3rem}}
@media(prefers-reduced-motion:reduce){.home-showcase--ready .home-showcase-track{animation:none;transform:none}.home-showcase--ready .home-showcase-list[aria-hidden]{display:none}.home-showcase-toggle{display:none}}
/* 11/10 桃爸：不要顯示「查看全部 N 家店家」；輪播卡本身就是連結，店家清單另有 ItemList 給搜尋引擎 */
body.swd-home .home-showcase-all{display:none}
/* 11/10 桃爸：不要暫停按鈕（滑鼠移上去、手指按住、鍵盤 Tab 進去仍會停；系統「減少動態效果」時不動） */
body.swd-home .home-showcase-toggle{display:none!important}
/* 11/10 桃爸：「就是他一直跑 反正人家也是看一下而已」⇒ 滑鼠移上去也不停 */
body.swd-home .home-showcase-window:hover .home-showcase-track{animation-play-state:running}
/* 11/10 桃爸：不要顯示「這些店家都在用上萬點」⇒ 畫面隱藏、保留給螢幕閱讀器與搜尋引擎 */
body.swd-home .home-showcase-heading h2{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.swd-home .home-showcase-heading{justify-content:flex-end}
body.swd-home .home-showcase{position:relative}
body.swd-home .home-showcase-heading{position:absolute;top:18px;right:22px}
body.swd-home .home-showcase-note{margin-top:0;padding-right:150px}
@media(max-width:700px){body.swd-home .home-showcase-heading{position:static}body.swd-home .home-showcase-note{padding-right:0}}

/* HOMEREV001：業態沿用深色玻璃與品牌橘。 */
body.swd-home .home-showcase { margin: 26px 0 0; }
.home-showcase-card:has(.home-showcase-type) .home-showcase-name { padding-bottom: 2px; }
.home-showcase-type { display: block; padding: 0 12px 11px; color: #ffb066; font-size: .75rem; line-height: 1.5; }
@media(max-width:700px) { .home-showcase-type { padding-inline: 10px; font-size: .7rem; } }

/* MS-004：新立牌照片保留全幅，案例只留一個實際點餐入口。 */
.home-case-card[data-case-id="5"] figure img { object-fit: contain; background: #f1f2f6; }
.home-case-primary { font-size: 15px; }

.home-showcase-swipe { display: none; }
@media(max-width:700px) { .home-showcase-swipe { display: block; margin: 0 0 7px; color: #c9b19b; font-size: 12px; text-align: right; } }
.home-case-card[data-case-id="36"] figure img { object-fit: contain; background: #f1f2f6; }

@media(max-width:700px) {
 .home-showcase-list li { flex-basis: 250px; width: 250px; }
 .home-showcase-name { font-size: 15px; }
 .home-showcase-type { font-size: 13px; }
}

/* MS-012：手機手動滑動吸附，停止時保留完整店卡，取消文字遮罩。 */
@media(max-width:700px) {
 .home-showcase-window { container-type: inline-size; scroll-snap-type: x mandatory; scroll-padding-left: 0; -webkit-mask-image: none; mask-image: none; }
 .home-showcase-list li { flex-basis: calc((100vw - 74px)*.78); width: calc((100vw - 74px)*.78); flex-basis: 78cqw; width: 78cqw; scroll-snap-align: start; scroll-snap-stop: always; }
 .home-showcase--ready .home-showcase-track { animation: none !important; transform: none !important; }
 .home-showcase--ready .home-showcase-list[aria-hidden] { display: none; }
 .home-showcase-name { white-space: normal; overflow: visible; text-overflow: clip; }
 .home-showcase-swipe { text-align: left; }
}
