/* TikTok私域王 官網樣式
   版面：深色單一主題，螢光綠作為唯一強調色（所有 CTA 共用，形成心錨）
   字體：Noto Sans TC（中文）＋ Archivo（數字與英文標籤） */
:root {
  --bg: #0E0F12;
  --surface: #16181C;
  --surface-2: #1D2025;
  --line: #2A2D33;
  --line-strong: #3A3D44;
  --fg: #EDEEF0;
  --muted: #B4B8C0;
  --faint: #8F949D;
  --accent: #C6F24E;
  --accent-hover: #D9FF7A;
  --on-accent: #0E0F12;
  --font-body: "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
  --font-num: "Archivo", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --maxw: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.3; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 780px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 900; font-size: 19px; white-space: nowrap; }
.brand:hover { color: var(--fg); }
.brand svg { flex: 0 0 auto; }
.nav { display: flex; gap: 4px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--surface); }
.header-cta { flex: 0 0 auto; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .header-inner { gap: 10px; min-height: 60px; position: relative; }
  .brand { flex: 1 1 auto; font-size: 18px; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; cursor: pointer; padding: 0;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; overflow: visible;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    box-shadow: 0 16px 32px rgba(0,0,0,.45);
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 17px; padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); min-height: 48px; display: flex; align-items: center; }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover, .nav a[aria-current="page"] { background: transparent; color: var(--accent); }
  body.menu-open .mobile-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .menu-toggle span { transition: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--fg); }
.btn-dark { background: var(--on-accent); color: var(--fg); }
.btn-dark:hover { background: #000; color: var(--fg); }

/* Sections */
.section { padding-block: 88px; }
.section-alt { background: var(--surface); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.eyebrow { font-family: var(--font-num); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.h1 { font-size: clamp(36px, 5.6vw, 68px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; }
.h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 900; }
.h3 { font-size: 19px; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 14px; }
.hl { color: var(--accent); }

/* Hero */
.hero { padding-block: 64px 80px; display: flex; flex-direction: column; gap: 26px; }
.pill { align-self: flex-start; display: inline-flex; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.page-hero { padding-block: 48px 56px; display: flex; flex-direction: column; gap: 18px; }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.section-alt .card { background: var(--bg); }
.section:not(.section-alt) .card.soft { background: var(--surface); border-color: transparent; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.card .quote { color: var(--fg); }
a.card { text-decoration: none; color: var(--fg); transition: border-color .15s; }
a.card:hover { border-color: var(--accent); color: var(--fg); }
.card .more { color: var(--accent); font-size: 15px; font-weight: 700; margin-top: auto; }
.step-num { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-num); font-weight: 700; font-size: 20px; }

/* Stats */
.stat-big { font-family: var(--font-num); font-weight: 700; line-height: 1; color: var(--accent); font-size: clamp(68px, 11vw, 140px); font-variant-numeric: tabular-nums; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > * { flex: 1 1 340px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat b { display: block; font-family: var(--font-num); font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; }

.callout { border: 1px solid var(--line-strong); border-radius: 18px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.callout > * { flex: 1 1 280px; min-width: 0; }
.callout .big { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; line-height: 1.45; }

/* Myth */
.myth .label { font-size: 14px; color: var(--faint); }
.myth .label.truth { color: var(--accent); }
.myth hr { border: 0; height: 1px; background: var(--line); margin: 4px 0; width: 100%; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 16px 20px; vertical-align: top; }
thead tr { background: var(--surface); }
tbody tr { border-top: 1px solid var(--line); }
td:first-child { color: var(--muted); }
th.us, td.us { color: var(--fg); font-weight: 700; }
th.us { color: var(--accent); }

/* Pricing */
.price-card { border: 2px solid var(--accent); border-radius: 20px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-family: var(--font-num); font-size: 60px; line-height: 1; font-variant-numeric: tabular-nums; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 6px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0F12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Steps list */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: s; }
.steps li { display: flex; gap: 18px; align-items: flex-start; counter-increment: s; }
.steps li::before { content: counter(s); flex: 0 0 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-num); font-weight: 700; }
.steps li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 6px; }
.steps li p { color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.section-alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-num); font-size: 22px; line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); }
.faq-group { display: flex; flex-direction: column; gap: 14px; }
.faq-group + .faq-group { margin-top: 40px; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--on-accent); border-radius: 24px; padding: clamp(36px, 6vw, 68px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta-band a:not(.btn) { color: var(--on-accent); }
.cta-band .ticks { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 500; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: var(--faint); padding-top: 28px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); }

/* Article */
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--faint); font-size: 14px; }
.prose { font-size: 17px; line-height: 1.95; color: #D3D6DB; display: flex; flex-direction: column; gap: 20px; }
.prose h2 { font-size: 26px; font-weight: 900; color: var(--fg); margin-top: 24px; }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--fg); margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--fg); }
.prose .note { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; font-size: 16px; }
.prose .table-wrap { margin: 4px 0; }
.toc { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; font-size: 15.5px; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.post-card .tag { font-size: 13px; color: var(--accent); font-weight: 700; }
.post-card h3 { font-size: 20px; }
.inline-cta { border: 1px solid var(--accent); border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.inline-cta p { color: var(--fg); font-weight: 700; flex: 1 1 260px; }

/* Phone flow mock */
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.phone-step { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.phone { width: 100%; max-width: 240px; aspect-ratio: 9 / 17; border: 2px solid var(--line-strong); border-radius: 30px; background: var(--surface); padding: 18px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.phone.on { border-color: var(--accent); }
.phone .big { font-family: var(--font-num); font-size: 40px; font-weight: 700; color: var(--accent); }
.phone small { color: var(--muted); font-size: 13px; line-height: 1.6; }
.phone .linkchip { width: 100%; margin-top: auto; border: 1px solid var(--line-strong); background: var(--bg); border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.phone .bar { width: 60%; height: 9px; border-radius: 6px; background: var(--line); align-self: flex-start; }
.phone .bar.s { width: 40%; }
.phone .ok { width: 60px; height: 60px; border-radius: 18px; background: var(--accent); display: flex; align-items: center; justify-content: center; }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-size: 15px; }

.contact-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 20px 22px; }
.contact-box code { font-family: var(--font-num); font-size: 18px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.footer-grid h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--fg); }
.footer-meta { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--faint); font-size: 14px; }

/* Mobile sticky CTA */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    align-items: center; justify-content: space-between; gap: 12px;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .mobile-bar div { display: flex; flex-direction: column; line-height: 1.4; }
  .mobile-bar b { font-size: 14px; }
  .mobile-bar span { font-size: 13px; color: var(--muted); }
  .site-footer { padding-bottom: 96px; }
  .section { padding-block: 64px; }
}

/* Blog / tutorial layout */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .blog-layout { grid-template-columns: minmax(0, 1fr); } }
.blog-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.post-card.featured h3 { font-size: clamp(22px, 2.6vw, 28px); }
.post-card.featured { padding: 32px; border-color: var(--line-strong); }
.post-head { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.post-head .tag, .post-card .tag { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--muted); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.chips a:hover { color: var(--fg); border-color: var(--fg); }
.chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
@media (max-width: 960px) { .side { position: static; } }
.side-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.section:not(.section-alt) .side-box, .blog-layout > .side .side-box { background: var(--surface); }
.section-alt .side-box { background: var(--bg); }
.side-box h2 { font-size: 15px; font-weight: 700; }
.side-cats, .side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.side-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.side-cats a:hover { background: var(--surface-2); color: var(--fg); }
.side-cats a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.side-cats span { font-family: var(--font-num); color: var(--faint); font-variant-numeric: tabular-nums; }
.side-list a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.55; border-bottom: 1px solid var(--line); }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover { color: var(--fg); }
.side-cta { border-color: var(--accent); }
.side-cta p { color: var(--muted); font-size: 15px; }
.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pager a { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--fg); }
.pager a:hover { border-color: var(--accent); color: var(--fg); }
.pager a.next { text-align: right; }
.author-box { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 22px; }
.author-box .avatar { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.author-box > div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prose code { font-family: var(--font-num); font-size: .92em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }


/* ===== 手機版優化 ===== */
.snap-hint { display: none; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .section { padding-block: 52px; }
  .section-head { margin-bottom: 24px; gap: 10px; }
  .hero { padding-block: 32px 48px; gap: 18px; }
  .page-hero { padding-block: 28px 36px; gap: 14px; }
  .h1 { font-size: clamp(30px, 8.6vw, 38px) !important; line-height: 1.25; }
  .h2 { font-size: clamp(24px, 6.6vw, 30px); }
  .lead { font-size: 16.5px; line-height: 1.8; }
  .pill { font-size: 13px; padding: 5px 12px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-row .btn { width: 100%; }
  .card { padding: 20px; }
  .callout { padding: 22px; gap: 16px; }
  .callout .big { font-size: 21px; }
  .stat-big { font-size: clamp(64px, 20vw, 88px); }

  /* 橫向滑動卡片 */
  .snap {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%;
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
    scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
    padding-bottom: 6px; scrollbar-width: none;
  }
  .snap::-webkit-scrollbar { display: none; }
  .snap > * { scroll-snap-align: start; min-width: 0; }
  .snap-hint { display: block; margin-top: 10px; font-size: 13px; color: var(--faint); text-align: right; }
  .phones.snap { grid-auto-columns: 70%; }
  .phone { max-width: 190px; padding: 14px; border-radius: 26px; }
  .phone .big { font-size: 34px; }

  /* 數據 2 欄 */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 16px; }
  .stat b { font-size: 28px; }
  .stat span { font-size: 13.5px; }

  /* 表格改卡片 */
  .table-wrap.rt { border: 0; border-radius: 0; overflow: visible; }
  .rt table { min-width: 0; font-size: 15px; }
  .rt table, .rt tbody, .rt tr, .rt td { display: block; width: 100%; }
  .rt thead { display: none; }
  .rt tbody tr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 6px 16px 10px; }
  .rt tbody tr + tr { margin-top: 12px; }
  .section-alt .rt tbody tr { background: var(--bg); }
  .rt td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; text-align: right; border-top: 1px solid var(--line); }
  .rt td::before { content: attr(data-label); flex: 0 0 auto; max-width: 45%; text-align: left; color: var(--faint); font-size: 14px; font-weight: 400; }
  .rt td:first-child { display: block; text-align: left; border-top: 0; color: var(--fg); font-weight: 700; font-size: 16.5px; padding: 10px 0 8px; }
  .rt td:first-child::before { content: none; }
  .rt td.us { color: var(--accent); }
  .rt td.us::before { color: var(--accent); opacity: .8; }

  /* FAQ、價格 */
  .faq details { padding: 16px 18px; }
  .faq summary { font-size: 16px; }
  .price b { font-size: 48px; }
  .price-card { padding: 24px; }
  .cta-band { border-radius: 20px; padding: 28px 22px; }
  .cta-band .btn { width: 100%; }

  /* 部落格 */
  .post-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .post-card.featured { padding: 22px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { white-space: nowrap; }
  .side .side-box:has(.side-list) { display: none; }
  .prose { font-size: 16.5px; line-height: 1.9; }
  .prose h2 { font-size: 22px; margin-top: 12px; }
  .prose h3 { font-size: 18px; }
  .toc { padding: 16px 18px; }
  .inline-cta { padding: 18px; }
  .inline-cta .btn { width: 100%; }
  .pager a.next { text-align: left; }
  .breadcrumb { padding-top: 16px; font-size: 13px; }
  .breadcrumb ol { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .breadcrumb li:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

  /* 頁尾 2 欄 */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid a { display: inline-block; padding-block: 4px; }
  .footer-meta { flex-direction: column; }
}
.nw { white-space: nowrap; }

/* SEO 架構新增元件 */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.related-box { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px 22px; }
.related-box h2 { font-size: 16px; margin-bottom: 10px; }
.related-box ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; }
.related-box li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.related-box a { font-weight: 700; text-decoration: none; }
.related-box span { color: var(--faint); font-size: 14px; }
.cat-intro:empty { display: none; }
.guide-banner { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--fg); max-width: 640px; }
.guide-banner:hover { background: var(--surface); color: var(--fg); }
.guide-banner b { font-size: 18px; }
