/* ========== Font System ==========
   你指定：黑體-繁（標題粗、內容細），英文數字 Arial
   實務上建議用字型堆疊：先用 Noto Sans TC / 微軟正黑 / 蘋方等
*/
:root{
  --bg: #0b0c10;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --line: rgba(255,255,255,.16);
  --radius: 16px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --maxw: 1080px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(110,229,173,.14), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(83,175,228,.16), transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC","Microsoft JhengHei","PingFang TC","Heiti TC",sans-serif;
  font-weight: 300; /* 內容偏細體 */
  letter-spacing: .2px;
}

.latin{
  font-family: Arial, Helvetica, sans-serif; /* 英文/數字 */
}

/* Common */
.container{
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

.site-header{
  padding: 44px 0 18px;
  text-align: center;
}
.site-title{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; /* 標題＝粗體 */
  line-height: 1.1;
}
.site-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
}

.site-footer{
  padding: 26px 0 40px;
  color: var(--muted);
  text-align: center;
}

/* ========== Home Grid ==========
   5 張動態圖：RWD 會自動變 1～2 欄
*/
.grid-5{
  display: grid;
  gap: 18px;
  padding: 22px 0 10px;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
justify-content: center;

  justify-items: center;
}

@media (max-width: 1100px){
  .grid-5{ }
}
@media (max-width: 800px){
  .grid-5{
    grid-template-columns: 1fr;
  }

  .card{
    width: min(480px, 100%);
    margin: 0 auto;
  
  max-width: 600px;}
}

.card{
    max-width: 360px;   /* 你可改 320/300 更小 */
    margin: 0 auto;     /* 每張卡片在格子內置中 */
  }
}

@media (max-width: 740px){
  .grid-5{ }
}
@media (max-width: 460px){
  .grid-5{ }
}

.card{
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(0);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;

}

.card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.28);
  background: var(--panel2);
}

.card img{
  width: 100%;

  display: block;

  aspect-ratio: 3 / 4; /* 你也可改 1/1 或 16/9 */
  filter: saturate(1.02) contrast(1.02);

  height: auto;
  object-fit: contain;
}


.card-label{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}

.label-title{
  display: block;
  font-weight: 700; /* 標題粗體 */
  font-size: 18px;
  line-height: 1.2;
}

.label-sub{
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  font-family: Arial, Helvetica, sans-serif; /* 英文 */
}