/* GDM 內容頁元件 — 只供 /car-loan、/import-car 使用（配色跟 assets/style.css：墨／金／紙） */

.p-hero { background: linear-gradient(180deg, #212320 0%, #2c2f2b 100%); color: #fff; padding: 52px 20px 46px; }
.p-hero-inner { max-width: 960px; margin: 0 auto; }
.p-kicker { color: var(--gold); letter-spacing: .18em; font-size: 12px; text-transform: uppercase; margin: 0 0 10px; }
.p-hero h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.25; margin: 0 0 12px; }
.p-hero p { margin: 0; color: #c9cbc6; font-size: 16px; max-width: 58ch; }
.p-badge { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 500; color: var(--gold); border: 1px solid rgba(198,166,107,.55); border-radius: 999px; padding: 2px 10px; vertical-align: middle; white-space: nowrap; }

.p-wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.p-main { padding-bottom: 8px; }
.p-section { margin: 22px 0; }

.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pcard-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pcard-h h2 { margin: 0; font-size: 17px; }
.pcard-b { padding: 18px; }
.phint { font-size: 13px; color: var(--ink-soft); margin: 0; }

.pgrid2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .pgrid2 { grid-template-columns: 1fr 1fr; } }
.pfield label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.pfield .psub { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.pmoney { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf7; padding: 0 12px; }
.pmoney .psym { color: var(--ink-soft); font-size: 14px; padding-right: 6px; }
.pmoney input { border: 0; background: transparent; outline: 0; font-size: 20px; font-weight: 700; padding: 11px 0; width: 100%; font-family: inherit; color: var(--ink); }
.pmoney:focus-within { border-color: var(--gold); }

.pslider { width: 100%; margin: 12px 0 6px; accent-color: var(--gold-deep); }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pchip { appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.pchip:hover { border-color: var(--gold); }
.pchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.ptabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f1efe9; }
.ptabs button { appearance: none; border: 0; background: transparent; padding: 13px 10px; font: inherit; font-size: 15px; font-weight: 700; color: #7b7d76; cursor: pointer; }
.ptabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.ptabs small { display: block; font-weight: 400; font-size: 11px; opacity: .78; margin-top: 2px; }

.ptenure { display: flex; flex-wrap: wrap; gap: 8px; }
.ptenure button { appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.ptenure button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1200; font-weight: 700; }

.presults { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: #f7f5ef; border: 1px solid var(--line); }
.presults .plead { margin: 0 0 2px; font-size: 13px; color: var(--ink-soft); }
.pmonthly { font-size: clamp(30px, 6vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.pmonthly span { font-size: 15px; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.pkv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 16px; }
.pkv .k { font-size: 12px; color: var(--ink-soft); }
.pkv .v { font-size: 17px; font-weight: 700; }
.paprline { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }
.paprline b { color: var(--ink); font-size: 15px; }

.p-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-table th, .p-table td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.p-table thead th { font-size: 13px; color: var(--ink-soft); font-weight: 600; border-bottom: 1px solid var(--ink); }
.p-table td:first-child { color: var(--ink-soft); white-space: nowrap; }

.p-steps { margin: 0; padding-left: 20px; }
.p-steps li { margin-bottom: 14px; }
.p-steps li:last-child { margin-bottom: 0; }
.p-steps b { display: block; margin-bottom: 2px; }
.p-steps p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.p-docs { list-style: none; margin: 0; padding: 0; }
.p-docs li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.p-docs li:last-child { border-bottom: 0; }
.p-docs .ptick { color: var(--gold-deep); font-weight: 700; flex: 0 0 auto; width: 16px; }

.p-plain { margin: 0; padding-left: 18px; }
.p-plain li { margin-bottom: 9px; font-size: 14px; }
.p-plain li:last-child { margin-bottom: 0; }

.pnote { background: #f7f5ef; border-left: 3px solid var(--gold); padding: 12px 14px; font-size: 14px; border-radius: 0 8px 8px 0; }

.ptag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #eeece6; color: var(--ink-soft); white-space: nowrap; }
.ptag.ok { background: #e8f1ea; color: #1f6b43; }
.ptag.wait { background: #fbf0dc; color: #8a5a00; }

.pgallery { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 0 0 18px; }
.pgallery figure { margin: 0; }
.pgallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #e8e6df; }
.pgallery figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

.pfaq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.pfaq details:last-child { border-bottom: 0; padding-bottom: 0; }
.pfaq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.pfaq details p { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }

.pcta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.pcta-lead { font-weight: 800; font-size: 15px; }
.pcta-note { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.ptoast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #212320; color: #fff; font-size: 14px; padding: 10px 16px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px); }
.ptoast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .p-hero { padding: 38px 16px 34px; }
  .pcard-b { padding: 15px; }
  .pkv { grid-template-columns: 1fr 1fr; }
  .p-table { font-size: 13px; }
}
