/* ====================================
   全站變數
==================================== */
:root {
  --color-bg: #050b18;
  --color-text: #ffffff;
  --color-muted: #c0c5d6;
  --color-accent: #ffa02c;
  --color-brend: #0e3264;
  --glass-dark: rgba(6, 12, 24, 0.36);
  --content-width: 1120px;
  --header-height: 72px;

  /* Hero（首頁或主宣言用） */
  --fs-hero-title: clamp(1.8rem, 4vw + 0.5rem, 3rem);
  --fs-hero-subtitle: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-page-title: clamp(1.9rem, 3vw, 2.4rem);
  --fs-section-title: clamp(1.5rem, 2.1vw, 2rem);
  --fs-section-subtitle: clamp(0.95rem, 1.15vw, 1rem);
  --fs-eyebrow: clamp(0.7rem, 0.9vw, 0.8rem);
  --fs-card-title: clamp(1.05rem, 1.2vw, 1.15rem);
  --fs-body: clamp(0.95rem, 1.1vw, 1rem);

  /* 內文 / 條列 */
  --fs-body: 0.95rem;
  --fs-small: 0.82rem;

  /* 行高（一起統一） */
  --lh-tight: 1.25;
  --lh-base: 1.65;
  --lh-list: 1.55;

  /* 字距（可選） */
  --ls-title: 0.02em;
  --ls-eyebrow: 0.22em;

  --font-sans:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Inter", "Noto Sans",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue",
    Arial, sans-serif;

  --eyebroe-margin-bottom: clamp(8px, 1.2vw, 12px);
  --section-title-margin-bottom: clamp(16px, 2.5vw, 24px);
  --section-margin-bottom: clamp(32px, 4.5vw, 48px);
  --footer-margin-bottom: clamp(48px, 6vw, 72px);
}
/* ====================================
   Reset
==================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #050b18;
}

/* 包裹內容的 max width */
.page-shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}
/* ====================================
   全域設定
==================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
}

img {
  max-width: 100%;
  display: block;
}

/* ====================================
   🔒 全站統一左右邊界的容器
==================================== */

.container {
  width: 100%;
  max-width: var(--content-width); /* 1120px */
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ====================================
   Header（左｜中｜右）
==================================== */

.site-header {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.site-header-inner {
  width: 100%;
  display: flex;
  align-items: center;
}

.header-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo 大小可依需求調整 */
.brand-logo {
  height: 55px;
  width: auto;
}

/* 公司名稱（水平） */
.brand-name {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap; /* 避免換行 */
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* ========== Header nav dropdown ========== */

/* nav-links 預期是 flex，若你本來就有可以不用這行 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
/* 讓「關於我們」這個 button 長得像 nav link */
.nav-link--parent {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.nav-item--has-dropdown {
  position: relative;
}
.nav-item {
  position: relative;
}

/* 關於我們有下拉 */
.nav-item--has-dropdown .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 小箭頭 */
.nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(1px);
  transition: transform 0.16s ease;
}

/* 下拉本體 */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  min-width: 180px;
  padding: 0.5rem 0;
  border-radius: 10px;

  background: rgba(5, 11, 24, 0.96); /* 深色毛玻璃感 */
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  z-index: 1000;
}

/* hover 時展開 */
.nav-item--has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item--has-dropdown:hover .nav-caret {
  transform: translateY(1px) rotate(180deg);
}

/* 下拉裡的連結 */
.nav-dropdown-link {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.14s ease,
    color 0.14s ease;
}

/* hover 效果 */
.nav-dropdown-link:hover {
  background: rgba(255, 160, 44, 0.14);
  color: var(--color-text);
}

/* 子項 active 樣式（目前所在頁面） */
.nav-dropdown-link--active {
  color: var(--color-accent);
  font-weight: 600;
}
.nav-link {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 14px;
  position: relative;
}

.nav-link--active {
  color: #fff;
}

.nav-link--active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
}

.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

.lang-pill {
  padding: 4px 10px;
  font-size: 12px;
  color: var(--color-muted);
  cursor: default;
}

.lang-pill--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.header-cta {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid transparent;
  transition: 0.25s ease;
  text-decoration: none; /* 移除底線 */
}

.header-cta:hover {
  background: #ffa02c;
  color: #050b18; /* 深藍文字 */
  transform: translateY(-1px);
}

/* 漢堡按鈕：桌機先隱藏 */
.nav-toggle {
  display: none; /* 桌機隱藏，手機在 @media 裡開 */
  position: relative;
  width: 20px;
  height: 18px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

/* 三條線：絕對定位 */
.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  height: 2px;
  border-radius: 2px;
  background-color: #ffffff;
  transition: 0.25s ease;
}

/* 上中下三條的位置 */
.nav-toggle span:nth-child(1) {
  top: 0;
}

.nav-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span:nth-child(3) {
  bottom: 0;
}
/* ======== 叉叉動畫 ======== */

/* 第一條移到中間 + 旋轉 45° */
.site-header.is-open .nav-toggle span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

/* 中間這條隱藏 */
.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

/* 第三條也移到中間 + 旋轉 -45° */
.site-header.is-open .nav-toggle span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* ===========================
   Hero：滿版主視覺（90vh）
=========================== */

.hero {
  height: 80vh; /* 佔畫面 90% */
  width: 100%;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(rgba(5, 11, 24, 0.65), rgba(5, 11, 24, 0.55)),
    url("assests/images/hero6.png"); /* ← 換成你的圖片路徑 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /*padding-bottom: clamp(3rem, 5vw, 4rem);*/
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px; /* 內文字區塊寬度（仍在 container 之內） */
}

.hero-eyebrow {
  margin-bottom: 16px;
  font-size: clamp(0.75rem, 1.2vw + 0.2rem, 1rem);
  letter-spacing: 0.12em;
  font-weight: 800;
  opacity: 0.85;
  color: var(--color-accent);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw + 0.5rem, 3rem);
  line-height: 1.25;
  max-width: none;
  margin-bottom: 20px;
}

.hero-title-accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(0.85rem, 1.6vw + 0.3rem, 1.12rem);
  line-height: 1.55;
  max-width: 48ch;
  opacity: 0.8;
  color: var(--color-muted);
  margin-bottom: 28px;
  text-align: justify;
  text-justify: inter-ideograph;
}

.hero-actions {
  font-size: 16px;
  display: flex;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.hero-meta-dots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.meta-dot-item {
  font-size: 14px;
  color: var(--color-muted);
  position: relative;
  padding-left: 14px; /* 留空間給圓點 */
}

.meta-dot-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 7px; /* 讓圓點垂直置中 */
}

/* ====================================
   About Section
==================================== */
.about-section {
  padding-bottom: clamp(3rem, 5vw, 4rem);
  background: var(--color-bg);
  color: var(--color-text);
  margin-top: clamp(3.5rem, 5vw, 4.5rem); /* 和 about 拉開一點距離 */
  padding-top: clamp(3rem, 5vw, 4rem);
}

/* ⭐ 核心：左右排列 */
.about-layout {
  display: flex;
  flex-direction: row; /* ← 確保是左右，不是上下 */
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.about-inner {
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

/* 左文字區 */
.about-left {
  flex: 1.2;
  min-width: 0;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw + 0.3rem, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.about-key-primary {
  color: var(--color-accent);
  font-size: clamp(1.8rem, 4.2vw + 0.2rem, 2.6rem);
}
.about-key-secondary {
  color: var(--color-accent);
  font-size: clamp(1.8rem, 4.2vw + 0.2rem, 2.6rem);
}

.about-separator {
  width: 2.5rem;
  display: inline-block;
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  text-align: justify; /* ⭐ 左右對齊 */
  text-justify: inter-ideograph; /* ⭐ 讓中文平均分配間距 */
  text-align-last: left; /* 最後一行維持靠左（比較自然） */
}

.about-more {
  position: relative;
  display: inline-block; /* 讓 before/after 貼著文字 */
  padding-left: 0.5rem; /* 保留一點字的呼吸空間 */
  margin-left: 0; /* 完全靠左 */
  margin-top: 2rem;
  color: #ffa02c;
  font-family: var(--font-serif);
  text-decoration: none;
}

/* 左側不放線（更乾淨） */

.about-more::after {
  content: "";
  position: absolute;
  left: 100%;
  margin-left: 0.6rem;
  top: 50%;
  width: 8rem; /* 線條長度 */
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 70%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* 右 icon 區 */
.about-right {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.about-icon {
  width: clamp(12rem, 15vw, 18rem);
  width: 100%;
  height: auto;
  opacity: 0.95;
}

/* ====================================
   Services
==================================== */

/* 區塊底色保持純黑 */
.index-services-section {
  padding: 5rem 0;
  background-image:
    linear-gradient(rgba(5, 11, 24, 0.75), rgba(5, 11, 24, 0.75)),
    url("assests/images/index.png");
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 標題置中 */
.index-services-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 3rem;
  font-family: var(--font-serif);
}

/* 🔥 固定四卡 grid */
.index-services-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch; /* 四個格子等高 */
}

/* 🔥 超級毛玻璃卡片 */
.index-service-card {
  height: 100%; /* 讓裡面的卡片可以撐滿這一格 */
}
/* 每張卡片：玻璃感 + 黑底 + 橘框 + 等高 */
.index-glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 1.8rem 1.5rem;
  min-height: 350px;
  height: 100%;
  /* 🌫 半透明玻璃底 */
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.02) 35%,
      rgba(255, 255, 255, 0) 60%
    ),
    rgba(8, 12, 20, 0.28); /* ⬅ 非常透 */

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;

  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);

  color: var(--color-text);
  overflow: hidden;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

/* Hover 漂浮 */
.index-glass-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* 反光掃過動畫 */
.index-glass-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  transform: translateX(-140%) skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

.index-glass-card:hover::before {
  animation: shine 1.4s ease-out 0s 1; /* 1.4 秒跑一次 */
}
@keyframes shine {
  0% {
    transform: translateX(-140%) skewX(-20deg);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  50% {
    transform: translateX(140%) skewX(-20deg);
    opacity: 0;
  }
  100% {
    transform: translateX(140%) skewX(-20deg);
    opacity: 0;
  }
}
/* 標題橘色 */
.index-service-card h3 {
  font-size: 1.35rem;
  font-family: var(--font-serif);
  color: #ffa02c;
  margin-bottom: 0.8rem;
  text-align: center;
}
/* ===== 服務項目 icon 容器 ===== */
.index-service-img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.75rem 0 1rem;
}
.index-glass-card .service-icon {
  width: 85%; /* 👈 icon = card 寬度的 42% */
  min-width: 90px; /* 👈 下限，避免手機太小 */
  height: auto;
}

/* ===== SVG icon 本體 ===== */
.service-icon {
  width: 120px; /* 建議 80–96，四張統一 */
  height: auto;
  display: block;
}

/* ===== 線條（長條＋折線） ===== */
.service-icon .svc-stroke {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ===== 一般節點 ===== */
.service-icon .svc-node {
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 4;
}

/* ===== 重點節點 ===== */
.service-icon .svc-node-accent {
  fill: #ffa02c;
}

/* ===== Hover 微互動（可留） ===== */
.index-glass-card:hover .svc-node-accent {
  filter: drop-shadow(0 0 8px rgba(255, 160, 44, 0.6));
}

/* 服務卡片：文字外層容器 */
.index-glass-card .index-text {
  max-width: 260px; /* 文字區塊不要太寬 */
  width: 100%;
  margin: 0 auto; /* 整塊 index-text 置中 */
}
.service-list {
  max-width: 260px;
  margin: 0 auto;
  padding-left: 1.2rem; /* 控制縮排 */
  text-align: left;
  color: var(--color-text);
  line-height: 1.6;
}

.service-list li {
  margin-bottom: 0.4rem;
}
/* 服務卡片：文字本身 */
.index-glass-card .index-text p {
  text-align: left; /* 文字靠左對齊 */
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}
.index-service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);

  max-width: 260px; /* 文字區塊不要太寬，看起來集中在中間 */
  margin: 0 auto 0; /* 區塊本身水平置中 */
  text-align: left; /* 區塊裡的文字靠左 */
}
.index-page-shell {
  width: min(100% - 3rem, var(--content-width));
  margin: 0 auto;
}
.index-cta {
  display: flex;
  align-items: center; /* 垂直置中 */
  justify-content: center; /* 水平置中 */

  padding: clamp(5rem, 8vw, 8rem) 0; /* 放大上下空間 */
  text-align: center;

  background: var(--color-bg); /* 若你已有背景色，可保留 */
}

.index-cta .container {
  max-width: 720px; /* 控制 CTA 寬度，避免太散 */
}
.index-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.4;
  margin-bottom: 2rem;
}
.index-cta .btn {
  margin-top: 0.5rem;
}
/* ===== Services Journey Page ===== */

.svc-journey {
  position: relative;
  padding: clamp(4.5rem, 6vw, 7rem) 0;
  background:
    radial-gradient(
      120% 80% at 20% 10%,
      rgba(255, 160, 44, 0.06),
      transparent 40%
    ),
    linear-gradient(180deg, #070b14 0%, #060a12 100%);
  color: #fff;
  overflow: hidden;
}
.svc-journey .container {
  max-width: 1180px;
}
.svc-journey__grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}
@media (max-width: 900px) {
  .svc-journey__grid {
    grid-template-columns: 90px 1fr;
  }
}
.svc-journey__timeline {
  position: sticky;
  top: 120px;
  width: 180px;
  height: calc(100vh - 160px);
  min-height: 620px;
  pointer-events: none;
}

.timeline-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.s-rail {
  position: relative;
  width: 100%;
  height: 100%;
}

/* SVG 軌道 */
.s-rail__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(255, 160, 44, 0.25));
}

/* 中軸骨架（不搶戲） */
.s-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(255, 160, 44, 0),
    rgba(255, 160, 44, 0.45),
    rgba(255, 160, 44, 0)
  );
  opacity: 0.55;
}

/* 虛線進程感 */
.s-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 160, 44, 0.45) 0 6px,
    rgba(255, 160, 44, 0) 6px 14px
  );
  opacity: 0.35;
}
.s-rail__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffa02c;
  box-shadow:
    0 0 0 4px rgba(255, 160, 44, 0.12),
    0 0 18px rgba(255, 160, 44, 0.38);
}

/* 指向右邊內容的小連結線 */
.s-rail__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 22px;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    to right,
    rgba(255, 160, 44, 0.65),
    rgba(255, 160, 44, 0)
  );
  opacity: 0.8;
}
/* Step 01：起點偏右 */
.dot--1 {
  top: 10%;
  left: 50%;
  transform: translateX(28px);
}

/* Step 02：回中 */
.dot--2 {
  top: 35%;
  left: 50%;
  transform: translateX(-6px);
}

/* Step 03：轉折偏左 */
.dot--3 {
  top: 60%;
  left: 50%;
  transform: translateX(-32px);
}

/* Step 04：收束回中 */
.dot--4 {
  top: 85%;
  left: 50%;
  transform: translateX(-6px);
}
.svc-journey__steps {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3vw, 2.6rem);
}

/* 每一段 Step */
.step {
  position: relative;
  padding-bottom: clamp(1.4rem, 2.5vw, 1.8rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

/* Step 標示 */
.step__kicker {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  opacity: 0.65;
}

/* 標題 */
.step__title {
  margin-bottom: 0.45rem;
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
  letter-spacing: 0.02em;
}

/* 說明文字 */
.step__lead {
  margin-bottom: 0.85rem;
  line-height: 1.75;
  opacity: 0.82;
  max-width: 60ch;
}

/* 清單 */
.step__list {
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
}

.step__list li {
  line-height: 1.65;
}

/* ====================================
   footer
==================================== */

/* ===== Footer：玻璃感版本 ===== */
.site-footer {
  background: rgba(14, 50, 100, 0.35); /* 半透明藍色玻璃 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 3rem 1.5rem 2rem;
  font-family: var(--font-sans);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 內層，用在 <div class="page-shell footer-inner"> */
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr;
  gap: 3rem;
  align-items: flex-start;
}

/* 左邊品牌區 */
.footer-logo {
  width: 48px;
  height: auto;
  margin-bottom: 0;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  margin-left: 0.2rem;
  letter-spacing: 0.06em;
}

.footer-desc {
  margin-top: 1rem;
  line-height: 1.7;
  opacity: 0.8;
  font-size: 0.9rem;
  max-width: 320px;
  text-align: justify;
}

/* 區塊標題（導覽 / 聯絡資訊） */
.footer-title {
  font-size: 1rem;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: #ffa02c;
  letter-spacing: 0.05em;
}

/* 中間導覽區 */
.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-contact li {
  margin-bottom: 0.6rem;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  transition: 0.2s ease;
  opacity: 0.9;
}

.footer-nav a:hover {
  color: #ffa02c;
  opacity: 1;
}

/* 右側聯絡資訊與按鈕 */
.footer_list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.footer_item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.25;
}

/* 共同的 icon 盒子：統一尺寸，解決 PNG/SVG 對齊 */
.footer_icon-wrap {
  width: 23px;
  height: 23px;
  flex: 0 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* mail 需要白底（不然白色信封會吃掉背景） */
.footer_icon-wrap--white {
  background: #fff;
  border-radius: 6px;
}

/* LINE PNG 放進盒子 */
.footer_line-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  /* 如果你覺得還是偏下，解開這行 */
  /* transform: translateY(-1px); */
}

/* mail SVG 尺寸 */
.footer_mail-icon {
  width: 28px;
  height: 28px;
  display: block;
}

/* 你要的：白底藍線 */
.footer_mail-icon rect {
  fill: #fff;
}
.footer_mail-icon line {
  stroke: var(--color-brend);
  stroke-width: 1.6;
  stroke-linecap: round;
}
/* 地圖 icon 尺寸 */
.footer_map-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* 地圖 icon 顏色 → 品牌藍 */
.footer_map-icon path {
  fill: var(--color-accent);
}
.footer_map-icon circle {
  fill: #ffffff;
}
.footer_text--nowrap {
  white-space: nowrap; /* 🚫 不換行 */
}

/* 最底下版權列 */
.footer-bottom {
  margin-top: 3rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.75;
  font-size: 0.85rem;
}

/* RWD：手機改成一欄疊放 */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-contact,
  .footer-nav,
  .footer-brand {
    align-items: center;
  }
}

/* ====================================
   mission
==================================== */
/* ===============================
   Mission Hero
   =============================== */
/* ===============================
   Mission & Vision Hero（背景圖）
   =============================== */

.mv-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--color-text);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mv-hero--mission {
  background-image: url("assests/images/mission-hero.png");
}

.mv-hero--vision {
  background-image: url("assests/images/vision-hero.png");
}

/* 深色疊圖遮罩（統一品牌感） */
.mv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(5, 11, 24, 0.78),
    rgba(5, 11, 24, 0.55)
  );
  backdrop-filter: blur(1.5px);
}

/* 文字區 */
.mv-hero-inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vh, 5rem) 1.5rem;
  z-index: 2;
  width: 100%;
}
/* Vision Hero – 文字靠右 */
.mv-hero--vision .mv-hero-inner {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Eyebrow */
.mv-eyebrow {
  color: var(--color-accent);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

/* 大標 */
.mv-title {
  font-family: var(--font-sans);
  font-size: var(--fs-hero-title);
  line-height: 1.3;
  margin-bottom: 1.3rem;
}

/* 段落 */
.mv-body {
  max-width: 640px;
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--color-muted);
  text-align: justify;
  text-justify: inter-ideograph; /* 中文一定要加 */
}

/* ===== MV hero reveal animation ===== */

/* 初始狀態：先隱藏 */
.mv-hero .mv-eyebrow,
.mv-hero .mv-title,
.mv-hero .mv-body {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(2px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 700ms ease;
  will-change: opacity, transform, filter;
}

/* 進場後：顯示 */
.mv-hero.is-inview .mv-eyebrow,
.mv-hero.is-inview .mv-title,
.mv-hero.is-inview .mv-body {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* 分段延遲：眉題 -> 標題 -> 內文 */
.mv-hero .mv-eyebrow {
  transition-delay: 60ms;
}
.mv-hero .mv-title {
  transition-delay: 160ms;
}
.mv-hero .mv-body {
  transition-delay: 280ms;
}
/* ====================================
   team內頁
==================================== */
/* 整體區塊 */
.page-heading {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 1rem;
  text-align: center;
}

.page-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: var(--font-serif);
  margin: 0;
  color: var(--color-text);
}

.page-subtitle {
  margin-top: 0.6rem;
  font-size: clamp(0.85rem, 1.6vw + 0.3rem, 1.12rem);
  color: var(--color-muted);
}

.team-section {
  padding: 4rem 0;
}

/* 三張卡片的排版 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

/* 單張卡片 */
.team-card {
  position: relative;
  background: rgba(7, 14, 28, 0.8);
  backdrop-filter: blur(16px);
  padding: 2rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 220ms ease-out,
    box-shadow 220ms ease-out,
    border-color 220ms ease-out,
    background 220ms ease-out;
  min-height: 650px;
}

.team-card.row2{
  min-height: 785px;
}

/* hover 效果：浮起來＋橘色邊框 */
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 160, 44, 0.8);
  background: rgba(10, 18, 36, 0.95);
}

/* Header：eyebrow + name */
.team-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
  min-height: 4.5rem; /* 👈 這行是關鍵：強制頭部至少一樣高 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 讓文字在這個高度中置中 */
}

.team-eyebrow {
  font-size: clamp(0.95rem, 2vw + 0.2rem, 1rem);
  font-weight: 500;
  color: var(--color-accent); /* 橘色 */
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  opacity: 0.75;
}

.team-name {
  font-size: clamp(1.4rem, 3vw + 0.3rem, 1.6rem);
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--color-text);
}

.team-photo {
  width: 100%;
  aspect-ratio: 4/4.5; /* ← 你想多高多窄都可以改這裡 */
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18); /* ← 讓人物變大 */
  transform-origin: center; /* 以中央放大 */
  filter: brightness(0.92);
  transition:
    transform 260ms ease-out,
    filter 260ms ease-out;
}
/* Jessie */
.team-photo.photo1 img {
  object-position: center 30%;
}

/* Sue */
.team-photo.photo2 img {
  object-position: center 0%;
}

/* Tony */
.team-photo.photo3 img {
  object-position: center 50%;
}

.team-photo.photo4 img {
  object-position: 60% 40%;
}

.team-card:hover .team-photo img {
  transform: scale(1.22); /* hover 再更大一點也可以 */
  filter: brightness(1);
}

.team-card:hover .team-photo img {
  filter: brightness(1);
  transform: scale(1.06);
}

/* 分點式經歷 */
.team-experience {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 0;
  color: var(--color-muted);
  font-size: clamp(0.9rem, 1.4vw + 0.15rem, 1rem);
  line-height: 1.7;
  max-height: 10rem; /* 👈 關鍵：文字區最多這麼高 */
}

.team-experience li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.team-experience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: rgba(255, 160, 44, 0.9);
}

/* ====================================
   services內頁
==================================== */
.container {
  width: min(var(--content-width), 90%);
  margin: 0 auto;
}

/* ===== Hero ===== */
.services-hero {
  padding: 6rem 0 4rem;
  background: var(--color-bg);
  text-align: center;
}

.services-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: var(--font-serif);
  color: var(--color-text);
  margin-bottom: 0.5rem;
  margin-top: 3rem;
}

.services-subtitle {
  color: var(--color-muted);
  font-size: 1.1rem;
}

/* ===== 服務區塊 ===== */
.service-block {
  padding: 5rem 0;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-block.alt {
  background: #081120;
}

.services-grid-section {
  padding: 4rem 0;
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      rgba(255, 255, 255, 0.04),
      rgba(5, 7, 13, 0.9)
    ),
    url("assests/images/services-bg2.png");
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.service-card {
  position: relative;
  border-radius: 12px;
  padding: 2rem;
  overflow: hidden;

  /* 黑玻璃紙：比 body 稍微亮一點，才會浮起來 */
  background: rgba(10, 16, 30, 0.78);

  /* 邊界：比你原本亮一點點 */
  border: 1px solid rgba(255, 255, 255, 0.14);

  /* 空氣層：不是霓虹，是距離感 */
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

/* 表面極淡高光：避免死黑 */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0) 55%
  );
  opacity: 0.8;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(10, 16, 30, 0.86);
  border-color: rgba(255, 160, 44, 0.85);
}

.service-card h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.service-summary {
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.service-card ul {
  list-style: none;
  padding-left: 0;
}

.service-card li {
  padding-left: 1rem;
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text);
}

.service-text h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.service-text ul {
  list-style: none;
  padding-left: 0;
}

.service-text li {
  margin-bottom: 0.6rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text);
}
/* ===== 合作模式 ===== */
.coop-section {
  padding: 5rem 0;
  background: #0c1627;
}

.coop-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 3rem; /* 讓標題與左右內容有距離 */
  color: var(--color-text);
}

.coop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.coop-card {
  background: #111c31;
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.coop-card h3 {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.coop-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}
.coop-section {
  padding: 5rem 0;
}

.coop-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 3rem;
  align-items: center;
}

/* 左側圖片 */
.coop-left img {
  width: 100%;
  height: auto;
  display: block;
}
/* ====================================
   SUCCESS CASES
==================================== */
.cases-page {
  max-width: 1200px;
  margin: 0 auto; /* 原本 3.5rem auto 0 */
  padding: 2rem 1.25rem 0; /* 用 padding 做呼吸 */
  font-family: var(--font-sans);
}

.cases-page-header {
  padding: 2.25rem 0 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
}

.cases-page-title {
  font-size: var(--fs-page-title);
  line-height: 1.2;
  margin-top: 1.25rem;
}

.cases-page-subtitle {
  font-size: var(--fs-hero-subtitle);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.casepage-list {
  max-width: 1200px;
  margin: 2.5rem auto 0; /* 原本 4rem auto 0 */
  padding: 0 1.25rem;
}

.casepage-content {
  margin-bottom: 5rem;
}
.casepage-header {
  margin-bottom: 2.5rem;
}

.casepage-eyebrow {
  font-size: var(--fs-eyebrow);
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.casepage-title {
  font-size: var(--fs-section-title);
  line-height: 1.35;
}
.casepage-subtitle {
  font-size: var(--fs-section-subtitle);
  line-height: 1.6;
  margin-top: 1rem;
  color: var(--color-muted);
}
.casepage-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 3rem;
}

/* Row 2：左右互換 */
.casepage-row--text-first {
  grid-template-columns: 0.85fr 1.15fr;
}
.casepage-text {
  font-size: 1rem;
  line-height: 1.8;
}

.casepage-paragraph {
  margin-bottom: 0.6rem;
  text-align: justify;
}

.casepage-paragraph-intro {
  margin-bottom: 0.5rem;
}
.casepage-paragraph-end {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.casepage-media-img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6); /* 細白框 */
  border-radius: 0.5rem;
}

.casepage-keypoints {
  padding-left: 1.25rem;
  margin: 1rem 0 1rem;
  line-height: 1.2;
}

.casepage-keypoints li {
  margin-bottom: 0.6rem;
}
.casepage-media--card .casepage-card {
  padding: 1rem;
  background: rgba(7, 14, 28, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.casepage-card-image {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.casepage-card-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* =========================================================
   Contact Section (FINAL)
   - 對齊全站 :root tokens
   - 背景：地圖含比例不拉伸（contain）+ 底層補滿（cover）
   - 視覺：更接近你喜歡的 mockup 排版
   ========================================================= */

.contact-section {
  position: relative;
  padding: clamp(4rem, 6vw, 6.5rem) 0;
  padding-top: clamp(5rem, 10vh, 8rem);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  overflow: hidden;
}

/* ---------- 背景圖（夜景＋地圖） ---------- */
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  /* 上層：地圖（不拉伸，保比例）
     下層：純色補底（避免 contain 留白很突兀） */
  background-image:
    url("assests/images/contact-bg.png"),
    linear-gradient(var(--color-bg), var(--color-bg));
  background-repeat: no-repeat;
  background-size: contain, cover;
  background-position:
    center top,
    center;

  /* 讓底部燈火更出來一點但不過頭 */
  filter: saturate(1.15) contrast(1.1) brightness(1.08) hue-rotate(-5deg);
  transform: scale(1.03);
  margin-top: var(--header-height);
}

/* 深色遮罩，確保卡片清楚 */
.contact-section::before,
.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.contact-section::before {
  background: radial-gradient(
    80% 70% at 50% 40%,
    rgba(5, 11, 24, 0.35),
    rgba(5, 11, 24, 0.75)
  );
}

.contact-section::after {
  background: linear-gradient(
    to bottom,
    rgba(5, 11, 24, 0.9),
    rgba(5, 11, 24, 0.55) 40%,
    rgba(5, 11, 24, 0.92)
  );
}

/* ---------- 內容容器 ---------- */
.contact-shell {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0rem;
}

/* ---------- Header ---------- */
.contact-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto clamp(2.1rem, 4vw, 3.2rem);
}

.contact-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--color-muted);
  margin-bottom: 0.95rem;
}

.contact-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.95rem;
  color: var(--color-text);
}

.contact-subtitle {
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--color-muted);
}

/* ---------- 三卡排版 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: stretch; /* 橫排時卡片撐滿各欄 */
  gap: clamp(1.1rem, 2.2vw, 1.6rem);
  align-items: stretch;
}

/* ---------- Glass Card ---------- */
.contact-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 1.8rem);
  min-height: 392px;
  border-radius: 18px;

  /* 少霧、偏黑透：更像你喜歡的 mockup */
  background: rgba(5, 11, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* 主卡（LINE） */
.contact-card--primary {
  border-color: rgba(255, 160, 44, 0.3);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 160, 44, 0.08),
    0 0 42px rgba(255, 160, 44, 0.12);
}

/* ---------- Badge ---------- */
.contact-badge {
  width: fit-content;
  padding: 0.38rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;

  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-badge--line {
  color: var(--color-accent);
  border-color: rgba(255, 160, 44, 0.36);
  background: rgba(255, 160, 44, 0.14);
}

/* ---------- Card 文字 ---------- */
.contact-card-title {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  color: var(--color-text);
}

.contact-card-text {
  margin: 0 0 1.2rem;
  line-height: 1.8;
  color: var(--color-muted);
}

/* ---------- Actions ---------- */
.contact-actions {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
}

.contact-hint {
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    background 160ms ease;
  user-select: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* ---------- Email List ---------- */
.contact-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);

  color: var(--color-text);
  text-decoration: none;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.065);
}

.contact-copy {
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.contact-copy.is-copied {
  border-color: rgba(255, 160, 44, 0.35);
}

/* ---------- Dot ---------- */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-muted);
}

.dot--orange {
  background: var(--color-accent);
}

/* ---------- Info Meta ---------- */
.contact-meta {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-k {
  color: var(--color-muted);
  letter-spacing: 0.06em;
}

.meta-v {
  color: var(--color-text);
  line-height: 1.5;
}

/* ---------- QR（保留但降存在感） ---------- */
.contact-qr {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.86;
}

.contact-qr img {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  background: var(--color-text);
  padding: 8px;
  filter: grayscale(0.08) contrast(0.98) brightness(0.98);
}

/* =========================
   Global Button System
   - 統一形狀：膠囊 pill
   - 統一手感：高度、字重、hover
   - 層級：primary / ghost + md / lg
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  text-decoration: none; /* ✅ 去掉連結底線 */
  color: inherit; /* ✅ 避免變藍 / visited 變色 */
  -webkit-tap-highlight-color: transparent;

  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;

  border-radius: 999px; /* ✅ 統一形狀 */
  border: 1px solid rgba(255, 255, 255, 0.14);

  cursor: pointer;
  user-select: none;
  white-space: nowrap;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

/* 尺寸層級 */
.btn--md {
  height: 30px;
  padding: 0 1.05rem;
  font-size: 0.95rem;
}

.btn--lg {
  height: 36px;
  padding: 0 1.45rem;
  font-size: 1rem;
}

/* 主 CTA：橘色（Hero / 重要入口） */
.btn--primary {
  position: relative;
  overflow: hidden;

  background: rgba(255, 160, 44, 0.92); /* 橘色實心 */
  color: #081020;

  border: 1px solid rgba(255, 160, 44, 0.55);

  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 200, 140, 0.45) 50%,
    /* 橘色高光 */ rgba(255, 255, 255, 0.25) 55%,
    rgba(255, 255, 255, 0) 70%
  );

  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity 0.3s ease,
    transform 0.45s ease;

  pointer-events: none;
}
.btn--primary:hover {
  background: rgba(255, 160, 44, 0.16); /* 橘色透明 */
  color: #fff; /* 白字在透明橘上更乾淨 */

  border-color: rgba(255, 200, 140, 0.75); /* 亮橘邊框 */

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 18px 38px rgba(0, 0, 0, 0.55);

  transform: translateY(-1px);
}

.btn--primary:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.btn--primary:active {
  transform: translateY(0);
}
.btn--primary-R {
  position: relative;
  overflow: hidden;

  /* 常態：透白 */
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-text);

  border: 1px solid rgba(255, 255, 255, 0.45);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.35);

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}
.btn--primary-R::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.22) 45%,
    rgba(255, 230, 200, 0.28) 50%,
    rgba(255, 255, 255, 0.22) 55%,
    rgba(255, 255, 255, 0) 70%
  );

  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity 0.3s ease,
    transform 0.45s ease;
  pointer-events: none;
}
.btn--primary-R:hover {
  background: rgba(255, 245, 235, 0.22); /* 🔑 微暖白（不是橘） */
  color: var(--color-text);

  border-color: rgba(255, 180, 90, 0.55); /* 橘色邊緣提示 */

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 16px 34px rgba(0, 0, 0, 0.45);

  transform: translateY(-1px);
}
.btn--primary-R:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

/* 次 CTA：玻璃 / 線框（header 或 footer 低調入口） */
.btn--ghost {
  background: rgba(8, 16, 32, 0.35);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.btn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 160, 44, 0.35);
}

/* 鍵盤可用性（超重要） */
.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 160, 44, 0.25),
    0 14px 32px rgba(0, 0, 0, 0.45);
}
.only-mobile {
  display: none;
}
.only-computer {
  display: inline;
}

/* ====================================
   @media
==================================== */
@media (max-width: 768px) {
  .site-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .site-header-inner > * {
    min-width: 0; /* 防止任何子元素撐爆 */
  }
  /* =================================
     左側：Logo
     ================================= */

  .brand-logo {
    width: 60px;
    height: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }
  /* =================================
     中間：公司名稱（絕對置中）
     ================================= */

  .brand-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* 60px logo + 56px 漢堡 + 緩衝 */
    max-width: calc(100% - 60px - 56px - 1rem);
    pointer-events: none;
  }

  /* =================================
     右側：漢堡按鈕
     ================================= */

  .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  .lang-toggle,
  .btn--header {
    display: none; /* 手機先隱藏 */
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 2000;
  }

  /* =================================
     手機版導覽面板（fixed，下拉）
     ================================= */

  .header-center {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;

    background: rgba(5, 11, 24, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;

    z-index: 900;
  }

  /* 開啟狀態 */
  .site-header.is-open .header-center {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .header-center .nav-links .btn--header {
    display: inline-flex; /* 在面板內要顯示回來 */
    width: 100%;
    max-width: 200px;
    justify-content: center;
    margin-top: 0.5rem;
  }

  /* =================================
     Nav 結構（垂直清單）
     ================================= */

  .header-center .nav,
  .header-center .nav-links {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .header-center .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 1.75rem;
  }

  .header-center .nav-item {
    width: 100%;
  }

  .header-center .nav-link,
  .header-center .nav-dropdown-link {
    display: block;
    width: 100%;
    padding: 0.25rem 0;
    text-align: left;

    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* =================================
     手機版「關於我們」子選單：預設展開
     ================================= */

  .nav-item--about .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;

    background: transparent;
    box-shadow: none;
    padding-left: 0.75rem;
    margin-top: 0.25rem;
  }

  .nav-dropdown-link {
    font-size: 0.9rem;
    opacity: 0.85;
  }

  /* =================================
     內容區左右內距
     ================================= */

  .page-shell {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Hero 區塊：上下排 */
  .hero {
    min-height: 70vh;
    padding: 5rem 0 3rem; /* 避開 header，多一點上方空間 */
    background-position: 80% center;
  }

  .hero-inner {
    flex-direction: column; /* 原本如果是左右排，手機改成上下 */
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-heading {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
  }
  .hero-title-accent {
    display: block; /* 手機版等同於 <br> */
    margin-top: 0.35em; /* 可選：讓上下行有呼吸感 */
  }
  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }

  /* About 區：如果是左右兩欄就改成一欄 */
  .about-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-text,
  .about-media {
    width: 100%;
  }
  .index-services-section{
    /* ✅ 三層：融邊漸變(上/下) + 重遮罩 + 圖片 */
    background-image:
      /* 上：融進底色（邊界消失） */
      linear-gradient(
        to bottom,
        rgba(5, 11, 24, 1) 0%,
        rgba(5, 11, 24, 0) 22%
      ),
      /* 下：融進底色（邊界消失） */
      linear-gradient(
        to top,
        rgba(5, 11, 24, 1) 0%,
        rgba(5, 11, 24, 0) 26%
      ),
      /* ✅ 更重暗化：你說的 before/after 壓更重（這裡用背景層取代） */
      linear-gradient(
        rgba(5, 11, 24, 0.88),
        rgba(5, 11, 24, 0.88)
      ),
      /* 圖片 */
      url("assests/images/index.png");

    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%, cover, cover;

    /* ✅ 取景：避免只剩中間細條（你可以調 30~80%） */
    background-position: top center, bottom center, center, 65% 25%;

    /* ✅ 手機的區塊高度別太長（不然一樣會像被拉長） */
    padding: 3.5rem 0;
    min-height: 58svh;   /* 建議：讓它像一個 hero */
  }

  /* Services：四張卡片 → 一欄直排 */
  .index-page-shell {
    width: 100%;
    max-width: 100%;
    padding-inline: 3rem; /* 你想更窄可用 .75rem */
    box-sizing: border-box;
    overflow-x: clip; /* 防止任何橫向溢出造成看起來「太寬」 */
  }
  .index-services-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .index-service-card {
    min-height: auto; /* 避免被固定高度撐太高 */
  }
  /* Footer 在手機可以多一點上下空間 */
  .site-footer {
    padding: 2.5rem 1.5rem 2rem;
  }

  /*team*/
  /* 整體卡片由左→右 改成 上→下 */
  .team-grid {
    display: flex;
    flex-direction: column; /* ⭐ 垂直排列 */
    gap: 2rem; /* 卡片之間距離 */
  }

  /* 每張卡片自身也垂直（如果你原本是左右）*/
  .team-card {
    display: flex;
    flex-direction: column; /* ⭐ 保證照片/文字上下 */
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  /* 圖片置中 + 統一高度 */
  .team-photo {
    width: 100%;
    max-width: 260px;
    height: 320px; /* ⭐ 固定高度避免卡片不等高 */
    object-fit: cover; /* 保持比例不變形 */
    margin: 0 auto;
  }

  /* 經歷靠左比較好閱讀 */
  .team-experience {
    text-align: left;
    width: 100%;
    max-width: 500px;
  }
  /* ====================================
   @casespage
  ==================================== */
  .casepage-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  /* 你這個 row 命名叫 media-first：手機也保持圖在前 */
  .casepage-row--media-first .casepage-media {
    order: 1;
  }
  .casepage-row--media-first .casepage-text {
    order: 2;
  }

  /* 圖片滿版更好看 */
  .casepage-media,
  .casepage-media-img {
    width: 100%;
  }

  .casepage-media-img {
    display: block;
    height: auto;
  }
  .casepage-title {
    line-height: 1.25;
  }
  .casepage-subtitle {
    line-height: 1.5;
    opacity: 0.9;
  }

  .casepage-keypoints {
    padding-left: 1.5rem;
    margin: 1.5 0 0;
  }
  .casepage-keypoints li {
    margin: 0.1rem 0 0;
    line-height: 1.5;
  }
  .casepage-text {
    line-height: 1.5;
    text-align: justify;
  }
  /* ====================================
   @cta
  ==================================== */

  .contact-grid {
    grid-template-columns: 1fr;
    justify-items: center; /* ✅ 所有卡片在 grid 內置中 */
  }

  .contact-card {
    padding: 1.25rem;
    width: min(100%, 480px); /* ✅ 讓卡片有最大寬，才看得出置中 */
    justify-self: center; /* ✅ 保險：單卡強制置中 */
    min-width: 0; /* ✅ 防止內容/按鈕撐爆 */
  }

  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-qr {
    display: flex;
    justify-content: center;
  }
  .contact-qr img {
    max-width: 220px;
    width: 100%;
    height: auto;
  }
  .contact-bg {
    /* 1) 放大：二選一
       - 用 background-size 放大（推薦，最直覺）
       - 或用 transform scale 放大（你原本就有在用） */

    background-size:
      140% auto,
      cover; /* ✅ 把第一層圖片放大到 140% */
    /* background-size: 160% auto, cover;  // 想更大就加到 160~200% */

    /* 2) 移動位置：
       X(左右) + Y(上下)
       - X: left/center/right 或百分比
       - Y: top/center/bottom 或百分比 */
    background-position:
      50% 10%,
      center; /* ✅ 圖往下：把 10% 改大；往上就改小/負值 */
    /* 例：50% -5%（更往上）、50% 25%（更往下） */
    filter: saturate(1.05) contrast(1.05) brightness(1.05) hue-rotate(-5deg);
  }
  .contact-section::before {
    background: radial-gradient(
      90% 80% at 50% 35%,
      rgba(5, 11, 24, 0.18),
      rgba(5, 11, 24, 0.45)
    );
  }

  .contact-section::after {
    background: linear-gradient(
      to bottom,
      rgba(5, 11, 24, 0.45),
      rgba(5, 11, 24, 0.25) 40%,
      rgba(5, 11, 24, 0.55)
    );
  }

  /* ====================================
   @footer
  ==================================== */
  /* 整個 footer 內容區 */
  .site-footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  /* 三個欄位本身 */
  .footer-brand,
  .footer-nav,
  .footer-contact {
    align-items: center;
    text-align: center;
  }

  /* Logo + 公司名 */
  .footer-brand .brand {
    justify-content: center;
  }

  /* 導覽 ul */
  .footer-nav ul {
    padding: 0;
  }

  .footer-nav li {
    list-style: none;
  }
  /* 地址不要硬換行偏左 */

  /* ① 整塊 footer-contact 置中 */
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center; /* 關鍵：整塊置中 */
    max-width: 220px; /* ⭐ 關鍵：限制盒子寬度 */
  }

  /* ② 隱形盒子：限制寬度，讓 li 對齊 */
  .footer_list {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }

  /* ③ 每一行 icon + 文字 對齊 */
  .footer_item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* ④ 文字對齊（讓地址多行好看） */
  .footer_text {
    line-height: 1.6;
    text-align: left;
  }

  /* 最底下 copyright */
  .footer-bottom {
    text-align: center;
    padding: 1.25rem 1rem;
  }
  .only-mobile {
    display: inline;
  }
  .only-computer {
    display: none;
  }
  .no-wrap {
    white-space: nowrap;
  }
}
