/* 盒型選擇／選紙質／試算頁排版與「示意情境」角標。不改 main.css。2026-11-22；gridfix2 改 .eb-grid，不依賴 :has() */
.ai-badge{position:absolute;left:8px;top:8px;z-index:2;background:rgba(34,34,34,.72);color:#fff;
  font-size:11px;line-height:1;padding:4px 8px;border-radius:4px;letter-spacing:.06em;
  pointer-events:none;font-weight:600;white-space:nowrap}
.ai-frame{position:relative;display:block}
.eb-card{background:#fff;border:1px solid #ececec;border-radius:14px;overflow:hidden;
  display:block;margin-bottom:20px;text-decoration:none;color:#222;
  transition:box-shadow .2s,transform .2s}
.eb-card:hover,.eb-card:focus{box-shadow:0 8px 24px rgba(0,0,0,.08);transform:translateY(-2px);text-decoration:none;color:#222}
.eb-card .pic{background:#fff;position:relative;display:block;aspect-ratio:4/3}
.eb-card .pic img{width:100%;height:100%;object-fit:contain;background:#fff;display:block}
.eb-card .body{padding:14px 16px 18px}
.eb-card h2{font-size:20px;margin:0 0 6px;color:#ff8800}
.eb-card p{margin:0;color:#666;font-size:14px}
.eb-card .paper-note{font-size:13px;color:#555;margin-top:4px}
.eb-card .cta{display:block;margin-top:10px;background:#f5c400;color:#222;font-weight:700;font-size:14px;
  text-align:center;padding:8px 12px;border-radius:8px;text-decoration:none}
.eb-card:hover .cta{background:#e6b800;text-decoration:none;color:#222}
.eb-crumb{font-size:13px;color:#666;margin:18px 0 8px}
.eb-crumb a{color:#666}
.eb-lead{text-align:center;color:#666;max-width:720px;margin:0 auto 28px}
.paper-pills{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.pill-p{display:inline-block;border:1px solid #ddd;border-radius:999px;padding:6px 12px;font-size:13px;color:#333;text-decoration:none}
.pill-p.on{background:#f5c400;border-color:#f5c400;font-weight:700;color:#222}
.custom .carousel .item .ai-frame img,
.custom .carousel-inner>.item>img{width:100%;height:auto;max-height:none;object-fit:contain;background:#fff}
.custom .carousel .item .ai-frame{background:#fff}
.dim-guide-block figure .ai-frame{display:block}
.dim-guide-block figure .ai-frame img{width:100%;height:auto;border-radius:8px;background:#fff}
/* 卡片列排版：不依賴 :has()。PHP 在只放卡片的 .row 加上 .eb-grid */
.row.eb-grid{display:flex;flex-wrap:wrap}
.row.eb-grid:before,.row.eb-grid:after{content:none;display:none}
.row.eb-grid > :not([class*="col-"]){flex:0 0 100%;width:100%;max-width:100%;clear:both}
.row.eb-grid > [class*="col-"]{display:flex;float:none}
.row.eb-grid > [class*="col-"] > .eb-card{display:flex;flex-direction:column;width:100%}
.eb-card .body{flex:1;display:flex;flex-direction:column}
.eb-card .cta{margin-top:auto}
.eb-card p{margin-bottom:10px}
/* 無 flex 時的清浮動，避免第 4 張被擠到右側。列內應只有卡片欄（md 3 欄、sm 2 欄） */
@media (min-width:992px){
	.row.eb-grid > [class*="col-"]:nth-child(3n+1){clear:left}
}
@media (min-width:768px) and (max-width:991px){
	.row.eb-grid > [class*="col-"]:nth-child(2n+1){clear:left}
}
