/* SpeedGauge 內容頁共用樣式 — 與首頁同色票，維持視覺一致 */
:root {
  --bg: #0a0e1a;
  --bg-card: #111827;
  --border: #1f2a44;
  --text: #e8edf7;
  --text-dim: #8b98b8;
  --accent: #38bdf8;
  --accent-2: #818cf8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1200px 800px at 50% -200px, #12203f 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  min-height: 100vh;
  padding: 24px 16px 40px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wrap { width: min(760px, 94vw); margin: 0 auto; }

header.site { text-align: center; margin-bottom: 22px; }
header.site h1 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
header.site h1 a { color: inherit; text-decoration: none; }
header.site p { color: var(--text-dim); font-size: .85rem; margin-top: 4px; }

article {
  background: linear-gradient(180deg, var(--bg-card) 0%, #0f1524 100%);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 24px;
}
article h2 { font-size: 1.3rem; margin: 26px 0 10px; color: var(--text); }
article h2:first-child { margin-top: 0; }
article h3 { font-size: 1.05rem; margin: 18px 0 8px; color: var(--accent); }
article p { margin-bottom: 12px; }
article ul, article ol { margin: 0 0 14px 22px; }
article li { margin-bottom: 6px; }
article strong { color: var(--accent-2); font-weight: 600; }
article a { color: var(--accent); }
article em { color: var(--text-dim); }
article code {
  background: rgba(31,42,68,.5); padding: 2px 6px; border-radius: 4px; font-size: .9em;
}

.back-link {
  display: inline-block; margin-bottom: 14px; color: var(--text-dim);
  text-decoration: none; font-size: .85rem;
}
.back-link:hover { color: var(--accent); }

/* 廣告預留位（與首頁一致，AdSense 核可後改放 adsbygoogle 單元） */
.ad-slot {
  width: 100%; margin: 20px auto 0; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); border-radius: 12px; background: rgba(31,42,68,.22);
}
.ad-placeholder { color: #4a5673; font-size: .72rem; letter-spacing: .12em; }

footer.site {
  margin-top: 30px; padding-top: 24px; color: #55627f; font-size: .72rem;
  text-align: center; line-height: 1.8; width: min(760px, 94vw);
  border-top: 1px solid var(--border);
}
footer.site nav { margin-bottom: 10px; }
footer.site nav a { color: #6b7ba0; margin: 0 8px; text-decoration: none; }
footer.site nav a:hover { color: var(--text-dim); }

@media (max-width: 560px) {
  article { padding: 22px 16px; }
  article h2 { font-size: 1.15rem; }
}
