/* =========================================================
   web16.html「從架構圖到精稿：用 Figma Agent 做出網站設計提案
   ——以島嶼新浪潮為例」專用樣式
   進階網頁設計課程．第一頁採用完整 Figma Agent 實戰設計系統的單元頁
   色彩風格：以海島新浪潮示範案例的兩張參考服裝照為本──
   鮮明海洋藍綠（turquoise）＋鮮明日落橘（vivid orange）
   ========================================================= */

/* ---------- 頂圖 Page Title：鮮明藍＋橘幾何漂浮裝飾 ---------- */
.page-title.pt-web16 {
  padding: 116px 0 34px;
  background-color: #07262c;
  position: relative;
  overflow: hidden;
}
.page-title.pt-web16::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 14% 20%, rgba(14,165,184,.55), transparent 46%),
    radial-gradient(circle at 86% 78%, rgba(232,98,42,.4), transparent 50%),
    linear-gradient(155deg, rgba(7,38,44,.95), rgba(6,20,22,.92) 65%);
}
.page-title.pt-web16::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  width: 460px; height: 460px; border-radius: 50%;
  top: -170px; right: -100px;
  background: radial-gradient(circle, rgba(232,98,42,.4), transparent 70%);
  filter: blur(64px);
  animation: pt16Glow 17s ease-in-out infinite;
}
@keyframes pt16Glow {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-26px, 28px) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .page-title.pt-web16::after { animation: none; } }

.page-title.pt-web16 .pt16-shapes { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.page-title.pt-web16 .pt16-shape { position: absolute; }
/* 捲動離開頂圖後暫停動畫：避免瀏覽器合成層在捲動時殘留頂圖底色的殘影色塊 */
.page-title.pt-web16.pt16-offscreen .pt16-shape,
.page-title.pt-web16.pt16-offscreen::after { animation-play-state: paused; }
.page-title.pt-web16 .pt16-a {
  width: 230px; height: 230px; top: -60px; left: 4%;
  background: linear-gradient(135deg, rgba(14,165,184,.5), rgba(14,165,184,.04) 70%);
  border-radius: 40% 60% 55% 45% / 46% 40% 60% 54%;
  animation: pt16FloatA 15s ease-in-out infinite;
}
.page-title.pt-web16 .pt16-b {
  width: 150px; height: 150px; bottom: -46px; left: 22%;
  background: linear-gradient(150deg, rgba(232,98,42,.5), rgba(232,98,42,.04) 72%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: pt16FloatB 19s ease-in-out infinite -4s;
}
.page-title.pt-web16 .pt16-c {
  width: 118px; height: 118px; top: 20%; right: 9%;
  border: 2px solid rgba(255,255,255,.38);
  border-radius: 50%;
  animation: pt16SpinC 26s linear infinite;
}
.page-title.pt-web16 .pt16-d {
  width: 64px; height: 64px; bottom: 22%; right: 22%;
  background: rgba(232,98,42,.55);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: pt16FloatD 12s ease-in-out infinite -2s;
}
@keyframes pt16FloatA { 0%,100%{transform:translate(0,0) rotate(-12deg);} 50%{transform:translate(16px,20px) rotate(-4deg);} }
@keyframes pt16FloatB { 0%,100%{transform:translate(0,0) rotate(16deg) scale(1);} 50%{transform:translate(-18px,-14px) rotate(24deg) scale(1.06);} }
@keyframes pt16SpinC { 0%{transform:rotate(0deg) scale(1);} 50%{transform:rotate(180deg) scale(1.1);} 100%{transform:rotate(360deg) scale(1);} }
@keyframes pt16FloatD { 0%,100%{transform:translate(0,0) rotate(24deg);} 50%{transform:translate(12px,-16px) rotate(40deg);} }
@media (prefers-reduced-motion: reduce) { .page-title.pt-web16 .pt16-shape { animation: none; } }
@media (max-width: 700px) { .page-title.pt-web16 .pt16-b, .page-title.pt-web16 .pt16-d { display: none; } }

.page-title.pt-web16 .container { position: relative; z-index: 1; }
.page-title.pt-web16 .container.position-relative { background:none; border-radius:0; backdrop-filter:none; -webkit-backdrop-filter:none; padding:0; box-shadow:none; }
.page-title.pt-web16 h1 {
  font-family: "Noto Serif TC", serif; font-weight: 900; letter-spacing: .01em; color: #fff;
  position: relative; z-index: 1;
}
.page-title.pt-web16 .breadcrumbs { position: relative; z-index: 1; }
.page-title.pt-web16 .breadcrumbs ol { color: rgba(255,255,255,.55); font-family: "Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif; }
.page-title.pt-web16 .breadcrumbs ol li a { color: rgba(255,255,255,.72); font-weight: 500; }
.page-title.pt-web16 .breadcrumbs ol li a:hover { color: #fff; }
.page-title.pt-web16 .breadcrumbs ol li.current {
  color: #fff; background: #14b8ce; font-weight: 700; margin-left: 12px;
  padding: 3px 12px; border-radius: 999px; font-size: 13.5px;
  box-shadow: 0 6px 16px -8px rgba(14,165,184,.7);
}
.page-title.pt-web16 .breadcrumbs ol li+li::before { display: none; }

/* =========================================================
   .web16-page 主要內容區塊：色彩 Token 全部改為
   鮮明海洋藍綠 + 鮮明日落橘（取自案例兩張參考照片）
   ========================================================= */
.web16-page {
  --paper:#FAFDFE; --surface:#FFFFFF; --surface-2:#EFF8F9; --surface-3:#E1F2F4;
  --ink:#0B2A30; --ink-soft:#3D6169; --ink-faint:#7DA0A6;
  --line:#D8EFF2; --line-strong:#AEDEE5;
  --accent:#E8622A; --accent-soft:#FFF1E4; --accent-strong:#B84418;
  --teal:#0EA5B8; --teal-soft:#E4F7F9; --teal-strong:#066B7A;
  --amber:#D89A2E; --amber-soft:#FCF2DE;
  --font-display:'Instrument Serif',Georgia,serif;
  --font-sans:'Inter Tight',system-ui,-apple-system,sans-serif;
  --font-mono:'Overpass Mono','SFMono-Regular',Consolas,monospace;
  --font-tc-serif:'Noto Serif TC',var(--font-display);
  --font-tc-sans:'Noto Sans TC',var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-tc-sans);
  font-size: 16px;
  line-height: 1.65;
  padding: clamp(30px,4.5vw,54px) 0 clamp(50px,7vw,90px);
  -webkit-font-smoothing: antialiased;
}
.web16-page * { box-sizing: border-box; }
.web16-page img { max-width: 100%; display: block; }

/* 找到「灰底色塊」的真正原因：共用主題 main.css 有一條全站通用規則
   section, .section { background-color: var(--background-color); padding: 20px 0; overflow: clip; }
   （跟稍早 caption 反白是同一類問題）——只要是 <section> 標籤就會被套上
   跟本頁背景色不同的灰綠色（#F1F5F4）。這裡把背景／overflow 覆寫回來；
   內距不在這裡動，交給各元件自己的 padding 規則（.w16-level 已經自己設定過）。 */
.web16-page section { background: transparent; overflow: visible; }
.web16-page h1, .web16-page h2, .web16-page h3, .web16-page h4 { font-family: var(--font-tc-serif); font-weight: 700; color: var(--ink); margin: 0; letter-spacing: 0; }
.web16-page a { color: var(--accent-strong); }
.web16-page p { margin: 0 0 1em; color: var(--ink-soft); max-width: 38em; }
.web16-page ul, .web16-page ol { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-soft); }
.web16-page li { margin-bottom: .45em; }
.web16-page code, .web16-page .mono { font-family: var(--font-mono); }
.web16-page strong { color: var(--ink); font-weight: 700; }

.w16-shell { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px,4.5vw,52px); }

/* ---------- 開場 masthead ---------- */
.w16-masthead { border-bottom: 2px solid var(--ink); padding-bottom: 26px; margin-bottom: 8px; }
.w16-breadcrumb { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.w16-breadcrumb .chip { border: 1px solid var(--line-strong); border-radius: 3px; padding: 2px 7px; color: var(--ink-soft); }
h1.w16-title { font-size: clamp(28px,4.4vw,48px); line-height: 1.14; font-weight: 900; }
.w16-title em { font-style: normal; color: var(--accent-strong); }
.w16-bilingual { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); margin-top: 10px; }
.w16-dek { margin-top: 18px; font-size: 14.5px; line-height: 1.75; max-width: none; color: var(--ink-soft); }
/* 示範指令的聊天泡泡獨立放在雙欄文字外面，避免它跟文字排版糾在一起 */
.w16-dek-demo { margin-top: 14px; }

/* ---------- 長篇段落：字級縮小＋雙欄排版 ----------
   改用「手動把文字分成兩段、CSS Grid 各佔一欄」，取代原本的
   column-count 自動分欄。因為 column-count 是瀏覽器自己算要在哪裡斷開、
   兩欄要留多高，遇到內嵌的行內元素（例如示範指令的聊天泡泡）或文字長度
   估算不準時，很容易讓其中一欄提早結束、下面留下一大塊空白，且無法手動
   調整。現在兩欄都是各自獨立、內容多長就多長的區塊，不會再有那種
   算不準留白的問題。 */
.w16-2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }
.w16-2col p { margin: 0; color: inherit; }
@media (max-width: 760px) { .w16-2col { grid-template-columns: 1fr; row-gap: 14px; } }
.w16-chatbar { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line-strong); border-radius: 20px; padding: 5px 14px 5px 12px; background: var(--surface); color: var(--ink); }
.w16-chatbar::before { content: '🌊'; font-size: 12px; }
.w16-cursor { display: inline-block; width: 7px; height: 1em; background: var(--accent); vertical-align: -2px; animation: w16blink 1.1s steps(1) infinite; margin-left: 2px; }
@keyframes w16blink { 50% { opacity: 0; } }
.w16-meta-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.w16-meta-row b { color: var(--ink-soft); font-weight: 500; }
.w16-cta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.w16-cta { font-family: var(--font-mono); font-size: 11.5px; padding: 8px 14px; border-radius: 6px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.w16-cta:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.w16-cta.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.w16-cta.primary:hover { opacity: .85; color: var(--paper); }

/* ---------- 對話卡（沿用示範案例的聊天視窗樣式） ---------- */
.w16-chatshot { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface); box-shadow: 0 10px 26px -18px rgba(6,30,34,.28); }
.w16-chat-bar { display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--surface-3); font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.w16-chat-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.w16-chat-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.w16-msg { max-width: 88%; font-size: 13px; padding: 9px 12px; border-radius: 10px; line-height: 1.55; }
.w16-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 3px; }
.w16-msg.agent { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 3px; }
.w16-msg .step { font-family: var(--font-mono); font-size: 10px; color: var(--teal-strong); display: block; margin-bottom: 4px; }
.w16-chatshot-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.w16-chatshot-row .w16-chatshot { flex: 1 1 300px; min-width: 260px; }
.w16-chat-cap { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); padding: 0 16px 14px; }

/* ---------- 真實畫面截圖（Figma Agent 產出）---------- */
.w16-shot { margin-top: 22px; }
.w16-shot figcaption { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-top: 9px; line-height: 1.6; }
.w16-shot figcaption b { color: var(--teal-strong); }
.w16-shot a.glightbox { display: block; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line-strong); background: var(--surface); box-shadow: 0 16px 32px -22px rgba(6,30,34,.35); position: relative; }
.w16-shot a.glightbox::after {
  content: '🔍 點擊放大'; position: absolute; right: 10px; bottom: 10px;
  font-family: var(--font-mono); font-size: 10px; color: #fff; background: rgba(11,42,48,.72);
  padding: 4px 9px; border-radius: 20px; opacity: 0; transition: opacity .2s;
}
.w16-shot a.glightbox:hover::after { opacity: 1; }
.w16-shot img { width: 100%; height: auto; }

.w16-shot-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 22px; }
.w16-shot-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.w16-shot-grid .w16-shot { margin-top: 0; }
@media (max-width: 780px) { .w16-shot-grid, .w16-shot-grid.cols-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .w16-shot-grid, .w16-shot-grid.cols-3 { grid-template-columns: 1fr; } }

/* 高瘦全頁截圖（線框稿／精稿／行動版），縮圖裁切顯示上半部，點擊看完整 */
.w16-shot.tall a.glightbox { aspect-ratio: 4/3; }
.w16-shot.tall a.glightbox img { height: 100%; object-fit: cover; object-position: top; }
.w16-shot.wide a.glightbox img { width: 100%; height: auto; object-fit: cover; }

/* ---------- 提案書／簡報 縮圖畫廊 ---------- */
.w16-deck { margin-top: 20px; }
.w16-deck-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-top: 14px; }
.w16-deck-grid a.glightbox { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.w16-deck-grid.ratio-a4 a.glightbox { aspect-ratio: 0.707; }
.w16-deck-grid.ratio-169 a.glightbox { aspect-ratio: 16/9; }
.w16-deck-grid a.glightbox img { width: 100%; height: 100%; object-fit: cover; }
.w16-deck-grid a.glightbox .pg { position: absolute; left: 4px; bottom: 4px; font-family: var(--font-mono); font-size: 9.5px; color: #fff; background: rgba(11,42,48,.68); padding: 1px 6px; border-radius: 10px; }
.w16-deck-grid a.glightbox:hover { border-color: var(--accent-strong); }
@media (max-width: 900px) { .w16-deck-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 620px) { .w16-deck-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 460px) { .w16-deck-grid { grid-template-columns: repeat(2,1fr); } }
.w16-deck-cap { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 10px; }

/* ---------- 精稿示意瀏覽器框（保留示範案例原本的示意 mockup 說明）---------- */
.w16-hifi-wrap { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 20px; align-items: flex-start; }
.w16-hifi-cap { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 10px; max-width: 320px; line-height: 1.6; }
.w16-hifi-cap b { color: var(--accent-strong); }
.w16-frame-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; align-items: flex-start; }
.w16-frame { border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); overflow: hidden; flex: 0 0 auto; }
.w16-frame.browser { width: 220px; }
.w16-frame .fbar { background: var(--surface-3); padding: 5px 8px; font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-faint); text-align: center; }
.w16-frame .fbody { padding: 8px; min-height: 150px; display: flex; flex-direction: column; gap: 5px; }
.w16-frame.wire .fbody .blk { background: var(--surface-3); border-radius: 3px; }
.w16-flow-arrow { align-self: center; font-family: var(--font-mono); color: var(--ink-faint); font-size: 16px; margin-top: 70px; }
@media (max-width: 760px) { .w16-flow-arrow { display: none; } }

/* ---------- data table ---------- */
.w16-data-table-wrap { margin-top: 20px; overflow-x: auto; }
.w16-data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.w16-data-table caption { text-align: left; font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; color: var(--ink-faint); background: transparent; padding: 0 0 8px; caption-side: top; }
.w16-data-table th, .w16-data-table td { border: 1px solid var(--line-strong); padding: 10px 12px; text-align: left; vertical-align: top; }
.w16-data-table thead th { background: var(--ink); color: var(--paper); font-weight: 700; font-size: 12px; }
.w16-data-table tbody tr:nth-child(even) { background: var(--surface-2); }
.w16-data-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--font-mono); }

/* ---------- pipeline chips ---------- */
.w16-pipeline-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.w16-pipeline-chip { font-size: 12px; font-weight: 700; padding: 9px 13px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); white-space: nowrap; }
.w16-pipeline-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.w16-pipeline-arrow { color: var(--ink-faint); font-size: 14px; }

/* ---------- mood board ---------- */
.w16-mood-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 18px; }
@media (max-width: 620px) { .w16-mood-grid { grid-template-columns: repeat(2,1fr); } }
.w16-mood-tile { aspect-ratio: 4/3; border-radius: 10px; display: flex; align-items: flex-end; padding: 9px; position: relative; overflow: hidden; }
.w16-mood-tile span { position: relative; font-size: 10.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.45); line-height: 1.3; }
.w16-mood-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 40%,rgba(0,0,0,.35)); }
.w16-mood-tile b { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .01em; }
.w16-mood-tile small { display: block; font-size: 8.6px; font-weight: 500; opacity: .9; margin-top: 3px; line-height: 1.35; }
.w16-type-specimen { margin-top: 14px; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.w16-type-row { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.w16-type-row:last-child { border-bottom: none; }
.w16-ts-tag { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); display: block; margin-bottom: 7px; }
.w16-ts-serif { font-family: var(--font-tc-serif); font-weight: 900; font-size: 25px; color: var(--ink); margin: 0; line-height: 1.35; }
.w16-ts-sans { font-family: var(--font-tc-sans); font-weight: 400; font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.65; }
@media (max-width: 620px) { .w16-ts-serif { font-size: 20px; } }
.w16-mood-label { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 10px; }

.w16-swatch-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.w16-swatch { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; background: var(--surface); flex: 0 0 auto; }
.w16-swatch .sw-color { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; border: 1px solid rgba(0,0,0,.08); }
.w16-swatch .sw-meta { font-size: 11px; line-height: 1.4; }
.w16-swatch .sw-meta b { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink); }
.w16-swatch .sw-meta span { color: var(--ink-faint); font-family: var(--font-mono); font-size: 9.5px; }

/* ---------- auto layout demo ---------- */
.w16-al-demo { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.w16-al-box { flex: 1 1 230px; border: 1.5px dashed var(--line-strong); border-radius: 10px; padding: 16px; background: var(--surface); }
.w16-al-box .al-label { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); margin-bottom: 10px; }
.w16-al-box .al-fill { background: var(--accent); color: #fff; border-radius: 6px; padding: 11px; text-align: center; font-size: 12px; font-weight: 700; }
.w16-al-box .al-hug { display: inline-block; background: var(--teal); color: #fff; border-radius: 20px; padding: 9px 18px; font-size: 12px; font-weight: 700; }
.w16-al-box p { font-size: 11.5px; margin: 10px 0 0; color: var(--ink-faint); }

.w16-concept { margin-top: 44px; padding: 0; }
.w16-concept h2 { margin-bottom: 6px; }

/* 一般提示／對照小卡片（頁面中多處沿用的通用樣式，例如「銜接下一步」「怎麼選」） */
.w16-compare-box { margin-top: 28px; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 22px 24px; background: var(--surface); }
.w16-compare-box .cb-flag { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 10px; }

/* 核心概念區專用：說明＋Q&A 合併成同一張卡片，避免看起來像好幾塊重複的區塊 */
.w16-concept-box { margin-top: 26px; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 24px 26px 26px; background: var(--surface); }
.w16-lead { font-size: 14.5px; line-height: 1.75; color: var(--ink); background: var(--accent-soft); border-radius: 10px; padding: 13px 16px; margin: 0 0 18px; max-width: none; }
.w16-lead strong { color: var(--accent-strong); }
.w16-concept-box .desc { margin: 0; }
.w16-concept-divider { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.w16-concept-divider .cb-flag { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 10px; }

.w16-persona-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 32px; }
@media (max-width: 820px) { .w16-persona-grid { grid-template-columns: 1fr; } }
.w16-persona-card { border: 1px solid var(--line-strong); border-radius: 12px; padding: 18px; background: var(--surface); }
.w16-persona-card h3 { font-size: 17px; font-style: italic; }
.w16-persona-card p { font-size: 12.5px; margin-top: 8px; margin-bottom: 0; }

.w16-roadmap { display: none; margin-top: 28px; margin-bottom: 28px; }
@media (max-width: 920px) { .w16-roadmap { display: block; } }
.w16-roadmap summary { cursor: pointer; font-family: var(--font-mono); font-size: 12.5px; padding: 11px 15px; background: var(--surface-2); border-radius: 6px; color: var(--ink-soft); }
.w16-roadmap ul { list-style: none; padding: 10px 4px 0 4px; margin: 0; }
.w16-roadmap a { color: var(--ink-soft); text-decoration: none; font-size: 13px; display: block; padding: 5px 0; }

.w16-layout { display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 48px; align-items: start; margin-top: 20px; }
@media (max-width: 920px) { .w16-layout { grid-template-columns: minmax(0,1fr); } .w16-rail-desktop { display: none; } }
.w16-rail-desktop { position: sticky; top: 20px; }
.w16-rail-desktop .rail-label { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-bottom: 10px; }
.w16-rail-desktop a { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 12.5px; color: var(--ink-soft); text-decoration: none; border-left: 2px solid var(--line); padding-left: 12px; }
.w16-rail-desktop a .lv { font-family: var(--font-mono); color: var(--ink-faint); font-size: 10.5px; }
.w16-rail-desktop a:hover { color: var(--accent-strong); border-left-color: var(--accent-strong); }
.w16-rail-desktop .rail-extra { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

.web16-page article section { margin-top: 8px; scroll-margin-top: 100px; }
.w16-level { padding: 44px 0 46px; border-bottom: 1px solid var(--line); }
.w16-level:first-of-type { padding-top: 10px; }
.w16-level-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.w16-level-num { font-family: var(--font-mono); font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 700; background: var(--accent-soft); color: var(--accent-strong); flex-shrink: 0; }
.w16-level-head h2 { font-size: clamp(22px,2.8vw,30px); }
.w16-level-tagline { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; max-width: none; }
.w16-level .desc { font-size: 15px; margin-top: 18px; max-width: 54em; }
.w16-level .desc.more { margin-top: -6px; }

.w16-section-label { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 26px; margin-bottom: 12px; display: block; }

.w16-steps { margin-top: 8px; padding-left: 0; list-style: none; counter-reset: w16step; max-width: 60em; }
.w16-steps li { position: relative; padding-left: 38px; margin-bottom: 15px; font-size: 14.5px; color: var(--ink-soft); counter-increment: w16step; }
.w16-steps li:last-child { margin-bottom: 0; }
.w16-steps li::before { content: counter(w16step); position: absolute; left: 0; top: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-family: var(--font-mono); font-weight: 700; font-size: 11.5px; display: flex; align-items: center; justify-content: center; }
.w16-steps li strong { color: var(--ink); }

.w16-pitfall { font-size: 13.5px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 12px 16px; margin-top: 18px; color: var(--ink-soft); max-width: 58em; }
.w16-pitfall b { color: var(--accent-strong); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 4px; }
.w16-scenario { font-size: 13.5px; background: var(--surface-2); border-radius: 8px; padding: 13px 16px; margin-top: 16px; color: var(--ink-soft); max-width: 58em; }
.w16-scenario b { color: var(--ink); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 4px; }
.w16-link-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.w16-link-row a { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 12px; white-space: nowrap; }
.w16-link-row a:hover { color: var(--accent-strong); border-color: var(--accent-strong); }
@media (max-width: 480px) { .w16-link-row a { white-space: normal; max-width: 100%; } }

.w16-demo { border: 1.5px solid var(--ink); border-radius: 12px; margin-top: 22px; overflow: hidden; background: var(--surface); max-width: 760px; }
.w16-demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--surface-3); font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); flex-wrap: wrap; }
.w16-demo-live { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-strong); }
.w16-demo-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-strong); display: inline-block; }
.w16-demo-body { padding: 22px; }
.w16-demo-note { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 11px; max-width: 700px; line-height: 1.6; }
.w16-ctrl-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.w16-ctrl-btn { font-family: var(--font-mono); font-size: 11px; padding: 6px 12px; border-radius: 20px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink-soft); cursor: pointer; }
.w16-ctrl-btn[aria-pressed="true"] { border-color: var(--accent-strong); color: var(--accent-strong); font-weight: 700; background: var(--accent-soft); }

.w16-scenario-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; margin-top: 24px; }
.w16-scard { border: 1px solid var(--line-strong); border-radius: 10px; padding: 18px 20px; background: var(--surface); display: flex; flex-direction: column; }
.w16-scard .sicon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 14px; margin-bottom: 12px; background: var(--teal-soft); color: var(--teal-strong); }
.w16-scard h4 { font-size: 16px; font-style: italic; }
.w16-scard p { font-size: 13px; margin-top: 8px; margin-bottom: 0; }

.w16-practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
@media (max-width: 720px) { .w16-practice-grid { grid-template-columns: 1fr; } }
.w16-do-card, .w16-dont-card { border-radius: 10px; padding: 18px 20px; }
.w16-do-card { background: var(--teal-soft); border: 1px solid var(--teal); }
.w16-dont-card { background: var(--accent-soft); border: 1px solid var(--accent); }
.w16-do-card .lbl, .w16-dont-card .lbl { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.w16-do-card .lbl { color: var(--teal-strong); }
.w16-dont-card .lbl { color: var(--accent-strong); }
.w16-do-card ul, .w16-dont-card ul { margin-top: 10px; padding-left: 1.1em; }
.w16-do-card li, .w16-dont-card li { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }

.w16-exercise-tier { border: 1.5px solid var(--ink); border-radius: 10px; padding: 22px clamp(18px,3vw,28px); margin-top: 16px; background: var(--surface); }
.w16-exercise-tier h4 { font-size: 16px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.w16-exercise-tier p { margin-top: 8px; margin-bottom: 0; font-size: 14px; }

.w16-foot { border-top: 2px solid var(--ink); padding-top: 26px; margin-top: 60px; }
.w16-foot .src-list { font-size: 12.5px; columns: 2; column-gap: 30px; color: var(--ink-soft); }
.w16-foot .src-list li { margin-bottom: 7px; word-break: break-word; }
.w16-foot .fine { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-top: 18px; }
@media (max-width: 640px) { .w16-foot .src-list { columns: 1; } }

/* ---------- 進場動畫（呼應 aos 效果，簡單淡入上移）---------- */
@media (prefers-reduced-motion: no-preference) {
  .w16-fade-up { animation: w16FadeUp .6s ease-out both; }
  @keyframes w16FadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}

/* =========================================================
   互動與動態強化（回應意見 6）：
   - 卡片／圖片 hover 微互動
   - 左側目錄捲動高亮（scrollspy）
   - Lv.7 Figma Make 情境切換的交叉淡出/淡入
   （原本加了捲動進場淡入效果，會在部分瀏覽器出現灰色色塊殘影、
   也會讓內容在捲動時忽然留白，已移除；動態改用下面這些不影響
   內容預設可視性的 hover／切換效果）
   ========================================================= */

/* 卡片類：加上輕微上浮 + 陰影 + 邊框上色的 hover 回饋 */
.w16-persona-card,
.w16-scard,
.w16-do-card,
.w16-dont-card,
.w16-exercise-tier,
.w16-swatch,
.w16-mood-tile,
.w16-pipeline-chip {
  transition: transform .35s cubic-bezier(.16,.8,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.w16-persona-card:hover,
.w16-scard:hover,
.w16-do-card:hover,
.w16-dont-card:hover,
.w16-exercise-tier:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px -22px rgba(6,30,34,.4);
  border-color: var(--accent-strong);
}
.w16-swatch:hover { transform: translateY(-3px); box-shadow: 0 14px 24px -18px rgba(6,30,34,.35); }
.w16-mood-tile:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 16px 28px -18px rgba(6,30,34,.45); }
.w16-pipeline-chip:hover { transform: translateY(-2px); border-color: var(--accent-strong); }

/* 精稿／截圖：圖片本身跟著淡出遮罩一起輕微放大 */
.w16-shot a.glightbox img,
.w16-deck-grid a.glightbox img { transition: transform .5s cubic-bezier(.16,.8,.3,1); }
.w16-shot a.glightbox:hover img,
.w16-deck-grid a.glightbox:hover img { transform: scale(1.045); }

/* 操作按鈕：按下與 hover 都有回饋 */
.w16-ctrl-btn { transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease; }
.w16-ctrl-btn:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.w16-ctrl-btn:active { transform: scale(.94); }
.w16-cta { transition: transform .25s ease, box-shadow .25s ease; }
.w16-cta:hover { transform: translateY(-2px); }

/* 左側目錄：捲動時高亮目前所在的 Lv. 區塊 */
.w16-rail-desktop a { transition: color .25s ease, border-color .25s ease, background .25s ease, padding-left .25s ease; }
.w16-rail-desktop a.is-active {
  color: var(--accent-strong);
  border-left-color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  padding-left: 16px;
}

/* Lv.7 Figma Make 對話框：切換情境時的交叉淡出/淡入 */
.w16-chat-body { transition: opacity .18s ease, transform .18s ease; }
.w16-chat-body.is-switching { opacity: 0; transform: translateY(4px); }
@media (prefers-reduced-motion: no-preference) {
  .w16-msg.w16-msg-in { animation: w16MsgIn .38s cubic-bezier(.16,.8,.3,1) both; }
  @keyframes w16MsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
#w16makeTitle, #w16makeNote { transition: opacity .18s ease; }
