/*
 * 醒來再說 TAKE A NAP — 品牌設計規範（brand tokens + 共用元件）
 * takeanap.tw 與 card.takeanap.tw 共用同一份；改這裡，兩站一起更新。
 *
 * 色彩用途：
 *   --sun        品牌橘：大面積、圖形、3D、底色塊（不當小字用）
 *   --sun-strong 大標題的橘字、圖示（對暖白 3.4:1，符合大字 AA）
 *   --sun-text   小字的橘字、連結（暖白、米色、白底都 ≥4.7:1，符合 AA）
 *   --line-green 只用在 LINE 按鈕
 */
:root {
  --bg: #FBF9F7;
  --paper: #FFFFFF;
  --cream: #F4EFEA;
  --cream-2: #EDE6DE;
  --ink: #1A1A1A;
  --ink2: #4C4944;
  --muted: #66615B;
  --line: rgba(26, 26, 26, .10);
  --line-strong: rgba(26, 26, 26, .18);

  --sun: #FA7A35;
  --sun2: #EE9936;
  --sun-strong: #E0601C;
  --sun-text: #A84816;
  --sun-soft: rgba(250, 122, 53, .12);
  --sun-softer: rgba(250, 122, 53, .07);
  --line-green: #06C755;

  --dark: #1A1A1A;
  --dark-2: #252321;
  --on-dark: #F4EFEA;
  --on-dark-muted: #B5AEA6;
  --dark-line: rgba(244, 239, 234, .14);

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-latin: "Sora", -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(40, 30, 20, .05), 0 2px 8px rgba(40, 30, 20, .05);
  --shadow: 0 18px 40px -18px rgba(40, 30, 20, .22), 0 2px 6px rgba(40, 30, 20, .05);
  --shadow-lg: 0 30px 60px -20px rgba(40, 30, 20, .28);

  --wrap: 1160px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url("/assets/fonts/sora-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+2190-21FF; }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("/assets/fonts/sora-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+2190-21FF; }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("/assets/fonts/sora-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+2190-21FF; }

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.nw { white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sun-strong); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(250, 122, 53, .22); }

/* ---------- 字級 ---------- */
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.2; letter-spacing: .02em; font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.32; letter-spacing: .02em; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.45; font-weight: 700; letter-spacing: .01em; }
h1 em, h2 em { font-style: normal; color: var(--sun-strong); }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink2); max-width: 34em; }
.sub { color: var(--ink2); max-width: 36em; }
.small { font-size: 14px; color: var(--muted); }
.latin { font-family: var(--font-latin); }

/* 小標：英文大寫、加寬字距、橘色 */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-latin); font-size: 12.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--sun-text);
}
.kicker b { font-weight: 700; color: var(--ink); letter-spacing: .08em; }
.kicker b::after { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--line-strong); margin-left: 10px; vertical-align: middle; }

/* 膠囊標籤 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--sun-text);
  background: var(--sun-soft); padding: 6px 14px; border-radius: var(--pill); letter-spacing: .06em;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--pill);
  font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 8px 20px rgba(6, 199, 85, .25); }
.btn-line:hover { box-shadow: 0 12px 26px rgba(6, 199, 85, .32); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: var(--shadow); }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sun-text); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 導覽列 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 247, .86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .04em; font-size: 17px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { font-family: var(--font-latin); font-weight: 600; font-size: 10.5px; letter-spacing: .2em; color: var(--muted); display: block; line-height: 1; margin-top: 3px; }
.brand span { display: block; line-height: 1.1; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 14.5px; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; border-radius: var(--pill); text-decoration: none; color: var(--ink2); transition: background-color .2s, color .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(26, 26, 26, .05); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-links .tag { font-family: var(--font-latin); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--sun-text); background: var(--sun-soft); padding: 1px 6px; border-radius: var(--pill); margin-left: 4px; vertical-align: 2px; }
.nav nav { margin-left: auto; }
.nav .brand { flex: none; white-space: nowrap; }
.nav .btn { margin-left: 8px; flex: none; }
.menu-btn { flex: none; }
.nav-cta-more { margin-left: -4px; }
/* 導覽列的 LINE 入口走低調描邊，讓每一屏只有一顆實心綠色按鈕 */
.nav-cta svg { color: var(--line-green); }
.nav-cta:hover { border-color: var(--line-green); }
.menu-btn { display: none; margin-left: 4px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 400px) {
  .nav .wrap { gap: 10px; }
  .nav-cta { padding: 0 14px; }
  .nav-cta-more { display: none; }
}
@media (max-width: 340px) {
  .nav .brand small { display: none; }
}
.drawer { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--bg); padding: 16px 20px 40px; overflow-y: auto; display: none; }
.drawer.open { display: block; animation: drawer-in .28s var(--ease); }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.drawer ul { list-style: none; display: grid; }
.drawer a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; font-weight: 700; }
.drawer a small { font-family: var(--font-latin); font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--muted); }
.drawer .cta { margin-top: 24px; flex-direction: column; }
.drawer .cta .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- 區塊 ---------- */
.section { padding: 104px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 68px 0; } }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--fade { background: linear-gradient(180deg, var(--bg), var(--cream)); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .sub, .section--dark .lead, .section--dark p { color: var(--on-dark-muted); }
.section--dark h2 em, .section--dark h1 em { color: var(--sun); }
.section--dark .kicker { color: var(--sun); }
.section--dark .kicker b { color: var(--on-dark); }
.section--dark .kicker b::after { background: var(--dark-line); }

.head { display: grid; gap: 20px; margin-bottom: 48px; }
.head h2 { margin-top: 12px; }
@media (min-width: 900px) {
  .head.split { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 48px; }
  .head.split .sub { justify-self: end; }
}
.head.center { text-align: center; justify-items: center; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.grid > * { min-width: 0; }

/* ---------- 卡片 ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; position: relative; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink2); font-size: 15px; }
.section--cream .card { border-color: rgba(26, 26, 26, .07); }
.section--dark .card { background: var(--dark-2); border-color: var(--dark-line); }
.section--dark .card p { color: var(--on-dark-muted); }
.ic { width: 46px; height: 46px; border-radius: 14px; background: var(--sun-soft); color: var(--sun-strong); display: grid; place-items: center; margin-bottom: 18px; flex: none; }
.ic svg { width: 24px; height: 24px; stroke-width: 1.8; }
.section--dark .ic { background: rgba(250, 122, 53, .16); color: var(--sun); }

/* 勾勾清單 */
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 15px; color: var(--ink2); }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--sun-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0601C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.section--dark .checks li { color: var(--on-dark-muted); }

/* 標籤列 */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { font-size: 13px; padding: 5px 12px; border-radius: var(--pill); border: 1px solid var(--line-strong); color: var(--ink2); background: var(--paper); }

/* 承諾小字列 */
.assure { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; font-size: 14px; color: var(--muted); }
.assure li { display: inline-flex; align-items: center; gap: 6px; }
.assure svg { width: 16px; height: 16px; color: var(--sun-strong); }

/* ---------- 步驟 ---------- */
.steps { counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; position: relative; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-latin); font-size: 38px; font-weight: 700; line-height: 1;
  color: var(--sun-softer); -webkit-text-stroke: 1px rgba(224, 96, 28, .38);
}
.step h3 { margin-bottom: 6px; padding-right: 48px; }
.step p { color: var(--ink2); font-size: 15px; }
.step .meta { margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--sun-text); background: var(--sun-soft); display: inline-block; padding: 2px 10px; border-radius: var(--pill); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sun-strong); font-size: 22px; line-height: 1; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink2); font-size: 15px; }
.faq details p a { color: var(--sun-text); }

/* ---------- 頁尾 ---------- */
.footer { background: var(--dark); color: var(--on-dark-muted); padding: 72px 0 32px; font-size: 14px; }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--on-dark); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { gap: 32px 20px; } .footer-top > div:last-child { grid-column: 1 / -1; } }
.footer .brand { color: var(--on-dark); }
.footer .brand small { color: var(--on-dark-muted); }
.footer-brand p { margin-top: 16px; max-width: 22em; line-height: 1.8; }
.footer-h { font-size: 13px; font-weight: 700; color: var(--on-dark); letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 24px; font-size: 13px; }
.footer-bottom nav { display: flex; gap: 18px; }

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .link-arrow svg { transition: none; }
}

/* takeanap.tw 頁面元件（品牌規範在 brand.css） */

/* ---------- 首頁主視覺 ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 55%, var(--cream) 100%); }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -200px; top: -240px; background: var(--sun2); opacity: .10; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 32px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-text > * + * { margin-top: 22px; }
.hero h1 { margin-top: 20px; }
.hero .cta { margin-top: 32px; }
.hero .assure { margin-top: 24px; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; gap: 8px; }
}

/* 毛筆底線：只讓關鍵詞帶一點橘 */
.brush { position: relative; white-space: nowrap; }
.brush::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 40 6, 90 5, 130 9 S 185 14, 197 8' fill='none' stroke='%23FA7A35' stroke-opacity='.35' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
h1 .brush { isolation: isolate; }
.hero h1 { position: relative; z-index: 0; }

.hero-visual { position: relative; aspect-ratio: 560 / 520; width: 100%; max-width: 580px; justify-self: end; }
@media (max-width: 920px) { .hero-visual { justify-self: center; max-width: 460px; } }
.stage { position: absolute; inset: 0; }
.stage-fallback, .stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-canvas { opacity: 0; transition: opacity .9s ease; }
.stage.ready .stage-canvas { opacity: 1; }
.stage.ready .stage-fallback { opacity: 0; transition: opacity .6s ease; }
.stage-tag { position: absolute; right: 0; top: 4%; font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--muted); text-align: right; line-height: 1.8; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.35; z-index: 2;
}
.float-card b { display: block; font-size: 14px; }
.float-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.fc-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--sun-soft); color: var(--sun-strong); display: grid; place-items: center; flex: none; }
.fc-ic svg { width: 19px; height: 19px; }
.fc-1 { left: 0; top: 20%; }
.fc-2 { right: 0; bottom: 10%; }
.fc-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-left: 6px; }
.fc-bars i { width: 4px; border-radius: 2px; background: var(--sun); opacity: .35; }
.fc-bars i:nth-child(1) { height: 8px; } .fc-bars i:nth-child(2) { height: 13px; } .fc-bars i:nth-child(3) { height: 11px; } .fc-bars i:nth-child(4) { height: 20px; opacity: 1; }
.float-card.reveal.in { animation: bob 6s ease-in-out infinite; }
.fc-2.reveal.in { animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 520px) { .float-card { font-size: 12px; padding: 9px 12px 9px 9px; } .fc-ic { width: 30px; height: 30px; } .fc-bars { display: none; } .stage-tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .float-card.reveal.in { animation: none; } }

/* 產業列 */
.industry { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.industry .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; }
.industry p { font-size: 14px; font-weight: 700; color: var(--ink); }
.industry ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.industry li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); }
.industry svg { width: 18px; height: 18px; color: var(--sun-strong); stroke-width: 1.8; }
@media (max-width: 900px) { .industry ul { margin-left: 0; } }

/* ---------- 服務卡 ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }
.svc { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-visual { position: relative; height: 196px; background: linear-gradient(160deg, var(--cream) 0%, #FBF6F1 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.svc-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-body > p:not(.svc-en) { color: var(--ink2); font-size: 15px; }
.svc-en { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.svc h3 { font-size: 21px; }
.svc .tags { margin: 4px 0 8px; }
.svc .link-arrow { margin-top: auto; }
@media (max-width: 960px) { .svc { display: grid; grid-template-columns: 0.9fr 1.1fr; } .svc-visual { height: auto; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--line); } }
@media (max-width: 640px) { .svc { display: flex; } .svc-visual { min-height: 0; height: 180px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* POS 小收據 */
.mock-pos { display: flex; flex-direction: column; justify-content: center; padding: 0 22% 0 22%; gap: 7px; font-size: 12.5px; }
.mock-pos::before { content: ""; position: absolute; inset: 20px 18% 20px 18%; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-sm); }
.mock-pos > * { position: relative; }
.mp-row, .mp-total { display: flex; justify-content: space-between; color: var(--ink2); }
.mp-row b { font-family: var(--font-latin); font-weight: 600; }
.mp-total { border-top: 1px dashed var(--line-strong); padding-top: 8px; margin-top: 2px; color: var(--ink); font-weight: 700; }
.mp-total b { font-family: var(--font-latin); color: var(--sun-text); }
.mp-pay { display: flex; gap: 6px; }
.mp-pay i { flex: 1; height: 8px; border-radius: 4px; background: var(--cream-2); }
.mp-pay i.on { background: var(--sun); }

/* ERP 節點 */
.mock-erp .me-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-erp .me-lines path { stroke: var(--sun); stroke-opacity: .45; stroke-width: 1.5; stroke-dasharray: 4 5; fill: none; vector-effect: non-scaling-stroke; }
.me-node { position: absolute; z-index: 1; transform: translate(-50%, -50%); background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: 5px 14px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-sm); white-space: nowrap; }
.me-c { left: 50%; top: 50%; background: var(--ink); color: #fff; border-color: var(--ink); display: flex; align-items: center; gap: 6px; padding: 8px 16px; }
.me-c svg { width: 16px; height: 16px; color: var(--sun); }
.me-1 { left: 16%; top: 20%; } .me-2 { left: 84%; top: 20%; } .me-3 { left: 16%; top: 80%; } .me-4 { left: 84%; top: 80%; }

/* 程式碼 */
.mock-code { background: #1E1C1A; padding: 20px 22px; }
.mc-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.mc-dots i { width: 9px; height: 9px; border-radius: 50%; background: #4A4643; }
.mc-dots i:first-child { background: var(--sun); }
.mock-code pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.75; color: #D9D3CC; white-space: pre; overflow: hidden; }
.mock-code .k { color: #FFB37A; } .mock-code .s { color: #A9D3A0; } .mock-code .b { color: #8EC5FF; }

/* 產品條：電子名片 */
.product-strip {
  margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px 28px 22px 22px;
  text-decoration: none; transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product-strip:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ps-card { position: relative; width: 168px; aspect-ratio: 85.6 / 54; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #FFFFFF 0%, #FBF1E8 100%); box-shadow: 0 14px 28px -10px rgba(40, 30, 20, .28); padding: 18px 16px; transform: rotate(-4deg); border: 1px solid var(--line); }
.ps-card b { display: block; font-size: 16px; letter-spacing: .08em; position: relative; z-index: 1; }
.ps-card small { font-size: 10px; color: var(--muted); position: relative; z-index: 1; }
.ps-sun { position: absolute; right: 10%; bottom: 10%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #FFB37A, var(--sun) 72%); }
.ps-nfc { position: absolute; top: 8px; right: 10px; color: var(--ink2); }
.ps-nfc svg { width: 14px; height: 14px; }
.ps-text h3 { font-size: 20px; margin: 6px 0 4px; }
.ps-text p:last-child { color: var(--ink2); font-size: 15px; }
.ps-cta { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.ps-cta svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .product-strip { grid-template-columns: 1fr; padding: 26px; } .ps-card { margin: 4px 0 6px 6px; } .ps-cta { justify-self: start; } }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* 資料自主 */
.sovereignty { overflow: hidden; }
.sovereignty::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -200px; top: -260px; background: radial-gradient(circle, rgba(250, 122, 53, .16), transparent 65%); pointer-events: none; }
.sovereignty .wrap { position: relative; }

/* 理念 */
.ph-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .ph-grid { grid-template-columns: 1fr; gap: 40px; } }
.ph-grid h2 { margin: 12px 0 18px; }
.ph-visual { text-align: center; }
.ph-visual p { margin-top: 18px; font-size: 11.5px; letter-spacing: .24em; color: var(--muted); font-weight: 600; }
.ph-board { position: relative; aspect-ratio: 1.15; max-width: 440px; margin: 0 auto; border-radius: var(--r-xl); background: radial-gradient(circle at 50% 50%, #FFFFFF 0 22%, transparent 22.5%), repeating-radial-gradient(circle at 50% 50%, transparent 0 46px, rgba(26, 26, 26, .06) 46px 47px), var(--cream); border: 1px solid var(--line); }
.ph-chip { white-space: nowrap; position: absolute; display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: 8px 14px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm); transform: translate(-50%, -50%); }
.ph-chip svg { width: 17px; height: 17px; color: var(--sun-strong); }
.c1 { left: 24%; top: 22%; } .c2 { left: 78%; top: 26%; } .c3 { left: 22%; top: 76%; } .c4 { left: 76%; top: 80%; }
.ph-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(250, 122, 53, .4); }
.ph-center svg { width: 30px; height: 30px; stroke-width: 2.6; }
.ph-points { list-style: none; display: grid; gap: 14px; margin: 28px 0; counter-reset: p; }
.ph-points li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.ph-points li::before { counter-increment: p; content: "0" counter(p); grid-row: span 2; font-family: var(--font-latin); font-weight: 700; font-size: 15px; color: var(--sun-text); border-top: 2px solid var(--sun); padding-top: 6px; }
.ph-points b { font-size: 17px; }
.ph-points span { color: var(--ink2); font-size: 15px; }

/* FAQ 版面 */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-layout > div:first-child { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 14px; justify-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 28px; } .faq-layout > div:first-child { position: static; } }

/* 結尾邀請 */
.closing { padding-top: 24px; }
.closing-box { position: relative; overflow: hidden; text-align: center; display: grid; justify-items: center; gap: 18px; background: linear-gradient(180deg, var(--cream) 0%, #F9E9DC 100%); border-radius: 36px; padding: 88px 24px 170px; }
.closing-box .lead { max-width: 30em; }
.closing-box .cta { justify-content: center; margin-top: 8px; }
.closing-sun { position: absolute; width: 360px; height: 360px; border-radius: 50%; left: 50%; bottom: -270px; transform: translateX(-50%); background: radial-gradient(circle at 50% 35%, #FFB37A, var(--sun) 70%); opacity: .9; }
.closing-box > *:not(.closing-sun) { position: relative; }
.closing-box .assure { justify-content: center; margin-top: 4px; }
@media (max-width: 640px) { .closing-box { padding: 64px 20px 150px; border-radius: 28px; } .closing-box .cta { flex-direction: column; width: 100%; } .closing-box .btn { width: 100%; } }

/* ---------- 內頁主視覺 ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 70%); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -180px; top: -220px; background: var(--sun2); opacity: .10; pointer-events: none; }
.page-hero .wrap { position: relative; padding-top: 48px; padding-bottom: 80px; }
.page-hero.has-visual .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .page-hero.has-visual .wrap { grid-template-columns: 1fr; } }
.page-hero-text { display: grid; gap: 20px; justify-items: start; max-width: 720px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 50px); }
.page-hero .cta { margin-top: 6px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* 左右分欄 */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split2.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split2 { grid-template-columns: 1fr; gap: 36px; } .split2.rev > :first-child { order: 0; } }
.split2 h2 { margin: 12px 0 16px; }
.split2 .checks { margin-top: 24px; }

/* 介面示意框 */
.mock { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 22px; font-size: 14px; }
.section--dark .mock { background: var(--dark-2); border-color: var(--dark-line); color: var(--on-dark); box-shadow: none; }
.mock-wrap { position: relative; padding: 28px; border-radius: 32px; background: linear-gradient(160deg, var(--cream), #FBF6F1); }
.section--cream .mock-wrap { background: linear-gradient(160deg, #FFFFFF, var(--bg)); }
.section--dark .mock-wrap { background: rgba(255, 255, 255, .03); border: 1px solid var(--dark-line); }
.mock-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.section--dark .mock-note { color: var(--on-dark-muted); }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-head b { font-size: 15px; }
.mock-head small { color: var(--muted); font-size: 12px; }
.section--dark .mock-head small { color: var(--on-dark-muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--pill); background: var(--sun-soft); color: var(--sun-text); }
.section--dark .pill { color: var(--sun); background: rgba(250, 122, 53, .16); }
.pill.ok { background: rgba(6, 140, 70, .10); color: #0B6B3A; }
.pill.mute { background: rgba(26, 26, 26, .06); color: var(--muted); }
.rows { display: grid; gap: 0; }
.rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.section--dark .rows > div { border-color: var(--dark-line); }
.rows > div:last-child { border-bottom: 0; }
.rows b, .num { font-family: var(--font-latin); font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 14px; border-top: 2px solid var(--ink); }
.total b { font-family: var(--font-latin); font-size: 26px; font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.bars span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; font-size: 11px; color: var(--muted); }
.bars i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: var(--cream-2); }
.section--dark .bars i { background: #3A3633; }
.bars span:last-child i { background: var(--sun); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpis div { background: var(--bg); border-radius: 12px; padding: 12px; }
.section--dark .kpis div { background: rgba(255, 255, 255, .04); }
.kpis small { display: block; font-size: 11.5px; color: var(--muted); }
.section--dark .kpis small { color: var(--on-dark-muted); }
.kpis b { font-family: var(--font-latin); font-size: 19px; }
.kpis em { font-style: normal; font-size: 11.5px; color: #0B6B3A; font-weight: 700; }
.section--dark .kpis em { color: #7FD8A4; }
.member { border-radius: 18px; padding: 20px; color: #fff; background: linear-gradient(135deg, #2A2724, #1A1A1A); position: relative; overflow: hidden; margin-bottom: 14px; }
.member::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #FFB37A, var(--sun) 70%); opacity: .9; }
.member small { color: #CFC8C0; font-size: 12px; }
.member b { display: block; font-size: 18px; margin: 2px 0 14px; }
.member .num { font-size: 26px; }
.coupon { display: flex; justify-content: space-between; align-items: center; border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.coupon small { display: block; color: var(--muted); font-size: 12px; }
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; position: relative; }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); justify-self: center; z-index: 1; }
.timeline li.done::before { background: var(--sun); border-color: var(--sun); }
.timeline li.now::before { border-color: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 50%; height: 100%; width: 2px; background: var(--line); }
.timeline small { color: var(--muted); font-size: 12px; }

/* 流程圖（整合） */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.flow-node { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; font-weight: 700; font-size: 14px; }
.section--dark .flow-node { background: var(--dark-2); border-color: var(--dark-line); }
.flow-node svg { width: 22px; height: 22px; margin: 0 auto 6px; color: var(--sun); }
.flow-node small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.section--dark .flow-node small { color: var(--on-dark-muted); }
.flow-arrow { color: var(--sun); }
.flow-arrow svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; } .flow-arrow { justify-self: center; transform: rotate(90deg); } }

/* 技術標籤雲 */
.stack { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.stack li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); font-size: 14.5px; font-weight: 700; }
.stack svg { width: 17px; height: 17px; color: var(--sun-strong); }

/* 整合架構圖 */
.hub { position: relative; aspect-ratio: 1.25; max-width: 520px; margin: 0 auto; }
.hub svg.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub svg.hub-lines path { stroke: var(--sun); stroke-opacity: .5; stroke-width: 1.6; stroke-dasharray: 5 6; fill: none; }
.hub-node { position: absolute; transform: translate(-50%, -50%); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hub-node svg { width: 17px; height: 17px; color: var(--sun-strong); }
.hub-core { left: 50%; top: 50%; background: var(--ink); color: #fff; border: 0; padding: 18px 20px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.hub-core svg { color: var(--sun); width: 20px; height: 20px; }

/* 適合情境卡 */
.case { display: grid; gap: 12px; }
.case .checks { margin-top: 8px; }

/* 統計數字 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* 引言 */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote { font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.55; letter-spacing: .02em; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--font-latin); font-size: 72px; line-height: .6; color: var(--sun); margin-bottom: 18px; }
.quote p { margin-top: 22px; color: var(--ink2); }

/* Logo 解說 */
.logo-explain { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .logo-explain { grid-template-columns: 1fr; } }
.logo-big { background: var(--paper); border: 1px solid var(--line); border-radius: 32px; aspect-ratio: 1; display: grid; place-items: center; max-width: 380px; width: 100%; margin: 0 auto; color: var(--ink2); }
.logo-big svg { width: 62%; }
.meaning { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; list-style: none; }
@media (max-width: 560px) { .meaning { grid-template-columns: 1fr; } }
.meaning b { display: block; margin-bottom: 4px; }
.meaning span { color: var(--ink2); font-size: 15px; }

/* ---------- 聯絡頁 ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { display: grid; gap: 12px; }
.channel { display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.channel:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.channel .ic { margin: 0; }
.channel b { display: block; font-size: 16px; }
.channel small { display: block; color: var(--muted); font-size: 13.5px; }
.channel.line { background: #F0FBF4; border-color: rgba(6, 199, 85, .3); }
.channel.line .ic { background: var(--line-green); color: #fff; }
.channel.line .ic svg { width: 26px; height: 26px; }
.channel .go { margin-left: auto; color: var(--muted); }
.channel .go svg { width: 18px; height: 18px; }
.why { margin-top: 12px; background: var(--cream); border-radius: var(--r-lg); padding: 24px; }
.why h3 { font-size: 16px; margin-bottom: 12px; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px 32px; box-shadow: var(--shadow); }
@media (max-width: 520px) { .form-card { padding: 28px 20px; } }
.form-card h2 { font-size: clamp(24px, 3vw, 30px); }
.form-card > p { color: var(--ink2); margin: 8px 0 24px; font-size: 15px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 700; }
.field label .req { color: var(--sun-text); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun-strong); background: #fff; box-shadow: 0 0 0 4px var(--sun-soft); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field [aria-invalid="true"] { border-color: #B42318; }
.types { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
.types legend { margin-bottom: 8px; }
.types label { position: relative; }
.types input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.types span { display: inline-block; padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-size: 14px; background: var(--paper); cursor: pointer; transition: all .2s; }
.types input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.types input:focus-visible + span { outline: 2px solid var(--sun-strong); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-foot .btn { min-width: 180px; }
.form-foot p { font-size: 12.5px; color: var(--muted); flex: 1; min-width: 220px; }
.form-foot a { color: var(--sun-text); }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; display: none; }
.form-status.ok { display: block; background: #F0FBF4; border: 1px solid rgba(6, 199, 85, .35); color: #0B5E33; }
.form-status.err { display: block; background: #FEF3F2; border: 1px solid #FDA29B; color: #912018; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- 條款頁 ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink2); }
.legal ul { padding-left: 1.3em; margin: 8px 0; display: grid; gap: 4px; }
.legal a { color: var(--sun-text); }
.legal .updated { font-size: 14px; color: var(--muted); }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf .wrap { display: grid; gap: 18px; justify-items: center; }
.nf-sun { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFB37A, var(--sun) 65%, var(--sun-strong)); position: relative; box-shadow: 0 20px 50px rgba(250, 122, 53, .35); }
.nf-sun::before, .nf-sun::after { content: ""; position: absolute; top: 52px; width: 22px; height: 11px; border: 4px solid #7A2E0A; border-top: 0; border-radius: 0 0 22px 22px; }
.nf-sun::before { left: 26px; } .nf-sun::after { right: 26px; }
.nf .cta { justify-content: center; }

@media (max-width: 520px) { .ph-chip { font-size: 13px; padding: 6px 11px; } .ph-chip svg { width: 15px; height: 15px; } .c2 { left: 74%; } .c4 { left: 72%; } }

/* ---------- 手機版精簡（≤640px） ---------- */
@media (max-width: 640px) {
  /* 功能卡改成「圖示在左、文字在右」，縮短長清單 */
  .grid > .card:not(.case) { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; row-gap: 2px; padding: 18px 18px; align-items: start; }
  .grid > .card:not(.case) .ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; margin: 2px 0 0; }
  .grid > .card:not(.case) .ic svg { width: 21px; height: 21px; }
  .grid > .card:not(.case) h3 { font-size: 16.5px; margin-bottom: 2px; }
  .grid > .card:not(.case) p { font-size: 14.5px; }
  .grid { gap: 10px; }
  .card.case { padding: 22px 20px; }
  .step { padding: 22px 20px; }
  .head { margin-bottom: 32px; }
  .kpis em { display: block; }
  .kpis b { font-size: 17px; }
  .logo-big { max-width: 220px; border-radius: 28px; }
  .mock-wrap { padding: 14px; border-radius: 24px; }
  .mock { padding: 18px; border-radius: 20px; }
  .hub-node { font-size: 12px; padding: 7px 10px; border-radius: 11px; gap: 6px; }
  .hub-node svg { width: 14px; height: 14px; }
  .hub-core { padding: 12px 14px; border-radius: 16px; }
  .hub { aspect-ratio: 1; }
}

/* 絕對定位的節點靠右時寬度會被壓縮，固定為內容寬度 */
.hub-node, .me-node, .ph-chip, .float-card { width: max-content; max-width: none; }
.hub-node svg, .me-node svg, .ph-chip svg, .fc-ic svg { flex: none; }

/* ---------- Blog ---------- */
.post-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--sun-text); background: var(--sun-soft); padding: 3px 10px; border-radius: var(--pill); }
.post-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.post-cat--ai { color: #1F5E8A; background: rgba(43, 118, 170, .12); } .post-cat--ai::before { background: #2B76AA; }
.post-cat--systems { color: #4B5A2A; background: rgba(120, 140, 70, .14); } .post-cat--systems::before { background: #788C46; }

.post-filters { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.post-filters a { display: inline-block; padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--paper); text-decoration: none; font-size: 14px; font-weight: 700; color: var(--ink2); transition: border-color .2s, background-color .2s, color .2s; }
.post-filters a:hover { border-color: var(--ink); color: var(--ink); }
.post-filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.post-list .wrap { display: grid; gap: 16px; }
.post-grid { margin-top: 0; }
.post-card { display: grid; gap: 12px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; text-decoration: none; transition: border-color .2s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card h3 { font-size: 19px; }
.post-card p { color: var(--ink2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .link-arrow { margin-top: 4px; font-size: 14.5px; }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.post-card--featured { padding: 40px 36px; background: linear-gradient(160deg, var(--paper), var(--cream)); gap: 16px; }
.post-card--featured h2 { font-size: clamp(24px, 3vw, 34px); max-width: 22em; }
.post-card--featured p { font-size: 16.5px; max-width: 40em; -webkit-line-clamp: 4; }
@media (max-width: 640px) { .post-card--featured { padding: 28px 22px; } }

.post-hero .page-hero-text { max-width: 820px; }
.post-hero .wrap { padding-bottom: 56px; }
.post-hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.28; }
.post-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.post-meta li + li::before { content: "·"; margin-right: 18px; opacity: .6; }
.post-layout { padding-top: 48px; padding-bottom: 72px; display: grid; gap: 32px; }
.post-body { max-width: 760px; display: grid; gap: 28px; min-width: 0; }
.post-body > *, .post-layout > * { min-width: 0; }
.prose pre, .table-wrap { max-width: 100%; }

.tldr { background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: 22px 26px; display: grid; gap: 8px; }
.tldr .kicker { color: var(--sun); }
.tldr p:last-child { font-size: 17px; font-weight: 700; line-height: 1.6; text-wrap: pretty; }

.toc { background: var(--cream); border-radius: var(--r-lg); padding: 20px 24px; }
.toc-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.toc ol { padding-left: 1.3em; display: grid; gap: 4px; font-size: 15px; }
.toc a { color: var(--ink2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }

.prose { font-size: 17px; line-height: 1.85; color: var(--ink2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(22px, 2.6vw, 27px); color: var(--ink); margin-top: 2.2em; line-height: 1.35; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h3 { font-size: 19px; color: var(--ink); margin-top: 1.8em; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--sun-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--sun-strong); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .45em; }
.prose li > ul, .prose li > ol { margin-top: .45em; }
.prose blockquote { border-left: 3px solid var(--sun); padding: 4px 0 4px 20px; color: var(--ink); font-size: 18px; }
.prose hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2.4em 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--cream-2); color: var(--ink); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: #1E1C1A; color: #F4EFEA; border-radius: var(--r); padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.65; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose img { border-radius: var(--r); }
.prose figure figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; background: var(--paper); }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--cream); color: var(--ink); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.callout { border-radius: var(--r-lg); padding: 20px 24px; background: var(--cream); border-left: 4px solid var(--sun); font-size: 16px; }
.callout > * + * { margin-top: .7em; }
.callout-title { font-weight: 700; color: var(--ink); }
.callout-warn { background: #FBEDE3; border-left-color: var(--sun-strong); }
.callout-note { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); }
.callout-do { background: rgba(6, 199, 85, .08); border-left-color: #0E9A49; }
.callout-dont { background: rgba(200, 60, 40, .07); border-left-color: #B83A2A; }

.post-foot { display: grid; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.share .btn { gap: 6px; }
.share .btn svg { color: var(--line-green); }
.post-note { font-size: 13.5px; color: var(--muted); }
