/* 乘車攻略（blog）：沿用 styles.css 的色彩變數、導航、按鈕及頁尾 */
.post { max-width: 760px; padding-top: 20px; }
.blog-index { max-width: 1080px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.crumb a { text-decoration: none; color: var(--ink-2); }
.crumb a:hover { color: var(--brand); }
.crumb [aria-current] { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.post-head h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.25; letter-spacing: .01em; }
.post-meta { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.post-lead { margin: 12px 0 0; font-size: 17px; color: var(--ink-2); }
.post-cover { margin: 22px 0 6px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--inner); }

.prose { font-size: 17px; line-height: 1.85; color: var(--ink); }
.prose > * { margin: 0 0 18px; }
.prose .lead { font-size: 18px; color: var(--ink-2); margin-top: 22px; }
.prose h2 { margin: 40px 0 14px; font-size: 24px; font-weight: 800; line-height: 1.35; }
.prose h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 700; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--ink-3); }
.prose b { font-weight: 700; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; background: var(--inner); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 100%; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; }
.prose td { font-variant-numeric: tabular-nums; }

.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 36px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--inner); }
.post-cta b { font-size: 18px; }
.post-cta p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.post-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.post-cta .btn-ghost { background: var(--card); }

.related { margin-top: 48px; }
.related h2, .blog-index h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel-card, .blog-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.rel-card img, .blog-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--inner); }
.rel-card span { font-size: 15px; font-weight: 700; line-height: 1.4; }
.rel-card:hover span, .blog-card:hover .blog-card-t { color: var(--brand); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; margin-top: 28px; }
.blog-card-t { font-size: 18px; font-weight: 800; line-height: 1.4; }
.blog-card-d { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .post { padding-top: 14px; }
  .prose { font-size: 16px; }
  .prose .lead { font-size: 17px; }
  .prose h2 { font-size: 21px; margin-top: 34px; }
  .prose th, .prose td { padding: 10px 12px; font-size: 14px; white-space: nowrap; }
  .prose td.w { white-space: normal; min-width: 11em; }
  .post-cover img { border-radius: 14px; }
  .post-cta { padding: 18px; }
  .post-cta-btns, .post-cta-btns .btn { width: 100%; }
  .rel-grid, .blog-grid { grid-template-columns: 1fr; }
  .blog-page { padding-bottom: calc(134px + env(safe-area-inset-bottom)); }
  .blog-page .contact-float {
    inset: auto 0 calc(77px + env(safe-area-inset-bottom));
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
    padding: 6px max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .blog-page .contact-btn {
    flex: 1;
    flex-direction: column;
    width: auto;
    min-width: 0;
    height: 44px;
    gap: 2px;
    padding: 4px 2px;
    border-radius: 10px;
    box-shadow: none;
    font-size: 11px;
    line-height: 1.1;
  }
  .blog-page .contact-btn svg { width: 16px; height: 16px; }
}
