/* =============================================================
   最新消息頁樣式 — 中文版 /news.html 與英文版 /en/news.html 共用
   ⚠ 只有這一份，改這裡兩個語言版本同時生效
   ============================================================= */
  /* ============================================================
     News page styles
     ============================================================ */
  .page-hero {
    padding: clamp(70px, 9vw, 140px) 0 clamp(50px, 6vw, 90px);
    background:
      radial-gradient(circle at 90% 10%, rgba(0,127,2,.06) 0%, transparent 50%),
      var(--paper);
    position: relative;
    border-bottom: 1px solid var(--hair);
    overflow: hidden;
  }
  .page-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(var(--hair) 1px, transparent 1px),
      linear-gradient(90deg, var(--hair) 1px, transparent 1px);
    background-size: 96px 96px;
    opacity: .25;
    -webkit-mask-image: radial-gradient(ellipse at 30% 100%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at 30% 100%, #000 30%, transparent 75%);
    pointer-events: none;
  }
  .breadcrumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px; letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--steel); margin-bottom: 36px;
    display: flex; gap: 10px;
    position: relative; z-index: 1;
  }
  .breadcrumb a:hover { color: var(--green); }
  .breadcrumb .sep { opacity: .5; }
  .page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
    gap: clamp(40px, 6vw, 100px);
    align-items: end;
    position: relative; z-index: 1;
  }
  @media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }
  .page-hero h1 {
    font-family: 'Bricolage Grotesque','Noto Sans TC',sans-serif;
    font-weight: 500;
    font-size: clamp(48px, 7vw, 110px);
    line-height: .98;
    letter-spacing: -.025em;
    margin: 0;
  }
  .page-hero h1 em { font-style: normal; font-weight: 400; color: var(--green); }
  .page-hero .lead {
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 480px;
  }

  /* ============================================================
     NEWS BANNER — full-bleed hero (Edge Computing image)
     Left side of the artwork is pure white → dark text.
     ============================================================ */
  .news-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 2048 / 1152;
    max-height: 760px;
    min-height: 420px;
    overflow: hidden;
    background: #ffffff;
    isolation: isolate;
  }
  .news-banner > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 82% center;
  }
  .news-banner::before {
    /* White scrim over the left half so dark text stays crisp */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,.96) 26%,
      rgba(255,255,255,.55) 43%,
      rgba(255,255,255,0) 60%);
    pointer-events: none;
  }
  .nb-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: clamp(26px, 3.4vw, 52px) var(--gutter);
    display: flex;
    flex-direction: column;
  }
  .nb-overlay .breadcrumb { margin-bottom: 0; }
  .nb-content {
    margin: auto 0;
    max-width: 600px;
  }
  .nb-content .eyebrow { margin-bottom: 20px; }
  .news-banner h1 {
    font-family: 'Bricolage Grotesque','Noto Sans TC',sans-serif;
    font-weight: 500;
    font-size: clamp(40px, 5.6vw, 92px);
    line-height: 1.0;
    letter-spacing: -.025em;
    margin: 0;
    color: var(--ink);
  }
  .news-banner h1 em { font-style: normal; font-weight: 400; color: var(--green); }
  .nb-sub {
    margin: 24px 0 0;
    max-width: 490px;
    font-size: clamp(14.5px, 1.1vw, 16.5px);
    line-height: 1.72;
    color: var(--ink-2);
  }
  .nb-sub strong { color: var(--green); font-weight: 600; }

  /* Mobile — banner grows taller, stronger top-down scrim */
  @media (max-width: 820px) {
    .news-banner {
      aspect-ratio: auto;
      min-height: 540px;
      max-height: none;
    }
    .news-banner::before {
      background: linear-gradient(178deg,
        rgba(255,255,255,.97) 0%,
        rgba(255,255,255,.86) 48%,
        rgba(255,255,255,.62) 100%);
    }
    .nb-content { max-width: 100%; }
  }

  /* Filter chips */
  .news-filter {
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
  }
  .news-filter-track {
    display: flex;
    gap: 10px;
    padding: 22px 0;
    flex-wrap: wrap;
  }
  .nf-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
    background: var(--paper);
    border: 1px solid var(--hair);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .25s var(--easing);
  }
  .nf-chip:hover { border-color: var(--ink); }
  .nf-chip.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .nf-chip .count {
    margin-left: 6px;
    color: var(--green);
    font-weight: 600;
  }
  .nf-chip.active .count { color: #6BFF6E; }

  /* Featured article block */
  .news-featured {
    padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 5vw, 60px);
    background: var(--paper);
  }
  .article-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    box-shadow: 0 30px 60px -28px rgba(14,20,16,.25);
  }
  @media (max-width: 900px) { .article-card { grid-template-columns: 1fr; } }
  .article-card .a-img {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #11221a;
  }
  .article-card .a-img img {
    width: 100%; height: 100%;
    object-fit: cover;
  }
  .article-card .a-body {
    padding: clamp(28px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .article-card .a-meta {
    display: flex; gap: 14px; align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: .12em;
    color: rgba(247,246,241,.65);
  }
  .article-card .a-meta .tag {
    background: rgba(107,255,110,.15);
    color: #6BFF6E;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
  }
  .article-card h2 {
    font-family: 'Bricolage Grotesque','Noto Sans TC', sans-serif;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.015em;
    margin: 0;
    color: var(--paper);
  }
  .article-card h2 em { color: #6BFF6E; font-style: normal; font-weight: 400; }
  .article-card .lede {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(247,246,241,.82);
    margin: 0;
  }
  .article-card .bullets {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .article-card .bullets li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(247,246,241,.85);
  }
  .article-card .bullets li::before {
    content: "●";
    position: absolute; left: 0; top: 0;
    color: #6BFF6E;
    font-size: 10px;
    line-height: 1.7;
  }
  .article-card .bullets li strong {
    display: block;
    color: var(--paper);
    font-family: 'Bricolage Grotesque','Noto Sans TC', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    letter-spacing: -.005em;
  }
  .article-card .venue {
    margin-top: 10px;
    padding: 18px 0 0;
    border-top: 1px dashed rgba(247,246,241,.18);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 540px) { .article-card .venue { grid-template-columns: 1fr; } }
  .article-card .venue .v-item .k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(247,246,241,.55);
    margin-bottom: 4px;
  }
  .article-card .venue .v-item .v {
    font-size: 14px;
    color: var(--paper);
    font-weight: 500;
    line-height: 1.4;
  }
  .article-card .a-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: #6BFF6E;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
    align-self: flex-start;
    transition: background .25s var(--easing);
  }
  .article-card .a-cta:hover { background: var(--paper); }

  /* News list */
  .news-list-section {
    padding: clamp(40px, 5vw, 70px) 0 clamp(80px, 10vw, 140px);
    background: var(--paper);
  }
  .news-list-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
  }
  .news-list-head h3 {
    font-family: 'Bricolage Grotesque','Noto Sans TC', sans-serif;
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 500;
    letter-spacing: -.01em;
    margin: 12px 0 0;
  }
  .news-list-head h3 em { color: var(--green); font-style: normal; font-weight: 400; }
  .news-list-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--steel);
  }

  .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--hair);
    border: 1px solid var(--hair);
  }
  @media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

  .news-item {
    background: var(--paper);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background .25s var(--easing);
  }
  .news-item:hover { background: var(--paper-2); }
  /* 縮圖多半是帶文字的資訊圖，不能裁切：框為 3:2（多數圖的比例），
     圖用 contain 完整顯示，比例不同的圖只會留下很窄的深色邊 */
  .news-item .nc-img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--ink);
  }
  .news-item .nc-img img {
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    transition: transform .5s var(--easing);
  }
  .news-item:hover .nc-img img { transform: scale(1.03); }
  /* Placeholder image block for posts without a photo yet */
  .news-item .nc-img.ph {
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--ink) 0%, var(--green-deep) 160%);
  }
  .news-item .nc-img.ph span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(247,246,241,.6);
  }
  .news-item .nc-body {
    padding: 24px 26px 26px;
    display: flex; flex-direction: column; gap: 14px;
    flex: 1;
  }
  .news-item .meta {
    display: flex; gap: 12px; align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--steel);
  }
  .news-item .meta .tag {
    background: var(--green-tint);
    color: var(--green-deep);
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
  }
  .news-item h4 {
    font-family: 'Bricolage Grotesque','Noto Sans TC', sans-serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -.005em;
    line-height: 1.3;
    margin: 0;
    color: var(--ink);
  }
  .news-item p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-2);
    margin: 0;
    flex-grow: 1;
    /* 摘要過長時（例如英文版沿用文章引言）最多顯示 6 行，避免撐高卡片 */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-item .read {
    margin-top: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    display: inline-flex; gap: 8px; align-items: center;
  }
  .news-item .read::after { content: "→"; color: var(--green); }
  /* "暫留" (no article yet) cards — keep label but no arrow */
  .news-item .read.na { color: var(--steel); }
  .news-item .read.na::after { content: ""; }

  /* CTA */
  .cta {
    padding: clamp(80px, 9vw, 140px) 0;
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
  }
  .cta::after {
    content: "NEWS";
    position: absolute;
    bottom: -40px; left: 50%; transform: translateX(-50%);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(120px, 22vw, 320px);
    color: rgba(247,246,241,.04);
    letter-spacing: -.05em;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
  }
  .cta-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px; align-items: center;
  }
  @media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; } }
  .cta h2 {
    font-family: 'Bricolage Grotesque','Noto Sans TC',sans-serif;
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 500; line-height: 1.04; letter-spacing: -.02em;
    margin: 18px 0 0;
  }
  .cta h2 em { font-style: normal; font-weight: 400; color: #6BFF6E; }
  .cta-side p { color: rgba(247,246,241,.78); font-size: 16px; line-height: 1.7; margin: 0 0 32px; }
  .cta-actions { display: flex; flex-direction: column; gap: 0; }
  .cta-action-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(247,246,241,.15); padding: 18px 0; transition: padding-left .3s var(--easing); }
  .cta-action-row:last-child { border-bottom: 1px solid rgba(247,246,241,.15); }
  .cta-action-row:hover { padding-left: 12px; color: #6BFF6E; }
  .cta-action-row .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,246,241,.6); }
  .cta-action-row .val { font-size: 17px; font-weight: 500; margin-top: 4px; }
  .cta-action-row .arrow { font-size: 22px; }

/* ============================================================
   英文版尚無翻譯文章時的提示（取代空白列表）
   ============================================================ */
.news-empty {
  grid-column: 1 / -1;
  padding: clamp(56px, 8vw, 96px) 24px;
  text-align: center;
  border: 1px dashed var(--hair);
  background: var(--paper);
}
.news-empty .ne-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 14px;
}
.news-empty h3 {
  font-family: 'Bricolage Grotesque','Noto Sans TC',sans-serif;
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 500;
  letter-spacing: -.01em; color: var(--ink); margin: 0 0 14px;
}
.news-empty p {
  font-size: 15px; line-height: 1.7; color: var(--ink-2);
  max-width: 520px; margin: 0 auto 26px;
}
