/* ==========================================================================
   騰煇企業 TENG SELENDOR - 官方網站極致中階炭灰美學樣式表 (零死黑、毛玻璃、溫潤中階灰 #27272a)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&family=Outfit:wght@400;600;800&display=swap');

:root {
  /* 全站採用溫潤炭灰色系 — 告別純黑，質感升級 */
  --th-brand-dark: #3a3a3f;       /* 主色：質感炭灰（非純黑，有溫度感） */
  --th-brand-slate: #505058;      /* 輔色：中階板岩灰 */

  --th-bg-main: #fafafa;          /* 輕盈淡微灰背景 */
  --th-bg-card: rgba(255, 255, 255, 0.92);
  --th-bg-header: rgba(255, 255, 255, 0.88);
  --th-border-color: rgba(58, 58, 63, 0.1);

  --th-text-primary: #333338;     /* 主文字：深炭灰，閱讀舒適 */
  --th-text-secondary: #55555e;   /* 次文字：中階灰 */
  --th-text-muted: #7a7a85;       /* 輔助文字：柔和灰 */

  --th-accent: #3a3a3f;
  --th-accent-hover: #505058;
  --th-btn-bg: #46464e;           /* 按鈕：清楚的深炭灰，不是黑 */
  --th-btn-text: #ffffff;

  --th-max-width: 1200px;
  --th-transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--th-bg-main);
  color: var(--th-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--th-transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--th-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   頂部導覽列 Header (半透明毛玻璃)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--th-bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--th-border-color);
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.brand-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-company-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--th-brand-dark);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-company-en {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  color: var(--th-text-secondary);
  letter-spacing: 1px;
  font-weight: 600;
}

.nav-right-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  color: var(--th-text-secondary);
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;   /* ← 防止文字換行 */
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.nav-link:hover, .nav-link.active {
  color: var(--th-brand-dark);
  font-weight: 800;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--th-brand-dark);
  border-radius: 2px;
}

/* 下拉選單 */
.dropdown {
  position: relative;
}

.dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dropdown > .nav-link::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: var(--th-transition);
  opacity: 0.7;
}

.dropdown:hover > .nav-link::after {
  transform: rotate(225deg);
  margin-top: 1px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--th-border-color);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 210px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  z-index: 2000;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeInMenu 0.25s ease-in-out forwards;
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--th-text-secondary);
  transition: var(--th-transition);
}

.dropdown-item:hover {
  background: rgba(39, 39, 42, 0.05);
  color: var(--th-brand-dark);
  font-weight: 700;
}

/* 社群 Icon 區域 */
.social-icons-group {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid rgba(39, 39, 42, 0.1);
  padding-left: 20px;
}

.social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(39, 39, 42, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--th-brand-dark);
  transition: var(--th-transition);
}

.social-icon-btn:hover {
  background: var(--th-brand-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 39, 42, 0.15);
}

.social-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--th-text-primary);
}

/* ==========================================================================
   Hero 巨幕
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--th-brand-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(39, 39, 42, 0.9) 0%, rgba(39, 39, 42, 0.6) 55%, rgba(39, 39, 42, 0.2) 100%);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 820px;
}

.hero-cat-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-slide-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  color: #ffffff;
  word-break: keep-all;
}

.hero-slide-desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #e4e4e7;
  margin-bottom: 30px;
}

.btn-hero-cta {
  display: inline-block;
  background: #ffffff;
  color: var(--th-brand-dark);
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  transition: var(--th-transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-hero-cta:hover {
  background: #fafafa;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--th-transition);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--th-brand-dark);
}

.slider-arrow-prev { left: 24px; }
.slider-arrow-next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.dot-item {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--th-transition);
}

.dot-item.active {
  width: 32px;
  border-radius: 6px;
  background: #ffffff;
}

/* ==========================================================================
   高質感影音劇院大圖輪播組件
   ========================================================================== */
.video-theater-container {
  max-width: 1000px;
  margin: 0 auto 60px auto;
}

.vt-main-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  border: 1px solid rgba(39, 39, 42, 0.08);
}

.vt-img-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  background: var(--th-brand-dark);
  overflow: hidden;
}

.vt-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.vt-img-wrap:hover img {
  transform: scale(1.03);
}

.vt-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(39, 39, 42, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--th-transition);
}

.vt-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--th-brand-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: var(--th-transition);
  padding-left: 4px;
}

.vt-play-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.vt-play-btn:hover {
  transform: scale(1.12);
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

.vt-cat-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(39, 39, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 6px;
}

.vt-info-panel {
  padding: 40px 32px;
}

.vt-counter {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--th-text-muted);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 12px;
}

.vt-info-panel h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--th-brand-dark);
  margin-bottom: 14px;
  line-height: 1.35;
}

.vt-info-panel p {
  font-size: 0.95rem;
  color: var(--th-text-secondary);
  line-height: 1.7;
}

.vt-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(39, 39, 42, 0.1);
  color: var(--th-brand-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  transition: var(--th-transition);
}

.vt-arrow:hover {
  background: var(--th-brand-dark);
  color: #ffffff;
}

.vt-arrow-prev { left: 16px; }
.vt-arrow-next { right: 16px; }

/* 縮圖導覽條 */
.vt-thumbs-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 4px 8px 4px;
  margin-top: 16px;
}

.vt-thumb {
  flex: 0 0 130px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(39, 39, 42, 0.08);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--th-transition);
  text-align: center;
  padding-bottom: 6px;
}

.vt-thumb img {
  width: 100%;
  height: 75px;
  object-fit: cover;
}

.vt-thumb span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--th-text-secondary);
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.vt-thumb:hover, .vt-thumb.active {
  border-color: var(--th-brand-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(39, 39, 42, 0.08);
}

.vt-thumb.active span {
  color: var(--th-brand-dark);
  font-weight: 800;
}

/* ==========================================================================
   互動式前後拉桿對比組件
   ========================================================================== */
.ba-slider-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 340px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  user-select: none;
  background: var(--th-brand-dark);
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #ffffff;
}

.ba-before-wrapper .ba-image-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 10px;
  background: rgba(39, 39, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  border-radius: 4px;
  z-index: 5;
  white-space: nowrap;
  transition: opacity 0.25s ease-in-out;
}

.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.5px;
  height: 100%;
  background: #ffffff;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.35);
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--th-brand-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 900;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  gap: 2px;
  font-size: 0.95rem;
}

.ba-range-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
}

/* 哲學 Section */
.philosophy-section {
  padding: 80px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--th-border-color);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ph-card {
  padding: 32px 24px;
  border-radius: 14px;
  background: rgba(250, 250, 250, 0.9);
  border: 1px solid var(--th-border-color);
}

.ph-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--th-brand-dark);
  margin-bottom: 12px;
}

.ph-card p {
  font-size: 0.92rem;
  color: var(--th-text-secondary);
  line-height: 1.7;
}

/* 工程工序 */
.workflow-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--th-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--th-brand-dark);
}

.workflow-steps-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.wf-step-card {
  background: #ffffff;
  border: 1px solid var(--th-border-color);
  border-radius: 14px;
  padding: 24px 18px;
  transition: var(--th-transition);
}

.wf-step-card:hover {
  border-color: var(--th-brand-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.wf-step-num {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--th-text-muted);
  margin-bottom: 12px;
  display: block;
}

.wf-step-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--th-brand-dark);
  margin-bottom: 8px;
}

.wf-step-card p {
  font-size: 0.84rem;
  color: var(--th-text-secondary);
  line-height: 1.5;
}

/* 實績案例展示 */
.projects-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--th-border-color);
  border-bottom: 1px solid var(--th-border-color);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--th-bg-main);
  border: 1px solid var(--th-border-color);
  border-radius: 16px;
  padding: 28px;
  transition: var(--th-transition);
}

.project-card:hover {
  border-color: var(--th-brand-dark);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.project-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--th-text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--th-brand-dark);
  margin-bottom: 16px;
}

.link-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--th-brand-dark);
  border-bottom: 1.5px solid var(--th-brand-dark);
  padding-bottom: 2px;
  display: inline-block;
}

.link-text:hover {
  color: var(--th-brand-slate);
  border-color: var(--th-brand-slate);
}

/* 表單 */
.form-box {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--th-border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--th-brand-dark);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(39, 39, 42, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--th-brand-dark);
  outline: none;
  transition: var(--th-transition);
}

.form-input:focus {
  border-color: var(--th-brand-dark);
}

/* ==========================================================================
   💥 動態 GRC 6 步工程解密互動組件 (精緻限高版面，絕不霸屏)
   ========================================================================== */
.grc-interactive-showcase {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  margin-top: 24px;
  border: 1px solid rgba(39, 39, 42, 0.08);
}

.grc-step-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(39, 39, 42, 0.08);
  margin-bottom: 20px;
}

.grc-tab-btn {
  background: #f4f4f5;
  border: 1px solid rgba(39, 39, 42, 0.08);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--th-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--th-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.grc-tab-btn span {
  font-size: 0.75rem;
  opacity: 0.6;
}

.grc-tab-btn:hover, .grc-tab-btn.active {
  background: var(--th-brand-dark);
  color: #ffffff;
  border-color: var(--th-brand-dark);
}

.grc-tab-btn.active span {
  opacity: 0.9;
}

.grc-step-viewer {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 28px;
  align-items: center;
}

.grc-viewer-img-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  background: #f4f4f5;
  border: 1px solid rgba(39, 39, 42, 0.08);
}

.grc-viewer-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  transition: opacity 0.3s ease;
  padding: 8px;
}

.grc-viewer-step-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(39, 39, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
}

.grc-viewer-info h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--th-brand-dark);
  margin-bottom: 10px;
}

.grc-viewer-info p {
  font-size: 0.92rem;
  color: var(--th-text-secondary);
  line-height: 1.65;
}

.btn-submit {
  width: 100%;
  background: var(--th-brand-dark);
  color: #ffffff;
  padding: 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--th-transition);
  margin-top: 10px;
}

.btn-submit:hover {
  background: var(--th-brand-slate);
}

/* ==========================================================================
   頁尾 Footer (無彩色深灰 #262626)
   ========================================================================== */
.site-footer {
  background: #3c3c3f;   /* 比 #262626 明顯亮一階，溫潤深灰 */
  color: #9d9da6;
  padding: 60px 0 30px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand h4 {
  color: #e8e8ea;         /* 柔和偏米白，不刺眼 */
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;       /* 從 800 降到 600 */
}

.footer-contact-info p {
  color: #9d9da6;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-col h5 {
  color: #d8d8dc;         /* 較柔和的標題白 */
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 600;       /* 從 700 降到 600 */
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #a1a1aa;
  transition: var(--th-transition);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #8a8a92;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   RWD 響應式斷點 — 三層精準控制 (Tablet 960px / Mobile 768px / Small 480px)
   ========================================================================== */

/* ── 平板橫向 (960px 以下) ── */
@media (max-width: 960px) {
  /* Hero */
  .hero-slide-title { font-size: 2.2rem; }
  .hero-slide-desc { font-size: 0.95rem; }

  /* Nav 隱藏桌面選單，顯示漢堡按鈕 */
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }

  /* 社群 icon 隱藏 border */
  .social-icons-group {
    border-left: none;
    padding-left: 8px;
  }

  /* Video Theater */
  .vt-main-card { grid-template-columns: 1fr; }
  .vt-img-wrap { height: 260px; }

  /* Before/After Slider */
  .ba-slider-container { height: 240px; }

  /* GRC 互動展示 — 固定px欄改自適應 */
  .grc-step-viewer { grid-template-columns: 1fr; gap: 16px; }
  .grc-viewer-img-wrap { height: 200px; }

  /* Grid 系列 */
  .workflow-steps-wrap { grid-template-columns: repeat(3, 1fr); }
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
}

/* ── 平板直向 / 大型手機 (768px 以下) ── */
@media (max-width: 768px) {
  /* Header 高度縮小 */
  .site-header { height: 64px; }
  .brand-logo-img { height: 36px; }
  .brand-company-en { display: none; } /* 英文全銜太長，手機隱藏 */
  .brand-company-name { font-size: 1rem; }

  /* 社群 icon 在 768 以下也隱藏，節省空間 */
  .social-icons-group { display: none; }

  /* Mobile menu 展開樣式 */
  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 16px 0;
    overflow-y: auto;
    border-top: 1px solid rgba(39, 39, 42, 0.1);
    animation: slideDown 0.25s ease-out;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-menu.is-open li { width: 100%; }
  .nav-menu.is-open .nav-link {
    display: block;
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(39, 39, 42, 0.06);
    color: var(--th-text-primary);
  }
  .nav-menu.is-open .nav-link:hover { background: rgba(39,39,42,0.04); }

  /* Dropdown 在手機展開顯示 */
  .nav-menu.is-open .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border-radius: 0;
    border: none;
    padding: 0;
    background: rgba(39,39,42,0.03);
  }
  .nav-menu.is-open .dropdown-item {
    padding: 12px 44px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(39,39,42,0.04);
  }

  /* Hero */
  .hero-slider-section { height: 460px; }
  .hero-slide-title { font-size: 1.75rem; letter-spacing: -0.2px; }
  .hero-slide-desc { font-size: 0.9rem; }
  .hero-slide-content { max-width: 100%; }
  .btn-hero-cta { padding: 12px 22px; font-size: 0.88rem; }

  /* Sections spacing */
  .philosophy-section,
  .workflow-section,
  .projects-section { padding: 56px 0; }
  .section-title { font-size: 1.65rem; }

  /* Grid layout */
  .philosophy-grid,
  .workflow-steps-wrap,
  .grid-2 { grid-template-columns: 1fr; gap: 20px; }

  /* Video theater 縮高 */
  .vt-img-wrap { height: 220px; }
  .vt-info-panel { padding: 24px 20px; }
  .vt-info-panel h3 { font-size: 1.2rem; }

  /* Before/After Slider 縮高 */
  .ba-slider-container { height: 210px; }

  /* Form */
  .form-box { padding: 28px 20px; }

  /* Footer */
  .footer-links { flex-direction: column; gap: 24px; }
  .site-footer { padding: 44px 0 24px; }
}

/* ── 手機 (480px 以下) ── */
@media (max-width: 480px) {
  /* 容器 padding 收窄 */
  .container { padding: 0 16px; }

  /* Header */
  .site-header { height: 58px; }
  .brand-logo-img { height: 32px; }
  .brand-company-name { font-size: 0.95rem; }

  .nav-menu.is-open { top: 58px; height: calc(100vh - 58px); }

  /* Hero 更小 */
  .hero-slider-section { height: 400px; }
  .hero-slide-title { font-size: 1.5rem; }
  .hero-slide-desc { display: none; } /* 超小屏不顯示副標，保持整潔 */
  .slider-arrow { width: 38px; height: 38px; font-size: 1.1rem; }
  .slider-arrow-prev { left: 12px; }
  .slider-arrow-next { right: 12px; }

  /* Hero tag */
  .hero-cat-tag { font-size: 0.7rem; padding: 4px 12px; margin-bottom: 12px; }

  /* Sections */
  .philosophy-section,
  .workflow-section,
  .projects-section { padding: 44px 0; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 1.45rem; }

  /* GRC tab 按鈕 */
  .grc-tab-btn { font-size: 0.78rem; padding: 6px 10px; }

  /* BA Slider 進一步縮小 */
  .ba-slider-container { height: 180px; border-radius: 10px; }
  .ba-label { font-size: 0.65rem; }
  .ba-handle-circle { width: 28px; height: 28px; font-size: 0.8rem; }

  /* VT Theater */
  .vt-img-wrap { height: 190px; }
  .vt-info-panel { padding: 18px 16px; }
  .vt-info-panel h3 { font-size: 1.05rem; }
  .vt-thumb { flex: 0 0 100px; }
  .vt-thumb img { height: 58px; }
  .vt-thumb span { font-size: 0.68rem; }

  /* Project cards */
  .project-card { padding: 20px 16px; }
  .project-card h3 { font-size: 1.05rem; }

  /* Philosophy cards */
  .ph-card { padding: 22px 18px; }

  /* Workflow */
  .wf-step-card { padding: 18px 14px; }

  /* Form */
  .form-box { padding: 22px 14px; border-radius: 12px; }
  .btn-submit { padding: 13px; }

  /* Footer */
  .footer-brand h4 { font-size: 1rem; }
  .footer-links { gap: 20px; }

  /* ESG certs 如果是 grid 也要換行 */
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
}

/* PPG viewer box: collapse on narrow screens */
@media (max-width: 720px) {
  .ppg-viewer-box {
    grid-template-columns: 1fr !important;
  }
  .ppg-viewer-box > div:first-child {
    height: 200px !important;
  }
}


/* ==========================================================================
   FAQ 常見問題區域 (極致大氣、舒適留白)
   ========================================================================== */
.faq-section {
  padding: 100px 0 !important;
  background: #fafafa;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 32px !important;
  max-width: 920px;
  margin: 0 auto;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--th-border-color);
  border-radius: 16px;
  padding: 36px 40px !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.03);
  transition: var(--th-transition);
}

.faq-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border-color: rgba(58, 58, 63, 0.2);
}

.faq-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--th-brand-dark);
  margin-bottom: 14px;
  line-height: 1.45;
}

.faq-card p {
  font-size: 0.96rem;
  color: var(--th-text-secondary);
  line-height: 1.8;
}

/* ==========================================================================
   最新消息與公告 (Latest News)
   ========================================================================== */
.news-section {
  padding: 80px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--th-border-color);
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  background: #fafafa;
  border: 1px solid var(--th-border-color);
  border-radius: 12px;
  transition: var(--th-transition);
  text-decoration: none;
}

.news-item:hover {
  background: #ffffff;
  border-color: rgba(58, 58, 63, 0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.news-date {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--th-text-secondary);
  width: 110px;
  flex-shrink: 0;
}

.news-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 20px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.news-tag.tag-cert {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.news-tag.tag-case {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.news-tag.tag-tech {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.news-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--th-brand-dark);
  flex-grow: 1;
  line-height: 1.5;
}

.news-arrow {
  font-size: 1.1rem;
  color: var(--th-text-muted);
  transition: var(--th-transition);
}

.news-item:hover .news-arrow {
  color: var(--th-brand-dark);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
  }
  .news-date {
    width: auto;
  }
  .news-tag {
    margin-right: 0;
  }
  .news-arrow {
    display: none;
  }
}

/* ==========================================================================
   全站右側懸浮快捷聯絡列 (Floating Action Bar)
   ========================================================================== */
.floating-contact-bar {
  position: fixed;
  right: 24px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #3a3a3f;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  position: relative;
}

.floating-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.floating-btn.btn-line {
  background: transparent;
}

.floating-btn.btn-line:hover {
  background: transparent;
}

.floating-btn.btn-tel {
  background: #3a3a3f;
}

.floating-btn.btn-tel:hover {
  background: #4a4a50;
}

.floating-btn.btn-map {
  background: #4285f4;
}

.floating-btn.btn-map:hover {
  background: #357ae8;
}

.floating-btn.btn-totop {
  background: #ffffff;
  color: #3a3a3f;
  border: 1px solid var(--th-border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.floating-btn.btn-totop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-btn.btn-totop:hover {
  background: #fafafa;
  color: #27272a;
}

/* 懸浮展開文字標籤 (僅電腦版) */
@media (min-width: 769px) {
  .floating-btn::before {
    content: attr(data-label);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #27272a;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .floating-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }
}

/* RWD 手機版置底排版 */
@media (max-width: 768px) {
  .floating-contact-bar {
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--th-border-color);
    padding: 10px 16px;
    gap: 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
  }

  .floating-btn {
    width: 44px;
    height: 44px;
    box-shadow: none;
  }

  .floating-btn.btn-totop {
    display: none !important; /* 手機版不放 ToTop 佔底 */
  }
}

/* ==========================================================================
   手機版優化與窄版相容樣式 (Mobile RWD Spacing Helper)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(58,58,63,0.08);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 50px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
}

.grid-3-to-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 服務項目大卡片 class */
.service-card-rwd {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  margin-bottom: 70px;
  scroll-margin-top: 100px;
}

/* 服務項目內嵌子卡片 class */
.service-subcard-rwd {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(58,58,63,0.08);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

@media (max-width: 900px) {
  .grid-3-to-1 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
    padding: 20px 16px;
  }
  .service-card-rwd {
    padding: 20px 16px !important;
    margin-bottom: 75px !important; /* ← 拉寬區塊上下間距，保留舒適呼吸空間 */
  }
  .service-subcard-rwd {
    padding: 16px 12px !important;
    margin-top: 16px !important;
  }
  /* BEFORE/AFTER 翻新滑桿在手機版拉高，以展現更佳對比效果 */
  .ba-slider-container {
    height: 290px !important;
  }
  /* 手機版隱藏左右箭頭，防止擋到文字 (手機用戶滑動即可切換) */
  .slider-arrow {
    display: none !important;
  }
  /* 避免長標題在手機版掉字 */
  .section-title {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  /* 縮小手機端標題，防斷行 */
  .section-title {
    font-size: 1.15rem !important;
  }
}
/* ==========================================================================
   高級滾動 3D 浮現動畫 (Scroll Reveal)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0px);
}

/* 交錯延遲動畫 (Staggered Animation Delays) */
.stagger-reveal > .reveal-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-reveal > .reveal-on-scroll:nth-child(2) { transition-delay: 100ms; }
.stagger-reveal > .reveal-on-scroll:nth-child(3) { transition-delay: 200ms; }
.stagger-reveal > .reveal-on-scroll:nth-child(4) { transition-delay: 300ms; }
.stagger-reveal > .reveal-on-scroll:nth-child(5) { transition-delay: 400ms; }
.stagger-reveal > .reveal-on-scroll:nth-child(6) { transition-delay: 500ms; }

/* ==========================================================================
   Hero 大圖：奢華淡入動畫 (Page Load Hero Reveal)
   ========================================================================== */
@keyframes heroFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 背景圖縮放淡入（Ken Burns 效果）*/
@keyframes heroZoomIn {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.hero-slide.active .hero-bg-inner {
  animation: heroZoomIn 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 文字逐層錯開淡入 */
.hero-slide.active .hero-cat-tag {
  animation: heroFadeSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-slide.active .hero-slide-title {
  animation: heroFadeSlideUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.hero-slide.active .hero-slide-desc {
  animation: heroFadeSlideUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}
.hero-slide.active .btn-hero-cta {
  animation: heroFadeSlideUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

/* 視差背景圖層 */
.hero-bg-inner {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
}

/* ==========================================================================
   Cookie 隱私權告示條 (Professional Corporate Cookie Banner)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999999;
  max-width: 440px;
  background: rgba(30, 30, 34, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e4e4e7;
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  font-size: 0.84rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cookie-banner-btn {
  font-weight: 700;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}
.cookie-banner-btn.btn-all {
  background: #ffffff;
  color: #18181b;
}
.cookie-banner-btn.btn-all:hover {
  background: #e4e4e7;
}
.cookie-banner-btn.btn-necessary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.cookie-banner-btn.btn-necessary:hover {
  background: rgba(255, 255, 255, 0.22);
}
