/* 各系統快捷鍵及指令速查：三個頁面（Claude Code、Windows、Linux）共用樣式 */
:root { --bg:#f6f7f9; --fg:#1d2430; --muted:#5b6575; --card:#fff; --line:#dde2ea; --key:#eef1f6; --accent:#2f6fed; --accent-fg:#fff; }
@media (prefers-color-scheme: dark) { :root { --bg:#14181f; --fg:#e6eaf1; --muted:#9aa5b5; --card:#1c222c; --line:#2c3441; --key:#2a3240; --accent:#7aa5ff; --accent-fg:#0f1420; } }
* { box-sizing:border-box }
body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.6 system-ui,"Noto Sans TC",sans-serif }
main { max-width:1000px; margin:0 auto; padding:24px 16px 64px }
.top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; margin-bottom:16px }
h1 { font-size:1.5rem; margin:0 0 4px }
p.sub { margin:0; color:var(--muted) }
.tabs { display:flex; flex-wrap:wrap; gap:8px }
.tabs a { display:block; padding:8px 16px; border:2px solid var(--accent); border-radius:10px; color:var(--accent); font-weight:600; text-decoration:none; background:var(--card) }
.tabs a:hover { background:var(--key) }
.tabs a[aria-current="page"] { background:var(--accent); color:var(--accent-fg) }
input { width:100%; font:inherit; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:var(--card); color:inherit; margin-bottom:20px }
section { margin-bottom:28px }
section > h2 { font-size:1.25rem; margin:0 0 8px }
p.intro { margin:0 0 8px; color:var(--muted); font-size:.9rem }
table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; font-size:.95rem }
th, td { text-align:left; vertical-align:top; padding:10px 14px; border-top:1px solid var(--line) }
th { font-weight:700; border-top:0 }
td.k { white-space:nowrap; width:1% }
kbd { font:.85rem ui-monospace,Consolas,monospace; background:var(--key); border:1px solid var(--line); border-bottom-width:2px; border-radius:5px; padding:1px 6px; white-space:nowrap }
code { font:.85rem ui-monospace,Consolas,monospace; background:var(--key); border-radius:4px; padding:1px 5px }
td.k code { white-space:pre }
.source { font-size:.875rem; color:var(--muted); margin:6px 0 0 }
.source a { color:var(--accent) }
/* 手機寬度：表格改成一列一張卡片，欄名顯示在各欄內容前 */
@media (max-width: 640px) {
  .tabs { width:100% }
  .tabs a { flex:1; text-align:center; padding:8px 4px; white-space:nowrap; font-size:.9rem }
  thead { display:none }
  table, tbody, tr, td { display:block; width:100% }
  tr { border-top:1px solid var(--line); padding:8px 0 }
  tr:first-child { border-top:0 }
  td { border-top:0; padding:2px 14px }
  td.k { white-space:normal; width:100% }
  td::before { content:attr(data-label); display:block; font-size:.75rem; font-weight:700; color:var(--muted) }
}
