這段要貼在哪裡:先在自己的工作資料夾建立同名相對位置,再複製內容。
:root {
font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", sans-serif;
color: #17324d;
background: #f5f8fb;
}
body { margin: 0; min-height: 100vh; line-height: 1.7; }
.site-header {
width: min(100% - 2rem, 920px);
margin: 1rem auto 0;
padding: .75rem 0;
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: center;
}
.site-header a { color: #155e75; }
.page-shell {
box-sizing: border-box;
width: min(100% - 2rem, 760px);
margin: 2rem auto;
padding: 2rem;
border: 1px solid #cbd8e4;
border-radius: 20px;
background: #fff;
}
.eyebrow { color: #176b87; font-weight: 800; }
.page-description { color: #52657d; }
.service-area { margin-top: 2rem; }
.service-list { }
.service-card {
width: 100%;
padding: 1.25rem;
border: 1px solid #b9cddd;
background: #f7fbfc;
}
.service-list {
display: grid;
gap: 1rem;
}
/* CHECKPOINT-1:請在 style.css 的「.service-card box-sizing」位置完成:把 .service-card 的 box-sizing 改成 border-box */
/* 本堂缺口:目前 .service-card 使用 content-box,請修正為 border-box。 */
a:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
@media (max-width: 560px) {
.site-header { align-items: flex-start; flex-direction: column; }
.page-shell { margin: 1rem auto; padding: 1rem; }
}