/* 對齊官網(examly-web globals)字型:Noto Sans TC 未實際載入 → 全站 fallback PingFang TC,
   覆寫 eq.css 的 --font(原 fallback 到 Nunito/system-ui)讓整頁 Latin/數字與官網一致 */
:root { --font: "Noto Sans TC","PingFang TC","Microsoft JhengHei",Arial,sans-serif; --font-num: "Noto Sans TC","PingFang TC","Microsoft JhengHei",Arial,sans-serif; }
body { background: var(--surface); font-family: var(--font); }
/* body 是 flex-col:auto 側邊距的 flex 子項會縮成內容寬 → 補 width:100% */
.qp-navwrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.qp-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.qp-nav-in { display: flex; align-items: center; gap: 16px; height: 66px; }
.qp-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qp-brand img { width: 34px; height: 34px; }
.qp-wordmark { font-size: 1.36rem; color: var(--ink); vertical-align: middle; }
.qp-wordmark-sm { font-size: 1.18rem; color: #fff; vertical-align: middle; }
.qp-nav .sp { flex: 1; } .qp-nav .nlink { font-weight: 700; font-size: .92rem; color: var(--ink-2); padding: 9px 13px; border-radius: var(--r-sm); } .qp-nav .nlink:hover { background: var(--sunk); }
.qp-nav .btn, .qp-nav .nlink { white-space: nowrap; flex-shrink: 0; }
.qp-nav .public-practice { padding: 9px 18px; }
.qp-nav .nav-acct { flex-shrink: 0; }
.nav-auth-skel { display: inline-block; width: 92px; height: 38px; border-radius: var(--r-pill); background: var(--sunk); }
.nav-acct { position: relative; }
.nav-acct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); cursor: pointer; font-weight: 800; color: var(--ink); }
.nav-acct-btn:hover { background: var(--sunk); }
.nav-acct-av { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.nav-acct-name { font-size: .9rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-acct-chev { color: var(--muted); flex-shrink: 0; }
.nav-acct-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 172px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--sh-md); padding: 6px; display: flex; flex-direction: column; }
.nav-acct-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 700; font-size: .9rem; color: var(--ink-2); background: none; border: none; cursor: pointer; text-align: left; width: 100%; text-decoration: none; }
.nav-acct-item:hover { background: var(--sunk); }
.nav-acct-item svg { color: var(--muted); flex-shrink: 0; }
.qp-shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0,1fr) 296px; gap: 34px; align-items: start; }
.qp-main { min-width: 0; max-width: 760px; }
.crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; font-weight: 700; color: var(--muted); padding: 22px 0 8px; }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--teal); } .crumb .cur { color: var(--ink-2); }
.qp-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.qp-tags .chip, .pub-oa-h .chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.qp-h1 { font-size: 1.7rem; line-height: 1.5; letter-spacing: -.01em; font-weight: 800; margin-bottom: 4px; }
.qp-opts { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.qp-opt { display: flex; align-items: flex-start; gap: 14px; padding: 15px 17px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); line-height: 1.5; }
.qp-opt .opt-letter { margin-top: 1px; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--sunk); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.qp-opt.is-ans { border-color: var(--green); background: var(--green-bg); } .qp-opt.is-ans .opt-letter { background: var(--green); color: #fff; }
.qp-opt .ans-tag { margin-left: auto; flex-shrink: 0; align-self: center; }
.qp-opt-t { flex: 1; min-width: 0; }
.opt-fig { flex: 1; min-width: 0; max-height: 180px; object-fit: contain; object-position: left center; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); padding: 4px; }
.qp-passage { border: 1px solid var(--line-2); border-left: 3px solid var(--teal); background: var(--raised); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 18px; }
.qp-passage-h { font-size: .78rem; font-weight: 800; color: var(--teal); margin-bottom: 8px; }
.qp-passage-b { white-space: pre-line; line-height: 1.95; color: var(--ink-2); font-size: .98rem; }
.qp-figs { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 18px 0 4px; }
.qp-fig { max-width: 100%; max-height: 520px; object-fit: contain; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; padding: 6px; }
.qp-main .katex { font-size: 1.04em; }
.qp-h1 .katex { font-size: 1em; }
.qp-jump { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 4px; font-weight: 700; font-size: .86rem; color: var(--muted); } .qp-jump .ln { flex: 1; height: 1px; background: var(--line); }
.ansbar { display: flex; align-items: center; gap: 18px; background: var(--teal-50); border: 1.5px solid var(--teal-100); border-radius: var(--r-lg); padding: 18px 22px; margin-bottom: var(--gap); }
.ansbar .big { min-width: 56px; height: 56px; padding: 0 10px; border-radius: 14px; background: var(--teal); color: #fff; font-size: 1.7rem; font-weight: 900; display: grid; place-items: center; flex-shrink: 0; }
.ansbar-reviewed { align-items: flex-start; flex-wrap: wrap; }
.ansbar-reviewed .big { max-width: 100%; height: auto; min-height: 44px; padding: 8px 12px; font-size: 1.1rem; line-height: 1.5; overflow-wrap: anywhere; }
.ansbar-reviewed > div { flex: 1 1 260px; min-width: 0; }
.ansbar .lbl { font-size: .74rem; font-weight: 800; letter-spacing: .08em; color: var(--teal); } .ansbar .txt { font-weight: 800; font-size: 1.1rem; margin-top: 2px; } .ansbar .note { font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.prose { font-size: 1.02rem; line-height: 1.85; color: var(--ink-2); }
.pub-oa-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pub-oa { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 13px 15px; background: var(--surface); }
.pub-oa.ok { border-color: var(--green); background: var(--green-bg); }
.pub-oa-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pub-oa-h .opt-letter { width: 24px; height: 24px; border-radius: 7px; background: var(--sunk); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.pub-oa.ok .pub-oa-h .opt-letter { background: var(--green); color: #fff; }
.pub-oa-t { font-weight: 700; color: var(--ink-2); flex: 1; min-width: 140px; }
.pub-oa-n { line-height: 1.75; color: var(--ink-2); font-size: .98rem; }
.pub-oa-fog { position: relative; min-height: 92px; overflow: hidden; border-radius: 6px; display: grid; place-items: center; }
.pub-oa-fog-lines { position: absolute; inset: 12px 6px; display: grid; align-content: center; gap: 9px; filter: blur(4px); user-select: none; pointer-events: none; opacity: .48; }
.pub-oa-fog-lines i { display: block; height: 7px; background: var(--muted); border-radius: 2px; }
.pub-oa-fog-lines i:nth-child(2) { width: 94%; } .pub-oa-fog-lines i:nth-child(3) { width: 98%; } .pub-oa-fog-lines i:nth-child(4) { width: 66%; }
.pub-oa-fog > svg { position: relative; color: var(--teal); background: var(--surface); border-radius: 6px; padding: 7px; width: 34px; height: 34px; }
.pub-oa-unlock { display: flex; justify-content: center; margin-top: 16px; }
.pub-oa-unlock .btn { min-height: 42px; max-width: 100%; white-space: normal; text-align: center; }
.pub-oa-unlock .btn:disabled { opacity: .65; cursor: wait; }
.pub-oa-spinner { animation: pub-oa-spin 1s linear infinite; }
@keyframes pub-oa-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pub-oa-spinner { animation: none; } }
.secblock { margin: 28px 0; }
.paper-callout { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-top: 1px solid var(--teal-100); border-bottom: 1px solid var(--teal-100); color: var(--teal-700); }
.paper-callout:hover { color: var(--teal); }
.paper-callout > svg { flex-shrink: 0; }
.paper-callout-body { display: grid; gap: 6px; min-width: 0; flex: 1; }
.paper-callout-eyebrow { color: var(--muted); font-size: 13px; font-weight: 600; }
.paper-callout strong { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.paper-callout:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.gate { border: 1.5px solid var(--teal-100); border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(180deg, var(--teal-50), var(--surface)); }
.gate-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px; } .gate-head h3 { font-size: 1.2rem; } .gate-head p { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.gate-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--teal); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.gate-list { list-style: none; margin: 0; padding: 0 24px 8px; display: grid; gap: 10px; } .gate-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); font-size: .96rem; } .gate-list li svg { color: var(--teal); flex-shrink: 0; }
.gate-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 24px 24px; }
.reg-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--teal); color: #fff; font-weight: 800; font-size: 1rem; padding: 13px 24px; border-radius: var(--r-pill); transition: transform .12s var(--ease), background .12s; }
.reg-btn:hover { background: var(--teal-700); transform: translateY(-1px); }
.reg-note { font-size: .86rem; color: var(--muted); font-weight: 600; } .reg-note a { color: var(--teal); font-weight: 800; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rel { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); } .rel:hover { border-color: var(--teal-300); box-shadow: var(--sh-sm); }
.rel .ri { width: 34px; height: 34px; border-radius: 10px; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.rel .rt { font-weight: 700; line-height: 1.45; font-size: .95rem; } .rel .rm { font-size: .76rem; color: var(--muted); font-weight: 700; margin-top: 3px; }
/* ---- right sidebar ---- */
.qp-side { position: sticky; top: 86px; padding-top: 22px; }
.side-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--sh-xs); }
.side-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; padding: 15px 16px 4px; } .side-head svg { color: var(--teal); }
.side-meta { font-size: .76rem; color: var(--muted); font-weight: 600; padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.qlist { display: flex; flex-direction: column; max-height: 460px; overflow-y: auto; padding: 6px; }
.qrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); transition: background .1s; }
.qrow:hover { background: var(--sunk); }
.qrow.cur { background: var(--teal-50); } .qrow.cur .qn { background: var(--teal); color: #fff; } .qrow.cur .qs { color: var(--teal-700); font-weight: 700; }
.qrow .qn { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; background: var(--sunk); display: grid; place-items: center; font-weight: 800; font-size: .8rem; font-family: var(--font-num); }
.qrow .qs { font-size: .84rem; color: var(--ink-2); line-height: 1.35; overflow: hidden; }
/* ---- app CTA(設計交付 2:qp-cta 漸層卡) ---- */
.qp-cta { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; margin: 40px 0; background: linear-gradient(135deg, var(--banner-from), var(--banner-to)); padding: 36px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 120px; grid-template-areas: 'copy mascot' 'stores mascot'; align-items: center; gap: 18px 24px; }
.qp-cta::after { content: ''; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); }
.qp-cta .t { grid-area: copy; min-width: 0; position: relative; z-index: 1; }
.qp-cta h3 { color: #fff; font-size: 1.5rem; letter-spacing: 0; }
.qp-cta p { color: rgba(255,255,255,.85); margin-top: 8px; font-size: .95rem; }
.qp-cta > img { grid-area: mascot; width: 120px; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 10px 22px rgba(0,0,0,.22)); }
.qp-stores { grid-area: stores; position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.qp-store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; background: #fff; color: var(--ink); border-radius: 8px; padding: 9px 16px; transition: transform .12s var(--ease); }
.qp-store:hover { transform: translateY(-2px); }
.qp-store svg { width: 22px; height: 22px; flex-shrink: 0; }
.qp-store .st { line-height: 1.15; display: flex; flex-direction: column; white-space: nowrap; } .qp-store .st .s1 { font-size: .62rem; font-weight: 600; opacity: .8; } .qp-store .st .s2 { font-size: .96rem; font-weight: 800; }
.qp-foot { background: var(--ink); color: rgba(255,255,255,.6); padding: 26px 0; } .qp-foot-in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .86rem; } .qp-foot .fb { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 900; font-family: "Noto Sans TC","PingFang TC","Microsoft JhengHei",Arial,sans-serif; } .qp-foot .fb img { width: 28px; height: 28px; } .qp-foot .sp { flex: 1; } .qp-foot a { color: rgba(255,255,255,.6); } .qp-foot a:hover { color: #fff; }
/* ---- shared-paper collapse ---- */
.prog-collapse { position: relative; display: inline-flex; }
.prog-summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 5px; user-select: none; } .prog-summary::-webkit-details-marker { display: none; }
.prog-summary .chev { transition: transform .15s var(--ease); }
.prog-collapse[open] .prog-summary { background: var(--teal); color: #fff; } .prog-collapse[open] .prog-summary .chev { transform: rotate(180deg); }
.prog-list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 240px; max-width: 380px; display: flex; flex-wrap: wrap; gap: 6px; padding: 13px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--sh-md); }
@media (max-width: 980px) {
  .qp-shell { grid-template-columns: 1fr; gap: 8px; }
  .qp-side { position: static; order: 2; padding-top: 8px; max-width: 760px; width: 100%; }
  .qlist { max-height: 320px; }
  .prog-list { max-width: min(86vw, 380px); }
}
@media (max-width: 720px) {
  .qp-nav-in { gap: 8px; height: 66px; padding: 0 12px; }
  .qp-nav .hideable { display: none; }
  .qp-nav .sp { min-width: 0; }
  .qp-nav .qp-brand { gap: 6px; min-height: 40px; }
  .qp-nav .qp-brand img { width: 28px; height: 28px; }
  .qp-nav .qp-wordmark { font-size: 1.16rem; }
  .qp-nav .public-practice { min-height: 40px; padding: 10px 12px !important; font-size: 14px; }
  .qp-nav .nav-acct-name, .qp-nav .nav-acct-chev { display: none; }
  .qp-nav .nav-acct-btn { justify-content: center; width: 40px; height: 40px; padding: 0; gap: 0; border-radius: 50%; background: var(--teal-50); border-color: var(--teal-100); }
  .qp-nav .nav-acct-av { background: transparent; }
  .qp-nav .nav-acct-av svg { width: 20px; height: 20px; }
  .qp-main .sec-head { flex-wrap: wrap; }
  .qp-h1 { font-size: 1.34rem; } .rel-grid { grid-template-columns: 1fr; }
  .qp-cta { grid-template-columns: minmax(0, 1fr) max-content; grid-template-areas: 'copy copy' 'mascot stores'; gap: 22px 16px; text-align: center; padding: 30px 22px; }
  .qp-cta > img { width: 100%; max-width: 100px; justify-self: center; }
  .qp-stores { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-self: end; text-align: left; }
}
