/* assets/style.css －－自家風格 */
/* 基本排版 ---------------------------------------------------- */
html{font-family:system-ui,-apple-system,Segoe UI,Roboto,"微軟正黑體",sans-serif;
     scroll-behavior:smooth;}
body{max-width:960px;margin:auto;padding:2rem;line-height:1.7;}
h1{font-size:2.2rem;font-weight:700;color:#d2691e;margin-top:0.5rem;}
h2{margin-top:2.5rem;color:#444;border-left:4px solid #d2691e;padding-left:.5rem;}
a   {color:#d2691e;text-decoration:none}
a:hover{text-decoration:underline}

/* 卡片式連結 -------------------------------------------------- */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
           gap:1.2rem;margin-top:1rem;}
.card{background:#fff;border:1px solid #eee;border-radius:1rem;
      box-shadow:0 4px 10px rgba(0,0,0,.05);overflow:hidden;
      display:flex;flex-direction:column;transition:transform .2s;}
.card:hover{transform:translateY(-4px)}
.card img{aspect-ratio:4/3;object-fit:cover;width:100%}
.card h3{margin:0;padding:1rem .8rem;font-size:1.1rem;color:#333}

/* 內文插圖（最大 420px；手機自動等比例縮小） ----------------- */
.page-img{
  max-width:420px;   /* 桌機最多 420px */
  width:100%;        /* 手機寬度全滿，但不會超過 max */
  height:auto;       /* 等比例縮放 */
  border-radius:12px;
  display:block;       /* 區塊元素，可確保文字換行 */
  margin:1rem 0 1rem 0;/* 上右下左，左邊設 0 即貼齊 */
}

