/* v2/css/page-inner.css  inner 页面群组专属样式（由对应开发者维护）。只动 transform/opacity，不用 backdrop-filter 与 SVG 滤镜。 */
/* 詳情頁（systems / training / question / document，Agent E）：其餘樣式沿用 base / theme-classic 既有規則 */

/* 正文內按鈕（文末詢問卡）不套正文連結底線 */
.page-body .prose .cx5-endcta a, .page-body .prose .cx5-endcta a:hover { text-decoration: none; }

/* 相關標準卡片：語系表沒有簡介時，「了解更多」仍貼齊卡片底部 */
.related .svc-card .link-arrow { margin-top: auto; }

/* 公開文件：多個附件時的下載清單 */
.doc-files { margin-top: 18px; }
.doc-files h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.page-body .prose .doc-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.page-body .prose .doc-files li { margin: 0; padding: 0; }
.page-body .prose .doc-files li::before { content: none; }
.page-body .prose .doc-files a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.page-body .prose .doc-files a:hover { border-color: var(--brand); color: var(--brand); }
.doc-files svg { width: 16px; height: 16px; flex: none; color: var(--brand); }
.doc-files span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; font-size: 14.5px; }
.doc-files small { flex: none; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.doc-note { margin-top: 14px; }

/* 文件掃描圖 / 正文大圖不超出欄寬 */
.page-body .prose img { max-width: 100%; height: auto; }

/* ---------- 詳情頁分享列（inc/share-bar.asp，Agent M） ---------- */
.print-url { display: none; }
.share-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-label { margin-right: 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
html[data-lang="th"] .share-label, html[data-lang="km"] .share-label { letter-spacing: 0; }
.page-body .prose .share-btn, .share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface, #fff); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: color .2s, border-color .2s, transform .2s; }
.share-btn svg { width: 17px; height: 17px; flex: none; }
.page-body .prose .share-btn:hover, .share-btn:hover, .share-btn:focus-visible { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); text-decoration: none; }
.share-btn.share-line:hover { color: #06c755; border-color: #06c755; }
.share-btn.share-facebook:hover { color: #1877f2; border-color: #1877f2; }
.share-btn.share-linkedin:hover { color: #0a66c2; border-color: #0a66c2; }
.share-wide { padding: 0 15px 0 13px; }
.share-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.share-toast { margin-left: 4px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.share-toast.is-on { opacity: 1; transform: none; }
.share-toast:empty { visibility: hidden; }
@media (max-width: 480px) {
  .share-label { flex-basis: 100%; margin-bottom: 2px; }
  .share-wide span { display: none; }
  .share-wide { padding: 0 11px; }
}

/* ---------- 404 頁（404.asp，Agent M） ---------- */
.nf-hero .cx-ph-mark { opacity: .9; }
.nf-body { padding-top: 64px; }
.nf-in { max-width: 860px; }
.nf-search { margin: 0 0 14px; }
.nf-url { margin: 0 0 40px; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.nf-url code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--bg-alt); color: var(--ink); }
.nf-go { margin: 0 0 16px; font-size: 15px; letter-spacing: .06em; color: var(--muted); }
.nf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nf-card { display: flex; align-items: center; gap: 14px; padding: 20px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface, #fff); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .25s; }
.nf-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.nf-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--bg-alt); color: var(--brand); }
.nf-ico svg { width: 22px; height: 22px; }
.nf-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nf-txt b { font-size: 16px; }
.nf-txt small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.nf-card > svg { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .25s, color .2s; }
.nf-card:hover > svg { color: var(--brand); transform: translateX(3px); }
@media (max-width: 760px) { .nf-grid { grid-template-columns: minmax(0, 1fr); } .nf-body { padding-top: 40px; } }

/* ---------- 列印（詳情頁「列印」按鈕 / 瀏覽器列印） ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .skip, .site-header, .drawer, .site-footer, #cx-dock, .cx-dock, .cx-top, .cx-mbar, .cx-progress, #cx-loader, .cx-cursor-dot, .cx-cursor-ring,
  .side-nav, .side-cta, .cta-band, .related, .cx5-endcta, .share-bar, .insight-pager, .insight-back, .cx5-ph-art, .cx-ph-mark, .cx5-toc, .cx5-toc-side, .nf-search { display: none !important; }
  /* 進場動畫的初始狀態（透明 / 位移 / 裁切）在列印時一律取消，避免未捲到的段落印成空白 */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .cx-up, .cx-pop, .cx-wipe, .cx-wipe img, [class*="cx5-"] { opacity: 1 !important; transform: none !important; clip-path: none !important; scale: none !important; }
  main, .page-body, .prose { color: #000 !important; }
  .page-hero, .cx5-ph { padding: 0 0 10px !important; margin: 0 !important; background: none !important; color: #000 !important; border-bottom: 1.5px solid #000; min-height: 0 !important; }
  .page-hero::before, .page-hero::after, .cx5-ph::before, .cx5-ph::after { display: none !important; }
  .page-hero .crumbs, .page-hero .crumbs a, .page-hero .eyebrow, .page-hero .lead { color: #333 !important; opacity: 1 !important; }
  .page-hero h1 { color: #000 !important; font-size: 24pt !important; max-width: none !important; -webkit-text-fill-color: #000 !important; }
  .print-url { display: block; margin: 6px 0 0; font-size: 9.5pt; color: #333; overflow-wrap: anywhere; }
  .wrap { width: auto !important; max-width: none !important; padding: 0 !important; }
  .page-body { display: block !important; padding: 14px 0 0 !important; }
  .prose, .prose * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
  .prose a { text-decoration: underline; }
  .prose h2, .prose h3, .prose h4 { break-after: avoid; page-break-after: avoid; }
  .prose img, .prose table, .prose figure, .prose tr, .prose pre, .prose blockquote, .doc-bar, .doc-files li { break-inside: avoid; page-break-inside: avoid; }
  .prose img { max-width: 100% !important; }
  .content_mobile { display: none !important; }
  .content_computer { display: block !important; }
}
