/* =========================================================
   CASE LAB · 功能網站實驗室
   ① 選案例 → ② 需求＋試玩 → ③ 用 AI 做 → ④ 驗收
   ========================================================= */
.cl-note { font-size: 14px !important; color: #63584d !important; line-height: 1.85; }

#s-functional .stage-intro { max-width: 880px; }
#s-functional h3 { line-height: 1.5; }
#s-functional .stage-interactive { padding: clamp(18px, 3vw, 36px); background: rgba(255,255,255,.88); border: 1px solid #eadbce; border-radius: 24px; box-shadow: 0 18px 50px -36px #704526; }
.case-lab button { cursor: pointer; font: inherit; }
.case-lab :focus-visible { outline: 3px solid #187f92; outline-offset: 3px; }
.case-lab pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* 步驟條（捲動時黏在頁內選單下方） */
.cl-steps-bar { position: sticky; top: calc(var(--hdr, 60px) + 46px); z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0 0 8px; padding: 6px; background: #faf7f2; border: 1px solid var(--d-line); border-radius: 14px; box-shadow: 0 8px 20px -16px rgba(56,40,29,.5); }
.cl-steps-bar a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--d-ink-3); font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background .2s, color .2s; }
.cl-steps-bar a b { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #efe5da; color: #8a6a52; font: 800 12px/1 var(--d-font-mono); }
.cl-steps-bar a:hover { color: var(--d-ink); background: #fff; }
.cl-steps-bar a.on { background: #38281d; color: #fff; }
.cl-steps-bar a.on b { background: var(--d-brand); color: #fff; }

/* 區塊與標題 */
.cl-block { padding: 34px 0 6px; scroll-margin-top: calc(var(--hdr, 60px) + 120px); }
.cl-block + .cl-block, #cl-panel .cl-block { border-top: 1px solid #eadbce; }
#cl-panel > .cl-block:first-child { margin-top: 34px; }
.case-lab .cl-h { display: flex; align-items: center; gap: 12px; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; margin: 0 0 20px; }
.cl-no { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--d-brand); color: #fff; font: 800 16px/1 var(--d-font-mono); }
.cl-no.ref { background: #8a857c; font-style: italic; }
.cl-label { margin: 0 0 10px !important; font-size: 14px !important; font-weight: 700; color: #9e5528 !important; letter-spacing: .04em; }
.cl-hint { margin: -8px 0 18px !important; }

/* ① 案例卡 */
.cl-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cl-cases button { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 14px 34px; text-align: left; border: 1.5px solid #e6d5c6; border-radius: 16px; background: #fff; color: var(--d-ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.cl-cases button:hover { border-color: #c9a184; transform: translateY(-2px); box-shadow: 0 10px 24px -18px #6f4021; }
.cl-cases .mk { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #f6eee5; color: #8a4b2c; font: 900 22px/1 var(--d-font-display); }
.cl-cases .tx { min-width: 0; }
.cl-cases .tx b { display: block; font-size: 16px; line-height: 1.4; }
.cl-cases .tx small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--d-ink-3); }
.cl-cases em { position: absolute; left: 14px; bottom: 10px; font-style: normal; font-size: 12px; font-weight: 700; color: #9e5528; }
.cl-cases button[aria-selected=true] { border-color: #38281d; background: #38281d; color: #fff; box-shadow: 0 12px 26px -16px #38281d; }
.cl-cases button[aria-selected=true] .mk { background: var(--d-brand); color: #fff; }
.cl-cases button[aria-selected=true] .tx small { color: #e7d9cc; }
.cl-cases button[aria-selected=true] em { color: #f2b28f; }
.cl-cases button[aria-selected=true]::after { content: "目前案例"; position: absolute; right: 12px; bottom: 10px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(255,255,255,.16); padding: 1px 8px; border-radius: 99px; }

/* ② 需求卡＋原型 */
.cl-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.cl-case-name { margin: 0 0 14px !important; font: 900 clamp(20px, 2.4vw, 26px)/1.4 var(--d-font-display); color: #38281d !important; }
.cl-spec { display: grid; gap: 8px; margin: 0 0 22px; }
.cl-spec > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 10px 14px; background: #faf6f1; border-radius: 10px; }
.cl-spec dt { font-size: 13px; font-weight: 800; color: #9e5528; line-height: 1.8; }
.cl-spec dd { margin: 0; font-size: 15px; line-height: 1.75; color: var(--d-ink-2); }
.cl-flow { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: flow; }
.cl-flow li { counter-increment: flow; display: flex; align-items: center; font-size: 14px; font-weight: 700; color: #49382d; }
.cl-flow li::before { content: counter(flow); display: grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: #f6eee5; color: #9e5528; font: 800 11px/1 var(--d-font-mono); }
.cl-flow li:not(:last-child)::after { content: "→"; margin: 0 10px; color: #c9a184; font-weight: 400; }
.cl-rule { border: 1px dashed #d8c2ae; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.cl-rule summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #49382d; }
.cl-rule p { margin: 10px 0 2px; font-size: 14px; line-height: 1.85; }
.cl-scope { margin: 0 !important; font-size: 13.5px !important; color: #63584d !important; padding-left: 12px; border-left: 3px solid #c9dccf; }

.cl-demo { border: 1px solid #dfc6b3; border-radius: 18px; background: #fff; box-shadow: 0 16px 36px -26px #6f4021; overflow: hidden; min-width: 0; }
.cl-demo-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #f6eee5; border-bottom: 1px solid #eadbce; }
.cl-demo-bar .dots { display: flex; gap: 5px; }
.cl-demo-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #dcc7b4; }
.cl-demo-bar b { font-size: 13px; letter-spacing: .08em; color: #8a4b2c; }
.cl-demo-body { padding: 18px 20px 6px; }
.cl-demo-foot { margin: 0 !important; padding: 10px 20px 14px; font-size: 12.5px !important; color: #8a857c !important; line-height: 1.6 !important; }

/* 原型元件 */
.cl-q { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.cl-q legend { float: none; width: auto; margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 700; color: #38281d; line-height: 1.5; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-chip { position: relative; margin: 0; cursor: pointer; }
.cl-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cl-chip span { display: inline-block; padding: 7px 14px; border: 1.5px solid #dccbbb; border-radius: 99px; background: #fff; font-size: 14px; font-weight: 600; color: #49382d; transition: background .15s, border-color .15s, color .15s; }
.cl-chip:hover span { border-color: #b7835e; }
.cl-chip input:checked + span { background: #38281d; border-color: #38281d; color: #fff; }
.cl-chip input:focus-visible + span { outline: 3px solid #187f92; outline-offset: 2px; }
.cl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 4px; }
.cl-demo-body button { min-height: 40px; padding: 8px 16px; border: 1px solid #b7835e; border-radius: 10px; background: #fff5eb; color: #49382d; font-size: 14px; font-weight: 700; }
.cl-demo-body button.primary { background: var(--d-brand); border-color: var(--d-brand); color: #fff; }
.cl-demo-body button.primary:hover { background: var(--d-brand-strong); }
.cl-demo-body button:disabled { opacity: .55; cursor: not-allowed; }
.cl-left { margin-left: auto; font-size: 13px; color: #8a857c; }
.cl-out { min-height: 8px; }
.cl-warn { margin: 12px 0 !important; padding: 10px 14px; border-radius: 10px; background: #fdeee6; color: #9e3a12 !important; font-size: 14px !important; font-weight: 700; }
.cl-result { margin: 14px 0; padding: 16px 18px; border-radius: 14px; background: #fff4e9; border-left: 4px solid #bd6831; animation: cl-reveal .25s ease-out; }
.cl-result.good { background: #eef6ef; border-color: var(--d-good); }
.cl-result.mid { background: #fff7e0; border-color: #c99a2e; }
.cl-result.warn { background: #fdeee6; border-color: var(--d-warn); }
.cl-result.stale > :not(.cl-stale) { opacity: .45; }
.cl-stale { margin: 0 0 8px !important; font-size: 13px !important; font-weight: 700; color: #9e3a12 !important; }
.cl-result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cl-result-head b { font-size: 18px; color: #38281d; }
.cl-result-head span { font: 700 14px/1 var(--d-font-mono); color: #63584d; }
.cl-result progress { width: 100%; height: 8px; margin: 10px 0 6px; accent-color: #bd6831; }
.cl-result p { margin: 8px 0 4px !important; font-size: 14px !important; }
.cl-result ul { margin: 0 0 8px; padding-left: 1.2em; font-size: 14px; line-height: 1.8; color: var(--d-ink-2); }
.cl-result small { display: block; font-size: 12px; color: #8a857c; }
.cl-result.scene { border-left: 0; color: #fff; }
.cl-result.scene.green { background: linear-gradient(140deg, #3e6b55, #26463a); }
.cl-result.scene.blue { background: linear-gradient(140deg, #3c5378, #23324d); }
.cl-result.scene p { color: #f1ece4 !important; font-size: 15px !important; line-height: 1.85; }
.cl-result.scene small { color: rgba(255,255,255,.7); }
.cl-result.scene button { margin: 4px 0 8px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.cl-kicker { display: block; font-size: 11.5px !important; font-weight: 800; letter-spacing: .1em; color: #9e5528; margin-bottom: 4px; }
.scene .cl-kicker { color: #f2d3bd !important; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.cl-tags span { padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.16); font-size: 13px; font-weight: 700; }

.cl-search { display: block; margin: 0 0 14px; font-size: 15px; font-weight: 700; color: #38281d; }
.cl-search input { display: block; width: 100%; min-height: 42px; margin-top: 6px; padding: 8px 12px; border: 1.5px solid #dccbbb; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.cl-count { margin: 0 0 8px !important; font-size: 13px !important; color: #8a857c !important; }
.cl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cl-card { display: flex; flex-direction: column; padding: 12px; border: 1px solid #e5d7cb; border-radius: 12px; background: #fff; }
.cl-card b { font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
.cl-card button { margin-top: auto; width: 100%; }
.cl-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; margin: -12px -12px 10px; border-radius: 11px 11px 0 0; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 700; letter-spacing: .2em; }
.cl-nolink { display: inline-block; align-self: flex-start; margin-bottom: 10px; padding: 2px 8px; border-radius: 6px; background: #f1ede8; color: #8a857c; font-size: 12px; }
.cl-empty { grid-column: 1 / -1; padding: 18px; text-align: center; border: 1px dashed #d8c2ae; border-radius: 12px; }
.cl-empty p { margin: 0 0 8px !important; }
.cl-detail { position: relative; margin: 12px 0; padding: 16px 18px; border-radius: 14px; background: #38281d; color: #fff; animation: cl-reveal .25s ease-out; }
.cl-detail:focus { outline: none; }
.cl-detail:focus-visible { outline: 3px solid #187f92; outline-offset: 3px; }
.cl-detail b { display: block; font-size: 17px; margin-bottom: 4px; padding-right: 80px; }
.cl-detail p { color: #efe6dc !important; font-size: 14.5px !important; margin: 4px 0 8px !important; }
.cl-detail small { display: block; color: #cdbfb2; font-size: 12.5px; }
.cl-detail .cl-kicker { color: #f2b28f; }
.cl-demo-body .cl-x { position: absolute; top: 10px; right: 10px; min-height: 32px; padding: 4px 10px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; font-size: 13px; }

/* ③ AI 工具 */
.cl-engines { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cl-engines button { display: flex; flex-direction: column; align-items: flex-start; padding: 9px 16px; border: 1.5px solid #e1d0c1; border-radius: 12px; background: #fff; color: #38281d; font-weight: 800; font-size: 15px; line-height: 1.3; }
.cl-engines button small { font-size: 11.5px; font-weight: 600; color: var(--d-ink-3); }
.cl-engines button:hover { border-color: #b7835e; }
.cl-engines button[aria-pressed=true] { background: #38281d; border-color: #38281d; color: #fff; }
.cl-engines button[aria-pressed=true] small { color: #f2b28f; }
.cl-engine { margin: 0 0 20px !important; padding: 12px 16px; background: #f7f2ed; border-left: 3px solid #c67840; border-radius: 0 10px 10px 0; font-size: 15px !important; }
.cl-build { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.cl-todo { list-style: none; margin: 0; padding: 0; counter-reset: todo; }
.cl-todo li { position: relative; counter-increment: todo; padding: 0 0 16px 40px; font-size: 15px; line-height: 1.8; color: var(--d-ink-2); }
.cl-todo li::before { content: counter(todo); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f6eee5; color: #9e5528; font: 800 13px/1 var(--d-font-mono); }
.cl-todo li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 30px; bottom: 4px; width: 1px; background: #e6d5c6; }
.cl-prompt { min-width: 0; }
.cl-prompt #cl-combo { color: #38281d; }
.case-lab .prompt-wrap { position: relative; margin: 0 0 14px; }
.case-lab .prompt-box { padding: 46px 18px 18px; font-size: 13.5px; line-height: 1.85; max-height: 420px; overflow: auto; }
.case-lab .copy-btn { top: 10px; right: 10px; padding: 6px 14px; font-size: 13px; background: var(--d-brand); border-color: var(--d-brand); }
.case-lab .copy-btn:hover { background: var(--d-brand-strong); }
.cl-more { border: 1px solid #e5d6c8; border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; background: #fff; }
.cl-more summary { cursor: pointer; font-weight: 700; font-size: 15px; line-height: 1.6; color: #38281d; }
.cl-more[open] summary { margin-bottom: 10px; }
.cl-more > p { font-size: 14px !important; margin: 0 0 10px !important; }

/* ④ 驗收清單 */
.cl-check { padding: 18px 20px; border-radius: 16px; background: #f3f8f4; border: 1px solid #d3e6d9; }
.cl-meter { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.cl-meter span { flex: 0 0 auto; font: 800 14px/1 var(--d-font-mono); color: var(--d-forest); }
.cl-meter progress { flex: 1; height: 8px; accent-color: var(--d-good); }
#cl-tests { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#cl-tests label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #dceadf; cursor: pointer; font-size: 15px; line-height: 1.7; color: #244b32; transition: background .15s; }
#cl-tests input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--d-good); cursor: pointer; }
#cl-tests label:has(input:checked) { background: #e3f1e7; }
#cl-tests label:has(input:checked) span { text-decoration: line-through; text-decoration-color: rgba(36,75,50,.35); }
.cl-done { margin: 14px 0 0 !important; padding: 10px 14px; border-radius: 10px; background: var(--d-forest); color: #fff !important; font-weight: 700; font-size: 15px !important; }
.cl-done a { color: #fff; text-decoration: underline; }

/* 補充 */
.cl-ref { padding-bottom: 0; }
.cl-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.cl-levels > div { padding: 14px 16px; border-radius: 12px; background: #faf6f1; border: 1px solid #eee3d8; }
.cl-levels > div > b { display: block; font-size: 15px; color: #38281d; }
.cl-levels .tag { display: inline-block; margin: 6px 0 4px; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.cl-levels .tag.ok { background: #e3efe6; color: #2b6a47; }
.cl-levels .tag.warn { background: #fde8dd; color: #a2401a; }
.cl-levels p { margin: 4px 0 0 !important; font-size: 14px !important; line-height: 1.75; }
.cl-ref .table-scroll { margin: 4px 0 8px; }

@keyframes cl-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cl-result, .cl-detail { animation: none; } .cl-cases button { transition: none; } }

@media (max-width: 960px) {
	.cl-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cl-grid, .cl-build { grid-template-columns: minmax(0, 1fr); }
	.cl-demo { position: static; }
	.cl-levels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.cl-steps-bar { position: static; gap: 2px; padding: 4px; }
	.cl-steps-bar a { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11.5px; text-align: center; }
	.cl-spec > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.cl-engines button { flex: 1 1 30%; }
	.cl-demo-body { padding: 14px 14px 4px; }
}
@media (max-width: 480px) {
	#s-functional .stage-interactive { padding: 14px; border-radius: 18px; }
	.cl-cases { gap: 8px; }
	.cl-cases button { flex-direction: column; gap: 8px; padding: 12px 12px 30px; }
	.cl-cases .mk { width: 36px; height: 36px; font-size: 18px; }
	.cl-cases button[aria-selected=true]::after { display: none; }
	.cl-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.case-lab .prompt-box { padding-left: 14px; padding-right: 14px; }
}

/* ChatGPT 教學：沿用工具分頁結構，明確隔開步驟與提示詞 */
.d5-page .gpt-guide > .tool-hero { margin-bottom: 18px; }
.d5-page .gpt-guide > .d5-ok { margin: 0 0 20px; }
.d5-page .gpt-guide > .cando { margin-bottom: 24px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.d5-page .gpt-guide > h4 { margin: 28px 0 16px; font-size: 18px; line-height: 1.6; }
.d5-page .gpt-guide > .steps { display: block; margin: 0 0 28px; padding: 0; list-style: none; }
.d5-page .gpt-guide > .steps > li { display: block; min-width: 0; padding: 0 0 22px 46px; }
.d5-page .gpt-guide > .steps > li:last-child { padding-bottom: 0; }
.d5-page .gpt-guide > .steps > li > b { display: block; margin: 0 0 6px; line-height: 1.65; }
.d5-page .gpt-guide > .steps > li > p { margin: 0; line-height: 1.9; overflow-wrap: anywhere; }
.d5-page .gpt-guide > .prompt-wrap { margin: 18px 0 24px; min-width: 0; }
.d5-page .gpt-guide .prompt-box { white-space: pre-wrap; overflow-wrap: anywhere; padding-top: 52px; line-height: 1.85; }
.d5-page .gpt-guide > .cl-note { margin: 18px 0; line-height: 1.85; }
@media(max-width:640px){.d5-page .gpt-guide > .cando{grid-template-columns:minmax(0,1fr)}.d5-page .gpt-guide > .steps > li{padding-left:42px}.d5-page .gpt-guide > h4{font-size:17px}}

.d5-view-choice{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:18px 0 24px;border-top:1px solid var(--d-line,#dfd1c4);margin:0 0 20px}.d5-view-choice>span{font-size:13px;color:#6d6056}.d5-view-choice>a{font-size:14px;text-decoration:none;line-height:1.6}.d5-view-choice .play{padding:10px 16px;border-radius:8px;background:#38281d;color:#fff}.d5-view-choice small{font-size:12px;color:#766c62}.d5-view-choice .play:hover{background:#6c4429}@media(max-width:600px){.d5-view-choice small{flex-basis:100%}}

/* 成品長相 */
.cl-kicker { margin: 0 0 6px !important; }
.cl-site-wrap { margin-top: 28px; }
.cl-site { --s1: #38281d; --s2: #f6efe6; --s3: #bd6831; border: 1px solid #d9c4b2; border-radius: 14px; overflow: hidden; background: var(--s2); box-shadow: 0 18px 40px -28px #4a2c14; }
.cs-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #eadfd3; }
.cs-dots { width: 44px; height: 10px; background: radial-gradient(circle, #c9b19c 4px, transparent 5px) 0 0 / 15px 10px repeat-x; }
.cs-url { flex: 1; padding: 3px 12px; border-radius: 99px; background: #fff; font: 12px/1.6 var(--d-font-mono); color: #8a857c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-nav { display: flex; align-items: center; gap: 22px; padding: 12px 22px; font-size: 13px; color: var(--s1); }
.cs-nav b { margin-right: auto; font: 900 20px/1 var(--d-font-display); }
.cs-hero { padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 40px); background: var(--s1); color: #fff; }
.cs-hero h6 { margin: 0 0 8px; font: 900 clamp(22px, 3.4vw, 34px)/1.35 var(--d-font-display); color: #fff; }
.cs-hero p { margin: 0 0 18px !important; font-size: 15px !important; color: rgba(255,255,255,.8) !important; }
.cs-cta { display: inline-block; padding: 9px 22px; border-radius: 99px; background: var(--s3); color: #fff; font-size: 14px; font-weight: 700; }
.cs-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 22px 22px; }
.cs-block { display: flex; align-items: center; gap: 10px; padding: 16px 14px; border-radius: 10px; background: #fff; border: 1px solid rgba(0,0,0,.08); font-size: 14px; color: var(--s1); }
.cs-block i { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--s3); color: #fff; font: 800 12px/1 var(--d-font-mono); font-style: normal; }
.cl-site-notes { margin: 14px 0 0; padding-left: 1.4em; font-size: 14.5px; line-height: 1.9; color: var(--d-ink-2); }
@media (max-width: 640px) { .cs-row { grid-template-columns: minmax(0, 1fr); } .cs-nav { gap: 12px; flex-wrap: wrap; } }

/* 範例館 */
.sc-h { margin: 34px 0 6px; font-size: 20px; color: #38281d; }
.sc-sub { margin: 0 0 16px !important; font-size: 14.5px !important; color: #63584d !important; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.sc-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px; border: 1.5px solid #e6d5c6; border-radius: 16px; background: #fff; color: var(--d-ink); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.sc-card:hover { transform: translateY(-3px); border-color: #bd6831; box-shadow: 0 14px 28px -20px #6f4021; }
.sc-card b { font-size: 17px; line-height: 1.45; color: #38281d; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-tool, .sc-price { padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.sc-tool { background: #38281d; color: #fff; }
.sc-price { background: #f6eee5; color: #9e5528; }
.sc-desc { flex: 1; font-size: 14px; line-height: 1.75; color: var(--d-ink-2); }
.sc-url { font: 600 12px/1.5 var(--d-font-mono); color: #187f92; overflow-wrap: anywhere; }
.sc-card.ext { background: #faf8f5; }
.case-lab a, .d5-page .stage-def a { color: #187f92; text-decoration: underline; text-underline-offset: 2px; }
