/* mobile-fix.css：手機端排版修正，不動原始 HTML 結構 */
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.4;
}

table {
  border-collapse: collapse;
  width: 100%;
  table-layout: auto; /* 讓內容自然排版，避免 fixed 擠壓 */
  word-break: break-word;
  white-space: normal;
}

td, th { vertical-align: middle; }

.list-group-item {
  text-align: center;
  word-break: break-word;
  white-space: normal;
}

img { max-width: 100%; height: auto; display: block; }

/* 手機端覆寫 */
@media (max-width: 600px) {
  body, td, th, li, span, font, b, strong {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  /* 壓制原檔常見的超大行內字級 */
  *[style*="font-size:76px"] { font-size: 20px !important; }
  *[style*="font-size:32px"] { font-size: 16px !important; }
  *[style*="font-size:26px"] { font-size: 15px !important; }

  td, th { padding: 4px 6px !important; }
  .list-group-item { padding: 6px 8px !important; }

  table { table-layout: auto !important; }
  span, font, b { display: inline-block; }
}
