/* =========================================================
   雪嶺滑雪場 SNOWPEAK 佈景 / css/style.css
   本檔案包含（依序）：
   1. 設計 token（:root）
   2. Bootstrap 相容防護（.h1~.h6 / a:hover）
   3. 全域 reset（作用域收斂版，避免污染內頁）
   4. demo_C 首頁樣式（頁首／Hero／最新消息／熱門商品／圖文廣告／
      促銷 Banner／常見問答／頁尾／響應式／捲動動畫／回到頂部）
   5. XOOPS 佈景相容補強（內頁容器、區塊版位 grid、彈跳視窗）
   ========================================================= */

/* =========================================================
   1. 設計 token
   ========================================================= */
:root {
  --color-ink: #0b1119;
  --color-ink-soft: #131c28;
  --color-snow: #f4f7fb;
  --color-snow-dim: rgba(244, 247, 251, 0.72);
  --color-accent: oklch(0.68 0.15 240);      /* 天空藍 */
  --color-accent-2: oklch(0.83 0.08 228);    /* 冰藍 */
  --header-h: 84px;
  --font-display: 'Archivo', 'Noto Sans TC', sans-serif;
  --font-base: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans CJK TC', sans-serif;
}

/* =========================================================
   2. Bootstrap 相容防護
   ========================================================= */

/* ---------- Bootstrap 相容防護（.h1~.h6） ----------
   抵銷 Bootstrap 對 .h1~.h6 utility class 注入的標題樣式（margin / font-size /
   font-weight / line-height / color），讓佈景的 <div class="hN"> 回到「載入
   Bootstrap 前」的無作用狀態，避免版面位移。
   放置位置關鍵：本規則在 Bootstrap 之後（故壓過 Bootstrap），但在所有
   demo_C 區段樣式之前（故已設計好尺寸的標題會被自己的 class 覆蓋回來，不受影響），
   只還原沒有專屬樣式的裸 .hN。
   例外：modal 標題另由檔尾 .df-modal .modal-title 指定尺寸。

   ⚠️ 別在 CSS 註解裡寫出 `*` 緊接 `/` 的組合——那會提前結束註解，使後面的中文
      變成無效 CSS，並把緊接著的整條規則一起吃掉。 */
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

/* ---------- Bootstrap 相容防護（連結 hover 顏色） ----------
   Bootstrap 的 a:hover{color:var(--bs-link-hover-color)}(權重 0,1,1) 會蓋過只設
   基礎色的連結(權重 0,1,0)，使其 hover 時變藍。此處把 a:hover 還原為 inherit，
   各元件自訂的 .xxx:hover{color:...}(權重 ≥0,2,0) 仍會正常覆蓋，不受影響。
   下方第 3 節會針對「首頁與外殼」再把 hover 改回 accent（同權重、後定義者勝）。 */
a:hover { color: inherit; }

/* =========================================================
   3. 全域 reset（作用域收斂版）
   ---------------------------------------------------------
   demo_C 原本是無差別的全域 reset。本佈景的內頁（模組頁）另外載入 Bootstrap
   與 c_a_v19 的 custom/article CSS，若讓 demo_C 的 reset 全站生效會清掉那些
   樣式的間距與清單樣式。故拆成兩類：

   (a) 全站生效——與換底前的 c_b 完全相同，不構成新風險：
       box-sizing / scroll-behavior / body margin / img / a color
   (b) 只在「首頁與外殼」生效——用 :where() 包住作用域，讓整條選擇器的
       權重維持 (0,0,0)，與 demo_C 原本的裸 `*` 等效。這一點很重要：若寫成
       `body:not(.df-inner-page) *` 權重會升到 (0,1,1)，反而會壓過 Bootstrap
       的 .modal-header / .modal-body 內距，使登入彈跳視窗在首頁破版。
       作用域含 .site-header / .site-footer，是因為外殼在首頁與內頁共用。
   ========================================================= */

/* (a) 全站 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* body#top：權重 (0,1,1)，內頁的顏色再由 inner-light.css 覆蓋。 */
body#top { background: var(--color-ink); color: var(--color-snow); }

/* (b) 首頁與外殼 */
:where(body:not(.df-inner-page), .site-header, .site-footer) :where(*) {
  margin: 0;
  padding: 0;
}
/* ---------- ul / ol / p 的間距歸零（權重刻意升到 (0,0,1)） ----------
   這三個元素不能用上面那種 :where() 寫法，必須用元素選擇器。原因是 Bootstrap
   的 reboot 對它們下了同為 (0,0,1) 的間距宣告（css/bootstrap.css 第 180–190
   行與段落區）：
       ol, ul      -> padding-left: 2rem
       ol, ul, dl  -> margin-bottom: 1rem
       p           -> margin-bottom: 1rem
   上面那條 :where(...) :where(-) 是 (0,0,0)，壓不過它們，於是 demo_C 原本靠裸
   通用選擇器歸零的清單縮排與段落下距全被 Bootstrap 加了回來。實際症狀：
     - .feature-cats 整份清單右移 32px，且 ul 的 border-top 橫跨完整寬度、
       li 的 border-bottom 卻從縮排處才起算，上緣那條線比下面每條長 32px
     - .main-nav-list（頁首主選單，只設 flex 沒設 padding）整排右移 32px、下方多 16px
     - .news-foot-text / .footer-copy / .footer-credit 各多 16px 下方間距
   本規則與 Bootstrap 同權重，但 style.css 在 bootstrap.css 之後載入，後定義者勝。
   (0,0,1) 壓不過任何 class 選擇器，故不會重演階段 0 那個「Bootstrap 的
   .modal-header / .modal-body 內距被壓掉、登入彈跳視窗破版」的事故。 */
:where(body:not(.df-inner-page), .site-header, .site-footer) ul,
:where(body:not(.df-inner-page), .site-header, .site-footer) ol {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
:where(body:not(.df-inner-page), .site-header, .site-footer) p {
  margin-bottom: 0;
}

:where(body:not(.df-inner-page), .site-header, .site-footer) a:hover {
  color: var(--color-accent);
}

/* =========================================================
   4. demo_C 首頁樣式
   ========================================================= */
/* ---------------------------------------------------------
   最新消息
   --------------------------------------------------------- */
.news {
  background: var(--color-snow);
  color: var(--color-ink);
  position: relative;
  overflow: hidden;
  padding: 100px 0 110px;
}
.news-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 1.25fr;
  gap: 72px;
  align-items: stretch;
}
.news-left {
  display: flex;
  flex-direction: column;
}
/* 最新消息 */
.news-watermark {
  position: absolute;
  left: -0.16em;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 22vw, 300px);
  line-height: 0.8;
  letter-spacing: 0.04em;
  color: rgba(11, 17, 25, 0.045);
  pointer-events: none;
  user-select: none;
}
.news-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  padding: 7px 14px;
  border: 1px solid color-mix(in oklch, var(--color-accent) 45%, transparent);
  border-radius: 100px;
  margin-bottom: 26px;
}
.news-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  margin-bottom: 44px;
}
.news-meta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.news-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-ink);
  transition: color 0.25s ease, gap 0.25s ease;
}
.news-more span {
  display: inline-block;
  transition: transform 0.25s ease;
}

/* 主打新聞（左下） */
.news-feature {
  display: block;
  margin-top: auto;
  color: var(--color-ink);
}
.news-feature-media {
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 22px;
}
/* demo_C 原本是 background-image 的 div，本佈景改用 <img>（可帶 alt / lazy），
   故補上 object-fit / display；background-color 保留當作圖片載入前的底色。 */
.news-feature-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background-size: cover;
  background-position: center;
  background-color: #e3e8ef;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-feature:hover .news-feature-photo { transform: scale(1.05); }
.news-feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}
.news-feature:hover .news-feature-title { color: var(--color-accent); }
.news-feature-excerpt {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(11, 17, 25, 0.66);
  max-width: 480px;
  margin-bottom: 18px;
}
.news-feature:hover .news-more { color: var(--color-accent); gap: 11px; }
.news-feature:hover .news-more span { transform: translate(3px, -3px); }

/* 新聞列表（右側） */
.news-right {
  display: flex;
  flex-direction: column;
}
.news-list {
  border-top: 1px solid rgba(11, 17, 25, 0.14);
}
.news-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(11, 17, 25, 0.14);
  color: var(--color-ink);
  transition: padding-left 0.3s ease;
}
.news-row:hover { padding-left: 8px; }
.news-row-media {
  overflow: hidden;
  border-radius: 10px;
}
/* 同上：改用 <img>，補 object-fit / display。 */
.news-row-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background-size: cover;
  background-position: center;
  background-color: #e3e8ef;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-row:hover .news-row-photo { transform: scale(1.08); }
.news-row-body {
  min-width: 0;
}
.news-row .news-meta { margin-bottom: 8px; }
.news-row-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  transition: color 0.25s ease;
}
.news-row:hover .news-row-title { color: var(--color-accent); }
.news-row-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(11, 17, 25, 0.6);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-row:hover .news-more { color: var(--color-accent); gap: 11px; }
.news-row:hover .news-more span { transform: translate(3px, -3px); }

.news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding: 34px 0 0;
}
.news-foot-text {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(11, 17, 25, 0.6);
}
.news-foot-cta {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--color-ink);
  color: var(--color-snow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.news-foot-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.news-foot-cta-label,
.news-foot-cta-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}
.news-foot-cta:hover {
  color: var(--color-snow);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -12px rgba(11, 17, 25, 0.5);
}
.news-foot-cta:hover::before { transform: translateX(0); }
.news-foot-cta:hover .news-foot-cta-arrow { transform: translateX(6px); }
.news-foot-cta:active { transform: translateY(-1px); }

@media (max-width: 980px) {
  .news-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .news-heading { margin-bottom: 30px; }
  .news-feature { margin-top: 0; }
}
@media (max-width: 860px) {
  .news { padding: 66px 0 76px; }
  .news-inner { padding: 0 24px; }
}
@media (max-width: 520px) {
  .news-row {
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }
  .news-row-excerpt { display: none; }
  .news-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------
   熱門商品
   --------------------------------------------------------- */
.shop {
  background: #eef2f7;
  color: var(--color-ink);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.shop-watermark {
  position: absolute;
  right: -0.16em;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 22vw, 300px);
  line-height: 0.8;
  letter-spacing: 0.04em;
  color: rgba(11, 17, 25, 0.05);
  pointer-events: none;
  user-select: none;
}
.shop-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.shop-lead {
  flex: 0 0 260px;
  align-self: center;
}
.shop-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: 0.01em;
  color: var(--color-accent);
  margin-bottom: 22px;
}
.shop-lead-text {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(11, 17, 25, 0.62);
  max-width: 300px;
  margin-bottom: 34px;
}
.shop-nav {
  display: flex;
  gap: 12px;
}
.shop-arrow {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(11, 17, 25, 0.25);
  border-radius: 50%;
  background: none;
  color: var(--color-ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.shop-arrow svg { width: 20px; height: 20px; display: block; }
.shop-arrow:hover:not(:disabled) {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.shop-arrow:disabled { opacity: 0.3; cursor: default; }

.shop-viewport {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}
.shop-track {
  display: flex;
  gap: 28px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.shop-item {
  flex: 0 0 calc((100% - 56px) / 3);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.shop-item:nth-child(even) { margin-top: 48px; }
/* demo_C 原本是 background-image 的 div，本佈景改用 <img>（可帶 alt / lazy），
   故補上 object-fit / display；background-color 保留當作圖片載入前的底色。
   hover 是 translateY 位移（非縮放），不需要額外的裁切容器。 */
.shop-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  background-color: #e3e8ef;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.shop-item:hover .shop-photo { transform: translateY(-6px); }
.shop-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.shop-cap-name {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(11, 17, 25, 0.7);
}
/* 價格為上下兩行：售價在上，原價在下（小字、淺色、刪除線）。
   .shop-cap 是 align-items:baseline，本欄轉成 column 後仍以第一行（售價）對齊商品名。 */
.shop-cap-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-ink);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.shop-cap-orig {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(11, 17, 25, 0.38);
  text-decoration: line-through;
}
.shop-seeall {
  flex-basis: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  justify-content: flex-end;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  transition: color 0.25s ease;
}
.shop-seeall span {
  display: inline-block;
  transition: transform 0.25s ease;
}
.shop-seeall:hover { color: var(--color-accent); }
.shop-seeall:hover span { transform: translateX(4px); }
.shop-seeall-label {
  position: relative;
}
.shop-seeall-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.shop-seeall:hover .shop-seeall-label { transform: none; }
.shop-seeall:hover .shop-seeall-label::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 1100px) {
  .shop-lead {
    flex: 1 1 100%;
    align-self: stretch;
    margin-bottom: 8px;
  }
  .shop-lead-text { max-width: 460px; margin-bottom: 26px; }
  .shop-item { flex-basis: calc((100% - 28px) / 2); }
  .shop-item:nth-child(even) { margin-top: 0; }
}
@media (max-width: 860px) {
  .shop { padding: 66px 0 76px; }
  .shop-inner { padding: 0 24px; }
  .shop-title { margin-bottom: 16px; }
}
@media (max-width: 620px) {
  .shop-item { flex-basis: 100%; }
  .shop-seeall { justify-content: flex-start; margin-top: 32px; }
}

/* ---------------------------------------------------------
   圖文廣告
   --------------------------------------------------------- */
.feature {
  background: var(--color-snow);
  color: var(--color-ink);
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
}
.feature-watermark {
  position: absolute;
  left: -0.16em;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(110px, 20vw, 280px);
  line-height: 0.8;
  letter-spacing: 0.04em;
  color: rgba(11, 17, 25, 0.045);
  pointer-events: none;
  user-select: none;
}
.feature-inner {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}
.feature-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 8vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin-bottom: 56px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.feature-lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(11, 17, 25, 0.66);
  max-width: 380px;
  margin-bottom: 34px;
}
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.feature-btn {
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 17px 34px;
  border-radius: 100px;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-btn > span {
  position: relative;
  z-index: 1;
}
.feature-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scale(0);
  border-radius: 100px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.feature-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -12px rgba(11, 17, 25, 0.45);
}
.feature-btn:hover::before { transform: scale(1); }
.feature-btn:active { transform: translateY(-1px); }
.feature-btn--solid { background: var(--color-ink); color: var(--color-snow); }
.feature-btn--solid:hover { color: #fff; }
.feature-btn--ghost { border: 1px solid rgba(11, 17, 25, 0.2); color: var(--color-ink); }
.feature-btn--ghost:hover { border-color: var(--color-accent); color: #fff; }

.feature-pick {
  background: #eef2f7;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 46px;
  max-width: 340px;
  transition: background 0.35s ease, color 0.35s ease;
}
.feature-pick:hover {
  background: var(--color-ink);
  color: var(--color-snow);
}
.feature-pick-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-pick-avatar {
  /* 階段 5：<img>，src 由 nc_vision 第 2 筆的 file 欄位帶入（推薦人頭像） */
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #fff;
}
.feature-pick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-ink);
  background: #fff;
  border-radius: 100px;
  padding: 8px 15px;
  transition: background 0.3s ease, color 0.3s ease;
}
.feature-pick:hover .feature-pick-pill { background: var(--color-snow); color: var(--color-ink); }
.feature-pick-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.feature-pick-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-pick:hover .feature-pick-title { transform: translateX(6px); }
.feature-pick-go {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.25s ease, color 0.25s ease;
}
.feature-pick-go span {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-pick-go:hover { background: var(--color-accent); color: #fff; }
.feature-pick:hover .feature-pick-go { background: var(--color-accent); color: #fff; }
.feature-pick:hover .feature-pick-go span { transform: rotate(45deg); }
.feature-pick:hover .feature-pick-title { color: var(--color-snow); }

.feature-goggles {
  /* 階段 5：<img>，src 由 nc_vision 第 1 筆的 file（圖片）欄位帶入（護目鏡圖） */
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background-color: #eef2f7;
  border-radius: 12px;
  margin-bottom: 30px;
}
.feature-cats { border-top: 1px solid rgba(11, 17, 25, 0.14); }
.feature-cats li { border-bottom: 1px solid rgba(11, 17, 25, 0.14); }
.feature-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--color-ink);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.feature-cats a:hover { color: var(--color-accent); padding-left: 10px; }
.cat-stars {
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 2px;
  font-weight: 400;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-cats a:hover .cat-stars { transform: scale(1.12); }
.cat-stars::before {
  content: "\2605\2605\2605\2605\2605";
  color: rgba(11, 17, 25, 0.16);
}
.cat-stars::after {
  content: "\2605\2605\2605\2605\2605";
  color: var(--color-accent);
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
}
.feature-cats a:hover .cat-stars::after {
  animation: catStarsFill 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes catStarsFill {
  from { width: 0; }
  to { width: calc(var(--rating) / 5 * 100%); }
}
.feature-cats em {
  font-style: normal;
  font-size: 15px;
  color: rgba(11, 17, 25, 0.4);
}
.feature-cats a:hover em { color: var(--color-accent); }

.feature-photo {
  /* 階段 5：<img>，src 由 nc_vision 第 1 筆的 vision（第二圖/檔案）欄位帶入（人物大圖） */
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 20px;
  background-color: #eef2f7;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------
   促銷 Banner
   --------------------------------------------------------- */
.banner {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-snow);
}
/* 背景圖由 nc_vision 的「圖片」(file) 欄位以 inline style 的 background-image 帶入
   （階段 6，樣板 modules/nc_vision/nc_vision_block_tmpl_2.html）。
   後台沒上傳圖時樣板不輸出本 div，只留 .banner::after 的漸層 + --color-ink 底色。 */
.banner-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 17, 25, 0.92) 30%, rgba(11, 17, 25, 0.4) 100%);
}
.banner-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 48px 100px;
}
.banner-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-accent-2);
  margin-bottom: 20px;
}
.banner-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.banner-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-snow-dim);
  max-width: 520px;
  margin-bottom: 36px;
}
.banner-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  background: var(--color-snow);
  padding: 18px 38px;
  border-radius: 100px;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.banner-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.banner-cta-label,
.banner-cta-arrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  transition: transform 0.3s ease;
}
.banner-cta:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.45);
}
.banner-cta:hover::before { transform: translateX(0); }
.banner-cta:hover .banner-cta-arrow { transform: translateX(6px); }
.banner-cta:active { transform: translateY(-1px); }

/* ---------------------------------------------------------
   常見問答
   --------------------------------------------------------- */
.faq {
  background: #eef2f7;
  color: var(--color-ink);
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
}
.faq-watermark {
  position: absolute;
  left: -0.16em;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 22vw, 300px);
  line-height: 0.8;
  letter-spacing: 0.04em;
  color: rgba(11, 17, 25, 0.05);
  pointer-events: none;
  user-select: none;
}
.faq-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.4fr;
  gap: 72px;
  align-items: start;
}
.faq-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  padding: 7px 14px;
  border: 1px solid color-mix(in oklch, var(--color-accent) 45%, transparent);
  border-radius: 100px;
  margin-bottom: 22px;
}
.faq-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 3.4vw, 52px);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.faq-sub {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(11, 17, 25, 0.6);
}
.faq-list { border-top: 1px solid rgba(11, 17, 25, 0.16); }
.faq-item { border-bottom: 1px solid rgba(11, 17, 25, 0.16); }
.faq-item-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--color-ink);
  transition: color 0.25s ease;
}
.faq-item-head:hover { color: var(--color-accent); }
.faq-item-head:hover .faq-q { transform: translateX(10px); }
.faq-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: 0.01em;
  position: relative;
  display: inline-block;
  padding-left: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-q::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%) scale(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item-head:hover .faq-q::before { transform: translateY(-50%) scale(1); }
.faq-toggle {
  flex: 0 0 auto;
  position: relative;
  width: 20px; height: 20px;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 15px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-toggle::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }
/* 展開動畫：階段 7 由 demo_C 原本的 max-height 改成 grid 0fr→1fr。
   原本 .faq-item.is-open .faq-body 是 max-height:240px + overflow:hidden，
   以 .faq-body p 的 16px / 行高 1.75 計算，扣掉 28px 下內距後只容得下約 7~8 行 ——
   demo 的答案都是 2~3 行所以看不出來，但後台輸入的長度不可控，超過就被無聲截掉。
   改用 grid 的 0fr→1fr 後展開到「內容實際高度」，多長都不截斷，且開合兩個方向
   都順暢（max-height 的老問題是短內容展開提前結束、收合先停頓再快速塌陷）。
   動畫時長與緩動曲線完全沿用 demo，觀感一致。
   ⚠ 子元素的 min-height:0 + overflow:hidden 是這個手法的必要條件：
     grid item 的預設 min-height:auto 會讓它縮不回 0，少了就完全不會收合。
   ⚠ 因此 .faq-body 內必須恰好包一個 <p>（樣板已固定這樣輸出）。
   瀏覽器支援：Chrome 107+ / Firefox 66+ / Safari 16+。更舊的瀏覽器會瞬間開合
   （無過渡動畫）但功能與版面完全正常，不會破版。 */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition: grid-template-rows 0.45s ease, opacity 0.35s ease, padding 0.45s ease;
  padding: 0 4px;
}
.faq-item.is-open .faq-body { grid-template-rows: 1fr; opacity: 1; padding: 0 4px 28px; }
.faq-body p {
  min-height: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(11, 17, 25, 0.68);
  max-width: 640px;
}

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-col--photo { grid-column: 1 / -1; }
  .feature-photo { min-height: 380px; }
}
@media (max-width: 860px) {
  .feature { padding: 66px 0 76px; }
  .feature-inner { padding: 0 24px; }
  .feature-heading { margin-bottom: 36px; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-lead, .feature-pick { max-width: 100%; }
  .feature-actions { margin-bottom: 34px; }
  .banner-inner { padding: 64px 24px 68px; }
  .faq { padding: 66px 0 76px; }
  .faq-inner { grid-template-columns: 1fr; gap: 36px; padding: 0 24px; }
}

/* ---------------------------------------------------------
   頁尾
   --------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: #0e1626;
  color: var(--color-snow);
  padding: 56px 0 0;
}
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  gap: 56px;
  padding-bottom: 48px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
}
.footer-logo-mark { color: var(--color-accent); display: inline-flex; }
.footer-logo-mark svg { height: 38px; width: auto; display: block; }
/* 頁尾 logo 的第二段（網站標語）：比照頁首 .site-logo-text em，避免預設斜體。 */
.footer-logo-text em { font-style: normal; font-weight: 600; opacity: 0.7; font-size: 15px; letter-spacing: 0.18em; }
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.footer-contact-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  font-size: 24px;
  position: relative;
  transition: transform 0.3s ease, color 0.3s ease;
}
.footer-contact-icon::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 26px;
  background: rgba(244, 247, 251, 0.2);
}
.footer-contact-item:hover .footer-contact-icon {
  transform: translateY(-4px) scale(1.08);
  color: var(--color-snow);
}
.footer-contact-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.footer-contact-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--color-accent);
}
.footer-contact-text {
  transition: transform 0.3s ease;
}
.footer-contact-item:hover .footer-contact-text {
  transform: translateX(6px);
}
.footer-contact-value {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-snow);
  transition: color 0.25s ease;
}
.footer-contact-item:hover .footer-contact-value { color: var(--color-accent); }
a.footer-contact-value:hover { color: var(--color-accent); }
.footer-map {
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 251, 0.16);
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
  filter: invert(0.92) sepia(0.6) saturate(2.2) hue-rotate(170deg) brightness(0.82) contrast(0.9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 0.7fr;
  column-gap: 28px;
  row-gap: 8px;
  border-top: 1px solid rgba(244, 247, 251, 0.14);
}
.footer-cell {
  padding: 40px 0;
}
.footer-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-snow-dim);
  border: 1px solid rgba(244, 247, 251, 0.24);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.footer-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding-top: 14px;
  position: relative;
  color: var(--color-snow);
}
.footer-col-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-snow-dim);
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer-col a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.footer-col a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}
.footer-col a:hover::before { width: 14px; }
.footer-social {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: 12px;
  padding: 40px 0;
}
.footer-social a {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(244, 247, 251, 0.2);
  border-radius: 8px;
  font-size: 19px;
  color: var(--color-snow);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.footer-social a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scale(0);
  border-radius: 8px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.footer-social a i {
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-social a:hover {
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}
.footer-social a:hover::before { transform: scale(1); }
.footer-social a:hover i { transform: scale(1.2) rotate(-6deg); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 0 36px;
}
.footer-copy, .footer-location, .footer-credit {
  font-size: 12.5px;
  color: rgba(244, 247, 251, 0.55);
}
.footer-credit a {
  color: rgba(244, 247, 251, 0.75);
  transition: color 0.2s ease;
}
.footer-credit a:hover { color: var(--color-accent); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-legal a {
  font-size: 12.5px;
  color: rgba(244, 247, 251, 0.55);
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--color-accent); }

.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -0.24em;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(80px, 20vw, 300px);
  line-height: 0.8;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(244, 247, 251, 0.05);
  pointer-events: none;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-map { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 8px; }
  .footer-cell {
    padding: 28px 0;
  }
  .footer-cell--brand { grid-column: 1 / -1; }
  .footer-social { grid-column: 1 / -1; padding: 28px 0; justify-content: start; grid-template-columns: repeat(4, auto); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-watermark { font-size: 22vw; }
}

/* ---------------------------------------------------------
   頁首導覽
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(6, 10, 16, 0.55), rgba(6, 10, 16, 0));
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(9, 14, 22, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.8);
}

.header-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.site-logo-mark { color: var(--color-accent); display: inline-flex; }
.site-logo-mark svg { height: 34px; width: auto; display: block; }
.site-logo-text em { font-style: normal; font-weight: 600; opacity: 0.7; font-size: 15px; letter-spacing: 0.18em; }

.main-nav-list { display: flex; gap: 38px; align-items: center; }
.nav-item { position: relative; }
.nav-row { display: flex; align-items: center; gap: 4px; }
.main-nav-link {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 0;
  color: var(--color-snow-dim);
  transition: color 0.25s ease;
}
.main-nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.main-nav-link:hover,
.main-nav-link.is-current { color: var(--color-snow); }
.main-nav-link:hover::after,
.main-nav-link.is-current::after { transform: scaleX(1); }

/* 展開圖示 */
.nav-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-snow-dim);
  cursor: pointer;
  transition: color 0.25s ease;
}
.nav-expand svg { width: 15px; height: 15px; transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1); }
.nav-item:hover > .nav-row .nav-expand { color: var(--color-snow); }

/* 子選單（桌機下拉） */
.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 208px;
  padding: 10px;
  background: rgba(12, 18, 28, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(244, 247, 251, 0.1);
  border-radius: 12px;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.85);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  z-index: 10;
}
.sub-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 12px;
}
.nav-item:hover > .sub-menu,
.nav-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}
.nav-item:hover > .nav-row .nav-expand svg { transform: rotate(180deg); }

/* 第三層：向右飛出 */
.sub-menu--deep {
  top: -11px;
  left: calc(100% + 8px);
  transform: translateX(10px);
}
.nav-item:hover > .sub-menu--deep,
.nav-item:focus-within > .sub-menu--deep { transform: translateX(0); }
.sub-menu--deep::before { left: -10px; right: auto; top: 0; bottom: 0; width: 10px; height: auto; }
.sub-menu .nav-item:hover > .nav-row .nav-expand svg { transform: rotate(-90deg); }

.sub-link {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-snow-dim);
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}
.sub-link:hover {
  color: var(--color-snow);
  background: rgba(244, 247, 251, 0.06);
  padding-left: 20px;
}
.sub-menu .nav-row .sub-link { flex: 1 1 auto; }
.sub-menu .nav-row:hover .sub-link { color: var(--color-snow); background: rgba(244, 247, 251, 0.06); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(244, 247, 251, 0.35);
  border-radius: 50%;
  background: none;
  color: var(--color-snow);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.search-toggle svg { width: 20px; height: 20px; display: block; }
.search-toggle:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}
body.search-open .site-header {
  background: rgba(9, 14, 22, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
body.search-open .search-toggle {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}

/* 頁首搜尋下拉 */
.header-search {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(9, 14, 22, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(244, 247, 251, 0.08);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease, visibility 0s linear 0.4s;
}
body.search-open .header-search {
  max-height: 160px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.45s ease, opacity 0.35s ease, visibility 0s;
}
.header-search-form {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px 48px;
  transform: translateY(-12px);
  transition: transform 0.45s ease;
}
body.search-open .header-search-form { transform: translateY(0); }
.header-search-icon {
  display: inline-flex;
  color: var(--color-accent);
}
.header-search-icon svg { width: 22px; height: 22px; display: block; }
.header-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(244, 247, 251, 0.25);
  color: var(--color-snow);
  font-family: inherit;
  font-size: 18px;
  padding: 10px 4px;
  outline: none;
  transition: border-color 0.25s ease;
}
.header-search-input::placeholder { color: rgba(244, 247, 251, 0.45); }
.header-search-input:focus { border-color: var(--color-accent); }
.header-search-submit {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-snow);
  border-radius: 50%;
  background: none;
  color: var(--color-snow);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.header-search-submit svg { width: 20px; height: 20px; display: block; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.header-search-submit:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}
.header-search-submit:hover svg { transform: translateX(4px); }
.header-search-submit:active svg { transform: translateX(8px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 22px;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 60;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--color-snow); transition: transform 0.3s ease, opacity 0.3s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------
   Hero 滿版輪播
   --------------------------------------------------------- */
.hero-carousel {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: var(--color-ink);
}

.hero-track { position: absolute; inset: 0; z-index: 2; }

.hero-snow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide[hidden] { display: block; } /* 由 opacity 控制顯示，保留 DOM 供無障礙 */

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 7s ease-out;
}
.hero-slide.is-active .hero-media { transform: scale(1); }

/* Hero 內容進場動畫（載入與切換時觸發） */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-slide .hero-desc,
.hero-slide .hero-title,
.hero-slide .hero-stat {
  opacity: 0;
}
.hero-slide.is-active .hero-desc,
.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-stat {
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-slide.is-active .hero-desc { animation-delay: 0.15s; }
.hero-slide.is-active .hero-title { animation-delay: 0.32s; }
.hero-slide.is-active .hero-stat:nth-child(1) { animation-delay: 0.55s; }
.hero-slide.is-active .hero-stat:nth-child(2) { animation-delay: 0.68s; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide .hero-desc,
  .hero-slide .hero-title,
  .hero-slide .hero-stat { opacity: 1; animation: none; }
}

.hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}

/* 2026-08-07 階段 2：demo_C 原本把三張 hero 背景圖硬寫在這裡（.hero-slide--1~3），
   已改由 nc_vision 的 file 欄位以 inline style 帶入，後台可換圖，故移除那三條規則。
   .hero-slide--N 這組序號 class 隨之不再需要，樣板也不輸出。 */

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 11, 18, 0.92) 0%, rgba(7, 11, 18, 0.35) 42%, rgba(7, 11, 18, 0.15) 70%, rgba(7, 11, 18, 0.55) 100%),
    linear-gradient(to right, rgba(7, 11, 18, 0.55) 0%, rgba(7, 11, 18, 0) 55%);
}

.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px 118px;
  z-index: 1;
}

.hero-desc {
  position: relative;
  margin-bottom: 22px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-snow-dim);
  max-width: 460px;
}
.hero-title {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-bottom: 40px;
  font-size: clamp(72px, 11vw, 176px);
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.4);
}
.hero-conditions {
  max-width: 420px;
  margin-left: auto;
  margin-right: 0;
}
.hero-conditions-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-snow-dim);
}
.hero-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent-2);
  box-shadow: 0 0 0 4px rgba(120, 180, 235, 0.18);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(120, 180, 235, 0.28); }
  50% { box-shadow: 0 0 0 7px rgba(120, 180, 235, 0.06); }
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 2px 26px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat + .hero-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 38px;
  background: rgba(244, 247, 251, 0.18);
}
.hero-stat-icon {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  color: var(--color-snow-dim);
}
.hero-stat-body { display: flex; flex-direction: column; gap: 5px; }
.hero-stat-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  line-height: 1;
  color: var(--color-snow);
}
.hero-stat-unit {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-snow-dim);
}
.hero-stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-snow-dim);
}

/* 頁碼 */
.hero-progress {
  position: absolute;
  top: calc(var(--header-h) + 40px);
  right: 48px;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.hero-progress-current { font-size: 34px; color: var(--color-snow); }
.hero-progress-sep,
.hero-progress-total { font-size: 17px; color: var(--color-snow-dim); }

/* 左右箭頭 */
.hero-controls {
  position: absolute;
  right: 48px;
  bottom: 260px;
  z-index: 3;
  display: flex;
  gap: 12px;
}
.hero-arrow {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: var(--color-snow);
  background: rgba(244, 247, 251, 0.06);
  border: 1px solid rgba(244, 247, 251, 0.3);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hero-arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
  transform: translateY(-2px);
}

/* 圓點 */
.hero-dots {
  position: absolute;
  left: 52px;
  bottom: 44px;
  z-index: 3;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
}
.hero-dot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(244, 247, 251, 0.45);
  transition: color 0.35s ease, font-size 0.35s ease;
}
.hero-dot-line {
  width: 1.5px;
  height: 0;
  margin-bottom: 0;
  background: var(--color-accent);
  transition: height 0.5s cubic-bezier(0.65, 0, 0.35, 1),
              margin-bottom 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero-dot-num {
  display: block;
  transform: rotate(-90deg) scale(1);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-dot:hover { color: rgba(244, 247, 251, 0.85); }
.hero-dot.is-active {
  color: var(--color-snow);
  font-size: 16px;
}
.hero-dot.is-active .hero-dot-line {
  height: 34px;
  margin-bottom: 12px;
}
.hero-dot.is-active .hero-dot-num {
  transform: rotate(-90deg) scale(1.08);
}

/* 向下探索 */
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-snow-dim);
  transition: color 0.3s ease;
}
.hero-scroll-hint:hover { color: var(--color-snow); }
.hero-mouse {
  position: relative;
  width: 26px;
  height: 42px;
  border: 1.6px solid currentColor;
  border-radius: 14px;
  opacity: 0.85;
}
.hero-mouse-wheel {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
  animation: mouseWheel 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes mouseWheel {
  0%   { transform: translateY(0);   opacity: 0; }
  15%  { opacity: 1; }
  55%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}
.hero-scroll-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  animation: scrollLabelBob 1.9s ease-in-out infinite;
}
@keyframes scrollLabelBob {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ---------------------------------------------------------
   響應式
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-controls { bottom: 300px; }
}

@media (max-width: 1199px) {
  .header-inner { padding: 0 24px; }
  .site-header {
    background: rgba(9, 14, 22, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .nav-toggle { display: flex; }
  .header-search-form { padding: 20px 24px; gap: 10px; }
  .header-search-submit { width: 42px; height: 42px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    min-height: calc(100vh - var(--header-h));
    max-height: calc(100vh - var(--header-h));
    background: rgba(9, 14, 22, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 18px 0 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
    z-index: 55;
  }
  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
  }
  body.nav-open { overflow: hidden; }

  .main-nav-list { flex-direction: column; gap: 0; align-items: stretch; }
  .nav-item { border-bottom: 1px solid rgba(244, 247, 251, 0.1); }
  .nav-row { justify-content: space-between; min-height: 60px; padding: 0 24px; }
  .nav-row .main-nav-link { padding: 0; }
  .main-nav-list > .nav-item > .main-nav-link { display: flex; align-items: center; min-height: 60px; }
  .main-nav-list > .nav-item > .main-nav-link { padding: 0 24px; }
  .main-nav-link { flex: 1 1 auto; font-size: 18px; text-align: left; justify-content: flex-start; }
  .main-nav-link::after { display: none; }
  .nav-expand { width: 44px; height: 44px; margin-right: -10px; }
  .nav-expand svg { width: 18px; height: 18px; }

  /* 手機：子選單改為手風琴 */
  .sub-menu, .sub-menu--deep {
    position: static;
    min-width: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .sub-menu::before { display: none; }
  .nav-item.is-open > .sub-menu { max-height: 600px; }
  .nav-item.is-open > .nav-row .nav-expand svg { transform: rotate(180deg); }
  .sub-menu .sub-link { padding: 14px 24px 14px 42px; font-size: 16px; }
  .sub-menu .sub-link:hover { padding-left: 48px; }
  .sub-menu--deep { padding-left: 0; }
  .sub-menu .nav-item:last-child { border-bottom: none; }
  /* 手機停用桌機 hover 展開 */
  .nav-item:hover > .sub-menu { max-height: 0; }
  .nav-item.is-open:hover > .sub-menu { max-height: 600px; }
  .nav-item:hover > .nav-row .nav-expand svg { transform: rotate(0deg); }
  .nav-item.is-open:hover > .nav-row .nav-expand svg { transform: rotate(180deg); }
}

@media (max-width: 860px) {
  .hero-content { padding: 0 24px 112px; }
  .hero-desc { font-size: 16px; }
  .hero-title { margin-bottom: 30px; }
  .hero-title span { font-size: clamp(36px, 5.5vw, 88px); }
  .hero-title { font-size: clamp(36px, 5.5vw, 88px); }
  .hero-features {
    grid-template-columns: 1fr 1fr 1fr;
    padding-top: 16px;
  }
  .hero-stat { padding: 2px 14px; gap: 9px; }
  .hero-stat-icon { width: 22px; height: 22px; }
  .hero-stat-value { font-size: 21px; }
  .hero-stat + .hero-stat::before { height: 30px; }
  .hero-progress { right: 24px; top: calc(var(--header-h) + 20px); }
  .hero-progress-current { font-size: 26px; }
  .hero-controls { right: 24px; left: auto; bottom: auto; top: calc(var(--header-h) + 66px); justify-content: flex-end; }
  .hero-arrow { width: 30px; height: 30px; }
  .hero-dots { left: 24px; bottom: 30px; }
}

@media (max-width: 480px) {
  .hero-features { grid-template-columns: 1fr; gap: 14px; }
  .hero-stat { padding: 0; }
  .hero-stat + .hero-stat::before { display: none; }
}

@media (max-width: 767px) {
  .hero-scroll-hint { bottom: 22px; gap: 8px; }
  .hero-mouse { width: 22px; height: 36px; }
  .hero-content {
    top: var(--header-h);
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px 72px;
  }
  .hero-desc { order: 2; margin-top: 22px; margin-bottom: 0; }
  .hero-conditions {
    order: 3;
    align-self: flex-end;
    width: auto;
    max-width: 100%;
    margin-top: 30px;
  }
  .hero-features {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
  }
  .hero-stat { padding: 0; }
  .hero-stat + .hero-stat::before { display: none; }
  .hero-dots {
    left: 24px;
    right: auto;
    bottom: 26px;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
  }
  .hero-dot { font-size: 12px; }
  .hero-dot.is-active { font-size: 14px; }
  .hero-dot.is-active .hero-dot-line {
    height: 26px;
    margin-bottom: 9px;
  }
}

/* 捲動進場動畫 */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.news-list [data-reveal].is-revealed { transition-delay: 0.08s; }
.news-list [data-reveal]:nth-child(2).is-revealed { transition-delay: 0.16s; }
.news-list [data-reveal]:nth-child(3).is-revealed { transition-delay: 0.24s; }
.news-list [data-reveal]:nth-child(4).is-revealed { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.feature-grid [data-reveal]:nth-child(2).is-revealed { transition-delay: 0.1s; }
.feature-grid [data-reveal]:nth-child(3).is-revealed { transition-delay: 0.2s; }

.banner-inner [data-reveal]:nth-child(2).is-revealed { transition-delay: 0.08s; }
.banner-inner [data-reveal]:nth-child(3).is-revealed { transition-delay: 0.16s; }
.banner-inner [data-reveal]:nth-child(4).is-revealed { transition-delay: 0.24s; }

.faq-list[data-reveal].is-revealed { transition-delay: 0.12s; }

.footer-top [data-reveal]:nth-child(2).is-revealed { transition-delay: 0.1s; }
.footer-grid[data-reveal].is-revealed { transition-delay: 0.16s; }

/* 回到頂部＋閱讀進度按鈕 */
.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-snow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  box-shadow: 0 12px 30px -10px rgba(11, 17, 25, 0.55);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.4s, background 0.3s ease;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s, background 0.3s ease;
}
.scroll-top:hover { background: var(--color-accent); }
.scroll-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.scroll-top-track {
  fill: none;
  stroke: rgba(244, 247, 251, 0.18);
  stroke-width: 3;
}
.scroll-top-bar {
  fill: none;
  stroke: var(--color-snow);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
  transition: stroke-dashoffset 0.1s linear;
}
.scroll-top:hover .scroll-top-bar { stroke: #fff; }
.scroll-top-arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-top-arrow svg { width: 20px; height: 20px; display: block; }
.scroll-top:hover .scroll-top-arrow { transform: translateY(-3px); }
@media (max-width: 600px) {
  .scroll-top { right: 18px; bottom: 18px; width: 50px; height: 50px; }
}

/* =========================================================
   5. XOOPS 佈景相容補強（SNOWPEAK 佈景）
   ========================================================= */

/* 註：body#top 的深色底與文字色已於本檔第 3 節設定（用 --color-ink / --color-snow）。 */

/* 模組內容頁（非首頁）容器：於深色背景上以卡片呈現 */
/* ---------- 內頁容器 ----------
   內頁版型沿用骨架範本 c_a_v19（custom.css + article.css + article-orient.css，
   僅內頁載入，顏色由 inner-light.css 淺色化）。c_a 的內頁是「全幅」設計，區塊會
   自己鋪滿並用 --max-w/--gutter 控制寬度，故此處不再加白卡外框與最大寬度限制，
   只留一個上方留白（避開 fixed header）的透明容器，讓 c_a 版型完整鋪開。 */
.df-inner {
  padding-top: var(--nav-h, 84px);
  min-height: 60vh;
  color: #141414;
}
/* 內容容器：等效於 c_a_v19 的 .container-fluid > .col-md-11（置中 + 左右留白）。
   模組自己的殼（.news-home / .wr-app / article-shell）另有 max-width 與內距，兩層相疊
   與 c_a 相同。全幅元素（.article-hero / .na-hero 用 width:100vw + margin-left:calc(50% - 50vw)）
   仍能正確溢出到視窗邊緣，不受此容器影響。 */
.df-inner-wrap {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  color: #141414;
}
.df-inner-wrap img { max-width:100%; height:auto; }

/* ============================================================
   XOOPS 區塊版位（只在模組內頁輸出，見 theme.tpl 與 tpl/ 各檔）
   canvas_left / canvas_right      → .df-zone-side（左右側欄）
   page_topcenter                  → .df-zone-stack（主欄，已路由的 13 個 key 會被略過）
   page_topleft / page_topright    → .df-zone-split > .df-zone-half
   page_bottom(left|center|right)  → .df-zone-bottom > .df-zone-full / .df-zone-half
   欄寬用 CSS grid 決定：theme.tpl 依有無側欄在 .df-zones 上加 has-left / has-right。
   ============================================================ */
.df-zones {
  display: grid;
  align-items: start;
  gap: clamp(24px, 3vw, 44px);
  grid-template-columns: minmax(0, 1fr);
}
.df-zones.has-left  { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
.df-zones.has-right { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); }
.df-zones.has-left.has-right { grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 260px); }
@media (max-width: 991.98px) {
  .df-zones, .df-zones.has-left, .df-zones.has-right, .df-zones.has-left.has-right {
    grid-template-columns: minmax(0, 1fr);
  }
}

.df-zone-side { display:flex; flex-direction:column; gap:24px; min-width:0; }
.df-zone-main { min-width:0; }
.df-zone-main > * + * { margin-top: clamp(32px, 4vw, 56px); }
.df-zone-stack,
.df-zone-full,
.df-zone-half { display:flex; flex-direction:column; gap:24px; min-width:0; }

.df-zone-split,
.df-zone-bottom {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.df-zone-bottom { margin-top: clamp(32px, 4vw, 56px); }
.df-zone-full { grid-column: 1 / -1; }
@media (max-width: 767.98px) {
  .df-zone-split, .df-zone-bottom { grid-template-columns: minmax(0, 1fr); }
}

/* 區塊外殼：**不加背景與外框**，讓區塊融入頁面、不會看起來像一塊獨立的長方形卡片
   （元件自己的樣式，例如 news 分類導覽的膠囊，仍由各區塊樣板自行提供）。 */
.df-block {
  background: transparent;
  border: 0;
  padding: 0;
  color:#141414;
}
.df-block-title {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20,20,20,.08);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
  color:#141414;
}
.df-block-body img { max-width:100%; height:auto; }

/* footer 區塊版位（footer_left / footer_center / footer_right）——版權列上方 */
.df-foot-zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
}
@media (max-width: 767.98px) { .df-foot-zones { grid-template-columns: minmax(0, 1fr); } }
.df-foot-zone-item + .df-foot-zone-item { margin-top: 24px; }
.df-foot-zone-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.df-foot-zones a { color: rgba(255,255,255,.75); text-decoration:none; }
.df-foot-zones a:hover { color:#fff; }

/* ===== 彈跳視窗（Bootstrap modal 深色皮膚，配合 demo 風格） ===== */
.df-modal .modal-content{background:#141414;color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:14px;}
.df-modal .modal-header{border-bottom:1px solid rgba(255,255,255,.12);}
.df-modal .modal-title{font-family:'Noto Sans TC',sans-serif;font-size:1.15rem;font-weight:600;line-height:1.4;letter-spacing:.04em;color:#fff;}
.df-modal .btn-close{filter:invert(1) grayscale(1);opacity:.7;}
.df-modal .btn-close:hover{opacity:1;}
.df-modal .form-control{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);color:#fff;}
.df-modal .form-control::placeholder{color:rgba(255,255,255,.45);}
.df-modal .form-control:focus{background:rgba(255,255,255,.08);border-color:var(--color-accent);box-shadow:none;color:#fff;}
.df-modal .form-check-label{color:rgba(255,255,255,.75);}
.df-modal .form-check-input:checked{background-color:var(--color-accent);border-color:var(--color-accent);}
/* ⚠️ hover 必須「明確」重設 background-color / border-color：
   Bootstrap 的 `.btn:hover`（權重 0,2,0）會把 background-color 設成 `var(--bs-btn-hover-bg)`，
   而這兩顆按鈕沒有定義那些 --bs-btn-* 變數 → 該宣告失效 → 背景變透明。
   基礎規則 `.df-modal-btn`（權重 0,1,0）壓不過 `.btn:hover`，所以只在基礎規則設 background
   是不夠的：hover 時背景就會整個消失（首頁因 modal 是深底、白字仍可見而不易察覺；
   內頁 modal 若為淺底就會整顆按鈕看不見）。 */
.df-modal-btn{background-color:var(--color-accent);border:1px solid var(--color-accent);color:#fff;letter-spacing:.08em;transition:filter .3s,background-color .3s;}
.df-modal-btn:hover,
.df-modal-btn:focus,
.df-modal-btn:active{background-color:var(--color-accent);border-color:var(--color-accent);color:#fff;filter:brightness(1.12);}
.df-modal-btn-ghost{background-color:transparent;border:1px solid rgba(255,255,255,.28);color:#fff;}
.df-modal-btn-ghost:hover,
.df-modal-btn-ghost:focus,
.df-modal-btn-ghost:active{background-color:rgba(255,255,255,.08);border-color:rgba(255,255,255,.28);color:#fff;}
.df-modal-links{display:flex;justify-content:space-between;margin-top:16px;font-size:13px;}
.df-modal-links a{color:rgba(255,255,255,.6);text-decoration:none;}
.df-modal-links a:hover{color:#fff;}
