/* ===================================================================
   pickup_guide.php — 24 小時自助取卡站介紹
   主角：主視覺的自取櫃（純 CSS 繪製，可操作）；其餘區塊保持安靜。
   變數一律 --pg- 前綴，避免與 theme.css 的 --accent / --paper 互相覆蓋。
   =================================================================== */
.pg-page {
    --pg-ink:     #0f2747;
    --pg-text:    #33465f;
    --pg-muted:   #687a92;
    --pg-blue:    #0073e6;
    --pg-blue-d:  #005bb3;
    --pg-paper:   #f2f6fa;
    --pg-line:    #dbe4ee;
    --pg-locker:  #1d64b0;
    --pg-locker-d:#164a85;
    --pg-door:    #e6f0fb;
    --pg-go:      #1f9d55;
    --pg-amber:   #e8a400;
    background: #fff;
    color: var(--pg-text);
}
.pg { padding-top: 76px; }
:where(.pg) *, :where(.pg) *::before, :where(.pg) *::after { box-sizing: border-box; }
:where(.pg) :is(h1, h2, h3, p, ol, ul) { margin: 0; padding: 0; }
:where(.pg) :is(ol, ul) { list-style: none; }
.pg-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pg-wrap--narrow { max-width: 760px; }
.pg a { color: var(--pg-blue); }
.pg strong, .pg b { color: var(--pg-ink); font-weight: 700; }

/* ── 按鈕 ── */
.pg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 48px; padding: 0 1.4em; border-radius: 999px;
    font-weight: 700; font-size: 1rem; text-decoration: none;
    transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.pg .pg-btn--primary { background: var(--pg-blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,115,230,.8); }
.pg .pg-btn--primary:hover { background: var(--pg-blue-d); }
.pg .pg-btn--ghost { color: var(--pg-ink); border: 1.5px solid var(--pg-line); background: #fff; }
.pg .pg-btn--ghost:hover { border-color: var(--pg-blue); color: var(--pg-blue); }
.pg .pg-btn--line { background: #06c755; color: #fff; }
.pg .pg-btn--line:hover { background: #05a948; }
.pg-btn:active { transform: scale(.97); }
.pg a:focus-visible, .pg button:focus-visible, .pg summary:focus-visible {
    outline: 3px solid var(--pg-amber); outline-offset: 3px;
}

/* =================================================================
   主視覺
   ================================================================= */
.pg-hero {
    background:
        radial-gradient(900px 420px at 85% 10%, #dcecfb 0%, transparent 70%),
        linear-gradient(180deg, #f4f9fe 0%, #fff 100%);
    padding: 56px 0 72px;
    border-bottom: 1px solid var(--pg-line);
}
.pg-hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.pg-hero__kicker { color: var(--pg-locker); font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.pg-hero__kicker i { margin-right: .35em; }
.pg-hero__title {
    color: var(--pg-ink); font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.08;
    font-weight: 900; letter-spacing: .02em; margin-bottom: 20px;
}
.pg-hero__lede { font-size: 1.08rem; line-height: 1.85; max-width: 30em; margin-bottom: 22px; }
.pg-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 30px; color: var(--pg-muted); }
.pg-hero__facts b { font-size: 1.6rem; color: var(--pg-blue); margin-right: .2em; font-variant-numeric: tabular-nums; }
.pg-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* 主視覺的「現買現拿」標示：點了跳到下方對照區 */
.pg .pg-hero__now {
    display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
    margin-bottom: 22px; padding: 10px 18px 10px 12px; border-radius: 14px;
    background: #e9f8ef; border: 1.5px solid #8fd6ab; color: #14532d;
    font-size: 1rem; line-height: 1.5; text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}
.pg .pg-hero__now:hover { background: #dcf3e5; border-color: var(--pg-go); }
.pg-hero__now i {
    flex: none; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; background: var(--pg-go); color: #fff; font-size: 1rem;
}
.pg .pg-hero__now b { display: block; color: #14532d; font-size: 1.2rem; font-weight: 900; letter-spacing: .04em; }

/* =================================================================
   現買現拿對照區（主視覺正下方的深色橫幅）
   ================================================================= */
.pg-now { background: var(--pg-ink); color: #c9d8ea; padding: 64px 0; }
.pg-now__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.pg-now__tag {
    display: inline-flex; align-items: center; gap: .45em; margin-bottom: 16px;
    padding: 5px 14px; border-radius: 999px; background: var(--pg-amber); color: #2b1d00;
    font-size: .9rem; font-weight: 900; letter-spacing: .06em;
}
.pg-now h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.3; font-weight: 900; margin-bottom: 16px; text-wrap: balance; }
.pg-now h2 em { font-style: normal; color: #ffd24a; }
.pg-now__copy p { font-size: 1.04rem; line-height: 1.9; max-width: 30em; }
.pg-now__cmp { display: grid; gap: 14px; }
.pg-now__row { border-radius: 16px; padding: 18px 20px; }
.pg-now__row h3 { font-size: .95rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.pg-now__row ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.pg-now__row li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: .95rem; white-space: nowrap; }
.pg-now__row li { position: relative; }
.pg-now__row li + li { margin-left: 16px; }
.pg-now__row li + li::before { content: "›"; position: absolute; left: -16px; top: 50%; transform: translateY(-54%); font-weight: 900; font-size: 1.1rem; line-height: 1; }
/* 一般配送：壓暗，中間兩步是「等」 */
.pg-now__row--slow { background: rgba(255,255,255,.05); border: 1.5px dashed rgba(255,255,255,.22); }
.pg-now__row--slow h3 { color: #9fb3cb; }
.pg-now__row--slow li { background: rgba(255,255,255,.08); color: #b6c6da; }
.pg-now__row--slow li:nth-child(2), .pg-now__row--slow li:nth-child(3) { background: rgba(232,164,0,.16); color: #ffd98a; }
.pg-now__row--slow li + li::before { color: #6f86a3; }
/* 自取站：亮起來 */
.pg-now__row--fast { background: #fff; border: 2px solid var(--pg-go); box-shadow: 0 22px 40px -22px rgba(31,157,85,.9); }
.pg-now__row--fast h3 { color: var(--pg-ink); font-size: 1.05rem; font-weight: 900; }
.pg-now__row--fast h3 span { background: var(--pg-go); color: #fff; font-size: .8rem; padding: 2px 10px; border-radius: 999px; letter-spacing: .05em; }
.pg-now__row--fast li { background: var(--pg-door); color: var(--pg-ink); font-weight: 700; font-size: 1.02rem; padding: 9px 14px; }
.pg-now__row--fast li:last-child { background: var(--pg-go); color: #fff; }
.pg-now__row--fast li + li::before { color: var(--pg-go); }

.pg-hero__stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.pg-stage__hint { margin-top: 18px; font-size: .92rem; color: var(--pg-muted); text-align: center; min-height: 1.6em; }
.pg-stage__hint i { color: var(--pg-blue); margin-right: .3em; }
.pg-stage__hint.is-done { color: var(--pg-go); font-weight: 700; }

/* 示範憑證（放在操作面板放大圖上方） */
.pg-ticket {
    position: relative; z-index: 3; align-self: stretch;
    background: #fff; border: 2px solid var(--pg-blue); border-radius: 14px;
    padding: 12px 16px 10px; margin-bottom: 14px;
    box-shadow: 0 16px 30px -18px rgba(15,39,71,.55);
    transform: rotate(-2deg);
}
.pg-ticket__tag {
    position: absolute; top: -11px; left: 12px; background: var(--pg-blue); color: #fff;
    font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px;
}
.pg-ticket__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.pg-ticket__row small { font-size: .78rem; color: var(--pg-muted); }
.pg-ticket__row b { font-size: 1.4rem; font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--pg-blue-d); }
.pg-ticket__row--pw { border-top: 1.5px dashed var(--pg-line); margin-top: 4px; padding-top: 4px; }
.pg-ticket__row--pw b { color: var(--pg-amber); }

/* ── 自取櫃（依實機照片：白色機身、左排 01–10、右排 11–20 淺藍艙門、中間控制欄）＋操作面板放大圖 ── */
.lk {
    --row: 46px; --gap: 5px;
    display: flex; align-items: flex-start; gap: 30px; position: relative;
}
.cab {
    position: relative; flex: none; width: 236px;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap);
    padding: 10px 9px 12px;
    background: linear-gradient(90deg, #f3f6fa 0%, #fff 30%, #fff 70%, #e9eef5 100%);
    border: 1px solid #d7e0ea; border-radius: 4px 4px 2px 2px;
    box-shadow: 14px 22px 40px -26px rgba(15,39,71,.55), inset -3px 0 0 #e1e8f0;
}
.cab::before { /* 頂蓋 */
    content: ""; position: absolute; left: -3px; right: -3px; top: -6px; height: 7px;
    background: #fbfcfe; border: 1px solid #d7e0ea; border-radius: 3px 3px 0 0;
}
.cab::after { /* 地面陰影 */
    content: ""; position: absolute; left: 4%; right: 4%; bottom: -18px; height: 16px;
    background: radial-gradient(closest-side, rgba(15,39,71,.22), transparent); z-index: -1;
}
.cab-feet { position: absolute; left: 8px; right: 8px; bottom: -8px; height: 8px; display: flex; justify-content: space-between; }
.cab-feet::before, .cab-feet::after { content: ""; width: 26px; height: 8px; background: #dfe6ee; border: 1px solid #cfd9e4; border-top: 0; }

.cab-col { display: grid; grid-template-rows: repeat(10, var(--row)); gap: var(--gap); perspective: 500px; }
.lk-door { position: relative; }
.lk-cavity {
    position: absolute; inset: 0; background: #1b2f4a; display: grid; place-items: center;
    box-shadow: inset 0 3px 8px rgba(0,0,0,.55);
}
.lk-cavity i { width: 22px; height: 15px; border-radius: 2px; background: #fff; position: relative; opacity: 0; }
.lk-cavity i::before {
    content: ""; position: absolute; left: 4px; top: 4px; width: 7px; height: 6px; border-radius: 1px;
    background: linear-gradient(135deg, #f3cf63, #c99a21);
}
.lk-leaf {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #9cc8f0 0%, #6aa8e2 55%, #5b9bd8 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.06);
    color: rgba(255,255,255,.95); font-size: .68rem; font-weight: 700; line-height: 1;
    padding: 5px 0 0 6px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 1px rgba(20,60,110,.35);
    transform-origin: left center;
    transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, filter .3s ease;
}
.cab-col--r .lk-leaf { transform-origin: right center; }
.lk-door::after { /* 只在目標／開啟時顯示艙號 */
    content: attr(data-no); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.6);
    background: var(--pg-amber); color: var(--pg-ink); font-weight: 800; font-size: .78rem; line-height: 1;
    padding: 4px 6px; border-radius: 999px; opacity: 0; z-index: 3; pointer-events: none;
    font-variant-numeric: tabular-nums; transition: opacity .2s ease, transform .2s ease;
}
.lk-door.is-target::after, .lk-door.is-open::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lk-door.is-open::after { top: auto; bottom: -6px; transform: translate(-50%, 0); }
.lk-door.is-target .lk-leaf { filter: brightness(1.12) saturate(1.2); box-shadow: 0 0 0 2px var(--pg-amber); }
.lk-door.is-open { z-index: 2; }
.lk-door.is-open .lk-leaf { transform: rotateY(-108deg); box-shadow: 6px 0 10px rgba(0,0,0,.25); }
.cab-col--r .lk-door.is-open .lk-leaf { transform: rotateY(108deg); }
.lk-door.is-open .lk-cavity i { opacity: 1; transition: opacity .2s .25s; }

/* 中間控制欄：上段喇叭＋螢幕＋按鍵，中段取卡流程告示，下段大門 */
/* 中間欄：上面一整塊面板（喇叭、螢幕、按鍵、鎖孔、取卡流程告示）＋下方大門，與實機相同 */
.cab-mid { display: grid; grid-template-rows: calc(var(--row) * 6 + var(--gap) * 5) 1fr; gap: var(--gap); }
.cab-ctl, .cab-low { background: #fff; border: 1px solid #dfe6ee; position: relative; }
.cab-ctl { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 8px 5px; }
.cab-spk { width: 14px; height: 14px; background: radial-gradient(circle, #8a96a6 1px, transparent 1.5px) 0 0 / 4px 4px; border-radius: 50%; flex: none; }
.cab-lcd {
    width: 94%; background: #13305a; border: 2px solid #2b2f36; border-radius: 2px;
    color: #e8f1ff; font-size: .6rem; text-align: center; padding: 4px 0; line-height: 1.2; white-space: nowrap; overflow: hidden;
}
.cab-keys { width: 66%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.cab-keys i { height: 4px; background: #cfd6df; border-radius: 1px; }
.cab-keys i:nth-child(4n) { background: #d64545; }
.cab-keys i:nth-child(16) { background: #1f9d55; }
.lk.is-busy .cab-keys { filter: drop-shadow(0 0 3px rgba(232,164,0,.95)); }
.cab-lock { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle, #6b7480 30%, #c6ccd4 35%); margin-top: 6px; flex: none; }
.cab-sign {
    width: 92%; margin: auto 0; background: #1e1f22; color: #e6e6e6; border-radius: 3px; padding: 6px 5px 7px;
    font-size: .5rem; line-height: 1.6; display: flex; flex-direction: column; white-space: nowrap; overflow: hidden;
}
.cab-sign b { font-size: .7rem; font-weight: 800; color: #fff; text-align: center; letter-spacing: 0; line-height: 1.3; padding-bottom: 4px; border-bottom: 1px solid #5a5a5a; margin-bottom: 3px; }
.cab-low .cab-lock { position: absolute; left: 50%; top: 40%; margin-left: -3.5px; }

/* 放大引線（從櫃子按鍵區連到放大面板） */
.lk-zoom {
    position: absolute; left: 150px; top: calc(var(--row) * 1.9); width: 120px; height: 0;
    border-top: 2px dashed #9cc0e6; pointer-events: none;
}
.lk-zoom::before { content: ""; position: absolute; left: -14px; top: -9px; width: 16px; height: 16px; border: 2px solid var(--pg-amber); border-radius: 50%; background: rgba(232,164,0,.12); }

/* 操作面板放大圖（可操作） */
.kp { width: 232px; display: flex; flex-direction: column; position: relative; z-index: 1; }
.kp .pg-ticket { order: 2; margin: 16px 0 0; }   /* 桌面：憑證放面板下方，引線才能直接連到面板 */
.kp-face {
    background: #fff; border: 1px solid #d7e0ea; border-radius: 16px; padding: 12px 13px 15px;
    box-shadow: 0 24px 40px -26px rgba(15,39,71,.6);
    display: flex; flex-direction: column; gap: 10px;
}
.kp-cap { font-size: .78rem; color: var(--pg-muted); text-align: center; }
.lk-screen {
    background: #13305a; color: #e8f1ff; border-radius: 6px; padding: 8px 10px 6px;
    min-height: 66px; display: flex; flex-direction: column; justify-content: space-between;
    border: 3px solid #2b2f36;
}
.lk-prompt { font-size: .8rem; line-height: 1.35; color: #cfe0fb; }
.lk-screen.is-err .lk-prompt { color: #ffb4a8; }
.lk-entry {
    font-size: 1.35rem; font-weight: 800; letter-spacing: .22em; text-align: right;
    font-variant-numeric: tabular-nums; min-height: 1.4em; line-height: 1.4;
}
.lk-entry:empty::after { content: "_"; animation: lkBlink 1s steps(1) infinite; opacity: .7; }
@keyframes lkBlink { 50% { opacity: 0; } }

.lk-pad { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; grid-auto-rows: 40px; gap: 6px; }
.lk-pad button {
    font: inherit; cursor: pointer; border: 0; -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; user-select: none;
    background: #f4f6f9; color: var(--pg-ink); font-weight: 700; font-size: 1rem; border-radius: 6px;
    box-shadow: 0 3px 0 #c5ceda, inset 0 0 0 1px #dde3ea; transition: transform .08s ease, box-shadow .08s ease;
}
.lk-pad button:active { transform: translateY(2px); box-shadow: 0 1px 0 #c5ceda, inset 0 0 0 1px #dde3ea; }
.lk-pad .lk-take {
    grid-column: 4; grid-row: 1 / span 3; background: var(--pg-go); color: #fff;
    font-size: 1.4rem; font-weight: 900; box-shadow: 0 4px 0 #157a40;
}
.lk-pad .lk-take:active { box-shadow: 0 1px 0 #157a40; }
.lk-pad .lk-fn { font-size: .85rem; color: #fff; background: #d64545; box-shadow: 0 3px 0 #a83131; }
.lk-pad .lk-fn:active { box-shadow: 0 1px 0 #a83131; }
.lk-pad .lk-zero { grid-column: span 2; }
.lk-pad .lk-back { font-size: .9rem; }
.lk.is-idle .lk-take { animation: lkCall 2.2s ease-in-out infinite; }
@keyframes lkCall {
    0%, 60%, 100% { box-shadow: 0 4px 0 #157a40, 0 0 0 0 rgba(31,157,85,.55); }
    30% { box-shadow: 0 4px 0 #157a40, 0 0 0 9px rgba(31,157,85,0); }
}

/* =================================================================
   一般區塊
   ================================================================= */
.pg-sec { padding: 88px 0; }
.pg-sec--locker { background: var(--pg-paper); }
.pg-sec__head { max-width: 640px; margin-bottom: 44px; }
.pg-sec__phase {
    display: inline-block; font-size: .88rem; font-weight: 700; color: var(--pg-locker);
    border-bottom: 2px solid currentColor; padding-bottom: 2px; margin-bottom: 12px;
}
.pg-sec__head h2 { text-wrap: balance; color: var(--pg-ink); font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.3; font-weight: 900; margin-bottom: 12px; }
.pg-sec__head p { font-size: 1.02rem; line-height: 1.85; }

/* 步驟編號做成櫃門號碼牌，呼應艙門 */
.pg-plate {
    flex: none; width: 42px; height: 42px; border-radius: 10px;
    display: grid; place-items: center; position: relative;
    background: var(--pg-door); border: 1.5px solid #bcd5ee; color: var(--pg-locker-d);
    font-weight: 900; font-size: 1.15rem; font-variant-numeric: tabular-nums;
}

/* 現場不能付現金提醒 */
.pg-cash {
    display: flex; gap: 12px; align-items: flex-start; max-width: 760px;
    margin: -16px 0 36px; padding: 14px 18px; border-radius: 12px;
    background: #fff4e5; border: 1.5px solid #f5c37a; color: #6b4300; line-height: 1.75;
}
.pg-cash i { flex: none; margin-top: 5px; color: #d9480f; font-size: 1.05rem; }
.pg-cash b { color: #8a3c00; }

/* 下單 */
.pg-order { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; counter-reset: none; }
.pg-order li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--pg-line); }
.pg-order h3 { color: var(--pg-ink); font-size: 1.12rem; font-weight: 800; margin: 6px 0 6px; line-height: 1.45; }
.pg-order p { line-height: 1.8; }
.pg-order__key .pg-plate { background: #fff7dc; border-color: var(--pg-amber); color: #8a5f00; }
.pg-minigrid { display: grid; grid-template-columns: repeat(5, 40px); gap: 5px; margin-top: 14px; }
.pg-minigrid span {
    height: 30px; border-radius: 6px; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
    background: #f1f4f8; color: #9aa8b8; border: 1px solid #e2e8f0; font-variant-numeric: tabular-nums;
}
.pg-minigrid span.is-ok { background: #e8f7ee; color: var(--pg-go); border-color: #9fdcb7; }

/* 現場取卡 */
.pg-pick { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.pg-pick__steps li {
    display: grid; grid-template-columns: 46px 200px 1fr; gap: 20px; align-items: center;
    padding: 18px 0; border-top: 1px solid var(--pg-line);
}
.pg-pick__steps li:first-child { border-top: 0; padding-top: 0; }
.pg-pick__steps h3 { color: var(--pg-ink); font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.pg-pick__steps p { line-height: 1.75; }
.pg-pick__vis { display: flex; gap: 5px; align-items: center; }

.kc { /* 鍵帽 */
    display: inline-grid; place-items: center; width: 34px; height: 36px; border-radius: 7px;
    background: #fff; color: var(--pg-ink); font-weight: 800; font-size: 1.05rem;
    box-shadow: 0 3px 0 #b7cbc8, 0 0 0 1px #d4e1df inset; font-variant-numeric: tabular-nums;
}
.kc--take { width: 56px; height: 42px; background: var(--pg-go); color: #fff; font-size: 1.3rem; box-shadow: 0 4px 0 #157a40; }
.kc--pw { width: 28px; color: var(--pg-amber); font-size: 1.5rem; }
.kc--s { width: 28px; height: 30px; font-size: .95rem; margin-right: 4px; }

.dr { /* 迷你艙門 */
    width: 64px; height: 44px; border-radius: 5px; background: var(--pg-door); border: 1.5px solid #bcd5ee; position: relative;
}
.dr::after { content: ""; position: absolute; right: 8px; top: 50%; width: 3px; height: 14px; margin-top: -7px; border-radius: 2px; background: #8fb2d6; }
.dr--open { margin-left: 16px; background: #1b2f4a; border-color: #1b2f4a; box-shadow: inset 0 3px 8px rgba(0,0,0,.5); }
.dr--open::after {
    right: auto; left: -16px; top: 2px; margin: 0; width: 16px; height: 38px; border-radius: 3px 0 0 3px;
    background: var(--pg-door); border: 1.5px solid #bcd5ee; transform: skewY(-12deg);
}
.dr--open i {
    position: absolute; left: 50%; top: 50%; width: 24px; height: 16px; margin: -8px 0 0 -12px;
    background: #fff; border-radius: 2px;
}
.dr--open i::before { content: ""; position: absolute; left: 4px; top: 4px; width: 8px; height: 7px; border-radius: 1px; background: linear-gradient(135deg, #f3cf63, #c99a21); }

.pg-rule {
    background: #fff; border-radius: 14px; padding: 24px 24px 22px;
    border: 1.5px solid var(--pg-line); position: sticky; top: 96px;
}
.pg-rule h3 { color: var(--pg-ink); font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.pg-rule table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.pg-rule th { text-align: left; font-size: .85rem; color: var(--pg-muted); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--pg-line); }
.pg-rule td { padding: 9px 0; border-bottom: 1px dashed var(--pg-line); font-weight: 700; color: var(--pg-ink); }
.pg-rule tbody tr:nth-child(-n+2) td:first-child { color: #8a5f00; }
.pg-rule p { font-size: .92rem; line-height: 1.75; color: var(--pg-muted); }

/* 離開前 */
.pg-match {
    display: grid; grid-template-columns: auto auto auto 1fr; gap: 24px 28px; align-items: center;
}
.pg-match__eq {
    width: 44px; height: 44px; border-radius: 50%; background: var(--pg-go); color: #fff;
    display: grid; place-items: center; font-size: 1.6rem; font-weight: 900;
}
.pg-phone {
    width: 210px; border: 3px solid var(--pg-ink); border-radius: 26px; padding: 26px 16px 18px;
    background: #fff; display: flex; flex-direction: column; gap: 8px; position: relative;
}
.pg-phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 3px; background: var(--pg-ink); }
.pg-phone__label { font-size: .78rem; color: var(--pg-muted); }
.pg-phone__num, .pg-sim__num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--pg-ink); font-size: .9rem; letter-spacing: .03em; }
.pg-phone__num b, .pg-sim__num b { color: var(--pg-blue); background: #e5f0fd; border-radius: 3px; padding: 0 2px; }
.pg-phone__btn {
    margin-top: 8px; background: var(--pg-blue); color: #fff; text-align: center; font-weight: 700;
    border-radius: 999px; padding: 9px 0; font-size: .92rem;
}
.pg-sim {
    width: 220px; height: 140px; border-radius: 12px; background: #fff; border: 1.5px solid var(--pg-line);
    box-shadow: 0 18px 30px -22px rgba(15,39,71,.6); position: relative; padding: 18px;
    display: flex; flex-direction: column; justify-content: space-between;
    clip-path: polygon(0 0, 86% 0, 100% 20%, 100% 100%, 0 100%);
}
.pg-sim__chip { width: 44px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #f3cf63, #c99a21); }
.pg-match__notes { display: flex; flex-direction: column; gap: 14px; padding-left: 12px; }
.pg-match__notes li { display: flex; gap: 12px; line-height: 1.75; }
.pg-match__notes i { flex: none; width: 22px; margin-top: 6px; color: var(--pg-go); text-align: center; }
.pg-match__notes li:nth-child(2) i { color: var(--pg-blue); }
.pg-match__notes li:nth-child(3) i { color: #d9480f; }

/* 站點 */
.pg-sec--stations { background: var(--pg-paper); padding: 72px 0; }
.pg-sec--stations .pg-sec__head { margin-bottom: 24px; }
.pg-stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pg-station { background: #fff; border: 1.5px solid var(--pg-line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pg-station__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pg-station h3 { color: var(--pg-ink); font-size: 1.2rem; font-weight: 800; }
.pg-station__type { font-size: .8rem; font-weight: 700; color: var(--pg-locker); background: #e3effb; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pg-station__addr { line-height: 1.7; }
.pg-station__addr i { color: var(--pg-blue); margin-right: .45em; }
.pg-station__note { font-size: .92rem; color: var(--pg-muted); line-height: 1.7; }
.pg-station__live { font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.pg-station__live .dot { width: 9px; height: 9px; border-radius: 50%; background: #c3ccd7; }
.pg-station__live .dot.is-on { background: var(--pg-go); box-shadow: 0 0 0 3px #d5f2e1; }
.pg-station__map { font-weight: 700; text-decoration: none; margin-top: 4px; }
.pg-station__map:hover { text-decoration: underline; }

/* 常見問題 */
.pg-faq details { border-top: 1px solid var(--pg-line); }
.pg-faq details:last-child { border-bottom: 1px solid var(--pg-line); }
.pg-faq summary {
    cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
    color: var(--pg-ink); font-weight: 700; font-size: 1.05rem; line-height: 1.5;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after {
    content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--pg-muted); border-bottom: 2px solid var(--pg-muted);
    transform: rotate(45deg); transition: transform .2s ease;
}
.pg-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.pg-faq details p { padding: 0 0 22px; line-height: 1.85; max-width: 40em; }

/* 客服：白底上的淺色卡片，不用深色整條，避免和頁尾波浪（透出頁面底色）互相干擾 */
.pg-sec--faq { padding-bottom: 56px; }
.pg-help { background: #fff; padding: 0 0 72px; }
.pg-help__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: #ecf9f1; border: 1.5px solid #bfe8cf; border-radius: 18px; padding: 28px 32px;
}
.pg-help h2 { color: var(--pg-ink); font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.pg-help p { line-height: 1.75; }

/* =================================================================
   RWD
   ================================================================= */
@media (max-width: 960px) {
    .pg-hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .pg-pick { grid-template-columns: 1fr; }
    .pg-rule { position: static; }
    .pg-now__grid { grid-template-columns: 1fr; gap: 28px; }
    .pg-match { grid-template-columns: auto auto auto; justify-content: start; }
    .pg-match__notes { grid-column: 1 / -1; padding-left: 0; }
}
@media (max-width: 720px) {
    .pg { padding-top: 64px; }
    .pg-wrap { padding: 0 16px; }
    .pg-hero { padding: 36px 0 52px; }
    .pg-hero__lede { font-size: 1rem; }
    .pg-hero__cta .pg-btn { flex: 1 1 auto; }
    .lk { --row: 32px; --gap: 4px; gap: 12px; align-items: flex-start; }
    .cab { width: 146px; padding: 7px 6px 9px; }
    .cab-ctl { gap: 4px; padding: 5px 3px; }
    .cab-lcd { font-size: .46rem; padding: 2px 0; }
    .lk-leaf { font-size: .56rem; padding: 3px 0 0 4px; }
    .cab-spk { width: 10px; height: 10px; }
    .cab-keys i { height: 3px; }
    .cab-sign { padding: 4px 0; width: 100%; border-radius: 2px; }
    .cab-sign span { display: none; }   /* 手機太小，只留標題 */
    .cab-sign b { font-size: .46rem; letter-spacing: -.02em; border-bottom: 0; padding: 0; margin: 0; }
    .lk-zoom { display: none; }
    .kp { width: auto; flex: 1; min-width: 0; }
    .kp .pg-ticket { order: 0; margin: 0 0 12px; transform: none; padding: 10px 12px 8px; }
    .pg-ticket__row b { font-size: 1.15rem; }
    .kp-face { padding: 9px 8px 11px; gap: 8px; }
    .lk-screen { min-height: 58px; padding: 6px 8px 5px; }
    .lk-prompt { font-size: .72rem; }
    .lk-entry { font-size: 1.05rem; letter-spacing: .12em; }
    .lk-pad { grid-auto-rows: 36px; gap: 5px; }

    .pg-hero__now { display: flex; }
    .pg-now { padding: 44px 0; }
    .pg-now__row { padding: 14px 14px; }
    .pg-now__row li { font-size: .88rem; padding: 6px 9px; }
    .pg-now__row--fast li { font-size: .95rem; padding: 8px 11px; }
    .pg-sec { padding: 60px 0; }
    .pg-sec__head { margin-bottom: 28px; }
    .pg-cash { margin: -8px 0 24px; padding: 12px 14px; }
    .pg-order { grid-template-columns: 1fr; }
    .pg-pick__steps li { grid-template-columns: 46px 1fr; gap: 6px 14px; }
    .pg-pick__vis { grid-column: 2; grid-row: 2; }
    .pg-pick__steps li > div:last-child { grid-column: 2; grid-row: 1; }
    .pg-pick__steps .pg-plate { grid-row: 1 / span 2; align-self: start; }
    .pg-match { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
    .pg-match__eq { transform: rotate(90deg); }
    .pg-help { padding-bottom: 48px; }
    .pg-help__inner { flex-direction: column; align-items: stretch; text-align: left; padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .lk.is-idle .lk-take, .lk-entry:empty::after { animation: none; }
    .lk-door::after { transition: none; }
    .lk-leaf, .pg-btn, .pg-faq summary::after { transition: none; }
}
