/* =====================================================================
   活動訊息＋重要公告 · EVENTS / NEWS · css/news.css
   ▸ IRON Figma 10769:16296（1440×715，2026-09-13 版）
   ▸ 所有選擇器以 #news 開頭；Lexend Exa 400／500 由 index.html head 載入
   ▸ 「查看更多」按鈕（radius 12、#CFE6A6 實心圓箭頭）暫以 #news 範圍實作，之後主 agent 統一到 base.css
   ▸ 進場：js/sections/news.js 逐項 APP.revealScrub；?static／reduced 下維持 CSS 終態
   ===================================================================== */
#news{
  --news-bg:#FBF9F5;
  --news-ink:#15251A;
  --news-go:#CFE6A6;
  --news-line:rgba(21,37,26,.12);
  --news-en:"Lexend Exa",var(--font-tc),"Geist",system-ui,-apple-system,sans-serif;
  background:var(--news-bg);color:var(--news-ink);
  padding:138px 40px 66px;          /* Figma：內容 left 40、top 138；右欄「查看更多」底 649 → 1440×715 底 66 */
}
#news .news-grid{
  display:flex;justify-content:space-between;align-items:flex-start;gap:48px;
  max-width:1360px;margin:0;   /* 寬螢幕與全站一致靠左 40，不置中 */
}
#news .news-col{min-width:0}
#news .news-col--events{flex:0 1 660px;display:flex;flex-direction:column;gap:16px}
#news .news-col--notice{flex:0 1 636px;display:flex;flex-direction:column;gap:24px}

/* ---------- 標題組：Lexend Exa 14/32 op .5 ＋ Noto Sans TC Medium 32 ---------- */
#news .news-head{display:flex;flex-direction:column;align-items:flex-start}
#news .news-head__en{
  font-family:var(--news-en);font-size:14px;line-height:32px;font-weight:500;letter-spacing:0;
  color:rgba(21,37,26,.5);white-space:nowrap;   /* 不用 opacity：revealScrub 會補到 1 */
}
#news .news-head__tc{
  margin:0;font-family:var(--font-tc);font-size:32px;line-height:normal;font-weight:500;letter-spacing:-1.44px;
  color:var(--news-ink);
}
#news .news-col__heading:focus{outline:none}
#news .news-col__heading:focus-visible{outline:var(--focus-ring);outline-offset:6px}

/* ---------- 共用圓鈕 40×40 ---------- */
#news .news-go{
  flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;
  background:var(--news-go);color:var(--news-ink);
  transition:background-color var(--dur-1) var(--ease-out);
}
#news .news-go--ghost{background:transparent}
#news .news-go svg{display:block;width:14.7368px;height:14.7368px;overflow:visible;transition:transform var(--dur-2) var(--ease-out)}

/* ---------- 活動卡 320×392 ---------- */
#news .news-cards{display:grid;grid-template-columns:repeat(2,minmax(0,320px));gap:20px;margin:0;padding:0;list-style:none}
#news .news-card{min-width:0;display:flex}
#news .news-card__link{
  flex:1;display:flex;flex-direction:column;min-height:392px;
  padding:10px 10px 20px;background:#FFFFFF;border-radius:12px;color:var(--news-ink);
}
#news .news-card__link:focus-visible{outline:var(--focus-ring);outline-offset:3px}
#news .news-card__media{
  position:relative;margin:0;overflow:hidden;border-radius:8px;background:#EAE2D5;
  width:100%;aspect-ratio:3 / 2;             /* 300×200 */
}
#news .news-card__media img{
  width:100%;height:100%;object-fit:cover;display:block;
  transform:scale(1.001);transition:transform var(--dur-3) var(--ease-out);
}
#news .news-card__body{
  flex:1;display:flex;flex-direction:column;align-items:flex-end;gap:12px;
  padding:16px 10px 0;min-width:0;
}
#news .news-card__date{
  align-self:stretch;margin:0;font-family:var(--news-en);font-size:14px;line-height:23.52px;font-weight:400;
  letter-spacing:0;color:rgba(21,37,26,.6);font-variant-numeric:tabular-nums;
}
#news .news-card__title{
  align-self:stretch;margin:0;font-family:var(--font-tc);font-size:20px;line-height:normal;font-weight:600;letter-spacing:-.32px;
  color:var(--news-ink);text-wrap:pretty;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
#news .news-card__go{margin-top:auto}

/* ---------- 公告列 ---------- */
#news .news-list{margin:0;padding:0;list-style:none}
#news .news-row{border-bottom:2px solid var(--news-line)}
#news .news-row__link{
  display:flex;justify-content:space-between;align-items:center;gap:24px;
  padding:24px 0 26px;color:var(--news-ink);
}
#news .news-row:first-child .news-row__link{padding-top:0}
#news .news-row__link:focus-visible{outline:var(--focus-ring);outline-offset:4px}
#news .news-row__text{display:flex;flex-direction:column;gap:4px;min-width:0}
#news .news-row__date{
  font-family:var(--news-en);font-size:12px;line-height:32px;font-weight:400;opacity:.5;font-variant-numeric:tabular-nums;
}
#news .news-row__title{font-family:var(--font-tc);font-size:22px;line-height:30.8px;font-weight:500;letter-spacing:0}

/* 標題 hover：淡底線 */
#news .news-card__title,
#news .news-row__title{
  text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:.22em;
  text-decoration-color:transparent;transition:text-decoration-color var(--dur-1) var(--ease-out);
}

/* ---------- 查看更多（#news 範圍覆寫；base.css 待統一） ---------- */
#news .news-more-wrap{display:flex;justify-content:flex-end}
#news .news-more{
  display:inline-flex;align-items:center;gap:14px;
  padding:16px 12px 16px 18px;border:0;border-radius:12px;background:transparent;
  font-family:var(--font-tc);font-size:15px;line-height:18px;font-weight:700;color:var(--news-ink);
  transition:background-color var(--dur-1) var(--ease-out);
}
#news .news-more__ico{
  display:grid;place-items:center;width:24px;height:24px;margin-block:-3px;   /* 按鈕高度照文字行 18＋padding 32＝50 */
  border-radius:50%;background:var(--news-go);color:var(--news-ink);
}
#news .news-more__ico svg{display:block;width:14px;height:14px;transition:transform var(--dur-2) var(--ease-out)}
#news .news-more:focus-visible{outline:var(--focus-ring);outline-offset:2px}

@media (hover:hover) and (pointer:fine){
  #news .news-card__link:hover .news-card__media img{transform:scale(1.03)}
  #news .news-card__link:hover .news-card__title,
  #news .news-row__link:hover .news-row__title{text-decoration-color:rgba(21,37,26,.35)}
  #news .news-card__link:hover .news-go svg,
  #news .news-row__link:hover .news-go svg,
  #news .news-more:hover .news-more__ico svg{transform:translateX(3px)}
  #news .news-row__link:hover .news-go--ghost{background:rgba(21,37,26,.06)}
  #news .news-more:hover{background:rgba(21,37,26,.05)}
}

/* ---------- RWD ---------- */
/* 1101–1180：兩欄並排最窄處，卡片標題 3 行會被截，縮字 */
@media (min-width:1101px) and (max-width:1180px){
  #news .news-card__title{font-size:18px}
}
@media (max-width:1100px){
  #news{padding:96px var(--gutter) 88px}
  #news .news-grid{flex-direction:column;align-items:stretch;gap:72px}
  #news .news-col--events,
  #news .news-col--notice{flex:none;width:100%}
  #news .news-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  #news .news-card__link{min-height:0}
}
@media (max-width:640px){
  #news{padding:64px var(--gutter) 64px}
  #news .news-grid{gap:56px}
  #news .news-head__tc{font-size:28px}
  #news .news-cards{grid-template-columns:minmax(0,1fr);gap:16px}
  #news .news-card__link{min-height:0}
  #news .news-row__link{padding:20px 0 22px;gap:16px}
  #news .news-row__title{font-size:19px;line-height:1.45}
  #news .news-card__link:active,
  #news .news-row__link:active{background-color:rgba(21,37,26,.04);transition-duration:.08s}
}

@media (prefers-reduced-motion:reduce){
  #news .news-card__media img,
  #news .news-card__title,
  #news .news-row__title,
  #news .news-go,
  #news .news-go svg,
  #news .news-more,
  #news .news-more__ico svg{transition:none}
  @media (hover:hover) and (pointer:fine){
    #news .news-card__link:hover .news-card__media img{transform:none}
    #news .news-card__link:hover .news-go svg,
    #news .news-row__link:hover .news-go svg,
    #news .news-more:hover .news-more__ico svg{transform:none}
  }
}
