/* FSL 官網草稿樣式：純 CSS、無外部字型、手機優先 */
:root {
  --bg: #fff8ec;          /* 奶油底，接近主視覺背景 */
  --surface: #ffffff;
  --text: #3b2a1f;        /* 深咖啡字，對 --bg 對比約 13:1 */
  --muted: #6b5443;       /* 次要文字，對 --bg 對比約 6.8:1 */
  --brand: #7a4a22;       /* 便便帽咖啡色，連結與按鈕 */
  --brand-ink: #ffffff;
  --butter: #fbe7a1;      /* 小光：奶油黃 */
  --mint: #cfeae3;        /* 星星寶：薄荷藍 */
  --peach: #fbd6bd;       /* 小燈籠：蜜桃橘 */
  --line: #ead9c2;
  --focus: #1f5fad;
  --radius: 18px;
  --wrap: 1080px;
  --font: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 4.5vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 跳到主內容 */
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* 頁首 */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 248, 236, .95); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; margin-right: auto; }
.logo small { font-weight: 500; color: var(--muted); font-size: .8rem; margin-left: 6px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: 8px 10px; color: var(--text); text-decoration: none; border-radius: 8px; }
.site-nav a:hover { background: var(--butter); }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.lang-switch { display: inline-block; padding: 6px 12px; border: 2px solid var(--brand); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.lang-switch:hover { background: var(--brand); color: var(--brand-ink); }

/* 共用區塊 */
section { padding: 48px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.15rem; color: var(--muted); }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 700; min-height: 44px; }
.btn:hover { background: #5e3817; }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-ghost:hover { background: var(--brand); color: var(--brand-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.tbd { color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); }

/* 首頁主視覺 */
.hero { padding: 28px 0 40px; }
.hero .wrap { display: grid; gap: 24px; align-items: center; }
.hero img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(122, 74, 34, .12); }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr 1.15fr; gap: 40px; }
  .hero { padding: 56px 0 64px; }
}

/* 角色卡 */
.card-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card-img { height: 260px; padding: 14px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-img.cover { padding: 0; }
.card-img.cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; } /* 整張卡可點 */
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-body h3 a:focus-visible { outline: none; }
.card:hover { box-shadow: 0 8px 22px rgba(122, 74, 34, .14); }
.tag { display: inline-block; font-size: .85rem; padding: 2px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); align-self: flex-start; }
.c-xiaoguang { background: var(--butter); }
.c-xingxingbao { background: var(--mint); }
.c-xiaodenglong { background: var(--peach); }

/* 短片占位 */
.shorts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); max-width: 720px; }
.short-ph { aspect-ratio: 9 / 16; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg); display: grid; place-items: center; text-align: center; padding: 12px; color: var(--muted); font-size: .95rem; }

/* 社群連結 */
.social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-block; padding: 10px 18px; border: 2px solid var(--brand); border-radius: 999px; text-decoration: none; font-weight: 600; min-height: 44px; }
.social a:hover { background: var(--brand); color: var(--brand-ink); }

/* 角色頁 */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 0 0; font-size: .9rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.char-hero { padding: 24px 0 40px; }
.char-hero .wrap { display: grid; gap: 24px; align-items: start; }
.char-figure { margin: 0; border-radius: var(--radius); padding: 18px; }
.char-figure img { margin: 0 auto; max-height: 520px; width: auto; }
.char-figure figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 10px; }
@media (min-width: 860px) { .char-hero .wrap { grid-template-columns: 1fr 1fr; gap: 48px; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose h2 { margin-top: 1.4em; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.others { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* 頁尾 */
.site-footer { padding: 32px 0 40px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; }
