:root { --bg:#fff; --card:#fff; --ink:#000; --muted:#000;
        --accent:#E0507A; }
* { box-sizing: border-box; margin: 0; }
/* 間距節奏尺（8px 基準）：元素內 8/16、區塊內 24/40、區塊間 64/96 */
body { font: 16px/1.5 "Noto Sans TC", system-ui, sans-serif; background: var(--bg); color: var(--ink);
       max-width: 860px; margin: 0 auto; padding: 40px 24px 96px;
       text-autospace: normal; /* 中西文間距交給瀏覽器，新文案不再手動空格 */ }
button { font: inherit; cursor: pointer; min-height: 40px; padding: 7px 18px; border-radius: 12px;
         border: 1px solid #E5E5E5; background: var(--card); color: var(--ink);
         transition: transform 100ms ease-out, border-color 200ms ease, background 200ms ease; }
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.5; cursor: default; }
button.go { background: var(--accent); color: #fff; border: none; font-weight: 700;
            border-radius: 999px; padding: 9px 24px; }
header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
         gap: 8px 16px; padding-bottom: 16px; margin-bottom: 64px; border-bottom: 1px solid #E5E5E5; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink);
         display: inline-flex; align-items: center; gap: 8px; }
.brand .mark { width: 24px; height: 24px; flex: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
nav a.on { color: var(--accent); font-weight: 700; }
.crumbs { font-size: 12px; color: var(--muted); margin: -40px 0 40px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* nav 連結：桌機短名（日本），手機漢堡展開時全名（日本姓名產生器） */
nav a .f { display: none; }
/* 漢堡選單：純 CSS checkbox 切換（本站 CSP 禁 inline JS，且首頁無 app.js，純 CSS 三頁通吃） */
.navtoggle { position: absolute; opacity: 0; width: 0; height: 0; } /* 視覺隱藏但保留鍵盤可操作 */
.navbtn { display: none; } /* 桌機不顯示，維持橫排 nav */
@media (max-width: 560px) {
  /* 滿版主題色列：撐破 body 左右 24px、頂 40px padding；漢堡右、品牌置中；釘頂讓選單開著時不分家 */
  /* 蘋果風軟化：底部下圓弧＋柔和擴散陰影 */
  header { position: sticky; top: 0; z-index: 30; justify-content: center; background: var(--accent);
           margin: -40px -24px 64px; padding: 14px 56px; border-bottom: none;
           box-shadow: 0 4px 16px rgba(224, 80, 122, .22); }
  .brand { color: #fff; }
  .navbtn { display: inline-flex; align-items: center; justify-content: center;
            position: absolute; right: 8px; top: 4px;  /* 對齊品牌列；nav 展開 header 變高也不飄 */
            min-width: 44px; min-height: 44px; color: #fff; border-radius: 12px; cursor: pointer; }
  .navtoggle:focus-visible + .navbtn { outline: 2px solid #fff; outline-offset: 2px; }
  /* 選單浮層下拉：白底面板，覆蓋內容不推擠，釘在色列正下方 */
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         flex-direction: column; gap: 0; background: var(--card);
         padding: 4px 24px 8px; box-shadow: 0 8px 16px rgba(0, 0, 0, .1); border-radius: 0 0 16px 16px; }
  .navtoggle:checked ~ #nav { display: flex; }
  /* 白底深字，淺灰分隔線；當前地區用主題色（觸控目標 ≥44px） */
  #nav a { padding: 12px 4px; font-size: 15px; color: var(--ink); text-align: center; border-top: 1px solid #E5E5E5; }
  #nav a:first-of-type { border-top: none; }
  #nav a.on { color: var(--accent); font-weight: 700; }
  #nav a .s { display: none; }        /* 手機隱短名 */
  #nav a .f { display: inline; }      /* 手機顯全名 */
}
h1 { font-size: 2.3rem; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 28px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.intro { font-size: 15px; color: var(--muted); line-height: 1.9; max-width: 52em; }
/* 多段內文（如關於作者）：intro 當容器，段落沿用 intro 字級，段間留白；連結主色無底線 */
.intro p { margin: 0 0 16px; }
.intro p:last-child { margin-bottom: 0; }
.intro a { color: var(--accent); text-decoration: none; }
.intro a:hover { text-decoration: underline; }
/* 首頁 landing：整段置中單欄（h1 到 CTA 一條軸線） */
.landing { text-align: center; padding: 40px 0 96px; }
.landing h1 { font-size: 2.6rem; margin-bottom: 24px; }
.landing .intro { margin: 0 auto; }
.cta { margin: 56px 0 0; }
/* 首頁 FAQ：編號條列式手風琴（預設收合，CSP 安全無 JS）；序號用 CSS counter 自動生，附 FAQPage schema */
.faq { counter-reset: faq; max-width: 52em; margin: 0 auto; padding: 24px 0 0; text-align: left; }
.faq h2 { text-align: center; font-size: 1.6rem; font-weight: 700; margin: 0 0 32px; }
.faq details { counter-increment: faq; padding: 4px 0; }
/* 整列可點：序號（主色）＋問題＋展開符號一行 */
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start;
               gap: 16px; padding: 16px 4px; font-size: 16px; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(faq, decimal-leading-zero); flex: none; width: 1.6em;
                       color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums;
                       line-height: 1.7; }
.faq summary h3 { flex: 1; margin: 0; font-size: inherit; font-weight: inherit; line-height: 1.7; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 24px;
                      line-height: 1.15; color: var(--accent); transition: transform 200ms ease; }
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
/* 答案對齊序號右側縮排（序號 1.6em＋gap 16px） */
.faq details p { margin: 0; padding: 0 4px 22px; padding-left: calc(1.6em + 16px + 4px);
                 color: var(--muted); line-height: 2; font-size: 15px;
                 text-align: left; overflow-wrap: break-word; }
a.go { display: inline-block; text-decoration: none; background: var(--accent); color: #fff;
       font-weight: 700; border-radius: 999px; padding: 12px 36px;
       transition: opacity 200ms ease; }
a.go:hover { opacity: 0.85; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; }
.filters label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
select { font: inherit; min-height: 40px; padding: 6px 12px; border-radius: 12px;
         border: 1px solid #E5E5E5; background: var(--card); color: var(--ink);
         transition: border-color 200ms ease; }
select:hover, button:hover { border-color: var(--accent); }
#list { margin-top: 40px; }
.row { background: var(--card); border: 1px solid #E5E5E5; border-radius: 16px;
       padding: 18px 22px; margin-bottom: 16px; position: relative; }
.row .copy { position: absolute; top: 14px; right: 14px; min-height: 0; padding: 8px;
             border: none; background: none; color: var(--ink); line-height: 0; }
.row .copy:hover { color: var(--accent); }
.row b { font-size: 20px; }
.row rt { font-size: 11px; color: var(--muted); font-weight: 400; padding-bottom: 3px; }
.row .m { display: block; font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 10px; }
.row .t { display: block; font-size: 12px; color: var(--accent); line-height: 1.8; margin-top: 4px; }
/* 回到頂部：固定浮動圓鈕（右下角，捲動時常駐），桌機與手機皆顯示，純錨點（無 JS，CSP 安全） */
.totop { display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 40;
         align-items: center; justify-content: center; width: 44px; height: 44px;
         border-radius: 999px; color: var(--muted); background: var(--card);
         border: 1px solid #E5E5E5; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.totop:hover { border-color: var(--accent); color: var(--accent); }
footer { margin-top: 64px; padding-top: 16px; font-size: 12px; line-height: 1.9; }
#sources { margin-top: 32px; }   /* 資料來源緊接名字卡片，不要離太遠 */
#sources:empty { margin-top: 0; }
footer b { display: block; margin-bottom: 4px; }
footer.center { text-align: center; margin-top: 80px; padding-top: 24px; }
footer a, footer span { display: block; color: var(--ink); }
/* 站尾連結：關於我們／專欄文章（部落格版位）；橫排、淡色 */
.footlinks { justify-content: center; flex-wrap: wrap; text-align: center; }
.footlinks a { display: inline-block; margin: 0 10px; font-size: 12px; color: var(--muted); text-decoration: none; }
.footlinks a:hover { color: var(--accent); }
.copy { color: var(--muted); margin-bottom: 8px; }
/* 部落格文章列表：卡片 */
.posts { max-width: 52em; margin: 32px 0 0; }
.post { margin-bottom: 18px; }
.post a { display: block; background: var(--card); border: 1px solid #E5E5E5; border-radius: 18px;
          padding: 24px 26px; text-decoration: none; color: var(--ink);
          transition: border-color 200ms ease, box-shadow 200ms ease; cursor: pointer; }
.post a:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(224, 80, 122, .1); }
.post h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.45; margin: 0; }
.post-meta { font-size: 12px; color: var(--muted); margin: 6px 0 0; letter-spacing: .03em; }
.post-ex { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 10px 0 0; }

/* ── 文章頁：極簡單欄，寬度與全站一致（沿用 body 860px），留白為主 ── */
.prose { max-width: none; font-size: 17px; }
/* hero 標題區：預設扁平雜誌報頭（無圖不套漸層卡，免廉價感）；未來放首圖 webp 才切換成模糊背景卡 */
.hero { position: relative; margin: 24px 0 48px; padding: 0; }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-weight: 700; color: var(--ink); margin: 0;
           font-size: 2.5rem; line-height: 1.45; letter-spacing: -0.01em; }
.hero .post-meta { color: #6b6b6b; margin: 18px 0 0; font-size: 13px; letter-spacing: .04em; }
/* 有首圖（.hero-bg）才變成漸層／模糊背景卡、白字疊暗層 */
.hero:has(.hero-bg) { overflow: hidden; border-radius: 24px; padding: 56px 40px;
        background: linear-gradient(135deg, #E0507A, #8f2f4d);
        isolation: isolate; }  /* 關進自身堆疊脈絡，內部 z-index 不蓋 sticky 漢堡列（z:30） */
.hero-bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px);
           object-fit: cover; filter: blur(18px) brightness(.82); z-index: 0; }
.hero:has(.hero-bg)::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .32); z-index: 1; }
.hero:has(.hero-bg) h1 { color: #fff; }
.hero:has(.hero-bg) .post-meta { color: rgba(255, 255, 255, .82); }
/* 內文節奏：H2 去西式左色條，改中文友善——粗襯線＋大留白＋短強調底線 */
.prose h2 { font-weight: 700; font-size: 1.55rem; line-height: 1.5;
            margin: 64px 0 20px; letter-spacing: .02em; }
.prose h2::after { content: ""; display: block; width: 2.5em; height: 3px; margin-top: 14px;
            background: var(--accent); border-radius: 2px; }
.prose p { margin: 0 0 18px; line-height: 2; color: #1a1a1a; }
.prose ul { margin: 0 0 18px; padding-left: 1.5em; line-height: 2; color: #1a1a1a; }
.prose li { margin-bottom: 6px; }
.prose em { font-style: italic; color: var(--muted); }
.prose strong { font-weight: 700; }
/* 重點字：螢光筆式底線標記（比整塊底色精緻） */
.prose mark { background: linear-gradient(transparent 55%, rgba(224, 80, 122, .32) 0); color: inherit; padding: 0 .08em; }
/* 內文連結：主色、無底線，hover 才底線（取代預設藍色底線） */
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
/* 作者列：文章最底 */
.byline { margin-top: 56px; padding-top: 20px; border-top: 1px solid #E5E5E5; font-size: 13px; color: var(--muted); }
.byline .author { font-style: normal; }  /* address 預設斜體，還原 */
