/* 全站共用：產品下拉、手機選單（最後載入，覆蓋原型樣式） */
.nav-biz .dd { position: relative; }
.nav-biz .dd-menu { display: none; position: absolute; top: 100%; left: -16px; z-index: 50; min-width: 240px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(14,26,48,.12); }
.nav-biz .dd:hover .dd-menu, .nav-biz .dd:focus-within .dd-menu { display: block; }
.nav-biz .dd-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 400; }
.nav-biz .dd-menu a:hover { background: #F3F6FB; }
.nav-biz .dd-menu b { display: block; color: var(--navy); }
.nav-biz .dd-menu small { color: var(--ink-3); font-size: 12.5px; }
.nav-biz a.on, .nav-topics a.on { text-decoration: underline; text-underline-offset: 4px; }
.m-menu { display: none; }
@media (max-width: 1100px) {
  .nav-row { position: relative; }
  .nav-topics { padding-right: 64px; }
  .m-menu { display: block; position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 70; }
  .wrap > .m-menu { right: 16px; }
  .m-menu summary { list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--navy); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
  .m-menu summary::-webkit-details-marker { display: none; }
  .m-menu[open] summary { background: var(--navy); color: #fff; border-color: var(--navy); }
  .m-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 240px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(14,26,48,.16); display: flex; flex-direction: column; }
  .m-panel a { padding: 11px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; }
  .m-panel a small { margin-left: 8px; color: var(--ink-3); font-size: 12.5px; }
  .m-panel a:hover { background: #F3F6FB; }
  .m-panel .btn { margin-top: 6px; justify-content: center; color: #fff; }
}
@media (max-width: 760px) { .mast-actions .btn-line { display: none; } }

/* 手機體驗修正（2026-10-07 實測） */
@media (max-width: 1100px) {
  .toc h4 { display: none; }               /* 手機不顯示目錄清單，標題也一起收起 */
}
@media (max-width: 760px) {
  .mast-brand span { font-size: 11px; letter-spacing: .12em; white-space: nowrap; margin-top: 4px; }
  .related .card-row { grid-template-columns: 1fr !important; }
  .related .card-row > a { padding: 0 !important; }
  .related .card-row > a + a { border-top: 1px solid var(--line); padding-top: 20px !important; }
}
@media (max-width: 700px) {
  .flow li:first-child { flex: none; }      /* 顧問頁報價單流程：第一格不要撐高 */
}
@media (max-width: 600px) {
  .frame.back { right: 0; width: 92%; }
  .tpl div.t { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; }
  .tpl b { font-size: 15.5px; }
}

/* 字級層次加深（2026-10-07）：標題由細體改一般粗細，內文說明改一般粗細並加深灰色；大數字維持細體 */
:root { --ink-2: #384257; }
.p-title, .p-hero h1, .e-hero h1, .art-head h1, .topic-hero h1, .p-close h2,
.basics-head h2, .banner-inner h2, .demo-copy h2, .event-copy h2,
.feature-body .hl, .pick .hl, .vid.big .hl, .turn-b, .fd-txt, .foot-top .statement,
.vhub h1, .vdetail h1, .nf h1 { font-weight: 500; }
.p-lead, .dek, .art-head .dek, .topic-hero .desc, .p-hero .sub, .e-hero .sub,
.basics-head p, .banner-inner p, .demo-copy p, .event-copy p, .made-card p, .turn-c { font-weight: 400; }

/* 文章頁：目錄閱讀進度與頂端進度條（2026-10-12） */
.toc-head { display: flex; justify-content: space-between; align-items: baseline; }
.toc-head h4 { margin-bottom: 8px; }
.toc-pct { font-size: 12px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.toc-bar { height: 2px; background: var(--line); margin-bottom: 14px; overflow: hidden; }
.toc-bar i, .read-progress i { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }
.read-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 80; height: 3px; background: transparent; }
@media (prefers-reduced-motion: reduce) { .toc-bar i, .read-progress i { transition: none; } }
@media (max-width: 1100px) {
  .toc-head, .toc-bar { display: none; }
}

/* 主題頁：主題說明（2026-10-12） */
.topic-intro { margin-top: 56px; padding-top: 22px; border-top: 2px solid var(--navy); max-width: 46em; }
.topic-intro h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--navy); margin: 0 0 14px; }
.topic-intro p { font-size: 16px; line-height: 1.9; color: var(--ink-2); margin: 0 0 14px; }
.topic-start { display: inline-block; margin-top: 6px; padding-bottom: 3px; border-bottom: 1px solid var(--navy); font-size: 15px; font-weight: 700; color: var(--navy); }
.topic-start:hover { color: var(--orange); border-color: var(--orange); }

/* 2026-10-12 手機檢視修正（docs/launch/MOBILE_AUDIT_2026-10-12.md） */
.prose { overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }            /* 長網址不再撐寬整頁 */
.m-panel .m-group { padding: 10px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
@media (max-width: 1100px) {
  .nav-row::after { content: ""; position: absolute; top: 0; bottom: 0; right: 64px; width: 40px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 85%); pointer-events: none; } /* 提示主題列可左右滑動 */
  .m-panel { max-height: calc(100vh - 150px); overflow-y: auto; }
  .m-panel a { padding: 12px; }
}
@media (max-width: 760px) {
  .mast-brand span { font-size: 12px; }
  .foot-top a { padding: 11px 0; }               /* 頁尾連結點擊區加大到 44px 以上 */
  .form-note a, .nf-acts a { display: inline-block; padding: 10px 0; }
  .e-cap, .memo-cap, .ai-label, .ui-tag, .doc-cap, .doc-logo, .pick .label { font-size: 12px; }
  figcaption { font-size: 12px; }
}
/* 手機頁首留白（Owner 10/12：頂部太擠） */
@media (max-width: 760px) {
  .mast-top { padding-top: 18px; padding-bottom: 14px; column-gap: 14px; }
  .mast-brand img { height: 19px; }
  .mast-brand span { margin-top: 7px; }
  .mast-actions .btn { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 6px; }
  .nav-topics a { padding: 13px 0 12px; }
}
/* 2026-10-12 第二輪手機修正 */
button.btn { border: 0; }                                        /* 去掉瀏覽器預設的灰色按鈕邊框 */
.dur { color: #fff; }
.m-panel { width: 260px; }
.foot-bottom { gap: 16px; }
@media (max-width: 760px) {
  .tap-hint { display: none; }                                   /* 手機不顯示互動圖，提示一併隱藏 */
  .vid.big .cap { position: static; padding: 14px 0 0; background: none; } /* 縮圖本身已有標題，文字改放圖下方 */
  .vid.big .hl { color: var(--white); font-size: 19px; }
  .vid .play, a.tv .tv-thumb .play { left: 10px; top: auto; bottom: 10px; transform: none; width: 36px; height: 36px; font-size: 13px; }
  .tabs { scroll-behavior: smooth; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
