/* 可讀優先，不追求漂亮（規格第六節）。手機優先的單欄排版。 */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: #1a1a1a;
  line-height: 1.75;
  background: #fff;
}
main, .site-header, .site-footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: #0b5cad; }
h1 { font-size: 1.6rem; line-height: 1.4; }
h2 { font-size: 1.25rem; margin-top: 2em; }

.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid #e5e5e5;
  flex-wrap: wrap; gap: 8px;
}
.brand { font-weight: 700; text-decoration: none; color: #1a1a1a; font-size: 1.05rem; }
.site-header nav a { margin-left: 14px; text-decoration: none; font-size: .95rem; }

.hero .lead { color: #444; }

/* 查詢工具 */
.tool { background: #f6f8fa; border: 1px solid #e0e4e8; border-radius: 10px; padding: 18px; margin: 20px 0; }
.tool-controls { display: grid; gap: 14px; }
.tool-controls label { display: block; font-size: .92rem; font-weight: 600; }
.tool-controls select {
  display: block; width: 100%; margin-top: 4px; padding: 10px;
  font-size: 1rem; border: 1px solid #c8cdd3; border-radius: 6px; background: #fff;
}
.slider-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.slider-row input[type=range] { flex: 1; }
#fault-value { min-width: 4em; font-weight: 700; }
.checkbox-row { font-weight: 400 !important; font-size: .88rem !important; margin-top: 6px; color: #555; }

.tool-result { margin-top: 20px; border-top: 1px dashed #c8cdd3; padding-top: 16px; }
.result-caption { font-weight: 700; color: #333; margin: 0 0 4px; }
.result-main { display: flex; align-items: baseline; gap: 10px; }
.result-p50 { font-size: 2.4rem; font-weight: 800; color: #0b5cad; }
.result-p50-label { color: #666; }
.range-bar-wrap { margin: 10px 0; }
.range-bar {
  position: relative; height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, #bcd8f0, #0b5cad);
}
.range-mark {
  position: absolute; top: -4px; width: 4px; height: 22px;
  background: #083a6e; border-radius: 2px; transform: translateX(-2px);
}
.range-labels { display: flex; justify-content: space-between; font-size: .92rem; color: #333; margin-top: 4px; }
.range-note, .result-n, .result-note { font-size: .88rem; color: #555; margin: 6px 0; }
.result-note { color: #9a5b00; }
.result-solatium { font-size: .95rem; margin: 8px 0; }
.tool-hint { color: #666; }

/* CTA / 訂閱 */
.cta-box { display: grid; gap: 14px; margin: 28px 0; }
@media (min-width: 640px) { .cta-box { grid-template-columns: 1fr 1fr; } }
.cta-item { border: 1px solid #e0e4e8; border-radius: 10px; padding: 16px; }
.cta-item p { margin-top: 0; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 6px; text-decoration: none;
  border: 1px solid #0b5cad; color: #0b5cad; font-weight: 600; font-size: .95rem;
}
.btn-primary { background: #0b5cad; color: #fff; }
.btn-line { background: #06c755; border-color: #06c755; color: #fff; }
.subscribe-box { background: #f6f8fa; border-radius: 10px; padding: 16px; margin: 24px 0; }

/* 行情頁 */
.stat-grid { display: grid; gap: 12px; margin: 18px 0; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { border: 1px solid #e0e4e8; border-radius: 10px; padding: 14px; }
.stat.main { grid-column: 1 / -1; background: #f0f6fc; }
.stat-label { display: block; font-size: .85rem; color: #555; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: #0b5cad; }
.stat.main .stat-value { font-size: 2.2rem; }
.fallback-note {
  background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 8px;
  padding: 10px 14px; font-size: .92rem;
}
.case-list { list-style: none; padding: 0; }
.case-list li { border-bottom: 1px solid #eee; padding: 12px 0; }
.case-amount { font-weight: 700; color: #0b5cad; }
.case-meta { font-size: .85rem; color: #666; }
.case-note { font-size: .82rem; color: #888; border-left: 3px solid #d8e4f0; padding-left: 10px; }
.faq details { border-bottom: 1px solid #eee; padding: 8px 0; }
.faq summary { font-weight: 600; cursor: pointer; }

/* 目錄／文章 */
.browse-row { margin: 6px 0; }
article.post p, article.post li { font-size: 1.02rem; }
article.post h2 { border-left: 4px solid #0b5cad; padding-left: 10px; }
.post-meta { color: #666; font-size: .88rem; }
blockquote { border-left: 3px solid #c8cdd3; margin: 1em 0; padding: 2px 16px; color: #444; background: #fafafa; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid #ddd; padding: 8px 10px; text-align: right; }
th:first-child, td:first-child { text-align: left; }
thead th { background: #f0f4f8; }
.table-wrap { overflow-x: auto; }

/* 頁尾 */
.site-footer { border-top: 1px solid #e5e5e5; margin-top: 40px; padding-top: 8px; padding-bottom: 32px; }
.source-note { font-size: .85rem; color: #666; }
.accuracy-note { font-size: .85rem; color: #666; }
.footer-links { font-size: .9rem; }
.disclaimer { font-size: .8rem; color: #888; }
.copyright { font-size: .8rem; color: #aaa; }
