@charset "UTF-8";
/* ==========================================================================
   歐富寶 OFBao — 宣傳官網樣式
   純靜態 / 零外部依賴（不載入任何 Web Font、CDN、框架）
   適配：4K / 2K / 1080P / 平板 / 手機
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 設計令牌
   -------------------------------------------------------------------------- */
:root {
  /* 品牌色（取自 official logo：金色圓環 + 銀灰弧） */
  --gold:        #e9b80a;
  --gold-bright: #ffd75e;
  --gold-deep:   #a97f00;
  --gold-ink:    #1b1500;          /* 金色底上的文字色 */

  /* 中性色（深色科技底） */
  --ink:   #0a0a0c;
  --ink-2: #101014;
  --ink-3: #17171d;
  --ink-4: #1f1f27;
  --line:  rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);

  --fg:   #f3f3f6;
  --fg-2: #a9a9b6;
  --fg-3: #6f6f7b;

  /* 版面 */
  --max: 1600px;                   /* 內容最大寬度：4K 下不至於空曠或拉長行寬 */
  --gutter: clamp(18px, 4.2vw, 72px);
  --nav-h: 68px;                   /* 由 JS 量測後覆寫為實際值 */
  --vh: 100vh;                     /* 由 JS 覆寫為實際視口高度（解決手機網址列問題） */

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .55s;

  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);
  --shadow-gold: 0 18px 40px -16px rgba(233, 184, 10, .45);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
               "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC",
               system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
               sans-serif;
  /* 拉丁文幾何感字面：靠字距與字重模擬，避免載入被牆的 Google Fonts */
  --font-latin: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
                var(--font-sans);
}

/* 動態視口單位（手機瀏覽器工具列伸縮時不會再算錯） */
@supports (height: 100dvh) {
  :root { --vh: 100dvh; }
}

/* --------------------------------------------------------------------------
   2. 基礎重置
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: clamp(15px, .35vw + 14px, 17px);
  line-height: 1.75;
  overflow-x: clip;               /* clip 不建立滾動容器，sticky 導覽列才不會失效 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 歡迎層顯示時鎖住背景滾動（用 class 控制，不靠 JS 寫 inline style） */
body.is-welcome { overflow: hidden; }
/* body 的 overflow 會傳播到視口；這裡再補一層，舊瀏覽器也能可靠鎖住 */
html:has(body.is-welcome) { overflow: hidden; }

h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; border: 0; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 全域可見焦點圈（無障礙必要，且不影響滑鼠操作觀感） */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--gold-ink); }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor;
        stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 螢幕報讀器專用文字 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 120;
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--gold-ink); font-weight: 700;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   3. 共用元件
   -------------------------------------------------------------------------- */
.wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

/* 小標籤（英文大寫、寬字距） */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-latin);
  font-size: clamp(11px, .5vw + 9px, 13px);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: clamp(20px, 2.4vw, 42px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: clamp(13px, 1vw + 9px, 18px) clamp(24px, 2.2vw + 16px, 40px);
  border-radius: var(--radius-pill);
  font-family: var(--font-latin);
  font-size: clamp(14px, .35vw + 13px, 16px);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: var(--gold-ink);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -14px rgba(233,184,10,.6); }
.btn--gold:active { transform: translateY(0) scale(.985); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: rgba(255, 255, 255, .03);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(233, 184, 10, .08);
  transform: translateY(-2px);
}

.btn__icon { width: 1.05em; height: 1.05em; }

/* --------------------------------------------------------------------------
   4. 歡迎層
   關鍵修正：改用 position:fixed 覆蓋層 + class 切換，
   完全不涉及「滾動到錨點」，因此在任何解析度下都不可能殘留上一屏
   -------------------------------------------------------------------------- */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 150;
  height: var(--vh);
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vh, 64px) var(--gutter);
  text-align: center;
  overflow: hidden;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
body:not(.is-welcome) .welcome {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%,   rgba(233, 184, 10, .18), transparent 58%),
    radial-gradient(90%  70% at 50% 108%, rgba(233, 184, 10, .10), transparent 62%),
    radial-gradient(140% 120% at 50% 50%, #17171d 0%, #0d0d11 55%, #060608 100%);
}
/* 疊上原站的黑底斜紋質感（92×46，818B，無限平鋪且 4K 不失真） */
.welcome__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url(../images/texture-maze.png);
  background-repeat: repeat;
  opacity: .55;
}
/* 中央柔光，讓 logo 有舞台感 */
.welcome__bg::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(48% 42% at 50% 44%, rgba(255, 215, 94, .16), transparent 70%);
}

.welcome__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 1.6vh + 4px, 26px);
  max-width: min(92vw, 980px);
}

.welcome__logo {
  width: clamp(78px, 9vh, 132px);
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(233, 184, 10, .38));
  animation: rise .9s var(--ease-out) both;
}

.welcome__brand {
  font-family: var(--font-latin);
  font-size: clamp(22px, 4.4vw + 6px, 58px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .01em;
  color: #fff;
  text-wrap: balance;
  animation: rise .9s .08s var(--ease-out) both;
}
.welcome__brand em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-bright), var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome__cn {
  font-size: clamp(14px, 1.1vw + 11px, 20px);
  letter-spacing: .16em;
  color: var(--fg-2);
  animation: rise .9s .16s var(--ease-out) both;
}

.welcome__rule {
  width: clamp(60px, 12vw, 140px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: rise .9s .2s var(--ease-out) both;
}

.welcome__cta { animation: rise .9s .3s var(--ease-out) both; }

.welcome__hint {
  font-size: clamp(11px, .5vw + 9px, 13px);
  letter-spacing: .1em;
  color: var(--fg-3);
  animation: rise .9s .4s var(--ease-out) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   5. 站點容器 + 導覽列
   -------------------------------------------------------------------------- */
.site {
  opacity: 0;
  transition: opacity .7s var(--ease);
}
body:not(.is-welcome) .site { opacity: 1; }

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(10, 10, 12, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(8, 8, 10, .92);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: clamp(30px, 2.3vw, 38px); height: auto; }
.brand__text { display: grid; line-height: 1.2; }
.brand__name {
  font-family: var(--font-latin);
  font-size: clamp(15px, .5vw + 13px, 18px);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.brand__sub {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav__links { display: flex; align-items: center; gap: clamp(4px, 1vw, 12px); }
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: clamp(13px, .3vw + 12px, 15px);
  color: var(--fg-2);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--gold-bright); background: rgba(233, 184, 10, .10); }

.nav__burger {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.nav__burger .icon { width: 20px; height: 20px; }
.nav__burger .icon--close { display: none; }
.nav__burger[aria-expanded="true"] .icon--menu  { display: none; }
.nav__burger[aria-expanded="true"] .icon--close { display: block; }

/* --------------------------------------------------------------------------
   6. 產品展示（原本的「展示主頁」）
   修正：面板高度改為隨視口自適應（--vh），而非固定 650px
   -------------------------------------------------------------------------- */
.showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  /* 減去導覽列高度 → 整屏剛好填滿，不會多出半屏空白 */
  min-height: calc(var(--vh) - var(--nav-h));
  background: var(--ink);
}

.showcase__stage {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;      /* 單列撐滿 → 每張面板等於整屏高 */
  min-height: 0;
}

.panel {
  grid-area: 1 / 1;             /* 全部面板堆疊在同一格：切換時高度不跳動 */
  position: relative;
  display: grid;
  align-content: center;
  padding: clamp(28px, 4vh, 64px) 0 clamp(22px, 3vh, 48px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.994);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}
.panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 2;
}

/* 每屏的全寬氛圍背景：低飽和模糊照片 + 漸層面紗
   1920×650 的原圖在 4K 下若直接拉伸會糊，因此只當「環境光」用，
   主要視覺由可無限縮放的 CSS 漸層承擔 */
.panel__bg { position: absolute; inset: 0; z-index: 0; }
.panel__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .34;
  filter: blur(26px) saturate(1.2);
  transform: scale(1.12);       /* 消除模糊邊緣露白 */
}
.panel__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 78% 32%, rgba(233, 184, 10, .16), transparent 62%),
    linear-gradient(180deg, rgba(10,10,12,.86) 0%, rgba(10,10,12,.62) 42%, rgba(10,10,12,.94) 100%);
}

.panel__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: center;
}

.panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(26px, 4.4vw, 84px);
}

/* 桌面端交錯排列，讓節奏不呆板 */
@media (min-width: 921px) {
  .panel:nth-child(even) .panel__media { order: -1; }
}

.panel__index {
  font-family: var(--font-latin);
  font-size: clamp(38px, 5vw + 10px, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: rgba(233, 184, 10, .26);      /* 不支援文字描邊時的降級色 */
  margin-bottom: clamp(6px, .8vw, 14px);
}
@supports (-webkit-text-stroke: 1px red) {
  .panel__index {
    color: transparent;
    -webkit-text-stroke: 1px rgba(233, 184, 10, .38);
  }
}

.panel__title {
  font-size: clamp(26px, 2.5vw + 16px, 58px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: .01em;
  color: #fff;
  text-wrap: balance;
  margin: clamp(8px, 1vw, 16px) 0 clamp(14px, 1.6vw, 24px);
}

.panel__list {
  display: grid;
  gap: clamp(7px, .8vw, 12px);
  margin-bottom: clamp(20px, 2.4vw, 36px);
}
.panel__list li {
  position: relative;
  padding-left: 26px;
  color: var(--fg-2);
  font-size: clamp(14px, .45vw + 13px, 17px);
  line-height: 1.75;
}
.panel__list li::before {
  content: "";
  position: absolute; left: 4px; top: .78em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);     /* 呼應 logo 中央的菱形 */
}

.panel__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 產品截圖：透明 PNG，用 aspect-ratio 預留空間避免 CLS */
.panel__media {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.panel__media::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(233, 184, 10, .30), transparent 72%);
  filter: blur(38px);
}
.panel__shot {
  width: 100%;
  max-width: clamp(280px, 42vw, 640px);
  aspect-ratio: 506 / 440;
  object-fit: contain;
  filter: drop-shadow(0 34px 54px rgba(0, 0, 0, .68));
}

/* --------------------------------------------------------------------------
   7. 展示控制條（原 #banner_ctr 固定 960px 圖片的替代方案）
   -------------------------------------------------------------------------- */
.showcase__controls {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: rgba(9, 9, 11, .78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.controls__row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
}

.tabs {
  flex: 1 1 auto;
  display: flex;
  gap: 6px;
  padding: 12px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--fg-2);
  font-size: clamp(12px, .25vw + 11.5px, 14px);
  white-space: nowrap;
  transition: color .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.tab .icon { width: 17px; height: 17px; flex: none; }
.tab:hover { color: var(--fg); border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.tab[aria-selected="true"] {
  color: var(--gold-ink);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: transparent;
  font-weight: 700;
}

.controls__nav { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--fg-2);
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background-color .25s var(--ease);
}
.iconbtn:hover { color: var(--gold-bright); border-color: var(--gold); background: rgba(233,184,10,.1); }
.iconbtn .icon { width: 18px; height: 18px; }

/* 自動播放進度條 */
.showcase__progress {
  position: absolute;
  inset: auto 0 100% 0;         /* 貼在控制條上緣 */
  height: 2px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.showcase__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
}
.showcase__progress span.is-running {
  animation: progress var(--slide-ms, 6000ms) linear forwards;
}
@keyframes progress { from { width: 0; } to { width: 100%; } }

/* --------------------------------------------------------------------------
   8. 內容區塊（聯絡 / 關於）
   -------------------------------------------------------------------------- */
.section { padding: clamp(56px, 8vh, 120px) 0; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line); }

.section__head { max-width: 62ch; margin-bottom: clamp(32px, 4vh, 60px); }
.section__title {
  font-size: clamp(24px, 1.9vw + 15px, 44px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 14px 0 12px;
  text-wrap: balance;
}
.section__desc { color: var(--fg-2); }

/* 產品能力卡片網格 */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
  gap: clamp(12px, 1.4vw, 22px);
}
.card {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              background-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 184, 10, .5);
  background: linear-gradient(160deg, rgba(233,184,10,.10), rgba(255,255,255,.02));
}
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(233, 184, 10, .13);
  color: var(--gold);
  margin-bottom: 6px;
}
.card__icon .icon { width: 22px; height: 22px; }
.card__title { font-size: clamp(16px, .5vw + 14px, 19px); font-weight: 700; color: #fff; }
.card__text { color: var(--fg-2); font-size: clamp(13.5px, .3vw + 13px, 15px); }

/* 聯絡資訊 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(12px, 1.4vw, 22px);
}
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: clamp(18px, 1.8vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.contact-item .icon { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 4px; }
.contact-item dt {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 2px;
}
.contact-item dd { margin: 0; color: var(--fg); font-size: clamp(14px, .35vw + 13px, 16px); overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--gold-bright); }

/* 聯絡卡片內的社群圖示列 */
.contact-item__line { color: var(--fg); }
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--fg-2);
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background-color .25s var(--ease), transform .25s var(--ease);
}
.social__link:hover,
.social__link:focus-visible {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(233, 184, 10, .12);
  transform: translateY(-2px);
}
/* 覆寫 .contact-item .icon 的尺寸與金色，讓社群圖示沿用卡片文字色 */
.social__link .icon { width: 16px; height: 16px; color: inherit; margin-top: 0; }

/* 數據列 */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: clamp(12px, 1.6vw, 26px);
  margin-top: clamp(28px, 4vh, 52px);
}
.stat {
  padding: clamp(18px, 1.8vw, 26px);
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(233,184,10,.08), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.stat__num {
  font-family: var(--font-latin);
  font-size: clamp(28px, 2.6vw + 16px, 52px);
  font-weight: 800; line-height: 1;
  color: var(--gold);
}
.stat__label { color: var(--fg-2); font-size: clamp(12.5px, .3vw + 12px, 14px); margin-top: 8px; }

/* 內頁首屏（關於我們） */
.pagehero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: calc(var(--vh) - var(--nav-h));
  padding: clamp(48px, 9vh, 130px) 0;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 12% 0%, rgba(233,184,10,.20), transparent 58%),
    radial-gradient(90% 70% at 88% 100%, rgba(233,184,10,.10), transparent 60%),
    linear-gradient(180deg, #14141a, #0a0a0c 70%);
}
.pagehero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url(../images/texture-maze.png);
  opacity: .4; pointer-events: none;
}
.pagehero .wrap { position: relative; z-index: 1; }
.pagehero__title {
  font-size: clamp(30px, 3.7vw + 18px, 76px);
  font-weight: 800; line-height: 1.14; color: #fff;
  margin: 16px 0 18px; text-wrap: balance;
}
.pagehero__lead { max-width: 62ch; color: var(--fg-2); font-size: clamp(15px, .45vw + 14px, 19px); }

/* 文章型內容 */
.prose { display: grid; gap: clamp(14px, 1.4vw, 22px); max-width: 78ch; }
.prose p { color: var(--fg-2); }
.prose strong { color: #fff; }

/* 直式時間／流程列 */
.steps { display: grid; gap: clamp(14px, 1.6vw, 24px); counter-reset: step; }
.step {
  position: relative;
  padding-left: clamp(52px, 5vw, 76px);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: clamp(38px, 3.6vw, 52px); height: clamp(38px, 3.6vw, 52px);
  border-radius: 50%;
  border: 1px solid rgba(233,184,10,.45);
  background: rgba(233,184,10,.10);
  color: var(--gold);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: clamp(13px, .4vw + 12px, 16px);
}
.step__title { font-size: clamp(16px, .6vw + 14px, 21px); font-weight: 700; color: #fff; margin-bottom: 6px; }
.step__text { color: var(--fg-2); }

/* --------------------------------------------------------------------------
   9. 頁尾
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: clamp(40px, 6vh, 76px) 0 clamp(26px, 3vh, 40px);
}
.footer__top {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px);
  justify-content: space-between; align-items: flex-start;
  padding-bottom: clamp(26px, 3vh, 42px);
  border-bottom: 1px solid var(--line);
}
.footer__brand { display: grid; gap: 12px; max-width: 42ch; }
.footer__brand .brand { margin-bottom: 2px; }
.footer__note { color: var(--fg-3); font-size: 13.5px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 72px); }
.footer__col { display: grid; gap: 9px; align-content: start; }
.footer__col h3 {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 4px;
}
.footer__col a { color: var(--fg-2); font-size: 14px; }
.footer__col a:hover { color: var(--gold-bright); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between; align-items: center;
  padding-top: clamp(20px, 2.4vh, 32px);
  color: var(--fg-3); font-size: 13px;
}
.footer__bottom a:hover { color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   10. 響應式
   -------------------------------------------------------------------------- */

/* 平板橫向 / 小筆電 */
@media (max-width: 1100px) {
  :root { --max: 1100px; }
}

/* 平板直向：面板改單欄 */
@media (max-width: 920px) {
  .panel__inner { grid-template-columns: 1fr; gap: clamp(18px, 3.4vw, 32px); }
  .panel__media { order: -1; }          /* 圖片在上、文案在下，符合手機閱讀動線 */
  .panel__shot { max-width: min(78vw, 460px); }
  .panel__index { font-size: clamp(30px, 8vw, 46px); }
  .showcase__stage { grid-template-rows: auto; }  /* 內容可能高於一屏 → 允許自然撐高 */
}

/* 手機：收合選單 */
@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav__burger { display: inline-flex; }
  .nav__links {
    /* 用 absolute 而非 fixed：.nav 有 backdrop-filter，會成為 fixed 的包含區塊，
       兩者在這裡效果相同，但 absolute 的行為是確定的、不依賴瀏覽器實作差異 */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    padding: 12px var(--gutter) 22px;
    background: rgba(8, 8, 10, .97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 16px; }
}

/* 窄手機 */
@media (max-width: 560px) {
  .panel { padding: clamp(20px, 3vh, 32px) 0; }
  .panel__shot { max-width: min(88vw, 380px); }
  .panel__list li { padding-left: 22px; }
  .panel__actions .btn { flex: 1 1 auto; }
  .welcome__hint { display: none; }
  .controls__nav { gap: 4px; }
  .iconbtn { width: 36px; height: 36px; }
  .tab { padding: 8px 13px; }
  .tab__label { display: none; }        /* 極窄時只留圖示，避免控制條被撐爆 */
  .tab .icon { width: 19px; height: 19px; }
  .footer__bottom { justify-content: flex-start; }
}

/* 橫向矮視口（手機轉橫、投屏） */
@media (max-height: 520px) and (orientation: landscape) {
  .welcome { padding-top: 16px; }
  .welcome__logo { width: clamp(52px, 9vh, 72px); }
  .welcome__inner { gap: 8px; }
  .showcase { min-height: auto; }
  .panel { padding: 20px 0; }
  .panel__media { display: none; }      /* 矮視口優先保住文案與按鈕 */
}

/* 超寬 / 4K：加大留白與字級上限，避免內容縮成一小塊 */
@media (min-width: 2200px) {
  :root { --max: 1720px; }
  body { font-size: 18px; }
}

/* --------------------------------------------------------------------------
   11. 無障礙：尊重「減少動態效果」偏好
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .panel { transform: none; }
}

/* 高對比模式 */
@media (prefers-contrast: more) {
  :root { --fg-2: #d5d5dd; --fg-3: #a5a5b0; --line: rgba(255,255,255,.28); }
}

/* --------------------------------------------------------------------------
   12. 不支援 JS 時的降級：直接顯示主站內容
   -------------------------------------------------------------------------- */
