/* ===========================
   晴天蕃茄 - 自訂樣式 v2.0
   UIkit 3 + Google Material Icons
   =========================== */

/* ---- CSS 變數 ---- */
:root {
  --color-primary: #d53737;
  --color-primary-dark: #b02e2e;
  --color-primary-light: #fff0f0;
  --color-accent: #ff6b35;
  --color-dark: #111827;
  --color-dark2: #1f2937;
  --color-text: #374151;
  --color-muted: #6b7280;
  --color-light: #f9fafb;
  --color-border: #e5e7eb;
  --color-footer-bg: #111827;
  --font-main: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ---- UIkit container 寬度覆蓋（預設 1200px → 1300px） ---- */
.uk-container {
  max-width: 1300px;
}

.uk-container-large {
  max-width: 1300px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  transition: var(--transition);
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 350,
    "GRAD" 0,
    "opsz" 24;
  vertical-align: middle;
  line-height: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 980;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* 修正 backdrop-filter 產生新堆疊上下文，導致 offcanvas 選單被 header 遮住
   backdrop-filter 會讓子元素 z-index 失效，需將 offcanvas 提升至 header 之上 */
.uk-offcanvas { z-index: 1100 !important; }
.uk-offcanvas-bar { z-index: 1101 !important; }

.uk-navbar-container {
  background: transparent !important;
  border: none;
}

.uk-navbar-nav > li > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  padding: 0 14px;
  height: 64px;
  letter-spacing: 0.01em;
  transition: var(--transition);
}

.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li.uk-active > a {
  color: var(--color-primary);
}

/* 聯絡按鈕 */
.nav-contact-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  padding: 8px 16px !important;
  height: auto !important;
  min-height: auto !important;
  line-height: 1 !important;
  margin: 0 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-contact-btn .material-symbols-outlined {
  font-size: 15px;
}

.nav-contact-btn:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
  transform: none;
  box-shadow: 0 2px 8px rgba(213, 55, 55, 0.4);
}

/* 全域消除連結底線 */
a,
a:hover,
a:focus,
a:active {
  text-decoration: none !important;
}

.uk-navbar-nav > li > a {
  text-decoration: none !important;
}

.uk-navbar-dropdown {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--color-border);
}

.uk-navbar-dropdown-nav > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.uk-navbar-dropdown-nav > li > a:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding-left: 18px;
}

.mobile-nav > li > a {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.mobile-nav > li > a:hover {
  color: #fff;
  padding-left: 6px;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

/* 補齊每一層背景，防止 fade 過場透出白色 */
.hero-section > div {
  background: var(--color-dark);
}

/* 固定高度：防止 UIkit 動態計算撐開畫面 & 轉場閃白 */
.hero-section .uk-slideshow-items {
  height: 620px !important;
  background: var(--color-dark) !important;
}

.hero-section .uk-slideshow-items > li {
  height: 620px;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-slide {
  height: 620px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

/* UIkit slideshow 過場 z-index 控制
   讓進入的 slide 永遠在最上層，避免色塊閃現 */
.hero-section .uk-slide-active { z-index: 10; }
.hero-section .uk-slide-enter  { z-index: 11; }
.hero-section .uk-slide-leave  { z-index: 9;  }

/* dotnav 定位修正 — 貼在 hero 底部 */
.hero-section .uk-slideshow-nav.uk-position-bottom {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .hero-section .uk-slideshow-items {
    height: 520px !important;
  }
  .hero-section .uk-slideshow-items > li,
  .hero-slide {
    height: 520px;
  }
}

@media (max-width: 640px) {
  .hero-section .uk-slideshow-items {
    height: 420px !important;
  }
  .hero-section .uk-slideshow-items > li,
  .hero-slide {
    height: 420px;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 20, 0.72) 0%,
    rgba(10, 10, 20, 0.4) 60%,
    rgba(10, 10, 20, 0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 60px;
  padding-bottom: 60px;
  /* 水平 padding 由 .uk-container 控制，勿用 shorthand 覆蓋 */
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
  color: #fff !important;
}

.hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  opacity: 0.88;
  max-width: 540px;
  margin-bottom: 36px;
  color: #fff !important;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   共用 SECTION 樣式
   ============================================================ */
.section-pad {
  padding: 96px 0;
}
.section-pad-sm {
  padding: 60px 0;
}
.section-pad-xs {
  padding: 36px 0;
}
.bg-light {
  background: var(--color-light);
}
.bg-white {
  background: #fff;
}
.bg-dark {
  background: var(--color-dark);
}
.bg-primary {
  background: var(--color-primary);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-title.light {
  color: #fff;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-divider {
  width: 48px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 14px auto 24px;
}

.section-divider.left {
  margin-left: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(213, 55, 55, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-ghost:hover {
  gap: 10px;
  color: var(--color-primary-dark);
}

/* ============================================================
   SERVICE CARDS (首頁)
   ============================================================ */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: var(--transition);
  border-radius: 0 0 var(--radius) var(--radius);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .icon-wrap {
  width: 80px;
  height: 80px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: var(--transition);
}

.service-card:hover .icon-wrap {
  background: var(--color-primary);
}

.service-card .icon-wrap .material-symbols-outlined {
  font-size: 40px;
  color: var(--color-primary);
  transition: var(--transition);
}

.service-card:hover .icon-wrap .material-symbols-outlined {
  color: #fff;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-dark);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   FEATURE ITEMS
   ============================================================ */
.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item .icon-box {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(213, 55, 55, 0.25);
}

.feature-item .icon-box .material-symbols-outlined {
  color: #fff;
  font-size: 26px;
}

.feature-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-dark);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   WORK CARDS (首頁精選 & works 頁)
   ============================================================ */
.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: #fff;
  height: 100%;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.work-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 66%; /* 3:2 比例 */
}

.work-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.work-card:hover .work-img-wrap img {
  transform: scale(1.07);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

.work-overlay .material-symbols-outlined {
  font-size: 48px;
  color: #fff;
  opacity: 0.9;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-card-body {
  padding: 16px 18px 18px;
}

.work-tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.work-card-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-dark);
  line-height: 1.4;
}

/* ============================================================
   WORKS FILTER
   ============================================================ */
.works-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 40px;
  padding: 8px 22px;
  font-size: 0.88rem;
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(213, 55, 55, 0.3);
}

.filter-count {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 0.7rem;
  margin-left: 4px;
  font-weight: 700;
}

.filter-btn:not(.active) .filter-count {
  background: var(--color-light);
  color: var(--color-muted);
}

/* ============================================================
   STAT NUMBERS
   ============================================================ */
.stats-bar {
  background: #fff;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-num span {
  font-size: 1.8rem;
}

.stat-label {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
}

.stat-divider {
  border-left: 1px solid var(--color-border);
  padding-left: 32px;
  padding-right: 32px;
}

/* ============================================================
   PAGE HERO (內頁頂部)
   ============================================================ */
.page-hero {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  background-size:
    28px 28px,
    auto;
  color: #fff;
  padding: 100px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(213, 55, 55, 0.14) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(213, 55, 55, 0.06) 0%,
      transparent 45%
    );
  pointer-events: none;
}

.page-hero .uk-container {
  position: relative;
}

.page-hero p:first-child {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff !important;
}

.page-hero p:last-child {
  font-size: 1.05rem;
  opacity: 0.75;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #c0392b 0%, var(--color-primary) 50%, #c0392b 100%);
  background-size:
    28px 28px,
    auto;
  padding: 88px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 40px rgba(255, 255, 255, 0.04),
    0 0 0 90px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.cta-banner .uk-container {
  position: relative;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

/* ============================================================
   INFO CARDS (各服務頁)
   ============================================================ */
.info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  height: 100%;
  border-top: 3px solid var(--color-primary);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.info-card .icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.info-card .icon-wrap .material-symbols-outlined {
  font-size: 30px;
  color: var(--color-primary);
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.info-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.7;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.process-step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(213, 55, 55, 0.3);
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.process-step p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}

.contact-form-wrap label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-dark);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.01em;
}

.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-light);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus,
.contact-form-wrap select:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(213, 55, 55, 0.1);
}

.contact-info-card {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: var(--radius);
  padding: 48px 36px;
  color: #fff;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 280px;
  height: 280px;
  background: rgba(213, 55, 55, 0.12);
  border-radius: 50%;
}

.contact-info-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
  position: relative;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  position: relative;
}

.contact-info-item .icon-box {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(213, 55, 55, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item .material-symbols-outlined {
  font-size: 20px;
  color: #ff8080;
}

.contact-info-item a {
  color: rgba(255, 255, 255, 0.85);
}
.contact-info-item a:hover {
  color: #fff;
}

/* ============================================================
   ALERT
   ============================================================ */
.alert-success {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
}

.alert-error {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #7f1d1d;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-top {
  background: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.65);
  padding: 72px 0 48px;
}

/* Footer Logo */
.footer-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-title {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  padding: 0;
  list-style: none;
}
.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-links a .material-symbols-outlined {
  font-size: 14px;
  color: var(--color-primary);
}

.footer-contact {
  padding: 0;
  list-style: none;
}
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social img {
  width: 18px;
  height: 18px;
  filter: brightness(10);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 40px 0 32px;
}

.footer-bottom {
  background: #000;
  padding: 18px 0;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: none;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}
.footer-bottom a:hover {
  color: var(--color-primary);
}

/* ============================================================
   HOME: ONE-STOP MODE SECTION
   ============================================================ */
.one-stop-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  color: #fff !important;
}

.one-stop-card:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(213, 55, 55, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(213, 55, 55, 0.15);
}

.one-stop-card .material-symbols-outlined {
  font-size: 48px;
  color: rgba(213, 55, 55, 0.7);
  margin-bottom: 16px;
  display: block;
  transition: var(--transition);
}

.one-stop-card:hover .material-symbols-outlined {
  color: var(--color-primary);
}

.one-stop-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff !important;
}

.one-stop-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5) !important;
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   HOME: LINE@ 互動機器人功能卡片
   ============================================================ */
.line-feature-card {
  background: #f9fafb;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px 16px;
  height: 100%;
  transition: var(--transition);
}

.line-feature-card:hover {
  border-color: #06C755;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.1);
  transform: translateY(-3px);
}

.line-feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #06C755, #04a044);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.line-feature-icon .material-symbols-outlined {
  font-size: 22px;
  color: #fff;
}

.line-feature-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-dark);
}

.line-feature-card p {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   HOME: 競爭優勢條紋
   ============================================================ */
.advantage-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.advantage-item:hover {
  border-left-color: var(--color-primary);
  box-shadow: var(--shadow);
  transform: translateX(6px);
}

.advantage-item .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  min-width: 52px;
  flex-shrink: 0;
  letter-spacing: -0.04em;
  user-select: none;
}

.advantage-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.advantage-item p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0;
}

/* ============================================================
   APP PAGE - 開發流程
   ============================================================ */
.flow-step {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-step:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.flow-step-num {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}

.flow-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 0.84rem;
  color: var(--color-muted);
  margin: 0;
}

/* ============================================================
   TECH BADGE
   ============================================================ */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
}

.tech-badge:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   ABOUT - 時間軸
   ============================================================ */
.timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 36px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(213, 55, 55, 0.3);
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  padding-top: 8px;
}

.timeline-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0;
}

/* ============================================================
   ABOUT - 數值卡片
   ============================================================ */
.about-stat {
  text-align: center;
  padding: 32px 24px;
}

.about-stat .num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 8px;
}

.about-stat .label {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ============================================================
   LOADING / Scroll Animation
   ============================================================ */
[data-aos] {
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .section-pad {
    padding: 64px 0;
  }
  .contact-form-wrap {
    padding: 36px 28px;
  }
  .contact-info-card {
    padding: 36px 28px;
  }
  .page-hero {
    padding: 72px 0 52px;
  }
}

@media (max-width: 640px) {
  .section-pad {
    padding: 48px 0;
  }
  .section-pad-sm {
    padding: 40px 0;
  }
  .page-hero {
    padding: 56px 0 40px;
  }
  .footer-top {
    padding: 48px 0 32px;
  }
  .cta-banner {
    padding: 60px 0;
  }
  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-form-wrap {
    padding: 28px 20px;
  }
  .filter-btn {
    padding: 7px 16px;
    font-size: 0.82rem;
  }
  .advantage-item {
    padding: 20px 20px;
  }
}

/* ============================================================
   設計細節補強
   ============================================================ */

/* Header 高度統一 */
.site-header nav .uk-container {
  height: 64px;
}

/* UIkit navbar override */
.uk-navbar-left,
.uk-navbar-right {
  align-items: center;
}

/* Dotnav 樣式 */
.uk-dotnav > * > * {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  width: 8px;
  height: 8px;
}

.uk-dotnav > .uk-active > * {
  background: #fff;
  transform: scale(1.3);
}

/* 服務頁 info-card 強制高度一致 */
.uk-grid-match .info-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.info-card p {
  flex: 1;
}

/* 強制所有 a 標籤無底線 */
a,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none !important;
}

/* UIkit list 不加預設樣式 */
.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
}

/* Section label 統一樣式 */
.section-label + .section-title {
  margin-top: 4px;
}

/* 更好的 shadow-lg */
:root {
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.14), 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* 卡片 border 微調 */
.service-card {
  border: 1px solid var(--color-border);
}

/* 形象圖放大填滿容器 */
.work-img-wrap img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page hero 右上角裝飾圓環 */
.page-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(213, 55, 55, 0.18);
  box-shadow:
    0 0 0 50px rgba(213, 55, 55, 0.05),
    0 0 0 110px rgba(213, 55, 55, 0.025);
  pointer-events: none;
}

/* Advantage item - 更緊湊 */
.advantage-item + .advantage-item {
  margin-top: 0;
}

/* 按鈕 focus */
.btn-primary:focus,
.btn-outline:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================
   EVENT PAGE - 緊湊服務卡片
   ============================================================ */
.event-feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1.5px solid var(--color-border);
  transition: var(--transition);
  height: 100%;
}

.event-feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.event-feature-card .ef-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--color-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-feature-card .ef-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--color-primary);
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.event-feature-card h3 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 5px;
  line-height: 1.3;
}

.event-feature-card p {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

/* 服務卡片插圖 */
.info-card .card-img {
  width: 120px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
}

/* 技術標籤條帶 */
.tech-strip {
  background: var(--color-light);
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.tech-strip-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-right: 20px;
  white-space: nowrap;
}

/* 活動流程步驟（4步） */
.event-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 640px) {
  .event-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

.event-flow-step {
  padding: 28px 20px;
  text-align: center;
  border-right: 1.5px solid var(--color-border);
  position: relative;
}

.event-flow-step:last-child {
  border-right: none;
}

@media (max-width: 640px) {
  .event-flow-step:nth-child(2) {
    border-right: none;
  }
  .event-flow-step:nth-child(3) {
    border-right: 1.5px solid var(--color-border);
  }
  .event-flow-step:nth-child(1),
  .event-flow-step:nth-child(2) {
    border-bottom: 1.5px solid var(--color-border);
  }
}

/* 流程步驟插圖 */
.flow-step-img {
  width: 80px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}

.event-flow-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.event-flow-step .material-symbols-outlined {
  font-size: 28px;
  color: var(--color-primary);
  display: block;
  margin-bottom: 10px;
  font-variation-settings:
    "FILL" 1,
    "wght" 300,
    "GRAD" 0,
    "opsz" 24;
}

.event-flow-step h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.event-flow-step p {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   HOME - 公司理念條帶
   ============================================================ */
.tagline-band {
  background: var(--color-light);
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.tagline-band-headline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.tagline-band-text {
  color: var(--color-text);
  margin: 0;
  line-height: 1.75;
}

/* ============================================================
   HOME - 合作品牌 Logo 帶
   ============================================================ */
.brand-logos-band {
  background: #fff;
  padding: 52px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.brand-logos-band .section-label {
  margin-bottom: 28px;
}

.brand-logos-img {
  max-width: 100%;
  height: auto;
  opacity: 0.65;
  filter: grayscale(20%);
  transition: var(--transition);
}

.brand-logos-img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================================
   ABOUT PAGE - 公司介紹專屬樣式
   ============================================================ */

/* 介紹文字段落 */
.about-text {
  color: var(--color-muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-text.mb-lg {
  margin-bottom: 32px;
}

/* 數值卡片 — 上標符號大小 */
.about-stat .num span {
  font-size: 1.8rem;
}

/* 形象圖容器 */
.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
  width: 100%;
  display: block;
}

/* 公司資訊表格 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.info-table td {
  padding: 12px 16px;
  border-bottom: 2px solid #fff;
}

.info-table td:first-child {
  background: var(--color-light);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-dark);
  width: 120px;
  white-space: nowrap;
}

.info-table td:last-child {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* 辦公室地圖 */
.map-wrap {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  border: 0;
  display: block;
}

/* 地址說明文字 */
.location-text {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.location-text .material-symbols-outlined {
  font-size: 16px;
  color: var(--color-primary);
  vertical-align: middle;
}

/* section-title 尺寸變體 */
.section-title-sm {
  font-size: 1.5rem;
}

/* CTA Banner — 按鈕群組 */
.cta-btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA Banner — 說明文字 */
.cta-banner p {
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 36px;
}

/* CTA Banner — 白色按鈕變體（用於紅色背景上） */
.btn-primary-white {
  background: #fff;
  color: var(--color-primary);
}

.btn-primary-white:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.btn-primary-white .material-symbols-outlined {
  font-size: 18px;
}

/* ============================================================
   ERP PAGE - 技術 Logo 格
   ============================================================ */
.tech-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 960px) {
  .tech-logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .tech-logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

.tech-logo-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 12px 14px;
  text-align: center;
  transition: var(--transition);
}

.tech-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.tech-logo-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.tech-logo-card span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* 建置方式 3 欄橫排 */
.deploy-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .deploy-features {
    grid-template-columns: 1fr;
  }
}

.deploy-feature-card {
  background: var(--color-light);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.deploy-feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.deploy-feature-card p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   MULTI-MEDIA PAGE
   ============================================================ */
.mm-integration-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
}
