/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #a855f7;
  --accent: #c084fc;
  --bg-dark: #050814;
  --bg-card: #0d1225;
  --bg-card2: #111827;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(99, 102, 241, 0.2);
  --border-bright: rgba(99, 102, 241, 0.5);
  --gradient: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-text: linear-gradient(135deg, #818cf8, #c084fc);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: #ffffff;
  border-bottom: 1px solid #e4e8ef;
  box-shadow: 0 2px 16px rgba(26, 39, 68, 0.07);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(26, 39, 68, 0.13);
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  height: 44px;
  width: auto;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-brand {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a2744;
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.logo-cn {
  font-family: 'Noto Serif TC', 'Noto Sans TC', serif;
  font-size: 0.68rem;
  color: #4a5a78;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav-links a {
  font-size: 0.88rem;
  color: #2c3e5e;
  transition: color var(--transition);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.nav-links a:hover { color: #1a2744; }

.nav-cta {
  background: #1a2744;
  color: white !important;
  padding: 9px 22px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: #c9a84c !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a2744;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px; /* account for white navbar height */
}

/* Photo background (replaces canvas animation) */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(5,8,20,0.82) 35%, rgba(5,8,20,0.35) 70%, rgba(5,8,20,0.15) 100%),
    linear-gradient(180deg, transparent 60%, var(--bg-dark) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 900px;
  padding: 0 24px;
  padding-top: 80px;
  margin-left: 6vw;
  margin-right: auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--border-bright);
  color: #a5b4fc;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.accent { color: #a5b4fc; }

.accent-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 0 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.02em;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6);
}

.btn-line {
  background: #06C755;
  color: white;
  box-shadow: 0 4px 24px rgba(6, 199, 85, 0.3);
}

.btn-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(6, 199, 85, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== WHY US ===== */
.why-us {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #080e1e 100%);
}

.cards-grid { display: grid; gap: 24px; }
.three-col  { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.card:hover { border-color: var(--border-bright); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

.card.featured {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.1));
  border-color: rgba(99, 102, 241, 0.4);
}

.card.featured::before { opacity: 1; }

.card-icon { width: 56px; height: 56px; margin-bottom: 20px; }
.card-icon svg { width: 100%; height: 100%; }

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.card p  { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.card-tags span {
  font-size: 0.72rem;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 3px 10px;
  border-radius: 50px;
}

.featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 3px 10px;
  border-radius: 50px;
}

/* ===== SERVICES ===== */
.services { background: #080e1e; }

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

.service-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-card.highlight {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(168,85,247,0.08));
  border-color: rgba(99, 102, 241, 0.35);
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg { width: 28px; height: 28px; }

.s1 { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.s2 { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.s3 { background: rgba(34, 211, 238, 0.15); color: #67e8f9; }
.s4 { background: rgba(251, 191, 36, 0.15);  color: #fcd34d; }

.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

.service-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.service-list li:last-child { border-bottom: none; }

.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.highlight-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.7rem; font-weight: 600;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 3px 10px; border-radius: 50px;
}

/* ===== FOREIGN ===== */
.foreign {
  background: linear-gradient(180deg, #080e1e 0%, var(--bg-dark) 100%);
  overflow: hidden;
}

.foreign-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.foreign-subtitle {
  font-size: 1rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.foreign-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.foreign-list { margin: 28px 0; }

.foreign-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 8px 0;
}

.foreign-list li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* Globe Visual */
.globe-container {
  position: relative;
  width: 360px; height: 360px;
  margin: 0 auto;
}

.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.3);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: globeSpin 20s linear infinite;
}

.r1 { width: 100%; height: 100%; animation-duration: 20s; }
.r2 { width: 75%; height: 75%; animation-duration: 15s; animation-direction: reverse; border-color: rgba(168, 85, 247, 0.3); }
.r3 { width: 50%; height: 50%; animation-duration: 10s; border-color: rgba(192, 132, 252, 0.4); }

@keyframes globeSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.globe-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

.globe-dot {
  position: absolute;
  font-size: 1.5rem;
  animation: orbitFloat 3s ease-in-out infinite;
}

.d1 { top: 10%; left: 50%; animation-delay: 0s; }
.d2 { top: 50%; right: 5%; animation-delay: 0.75s; }
.d3 { bottom: 10%; left: 50%; animation-delay: 1.5s; }
.d4 { top: 50%; left: 5%; animation-delay: 2.25s; }

@keyframes orbitFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ===== ABOUT ===== */
.about { background: var(--bg-dark); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.about-avatar {
  position: relative;
  width: 220px; height: 220px;
  margin: 0 auto 32px;
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.3;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%       { transform: scale(1.05); opacity: 0.5; }
}

.avatar-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
}

.avatar-inner svg { width: 80px; height: 80px; }

.cert-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.cert-badge {
  background: var(--gradient);
  color: white;
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 50px;
  letter-spacing: 0.05em;
}

.about-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; margin-bottom: 16px; }

.timeline {
  margin-top: 32px;
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 16px;
}

.tl-dot {
  position: absolute;
  left: -20px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
  flex-shrink: 0;
}

.tl-content { display: flex; flex-direction: column; gap: 2px; }
.tl-year  { font-size: 0.75rem; color: var(--primary); font-weight: 600; letter-spacing: 0.05em; }
.tl-role  { font-size: 0.88rem; color: var(--text-secondary); }

/* ===== CONTENT HUB ===== */
.content-hub { background: #080e1e; padding: 0; margin: 0; }

/* 全寬左文右影 layout */
.hub-fullwidth {
  display: grid;
  grid-template-columns: 5fr 6fr;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

/* 左側文字區 */
.hub-text-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 48px 48px;
  background: #080e1e;
  overflow: visible;
  margin-top: -80px;
  position: relative;
  z-index: 3;
}

.hub-main-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 12px 0 24px;
}

.hub-article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  min-height: 160px;
  transition: opacity 0.3s ease;
}

.hub-video-badge {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 14px; border-radius: 20px;
  width: fit-content;
}

.hub-article-title {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.hub-article-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

.hub-video-date { font-size: 0.8rem; color: var(--text-muted); }
.hub-article-actions { margin-top: 4px; }

/* ===== 影片輪播縮圖列 ===== */
.hub-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  position: relative;
}

.hub-carousel-track-outer {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.hub-carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hub-carousel-item {
  flex: 0 0 calc(50% - 6px);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.hub-carousel-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.2);
}

.hub-carousel-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.35), 0 6px 24px rgba(99,102,241,0.2);
}

.hub-thumb-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0d1225;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.hub-thumb-img svg { width: 100%; height: 100%; object-fit: cover; }
.hub-thumb-img img { width: 100%; height: 100%; object-fit: cover; }

.hub-thumb-play-icon {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.hub-carousel-item:hover .hub-thumb-play-icon,
.hub-carousel-item.active .hub-thumb-play-icon { opacity: 1; }

.hub-thumb-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.hub-thumb-badge { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }

.hub-thumb-title {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-thumb-date { font-size: 0.68rem; color: var(--text-muted); }

/* 輪播前後按鈕 */
.hub-carousel-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  padding: 0;
}

.hub-carousel-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.hub-carousel-btn svg { width: 16px; height: 16px; }
.hub-carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* 輪播指示點 */
.hub-carousel-dots { display: flex; gap: 6px; margin-top: 14px; justify-content: center; }

.hub-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hub-dot.active { background: var(--primary); transform: scale(1.4); }

/* ===== 右側影片播放區 ===== */
.hub-video-panel {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

/* 影片縮圖遮罩（點擊前顯示） */
.hub-video-overlay {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.hub-video-thumb-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-dark);
}

/* Blurred background layer (fills 16:9 space for 9:16 poster) */
.hub-thumb-blur-bg {
  position: absolute; inset: -5%; z-index: 0;
  width: 110%; height: 110%;
  object-fit: cover;
  filter: blur(24px) brightness(0.45) saturate(1.3);
  display: block;
}

/* Main poster image: contain, no crop */
.hub-thumb-real-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* 播放按鈕 */
.hub-play-btn {
  position: relative;
  z-index: 3;
  background: none; border: none;
  cursor: pointer; padding: 0;
  transition: transform 0.2s, filter 0.2s;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5));
}

.hub-play-btn:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 32px rgba(99,102,241,0.6));
}

.hub-play-btn svg { width: 80px; height: 80px; }

/* 影片標題浮層 */
.hub-video-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 28px 20px;
  background: linear-gradient(to top, rgba(5,8,20,0.92) 0%, transparent 100%);
  z-index: 3;
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
}

.hub-video-caption p { font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.4; margin: 0; }

/* 實際影片播放器 — 9:16 影片在 16:9 容器中完整呈現 + 模糊背景填充 */
.hub-video-player {
  position: absolute; inset: 0; z-index: 4;
  overflow: hidden;
  background: var(--bg-dark);
}
/* 模糊背景層：放大影片填滿兩側空白 */
.hub-video-player::before {
  content: '';
  position: absolute; inset: -10%; z-index: 0;
  background: inherit;
  filter: blur(0);
}
.hub-video-bg-blur {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hub-video-bg-blur video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.5) saturate(1.2);
  transform: scale(1.1);
  display: block;
}
/* 主影片：完整顯示，不裁切 */
.hub-video-player > video {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* RWD: 手機改為上下堆疊 */
@media (max-width: 768px) {
  .hub-fullwidth { grid-template-columns: 1fr; min-height: auto; }
  .hub-text-panel { padding: 40px 24px 32px; order: 2; }
  .hub-video-panel { order: 1; aspect-ratio: 16 / 9; min-height: 200px; }
  .hub-carousel-item { flex: 0 0 calc(80% - 6px); }
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(168,85,247,0.1) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }

.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.cta-inner p  { color: var(--text-secondary); font-size: 1rem; margin-bottom: 36px; line-height: 1.8; }

.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact { background: var(--bg-dark); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-item:hover { border-color: var(--border-bright); }

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
  display: block;
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-value { font-size: 0.95rem; color: var(--text-primary); }
.contact-link:hover { color: var(--primary); }

.line-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.line-header {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  font-size: 1rem; font-weight: 600;
  margin-bottom: 24px;
}

.line-qr {
  width: 180px; height: 180px;
  margin: 0 auto 20px;
  border-radius: 12px;
  border: 3px solid #06C755;
  object-fit: contain;
  background: white;
  padding: 8px;
}

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

/* Facebook icon in contact section */
.contact-icon-fb {
  background: rgba(24, 119, 242, 0.1) !important;
  border-color: rgba(24, 119, 242, 0.3) !important;
  color: #1877f2 !important;
}

/* ===== FOOTER ===== */
.footer { background: #030710; border-top: 1px solid var(--border); padding: 60px 0 32px; }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }
.footer-tagline { color: var(--text-secondary) !important; font-size: 0.8rem !important; margin-top: 4px !important; }

.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-contact p,
.footer-contact a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.footer-contact a:hover { color: var(--primary); }

.footer-social { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  color: white;
  flex-shrink: 0;
  border: none;
  padding: 0;
}
.social-btn:hover { opacity: 0.85; transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ===== AOS ANIMATIONS ===== */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .three-col { grid-template-columns: 1fr 1fr; }
  .foreign-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 32px;
    font-size: 1.1rem;
  }
  .nav-logo-mark { height: 36px; }
  .logo-brand { font-size: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; z-index: 1001; }
  .three-col { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .globe-container { width: 260px; height: 260px; }
  .hero-content { margin-left: 0; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats  { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-actions  { flex-direction: column; align-items: center; }
}

/* ===== WHY US – 3-column horizontal grid ===== */
.why-feat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.why-feat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: rgba(99,102,241,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, background 0.2s;
}

.why-feat-item:hover {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.1);
}

.why-feat-item.featured-item {
  border-color: rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.1);
}

.why-feat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.12);
  border-radius: 10px;
}

.why-feat-icon svg { width: 28px; height: 28px; }

.why-feat-body { flex: 1; }

.why-feat-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.why-feat-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}

/* Why Us spacing from Hub */
.why-us { padding-top: 60px !important; }

/* Content Hub: flush against hero */
.content-hub { margin-top: -1px; }

/* ===== SERVICES – 4-column row ===== */
.services-4col {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px;
}

.services-4col .service-card {
  padding: 20px 16px;
}

.services-4col .service-card h3 {
  font-size: 0.95rem;
}

.services-4col .service-list li {
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .services-4col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .why-feat-list { grid-template-columns: 1fr !important; }
}

@media (max-width: 540px) {
  .services-4col {
    grid-template-columns: 1fr !important;
  }
  .why-feat-list { grid-template-columns: 1fr !important; }
  .why-feat-item { flex-direction: column; gap: 12px; }
}

/* ===== ABOUT – cert-badge primary highlight ===== */
.cert-badge {
  font-size: 0.72rem;
  padding: 4px 10px;
  white-space: nowrap;
}

.cert-badge.cert-primary {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(168,85,247,0.25));
  border-color: rgba(99,102,241,0.5);
  color: #c4b5fd;
  font-weight: 600;
}

/* ===== CONTACT – compact redesign ===== */
.contact-compact {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.cc-info-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cc-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.cc-info-item svg { flex-shrink: 0; margin-top: 2px; color: #818cf8; }

.cc-info-item div { display: flex; flex-direction: column; gap: 2px; }

.cc-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.cc-val {
  font-size: 0.9rem;
  color: var(--text-primary);
}

a.cc-val {
  color: #818cf8;
  transition: color 0.2s;
}
a.cc-val:hover { color: #c4b5fd; }

.cc-social-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cc-social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cc-social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
  color: white;
}

.cc-social-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.cc-fb  { background: #1877F2; }
.cc-ig  { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.cc-line-qr {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cc-line-qr img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  border: 2px solid rgba(6,199,85,0.3);
}

.cc-line-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cc-line-info small { color: var(--text-muted); font-size: 0.78rem; }

/* ===== Footer contact list – flex icon-left layout ===== */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}
.footer-contact-item svg { flex-shrink: 0; }
.footer-contact-item span,
.footer-contact-item a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition);
  /* reset any inherited flex/display from .footer-contact a */
  display: inline;
  margin-bottom: 0;
  align-items: unset;
  gap: unset;
}
.footer-contact-item a:hover { color: var(--primary); }

/* Footer social icon buttons */
.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  color: white;
  flex-shrink: 0;
}
.social-btn:hover { opacity: 0.85; transform: translateY(-2px); }
/* Fix: force white icons on colored backgrounds */
.social-fb { background: #1877F2 !important; color: white !important; border: none !important; }
.social-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; color: white !important; border: none !important; }
.social-line { background: #06C755 !important; color: white !important; border: none !important; }


/* ===== Contact section: small icon buttons ===== */
.cc-social-row { display: flex; align-items: center; padding: 24px 0 8px; }

.cc-icon-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cc-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
}
.cc-icon-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.cc-icon-fb  { background: #1877F2; }
.cc-icon-ig  { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.cc-icon-line { background: #06C755; }

/* ===== LINE floating chat bubble ===== */
.line-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  background: #06C755;
  color: white;
  text-decoration: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.line-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(6, 199, 85, 0.55);
}
.line-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.line-float-text { display: none; }

@media (max-width: 768px) {
  .cc-info-row { grid-template-columns: 1fr; }
  .line-float { bottom: 20px; right: 16px; width: 50px; height: 50px; }
}
