/* Inthink Creative */
:root {
  --brand-dark: #132A2F;
  --brand-darker: #0D1F23;
  --brand-cyan: #2DD4BF;
  --brand-light: #F0FDFA;
  --brand-talkiiin: #FF3366;
  --brand-talkiiin-dark: #121212;
  --brand-talkiiin-darker: #050505;
  --brand-doiiin: #42B8AF;
  --brand-doiiin-light: #E0F2F1;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --bs-body-font-family: 'Noto Sans TC', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans TC', sans-serif; background-color: var(--slate-50); color: #0f172a; }
/* 全局圖片不溢出、保持比例（不影響已有 object-fit 的區塊） */
img { max-width: 100%; height: auto; display: block; }
.font-display { font-family: 'Michroma', sans-serif; }
.font-logo { font-family: 'Bruno Ace', sans-serif; }
::selection { background: var(--brand-cyan); color: var(--brand-darker); }

/* animate.css 捲動進場：未觸發前隱藏，觸發後由 animate.css keyframes 控制 opacity */
.animate-on-scroll { opacity: 0; }

/* Navbar：預設白字+白 logo，捲動後白底+黑字+黑 logo */
.navbar-brand img { height: 1.75rem; filter: brightness(0) invert(1); transition: filter 0.3s; }
@media (min-width: 768px) { .navbar-brand img { height: 2rem; } }
.navbar .nav-link { color: rgba(255,255,255,0.9) !important; transition: color 0.3s; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: #fff !important; }
.nav-link .nav-prefix { font-family: 'Bruno Ace', sans-serif; }
.nav-link.active .nav-prefix { color: #fff !important; }
.navbar-scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.navbar-scrolled .nav-link { color: #1e293b !important; }
.navbar-scrolled .nav-link .nav-prefix { color: #1e293b !important; }
.navbar-scrolled .nav-link:hover, .navbar-scrolled .nav-link:focus { color: var(--slate-900) !important; }
.navbar-scrolled .nav-link:hover .nav-prefix,
.navbar-scrolled .nav-link:focus .nav-prefix { color: var(--slate-900) !important; }
.navbar-scrolled .navbar-brand img { filter: brightness(0); }
.navbar-scrolled .navbar-toggler-icon { filter: brightness(0); }

/* Navbar 下拉選單（Introduce）：白底、黑字、好讀好點 */
.navbar .dropdown-menu {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  padding: 0.5rem 0;
  min-width: 12rem;
  margin-top: 0.5rem;
}
.navbar .dropdown-item {
  color: #0f172a;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  padding-left: 1.25rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
  border-left: 3px solid transparent;
  margin: 0 0.25rem;
  border-radius: 2px;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: var(--slate-100);
  color: var(--slate-900);
  border-left-color: var(--slate-300);
}
.navbar .dropdown-item.active {
  background: rgba(45, 212, 191, 0.1);
  color: var(--brand-darker);
  border-left-color: var(--brand-cyan);
}
.navbar .dropdown-item:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

/* 導覽展開時：避免內容被擋住、可選鎖住背景捲動 */
body.nav-expanded { overflow: hidden; }
body.nav-expanded .navbar { padding-bottom: env(safe-area-inset-bottom); }

/* 文章頁：選單深色主題，文字與 logo 對應（淺色） */
body.page-insight-article .navbar {
  background: var(--brand-darker) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.page-insight-article .navbar .nav-link { color: rgba(255,255,255,0.9) !important; }
body.page-insight-article .navbar .nav-link:hover,
body.page-insight-article .navbar .nav-link:focus { color: #fff !important; }
body.page-insight-article .navbar .navbar-brand img { filter: brightness(0) invert(1); }
body.page-insight-article .navbar .navbar-toggler-icon { filter: brightness(0) invert(1); }

/* Hero */
.hero-bg-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video-overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.5); pointer-events: none; }
.hero-section.hero-section-video { background-color: #0f172a; }
.hero-section { background-color: var(--slate-100); min-height: 100vh; position: relative; }

/* Talkiiin / Doiiin 品牌頁頂部 logo 區：與上方距離 */
.brand-hero { padding-top: 10em; }
/* Introduce 子頁標題區圖片背景（Talkiiin / Doiiin）— section 不設底色，避免蓋住圖片 */
.brand-hero--with-bg { background: transparent; }
.brand-hero-bg-wrap {
  position: absolute;
  inset: 0; /* 填滿 section，不依賴 Bootstrap（Bootstrap 無 inset-0） */
  z-index: 0;
  background-color: var(--brand-darker); /* 圖片未載入時的 fallback */
}
.brand-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* 不壓淡，讓背景圖清楚顯示 */
}
.brand-hero-bg-overlay { position: absolute; inset: 0; pointer-events: none; }
.brand-hero-bg-overlay--talkiiin { background: linear-gradient(to bottom right, rgba(5,5,5,0.65) 0%, rgba(5,5,5,0.5) 50%, rgba(5,5,5,0.4) 100%); }
.brand-hero-bg-overlay--doiiin { background: linear-gradient(to bottom right, rgba(13,31,35,0.65) 0%, rgba(13,31,35,0.5) 50%, rgba(13,31,35,0.4) 100%); }
/* 手機模式：品牌 hero LOGO 置中 */
@media (max-width: 767px) {
  .brand-hero .brand-hero-content { display: flex; justify-content: center; align-items: center; }
  .brand-hero .brand-hero-logo { margin-left: auto; margin-right: auto; display: block; }
}
.hero-banner-title { font-size: 2.25rem; line-height: 1.2; font-weight: 900; }
@media (min-width: 768px) { .hero-banner-title { font-size: 3rem; } }
@media (min-width: 992px) { .hero-banner-title { font-size: 3.75rem; } }

/* Subcards（共用 + 差異）*/
.subcard-talkiiin, .subcard-doiiin {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  min-height: 320px;
  overflow: hidden;
  transition: transform 0.5s, border-color 0.5s, box-shadow 0.3s;
}
.subcard-talkiiin { background-color: var(--brand-talkiiin-darker); }
.subcard-doiiin { background-color: var(--brand-dark); }
.subcard-talkiiin:hover { transform: translateY(-4px); border-color: rgba(255,51,102,0.5); box-shadow: 0 1rem 3rem rgba(0,0,0,0.2); }
.subcard-doiiin:hover { transform: translateY(-4px); border-color: rgba(66,184,175,0.5); box-shadow: 0 1rem 3rem rgba(0,0,0,0.2); }
.subcard-talkiiin .subcard-img-wrap, .subcard-doiiin .subcard-img-wrap { position: absolute; inset: 0; z-index: 0; }
.subcard-talkiiin .subcard-img-wrap img, .subcard-doiiin .subcard-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.3; filter: grayscale(1); mix-blend-mode: overlay; transition: transform 0.7s;
}
.subcard-talkiiin:hover .subcard-img-wrap img, .subcard-doiiin:hover .subcard-img-wrap img { transform: scale(1.1); }
.subcard-talkiiin .subcard-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom right, var(--brand-talkiiin-darker), rgba(5,5,5,0.8), transparent); z-index: 1; }
.subcard-doiiin .subcard-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom right, var(--brand-darker), rgba(13,31,35,0.8), transparent); z-index: 1; }
.subcard-content { position: absolute; inset: 0; z-index: 2; padding: 1.5rem; }
@media (min-width: 768px) { .subcard-content { padding: 3rem; } }
.subcard-logo { position: absolute; top: 1.5rem; left: 1.5rem; height: 2.75rem; width: auto; object-fit: contain; }
@media (min-width: 768px) { .subcard-logo { top: 3rem; left: 3rem; } }
.subcard-logo-doiiin { height: 2.5rem; }
.subcard-desc { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; max-width: 18em; }
@media (min-width: 768px) { .subcard-desc { bottom: 3rem; left: 3rem; right: auto; } }
.subcard-explore { position: absolute; bottom: 1.5rem; right: 1.5rem; }
@media (min-width: 768px) { .subcard-explore { bottom: 3rem; right: 3rem; } }

/* Marquee 區 */
.section-marquee {
  padding: 6rem 0;
  background-color: var(--slate-50);
  overflow: hidden;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.marquee-mask-left, .marquee-mask-right {
  position: absolute; top: 0; height: 100%; width: 8rem; z-index: 10; pointer-events: none;
}
.marquee-mask-left { left: 0; background: linear-gradient(to right, var(--slate-50), transparent); }
.marquee-mask-right { right: 0; background: linear-gradient(to left, var(--slate-50), transparent); }

.marquee-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2), transparent);
  opacity: 0.9; transition: opacity 0.3s;
}
.marquee-card-inner {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
}
.marquee-card-inner > img, .marquee-card-inner > .marquee-card-overlay, .marquee-card-inner > .marquee-card-caption { position: absolute; }
.marquee-card-inner > img { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.marquee-card-inner > .marquee-card-overlay { inset: 0; }
.marquee-card-caption { bottom: 0; left: 0; right: 0; top: auto; z-index: 2; text-align: left; }
.marquee-card .marquee-card-inner:hover img { transform: scale(1.05); }
.marquee-card:hover .marquee-card-inner h3 { color: var(--brand-cyan) !important; }
.marquee-card { width: 450px; border-radius: 2px; flex-shrink: 0; }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 80s linear infinite; }
.animate-marquee:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .animate-marquee { animation: none; }
  .cta-orb { animation: none; opacity: 0.4; }
}

/* 按鈕、區塊、卡片 */
.btn-brand {
  background-color: var(--brand-cyan); color: var(--brand-darker); border: none;
  font-weight: 700; letter-spacing: 0.05em; border-radius: 2px;
  transition: background-color 0.3s, color 0.3s;
}
.btn-brand:hover { background-color: #1e293b; color: #fff; }
.btn-brand:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }

.section-bg-white { background-color: #fff; }
.section-bg-slate-50 { background-color: var(--slate-50); }
.section-bg-slate-100 { background-color: var(--slate-100); }
.section-py { padding: 6rem 0; }

/* CTA 區：浮動色塊動畫背景（參考 https://codepen.io/evalee/pen/YzxLXEd ）*/
.cta-section { background: #0f172a; }
.cta-bg-wrap {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.cta-orb {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.6;
  animation: cta-orb-float 18s ease-in-out infinite;
}
.cta-orb--1 {
  width: 90vmin; height: 90vmin; left: -25%; top: -30%;
  background: var(--brand-cyan);
  animation-duration: 20s; animation-delay: 0s;
}
.cta-orb--2 {
  width: 70vmin; height: 70vmin; right: -20%; top: 5%;
  background: #22c9b3;
  animation-duration: 22s; animation-delay: -4s;
}
.cta-orb--3 {
  width: 75vmin; height: 75vmin; left: 10%; bottom: -25%;
  background: #5ee0ce;
  animation-duration: 19s; animation-delay: -8s;
}
.cta-orb--4 {
  width: 55vmin; height: 55vmin; right: 15%; bottom: 10%;
  background: #1eb8a3;
  animation-duration: 24s; animation-delay: -2s;
}
.cta-orb--5 {
  width: 65vmin; height: 65vmin; left: 50%; top: 50%;
  background: rgba(45, 212, 191, 0.5);
  animation: cta-orb-float-center 21s ease-in-out -6s infinite;
}
@keyframes cta-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(10%, -15%) scale(1.1); }
  50% { transform: translate(-10%, 10%) scale(0.95); }
  75% { transform: translate(-5%, -5%) scale(1.05); }
}
@keyframes cta-orb-float-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  25% { transform: translate(calc(-50% + 5%), calc(-50% - 8%)) scale(1.1); }
  50% { transform: translate(calc(-50% - 8%), calc(-50% + 5%)) scale(0.95); }
  75% { transform: translate(calc(-50% - 3%), calc(-50% - 3%)) scale(1.05); }
}
.cta-section .cta-title { color: #fff; }
.cta-section .cta-lead { color: rgba(255,255,255,0.85); }
.cta-content .cta-title { font-size: 2rem; font-weight: 900; white-space: nowrap; }
.cta-content .cta-lead { font-size: 0.9375rem; font-weight: 600; opacity: 0.95; white-space: nowrap; margin-bottom: 0; }
.cta-content .cta-lead-spacing { margin-bottom: 0 !important; }
.cta-section .btn-cta { border: none; font-weight: 700; margin-top: 3rem; background-color: var(--brand-cyan); color: #0f172a; }
.cta-section .btn-cta:hover { background-color: #5ee0ce; color: #0f172a; }
@media (min-width: 768px) {
  .cta-content .cta-title { font-size: 2.75rem; }
  .cta-content .cta-lead { font-size: 0.9375rem; }
}

/* CTA 區－影片背景（關於我們等內頁） */
.cta-section-video { background-color: #0f172a; }
.cta-section-video .hero-bg-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cta-section-video .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-section-video .hero-video-overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.5); pointer-events: none; }
.cta-section-video .cta-video-title { font-weight: 700; }

/* Talkiiin 五大核心優勢－影片背景（iOS 相容：autoplay + muted + playsinline） */
.talkiiin-strengths-video { background-color: #050505; }
.talkiiin-strengths-video .hero-bg-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.talkiiin-strengths-video .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.talkiiin-strengths-video .hero-video-overlay.talkiiin-strengths-overlay { background: rgba(5,5,5,0.75); pointer-events: none; }
.talkiiin-strengths-video .card-hover:hover { border-color: rgba(255, 51, 102, 0.6) !important; }
/* 五大核心優勢：icon 置於卡片背景、淡色 */
.talkiiin-strength-card-icon {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  font-size: 4.5rem;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
}
.talkiiin-strength-card .position-relative { z-index: 1; }
/* 五大核心優勢卡片字級與影像實績一致 */
.talkiiin-strength-card-partner { font-size: 0.7rem; font-weight: 600; }
.talkiiin-strength-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.talkiiin-strength-card-desc { font-size: 0.8125rem; line-height: 1.55; }

/* Doiiin 共創模式－影片背景（與首頁同一支影片，疊加層讓區塊更明顯） */
.doiiin-methodology-video { background-color: var(--brand-doiiin-light); }
.doiiin-methodology-video .hero-bg-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.doiiin-methodology-video .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doiiin-methodology-video .hero-video-overlay.doiiin-methodology-overlay {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(224, 242, 241, 0.9) 50%, rgba(240, 253, 250, 0.85) 100%);
  pointer-events: none;
}
.doiiin-methodology-video .doiiin-methodology-title { color: var(--slate-900); }
.doiiin-methodology-video .font-display.text-brand-doiiin { color: var(--brand-doiiin) !important; }

/* Doiiin 共創模式－三張卡片（半透明 + 玻璃質感，非全白） */
.doiiin-methodology-video .doiiin-methodology-card {
  background: linear-gradient(160deg, #ffffff 0%, #f0fdfa 100%);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-top: 3px solid var(--brand-doiiin);
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(13, 31, 35, 0.12);
  color: var(--slate-800);
}
.doiiin-methodology-video .doiiin-methodology-card:hover {
  background: linear-gradient(160deg, #ffffff 0%, #e0f2f1 100%);
  box-shadow: 0 12px 40px rgba(13, 31, 35, 0.15);
  border-color: rgba(45, 212, 191, 0.4);
}
.doiiin-methodology-video .doiiin-methodology-card-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(66, 184, 175, 0.18);
  border: 1px solid rgba(66, 184, 175, 0.4);
}

/* Doiiin 共創模式－卡片字級與閱讀層級 */
.doiiin-methodology-video .doiiin-methodology-card-title {
  font-family: 'Michroma', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
}
.doiiin-methodology-video .doiiin-methodology-card-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-doiiin);
  margin-bottom: 0.875rem;
}
.doiiin-methodology-video .doiiin-methodology-card-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin-bottom: 1rem;
}
.doiiin-methodology-video .doiiin-methodology-card-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--slate-600);
}
.doiiin-methodology-video .doiiin-methodology-card-list li {
  margin-bottom: 0.35rem;
  padding-left: 0;
}
.doiiin-methodology-video .doiiin-methodology-card-list li:last-child { margin-bottom: 0; }
.doiiin-methodology-video .doiiin-methodology-card-list .bi { font-size: 0.75rem; }

/* Talkiiin 引言區－動畫背景（品牌色漸層 + 移動光暈 + 浮動光球） */
.talkiiin-quote-section { background: var(--brand-talkiiin); }
.talkiiin-quote-bg.talkiiin-quote-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(-45deg, #FF3366, #e62e5c, #ff6b8a, #cc2952, #FF3366);
  background-size: 400% 400%;
  animation: talkiiin-quote-gradient 14s ease infinite;
}
@keyframes talkiiin-quote-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 移動光暈：橫向掃過的光帶 */
.talkiiin-quote-halo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.talkiiin-quote-halo-sweep {
  width: 120%;
  height: 100%;
  background: radial-gradient(
    ellipse 80% 100% at 50% 50%,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.12) 35%,
    transparent 70%
  );
  animation: talkiiin-halo-sweep 8s ease-in-out infinite;
}
@keyframes talkiiin-halo-sweep {
  0% { transform: translateX(-30%); opacity: 0.8; }
  50% { transform: translateX(10%); opacity: 1; }
  100% { transform: translateX(-30%); opacity: 0.8; }
}

/* 浮動光球（帶光暈 box-shadow） */
.talkiiin-quote-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  animation: talkiiin-quote-orb 20s ease-in-out infinite;
  box-shadow: 0 0 100px 50px rgba(255, 255, 255, 0.2);
}
.talkiiin-quote-orb-1 {
  width:  min(45vw, 380px);
  height: min(45vw, 380px);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), rgba(255,255,255,0.15));
  top: -15%;
  left: -10%;
  animation-delay: 0s;
  opacity: 0.9;
}
.talkiiin-quote-orb-2 {
  width:  min(40vw, 340px);
  height: min(40vw, 340px);
  background: radial-gradient(circle at 70% 70%, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  bottom: -20%;
  right: -12%;
  animation-delay: -5s;
  opacity: 0.85;
  box-shadow: 0 0 120px 60px rgba(255, 255, 255, 0.15);
}
.talkiiin-quote-orb-3 {
  width:  min(28vw, 220px);
  height: min(28vw, 220px);
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.35), transparent 70%);
  top: 50%;
  left: 50%;
  animation: talkiiin-quote-orb-center 20s ease-in-out infinite;
  animation-delay: -10s;
  box-shadow: 0 0 80px 40px rgba(255, 255, 255, 0.18);
}
.talkiiin-quote-orb-4 {
  width:  min(22vw, 180px);
  height: min(22vw, 180px);
  background: radial-gradient(circle at 40% 60%, rgba(255,255,255,0.3), transparent 65%);
  top: 20%;
  right: 15%;
  animation: talkiiin-quote-orb-float 16s ease-in-out infinite;
  animation-delay: -3s;
  opacity: 0.8;
  box-shadow: 0 0 60px 35px rgba(255, 255, 255, 0.12);
}
@keyframes talkiiin-quote-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(25px, -30px) scale(1.08); }
  50% { transform: translate(-15px, 15px) scale(0.95); }
  75% { transform: translate(-25px, -10px) scale(1.03); }
}
@keyframes talkiiin-quote-orb-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  25% { transform: translate(-50%, -50%) translate(25px, -30px) scale(1.08); }
  50% { transform: translate(-50%, -50%) translate(-15px, 15px) scale(0.95); }
  75% { transform: translate(-50%, -50%) translate(-25px, -10px) scale(1.03); }
}
@keyframes talkiiin-quote-orb-float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-20px, 25px); }
  66% { transform: translate(15px, -15px); }
}

.card-hover { transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; border-radius: 2px; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 1rem 3rem rgba(0,0,0,0.15); border-color: rgba(45,212,191,0.5) !important; }
a[data-case-id]:focus-visible,
a.card-hover:focus-visible,
.subcard-talkiiin:focus-visible,
.subcard-doiiin:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }

/* Case Modal - 現代外觀、大尺寸 */
.modal-case .modal-dialog.modal-case-dialog {
  max-width: min(54rem, 94vw);
  max-height: 90vh;
  margin: 2rem auto;
}
.modal-case .modal-content.modal-case-content {
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.05);
}
.modal-case .modal-case-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: rgba(255,255,255,0.95) !important;
  opacity: 1;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 1.25rem;
}
.modal-case .modal-case-close:hover { background: #fff !important; transform: scale(1.05); color: #000; }
.modal-case .modal-case-close .bi { color: inherit; }
.modal-case .modal-case-body {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-case .modal-case-body .modal-case-text { order: 1; }
.modal-case .modal-case-body .modal-case-gallery {
  order: 2;
  flex: 0 0 100%;
  max-height: 18rem;
  padding: 1.5rem 1.5rem 0;
  background: var(--slate-50);
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 0.75rem;
  scroll-snap-type: x mandatory;
}
.modal-case .modal-case-body .modal-case-gallery img {
  flex: 0 0 auto;
  width: auto;
  max-height: 14rem;
  object-fit: cover;
  border-radius: 0;
  scroll-snap-align: start;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.modal-case .modal-case-body .modal-case-text {
  flex: 1 1 100%;
  padding: 2rem 2rem 2.5rem;
  min-width: 0;
}
.modal-case .modal-case-body .modal-case-text .modal-case-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-darker);
  background: rgba(45,212,191,0.2);
  border-radius: 0;
  margin-bottom: 1rem;
}
.modal-case .modal-case-body .modal-case-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}
.modal-case .modal-case-body .modal-case-text .modal-case-subtitle {
  font-size: 1rem;
  color: var(--brand-cyan);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.modal-case .modal-case-body .modal-case-text .modal-case-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--brand-cyan);
}
.modal-case .modal-case-body .modal-case-text .modal-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.modal-case .modal-case-body .modal-case-text .btn-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.modal-case .modal-case-body .modal-case-text .btn-modal-primary {
  background: var(--brand-cyan);
  color: var(--brand-darker);
  border: none;
}
.modal-case .modal-case-body .modal-case-text .btn-modal-primary:hover { background: #22b8a8; color: var(--brand-darker); }
.modal-case .modal-case-body .modal-case-text .btn-modal-outline {
  background: transparent;
  color: var(--slate-700);
  border: 2px solid var(--slate-300);
}
.modal-case .modal-case-body .modal-case-text .btn-modal-outline:hover { background: var(--slate-100); border-color: var(--slate-400); color: var(--slate-900); }
@media (min-width: 768px) {
  .modal-case .modal-dialog.modal-case-dialog { max-width: min(80rem, 94vw); }
  .modal-case .modal-case-body { flex-wrap: nowrap; max-height: 85vh; }
  .modal-case .modal-case-body .modal-case-text { flex: 1; padding: 2.5rem 2rem 2.5rem 2.5rem; }
  .modal-case .modal-case-body .modal-case-text h2 { font-size: 2.25rem; }
  .modal-case .modal-case-body .modal-case-gallery {
    flex: 0 0 50%;
    max-height: none;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem;
    scroll-snap-type: none;
  }
  .modal-case .modal-case-body .modal-case-gallery img {
    max-height: none;
    width: 100%;
    margin-bottom: 0.75rem;
  }
}

.page-hero { padding: 8rem 0 6rem; position: relative; overflow: hidden; background-color: var(--slate-100); }
/* Page Hero 圖片背景 + 漸層（用於關於我們等內頁） */
.page-hero-with-bg { background-color: var(--brand-darker); }
.page-hero-bg-wrap { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.page-hero-bg-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom right, rgba(13,31,35,0.75) 0%, rgba(13,31,35,0.55) 50%, rgba(13,31,35,0.45) 100%); pointer-events: none; }
.page-hero .bg-blur { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; pointer-events: none; }
.hero-title .prefix { font-family: 'Bruno Ace', sans-serif; color: var(--brand-cyan); }
/* 標題區塊敘述文字：字級與閱讀性 */
.page-hero .fs-5,
.page-hero .page-hero-desc {
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  max-width: 42rem;
}
.brand-hero .lead,
.cta-section-video .lead { font-size: 0.9375rem; }
.subcard-desc { font-size: 0.9375rem !important; }
.border-brand-left { border-left: 4px solid var(--brand-cyan); }

/* 聯絡我們頁：左右分欄（資訊 + 表單） */
.contact-section { background: var(--slate-50); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}
@media (min-width: 992px) {
  .contact-layout { grid-template-columns: 380px 1fr; min-height: 560px; }
}
.contact-info-panel {
  background: linear-gradient(165deg, var(--brand-darker) 0%, var(--brand-dark) 100%);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: stretch;
}
.contact-info-panel--bg { background: var(--brand-darker); }
.contact-info-panel-bg { z-index: 0; pointer-events: none; }
.contact-info-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.contact-info-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 31, 35, 0.55) 0%, rgba(19, 42, 47, 0.45) 50%, rgba(13, 31, 35, 0.6) 100%);
}
@media (min-width: 992px) {
  .contact-info-panel { padding: 3rem 2.5rem; }
}
.contact-info-inner { display: flex; flex-direction: column; justify-content: center; width: 100%; }
.contact-info-eyebrow { margin-bottom: 0.5rem; }
.contact-info-title { font-size: 1.75rem; line-height: 1.3; }
@media (min-width: 992px) {
  .contact-info-title { font-size: 2rem; }
}
.contact-info-desc { font-size: 0.9375rem; line-height: 1.65; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 191, 0.15);
  color: var(--brand-cyan);
  border-radius: 8px;
  font-size: 1.1rem;
}
.contact-info-label { display: block; margin-bottom: 0.25rem; letter-spacing: 0.05em; }
.contact-info-value { font-size: 0.9375rem; }
.link-contact { transition: color 0.2s, opacity 0.2s; }
.link-contact:hover { color: var(--brand-cyan) !important; opacity: 1; }

.contact-form-panel { background: #fff; display: flex; align-items: stretch; }
.contact-form-card {
  width: 100%;
  padding: 2.5rem 2rem;
}
@media (min-width: 992px) {
  .contact-form-card { padding: 3rem 2.5rem 3rem 3rem; }
}
.contact-form-header { padding-bottom: 0.5rem; }
.contact-form-title { font-size: 1.35rem; color: var(--slate-900); }
.contact-form-subtitle { font-size: 0.875rem; }
.contact-form-fields .contact-form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.contact-form-input.form-control,
.contact-form-input.form-select {
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.contact-form-input.form-control:focus,
.contact-form-input.form-select:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
  outline: 0;
}
.contact-form-input.form-control::placeholder { color: var(--slate-400); }
.contact-form-input.form-select { cursor: pointer; appearance: auto; }
.contact-form-submit {
  border-radius: 8px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background-color 0.25s, color 0.25s, transform 0.2s;
}
.contact-form-submit:hover { transform: translateY(-1px); }

/* 服務頁－三欄並排點擊展開（參考 CodePen rLGvxr） */
.services-expand-section { padding-top: 3rem; padding-bottom: 4rem; }
.services-expand-section .cont {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}
.services-expand-section .cont__inner {
  position: relative;
  height: 100%;
  min-height: 560px;
  display: flex;
}
.services-expand-section .el {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  cursor: pointer;
  transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  overflow: hidden;
}
.services-expand-section .el:not(.s--active):not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.services-expand-section .cont.s--el-active .el:not(.s--active) {
  flex: 0 0 0;
  opacity: 0;
  pointer-events: none;
}
.services-expand-section .el.s--active {
  flex: 1 1 100%;
  cursor: default;
}
.services-expand-section .el__overflow {
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 560px;
}
.services-expand-section .el__inner {
  position: relative;
  height: 100%;
  min-height: 560px;
  transition: transform 0.5s ease;
}
.services-expand-section .cont.s--inactive .el__inner {
  transform: translate3d(0, 20px, 0);
  opacity: 0;
}
.services-expand-section .cont:not(.s--inactive) .el__inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.services-expand-section .el:nth-child(1) .el__inner { transition-delay: 0.05s; }
.services-expand-section .el:nth-child(2) .el__inner { transition-delay: 0.1s; }
.services-expand-section .el:nth-child(3) .el__inner { transition-delay: 0.15s; }
.services-expand-section .el__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease;
}
.services-expand-section .el__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.35s ease;
}
.services-expand-section .el__bg--inthink {
  background-image: url("../images/cta-bg.jpg");
}
.services-expand-section .el__bg--inthink::after { background: rgba(0, 0, 0, 0.55); }
.services-expand-section .el--inthink:hover:not(.s--active) .el__bg::after { background: rgba(45, 212, 191, 0.5); }
.services-expand-section .el__bg--talkiiin {
  background-image: url("../images/subcards/talkiiin-bg.jpg");
}
.services-expand-section .el__bg--talkiiin::after { background: rgba(0, 0, 0, 0.55); }
.services-expand-section .el--talkiiin:hover:not(.s--active) .el__bg::after { background: rgba(255, 51, 102, 0.5); }
.services-expand-section .el__bg--doiiin {
  background-image: url("../images/subcards/doiiin-bg.jpg");
}
.services-expand-section .el__bg--doiiin::after { background: rgba(0, 0, 0, 0.55); }
.services-expand-section .el--doiiin:hover:not(.s--active) .el__bg::after { background: rgba(66, 184, 175, 0.5); }
.services-expand-section .el__preview-cont {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.services-expand-section .cont.s--el-active .el.s--active .el__preview-cont {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.services-expand-section .el__logo {
  width: 200px;
  height: auto;
  max-height: 176px;
  object-fit: contain;
  margin: 0;
  filter: brightness(0) invert(1);
}
.services-expand-section .el__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 2rem 2.5rem;
  overflow-y: hidden;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease 0.2s;
  background: var(--slate-50);
  color: var(--slate-900);
  border-left: 1px solid var(--slate-200);
  border-right: 1px solid var(--slate-200);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.services-expand-section .el.s--active .el__content {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}
.services-expand-section .el__close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--slate-200);
  color: var(--slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease;
}
.services-expand-section .el.s--active .el__close-btn {
  opacity: 1;
}
.services-expand-section .el__close-btn:hover {
  background: var(--slate-300);
  color: var(--slate-900);
}
.services-expand-section .el__content-inner {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 0.5rem;
}
.services-expand-section .services-card-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left top;
  filter: brightness(0);
  margin-bottom: 0.5rem;
}
.services-expand-section .services-card-tagline {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.services-expand-section .services-card-desc {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.services-expand-section .services-card-items {
  margin-bottom: 1.5rem;
}
.services-expand-section .services-card-item {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 1.15rem;
  background: #fff;
  border-radius: 0;
  border: 1px solid var(--slate-200);
  border-left-width: 4px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  height: 100%;
  overflow: hidden;
}
.services-expand-section .services-card-item__bg-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  opacity: 0.06;
  pointer-events: none;
  line-height: 1;
}
.services-expand-section .services-card-item--inthink .services-card-item__bg-icon { color: var(--brand-cyan); }
.services-expand-section .services-card-item--talkiiin .services-card-item__bg-icon { color: var(--brand-talkiiin); }
.services-expand-section .services-card-item--doiiin .services-card-item__bg-icon { color: var(--brand-doiiin); }
.services-expand-section .services-card-item:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: var(--slate-300);
}
.services-expand-section .services-card-item--inthink { border-left-color: var(--brand-cyan); }
.services-expand-section .services-card-item--talkiiin { border-left-color: var(--brand-talkiiin); }
.services-expand-section .services-card-item--doiiin { border-left-color: var(--brand-doiiin); }
.services-expand-section .services-card-item h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: var(--slate-900);
  letter-spacing: 0.02em;
}
.services-expand-section .services-card-item--inthink h4 { color: var(--slate-900); }
.services-expand-section .services-card-item--talkiiin h4 { color: var(--slate-900); }
.services-expand-section .services-card-item--doiiin h4 { color: var(--slate-900); }
.services-expand-section .services-card-item p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate-600);
  margin-bottom: 0;
  letter-spacing: 0.01em;
}
.services-expand-section .services-card-link {
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  transition: opacity 0.2s;
}
.services-expand-section .services-card-link:hover { opacity: 0.85; }
.services-expand-section .services-card-link:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }
/* 服務頁展開區－手機版優化：直接顯示三品牌完整內容，垂直捲動閱讀 */
@media (max-width: 767px) {
  .services-expand-section { padding-top: 1.5rem; padding-bottom: 2rem; }
  .services-expand-section .cont { min-height: 0; overflow: visible; }
  .services-expand-section .cont__inner {
    flex-direction: column;
    min-height: 0;
    gap: 1.5rem;
  }
  /* 每個品牌為一張卡片，不摺疊、不隱藏 */
  .services-expand-section .el {
    min-height: 0;
    flex: 0 0 auto;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .services-expand-section .el:last-child { border-bottom: none; }
  .services-expand-section .cont.s--el-active .el:not(.s--active) {
    opacity: 1;
    flex: 0 0 auto;
    overflow: visible;
    pointer-events: auto;
  }
  .services-expand-section .el.s--active {
    flex: 0 0 auto;
    min-height: 0;
  }
  .services-expand-section .el__overflow { min-height: 0; }
  .services-expand-section .el__inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .services-expand-section .el.s--active .el__overflow,
  .services-expand-section .el.s--active .el__inner {
    min-height: 0;
    height: auto;
  }
  /* 手機：卡片頭部 = 品牌背景圖 + logo（品牌對應圖），下方內容區加設計感 */
  .services-expand-section .el__bg {
    height: 160px;
    bottom: auto;
  }
  .services-expand-section .el__preview-cont {
    flex: 0 0 auto;
    min-height: 160px;
    padding: 1.25rem 1rem;
    opacity: 1;
    transform: none;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  /* 預覽區底部分隔線（品牌色） */
  .services-expand-section .el--inthink .el__preview-cont::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 3px;
    background: var(--brand-cyan);
  }
  .services-expand-section .el--talkiiin .el__preview-cont::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 3px;
    background: var(--brand-talkiiin);
  }
  .services-expand-section .el--doiiin .el__preview-cont::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 3px;
    background: var(--brand-doiiin);
  }
  .services-expand-section .cont.s--el-active .el.s--active .el__preview-cont {
    opacity: 1;
    transform: none;
  }
  .services-expand-section .el__logo {
    width: 120px;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }
  .services-expand-section .el__content {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    opacity: 1;
    pointer-events: auto;
    padding: 1.25rem 1rem 2rem;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }
  .services-expand-section .el__close-btn {
    display: none;
  }
  .services-expand-section .el__content-inner {
    max-width: none;
    padding-top: 0;
  }
  /* 手機：el__content-inner 內 logo 不顯示（預覽區已有 logo） */
  .services-expand-section .el__content-inner .services-card-logo {
    display: none;
  }
  .services-expand-section .el__content-inner .services-card-tagline {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    margin-top: 0;
    padding: 0.5rem 0.75rem 0.5rem 0.75rem;
    border-left: 3px solid;
    line-height: 1.5;
  }
  .services-expand-section .el--inthink .el__content-inner .services-card-tagline {
    border-left-color: var(--brand-cyan);
    color: var(--brand-dark);
    background: rgba(45, 212, 191, 0.08);
  }
  .services-expand-section .el--talkiiin .el__content-inner .services-card-tagline {
    border-left-color: var(--brand-talkiiin);
    color: var(--brand-talkiiin-dark);
    background: rgba(255, 51, 102, 0.06);
  }
  .services-expand-section .el--doiiin .el__content-inner .services-card-tagline {
    border-left-color: var(--brand-doiiin);
    color: var(--brand-dark);
    background: rgba(66, 184, 175, 0.08);
  }
  .services-expand-section .services-card-desc { font-size: 1rem; line-height: 1.72; margin-bottom: 1rem; }
  .services-expand-section .services-card-item h4 { font-size: 0.9375rem; }
  .services-expand-section .services-card-item p { font-size: 0.875rem; }
  .services-expand-section .services-card-link { font-size: 0.875rem; min-height: 44px; display: inline-flex; align-items: center; padding: 0.5rem 0; -webkit-tap-highlight-color: transparent; }
  .services-expand-section .el__content-inner .row .col-6 { flex: 0 0 100%; max-width: 100%; }
}

/* 服務頁－四大流程（內容即 TAB 按鈕） */
.workflow-tab-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 0;
  border: none;
}
.workflow-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.5rem 1.25rem;
  border: 2px solid var(--slate-200);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.workflow-tab-btn:hover {
  border-color: var(--slate-300);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}
.workflow-tab-btn.active {
  border-color: var(--brand-cyan);
  background: var(--slate-50);
  box-shadow: 0 0 0 1px var(--brand-cyan), 0 8px 24px rgba(45, 212, 191, 0.12);
}
.workflow-tab-btn:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }
.workflow-tab-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-300);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.workflow-tab-btn.active .workflow-tab-num { color: var(--brand-cyan); }
.workflow-tab-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.workflow-tab-btn.active .workflow-tab-title { color: var(--slate-900); }
.workflow-tab-en {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--slate-400);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.workflow-tab-btn.active .workflow-tab-en { color: var(--brand-cyan); }
.workflow-tab-question {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin-bottom: 0;
}
.workflow-tab-btn.active .workflow-tab-question { color: var(--slate-600); }
@media (max-width: 991px) {
  .workflow-tab-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .workflow-tab-list { grid-template-columns: 1fr; gap: 1rem; }
  .workflow-tab-btn { padding: 1.25rem 1rem; }
  .workflow-tab-num { font-size: 1.5rem; }
  .workflow-tab-title { font-size: 1rem; }
  .workflow-tab-question { font-size: 0.8125rem; }
}
/* 四大流程－點擊後內容區（提高閱讀性） */
.workflow-content { margin-top: 4rem; max-width: 52rem; margin-left: auto; margin-right: auto; }
.workflow-content-panel { animation: workflow-content-fade 0.35s ease; }
@keyframes workflow-content-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.workflow-content-question {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 2.25rem;
  line-height: 1.5;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--brand-cyan);
  display: block;
  width: 100%;
  text-align: center;
  letter-spacing: 0.02em;
}
.workflow-content-blocks { display: flex; flex-direction: column; gap: 1.75rem; }
.workflow-content-block {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.85rem 1.85rem 1.85rem 1.6rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--brand-cyan);
  border-radius: 0;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.workflow-content-block:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  border-color: var(--slate-300);
  border-left-color: var(--brand-cyan);
}
.workflow-content-block-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  background: transparent;
}
.workflow-content-block-icon--num { font-size: 2.25rem; }
.workflow-content-block-body { flex: 1; min-width: 0; }
.workflow-content-block-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.6rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.workflow-content-block-title .workflow-step-label + * { margin-left: 0.25rem; }
.workflow-step-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-cyan);
  margin-right: 0.25rem;
  vertical-align: middle;
}
.workflow-content-block-desc {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-600);
  margin-bottom: 0;
  letter-spacing: 0.02em;
}
.workflow-content-placeholder {
  font-size: 1rem;
  color: var(--slate-500);
  font-style: italic;
  margin-bottom: 0;
}
/* 服務頁－策略思維區標題與區塊閱讀性 */
.services-workflow-section .container.text-center.mb-5 {
  margin-bottom: 2.5rem !important;
}
.services-workflow-section .container.text-center h2 {
  line-height: 1.35;
  letter-spacing: 0.02em;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
.services-workflow-section .container.text-center .font-display {
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}
@media (max-width: 575px) {
  .workflow-content { margin-top: 3rem; }
  .workflow-content-question { font-size: 1.5rem; margin-bottom: 1.5rem; }
  .workflow-content-block { padding: 1.35rem 1.25rem; gap: 1rem; }
  .workflow-content-block-icon { width: 3.25rem; height: 3.25rem; font-size: 1.5rem; }
  .workflow-content-block-icon--num { font-size: 1.75rem; }
  .workflow-content-block-title { font-size: 1.0625rem; }
  .workflow-content-block-desc { font-size: 1rem; line-height: 1.72; }
}

/* 策略思維與流程－手機端直接顯示四塊內容，不用 TAB */
@media (max-width: 767px) {
  .workflow-tab-list { display: none !important; }
  .workflow-content {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
  .workflow-content-panel {
    display: block !important;
  }
}

/* 關於我們－文化卡片玻璃感 hover */
.culture-card.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.culture-card.glass-card:hover {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* 我們的品牌－卡片圖片區：logo 置中、深色遮罩 */
.brand-card-img-wrap { overflow: hidden; }
.brand-card-img-overlay {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* 我們的品牌－卡片內文排版 */
.brand-card .card-body { padding: 1.25rem 1.25rem 1.5rem; }
.brand-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.brand-card-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.brand-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--slate-600);
}
.brand-card-list {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.brand-card-list li {
  margin-bottom: 0.4rem;
}
.brand-card-list li:last-child { margin-bottom: 0; }
.brand-card-link {
  font-size: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--slate-200);
  margin-top: 0.25rem;
}
.brand-card-link:hover { color: var(--slate-900) !important; }
.brand-card-doiiin { transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.brand-card-doiiin:hover { transform: none; border-color: var(--brand-doiiin) !important; box-shadow: 0 0 0 1px var(--brand-doiiin); }
.brand-card-talkiiin { transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.brand-card-talkiiin:hover { transform: none; border-color: var(--brand-talkiiin) !important; box-shadow: 0 0 0 1px var(--brand-talkiiin); }

/* ========== Insights 文章細節頁（閱讀版型）========== */
/* 【最高原則】寬度請勿變更：外層 52rem；內文與標題第一張圖同寬 (100%) */
/* 字級層級：L1 大標 > L2 導言 > L3 章標 h2 > L4 小標 h3 > L5 內文 > L6 區塊標/列表 > L7 輔助(meta/說明/標籤) */
.insight-article-page { background: #fff; min-height: 100vh; }
.insight-article-hero {
  position: relative; width: 100%; max-width: 52rem; /* 最高原則：勿改 */ margin: 0 auto 0; overflow: hidden;
  background: transparent; padding: 0 1.5rem;
}
.insight-article-hero .hero-media {
  width: 100%; aspect-ratio: 16/9; max-height: 340px; object-fit: cover; display: block; vertical-align: top;
}
.insight-article-hero .hero-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(15,23,42,0.85), transparent 60%);
  color: #fff; font-size: 0.75rem; line-height: 1.5; opacity: 0.95;
}
.insight-article-hero .hero-caption:empty { display: none; }

/* 標題區塊：深色主題（在首圖上方），上方留空避免被固定選單擋住 */
.insight-article-header {
  background: var(--brand-darker);
  padding: 6rem 1.5rem 2.75rem 1.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
}
.insight-article-header__inner {
  max-width: 52rem; /* 最高原則：勿改 */
  margin-left: auto;
  margin-right: auto;
}
.insight-article-header .insight-article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 1rem;
}
.insight-article-header .insight-article-meta .article-category {
  color: var(--brand-cyan); padding: 0.25rem 0.5rem;
  border: 1px solid rgba(45,212,191,0.5); background: rgba(45,212,191,0.15);
}
.insight-article-header .insight-article-title {
  font-size: clamp(1.375rem, 3.5vw, 1.875rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 1.25rem; max-width: 100%;
}
.insight-article-header .insight-article-lead {
  font-size: 1.0625rem; line-height: 1.65; color: rgba(255,255,255,0.85); font-weight: 400;
  margin-bottom: 0; max-width: 100%; letter-spacing: 0.01em;
}

.insight-article-body-wrap {
  margin-top: 0; padding: 3rem 1.5rem 4rem; max-width: 52rem; /* 最高原則：勿改 */ margin-left: auto; margin-right: auto;
}
/* L7 輔助：meta、分類、日期、作者（僅用於非 header 時，此處保留備用） */
.insight-article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--slate-500); margin-bottom: 1rem;
}
.insight-article-meta .article-category {
  color: var(--brand-cyan); padding: 0.25rem 0.5rem; border: 1px solid rgba(45,212,191,0.4);
  background: rgba(45,212,191,0.08);
}
/* L1 大標題 */
.insight-article-title {
  font-size: clamp(1.375rem, 3.5vw, 1.875rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em;
  color: var(--slate-900); margin-bottom: 1.25rem; max-width: 100%;
}
/* L2 導言／子標題 */
.insight-article-lead {
  font-size: 1.0625rem; line-height: 1.65; color: var(--slate-600); font-weight: 400;
  margin-bottom: 2.25rem; max-width: 100%; letter-spacing: 0.01em;
}
/* L5 內文 */
.insight-article-content {
  font-size: 0.9375rem; line-height: 1.8; color: var(--slate-800); font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 100%;  /* 與標題第一張圖同寬 */
}
.insight-article-content > * + * { margin-top: 1.4em; }
.insight-article-content p { max-width: 100%; margin-top: 0; margin-bottom: 0; }
.insight-article-content p + p { margin-top: 1.5em; }
/* L3 章節標題 h2 */
.insight-article-content h2 {
  font-size: 1.125rem; font-weight: 700; line-height: 1.4; color: var(--slate-900);
  margin-top: 2.25rem; margin-bottom: 0.75em; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--slate-200); max-width: 100%;
  letter-spacing: 0.01em;
}
/* L4 小標題 h3 */
.insight-article-content h3 {
  font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--slate-900);
  margin-top: 2rem; margin-bottom: 0.5em; max-width: 100%;
  letter-spacing: 0.01em;
}
.insight-article-content h3:first-child { margin-top: 0; }
.insight-article-content ul {
  list-style: none; padding-left: 0; max-width: 100%; margin: 1.4em 0;
}
.insight-article-content ul li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.6em; line-height: 1.8;
  font-size: 0.9375rem; letter-spacing: 0.02em;
}
.insight-article-content ul li::before {
  content: ''; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px;
  background: var(--brand-cyan); border-radius: 50%;
}
.insight-article-content ul li strong { color: var(--slate-900); font-weight: 600; }
/* L6 區塊：目錄 */
.insight-article-content .article-toc {
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 0;
  padding: 1.5rem 1.75rem; margin: 2rem 0; max-width: 100%;
}
.insight-article-content .article-toc h4 {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em; color: var(--slate-700);
  margin-bottom: 0.875rem; margin-top: 0;
}
.insight-article-content .article-toc ul { margin: 0; list-style: none; padding-left: 0; }
.insight-article-content .article-toc li { margin-bottom: 0.45rem; padding-left: 0; }
.insight-article-content .article-toc li::before { display: none; }
.insight-article-content .article-toc a {
  font-size: 0.875rem; line-height: 1.5; color: var(--slate-600); text-decoration: none;
  transition: color 0.2s; font-weight: 400;
}
.insight-article-content .article-toc a:hover { color: var(--brand-cyan); }
.insight-article-content .img-wrap {
  margin: 2rem 0; max-width: 100%; width: 100%;
}
.insight-article-content .img-wrap img {
  width: 100%; height: auto; display: block; border-radius: 0; box-shadow: 0 4px 24px rgba(15,23,42,0.08);
}
.insight-article-content table,
.insight-article-content pre { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* L7 圖片說明 */
.insight-article-content .img-wrap .caption {
  font-size: 0.75rem; color: var(--slate-500); margin-top: 0.5rem; line-height: 1.45;
}
/* L6 區塊：引用框 */
.insight-article-content .blockquote-box {
  border-left: 4px solid var(--brand-cyan); background: var(--slate-50);
  padding: 1.375rem 1.5rem; margin: 1.75rem 0; max-width: 100%;
  font-size: 0.9375rem; line-height: 1.75; letter-spacing: 0.02em;
}
.insight-article-content .blockquote-box h3,
.insight-article-content .blockquote-box h4 { margin-top: 0; font-size: 1rem; font-weight: 700; }
.insight-article-content .blockquote-box p { margin-bottom: 0.5em; }
/* L6 區塊：FAQ */
.insight-article-content .faq-item {
  border: 1px solid var(--slate-200); border-radius: 0; padding: 1.125rem 1.375rem;
  margin-bottom: 0.875rem; background: #fff; max-width: 100%;
}
.insight-article-content .faq-item h4 { margin-top: 0; margin-bottom: 0.4rem; font-size: 0.9375rem; font-weight: 600; }
.insight-article-content .faq-item p { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var(--slate-600); }
/* L6 區塊：延伸閱讀 */
.insight-article-content .extended-reading {
  max-width: 100%;
  margin-top: 1.25rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--brand-cyan);
  padding: 0;
  overflow: hidden;
}
.insight-article-content .extended-reading ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.insight-article-content .extended-reading li {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--slate-100);
}
.insight-article-content .extended-reading li::before { display: none; content: none; }
.insight-article-content .extended-reading li:last-child { border-bottom: none; }
.insight-article-content .extended-reading a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  color: var(--slate-800);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.insight-article-content .extended-reading a:hover {
  background: var(--slate-50);
  color: var(--brand-cyan);
}
.insight-article-content .extended-reading a .extended-reading__text { flex: 1; min-width: 0; }
.insight-article-content .extended-reading a .extended-reading__arrow {
  flex-shrink: 0;
  color: var(--slate-300);
  font-size: 0.75rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.insight-article-content .extended-reading a:hover .extended-reading__arrow {
  color: var(--brand-cyan);
  transform: translateX(2px);
}
/* L7 輔助：標籤 */
.insight-article-tags {
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-200);
  display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 100%;
}
.insight-article-tags a {
  font-size: 0.75rem; font-weight: 600; color: var(--slate-500); text-decoration: none;
  padding: 0.2rem 0.5rem; background: var(--slate-100); transition: background 0.2s, color 0.2s;
}
.insight-article-tags a:hover { background: var(--slate-200); color: var(--brand-cyan); }
/* L7 輔助：分享 */
.insight-article-share {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--slate-200); max-width: 100%;
}
.insight-article-share .article-back-link {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--slate-500); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.2s;
}
.insight-article-share .article-back-link:hover { color: var(--brand-cyan); }
.insight-article-share .share-btns { display: flex; align-items: center; gap: 0.5rem; }
.insight-article-share .share-btn {
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--slate-300); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--slate-600);
  background: #fff; transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none; font-size: 1.125rem;
}
.insight-article-share .share-btn:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); background: var(--slate-50); }
.insight-article-share .share-btn:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }
.insight-article-share .share-btn-fb:hover { border-color: #1877f2; color: #1877f2; background: rgba(24,119,242,0.08); }
.insight-article-share .share-btn-line:hover { border-color: #00b900; color: #00b900; background: rgba(0,185,0,0.08); }
@media (min-width: 768px) {
  .insight-article-hero { padding: 0 2rem; }
  .insight-article-hero .hero-media { max-height: 380px; }
  .insight-article-header { padding: 6rem 2rem 3.25rem 2rem; margin-bottom: 3rem; }
  .insight-article-body-wrap { padding: 4rem 2rem 5rem; }
  .insight-article-content .article-toc { padding: 1.75rem 2rem; }
}
@media (min-width: 992px) {
  .insight-article-body-wrap { padding: 4.5rem 2rem 6rem; }
  .insight-article-title { margin-bottom: 1.25rem; }
  .insight-article-lead { margin-bottom: 2rem; font-size: 1.0625rem; line-height: 1.65; }
}

/* 保留舊版 .article-content 以相容其他頁 */
.article-content h3 { font-size: 1.5rem; font-weight: 700; margin: 3rem 0 1.5rem; }
.article-content p { font-size: 1.125rem; }
.article-content ul { list-style: none; padding-left: 0; }
.article-content ul li { position: relative; padding-left: 2rem; margin-bottom: 1rem; }
.article-content ul li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; background: var(--brand-cyan); }

/* Portfolio filter */
[data-filter-category].active { background-color: var(--brand-cyan) !important; color: var(--brand-darker) !important; border-color: var(--brand-cyan) !important; }
[data-filter-category]:not(.active) { background: transparent; }
[data-filter-category]:focus-visible,
[data-insights-cat]:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }

/* Portfolio 頁卡片：hover 不位移，category tag 正常大小不變形 */
#portfolioGrid .card-hover:hover { transform: none; }
#portfolioGrid .ratio .badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  bottom: auto !important;
  right: auto !important;
  border-radius: 2px;
  box-sizing: border-box;
}

/* Portfolio 卡片內文層級 */
#portfolioGrid .portfolio-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
#portfolioGrid .portfolio-card-partner {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 0.4rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--brand-cyan);
  line-height: 1.3;
}
#portfolioGrid .portfolio-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}
#portfolioGrid .portfolio-card-desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--slate-600);
  margin-bottom: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#portfolioGrid .portfolio-card-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-top: auto;
  padding-top: 1rem;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, gap 0.2s ease;
}
#portfolioGrid .portfolio-card:hover .portfolio-card-link {
  color: var(--brand-darker);
  gap: 0.5rem;
}

/* Talkiiin 影像案例卡片：比照 portfolio 版型，深色主題 */
#talkiiinCases .card-hover:hover { transform: none; }
#talkiiinCases .ratio .badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  bottom: auto !important;
  right: auto !important;
  border-radius: 2px;
  box-sizing: border-box;
}
#talkiiinCases .portfolio-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
#talkiiinCases .portfolio-card-partner {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.4rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--brand-talkiiin);
  line-height: 1.3;
}
#talkiiinCases .portfolio-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 0.5rem;
}
#talkiiinCases .portfolio-card-desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#talkiiinCases .portfolio-card-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-talkiiin);
  margin-top: auto;
  padding-top: 1rem;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, gap 0.2s ease;
}
#talkiiinCases .portfolio-card:hover .portfolio-card-link {
  color: #fff;
  gap: 0.5rem;
}

/* Doiiin 頁 Featured Article 配圖（圖片外左上、右下角線、無圓角、色塊貼齊左下） */
.doiiin-featured-wrap {
  display: block;
  padding: 14px;
  border-radius: 0;
  overflow: visible;
}
.doiiin-featured-wrap::before,
.doiiin-featured-wrap::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--brand-doiiin);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.doiiin-featured-wrap::before {
  top: 14px;
  left: 14px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.doiiin-featured-wrap::after {
  bottom: 14px;
  right: 14px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}
.doiiin-featured-wrap img { display: block; vertical-align: top; }
.doiiin-featured-overlay {
  max-width: 85%;
  padding: 1rem 1.25rem;
  padding-left: 1rem;
  margin: 0;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.92);
  border-left: 4px solid var(--brand-doiiin);
  border-radius: 0;
}
.doiiin-featured-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.doiiin-featured-title {
  font-size: 1rem;
  color: var(--slate-900);
  line-height: 1.4;
}
.doiiin-featured-title i { font-size: 0.9em; opacity: 0.8; }

/* Doiiin 共創成果案例卡片：比照 portfolio 版型，淺色主題、Doiiin 品牌色 */
#doiiinCases .card-hover:hover { transform: none; }
#doiiinCases .ratio .badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  bottom: auto !important;
  right: auto !important;
  border-radius: 2px;
  box-sizing: border-box;
}
#doiiinCases .portfolio-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
#doiiinCases .portfolio-card-partner {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 0.4rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--brand-doiiin);
  line-height: 1.3;
}
#doiiinCases .portfolio-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}
#doiiinCases .portfolio-card-desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--slate-600);
  margin-bottom: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#doiiinCases .portfolio-card-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-doiiin);
  margin-top: auto;
  padding-top: 1rem;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, gap 0.2s ease;
}
#doiiinCases .portfolio-card:hover .portfolio-card-link {
  color: var(--brand-darker);
  gap: 0.5rem;
}

.footer-top-line { height: 4px; background: linear-gradient(to right, transparent, var(--brand-cyan), transparent); opacity: 0.5; }
.footer-logo img { filter: brightness(0); height: 2.25rem !important; }
footer.bg-dark .footer-logo img { filter: brightness(0) invert(1); }
/* Footer 社群 icon 保持正圓形 */
footer .btn.rounded-circle {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* 工具類 */
.text-brand-cyan { color: var(--brand-cyan) !important; }
.text-brand-talkiiin { color: var(--brand-talkiiin) !important; }
.text-brand-doiiin { color: var(--brand-doiiin) !important; }
.bg-brand-dark { background-color: var(--brand-dark) !important; }
.bg-brand-darker { background-color: var(--brand-darker) !important; }
.bg-brand-cyan { background-color: var(--brand-cyan) !important; }
.bg-brand-talkiiin { background-color: var(--brand-talkiiin) !important; }
.bg-brand-doiiin { background-color: var(--brand-doiiin) !important; }
.border-brand-cyan { border-color: var(--brand-cyan) !important; }
.btn-outline-brand-cyan { border: 1px solid var(--brand-cyan); color: var(--brand-cyan); }
.btn-outline-brand-cyan:hover { background-color: var(--brand-cyan); color: var(--brand-darker); }

.page-talkiiin .navbar-scrolled, .page-doiiin .navbar-scrolled { background: rgba(255,255,255,0.9) !important; border-bottom: 1px solid var(--slate-200); }
.page-talkiiin .navbar-scrolled .nav-link, .page-doiiin .navbar-scrolled .nav-link { color: #1e293b !important; }
.page-talkiiin .navbar-scrolled .nav-link .nav-prefix,
.page-doiiin .navbar-scrolled .nav-link .nav-prefix { color: #1e293b !important; }

.cursor-pointer { cursor: pointer; }
.link-underline { border-bottom: 1px solid var(--slate-300); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.link-underline:hover { color: var(--brand-cyan) !important; border-bottom-color: var(--brand-cyan); }
.insights-more-link { color: #0f172a !important; }
.insights-more-link:hover { color: #0f172a !important; border-bottom-color: var(--slate-400); }
.portfolio-more-link { color: #0f172a !important; }
.portfolio-more-link:hover { color: #0f172a !important; border-bottom-color: var(--slate-400); }

/* 最新觀點卡片：現代化設計（無圓角、階層字級） */
.insight-card-modern {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 0; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.insight-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
}
.insight-card-modern__img-wrap {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--slate-100);
}
.insight-card-modern__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.insight-card-modern:hover .insight-card-modern__img { transform: scale(1.04); }
.insight-card-modern__body {
  padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column;
}
/* 階層一：分類標籤 */
.insight-card-modern__badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brand-cyan); margin-bottom: 0.5rem;
}
/* 階層二：輔助資訊（日期・作者） */
.insight-card-modern__meta {
  font-size: 0.8125rem; color: var(--slate-500); margin-bottom: 0.625rem; line-height: 1.4;
}
/* 階層三：標題（主層級） */
.insight-card-modern__title {
  font-size: 1.25rem; font-weight: 700; line-height: 1.45; margin: 0 0 0.5rem;
}
.insight-card-modern__title a { color: var(--slate-900); transition: color 0.2s; }
.insight-card-modern__title a:hover { color: var(--brand-cyan); }
/* 階層四：摘要（內文） */
.insight-card-modern__excerpt {
  font-size: 0.9375rem; color: var(--slate-600); line-height: 1.6;
  margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 768px) {
  .insight-card-modern__body { padding: 1.5rem 1.5rem 1.75rem; }
  .insight-card-modern__title { font-size: 1.5rem; line-height: 1.5; }
  .insight-card-modern__excerpt { font-size: 1rem; line-height: 1.65; -webkit-line-clamp: 3; }
}
.insight-card-title { color: var(--slate-900) !important; }
.insight-card-title:hover { color: var(--brand-cyan) !important; }

/* ========== 手機端優化 (Mobile) ========== */
@media (max-width: 767px) {
  /* 避免小螢幕橫向捲動 */
  html, body { overflow-x: hidden; }
  /* 安全區域：避免內容被缺口/島遮蔽 */
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
  .navbar { padding-top: env(safe-area-inset-top); }
  .navbar .container { padding-left: max(0.75rem, env(safe-area-inset-left)); padding-right: max(0.75rem, env(safe-area-inset-right)); }

  /* 手機端選單：固定白底，logo 與文字對應主題（含展開後的 list） */
  .navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    color: #0f172a;
  }
  .navbar .navbar-collapse,
  .navbar .navbar-nav { color: #0f172a; }
  .navbar .nav-link,
  .navbar .nav-link span { color: var(--slate-800) !important; }
  .navbar .nav-link:hover,
  .navbar .nav-link:focus,
  .navbar .nav-link:hover span,
  .navbar .nav-link:focus span { color: var(--slate-900) !important; }
  .navbar .nav-link.active .nav-prefix { color: #fff !important; }
  .navbar .navbar-brand img { filter: brightness(0); }
  .navbar-toggler-icon { filter: brightness(0); }
  .navbar .dropdown-menu { padding: 0.5rem 0; background: #fff !important; border: 1px solid var(--slate-200) !important; box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12); color: #0f172a; }
  .navbar .dropdown-item { padding: 0.75rem 1.25rem; color: #0f172a !important; background: transparent !important; }
  .navbar .dropdown-item:hover,
  .navbar .dropdown-item:focus { background: var(--slate-100) !important; color: var(--slate-900) !important; }
  .navbar .dropdown-item.active { background: rgba(45, 212, 191, 0.1) !important; color: var(--brand-darker) !important; }
  /* Talkiiin / Doiiin 深色頁：body.text-white 會讓選單文字繼承成白色，強制整塊 navbar 為深色字 */
  body.page-talkiiin .navbar,
  body.page-doiiin .navbar,
  body.text-white .navbar {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid var(--slate-200);
  }
  body.page-talkiiin .navbar .navbar-collapse,
  body.page-doiiin .navbar .navbar-collapse,
  body.text-white .navbar .navbar-collapse { color: #0f172a !important; }
  body.page-talkiiin .navbar .nav-link,
  body.page-doiiin .navbar .nav-link,
  body.page-talkiiin .navbar .nav-link span,
  body.page-doiiin .navbar .nav-link span,
  body.text-white .navbar .nav-link,
  body.text-white .navbar .nav-link span { color: var(--slate-800) !important; }
  body.page-talkiiin .navbar .nav-link:hover,
  body.page-talkiiin .navbar .nav-link:focus,
  body.page-doiiin .navbar .nav-link:hover,
  body.page-doiiin .navbar .nav-link:focus,
  body.text-white .navbar .nav-link:hover,
  body.text-white .navbar .nav-link:focus { color: var(--slate-900) !important; }
  body.page-talkiiin .navbar .navbar-brand img,
  body.page-doiiin .navbar .navbar-brand img { filter: brightness(0); }
  body.page-talkiiin .navbar .navbar-toggler-icon,
  body.page-doiiin .navbar .navbar-toggler-icon { filter: brightness(0); }
  body.page-talkiiin .navbar .dropdown-menu,
  body.page-doiiin .navbar .dropdown-menu { background: #fff !important; border: 1px solid var(--slate-200) !important; color: #0f172a !important; }
  body.page-talkiiin .navbar .dropdown-item,
  body.page-doiiin .navbar .dropdown-item,
  body.text-white .navbar .dropdown-item { color: #0f172a !important; background: transparent !important; }

  /* Hero 首屏：手機端固定高度 500px，覆寫 Bootstrap min-vh-100 */
  .hero-section.min-vh-100,
  .hero-section {
    min-height: 0 !important;
    height: 500px;
  }
  .brand-hero { min-height: 90vh; min-height: 90dvh; min-height: 90svh; }

  /* 區段內距縮減 */
  .section-py { padding: 3rem 0; }
  .container.section-py {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .section-marquee { padding: 3rem 0; }
  .section-marquee .container.mb-4 { margin-bottom: 1.5rem !important; }

  /* 跑馬燈卡片：窄螢幕寬度，避免單卡過大；必要時減輕動畫負擔 */
  .marquee-card { width: min(300px, 85vw); }
  .marquee-card-caption { padding: 1rem !important; }
  .marquee-card-caption h3 { font-size: 1.125rem !important; }
  .marquee-mask-left, .marquee-mask-right { width: 3rem; }
  .cta-orb { filter: blur(80px); }
  .cta-orb--4, .cta-orb--5 { opacity: 0.35; }

  /* CTA 區：標題與內文換行、字級縮小 */
  .cta-content .cta-title { white-space: normal; font-size: 1.5rem; }
  .cta-content .cta-lead { white-space: normal; font-size: 0.9375rem; line-height: 1.5; }
  .cta-section .btn-cta { margin-top: 2rem; padding: 0.75rem 1.5rem; font-size: 1rem; min-height: 48px; }

  /* Page Hero：內頁標題區內距與字級，內容靠區塊下方（大標題 > 副標 > 敘述） */
  .page-hero {
    padding: 5rem 0 3em;
    min-height: 42vh;
    display: flex;
    flex-direction: column;
  }
  .page-hero .container { margin-top: auto; }
  .page-hero .display-4 { font-size: 2.25rem; }
  .page-hero .fs-2 { font-size: 1.25rem; }
  .page-hero .page-hero-desc { font-size: 1em; }

  /* Case Modal：關閉鈕加大（觸控友善）、內距 */
  .modal-case .modal-dialog.modal-case-dialog { margin: 1rem auto; max-height: 95vh; }
  .modal-case .modal-case-close {
    width: 48px; height: 48px; top: 0.5rem; right: 0.5rem;
    font-size: 1.35rem; -webkit-tap-highlight-color: transparent;
  }
  .modal-case .modal-case-body .modal-case-text { padding: 1.5rem 1.25rem 2rem; }
  .modal-case .modal-case-body .modal-case-text h2 { font-size: 1.375rem; }
  .modal-case .modal-case-body .modal-case-gallery { max-height: 14rem; padding: 1rem 1rem 1.5rem; }
  .modal-case .modal-case-body .modal-case-gallery img { max-height: 11rem; }

  /* 導覽列：漢堡鈕觸控區域至少 44px */
  .navbar-toggler { min-width: 44px; min-height: 44px; padding: 0.5rem; -webkit-tap-highlight-color: transparent; }

  /* 觸控目標 ≥44px：分享鈕、篩選鈕 */
  .insight-article-share .share-btn { min-width: 44px; min-height: 44px; width: 2.75rem; height: 2.75rem; }
  [data-filter-category], [data-insights-cat] { min-height: 44px; min-width: 44px; padding: 0.5rem 0.75rem; -webkit-tap-highlight-color: transparent; }

  /* 聯絡表單：輸入框 16px 避免 iOS 自動放大 */
  .contact-form-input.form-control,
  .contact-form-input.form-select { font-size: 16px; min-height: 48px; }
  .contact-form-card { padding: 1.5rem 1.25rem; font-size: 0.9375rem; }
  .contact-info-panel { padding: 2rem 1.25rem; font-size: 0.9375rem; }
  .contact-info-panel .contact-info-title { font-size: 1.5rem; }
  .contact-form-submit { min-height: 48px; padding: 0.75rem 1.5rem; font-size: 1rem; }

  /* 子品牌卡（Talkiiin / Doiiin）：小螢幕略減高度 */
  .subcard-talkiiin, .subcard-doiiin { min-height: 280px; }
  .subcard-content { padding: 1.25rem; }

  /* 服務區標題、內文 */
  .text-3xl, .text-5xl { font-size: 1.5rem !important; }
  @media (max-width: 575px) {
    .cta-content .cta-title { font-size: 1.25rem; }
    .page-hero .display-4 { font-size: 1.875rem; }
    .page-hero .fs-2 { font-size: 1.125rem; }
    .page-hero .page-hero-desc { font-size: 1em; }
  }
}
@media (max-width: 575px) {
  .section-py { padding: 2.5rem 0; }
  .section-marquee { padding: 2.5rem 0; }
  .marquee-card { width: min(280px, 90vw); }
}
