/* ===== Hero（淺色頂圖） ===== */
.hero {
    background: url('https://images.unsplash.com/photo-1529336953121-4f3e3a175ab1?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    color: #fff;
    position: relative;
    padding: 2rem 0;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%)
}

.hero .container {
    position: relative;
    z-index: 2
}

/* ===== 區塊樣式 ===== */
.section-title {
    font-weight: 800;
    color: #0f172a
}

.lead-muted {
    color: #334155
}

/* 使命願景卡 */
.value-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06)
}

.value-card i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8efff;
    color: #1e40af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem
}

/* 里程碑時間線 */
.timeline {
    position: relative;
    padding-left: 1.5rem
}

.timeline:before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb
}

.timeline-item {
    position: relative;
    margin-bottom: 1.25rem
}

.timeline-item .dot {
    position: absolute;
    left: -2px;
    top: .3rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #dbeafe
}

/* 管理團隊卡 */
.team-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06)
}

.team-card .meta {
    padding: 16px
}

/* 合規區塊 */
.compliance {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7
}

.compliance .item {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 18px;
    height: 100%
}

/* 招募卡 */
.career-card {
    background: #0f172a;
    color: #dbe7ff;
    border-radius: 16px;
    padding: 24px
}

.career-card h5 {
    color: #fff
}

/* 容器：桌面剛好 4 欄寬度 = 4*180 + 3*18 = 774px；平板 694px */
.brand-pyramid {
    max-width: 774px;
    margin: 0 auto;
}

@media (max-width:991.98px) {
    .brand-pyramid {
        max-width: 694px;
    }
}

/* 每列：行寬由 JS 設定，靠 margin:auto 置中 */
.brand-row {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    margin: 0 auto 18px auto;
}

/* 卡片 */
.brand-card {
    background: #fff;
    border-radius: 14px;
    width: 180px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06);
    transition: transform .15s ease, box-shadow .2s ease;
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.brand-card.dark {
    background: #2b2421;
}

.brand-card.green {
    background: #157a55;
}

.brand-card img {
    max-height: 44px;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

/* 平板卡片尺寸 */
@media (max-width:991.98px) {
    .brand-card {
        width: 160px;
        height: 76px;
    }
}

/* 手機：2 欄流式，不做階梯 */
@media (max-width:767.98px) {
    .brand-pyramid {
        max-width: 100%;
    }

    .brand-row {
        width: auto !important;
        justify-content: center;
        flex-wrap: wrap;
    }

    .brand-card {
        width: 44vw;
        height: 64px;
        max-width: 200px;
    }

    .brand-card img {
        max-height: 36px;
        max-width: 70%;
    }
}

/* === Brand Bar 容器（置中、白底、圓角、陰影）=== */
.brand-rail-wrap {
    position: relative;

    margin: -40px 20px;
    /* 與上下 section 之間略微重疊感 */
    padding: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    overflow: hidden;
    /* 隱藏左右 Mask 外溢 */
    height: 96px;
    /* Bar 高度 */
    display: flex;
    align-items: center;
}

/* 左右漸層遮罩，模仿官網視覺 */
.brand-rail-wrap::before,
.brand-rail-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brand-rail-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff 10%, rgba(255, 255, 255, 0));
}

.brand-rail-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff 10%, rgba(255, 255, 255, 0));
}

/* 滾動軌道 */
.brand-track {
    display: flex;
    gap: 48px;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: scrollX 28s linear infinite;
}

/* 懸停暫停 */
.brand-rail-wrap:hover .brand-track {
    animation-play-state: paused;
}

/* 單一 Logo */
.brand-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    /* Logo 區塊高度 */
    min-width: 120px;
    /* 每個 Logo 最小寬，確保節奏一致 */
    padding: 0 8px;
    opacity: .92;
    transition: transform .2s ease, opacity .2s ease;
}

.brand-item img {
    max-height: 40px;
    /* 控制 Logo 圖高 */
    width: auto;
    display: block;
    object-fit: contain;
    filter: grayscale(10%);
    /* 輕微去彩，符合 B2B 視覺 */
}

.brand-item:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* 連續滾動關鍵影格 */
@keyframes scrollX {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

    /* 因為我們會把清單複製一份銜接，移動一半寬度就循環 */
}

/* RWD 微調 */
@media (max-width: 576px) {
    .brand-rail-wrap {
        height: 84px;
    }

    .brand-item {
        min-width: 100px;
        gap: 24px;
    }

    .brand-rail-wrap::before,
    .brand-rail-wrap::after {
        width: 36px;
    }
}
/* 色票 */
:root{
    --primary-500:#3b82f6;   /* 主藍 */
    --primary-600:#2563eb;   /* 深藍 */
    --accent-500:#06b6d4;    /* 藍綠點綴 */
    --gradient-main:linear-gradient(90deg,#2563eb,#06b6d4);
    --ink:#1e293b;
    --muted:#64748b;
    --card:#ffffff;
    --bg:#f5f9ff;
  }
  
  /* 導覽列 */
  .navbar .brand-logo{
    width:28px;height:28px;border-radius:6px;
    background: linear-gradient(135deg,#0f5e54,#1b7b6c);
    display:inline-block;
  }
  .navbar .main-menu .nav-link{
    padding: .5rem 1rem; color:#23302e;
  }
  .navbar .main-menu .nav-link.active{
    color:#0f5e54; font-weight:600;
    border-bottom:3px solid #0f5e54; border-radius:0;
  }
  
  /* 英雄區 */
  .banner{
    background: linear-gradient(180deg,#f0f6ff 0%, #e6f0ff 100%); /* 淺藍背景 */
  padding-block: 80px;
    
    position: relative;
  }

  .banner .btn-success{
    background: var(--gradient-main);
    border: none;
  }
  .banner .btn-success:hover{
    opacity:.9;
  }
  
  /* 插畫容器 */
  .hero-illustration{
    background: radial-gradient(200px 200px at 70% 30%, #dcefed 0, transparent 60%);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,.06) inset;
  }
  .hero-illustration svg{ width:100%; height:auto; display:block; }
  
  /* 產品功能 */
  .features{ background:#fff; padding:64px 0; }
  .features h2{ color:#111; letter-spacing: .04em; }
  
  .feature{
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(16,59,55,.10);
    padding: 24px;
    display: flex; gap: 18px; align-items: center;
  }
  .feature .icon-wrap{
    background: var(--gradient-main);
    color:#fff;
    box-shadow: 0 10px 24px rgba(37,99,235,.2);
  }
  .feature h5{ color: var(--ink); }
  .feature p{ color: var(--muted); }
  .feature p{ color:#4a5a57; }
  
  /* RWD */
  @media (max-width: 991.98px){
    .banner{ padding:48px 0; }
    .navbar .main-menu .nav-link.active{ border-width:2px; }
  }
  @media (max-width: 767.98px){
    .banner{ padding:40px 0; }
    .feature{ padding:20px; border-radius:14px; }
    .feature .icon-wrap{ width:64px;height:64px; font-size:24px; }
  }