/* FlowSaga 網站共用樣式（2026-10-01）。中英兩版、首頁與法遵頁都用這一份，不各存一份。
   配色跟品牌素材走：品牌藍 #0059BB（GPT圖片 審定清單 2026-09-23 實測）＋白底；插圖是平面藍白，放白底才清楚。 */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f2f6fc;
  --line: #d5e1f0;
  --text: #0b1b2e;
  --muted: #4a5b70;
  --brand: #0059bb;
  --brand-dark: #00468f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.75;
  font-size: 16px;
}
a { color: var(--brand); }
code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 780px; }

/* 頁首 */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.2rem; color: var(--brand); text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .92rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--brand); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }

/* 首頁橫幅：品牌藍底、白色長船、底下兩道波浪（呼應品牌首圖） */
.hero { position: relative; overflow: hidden; background: var(--brand); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; padding-top: 56px; padding-bottom: 96px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: 1.25; margin: 0 0 14px; font-weight: 900; }
/* 中文標題只在標點處換行，不把「命名」拆成兩行（擠不下時才允許任意處斷開） */
:lang(zh) .hero h1, :lang(zh) h2, :lang(zh) h3 { word-break: keep-all; overflow-wrap: anywhere; }
.hero p { color: #e3eeff; font-size: 1.06rem; margin: 0 0 10px; }
.hero .ship { width: 300px; justify-self: end; }
.hero .waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.status { display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .92rem; }
.status a { color: #fff; font-weight: 700; }
.cta { display: inline-block; margin-top: 14px; padding: 12px 26px; border-radius: 999px; background: #fff; color: var(--brand); font-weight: 900; font-size: 1.05rem; text-decoration: none; }
.cta:hover { background: #e3eeff; }
.cta-solid { background: var(--brand); color: #fff; }
.cta-solid:hover { background: var(--brand-dark); }
.cta-row { text-align: center; margin: 22px 0 0; }
.cta-band { background: var(--brand); color: #fff; text-align: center; }
section.cta-band h2 { color: #fff; }
.grid.reasons .card h3 { font-size: 1.15rem; }

section { padding: 40px 0; }
section + section { border-top: 1px solid var(--line); }
section h2 { font-size: 1.45rem; margin: 0 0 18px; font-weight: 900; color: var(--brand); }
.lead { margin: -6px 0 20px; max-width: 820px; color: var(--muted); font-size: 1.02rem; }
.split { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.split > img { width: 200px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--soft); border-radius: 12px; padding: 14px 16px 14px 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; display: grid; place-items: center; }

/* 功能：上排四張有插圖，下排四張精簡 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card img { display: block; width: 128px; height: 128px; margin: 0 auto 10px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.grid.compact { margin-top: 16px; }
.grid.compact .card { background: var(--soft); border-color: transparent; }
.curve { display: block; width: 100%; max-width: 560px; height: 46px; margin: 0 auto; opacity: .35; }

/* 方案卡（價格區由 scripts/build-site.mjs 從 src/lib/tiers.ts 產生） */
.pricing-head { display: flex; align-items: center; gap: 14px; }
.pricing-head img { width: 64px; height: 64px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.plan h3 { margin: 0; font-size: 1.15rem; color: var(--brand); }
.plan .price { font-size: 1.7rem; font-weight: 900; }
.plan .price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan .sub { color: var(--muted); font-size: .88rem; }
.plan ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.note { color: var(--muted); font-size: .92rem; }
.box { background: var(--soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 14px 18px; margin: 14px 0; }

/* 作品影片區（片單在 showcase.json，空的就整區不出現） */
.reel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.reel-item { margin: 0; background: #000; border-radius: 14px; overflow: hidden; }
.reel-item video { display: block; width: 100%; height: auto; max-height: 520px; background: #000; }
.reel-item figcaption { background: #fff; color: var(--text); font-weight: 700; font-size: .95rem; padding: 10px 14px; }

/* 常見問題 */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

/* 法遵頁 */
.doc { padding-top: 40px; padding-bottom: 56px; }
.doc-art { float: right; width: 120px; margin: 0 0 8px 16px; }
.doc h1 { font-weight: 900; font-size: 1.7rem; margin: 0 0 4px; color: var(--brand); }
.doc .date { color: var(--muted); font-size: .85rem; margin-bottom: 28px; }
.doc h2 { font-weight: 900; font-size: 1.1rem; margin: 30px 0 10px; color: var(--brand); }
.doc ul { color: var(--muted); }
.doc ul li b { color: var(--text); }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: .9rem; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); font-size: .8rem; }

/* 頁尾：每一頁都有商標聲明（2026-09-19 裁定） */
footer { border-top: 1px solid var(--line); background: var(--soft); padding: 20px 0 36px; color: var(--muted); font-size: .85rem; }
footer p { margin: 4px 0; }

@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 88px; }
  .hero .ship { width: 140px; justify-self: start; order: -1; }
  .split { grid-template-columns: 1fr; }
  .split > img { width: 140px; }
}
