/* 訂單秘書部落格。trade.css 由 HTML 先載入，本檔只補文章與索引排版。 */
.blog-hero { padding-bottom: 48px; }
.blog-hero h1 { max-width: 24ch; }
.blog-hero .hero-sub { max-width: 52ch; }
.article-meta { margin-top: 20px; color: var(--muted-on-ink); font-family: var(--mono); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.article-meta time { font-variant-numeric: tabular-nums; }
.article-wrap { max-width: 760px; }
.article-body { padding: 52px 0 88px; font-size: 17.5px; line-height: 1.9; }
.article-body .article-wrap { max-width: 720px; }
.article-body h2 { margin-top: 58px; padding-top: 4px; font-size: clamp(24px, 5vw, 31px); line-height: 1.4; scroll-margin-top: 92px; }
.article-body h3 { margin-top: 34px; font-size: 20px; line-height: 1.55; }
.article-body p { margin-top: 22px; }
.article-body a { color: var(--pine); text-underline-offset: 3px; }
.article-body a:hover { color: var(--cinnabar); }
.article-body ul, .article-body ol { margin: 20px 0 0 1.4em; }
.article-body li { margin-top: 12px; padding-left: 4px; }
.article-lead { margin-top: 0 !important; color: var(--muted-on-paper); }
.tldr { margin: 0 0 30px; padding: 20px 22px; background: var(--paper-2); border-left: 4px solid var(--leaf); border-radius: 0 10px 10px 0; }
.tldr-label { display: block; margin-bottom: 6px; color: var(--pine); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.tldr p { margin: 0; font-size: 17px; line-height: 1.85; }
.article-toc { margin: 28px 0 38px; padding: 20px 22px; background: #f6f8f4; border: 1px solid var(--paper-line); border-radius: 12px; }
.article-toc strong { display: block; font-size: 15px; }
.article-toc ol { margin-top: 10px; columns: 2; column-gap: 30px; }
.article-toc li { break-inside: avoid; margin-top: 7px; font-size: 15px; line-height: 1.6; }
.article-figure { margin: 32px 0; }
.article-figure > figcaption { margin-top: 11px; color: var(--muted-on-paper); font-size: 13.5px; line-height: 1.65; }
.article-chat { max-width: 560px; }
.article-chat .chat { box-shadow: var(--lift-shadow-ink); }
.article-sheet { box-shadow: var(--lift-shadow); }
.article-sheet table { min-width: 520px; }
.status-key { display: flex; flex-wrap: wrap; gap: 8px; }
.status-key .flag { margin: 0; }
.process-scroll, .compare-scroll, .threeway-scroll, .calc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.process-flow { display: grid; grid-template-columns: repeat(6, minmax(126px, 1fr)); gap: 18px; min-width: 846px; padding: 2px; }
.process-step { position: relative; min-height: 118px; padding: 16px; background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 12px; }
.process-step:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 42px; color: var(--leaf); font-family: var(--mono); font-weight: 600; }
.process-step b { display: block; color: var(--pine); font-size: 15px; }
.process-step span { display: block; margin-top: 7px; color: var(--muted-on-paper); font-size: 13px; line-height: 1.55; }
.compare-pair { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 1px; min-width: 620px; background: var(--paper-line); border: 1px solid var(--paper-line); border-radius: 12px; overflow: hidden; }
.compare-side { background: var(--paper-2); padding: 20px; }
.compare-side h3 { margin: 0; font-size: 17px; }
.compare-side p { margin-top: 10px; font-size: 15px; line-height: 1.75; }
.compare-side.is-system h3 { color: var(--pine); }
.threeway { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 12px; min-width: 750px; }
.threeway-card { padding: 20px; background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 12px; }
.threeway-card h3 { margin: 0; font-size: 17px; }
.threeway-card p, .threeway-card li { font-size: 14.5px; line-height: 1.7; }
.threeway-card ul { margin-top: 10px; }
.note-box { margin-top: 30px; padding: 22px; background: var(--paper-2); border: 1px solid var(--paper-line); border-left: 4px solid var(--leaf); border-radius: 0 12px 12px 0; }
.note-box h2, .note-box h3 { margin-top: 0; padding-top: 0; }
.note-box p:first-of-type { margin-top: 10px; }
.note-box.is-honest { border-left-color: var(--cinnabar); }
.self-calc { min-width: 620px; display: grid; gap: 12px; }
.calc-row { display: grid; grid-template-columns: 1.5fr 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; padding: 16px 18px; background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 12px; }
.calc-row b { font-size: 15px; }
.calc-blank { min-width: 88px; height: 34px; border-bottom: 2px solid var(--pine); }
.calc-op { color: var(--muted-on-paper); font-family: var(--mono); }
.table-scroll { margin-top: 24px; overflow-x: auto; border: 1px solid var(--paper-line); border-radius: 12px; background: var(--paper-2); }
.compare-table { width: 100%; min-width: 700px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 15px; border-bottom: 1px solid var(--paper-line); text-align: left; vertical-align: top; line-height: 1.65; }
.compare-table th { background: #e2e9df; font-size: 14px; color: var(--pine); }
.compare-table td:first-child { font-weight: 700; width: 20%; }
.compare-table tr:last-child td { border-bottom: 0; }
.faq { margin-top: 30px; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--paper-line); }
.faq-item:first-child { border-top: 1px solid var(--paper-line); }
.faq-item h3 { margin-top: 0; font-size: 18px; }
.faq-item p { margin-top: 8px; }
.article-end { margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--paper-line-strong); }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.author-box img { width: 64px; height: 64px; border-radius: 14px; background: var(--pine); }
.author-box h2 { margin: 0; padding: 0; font-size: 18px; }
.author-box p { margin-top: 5px; color: var(--muted-on-paper); font-size: 14.5px; line-height: 1.7; }
.related { margin-top: 34px; }
.related h2 { margin: 0 0 16px; padding: 0; font-size: 21px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-card { display: block; padding: 16px; border: 1px solid var(--paper-line); border-radius: 10px; background: var(--paper-2); color: inherit !important; text-decoration: none; }
.related-card span { display: block; color: var(--pine); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.related-card strong { display: block; margin-top: 7px; font-size: 14.5px; line-height: 1.55; }
.article-cta { margin-top: 34px; padding: 25px; background: var(--ink); color: var(--text-on-ink); border-radius: 14px; }
.article-cta p { margin: 0 0 16px; color: var(--muted-on-ink); font-size: 15px; }
.blog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.blog-card { display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--paper-line); border-radius: 14px; background: var(--paper-2); color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-2px); border-color: var(--paper-line-strong); box-shadow: var(--lift-shadow); }
.blog-card time { font-family: var(--mono); color: var(--muted-on-paper); font-size: 12px; }
.blog-card h2 { margin-top: 9px; font-size: clamp(20px, 3vw, 25px); }
.blog-card p { margin-top: 10px; color: var(--muted-on-paper); }
.blog-card .go { display: inline-block; margin-top: auto; padding-top: 16px; color: var(--pine); font-weight: 700; }
.category { display: inline-block; align-self: flex-start; margin-bottom: 10px; padding: 3px 9px; border-radius: 5px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.category-choice { background: #e2efe7; color: var(--pine); }
.category-practice { background: #f7ecd4; color: #8a5a12; }
.category-trade { background: #ecefe9; color: var(--muted-on-paper); }
.reading-progress { position: fixed; z-index: 40; top: 0; left: 0; width: 0; height: 3px; background: var(--leaf); pointer-events: none; }
.mobile-cta { display: none; }
.mobile-cta-close { border: 0; background: transparent; color: var(--muted-on-ink); font: 20px/1 var(--sans); padding: 8px; cursor: pointer; }
.error-page { min-height: 66vh; display: grid; align-items: center; }
.error-code { font-family: var(--mono); color: var(--leaf); letter-spacing: .12em; }
.error-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 720px) {
  .article-body { padding-top: 38px; padding-bottom: 108px; font-size: 17px; }
  .article-body h2 { margin-top: 48px; }
  .article-toc ol { columns: 1; }
  .related-grid, .blog-list { grid-template-columns: 1fr; }
  .process-flow { min-width: 0; grid-template-columns: 1fr; gap: 22px; }
  .process-step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -22px; }
  .mobile-cta { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; padding: 6px 8px 6px 14px; background: var(--ink); border: 1px solid var(--ink-line); border-radius: 12px; box-shadow: var(--lift-shadow-ink); color: var(--text-on-ink); }
  .mobile-cta[hidden] { display: none; }
  .mobile-cta span { font-size: 13px; }
  .mobile-cta .btn { padding: 8px 12px; font-size: 13px; }
}
@media (min-width: 721px) { .mobile-cta { display: none !important; } }
@media (max-width: 520px) {
  .tldr, .article-toc, .note-box { padding: 18px; }
  .blog-card { padding: 21px; }
  .author-box { grid-template-columns: 52px 1fr; }
  .author-box img { width: 52px; height: 52px; }
}
