/* 共用測評介紹頁版型。沿用總覽頁的米白、金色與襯線標題。 */
:root {
  --ink: #26231d;
  --muted: #706b60;
  --paper: #fffdf8;
  --cream: #f7f2e8;
  --line: #e5d9c3;
  --gold: #d5a53b;
  --deep-gold: #785111;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Noto Sans TC", sans-serif; line-height: 1.75; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid #225c6b; outline-offset: 4px; }
.wrap, .site-header__inner { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-150%); }
.skip:focus { transform: none; background: var(--paper); }
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner, .site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-header__inner { justify-content: space-between; padding-block: 14px; }
.site-nav { font-size: 14px; }
.site-nav a, .brand { text-decoration: none; }
.site-nav .btn { display: none; }
.brand, h1, h2, h3 { font-family: "Noto Serif TC", serif; }
.brand { font-size: 24px; font-weight: 700; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.4; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(25px, 4vw, 34px); margin-bottom: 16px; }
h3 { margin-bottom: 10px; font-size: 20px; }
.hero { padding: 25px 0 50px; background: var(--cream); border-bottom: 1px solid var(--line); }
.crumb { margin-bottom: 32px; color: var(--muted); font-size: 13px; }
.eyebrow { margin-bottom: 8px; color: var(--deep-gold); font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.lead { max-width: 42em; margin: 14px 0 24px; font-size: 18px; }
.btn { display: inline-block; padding: 10px 23px; background: var(--gold); border-radius: 999px; font-weight: 700; text-decoration: none; }
.section { padding-block: 45px; }
.framework { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 36px; }
.dimensions { margin-top: 16px; }
.dimensions > div { display: grid; grid-template-columns: 5em 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--deep-gold); font-weight: 700; }
figure { padding: 16px; text-align: center; border: 1px solid var(--line); border-radius: 14px; }
figure img { display: block; width: min(100%, 419px); height: auto; margin-inline: auto; }
figcaption, .note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.applications { background: var(--cream); }
.cards, .facts { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards article, .facts > div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.cards article { border-top: 3px solid var(--gold); }
.facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 22px; }
footer { background: var(--ink); color: var(--paper); padding-block: 18px; }
footer .wrap { display: flex; justify-content: space-between; }
@media (max-width: 760px) {
  .wrap, .site-header__inner { width: calc(100% - 32px); }
  .framework, .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 圖片尚未上架時保留版面比例，讓首屏文案與未來圖片各有空間。 */
.hero .lead { margin-bottom: 0; }
.hero-image-slot {
  display: grid;
  place-content: center;
  gap: 4px;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  padding: 20px;
  border: 1px dashed #cdbb98;
  border-radius: 14px;
  background: #efe6d3;
  color: var(--muted);
  text-align: center;
}
.hero-image-slot strong { color: var(--deep-gold); }
.hero-image-slot span { font-size: 14px; }
.framework-copy { max-width: 52em; }
.framework-copy .dimensions { margin-bottom: 18px; }

/* 只調整首屏量表圖片的垂直位置，讓底邊對齊左側介紹。 */
.hero-image-slot--bottom { align-self: end; }

/* 較長的構面名稱共用較寬的標籤欄，讓說明文字保持對齊。 */
.hero--opass .framework-copy p + p { margin-top: 12px; }
.assessment-opass .dimensions { margin-bottom: 0; }
.assessment-opass .dimensions > div,
.dimensions--wide > div { grid-template-columns: minmax(7em, max-content) minmax(0, 1fr); gap: 10px; }

/* 施測區沿用上方的暖米色，滿版底色與內層內容寬度分開控制。 */
.measurement-band { background: var(--cream); }

/* 五張優勢卡片依可用寬度換列，保留內文的閱讀空間。 */
@media (min-width: 761px) {
  .cards--five { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
