:root {
  --ink: #172033;
  --muted: #5a667a;
  --soft: #f5f7fb;
  --line: #d9e0ea;
  --brand: #1768ac;
  --brand-dark: #0c3f6f;
  --green: #2f7d62;
  --rose: #b74b63;
  --gold: #0f6f7e;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(23, 32, 51, .11);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); line-height: 1.8; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus { color: var(--brand); }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 20; transform: translateY(-140%); padding: 8px 12px; border-radius: 6px; color: var(--white); background: var(--brand-dark); font-weight: 800; box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); color: var(--white); outline: 3px solid #9fd4ff; outline-offset: 2px; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.nav { width: min(1180px, calc(100% - 32px)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; color: var(--muted); font-size: 15px; }
.hero { color: var(--white); background: linear-gradient(120deg, rgba(12,63,111,.91), rgba(23,104,172,.78)), url("ads-guide-hero.svg") center/cover; }
.hero-inner { min-height: 540px; display: grid; align-items: center; padding: 80px 0 94px; }
.hero-content { max-width: 820px; }
.eyebrow { margin: 0; color: var(--brand); font-size: 14px; font-weight: 800; }
.hero .eyebrow { color: rgba(255,255,255,.84); }
h1, h2, h3, p { margin-top: 0; overflow-wrap: anywhere; }
h1 { margin-bottom: 24px; font-size: clamp(36px, 7vw, 68px); line-height: 1.13; letter-spacing: 0; }
.hero h1 { max-width: 940px; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.18; }
h2 { margin-bottom: 12px; font-size: clamp(26px, 4vw, 42px); line-height: 1.22; letter-spacing: 0; }
h3 { line-height: 1.38; letter-spacing: 0; }
.hero p, .lead { max-width: 780px; color: rgba(255,255,255,.9); font-size: 19px; }
.section { padding: 72px 0; }
.section.alt { background: var(--soft); }
.section-head { display: grid; grid-template-columns: minmax(0, 720px) minmax(220px, 1fr); gap: 28px; margin-bottom: 30px; }
.section-head.compact { display: block; margin: 56px 0 18px; }
.section-head p, .article-card p, footer p, .article-section p, .article-section li { color: var(--muted); }
.hero-actions, .article-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; font-weight: 800; }
.button.primary { color: var(--brand-dark); background: var(--white); }
.button.secondary { color: var(--white); border-color: rgba(255,255,255,.64); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; min-width: 0; }
.article-grid.featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-card { min-width: 0; min-height: 230px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 6px 18px rgba(23,32,51,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.article-card a { display: flex; flex-direction: column; height: 100%; padding: 20px; }
.article-card:hover { transform: translateY(-2px); border-color: rgba(23,104,172,.5); box-shadow: var(--shadow); }
.article-card h3 { margin-bottom: 10px; font-size: 20px; word-break: break-word; }
.article-card p { margin-bottom: 18px; font-size: 15px; word-break: break-word; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.topic-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; color: var(--brand-dark); background: #eaf3fb; font-size: 13px; font-weight: 800; }
.read-more { margin-top: auto; color: var(--brand-dark); font-weight: 800; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.topic-card { display: flex; flex-direction: column; min-width: 0; min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 6px 18px rgba(23,32,51,.05); }
.topic-card span { margin-bottom: 14px; color: var(--brand-dark); font-size: 14px; font-weight: 800; }
.topic-card strong { margin-bottom: 10px; font-size: 22px; line-height: 1.35; }
.topic-card p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.topic-card:hover { border-color: rgba(23,104,172,.5); box-shadow: var(--shadow); }
.platform-guide { background: var(--white); }
.platform-guide-intro { max-width: 850px; margin-bottom: 28px; }
.platform-guide-intro p:last-child { color: var(--muted); font-size: 18px; }
.platform-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.guide-link-row a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand-dark); background: var(--white); font-weight: 800; }
.topic-page { background: var(--white); }
.topic-page-intro { max-width: 850px; margin-bottom: 28px; }
.topic-page-intro p:last-child { color: var(--muted); font-size: 18px; }
.topic-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.topic-guide-panel { min-width: 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.topic-guide-panel h3 { margin-bottom: 14px; font-size: 24px; }
.topic-guide-panel ol { margin: 0; padding-left: 24px; color: var(--muted); }
.topic-guide-panel li { margin: 8px 0; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.platform-card { min-width: 0; min-height: 188px; display: flex; flex-direction: column; gap: 14px; justify-content: space-between; padding: 22px; color: var(--white); border-radius: 8px; background: var(--brand); }
.platform-card span { color: rgba(255,255,255,.88); }
.platform-card.rose { background: var(--rose); }
.platform-card.dark { background: #22252c; }
.platform-card.green { background: var(--green); }
.platform-card.google { background: linear-gradient(135deg, #1a73e8 0%, #0f5fbf 58%, #174ea6 100%); }
.platform-card.gold { background: var(--gold); }
.platform-card:hover, .platform-card:focus { color: var(--white); }
.platform-logo { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 44px; gap: 9px; padding: 7px 14px; border-radius: 999px; color: var(--ink); background: var(--white); font-weight: 900; line-height: 1.25; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.platform-logo span:last-child { color: currentColor; }
.platform-logo.meta { color: #0966ff; }
.platform-logo.facebook { color: #1877f2; }
.platform-logo.instagram { color: #c13584; }
.platform-logo.threads { color: #111; }
.platform-logo.google { color: #1a73e8; }
.platform-logo.line-lap { color: #06c755; }
.logo-symbol { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; font-weight: 950; line-height: 1; }
.meta-symbol { width: 38px; height: 28px; color: #0966ff; background: transparent; border-radius: 0; }
.platform-logo.meta .meta-symbol { color: #0966ff; }
.meta-symbol svg { display: block; width: 38px; height: 28px; overflow: visible; }
.facebook-symbol { color: #fff; background: #1877f2; font-family: Arial, sans-serif; font-size: 24px; padding-top: 4px; }
.instagram-symbol { background: radial-gradient(circle at 30% 100%, #fed373 0 18%, transparent 19%), radial-gradient(circle at 30% 107%, #f15245 0 36%, transparent 37%), linear-gradient(135deg, #405de6, #c13584 48%, #f77737); }
.instagram-symbol::before { content: ""; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 5px; }
.instagram-symbol::after { content: ""; position: absolute; right: 6px; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.threads-symbol { color: #fff; background: #111; font-family: Arial, sans-serif; font-size: 18px; }
.google-symbol { background: conic-gradient(from 210deg, #4285f4 0 28%, #34a853 28% 50%, #fbbc04 50% 72%, #ea4335 72% 100%); border-radius: 7px; transform: rotate(28deg); }
.google-symbol i { display: block; width: 10px; height: 20px; border-radius: 6px; background: #fff; }
.line-symbol { width: auto; min-width: 42px; padding: 0 7px; color: #fff; background: #06c755; border-radius: 7px; font-size: 12px; letter-spacing: 0; }
.listing-hero .platform-logo { margin: 18px 0 18px; box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.listing-hero { padding: 72px 0 76px; color: var(--white); background: var(--brand); }
.listing-hero.green { background: var(--green); }
.listing-hero.google { background: linear-gradient(135deg, #1a73e8 0%, #0f5fbf 58%, #174ea6 100%); }
.listing-hero.rose { background: var(--rose); }
.listing-hero.dark { background: #22252c; }
.listing-hero.gold { background: linear-gradient(135deg, #0c3f6f 0%, #1768ac 52%, #0f6f7e 100%); }
.listing-hero .wrap { width: min(980px, calc(100% - 32px)); }
.listing-hero h1 { max-width: 820px; margin-bottom: 18px; font-size: clamp(38px, 6vw, 64px); }
.listing-hero p { max-width: 780px; margin-bottom: 0; color: rgba(255,255,255,.9); font-size: 19px; }
.listing-hero .eyebrow { color: rgba(255,255,255,.82); }
.breadcrumb.light { color: rgba(255,255,255,.92); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: 15px; font-weight: 800; }
.breadcrumb-trail a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb-trail span[aria-current="page"] { color: var(--muted); font-weight: 700; }
.breadcrumb-trail.light { color: rgba(255,255,255,.72); }
.breadcrumb-trail.light a, .breadcrumb-trail.light span[aria-current="page"] { color: rgba(255,255,255,.94); }
.breadcrumb-separator { color: currentColor; opacity: .7; }
.topic-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.topic-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand-dark); background: var(--white); font-weight: 800; }
.topic-section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); }
.topic-section:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.topic-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.topic-section-head h3 { margin-bottom: 6px; font-size: clamp(22px, 3vw, 30px); }
.topic-section-head p { max-width: 760px; margin-bottom: 0; color: var(--muted); }
.topic-section-head a { flex: 0 0 auto; color: var(--brand-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.collection-faq { background: var(--soft); }
.faq-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.faq-list details { min-width: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 8px 22px rgba(23,32,51,.05); }
.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 900; line-height: 1.55; }
.faq-list p { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.cta { color: var(--white); background: linear-gradient(120deg, var(--brand-dark), var(--green)); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.cta p { max-width: 760px; color: rgba(255,255,255,.88); }
footer { padding: 36px 0; background: #101724; color: rgba(255,255,255,.8); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; font-size: 14px; font-weight: 800; }
.footer-links a { color: rgba(255,255,255,.86); text-decoration: underline; text-underline-offset: 4px; }
.article-hero { padding: 64px 0 52px; background: var(--soft); }
.article-hero .wrap { width: min(920px, calc(100% - 32px)); }
.breadcrumb { display: inline-block; margin-bottom: 18px; color: var(--brand-dark); font-weight: 800; }
.article-hero h1 { max-width: 860px; color: var(--ink); font-size: clamp(32px, 5vw, 52px); }
.article-hero .lead { max-width: 780px; color: var(--muted); font-size: 18px; }
.article-tags span { padding: 6px 10px; border-radius: 999px; color: var(--brand-dark); background: #eaf3fb; font-size: 14px; font-weight: 800; }
.article-layout { display: block; width: min(900px, calc(100% - 32px)); padding: 42px 0 64px; }
.toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 0 18px; margin-bottom: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.toc strong { flex: 0 0 100%; color: var(--brand-dark); font-size: 16px; }
.toc a { color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.article-content { max-width: 820px; margin: 0 auto; font-size: 17px; }
.article-section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.article-section:last-child { border-bottom: 0; }
.article-section h2 { font-size: clamp(24px, 2.8vw, 34px); }
.article-section ol { padding-left: 28px; }
.article-section li { margin: 10px 0; }
.check-list li::marker { color: var(--brand-dark); font-weight: 800; }
.quick-answer { padding: 28px 30px; border: 1px solid rgba(23,104,172,.22); border-radius: 8px; background: #f1f7fc; }
.quick-answer h2 { color: var(--brand-dark); }
.quick-answer ul { margin-bottom: 0; padding-left: 24px; }
.quick-answer li::marker { color: var(--brand); font-weight: 800; }
.faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; }
.references-card { padding: 34px 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(23,32,51,.05); }
.references-card h2 { margin-bottom: 22px; font-size: clamp(28px, 3.4vw, 40px); }
.reference-list { margin: 0; padding-left: 28px; }
.reference-list li { color: var(--ink); font-size: 18px; line-height: 1.9; }
.reference-list a { color: #00615f; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.related-reading { padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.related-heading { margin-bottom: 18px; }
.related-heading h2 { font-size: clamp(26px, 3.4vw, 38px); }
.related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.related-list a { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.related-list a:hover { border-color: rgba(23,104,172,.5); box-shadow: 0 10px 24px rgba(23,32,51,.07); }
.related-list span { margin-bottom: 8px; color: var(--brand); font-size: 13px; font-weight: 800; }
.related-list strong { margin-bottom: 8px; color: var(--ink); line-height: 1.45; }
.related-list em { color: var(--muted); font-style: normal; font-size: 14px; line-height: 1.7; }
.sitemap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 54px; }
.sitemap-panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 6px 18px rgba(23,32,51,.05); }
.sitemap-panel ul, .sitemap-article-list { margin: 0; padding: 0; list-style: none; }
.sitemap-panel li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sitemap-panel li:last-child { border-bottom: 0; }
.sitemap-panel a, .sitemap-article-list a { color: var(--brand-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.sitemap-panel p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.sitemap-group { padding: 28px 0; border-top: 1px solid var(--line); }
.sitemap-group h2 { font-size: clamp(24px, 3vw, 34px); }
.sitemap-article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.sitemap-article-list li { display: grid; gap: 2px; min-width: 0; }
.sitemap-article-list span { color: var(--muted); font-size: 13px; font-weight: 800; }
.question-group { padding: 34px 0; border-top: 1px solid var(--line); }
.question-group:first-of-type { border-top: 0; }
.question-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.question-hub-card { display: flex; flex-direction: column; min-width: 0; min-height: 178px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 6px 18px rgba(23,32,51,.05); }
.question-hub-card:hover { border-color: rgba(23,104,172,.5); box-shadow: var(--shadow); }
.question-hub-card span { margin-bottom: 10px; color: var(--brand); font-size: 13px; font-weight: 800; }
.question-hub-card strong { margin-bottom: 10px; color: var(--ink); font-size: 19px; line-height: 1.48; overflow-wrap: anywhere; }
.question-hub-card em { color: var(--muted); font-style: normal; font-size: 14px; line-height: 1.7; }
.glossary-group { padding: 34px 0; border-top: 1px solid var(--line); }
.glossary-group:first-of-type { border-top: 0; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.glossary-card { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 258px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 6px 18px rgba(23,32,51,.05); }
.glossary-card span { display: inline-flex; width: fit-content; margin-bottom: 12px; padding: 4px 9px; border-radius: 999px; color: var(--brand-dark); background: #eaf3fb; font-size: 13px; font-weight: 900; }
.glossary-card h3 { margin-bottom: 10px; color: var(--ink); font-size: 22px; }
.glossary-card p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.glossary-alias { margin-top: 12px; font-size: 14px; }
.glossary-more { display: inline-flex; width: fit-content; margin-top: 16px; color: var(--brand-dark); font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1000px) {
  .section-head, .cta-inner, .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .article-grid, .article-grid.featured, .platform-grid, .topic-grid, .platform-guide-grid, .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { justify-content: flex-start; }
  .hero-inner { min-height: 500px; padding: 64px 0 78px; }
  .article-grid, .article-grid.featured, .platform-grid, .topic-grid, .platform-guide-grid, .topic-guide-grid, .faq-list, .sitemap-grid, .sitemap-article-list, .question-hub-grid, .glossary-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 0; }
  .topic-card { min-height: 0; }
  .topic-section-head { display: block; }
  .topic-section-head a { display: inline-block; margin-top: 12px; }
  .section { padding: 56px 0; }
  .toc { gap: 8px 12px; }
  .article-content { font-size: 16.5px; }
  .references-card { padding: 28px 22px; }
  .quick-answer { padding: 24px 18px; }
  .related-reading { padding: 24px 18px; }
  .related-list { grid-template-columns: 1fr; }
}