body{
    background-color: black;
    text-align: center;
}

h2{
    color: aliceblue;
}

img{
    width:300px;
    height:200px;
}

.card {
  display: flex;            /* 啟用 flex 排版 */
  align-items: center;      /* 圖標與文字垂直置中 */
  justify-content: flex-start; /* 內容全部靠左對齊 */
  gap: 12px;                /* 圖標與文字之間的間距 */
  
  /* 寬度與置中 */
  width: 320px;             /* 固定寬度*/
  margin: 0 auto 10px auto; /* 上下左右外距 讓卡片本身在螢幕中央置中 且與下個卡片保持 10px 距離 */
  box-sizing: border-box;   /* 確保 padding 不會撐大寬度 */

  /* 視覺外觀樣式 */
  background-color: #1a1a1e;
  color: #ffffff;          
  padding: 12px 20px;       /* 上下 12px 左右 20px 內距 */
  border-radius: 10px;     
  text-decoration: none;   
  font-family: sans-serif;
  border: 1px solid #2d2d34; /* 淡淡的卡片邊框 */
  transition: background-color 0.2s;
}

.card:hover {
  background-color: #25252a; /* 滑鼠滑過時變亮 */
}

.icon {
  width: 20px;             /* 限制圖標寬度 */
  height: auto;
  margin-right: 8px;       /* 圖標與文字之間的間距 */
}
