/* 享玩車 最新消息卡片（首頁與列表共用）＋活動彈窗 */
.ejcn-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}
.ejcn-card{display:flex;flex-direction:column;background:#151517;border:1px solid #2a2a2d;border-radius:12px;overflow:hidden;text-decoration:none!important;color:#f2f2f2!important;transition:border-color .2s,transform .2s}
.ejcn-card:hover{border-color:#FFC400;transform:translateY(-2px)}
.ejcn-card figure{margin:0;aspect-ratio:16/10;background:#1d1d20;overflow:hidden;position:relative}
.ejcn-card figure img{width:100%!important;height:100%!important;object-fit:cover;display:block;max-width:none}
.ejcn-ph{position:absolute;inset:0;display:grid;place-items:center;font-weight:900;font-size:34px;letter-spacing:.1em;color:#FFC400;background:linear-gradient(135deg,#1a1a1c,#0b0b0c)}
.ejcn-card .b{padding:14px 16px 18px}
.ejcn-card time{display:block;font-size:13px;color:#FFC400;font-weight:700;margin:0 0 6px}
.ejcn-card h3{margin:0;font-size:18px;line-height:1.45;color:#fff}
.ejcn-card p{margin:8px 0 0;color:#b4b4b9;font-size:14px;line-height:1.6}
.ejcn-home .more-link{display:inline-flex;align-items:center;gap:6px;margin-top:22px;color:#FFC400!important;font-weight:700;padding:10px 0}
@media (max-width:900px){.ejcn-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.ejcn-grid{grid-template-columns:1fr}.ejcn-home .ejcn-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin-right:-20px;padding-right:20px;gap:12px}.ejcn-home .ejcn-card{flex:0 0 82%;scroll-snap-align:start}}

/* 活動彈窗：桌機置中、手機下方橫條 */
.ejcp[hidden]{display:none!important}
.ejcp{position:fixed;inset:0;z-index:99990;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.72);font-family:"Noto Sans TC","Noto Sans JP","Microsoft JhengHei","Hiragino Sans",system-ui,sans-serif;animation:ejcp-in .25s ease}
.ejcp-box{position:relative;width:min(520px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#151517;color:#f2f2f2;border:1px solid #FFC400;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.ejcp-img{display:block;width:100%;aspect-ratio:16/9;height:auto;max-height:38vh;object-fit:cover}
.ejcp-b{padding:20px 24px 24px}
.ejcp-b h2{margin:0 0 8px;font-size:22px;line-height:1.4;color:#fff;font-weight:900}
.ejcp-b p{margin:0 0 16px;color:#d6d6d6;font-size:15px;line-height:1.7;white-space:pre-line}
.ejcp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 24px;border-radius:8px;background:#FFC400;color:#111!important;font-weight:800;text-decoration:none!important}
.ejcp-x{position:absolute;top:10px;right:10px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(0,0,0,.65);color:#fff;font-size:24px;line-height:40px;cursor:pointer;z-index:2}
.ejcp-x:hover{background:#000}
.ejcp-later{display:block;margin-top:12px;background:none;border:0;color:#9a9aa0;font-size:13px;cursor:pointer;padding:6px 0;text-decoration:underline}
@keyframes ejcp-in{from{opacity:0}to{opacity:1}}
@keyframes ejcp-up{from{transform:translateY(100%)}to{transform:none}}
@media (max-width:767px){
	.ejcp{inset:auto 0 0 0;padding:0;background:none;display:block;animation:ejcp-up .3s ease}
	.ejcp-box{width:100%;max-height:none;border-radius:12px 12px 0 0;border-width:1px 0 0;display:flex;align-items:center;gap:10px;padding:10px 46px 10px 12px;overflow:visible}
	.ejcp-img{width:52px;height:52px;flex:none;border-radius:8px;max-height:none;aspect-ratio:1}
	.ejcp-b{padding:0;flex:1;min-width:0;display:flex;align-items:center;gap:10px}
	.ejcp-b h2{font-size:15px;margin:0;flex:1;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
	.ejcp-b p,.ejcp-later{display:none}
	.ejcp-btn{min-height:40px;padding:6px 14px;font-size:14px;flex:none;white-space:nowrap}
	.ejcp-x{top:50%;right:4px;margin-top:-20px;background:none;font-size:22px}
	body.ejcp-on{padding-bottom:76px}
}
