/* 公司網站樣式：取自設計稿（公司網站.html）的 <style>（原樣保留），
   檔尾「部署版新增」為設計稿沒有、部署版需要的規則。 */
/* 版面：單欄內容站，最大寬 880；頂列 52px；區塊以卡片與清單呈現。色彩 token 取自設計規範（純設計版）。 */
:root {
  --radius: 10px;
  --font-sans: 'Noto Sans TC', ui-sans-serif, system-ui, sans-serif;
  --background: #ffffff;
  --foreground: #171717;
  --card: #ffffff;
  --primary: #06c755;
  --primary-foreground: #ffffff;
  --secondary: #ededed;
  --muted: #f7f7f7;
  --muted-foreground: #696969;
  --accent: #f5f5f5;
  --border: #dfdfdf;
  --input: #d9d9d9;
  --ring: #707070;
  --hover: #f5f5f5;
  --sel: #ededed;
  --accent-text: #0e7e4e;
  --ok: #0e7e4e;
  --warn: #ac5800;
  --warn-soft: #fff4e0;
  --warn-soft-foreground: #8a4b00;
  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 10px rgb(0 0 0 / 0.08);
  --ring-line: rgb(23 23 23 / 0.1);
  --ripple-color: rgb(23 23 23 / 0.1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --background: #141618;
  --foreground: #e8eaed;
  --card: #1e2124;
  --secondary: #2a2e32;
  --muted: #25292c;
  --muted-foreground: #9aa4ae;
  --accent: #2a2e32;
  --border: #31363b;
  --input: #3d4247;
  --ring: #6f7882;
  --hover: #2a2e32;
  --sel: #31363b;
  --accent-text: #4acd8b;
  --ok: #4acd8b;
  --warn: #f2af48;
  --warn-soft: #3a2c12;
  --warn-soft-foreground: #f2c27a;
  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 10px rgb(0 0 0 / 0.4);
  --ring-line: rgb(232 234 237 / 0.1);
  --ripple-color: rgb(232 234 237 / 0.1);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #141618;
    --foreground: #e8eaed;
    --card: #1e2124;
    --secondary: #2a2e32;
    --muted: #25292c;
    --muted-foreground: #9aa4ae;
    --accent: #2a2e32;
    --border: #31363b;
    --input: #3d4247;
    --ring: #6f7882;
    --hover: #2a2e32;
    --sel: #31363b;
    --accent-text: #4acd8b;
    --ok: #4acd8b;
    --warn: #f2af48;
    --warn-soft: #3a2c12;
    --warn-soft-foreground: #f2c27a;
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 10px rgb(0 0 0 / 0.4);
    --ring-line: rgb(232 234 237 / 0.1);
    --ripple-color: rgb(232 234 237 / 0.1);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; }
a { color: inherit; text-decoration: none; }
:focus { outline: none; }
:focus-visible { outline: none; }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* 按鈕：聚焦＝hover 樣子，不加 ring */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: 8px;
  font: 500 14px/1 var(--font-sans); cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--foreground);
  box-shadow: var(--shadow-xs); white-space: nowrap;
  transition: background-color 150ms, color 150ms, opacity 150ms;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { background: var(--muted); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); font-weight: 600; }
.btn.primary:focus-visible { opacity: 0.8; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.lg { height: 40px; padding: 0 16px; }
.btn.icon { width: 36px; padding: 0; }
@media (hover: hover) {
  .btn:hover { background: var(--muted); }
  .btn.primary:hover { background: var(--primary); opacity: 0.8; }
  .btn.ghost:hover { background: var(--hover); }
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn[aria-busy="true"] { pointer-events: none; }

/* 頂列 */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--background); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 4px; height: 56px; max-width: 1080px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; min-height: 36px; padding: 0 8px 0 0; border-radius: 8px; }
.brand .n { display: flex; flex-direction: column; line-height: 1.25; }
.brand .n small { font-size: 11px; font-weight: 500; color: var(--muted-foreground); }
.brand svg { width: 22px; height: 22px; color: var(--foreground); }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { display: inline-flex; align-items: center; height: 32px; padding: 0 9px; white-space: nowrap; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted-foreground); transition: background-color 150ms, color 150ms; }
.nav a:focus-visible { background: var(--hover); color: var(--foreground); }
@media (hover: hover) { .nav a:hover { background: var(--hover); color: var(--foreground); } }
.nav a[aria-current="page"], .mnav a[aria-current="page"] { background: var(--sel); color: var(--foreground); font-weight: 600; }
.spacer { flex: 1; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); color: var(--muted-foreground); }
.badge.warn { background: var(--warn-soft); color: var(--warn-soft-foreground); border-color: transparent; }
.mnav { display: none; }

/* 區塊 */
section { padding: 56px 0 0; }
.hero { padding-top: 48px; }
.meta { font-size: 12px; font-weight: 500; color: var(--muted-foreground); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.hero h1 { font-size: 36px; line-height: 1.25; letter-spacing: 0.12em; margin-top: 14px; }
.role { margin-top: 6px; font-size: 16px; font-weight: 500; }
.role small { display: block; font-size: 13px; font-weight: 500; color: var(--muted-foreground); letter-spacing: 0; }
.lead { margin-top: 20px; max-width: 34em; font-size: 16px; line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--secondary); font-size: 13px; font-weight: 500; }

.eyebrow { font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
h2 { font-size: 22px; line-height: 1.4; margin-top: 4px; }
.desc { margin-top: 10px; max-width: 38em; color: var(--muted-foreground); }
.desc + .desc { margin-top: 6px; }

.card { background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px var(--ring-line), var(--shadow-xs); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.principle { padding: 24px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; background: var(--secondary); font-size: 13px; font-weight: 600; }
.principle h3 { margin-top: 14px; font-size: 16px; }
.principle p { margin-top: 8px; color: var(--muted-foreground); }

.panel { margin-top: 24px; padding: 8px; }
.panel-title { padding: 10px 10px 8px; font-size: 14px; font-weight: 600; }
.row { display: flex; gap: 12px; padding: 12px 10px; border-radius: 10px; }
.row + .row { border-top: 1px solid var(--border); border-radius: 0; }
.row .num { background: var(--muted); }
.row b { display: block; font-size: 14px; font-weight: 500; }
.row span.t { display: block; margin-top: 2px; font-size: 13px; color: var(--muted-foreground); }
.panel-foot { padding: 12px 10px 8px; }

.notes { margin-top: 24px; padding: 6px; }
.note { display: flex; gap: 16px; align-items: baseline; padding: 14px 12px; border-radius: 10px; transition: background-color 150ms; }
.note + .note { border-top: 1px solid var(--border); border-radius: 0; }
@media (hover: hover) { .note:hover { background: var(--hover); } }
.note time { flex: none; width: 56px; font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.note h3 { font-size: 15px; font-weight: 600; }
.note p { margin-top: 2px; font-size: 13px; color: var(--muted-foreground); }

.firm-head { display: flex; align-items: center; gap: 14px; }
.firm-head svg { width: 40px; height: 40px; color: var(--foreground); flex: none; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.spec { padding: 20px 24px; }
.spec .k { font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.spec .v { margin-top: 2px; font-size: 18px; font-weight: 600; }
.spec p { margin-top: 6px; color: var(--muted-foreground); }

.contact { padding: 24px; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mail { font-weight: 500; word-break: break-all; }
.contact .line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hint { font-size: 12px; color: var(--muted-foreground); }

/* 分頁視圖 */
.view[hidden] { display: none; }
.view > section:first-child { padding-top: 48px; }
.view h1 { font-size: 30px; line-height: 1.3; letter-spacing: 0.06em; margin-top: 6px; }
.prose { margin-top: 20px; max-width: 38em; }
.prose p { font-size: 16px; line-height: 1.9; }
.prose p + p { margin-top: 14px; }
.prose p.note-p { font-size: 13px; color: var(--muted-foreground); line-height: 1.8; }
.founder { margin-top: 40px; padding: 24px; }
.founder .k { font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.founder .v { font-size: 20px; font-weight: 600; margin-top: 2px; }
.founder .v small { font-size: 14px; font-weight: 500; color: var(--muted-foreground); margin-left: 8px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--secondary); font-size: 12px; font-weight: 500; color: var(--muted-foreground); margin-top: 8px; }
.org { margin-top: 24px; padding: 24px; display: flex; flex-direction: column; align-items: center; }
.org .box { width: 100%; max-width: 420px; text-align: center; padding: 16px; border-radius: 12px; background: var(--muted); box-shadow: 0 0 0 1px var(--ring-line); }
.org .box b { display: block; font-size: 16px; font-weight: 600; }
.org .box span { display: block; font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
.org .link { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 500; color: var(--muted-foreground); padding: 6px 0; }
.org .link i { display: block; width: 1px; height: 14px; background: var(--muted-foreground); }
.org .link svg { width: 14px; height: 14px; }

footer { margin-top: 64px; border-top: 1px solid var(--border); padding: 24px 0 40px; }
footer .wrap { display: flex; flex-direction: column; gap: 12px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.foot-brand svg { width: 20px; height: 20px; }
footer p { max-width: 46em; font-size: 12px; color: var(--muted-foreground); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--foreground); color: var(--background); font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-md); transition: opacity 200ms, transform 400ms cubic-bezier(0.22, 1, 0.36, 1); z-index: 80; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 按壓回饋（僅觸控） */
[data-press-layer] { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
[data-press-ripple] { position: absolute; border-radius: 50%; background: var(--ripple-color); transform: scale(0); opacity: 1; animation: press-expand 500ms cubic-bezier(0.2, 0.6, 0.3, 1) forwards; transition: opacity 350ms ease-out; }
.btn.primary [data-press-ripple] { background: rgb(255 255 255 / 0.24); }
[data-press-ripple][data-out] { opacity: 0; }
@keyframes press-expand { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  [data-press-ripple] { animation: none; inset: 0; border-radius: 0; transform: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* 明暗切換擴散 */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (max-width: 960px) {
  .nav { display: none; }
  .mnav { display: block; border-bottom: 1px solid var(--border); background: var(--background); }
  .mnav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .mnav a { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; font-weight: 500; color: var(--muted-foreground); }
  .mnav a:focus-visible { background: var(--hover); color: var(--foreground); }
  html { scroll-padding-top: 108px; }
}
@media (max-width: 720px) {
  section { padding-top: 44px; }
  .view > section:first-child { padding-top: 32px; }
  .view h1 { font-size: 26px; }
  .grid, .specs { grid-template-columns: 1fr; gap: 12px; }
  .principle, .spec { padding: 20px; }
  .actions .btn { width: 100%; height: 44px; }
  .btn.lg { height: 44px; }
  .contact { padding: 20px; }
  .contact .btn { width: 100%; }
  .note { gap: 12px; flex-direction: column; }
  .note time { width: auto; }
  .topbar .brand span.n { display: inline; }
}

/* ---- 部署版新增 ---- */
/* 取代設計稿中寫在 style 屬性的間距（CSP 不允許 inline style） */
.mt-28 { margin-top: 28px; }
.mt-40 { margin-top: 40px; }
/* 內文中的連結（內容檔的 [文字](網址)）：不能只靠顏色辨識，加底線 */
p a { text-decoration: underline; text-underline-offset: 2px; }
/* 投資觀點：文章尚未推出時的說明卡（字級比照 .note） */
.soon { margin-top: 24px; padding: 20px 18px; }
.soon h3 { font-size: 15px; font-weight: 600; }
.soon p { margin-top: 2px; font-size: 13px; color: var(--muted-foreground); }
