/* =====================================================
   帕森斯 Parsons — 內容頁元件（文章、支柱頁、目錄、側欄）
   搭配模板 main.css 使用，沿用模板色票 --ztc-*
   ===================================================== */
:root {
  --p-brand: #4E2FDA;
  --p-brand-soft: #EDE9F8;
  --p-ink: #090B0E;
  --p-text: #3D4C5E;
  --p-line: #E2E0F2;
  --p-bg-soft: #F6F5FD;
  --p-accent: #FB3189;
  --p-radius: 12px;
}

body { font-family: 'Figtree', "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }

/* ---------- 內頁主視覺 ---------- */
.p-inner-hero .about-inner-header h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.35; }
.p-breadcrumb { margin-top: 12px; font-size: 15px; color: var(--p-ink); }
.p-breadcrumb a { color: var(--p-ink); text-decoration: none; }
.p-breadcrumb a:hover { color: var(--p-brand); }
.p-breadcrumb i { margin: 0 8px; font-size: 12px; }
.p-breadcrumb span { font-weight: 600; }

/* ---------- 區塊 ---------- */
.p-section { position: relative; }
.p-bg-soft { background: var(--p-bg-soft); }
.p-section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--p-ink); margin-bottom: 32px; line-height: 1.4; }
.p-intro h5 { color: var(--p-brand); font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.p-intro h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.35; margin-bottom: 16px; }
.p-intro p { font-size: 17px; line-height: 1.85; color: var(--p-text); }
.p-intro a:not(.header-btn1):not(.p-btn-ghost), .p-prose a, .p-faq a, .p-note a { color: var(--p-brand); text-decoration: underline; text-underline-offset: 3px; }
.p-btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.p-btn-ghost { display: inline-block; padding: 14px 26px; border: 1.5px solid var(--p-brand); border-radius: 8px; color: var(--p-brand); font-weight: 600; transition: .3s; }
.p-btn-ghost:hover { background: var(--p-brand); color: #fff; }

/* ---------- 卡片 ---------- */
.p-pain, .p-service, .p-fit, .p-side-box {
  background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 28px 26px; margin-bottom: 24px; height: calc(100% - 24px);
}
.p-pain .p-num { display: inline-block; font-size: 14px; font-weight: 700; color: var(--p-brand); background: var(--p-brand-soft); border-radius: 20px; padding: 2px 12px; margin-bottom: 12px; }
.p-pain h3, .p-service h3 { font-size: 20px; line-height: 1.45; margin-bottom: 10px; color: var(--p-ink); }
.p-pain p, .p-service p { font-size: 16px; line-height: 1.8; color: var(--p-text); margin: 0; }
.p-service img { width: 52px; height: 52px; margin-bottom: 16px; }
.p-service-link { display: block; transition: .3s; }
.p-service-link:hover { border-color: var(--p-brand); box-shadow: 0 12px 30px rgba(78, 47, 218, .12); transform: translateY(-4px); }
.p-service-link .p-more { display: inline-block; margin-top: 14px; color: var(--p-brand); font-weight: 600; }
.p-fit { background: var(--p-brand-soft); border: none; }
.p-fit h3, .p-side-box h3 { font-size: 20px; margin-bottom: 16px; color: var(--p-ink); }
.p-checks { padding: 0; margin: 0 0 8px; list-style: none; }
.p-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.7; color: var(--p-text); margin-bottom: 10px; }
.p-checks li img { width: 20px; margin-top: 4px; flex-shrink: 0; }

/* ---------- 流程 ---------- */
.p-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: none; }
.p-steps li { background: #fff; border: 1px solid var(--p-line); border-top: 4px solid var(--p-brand); border-radius: var(--p-radius); padding: 24px 22px; }
.p-step-n { font-size: 13px; letter-spacing: .08em; font-weight: 700; color: var(--p-brand); }
.p-steps h3 { font-size: 19px; margin: 8px 0 8px; color: var(--p-ink); }
.p-steps p { font-size: 15px; line-height: 1.75; color: var(--p-text); margin: 0; }

/* ---------- 案例卡 ---------- */
.p-case { display: block; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 22px; margin-bottom: 24px; transition: .3s; }
.p-case:hover { border-color: var(--p-brand); transform: translateY(-3px); }
.p-case .p-tag { display: inline-block; font-size: 13px; color: var(--p-accent); font-weight: 600; margin-bottom: 6px; }
.p-case strong { display: block; font-size: 19px; color: var(--p-ink); margin-bottom: 6px; }
.p-case > span:not(.p-tag):not(.p-more) { font-size: 15px; color: var(--p-text); line-height: 1.7; }
.p-case-box .content-area .head { font-size: 20px; }

/* ---------- 文章內文 ---------- */
.p-article .img1 img { width: 100%; border-radius: var(--p-radius); }
.p-prose { font-size: 17px; line-height: 1.95; color: var(--p-text); }
.p-prose > p, .p-prose p { margin: 0 0 18px; font-size: 17px; line-height: 1.95; color: var(--p-text); }
.p-prose p.lead { font-size: 18.5px; color: var(--p-ink); background: var(--p-bg-soft); border-left: 4px solid var(--p-brand); padding: 18px 22px; border-radius: 0 var(--p-radius) var(--p-radius) 0; }
.p-prose h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.45; color: var(--p-ink); margin: 44px 0 16px; scroll-margin-top: 110px; }
.p-prose h3 { font-size: 20px !important; line-height: 1.5; color: var(--p-ink); margin: 28px 0 12px !important; }
.p-prose ul, .p-prose ol { margin: 0 0 20px; padding-left: 1.4em; }
.p-prose li { margin-bottom: 10px; line-height: 1.85; }
.p-prose ul.checklist { list-style: none; padding-left: 0; }
.p-prose ul.checklist li { position: relative; padding-left: 32px; }
.p-prose ul.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--p-brand); color: #fff; font-size: 13px; line-height: 22px; text-align: center; }
.p-prose ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
.p-prose ol.steps li { counter-increment: step; position: relative; padding-left: 44px; }
.p-prose ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--p-brand-soft); color: var(--p-brand); font-weight: 700; line-height: 30px; text-align: center; }
.p-prose strong { color: var(--p-ink); }
.p-prose blockquote { border-left: 4px solid var(--p-accent); background: #FFF5F9; padding: 16px 22px; margin: 24px 0; border-radius: 0 var(--p-radius) var(--p-radius) 0; }
.p-prose blockquote p { margin: 0; color: var(--p-ink); }
.p-prose .callout { background: var(--p-brand-soft); border-radius: var(--p-radius); padding: 20px 24px; margin: 24px 0; }
.p-prose .callout p:last-child { margin-bottom: 0; }

.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15.5px; background: #fff; display: block; overflow-x: auto; }
.data-table thead, .data-table tbody { display: table; width: 100%; min-width: 560px; table-layout: auto; }
.data-table th { background: var(--p-brand); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
.data-table td { border-bottom: 1px solid var(--p-line); padding: 12px 14px; vertical-align: top; line-height: 1.7; color: var(--p-text); }
.data-table tbody tr:nth-child(even) td { background: var(--p-bg-soft); }
.data-table thead { display: table-header-group; }
.data-table tbody { display: table-row-group; }

/* 目錄 */
.p-toc { background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 20px 24px; margin: 8px 0 28px; }
.p-toc-title { font-weight: 700; color: var(--p-ink) !important; margin-bottom: 8px !important; }
.p-toc ol { margin: 0; padding-left: 1.3em; }
.p-toc li { margin-bottom: 6px; font-size: 16px; }
.p-toc a { color: var(--p-text); text-decoration: none; }
.p-toc a:hover { color: var(--p-brand); }

/* FAQ */
.p-faq { margin-top: 44px; }
.p-faq .accordion-item { border: 1px solid var(--p-line) !important; border-radius: var(--p-radius) !important; overflow: hidden; }
.p-faq .accordion-button { font-size: 17px; font-weight: 600; line-height: 1.6; }
.p-faq .accordion-body { font-size: 16px; line-height: 1.85; }

/* 文末 CTA */
.p-inline-cta { margin: 40px 0 30px; padding: 28px; border-radius: var(--p-radius); background: linear-gradient(135deg, var(--p-brand) 0%, #6455E1 100%); color: #fff; }
.p-inline-cta h3 { color: #fff !important; font-size: 22px !important; margin-bottom: 8px !important; }
.p-inline-cta p { color: #F1EEFF; font-size: 16px; line-height: 1.8; }
.p-inline-cta p a { color: #fff; text-decoration: underline; }
.p-inline-cta .header-btn1 { background: #fff; color: var(--p-brand); margin-top: 8px; }

/* 側欄 */
.p-sidebar { position: sticky; top: 110px; }
.p-side-box { height: auto; }
.p-side-accent { background: var(--p-brand-soft); border: none; }
.p-side-accent p { font-size: 15px; line-height: 1.8; color: var(--p-text); }
.p-side-list { list-style: none; padding: 0; margin: 0; }
.p-side-list li { border-bottom: 1px dashed var(--p-line); }
.p-side-list li:last-child { border-bottom: none; }
.p-side-list a { display: block; padding: 10px 0; font-size: 15.5px; line-height: 1.6; color: var(--p-ink); }
.p-side-list a:hover { color: var(--p-brand); }

/* 專欄集群 */
.p-cluster { margin-bottom: 40px; scroll-margin-top: 110px; }
.p-cluster-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--p-line); padding-bottom: 12px; margin-bottom: 26px; }
.p-cluster-head h2 { font-size: 26px; margin: 0; }
.p-cluster-head a { color: var(--p-brand); font-weight: 600; }
.p-card-equal .content-area > a:not(.readmore) { display: block; line-height: 1.5; }

/* 其他 */
.p-note { font-size: 14.5px !important; color: #6B7686 !important; }
.p-legal h2 { font-size: 22px; }
.p-404-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.p-404-links a { padding: 8px 16px; border: 1px solid var(--p-line); border-radius: 20px; color: var(--p-ink); }
.p-404-links a:hover { border-color: var(--p-brand); color: var(--p-brand); }

/* 浮動 LINE 按鈕 */
.p-line-float { position: fixed; left: 18px; bottom: 22px; z-index: 99; display: flex; align-items: center; gap: 8px; background: #06C755; color: #fff; padding: 12px 18px; border-radius: 30px; font-weight: 600; box-shadow: 0 8px 24px rgba(6, 199, 85, .35); }
.p-line-float:hover { color: #fff; transform: translateY(-2px); }
.p-line-float i { font-size: 22px; }

/* 下拉選單文字換行 */
.main-menu ul li ul.dropdown-padding { min-width: 240px; }

@media (max-width: 991px) {
  .p-sidebar { position: static; margin-top: 30px; }
  .p-prose, .p-prose p { font-size: 16px; }
  .p-section-title { margin-bottom: 24px; }
}
@media (max-width: 575px) {
  .p-line-float span { display: none; }
  .p-line-float { padding: 14px; }
  .p-inline-cta { padding: 22px 18px; }
}

/* 文章卡片在非 blog 區塊沿用模板樣式 */
.p-cards.blog1-scetion-area { padding: 0 !important; background: none !important; }
.p-cards .blog-author-boxarea .img1 img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.blog-author-boxarea .img1 img[src$=".svg"] { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.p-case-img img { display: block; width: 100% !important; height: auto !important; max-height: none !important; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.p-case-img .p-more { display: block; margin-top: 12px; color: var(--p-brand) !important; font-weight: 600; font-size: 15px; }
