/* ─── Theme Variables ────────────────────────────────── */
:root {
  --uh-bg:        #ffffff;
  --uh-surface:   #D0ECEC;
  --uh-text:      #1a4d52;
  --uh-text-soft: #4a6e72;
  --uh-border:    rgba(26, 77, 82, 0.15);
  --uh-accent:    #2a8a92;
  --uh-cta:       #06C755;
  --uh-cta-hover: #05a149;
}

/* ─── Root wrapper (full-bleed, no inner gaps) ───────── */
.uh-root {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
  display: block;
}
.uh-root > * {
  margin: 0 !important;
}

/* ─── Announcement Bar ──────────────────────────────── */
.uh-announcement-bar {
  position: relative;
  z-index: 10;
  background: var(--uh-surface);
  color: var(--uh-text);
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", sans-serif;
}
.uh-announcement-bar a {
  color: var(--uh-text);
  text-decoration: none;
}
.uh-announcement-bar a:hover {
  text-decoration: underline;
}

/* Marquee */
.uh-marquee-track {
  display: flex;
  width: max-content;
  animation: uh-marquee-scroll 12s linear infinite;
  white-space: nowrap;
}
.uh-marquee-content {
  display: inline-block;
}
.uh-marquee-track:hover {
  animation-play-state: paused;
}
@keyframes uh-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Hero Section ──────────────────────────────────── */
.uh-hero {
  position: relative;
  background: var(--uh-bg);
  color: var(--uh-text);
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", sans-serif;
}
.uh-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uh-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.94),
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.25)
  );
}

/* Content */
.uh-hero-content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 112px 16px 56px;
  box-sizing: border-box;
}
.uh-hero-text {
  max-width: 768px;
}
.uh-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--uh-text);
  animation: uh-heroSlideOnly 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.uh-hero-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--uh-accent);
  margin: 0 0 24px;
  animation: uh-heroSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}
.uh-hero-desc {
  font-size: 1rem;
  color: var(--uh-text-soft);
  margin: 0 0 32px;
  line-height: 1.75;
  animation: uh-heroSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.35s;
}

/* ─── Hero CTA Button ───────────────────────────────── */
.uh-hero-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: var(--uh-cta) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 12px 28px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  transition: background 0.3s, box-shadow 0.3s, transform 0.15s !important;
  border: none !important;
  line-height: 1.4 !important;
  margin-top: 8px;
}
.uh-hero-cta:hover {
  background: var(--uh-cta-hover) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}
.uh-hero-cta:active {
  transform: scale(0.97);
}
.uh-hero-cta svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  display: inline-block;
}

/* ─── Stats / Info Strip ────────────────────────────── */
.uh-statsbar {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--uh-border);
  color: var(--uh-text);
}
.uh-statsbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.uh-statsbar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.uh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 16px;
  text-align: center;
}
.uh-stat-icon {
  width: 32px;
  height: 32px;
  color: var(--uh-accent);
  margin-bottom: 6px;
}
.uh-stat-label {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--uh-text);
}
.uh-stat-note {
  font-size: 0.8125rem;
  color: var(--uh-text-soft);
  line-height: 1.5;
  white-space: pre-line;
}

/* Borders — mobile (2x2) */
.uh-stat-border-r {
  border-right: 1px solid var(--uh-border);
}
.uh-stat-border-t {
  border-top: 1px solid var(--uh-border);
}

/* ─── Animations ────────────────────────────────────── */
@keyframes uh-heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes uh-heroSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes uh-heroSlideOnly {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ─── Responsive — Tablet & Desktop ─────────────────── */
@media (min-width: 768px) {
  .uh-hero-content {
    padding: 80px 24px;
  }
  .uh-hero-title {
    font-size: 3rem;
  }
  .uh-hero-subtitle {
    font-size: 1.25rem;
  }
  .uh-statsbar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .uh-stat-border-t {
    border-top: none;
  }
  .uh-stat-border-r-md {
    border-right: 1px solid var(--uh-border);
  }
  .uh-stat-label {
    font-size: 1.125rem;
  }
  .uh-stat-note {
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .uh-hero-content {
    padding: 80px 32px;
  }
  .uh-hero-title {
    font-size: 3.5rem;
  }
}
