/* =====================================================
   帕森斯 Parsons — 全站設計系統（2026-10-16 改版）
   單一樣式表，不依賴 Bootstrap 與模板外掛
   ===================================================== */

/* ---------- 設計變數 ---------- */
:root {
  --ink: #1A202C;          /* 取自 Logo 字色 */
  --ink-2: #2D3446;
  --text: #4A5263;
  --muted: #6B7385;
  --line: #E5E3EE;
  --bg: #FFFFFF;
  --bg-soft: #F6F5FA;
  --bg-tint: #EFEBFF;
  --brand: #4B2FD6;        /* 品牌紫，取自社群分享圖 */
  --brand-ink: #3A22B3;
  --brand-soft: #E9E4FF;
  --accent: #F2A33A;       /* 暖色重點（少量使用） */
  --line-green: #06C755;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(26, 32, 44, .04), 0 8px 24px rgba(26, 32, 44, .06);
  --shadow-lg: 0 20px 50px rgba(26, 32, 44, .12);
  --wrap: 1180px;
  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.8; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: 0; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), #fff); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.center .eyebrow::before { display: none; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text); max-width: 46em; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.section-head--row h2 { margin: 0; }
.link-more { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-more svg { width: 16px; height: 16px; transition: transform .2s; }
.link-more:hover svg { transform: translateX(3px); }

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.2; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #05a948; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-tint); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- 頁首 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand img { width: 132px; height: auto; }
.brand-zh { font-weight: 700; font-size: 17px; letter-spacing: .12em; padding-left: 12px; border-left: 1px solid var(--line); color: var(--ink); }
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav a, .nav-sub-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; color: var(--ink); font-weight: 600; font-size: 16px; border-radius: 10px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav-sub-toggle:hover { background: var(--bg-soft); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav-sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.nav .sub { position: absolute; top: calc(100% + 6px); left: -8px; min-width: 250px; list-style: none; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav .sub a { display: block; padding: 10px 12px; font-weight: 500; font-size: 15.5px; }
.nav li:hover > .sub, .nav li:focus-within > .sub, .nav li.open > .sub { opacity: 1; visibility: visible; transform: none; }
.nav li:hover > .nav-sub-toggle svg, .nav li.open > .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-cta { flex-shrink: 0; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 手機選單（≤1080px：全螢幕面板，由右側滑入） ---------- */
.mnav, .mbar { display: none; }
@media (max-width: 1080px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mnav { display: block; position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
  .mnav-scrim { position: absolute; inset: 0; background: rgba(17, 21, 30, .5); opacity: 0; transition: opacity .28s ease; }
  .mnav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 440px); height: 100vh; height: 100dvh; background: #fff; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .28s cubic-bezier(.16, 1, .3, 1); box-shadow: -20px 0 50px rgba(17, 21, 30, .18); }
  .mnav-open .mnav { visibility: visible; pointer-events: auto; }
  .mnav-open .mnav-scrim { opacity: 1; }
  .mnav-open .mnav-panel { transform: none; }
  html.mnav-open, html.mnav-open body { overflow: hidden; }

  .mnav-top { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 18px 0 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
  .mnav-top .brand img { width: 112px; }
  .mnav-close { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
  .mnav-close svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
  .mnav-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 28px; -webkit-overflow-scrolling: touch; }

  .mnav-main { list-style: none; margin: 0 0 6px; padding: 0; }
  .mnav-main li + li { border-top: 1px solid var(--line); }
  .mnav-row { display: flex; align-items: center; justify-content: space-between; min-height: 58px; font-size: 19px; font-weight: 700; color: var(--ink); }
  .mnav-row svg { width: 18px; height: 18px; color: var(--muted); }
  .mnav-row[aria-current] { color: var(--brand); }
  .mnav-row[aria-current] svg { color: var(--brand); }

  .mnav-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin: 22px 0 10px; }
  .mnav-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mnav-tile { display: flex; flex-direction: column; gap: 10px; min-height: 92px; padding: 14px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15.5px; line-height: 1.4; }
  .mnav-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--brand); display: grid; place-items: center; }
  .mnav-ic svg { width: 19px; height: 19px; }
  .mnav-tile[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
  .mnav-tile[aria-current] .mnav-ic { background: rgba(255, 255, 255, .18); color: #fff; }
  .mnav-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 15.5px; }
  .mnav-more svg { width: 16px; height: 16px; }
  .mnav-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .mnav-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 15px; }
  .mnav-chips a[aria-current] { border-color: var(--brand); color: var(--brand); }
  .mnav-about { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mnav-about a { display: grid; place-items: center; min-height: 46px; border-radius: 12px; background: var(--bg-soft); color: var(--ink); font-size: 15px; font-weight: 600; text-align: center; }
  .mnav-about a[aria-current] { background: var(--bg-tint); color: var(--brand); }
  .mnav-cta { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 24px rgba(17, 21, 30, .06); flex-shrink: 0; }
  .mnav-cta .btn { width: 100%; min-height: 52px; }

  /* 底部固定列：取代浮動 LINE 鈕 */
  body .line-float { display: none; }
  body .to-top { display: none; } /* 返回頂部僅桌機 */
  .mbar { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(17, 21, 30, .06); }
  .mbar .btn { width: 100%; min-height: 48px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  html.mnav-open .mbar { visibility: hidden; }
}
@media (max-width: 340px) {
  .mnav-about { grid-template-columns: 1fr; }
  .mnav-tile { font-size: 14.5px; min-height: 86px; }
}

/* ---------- 首頁主視覺 ---------- */
.hero { padding: 72px 0 88px; background: radial-gradient(900px 420px at 85% 10%, var(--bg-tint), transparent 70%), linear-gradient(180deg, #fff, var(--bg-soft)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; font-weight: 500; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.hero-media { position: relative; }
.hero-badge { position: absolute; left: -22px; bottom: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; gap: 12px; align-items: center; max-width: 260px; }
.hero-badge svg { width: 34px; height: 34px; color: var(--brand); flex-shrink: 0; }
.hero-badge strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.4; }
.hero-badge span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }

/* ---------- 內頁主視覺 ---------- */
.page-hero { padding: 56px 0 60px; background: radial-gradient(700px 300px at 90% 0%, var(--bg-tint), transparent 70%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 14px; max-width: 20em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero--split .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #B8BCC8; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row svg { width: 16px; height: 16px; }

/* ---------- 版面格線 ---------- */
.grid > *, .split > *, .hero-grid > *, .article-grid > *, .page-hero--split .wrap > *, .footer-grid > *, .plans > *, .cta-band > * { min-width: 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--wide { grid-template-columns: 1.15fr .85fr; }

/* ---------- 卡片 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: flex; flex-direction: column; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; height: 100%; }
.card-link:hover { border-color: #CFC7F7; box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.card-link .link-more { margin-top: auto; padding-top: 14px; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.icon-badge svg { width: 26px; height: 26px; }
.num-badge { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--brand); background: var(--bg-tint); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px; }
.pillar-card p { font-size: 16px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 14px; opacity: .9; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { font-size: 15.5px; margin: 0; }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.checks { list-style: none; padding: 0; margin: 0 0 8px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* 黑底承諾區 */
.panel-ink { background: var(--ink); color: #C9CEDA; border-radius: var(--radius-lg); padding: 56px; }
.panel-ink h2, .panel-ink h3, .panel-ink strong { color: #fff; }
.panel-ink a { color: #C9BFFF; text-decoration: underline; text-underline-offset: 3px; }
.panel-ink .checks li::before { background-color: var(--accent); }

/* ---------- 照片佔位（之後放入 /assets/img/photos/<slot>.jpg 自動替換） ---------- */
.ph { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: linear-gradient(135deg, #ECEAF4 0%, #F6F5FA 100%); overflow: hidden; }
.ph::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(75, 47, 214, .035) 0 14px, transparent 14px 28px); }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--tall { aspect-ratio: 4 / 5; }
.photo { width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- 文章卡、案例卡 ---------- */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; height: 100%; transition: box-shadow .2s, transform .2s, border-color .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #CFC7F7; color: inherit; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag { font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.post-card h3 { font-size: 18px; line-height: 1.5; margin-bottom: 10px; }
.post-card p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.post-card .link-more { margin-top: auto; font-size: 15px; }
.case-card .tag { color: #B76E0D; }

/* ---------- 文章內文 ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.cover { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 36px; }
.prose { font-size: 17.5px; line-height: 1.95; color: var(--text); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 2.2em 0 .7em; scroll-margin-top: 100px; padding-top: .2em; }
.prose h3 { font-size: 20px; margin: 1.8em 0 .6em; }
.prose p { margin: 0 0 1.15em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.3em; }
.prose li { margin-bottom: .55em; }
.prose p.lead { font-size: 19px; color: var(--ink-2); background: var(--bg-tint); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 1.6em; }
.prose ul.checklist { list-style: none; padding: 0; }
.prose ul.checklist li { position: relative; padding-left: 32px; }
.prose ul.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.prose ol.steps { display: block; list-style: none; padding: 0; counter-reset: s; }
.prose ol.steps li { position: relative; padding: 0 0 0 46px; margin-bottom: 1em; background: none; border: 0; counter-increment: s; }
.prose ol.steps li::before { content: counter(s); position: absolute; left: 0; top: .15em; width: 30px; height: 30px; border-radius: 9px; background: var(--bg-tint); color: var(--brand); font-weight: 800; font-size: 15px; line-height: 30px; text-align: center; margin: 0; opacity: 1; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--accent); background: #FFF8EC; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }
.prose blockquote p:last-child { margin: 0; }
.prose .callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 1.6em 0; }
.prose .callout p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table, .data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.7; min-width: 560px; }
.prose th, .data-table th { background: var(--ink); color: #fff; text-align: left; padding: 12px 16px; font-weight: 600; }
.prose td, .data-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) td, .data-table tbody tr:nth-child(even) td { background: var(--bg-soft); }

.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.toc p { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; font-size: 16px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand); }

.side { position: sticky; top: 100px; display: grid; gap: 20px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-box h3 { font-size: 17px; margin-bottom: 12px; }
.side-box p { font-size: 15px; }
.side-box--brand { background: var(--ink); border-color: var(--ink); color: #C9CEDA; }
.side-box--brand h3 { color: #fff; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li + li { border-top: 1px dashed var(--line); }
.side-list a { display: block; padding: 10px 0; color: var(--ink); font-size: 15px; line-height: 1.55; }
.side-list a:hover { color: var(--brand); }

.inline-cta { margin: 48px 0 8px; padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand) 0%, #6B4CF0 100%); color: #EAE5FF; }
.inline-cta h3 { color: #fff; font-size: 22px; }
.inline-cta a:not(.btn) { color: #fff; text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.tags a { display: inline-block; font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.55; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B2FD6' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; font-size: 16px; line-height: 1.85; }
.faq .answer a { text-decoration: underline; text-underline-offset: 3px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 22px; margin-bottom: 18px; }

/* ---------- 方案 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; position: relative; }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -13px; left: 28px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 19px; margin-bottom: 6px; }
.plan .desc { font-size: 15px; color: var(--muted); min-height: 3.2em; }
.price { font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 10px 0 4px; letter-spacing: -.01em; }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .checks { margin: 22px 0; font-size: 15.5px; }
.plan .fit { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; }
.plan .btn { margin-top: 18px; width: 100%; }
.note { font-size: 14.5px; color: var(--muted); }

/* ---------- CTA 區 ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #C9CEDA; border-radius: var(--radius-lg); padding: 64px 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(107, 76, 240, .55), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 40em; }
.cta-band .btn-row { margin: 0; }

/* ---------- 頁尾 ---------- */
.site-footer { background: #11151E; color: #9AA2B4; padding: 72px 0 0; margin-top: 96px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand-zh { color: #fff; border-left-color: #2E3546; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #C3C9D6; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact svg { width: 18px; height: 18px; color: #8F84F0; flex-shrink: 0; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid #232A38; margin-top: 56px; padding: 22px 0 28px; font-size: 14px; }
.copyright p { margin: 0; }
.copyright ul { display: flex; gap: 20px; flex-wrap: wrap; }
.copyright li { margin: 0; }

.line-float { position: fixed; right: 18px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: var(--line-green); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 24px rgba(6, 199, 85, .35); }
.line-float:hover { color: #fff; transform: translateY(-2px); }
.line-float svg { width: 22px; height: 22px; }

/* 返回頂部（桌機）：疊在浮動 LINE 鈕上方，外圈為閱讀進度 */
.to-top { position: fixed; right: 22px; bottom: 96px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #fff; color: var(--ink); box-shadow: 0 8px 22px rgba(17, 21, 30, .14); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, box-shadow .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: 0 12px 28px rgba(75, 47, 214, .28); color: var(--brand); }
.to-top:hover .to-top-ic { transform: translateY(-2px); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 3; stroke: var(--line); }
.to-top-ring .to-top-bar { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top-ic { position: relative; width: 20px; height: 20px; transition: transform .2s; }
.to-top[hidden] { display: none; }

/* ---------- 產業案例頁（沿用原文內容，統一樣式） ---------- */
.case-doc { font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.case-doc pre { white-space: pre-wrap; background: var(--bg-soft); border-radius: var(--radius); padding: 16px; font-size: 14.5px; overflow-x: auto; }
.case-doc header.hero, .case-doc .hero { padding: 0; background: none; margin: 0 0 32px; }
.case-doc .hero-inner, .case-doc header.hero > div { background: none; padding: 0; }
.case-doc h1 { display: none; } /* 標題已在頁首主視覺 */
.case-doc main, .case-doc .case-main, .case-doc .wrap { max-width: none; padding: 0; margin: 0; }
.read-next { margin: 48px 0 0; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.case-doc .read-next h2 { font-size: 20px; margin: 0 0 14px; }
.read-next ul { list-style: none; padding: 0; margin: 0; }
.read-next li { padding: 12px 0; }
.read-next li + li { border-top: 1px dashed var(--line); }
.read-next a { font-weight: 700; color: var(--ink); font-size: 16.5px; line-height: 1.5; }
.read-next a:hover { color: var(--brand); }
.read-next span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.case-doc section { margin: 0 0 40px; }
.case-doc h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.6em 0 .7em; scroll-margin-top: 100px; }
.case-doc h3 { font-size: 19px; margin: 1.2em 0 .5em; }
.case-doc .card, .case-doc article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 0 0 18px; box-shadow: none; }
.case-doc footer.card { background: var(--bg-soft); font-size: 15px; }
.case-doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1em 0 1.4em; display: block; overflow-x: auto; }
.case-doc th { background: var(--ink); color: #fff; text-align: left; padding: 10px 14px; }
.case-doc td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.case-doc ul, .case-doc ol { padding-left: 1.3em; }
.case-doc li { margin-bottom: .45em; }
.case-doc a { text-decoration: underline; text-underline-offset: 3px; }
.case-doc .badge, .case-doc .pill, .case-doc .tag, .case-doc .chip { display: inline-block; font-size: 13.5px; padding: 3px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--brand); margin: 0 6px 6px 0; }
.case-doc .grid, .case-doc .grid-2, .case-doc .grid-3, .case-doc .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.case-doc .cta { background: var(--bg-tint); border-radius: var(--radius); padding: 24px; }
.case-doc .watermark { display: none; }
.case-doc .btn { white-space: normal; text-align: center; min-height: 46px; height: auto; padding: 10px 20px; margin: 6px 8px 6px 0; background: var(--brand); color: #fff; text-decoration: none; max-width: 100%; }
.case-doc .btn:hover { background: var(--brand-ink); color: #fff; }
.case-doc .btn.secondary, .case-doc .btn.subtle, .case-doc .btn.ghost, .case-doc .btn.outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.case-doc img { border-radius: var(--radius); }

/* ---------- 其他 ---------- */
.legal h2 { font-size: 22px; }
.error-box { text-align: center; padding: 40px 0; }
.error-box .code { font-size: clamp(64px, 12vw, 120px); font-weight: 800; color: var(--bg-tint); line-height: 1; -webkit-text-stroke: 2px var(--brand); }
.link-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0; }
.link-pills a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.link-pills a:hover { border-color: var(--brand); color: var(--brand); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.contact-item .icon-badge { margin: 0; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--ink); font-size: 17px; }
.contact-item a, .contact-item span { font-size: 16px; }

/* ---------- 響應式 ---------- */
@media (max-width: 1080px) {
  .grid-4, .steps, .steps--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .split, .split--wide, .page-hero--split .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .grid-3, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 44px 32px; }
  .panel-ink { padding: 40px 28px; }
  .hero-badge { left: 12px; bottom: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .grid-2, .grid-3, .grid-4, .plans, .steps, .steps--5 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .brand img { width: 112px; }
  .brand-zh { font-size: 15px; padding-left: 10px; }
  .card { padding: 22px; }
  .prose { font-size: 16.5px; }
  .line-float span { display: none; }
  .line-float { padding: 14px; }
  .btn-row .btn { width: 100%; }
  .cta-band { padding: 36px 22px; }
  .site-footer { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top, .to-top-ic, .to-top-bar { transition: none !important; }
  .mnav-panel, .mnav-scrim { transition: none !important; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
