@supports (text-box: trim-both cap alphabetic) {

  h1,
  h2,
  h3,
  p,
  .eyebrow,
  .xs,
  small,
  strong {
    text-box: trim-both cap alphabetic;
  }
}

:root {
  --bg: #101113;
  --bg2: #1b1c1e;
  --line: #303134;
  --title: #fff;
  --accent: #00ffdd;
  --text: #97989b;
  --f-main: "Poppins", "Figtree", system-ui, -apple-system, "Noto Sans TC", sans-serif;
  --f-num: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-head: "Poppins", "Figtree", system-ui, sans-serif;
  /* font sizes (design px / 10 = rem) */
  --fs-hero: 18.261rem;
  --fs-count: 9.551rem;
  --fs-count-d: 7.521rem;
  --fs-count-t: 4.491rem;
  --fs-xs: 1.08rem;
  --fs-s: 1.157rem;
  --fs-eyebrow: 1.415rem;
  --fs-h1: 5.5rem;
  --fs-h2: 2.5rem;
  --fs-h3: 2rem;
  --fs-feat: 1.268rem;
  --fs-table: 1.421rem;
  --fs-end: 9.221rem;
  /* spacing */
  --bw: 0.3rem;
  --pad-x: 6rem;
  --cd-pad-x: 17.5rem;
  --main-pad-y: 17.3rem;
  --main-pad-x: 7rem;
  --main-gap: 17.3rem;

  /* font weight */
  --fw-sb: 600;
  --fw-eb: 800;
  --fw-b: 700;
  --fw-m: 500;
}

/* 手機版變數：1rem = 8px（390px 寬時）。字級與結構性間距在這裡重新指定一次 */
@media (max-width:1023px) {
  :root {
    --fs-hero: 7rem;
    /* 56px */
    --fs-count: 5.25rem;
    /* 42px */
    --fs-count-t: 2.75rem;
    /* 22px */
    --fs-xs: 1.375rem;
    /* 11px */
    --fs-s: 1.5rem;
    /* 12px */
    --fs-eyebrow: 1.5rem;
    /* 12px */
    --fs-h1: 4rem;
    /* 32px */
    --fs-h2: 2.75rem;
    /* 22px */
    --fs-h3: 2.25rem;
    /* 18px */
    --fs-feat: 1.75rem;
    /* 14px */
    --fs-table: 1.5rem;
    /* 12px */
    --fs-end: 5rem;
    /* 40px */
    --bw: max(1px, 0.25rem);
    --pad-x: 2.5rem;
    /* 20px */
    --cd-pad-x: 2.5rem;
    --main-pad-y: 10rem;
    /* 80px */
    --main-pad-x: 2.5rem;
    --main-gap: 8rem;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

img {
  width: 100%;
  height: auto;
}

html {
  font-size: clamp(6.27px, calc(100vw / 163.3), 10px);
  -webkit-text-size-adjust: 100%
}

@media (max-width:1023px) {
  html {
    font-size: clamp(6px, calc(100vw / 48.75), 10px);
    /* 390px 寬時 1rem = 8px */
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-main);
  font-weight: var(--fw-m);
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

.wrap {
  max-width: 163.3rem;
  margin-inline: auto;
  padding-inline: var(--pad-x)
}

.full {
  background: var(--bg)
}

h1,
h2,
h3 {
  color: var(--title);
  font-weight: var(--fw-m)
}

.eyebrow {
  font-size: max(var(--fs-eyebrow), 10px);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: var(--fw-m)
}

.xs {
  font-size: max(var(--fs-xs), 10px)
}

.s {
  font-size: max(var(--fs-s), 10px)
}

.ph {
  aspect-ratio: 1/1.1;
  display: grid;
  place-items: center;
  border-radius: .6rem;
  background: radial-gradient(ellipse at 50% 85%, var(--g1), transparent 65%), #17181a;
  color: #fff;
  font-family: var(--f-num);
  font-weight: var(--fw-b);
  font-size: max(2.4rem, 12px);
  background-size: cover;
  background-position: center;
}

.ex6-pic {
  background-image: url(assets/images/EX6.webp);
}

.ex6-max-pic {
  background-image: url(assets/images/EX6-MAX.webp);
}

.ex6-ultra-pic {
  background-image: url(assets/images/EX6-ULTRA.webp);
}

.ex6-png {
  background-image: url(assets/images/EX6_hero.webp);
}

.ex6-max-png {
  background-image: url(assets/images/EX6-MAX_hero.webp);
}

.ex6-ultra-png {
  background-image: url(assets/images/EX6-ULTRA_hero.webp);
}

/* top bar */
.bar {
  border-bottom: var(--bw) solid var(--line)
}

.bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 2.8rem;
  max-width: unset;
}

.logo {
  font-weight: var(--fw-eb);
  letter-spacing: .12em;
  color: #fff;
  font-size: max(1.8rem, 11px);
  width: 14.7rem;
  line-height: 1.8rem;
  white-space: nowrap
}

.bar span {
  color: #fff;
  font-size: max(var(--fs-s), 9px);
  font-weight: 400;
  letter-spacing: .08em;
}

/* hero */
.hero .wrap {
  padding-block: 7.2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7.2rem;
  padding-inline: 0;
}

.hero h1 {
  /* margin-top: 1rem; */
  font-family: var(--f-head);
  font-weight: var(--fw-b);
  font-size: var(--fs-hero);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.03em;
  transform: translate(7rem, 0px);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent)
}


.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 54.4rem));
  gap: 0;
  justify-content: center;
  width: 100%;
  transform: translate(-4rem, 0px);
}

.hero-item {
  text-align: center
}

.hero-item b {
  display: block;
  margin-top: 1.4rem;
  color: #fff;
  font-family: var(--f-num);
  font-size: max(2.4rem, 11px)
}

.hero-item sup {
  font-size: .5em;
  color: var(--text)
}

/* countdown */
.cd {
  background: var(--bg2)
}

.cd .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: var(--cd-pad-x);
  gap: 3rem;
  max-width: unset
}

.cd-l {
  padding-block: 7rem
}

.cd-l h2 {
  font-size: var(--fs-count-t);
  margin: 2.7rem 0 3.3rem 0;
  font-weight: var(--fw-sb)
}

.cd-l p {
  font-size: max(var(--fs-s), 9px);
  /* font-weight: var(--fw-sb); */
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cd-r {
  padding-block: 5.7rem 5.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3.7rem
}

/* 倒數上方：日期文案 + 加入日曆（間距 53px） */
.cd-top {
  display: flex;
  align-items: center;
  gap: 9.9rem;
}

.cd-date {
  font-family: var(--f-head);
  font-size: 3.457rem;
  font-weight: var(--fw-m);
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent)
}

/* 逗點 25px */
.cd-comma {
  font-size: 2.5rem
}

.cd-nums {
  display: flex;
}

.cd-n {
  text-align: center;
  position: relative;
  padding: 0 3.9rem;
}

.cd-n+.cd-n::before {
  content: ":";
  position: absolute;
  left: -1.5rem;
  top: 0.6rem;
  font-family: var(--f-num);
  font-size: var(--fs-count-t);
  line-height: 1;
  color: var(--text)
}

.cd-n strong {
  display: block;
  font-family: var(--f-num);
  font-weight: var(--fw-m);
  font-size: var(--fs-count);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums
}

/* 12/6 起倒數數字改為重點色（由 script.js 加上 .is-final） */
.cd-nums.is-final .cd-n strong {
  color: var(--accent)
}

.cd-n small {
  display: block;
  margin-top: 2.7rem;
  font-size: max(var(--fs-xs), 7px);
  text-transform: uppercase;
  letter-spacing: .1em
}

.cal {
  color: #fff;
  font-size: max(var(--fs-s), 9px);
  padding: 1rem 0;
  letter-spacing: 0.1em;
  border-bottom: var(--bw) solid var(--line);
  text-decoration: none;
  display: flex;
  gap: 1.8rem;
  justify-content: space-between;
  width: 16rem;
}

.cal span {
  color: var(--accent);
  font-size: 1.4rem;
}

/* main */
main {
  padding: var(--main-pad-y) var(--main-pad-x);
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: var(--main-gap);
  max-width: 163.3rem;
  margin-inline: auto
}

.sec-head .eyebrow {
  display: block;
  margin-bottom: 3.7rem
}

.sec-head h2 {
  font-size: var(--fs-h1);
  line-height: 1;
  margin-bottom: 6rem
}



/* 01 */
.s1-top {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1fr;
  align-items: start;
  gap: 4rem;
  margin-bottom: 10.8rem
}

.s1-top h1 {
  font-size: var(--fs-h1);
  line-height: 1;
  margin: 0
}

.s1-top h1 .line {
  display: block;
  white-space: nowrap;
  /* 亂序時字寬會變，避免換行造成跳動 */
}

.s1-top p {
  font-size: max(var(--fs-feat), 10px);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-left: -1rem;
}

.feat3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7.8rem;
  margin-bottom: 5.8rem;
}

.feat3>div {
  border-top: var(--bw) solid var(--line);
  padding-top: 4rem;
  /* 用 subgrid 讓三欄的 編號 / 標題 / 內文 共用同一列高度，標題行數不同也能對齊 */
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
}

.feat3 .eyebrow {
  display: block;
  color: var(--accent);
  margin-bottom: 5rem;
  font-size: max(var(--fs-eyebrow), 9px)
}

.feat3 h2 {
  font-size: var(--fs-h2);
  margin-bottom: 3.8rem;
  font-weight: var(--fw-m);
  line-height: 1.2;
}

.feat3 p {
  font-size: max(var(--fs-feat), 10px);
  line-height: 1.6;
  padding-right: 3.2rem;
  letter-spacing: .05em;
}

/* 02 */
.s2-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 6rem
}

.s2-head .head-text {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.s2-head .xs {
  text-transform: uppercase;
  font-size: var(--fs-s);
  letter-spacing: .18em;
}

.s2-head h2 {
  margin-bottom: unset;
}

.s2 .lead {
  font-size: max(var(--fs-table), 10px);
  line-height: 1.3;
  margin-bottom: 4.7rem
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: -1rem;
  margin-bottom: 3.1rem;

}

.card {
  background: transparent;
  padding: 0;
  position: relative;
  perspective: 240rem;
}

.card:focus-visible {
  outline: .2rem solid var(--accent);
  outline-offset: .4rem;
}

.card-front,
.card-back {
  background: var(--bg2);
  padding: 3.6rem;
  height: 100%;
  ;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.card-front {
  position: relative;
}

/* 正面在文件流裡，撐出卡片高度 */

.card-back {
  position: absolute;
  inset: 0;
}

.card h3 {
  font-size: 3.4rem;
  /* font-weight: var(--fw-sb); */
  display: flex;
  align-items: baseline;
  gap: .6rem
}

/* 標題改用 SVG logo：高度 = 原本文字的大寫字高，跟著 h3 的 font-size（含 RWD）縮放 */
.card h3 .card-title-logo {
  display: block;
  height: 0.72em;
  /* 不支援 cap 單位時的後備值 */
  height: 1cap;
  width: auto;
  max-width: none;
  /* 蓋掉全域的 img { width: 100% } */
}

.card h3 i {
  font-style: normal;
  font-size: .6em;
  color: var(--accent);
  font-weight: var(--fw-sb)
}

.card .xs {
  display: block;
  margin: 2.3rem 0 3.3rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--title);
}

.card .ph {
  aspect-ratio: 1 / 1;
  margin-bottom: 5rem
}

.card p {
  font-size: max(var(--fs-table), 10px);
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* 卡片標題列：標題靠左、合作 logo 靠右，副標獨佔下一行 */
.card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 2rem;
}

.card-head h3 {
  order: 1;
  min-width: 0;
}

.card-head .card-logo {
  order: 2;
  /* 標題的右邊 */
  width: auto;
  /* 蓋掉全域的 img { width: 100% } */
  max-width: none;
  /* height: 2.8rem; */
}

.card-head .xs {
  order: 3;
  /* 排在標題與 logo 的下面 */
  flex-basis: 100%;
  /* 獨占一整行，逼 logo 留在第一行 */
}

/* 手機：三欄太窄，logo 改排在副標下面 */
@media (max-width: 1023px) {
  .card-head .card-logo {
    order: 4;
    height: 2.5rem;
    margin-top: .6rem;
  }

  .s1-top p {
    margin-left: unset;

  }
}


/* 03 */
.tbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: max(var(--fs-table), 10px)
}

.tbl th,
.tbl td {
  text-align: left;
  padding: 2.5rem 1.5rem;
  border-bottom: var(--bw) solid var(--line);
  /* font-weight: var(--fw-sb); */
  overflow-wrap: anywhere;
  vertical-align: middle
}

.tbl thead th {
  color: #fff;
  font-weight: var(--fw-sb);
  background: var(--bg2)
}

.tbl th:first-child,
.tbl td:first-child {
  width: 42%;
  color: #fff
}

.tbl td {
  color: var(--text)
}

.tbl .u {
  background: rgb(0 255 221 / 5%);
  font-weight: var(--fw-b)
}

.tbl thead .u {
  color: var(--accent);
  background: rgb(0 255 221 / 5%)
}

/* 第一欄與 ULTRA 欄：白色 */
.tbl td:first-child,
.tbl td.u {
  color: #fff;
}

/* EX6 ULTRA / EX6 MAX / EX6 三欄文字置中 */
.tbl th:nth-child(n+2),
.tbl td:nth-child(n+2) {
  text-align: center
}

/* EX6 MAX / EX6 尚未公布：黑色 75% 遮罩 + 中間列顯示 COMING SOON */
.tbl td.soon {
  background: rgb(0 0 0 / 75%);
  border-bottom-color: color-mix(in srgb, var(--line) 25%, #000);
  text-align: center;
  color: var(--text);
  font-size: 1.621rem;
  font-weight: var(--fw-sb);
  text-transform: uppercase
}

/* 04 */
.s4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8.4rem;
  align-items: center;
}

.vid {
  /* aspect-ratio: 708/653; */
  height: 100%;
  display: grid;
  place-items: center;
  font-size: max(1.6rem, 12px);
  /* font-weight: var(--fw-sb); */
  overflow: hidden;
}

.s4 .text {
  height: 100%;
}

.vid-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s4 .eyebrow {
  display: block;
  margin-bottom: 3.8rem
}

.s4 h2 {
  font-size: var(--fs-h1);
  line-height: .95;
  letter-spacing: -0.015em;
  margin-bottom: 5.4rem
}

/* 標題靠左、合作 logo 靠右 */
.s4-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  column-gap: 2rem;
  margin-bottom: 5.4rem;
}

.s4-head h2 {
  margin-bottom: 0;
  /* 間距改由 .s4-head 負責 */
  min-width: 0;
}

.s4-head .s4-logo {
  width: 30%;
  /* 蓋掉全域的 img { width: 100% } */
  max-width: none;
  flex-shrink: 0;
  transform: translateY(10px);
}

.s4 .lead {
  font-size: max(var(--fs-table), 10px);
  line-height: 1.3;
  margin-bottom: 4.7rem
}

.pt {
  border-top: var(--bw) solid var(--line);
  padding-block: 3rem 3.4rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 2.5rem;
}

.pt:last-child {
  padding-bottom: 0
}

.pt .eyebrow {
  font-size: max(var(--fs-eyebrow), 9px);
  margin: 0;
  padding-top: -0.5rem
}

.pt h3 {
  font-size: max(var(--fs-h3), 11px);
  color: #fff;
  margin-bottom: 2rem
}

.pt p {
  font-size: max(var(--fs-table), 10px);
  line-height: 1.3;
  grid-column: 2
}

/* 02 / EX6 ULTRA：左圖右文、圖文等高，logo 貼齊圖片底部（與 04 的 .s4 完全分開） */
.s2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8.4rem;
  align-items: stretch;
}

.s2-pic {
  overflow: hidden;
}

.s2-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s2-text {
  display: flex;
  flex-direction: column;
}

.s2 .eyebrow {
  display: block;
  margin-bottom: 3.8rem;
}

.s2 h2 {
  font-size: var(--fs-h1);
  line-height: .95;
  letter-spacing: -0.015em;
  /* margin-bottom: 5.4rem; */
}

.s2 .pt {
  display: block;
  /* padding-bottom: 0; */
}

.s2 .pt h3 {
  font-size: max(2.249rem, 11px);
  margin-bottom: 2rem;
}

.s2 .pt ul {
  font-size: max(1.621rem, 10px);
  transform: translateX(18px);
  line-height: 1.8;
}

.s2-logo {
  display: block;
  width: 45.3rem;
  height: 2.8rem;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-top: auto;
  padding-top: 4rem;
  box-sizing: content-box;
}

/* 只在手機版斷行的 <br> */
.s2 .br-sp {
  display: none;
}

@media (max-width:1023px) {
  .s2 {
    grid-template-columns: 1fr;
    gap: 3.75rem;
  }

  .s2-pic {
    aspect-ratio: 708/653;
  }

  .s2 .eyebrow {
    margin-bottom: 2.75rem;
  }

  .s2 h2 {
    margin-bottom: 3rem;
  }

  .s2 .br-sp {
    display: inline;
  }

  .s2 .pt h3 {
    margin-bottom: 1.2rem;
  }

  .s2-logo {
    width: 36rem;
    height: auto;
    aspect-ratio: 453 / 28;
    padding-top: 3rem;
  }
}

/* end */
.end {
  text-align: center;
  /* padding-block: 2rem var(--main-pad-y) */
}

.end .eyebrow {
  display: block;
  margin-bottom: 4.9rem;
  letter-spacing: 0.18em;
  font-size: max(var(--fs-eyebrow), 9px)
}

.end h2 {
  font-size: var(--fs-end);
  line-height: 1.15;
  /* font-weight: var(--fw-sb); */
  letter-spacing: -.01em
}

.end h2 span {
  display: block;
  color: var(--text);
  padding-bottom: 2px;

}

.end .ex6 {
  /* 與上方 h2 距離 72px */
  margin-top: 8.8rem;
}

.end .ex6 img {
  /* 193x43，用 rem 隨視窗自適應 */
  display: block;
  width: 19.3rem;
  height: auto;
  aspect-ratio: 193 / 43;
  margin-inline: auto;
}

.cta {
  display: inline-flex;
  gap: 1.8rem;
  align-items: center;
  /* 與上方 logo 距離 23px */
  margin-top: 2.3rem;
  background: var(--accent);
  color: var(--bg);
  padding: 2rem 3.2rem;
  font-size: max(var(--fs-feat), 10px);
  /* font-weight: var(--fw-sb); */
  text-decoration: none;
  letter-spacing: .08em;
}

.cta .icon {
  --icon-w: 600;
}

footer {
  border-top: var(--bw) solid var(--line)
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 2.8rem;
  max-width: unset;

}

footer span {
  font-size: max(var(--fs-s), 9px);
  color: #fff;
  letter-spacing: .08em;
}

/* 手機版排版：數值依 1rem = 8px 計算，沒寫在這裡的 rem 會隨基準自動縮小 */
@media (max-width:1023px) {
  main {
    margin-top: 0;
  }

  .cd .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0
  }

  .cd-l {
    padding-block: 3.75rem 0
  }

  .cd-r {
    align-items: stretch;
    padding-block: 3rem;
    gap: 2.5rem
  }

  .cd-nums {
    justify-content: space-between;
    gap: 0
  }

  .cd-n {
    flex: 1;
    padding: 0 .875rem
  }

  .cd-n+.cd-n::before {
    left: -.625rem
  }

  .cd-n small {
    font-size: 9px
  }

  .cal {
    width: 100%;
    gap: 0
  }

  .cd-top {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem
  }

  .cd-date {
    font-size: 3rem
  }

  .cd-comma {
    font-size: 2.17rem
  }

  .hero .wrap {
    padding-block: 3.75rem;
    gap: 3rem
  }

  .s1-top {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    margin-left: unset;
  }

  .feat3,
  .cards {
    grid-template-columns: 1fr;
    gap: 2.5rem
  }

  .feat3>div {
    padding-top: 2.5rem
  }

  .feat3 .eyebrow,
  .feat3 h2 {
    margin-bottom: 2.5rem
  }

  .feat3 p {
    padding-right: 0
  }

  .s2-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3rem;
  }

  .s2-head .xs {
    display: none
  }

  .vid {
    aspect-ratio: 708/653;
  }

  .sec-head h2,
  .s4-head {
    margin-bottom: 3rem
  }

  .sec-head .eyebrow,
  .s4 .eyebrow {
    margin-bottom: 2.75rem
  }

  .card-front,
  .card-back {
    padding: 3rem
  }

  .card h3 {
    font-size: 3rem
  }

  .card .xs {
    /* margin: .75rem 0 1.5rem */
  }

  .card .ph {
    margin-bottom: 2rem
  }

  .card p {
    margin-bottom: 0
  }

  .tbl th,
  .tbl td {
    padding: 1.5rem .75rem
  }

  .tbl th:first-child,
  .tbl td:first-child {
    width: 34%
  }

  .tbl td.soon {
    font-size: 1.5rem
  }

  .s4 {
    grid-template-columns: 1fr;
    gap: 3.75rem
  }

  .s4-head {
    margin-bottom: 2.5rem
  }

  .s4-head .s4-logo {
    transform: unset
  }

  .pt {
    padding-block: 2rem
  }

  .end h2 br {
    display: none
  }

  .cta {
    font-size: max(1.4rem, 10px);
    /* 約 11px，原本 14px */
    padding: 1.4rem 2.4rem;
    /* 原本 2rem 3rem */
    gap: 1rem;
    /* 文字與箭頭的距離，原本約 14px */
    margin-top: 2.3rem;
    /* 與上方 logo 的距離 */
  }

  .cta .icon {
    font-size: max(1.4rem, 10px);
    /* 箭頭大小，原本最小 14px 縮不下去 */
  }
}

/* icon: Material Symbols arrow, weight adjustable via --icon-w (100-700) */
.icon {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: max(1.8rem, 14px);
  line-height: 1;
  width: 1em;
  height: 1em;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: normal;
  text-transform: none;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" var(--icon-w, 600), "GRAD" 0, "opsz" 24;
}



.hero-item .ph {
  width: 100%;
  aspect-ratio: 544 / 632;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  place-items: end center;
  /* padding-bottom: 3.6rem; */
  letter-spacing: .05em;
  text-shadow: 0 .2rem 1.2rem rgb(0 0 0 / 60%);
}

/* 標題：一個單字一行，只保留 hover 效果 */
.page-title {
  font-family: var(--f-head);
  visibility: hidden;
  text-align: center;
  overflow: hidden;
  /* 讓 logo 浮出時從下方被裁切 */
}

.page-title img {
  display: block;
  margin-inline: auto;
  height: .65em;
  /* 不支援 cap 單位時的備案（Poppins 大寫高度約 0.7em） */
  /* height: 1cap; */
  /* 和原本大寫文字標題同高 */
  width: auto;
}

/* ---------- hero：光打在機殼上 ---------- */
.hero-item .ph {
  position: relative;
  isolation: isolate;
  /* 亮層墊在文字下面 */
  --x: 30%;
  --y: 30%;
  --lit: 0;
  --size-x: 35%;
  --size-y: 35%;

}

.hero-item .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: inherit;
  /* 沿用同一張透明 PNG，只有機殼會亮 */
  filter: brightness(2.2) contrast(1.1) saturate(1.2);
  opacity: var(--lit);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse var(--size-x) var(--size-y) at var(--x) var(--y), #000 0%, rgb(0 0 0 / .5) 45%, transparent 100%);
  mask-image: radial-gradient(ellipse var(--size-x) var(--size-y) at var(--x) var(--y), #000 0%, rgb(0 0 0 / .5) 45%, transparent 100%);
}

/* hero 機殼圖上的 logo：以高度為主，桌機 31px，手機依機殼圖寬度等比例縮小 */
.hero-item .ph {
  container-type: inline-size;
  /* 讓 logo 的尺寸可以參照機殼圖的寬度 */
  /* padding-bottom: 7.14cqw;              桌機 36px 的位置，隨機殼圖等比縮放 */
}

.hero-item .ph>div {
  display: flex;
  justify-content: center;
  padding-bottom: 6.2rem;
}

.hero-item .ph img {
  display: block;
  width: auto;
  /* 寬度由高度和原圖比例自動決定 */
  max-width: none;
  height: 3.1rem;
  /* 不支援 cqw 的舊瀏覽器退回這個值 */
  height: 5.6cqw;
  /* 31px ÷ 機殼圖寬 504px：桌機 31px，手機等比例縮小 */
}

@media (max-width:1023px) {
  .hero-item .ph>div {

    padding-bottom: 0;
  }
}

/* 表格列 hover 圖片：放在表格外層，位置由 JS 依該列算出，可以超出表格 */
.row-pop {
  position: absolute;
  left: 0;
  top: 0;
  width: 20rem;
  aspect-ratio: 1 / 1;
  max-width: none;
  pointer-events: none;
  /* 不擋住滑鼠，不然 mouseleave 會一直被觸發；滑到圖片上的判斷由 JS 算座標 */
  z-index: 5;
}

.row-pop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 滑鼠在圖片範圍內：黑色半透明遮罩 + 白色放大 icon */
.row-pop-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .2s ease;
}

.row-pop-zoom svg {
  width: 4rem;
  height: 4rem;
  min-width: 28px;
  min-height: 28px;
}

.row-pop.is-zoom .row-pop-zoom {
  opacity: 1;
}

/* 表格圖片放大彈窗 */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, .8);
  visibility: hidden;
  opacity: 0;
}

/* 圖片比視窗小時置中；比視窗大時可以捲動，且不會被切掉左上角 */
.lb-inner {
  display: flex;
  min-width: 100%;
  min-height: 100%;
  width: max-content;
  padding: 6rem;
  box-sizing: border-box;
}

.lb-img {
  display: block;
  margin: auto;
  flex: none;
  width: auto;
  height: auto;
  max-width: 1000px;
  max-height: 1000px;
}

/* 手機、平板：圖片寬度不超過螢幕（扣掉左右留白） */
@media (hover: none) {
  .lb-img {
    max-width: min(1000px, calc(100vw - 12rem));
  }
}

.lb-close {
  position: fixed;
  top: 2.4rem;
  right: 2.4rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}

.lb-close:hover,
.lb-close:focus-visible {
  background: rgba(255, 255, 255, .2);
}

.lb-close svg {
  width: 45%;
  height: 45%;
}

/* 規格表（下拉展開） */
.spec {
  /* 與 .end（cta）的距離 128px（main 的 gap 之外再補差額） */
  margin-top: calc(12.8rem - var(--main-gap));
  border-top: var(--bw) solid var(--line);
}

.spec-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.1rem 0 4.8rem;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.spec-title {
  font-size: max(var(--fs-h2), 14px);
  /* font-weight: var(--fw-sb); */
  line-height: 1.2;
}

/* + / − 用兩條線畫，展開時直線收起變成 − */
.spec-icon {
  position: relative;
  flex: none;
  width: 3.2rem;
  height: 3.2rem;
  min-width: 16px;
  min-height: 16px;
}

.spec-icon::before,
.spec-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: max(0.3rem, 2px);
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .35s ease;
}

.spec-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.spec-toggle[aria-expanded="true"] .spec-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* 展開動畫：grid-template-rows 0fr → 1fr */
.spec-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s ease;
}

.spec-panel.is-open {
  grid-template-rows: 1fr;
}

.spec-inner {
  overflow: hidden;
  min-height: 0;
}

.spec-scroll {
  overflow-x: auto;
}

.spec-tbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: max(var(--fs-table), 10px);
  line-height: 1.35;
}

.spec-tbl th,
.spec-tbl td {
  padding: 2.2rem 1.5rem;
  border: var(--bw) solid var(--line);
  text-align: center;
  vertical-align: middle;
  /* font-weight: var(--fw-sb); */
  color: var(--text);
  overflow-wrap: anywhere;
}

/* 外框左右不畫線，跟上方表格一致 */
.spec-tbl tr> :first-child {
  border-left: 0;
}

.spec-tbl tr> :last-child {
  border-right: 0;
}

.spec-tbl thead th {
  padding-block: 3.1rem;
  background: var(--bg2);
  color: #fff;
  /* font-weight: var(--fw-eb); */
  border-top: 0;
  /* 表頭不要直線分隔 */
  border-left: 0;
  border-right: 0;
}

/* 左邊第一欄靠左 */
.spec-tbl th:first-child,
.spec-tbl td:first-child {
  /* 設計稿：第一欄 277px，其餘三欄各 405px（總寬 1492px），用比例換算以便自適應 */
  width: calc(370 / 1492 * 100%);
  text-align: left;
}

.spec-tbl thead th:first-child {
  color: #fff;
}

@media (max-width:1023px) {
  .spec {
    margin-top: 0;
  }

  .spec-toggle {
    padding: 2.5rem 0 3.5rem;
  }

  /* 只剩兩欄：不設最小寬度，表格跟著螢幕寬，放不下的文字自動換行往下延伸 */
  .spec-scroll {
    overflow-x: visible;
  }

  .spec-tbl {
    min-width: 0;
  }

  .spec-tbl th,
  .spec-tbl td {
    padding: 1.5rem 1rem;
    /* 以單字為單位換行，避免單字被從中間切斷 */
    overflow-wrap: break-word;
  }

  .spec-tbl thead th {
    padding-block: 2rem;
  }

  .spec-tbl th:first-child,
  .spec-tbl td:first-child {
    width: 38%;
  }
}

/* 規格表：裁掉文字上下的行高空白，padding 就是實際看到的距離 */
@supports (text-box: trim-both cap alphabetic) {

  .spec-title,
  .spec-tbl th,
  .spec-tbl td {
    text-box: trim-both cap alphabetic;
  }
}

/* 回到頂部按鈕 */
.to-top {
  position: fixed;
  right: var(--pad-x);
  bottom: 11.3rem;
  z-index: 60;
  width: 5.272rem;
  height: 5.272rem;
  min-width: 40px;
  min-height: 40px;
  /* 箭頭與圓圈的距離：上 17 右 13 下 21 左 15 */
  padding: 1.7rem 1.3rem 2.1rem 1.3rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5rem);
  transition: opacity .4s ease, visibility .4s ease, transform .3s ease;
}

.to-top svg {
  display: block;
  width: 100%;
  height: 100%;
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 手機版：按鈕整體縮小 0.6 倍 */
@media (max-width: 1023px) {
  .to-top {
    width: calc(5.272rem * .8);
    height: calc(5.272rem * .8);
    min-width: 24px;
    min-height: 24px;
    padding: calc(1.7rem * .8) calc(1.3rem * .8) calc(2.1rem * .8) calc(1.3rem * .8);
  }
}

@media (hover: hover) {
  .to-top.is-show:hover {
    transform: scale(1.2);
  }
}

/* ---------- hero（只有 ULTRA 版）：左邊 logo＋標題置中，右邊大機殼上下滿版 ---------- */
.hero-ultra .wrap {
  max-width: unset;
  height: 93.7rem;
  /* 設計稿（2560 寬）：左 40.3rem、右 457px；螢幕不夠寬時兩邊依 403:457 等比例縮小，避免標題壓到機殼 */
  padding-block: 0;
  padding-left: clamp(var(--pad-x), calc((100vw - 153.2rem) * .4686), 40.3rem);
  padding-right: clamp(var(--pad-x), calc((100vw - 153.2rem) * .5314), 45.7rem);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.6rem;
  /* PHANTEKS logo 到標題 logo 的距離 */
}

.hero-ultra .logo {
  width: auto;
  line-height: 0;
}

.hero-ultra .logo img {
  display: block;
  height: 2.8rem;
  width: auto;
}

.hero-ultra h1 {
  transform: none;
  /* 取消三顆版標題的位移 */
}

.hero-ultra .page-title img {
  margin-inline: 0;
  width: 66.9rem;
  height: auto;
  aspect-ratio: 669 / 149;
}

.hero-ultra .hero-big {
  flex: none;
  height: 100%;
}

.hero-ultra .hero-big .ph {
  height: 100%;
  width: auto;
  aspect-ratio: 739 / 937;
  background-size: contain;
}

.ex6-ultra-big-png {
  background-image: url(assets/images/EX6-ULTRA_big.webp);
}

@media (max-width:1023px) {
  .hero-ultra .wrap {
    height: auto;
    padding: 3.75rem var(--pad-x) 0;
    flex-direction: column;
    gap: 0rem;
  }

  .hero-ultra .hero-copy {
    align-items: center;
  }

  .hero-ultra .logo img {
    height: 2rem;
  }

  .hero-ultra .page-title img {
    margin-inline: auto;
    width: min(66.9rem, 85%);
  }

  .hero-ultra .hero-big {
    width: 100%;
    height: auto;
  }

  .hero-ultra .hero-big .ph {
    width: 100%;
    height: auto;
  }
}