:root {
  /* 版面概念：多頁式個人品牌網站。首頁、關於、知識庫、互動工具、免費訂閱、課程服務。茄紫為主色，珊瑚為點綴。 */
  --paper: #f7f3f8;
  --card: #ffffff;
  --ink: #241433;
  --muted: #6a5c78;
  --line: #e8dfec;
  --deep: #6a2ea3;
  --coral: #ff6b4a;
  --soft: #efe6f6;
  --good: #1f8a5b;
  --warn: #c77700;
  --bad: #c7334a;
  --grad: linear-gradient(90deg, #6a2ea3, #ff6b4a);
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #140d1c; --card: #1d1428; --ink: #efe8f4; --muted: #a99bb8; --line: #322545;
    --deep: #b48cf0; --coral: #ff8a6e; --soft: #2a1d3a; --good: #4fcf94; --warn: #f0b04a; --bad: #ff7a8e;
    --grad: linear-gradient(90deg, #8f5bd6, #ff7d5e);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #140d1c; --card: #1d1428; --ink: #efe8f4; --muted: #a99bb8; --line: #322545;
  --deep: #b48cf0; --coral: #ff8a6e; --soft: #2a1d3a; --good: #4fcf94; --warn: #f0b04a; --bad: #ff7a8e;
  --grad: linear-gradient(90deg, #8f5bd6, #ff7d5e);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-weight: 900; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 900; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--deep); font-weight: 500; letter-spacing: .05em; margin: 0 0 8px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* 頁首 */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { font-weight: 900; font-size: 19px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand i { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 13px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; font-size: 14.5px; padding: 6px 12px; border-radius: 8px; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--deep); font-weight: 700; background: var(--soft); }
.nav a.cta { background: var(--deep); color: #fff; font-weight: 700; margin-left: 6px; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 12px; cursor: pointer; }

/* 共用 */
.page { padding: 40px 0 72px; }
.page[hidden] { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 15px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); background: var(--deep); color: #fff; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head p { margin: 0; max-width: 36em; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--deep); font-weight: 700; }
.pill.lock { background: var(--ink); color: var(--paper); }
.pill.free { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.pill.soon { background: var(--line); color: var(--muted); }
section.block { margin-top: 56px; }

/* 首頁 */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.22; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 34em; margin: 16px 0 24px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.photo { width: 280px; height: 280px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; text-align: center; position: relative; justify-self: center; box-shadow: 0 22px 46px -20px color-mix(in srgb, var(--deep) 70%, transparent); }
.photo::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--deep) 35%, transparent); }
.photo b { font-size: 62px; font-weight: 900; line-height: 1; display: block; letter-spacing: -0.03em; }
.photo small { font-size: 13px; opacity: .85; }
.paths .card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; position: relative; overflow: hidden; transition: transform .2s; }
.paths .card:hover { transform: translateY(-3px); }
.why .card:hover { transform: none; }
.paths .card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.paths .n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.paths h3 { font-size: 20px; font-weight: 900; }
.paths p { margin: 0; color: var(--muted); font-size: 15px; }
.paths .go { margin-top: auto; color: var(--deep); font-weight: 700; font-size: 14px; }
.band { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.band h2 { color: var(--paper); }
.band p { margin: 8px 0 0; opacity: .8; }
.band .btn { border-color: var(--paper); color: var(--paper); }
.band .btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; }

/* 關於 */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--deep); }
.timeline li:last-child::before { background: var(--coral); border-color: var(--coral); }
.timeline b { display: block; font-size: 17px; }
.timeline span { color: var(--muted); font-size: 15px; }

/* 知識庫 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; font-weight: 700; }
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; max-width: 460px; margin-bottom: 20px; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; }
.lib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; cursor: pointer; text-align: left; transition: transform .2s, border-color .2s; }
.item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--deep) 45%, var(--line)); }
.item .cat { font-size: 12px; color: var(--deep); font-weight: 700; }
.item .t { font-weight: 700; line-height: 1.5; }
.item .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; border: 1px dashed var(--line); border-radius: 12px; }

/* 工具 */
.tool-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tool { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.tool[hidden] { display: none; }
.q { padding: 14px 0; border-top: 1px dashed var(--line); }
.q:first-of-type { border-top: 0; padding-top: 0; }
.q p { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.opt[aria-pressed="true"] { border-color: var(--deep); background: var(--soft); color: var(--deep); font-weight: 700; }
.result { position: sticky; top: 80px; }
.score { font-family: var(--font-mono); font-size: 48px; font-weight: 500; line-height: 1; color: var(--deep); }
.level { display: inline-block; margin: 10px 0; font-weight: 900; font-size: 20px; }
.meter { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 12px 0 14px; }
.meter i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .3s; }
.warnbox { border-left: 3px solid var(--coral); background: color-mix(in srgb, var(--coral) 10%, transparent); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14px; margin-top: 12px; }
.field { display: grid; grid-template-columns: 1fr 110px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.field:first-of-type { border-top: 0; }
.field input[type="number"] { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); text-align: right; font-family: var(--font-mono); }
.range { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.range input { flex: 1; accent-color: var(--deep); }
.big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.big div { background: var(--paper); border-radius: 10px; padding: 12px 14px; }
.big b { display: block; font-family: var(--font-mono); font-size: 28px; font-weight: 500; color: var(--deep); line-height: 1.2; }
.big span { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px dashed var(--line); cursor: pointer; }
.check:first-of-type { border-top: 0; }
.check input { width: 20px; height: 20px; accent-color: var(--deep); margin-top: 3px; flex: none; }
.check b { display: block; font-size: 15px; }
.check span { font-size: 13.5px; color: var(--muted); }
.missing { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }

.dims { margin-top: 14px; display: grid; gap: 6px; }
.dim { display: grid; grid-template-columns: 88px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; }
.dim .track { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.dim .track i { display: block; height: 100%; border-radius: 99px; }
.dim .v { font-family: var(--font-mono); color: var(--muted); text-align: right; }
.flag { border-left: 3px solid var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); padding: 9px 12px; border-radius: 0 8px 8px 0; font-size: 14px; margin-top: 10px; }
.flag b { display: block; }
.nextq { margin-top: 16px; }
.nextq h4 { margin: 0 0 6px; font-size: 15px; }
.nextq ol { margin: 0; padding-left: 20px; font-size: 14px; display: grid; gap: 8px; }
.nextq .who { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 99px; margin-right: 6px; vertical-align: 1px; }
.nextq .who.c { background: var(--soft); color: var(--deep); }
.nextq .who.i { background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--ink); }
.q .hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 8px; }
.opts.col { flex-direction: column; align-items: stretch; }
.opts.col .opt { text-align: left; }

/* 方案 */
.cycle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--card); margin-bottom: 22px; }
.cycle button { border: 0; background: none; padding: 6px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.cycle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plans.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan.main { border: 2px solid var(--deep); position: relative; }
.plan.main::after { content: "推薦"; position: absolute; top: -12px; right: 18px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plan h3 { font-size: 21px; font-weight: 900; }
.price b { font-family: var(--font-mono); font-size: 36px; font-weight: 500; color: var(--deep); }
.price small { color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 10px; height: 6px; border-left: 2px solid var(--coral); border-bottom: 2px solid var(--coral); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* 鎖定樣式（目前未使用） */
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--soft); border: 1px dashed var(--deep); border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; font-size: 14px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.switch input { accent-color: var(--deep); width: 18px; height: 18px; }
.locked { position: relative; }
.locked .veil { position: absolute; inset: 0; border-radius: 12px; background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(3px); display: grid; place-items: center; text-align: center; padding: 16px; }

/* 服務 */
.svc { display: flex; flex-direction: column; gap: 10px; }
.svc h3 { font-size: 21px; font-weight: 900; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; }
.svc ul { margin: 0; padding-left: 18px; font-size: 14.5px; }

/* 對話框 */
dialog { border: 0; border-radius: 16px; padding: 0; max-width: 440px; width: calc(100% - 32px); background: var(--card); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(20, 10, 30, .45); }
.dlg { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.dlg h3 { font-size: 20px; font-weight: 900; }
.dlg p { margin: 0; color: var(--muted); font-size: 15px; }
.dlg .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .item, .paths .card, .meter i { transition: none; } .item:hover, .paths .card:hover { transform: none; } }
@media (max-width: 960px) {
  .hero, .tool, .band { grid-template-columns: 1fr; }
  .photo { width: 200px; height: 200px; order: -1; }
  .photo b { font-size: 44px; }
  .grid3, .plans, .lib { grid-template-columns: repeat(2, 1fr); }
  .result { position: static; }
}
@media (max-width: 720px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 16px 14px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a.cta { margin: 6px 0 0; text-align: center; }
  .grid2, .grid3, .plans, .plans.two, .lib, .big { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
}

.tooldesc dt { font-weight: 900; margin-top: 12px; }
.tooldesc dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.qa article { border-top: 1px solid var(--line); padding: 18px 0; }
.qa h2 { font-size: 19px; font-weight: 900; margin: 0 0 8px; }
.qa p { margin: 0; color: var(--ink, inherit); font-size: 16px; line-height: 1.8; }
.libwrap > * { min-width: 0; }
.libwrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 8px; }
.lib-side { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.side-h { font-size: 13px; font-weight: 900; color: var(--muted); margin: 0 0 8px; letter-spacing: .04em; }
.side-cats { display: flex; flex-direction: column; gap: 4px; }
.side-cats button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; font: inherit; font-size: 15px; padding: 9px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.side-cats button b { font-size: 12px; color: var(--muted); font-weight: 700; }
.side-cats button:hover { background: var(--soft); }
.side-cats button[aria-pressed="true"] { background: var(--deep); color: #fff; font-weight: 700; }
.side-cats button[aria-pressed="true"] b { color: #fff; }
.side-soon { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-soon ul { margin: 0; padding: 0 0 0 16px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.side-sub { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--deep); }
.lib-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.lib-head h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; margin: 0 0 4px; }
.lib-head p { margin: 0; font-size: 14px; }
.lib-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 12px; min-width: 260px; color: var(--muted); }
.lib-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); width: 100%; }
.lc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lc { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.lc[hidden] { display: none; }
.lc:hover { transform: translateY(-3px); box-shadow: 0 12px 28px color-mix(in srgb, var(--deep) 14%, transparent); }
.lc-cover { position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px 20px; overflow: hidden; }
.lc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lc-cover strong { font-size: 19px; line-height: 1.4; font-weight: 900; color: #2a1a3a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lc-kicker { font-size: 12px; font-weight: 700; color: color-mix(in srgb, #2a1a3a 70%, transparent); }
.cv-tools { background: linear-gradient(135deg, #efe4fb, #fbe3d6); }
.cv-sales { background: linear-gradient(135deg, #ece6fb, #dcd3f6); }
.cv-team { background: linear-gradient(135deg, #fde9de, #f8d6c8); }
.cv-company { background: linear-gradient(135deg, #e3f1ea, #cfe7dc); }
.cv-fin { background: linear-gradient(135deg, #e2ecf8, #cddff3); }
.cv-field { background: linear-gradient(135deg, #f6efdd, #eee1c2); }
.lc-seen { position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 900; padding: 3px 10px; border-radius: 999px; background: #2a1a3a; color: #fff; display: none; }
.lc.is-seen .lc-seen { display: inline-block; }
.lc-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.lc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.lc-tag { font-weight: 700; color: var(--deep); background: var(--soft); padding: 2px 8px; border-radius: 6px; }
.lc-type { font-weight: 700; color: var(--muted); }
.lc-new { font-weight: 900; color: #7a4b00; background: #ffe58a; padding: 1px 7px; border-radius: 6px; }
.lc-date { margin-left: auto; color: var(--muted); font-family: "IBM Plex Mono", monospace; }
.lc-body h3 { font-size: 16px; font-weight: 900; margin: 0; line-height: 1.45; }
.lc-sum { font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 980px) { .lc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .libwrap { grid-template-columns: minmax(0, 1fr); }
  .lib-side { position: static; padding: 12px; }
  .side-cats { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .side-cats button { width: auto; white-space: nowrap; border: 1px solid var(--line); }
  .side-soon { display: none; }
  .lib-search { min-width: 0; width: 100%; }
  .lc-grid { grid-template-columns: minmax(0, 1fr); }
  .lc-cover { aspect-ratio: 2 / 1; }
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; border-radius: 50%; display: block; }
footer .copy { max-width: 640px; line-height: 1.7; }
footer .social { display: inline-flex; align-items: center; gap: 6px; }
.post { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.post h3 { font-size: 18px; font-weight: 900; margin: 0; }
.post p { margin: 0; color: var(--muted); font-size: 15px; }
.article { max-width: 720px; margin: 0 auto; padding: 40px 0 20px; }
.article h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; line-height: 1.35; margin: 8px 0 12px; }
.article .lede { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.article .cover { width: 100%; border-radius: 12px; margin: 0 0 24px; }
.article .body { font-size: 17px; line-height: 1.95; }
.article .body h2 { font-size: 24px; font-weight: 900; margin: 36px 0 12px; }
.article .body h3 { font-size: 20px; font-weight: 900; margin: 28px 0 10px; }
.article .body p, .article .body ul, .article .body ol { margin: 0 0 18px; }
.article .body img { max-width: 100%; border-radius: 10px; }
.article .body blockquote { margin: 0 0 18px; padding: 4px 18px; border-left: 3px solid var(--deep, currentColor); color: var(--muted); }
.article .crumbs { font-size: 14px; color: var(--muted); }
.article .also { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
/* ===== 轉介紹經營系統 ===== */
.rf h2 { font-size: clamp(22px, 2.8vw, 28px); }
.rf h3 { font-size: 18px; font-weight: 900; margin: 0 0 6px; }
.rf-small { font-size: 14px; margin: 6px 0; }
.rf-calc { margin-bottom: 36px; }
.rf-calc h2 { margin-bottom: 18px; }
.rf-calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.rf-f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.rf-f input, .rf-f select, .rf-sys-head select { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font-weight: 400; }
.rf-f input[type="number"] { font-family: var(--font-mono); }
.rf-calc-out { background: var(--soft); border-radius: 12px; padding: 20px; min-width: 0; }
.rf-big { font-size: 56px; font-weight: 900; line-height: 1.1; font-family: var(--font-mono); color: var(--deep); }
.rf-big small { font-size: 16px; font-family: var(--font-body); color: var(--muted); font-weight: 700; }
.rf-verdict { font-weight: 900; font-size: 18px; margin: 8px 0 14px; }
.rf-verdict.good { color: var(--good); } .rf-verdict.warn { color: var(--warn); } .rf-verdict.bad { color: var(--bad); }
.rf-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; height: 140px; margin-bottom: 6px; }
.rf-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.rf-bar i { display: block; width: 100%; background: var(--grad); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.rf-bar b { font-family: var(--font-mono); color: var(--ink); font-size: 13px; }
.rf-sys { margin-bottom: 36px; }
.rf-sys-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rf-sys-head select { width: auto; }
.rf-note { border: 1px dashed var(--deep); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; background: color-mix(in srgb, var(--soft) 50%, transparent); }
.rf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.rf-stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.rf-stat span { display: block; font-size: 13px; color: var(--muted); }
.rf-stat b { display: block; font-family: var(--font-mono); font-size: 28px; font-weight: 700; line-height: 1.3; }
.rf-stat small { display: block; font-size: 12px; color: var(--muted); }
.rf-stat.hl b { color: var(--deep); }
.rf-panel .grid2 > *, .rf-panel { min-width: 0; }
.rf-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rf-item:first-child { border-top: 0; }
.rf-item .who { min-width: 0; flex: 1 1 160px; }
.rf-item .who b { display: block; }
.rf-item .who small { color: var(--muted); font-size: 13px; }
.rf-item.late .who small { color: var(--bad); font-weight: 700; }
.rf-item .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.rf-mini { padding: 4px 10px; font-size: 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 700; }
.rf-mini:hover { border-color: var(--deep); color: var(--deep); }
.rf-mini.go { background: var(--deep); border-color: var(--deep); color: #fff; }
.rf-empty { color: var(--muted); font-size: 14px; padding: 12px 0; }
.rf-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.rf-react { border: 0; padding: 0; margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.rf-react legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.rf-react label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rf-label { font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.rf-refrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; margin-bottom: 8px; }
.rf-refrow input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.rf-refrow button { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; }
.rf-msg { font-size: 14px; font-weight: 700; margin: 10px 0 0; min-height: 1em; }
.rf-msg.ok { color: var(--good); } .rf-msg.warn { color: var(--warn); } .rf-msg.bad { color: var(--bad); }
.rf-tablewrap { overflow-x: auto; }
.rf-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.rf-table th, .rf-table td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.rf-table th { font-size: 13px; color: var(--muted); font-weight: 700; border-top: 0; }
.rf-table select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.rf-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; flex: none; }
.rf-dot.todo { background: var(--muted); } .rf-dot.contacted { background: var(--warn); } .rf-dot.met { background: var(--deep); } .rf-dot.client { background: var(--good); } .rf-dot.no { background: var(--line); border: 1px solid var(--muted); }
.rf-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.rf-tree ul { list-style: none; margin: 0; padding-left: 22px; border-left: 2px solid var(--line); }
.rf-tree > ul { padding-left: 0; border-left: 0; }
.rf-tree li { margin: 6px 0; }
.rf-node { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.rf-node small { color: var(--muted); }
.rf-node .ext { font-size: 12px; font-weight: 700; color: var(--deep); background: var(--soft); border-radius: 999px; padding: 0 8px; }
.rf-root { padding: 10px 0; border-top: 1px solid var(--line); }
.rf-root:first-child { border-top: 0; }
.rf-canvas { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
.rf-col { flex-direction: column; align-items: stretch; }
.rf-hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.rf-danger { border-color: var(--bad); color: var(--bad); }
.rf-danger:hover { background: var(--bad); color: #fff; }
.rf-next { margin-bottom: 40px; }
.rf-next p { max-width: 720px; }
@media (max-width: 760px) {
  .rf-calc-grid, .rf-row2 { grid-template-columns: 1fr; }
  .rf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-big { font-size: 44px; }
}
.rf-promo { display: flex; flex-direction: column; gap: 6px; text-decoration: none; margin-bottom: 22px; border-color: var(--deep); }
.rf-promo strong { font-size: 20px; font-weight: 900; }
.rf-promo .pill { align-self: flex-start; }
.rf-promo-go { font-weight: 900; color: var(--deep); }
.rf-promo:hover { box-shadow: 0 6px 20px color-mix(in srgb, var(--deep) 18%, transparent); }
.rf-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.rf-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rf-tools h3 { margin: 0; }
.rf-tools small { font-size: 14px; font-weight: 400; }
.rf-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.rf-filters input, .rf-filters select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 14px; }
.rf-filters input { min-width: 200px; }
.rf-table { min-width: 900px; }
.rf-table td b { font-weight: 700; }
.rf-date { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-family: var(--font-mono); font-size: 13px; }
.rf-date.late { border-color: var(--bad); color: var(--bad); font-weight: 700; }
.rf-acts { white-space: nowrap; }
.rf-acts .rf-mini { margin-right: 4px; }
.rf-mini.del:hover { border-color: var(--bad); color: var(--bad); }
.rf-notecell { max-width: 200px; color: var(--muted); }
.rf-fb { text-decoration: none; margin-left: auto; }
.rf-due { margin-bottom: 18px; border-left: 4px solid var(--coral); }
.rf-due.is-empty { border-left-color: var(--line); }
.rf-dot.pause { background: var(--line); border: 1px solid var(--muted); }
#rf-p-list .rf-panel, .rf-panel { margin-bottom: 36px; }
.rf-calc { margin: 0 0 36px; }
@media (max-width: 760px) { .rf-row3 { grid-template-columns: 1fr; } .rf-filters input { min-width: 0; flex: 1 1 100%; } .rf-fb { margin-left: 0; } }
.rf [hidden] { display: none !important; }
/* ===== AI Agent 判斷工具 ===== */
.ac-ex { margin-bottom: 18px; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 36px; }
.ac-q { border: 0; padding: 0; margin: 0 0 18px; }
.ac-q legend { font-weight: 900; font-size: 16px; margin-bottom: 8px; padding: 0; }
.ac-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-opt { display: inline-flex; align-items: center; cursor: pointer; }
.ac-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ac-opt span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--paper); transition: .15s; }
.ac-opt input:checked + span { background: var(--deep); border-color: var(--deep); color: #fff; font-weight: 700; }
.ac-opt input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.ac-out { position: sticky; top: 84px; min-width: 0; }
.ac-tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 900; font-size: 14px; color: #fff; }
.ac-tag.big { font-size: 22px; padding: 8px 18px; margin: 4px 0 12px; }
.t-auto { background: var(--good); } .t-review { background: var(--deep); } .t-flow { background: #3b6fb6; } .t-no { background: var(--bad); }
.ac-time { background: var(--soft); border-radius: 10px; padding: 10px 14px; margin: 12px 0; font-size: 15px; }
.ac-time b { font-family: var(--font-mono); font-size: 20px; margin: 0 4px; color: var(--deep); }
.ac-h { margin-top: 18px !important; }
.ac-guards { margin: 6px 0 12px; padding-left: 20px; }
.ac-guards li { margin: 6px 0; }
.ac-legend { margin-bottom: 36px; }
.ac-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.ac-cards p { font-size: 14px; margin: 8px 0 0; }
@media (max-width: 900px) { .ac-grid, .ac-cards { grid-template-columns: 1fr; } .ac-out { position: static; } }
/* ===== 文章表格與圖 ===== */
.article .tablewrap { overflow-x: auto; margin: 18px 0 24px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; min-width: 520px; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article thead th { background: var(--soft); font-weight: 900; }
.article .body img { width: 100%; max-width: 760px; height: auto; display: block; margin: 18px auto; border-radius: 12px; }
