/* ===== 全域 ===== */
body {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    background: #0a0004;
    color: #fff;
    margin: 0;
    overflow-x: hidden;
}

/* ================= HEADER（強化版） ================= */

header {
    position: relative;
    overflow: hidden;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: linear-gradient(180deg,#7a1645,#120108);
}

/* 能量流（加強） */
header::before {
    content: "";
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 30% 40%, rgba(255,80,140,0.3), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(255,0,120,0.25), transparent 50%);
    animation: flowBg 10s ease-in-out infinite alternate;
}

@keyframes flowBg {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(-6%, -6%) scale(1.25); }
}

/* 掃描光 */
.scan-light, .scan-light2 {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    transform: rotate(25deg);
}

.scan-light {
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,200,230,0.6),
        transparent
    );
    animation: scanMove 5s linear infinite;
}

.scan-light2 {
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.08),
        transparent
    );
    animation: scanMove2 9s linear infinite;
}

@keyframes scanMove {
    from { transform: translateX(-100%) rotate(25deg); }
    to { transform: translateX(100%) rotate(25deg); }
}

@keyframes scanMove2 {
    from { transform: translateX(-120%) rotate(25deg); }
    to { transform: translateX(120%) rotate(25deg); }
}

/* ================= TIMELINE ================= */

.timeline {
    position: relative;
    margin-top: 120px;
    padding: 0 20px;
}

/* ✅ 中線（改為淡） */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255,80,140,0.2);
    transform: translateX(-50%);
    z-index: 0;
}

/* ✅ 動態流光（搭 GSAP） */
.timeline-glow {
    position: absolute;
    left: 50%;
    width: 4px;
    height: 200px;
    transform: translateX(-50%);
    z-index: 3;

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255,80,140,1),
        transparent
    );

    filter: blur(2px);
    pointer-events: none;

    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ===== 每段 ===== */
.timeline-item {
    position: relative;
    margin-bottom: 140px;
    transition: 0.3s;
}


/* ✅ hover整段亮 */
.timeline-item:hover {
    transform: translateY(-3px);
}

/* ===== 節點（強化版） ===== */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #ff4fa3;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;

    box-shadow:
        0 0 10px #ff4fa3,
        0 0 30px #ff4fa3,
        0 0 60px rgba(255,100,160,0.7);

    transition: 0.3s;
}

/* ✅ hover節點爆亮 */
.timeline-item:hover::before {
    transform: translateX(-50%) scale(1.4);
    box-shadow:
        0 0 20px #ff4fa3,
        0 0 50px #ff4fa3,
        0 0 80px #ff4fa3;
}

/* ===== full-text（開場） ===== */
.timeline-item.full-text {
    text-align: center;
    max-width: 800px;
    margin: 80px auto 140px auto; /* 上方留空間給點 */
    z-index: 20;
    position: relative;
}

/* ✅ 點在文字上方 */
.timeline-item.full-text::before {
    top: -30px;
}

/* ===== 中線影片（不脫離排版） ===== */
.timeline-video-center {
    width: 100%;
    margin-top: 30px;

    display: flex;
    justify-content: center;   /* ✅ 水平置中 */

    position: relative;
    z-index: 2;     /* ✅ 在中線上，但在內容下 */
}

/* ✅ 限制影片寬度（關鍵🔥） */
.timeline-video-center .ratio {
    width: 100%;
    max-width: 800px;   /* ← 就是防跑版關鍵 */
}

/* ✅ 讓文字/圖片在影片上層 */
.timeline-item .col-md-6 {
    position: relative;
    z-index: 5;
}


/* ===== 圖片 ===== */
.image-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.image-box img {
    width: 100%;
    border-radius: 12px;
    transition: 0.4s;
}

/* ✅ hover浮起 */
.image-box:hover img {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6),
                0 0 25px rgba(255,80,140,0.6);
}

/* 圖說 */
.caption {
    font-size: 13px;
    margin-top: 6px;
    color: rgba(255,255,255,0.7);
}

.img-logo{
    width: 200px;
    margin: 10px auto;
}

section{
    /*padding: 300px 150px;*/
}
/* ===== Card 基本 ===== */
.card {
    border: 1px solid rgba(255, 80, 140, 0.2);
    border-radius: 12px;

    transition: all 0.4s ease;
    transform: translateY(0);
}

/* ===== Hover 效果 ===== */
.card:hover {
    transform: translateY(-10px) scale(1.03);

    /* 展場光 */
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.6),
        0 0 25px rgba(255,80,140,0.5);

    border-color: rgba(255, 80, 140, 0.6);
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .card .btn-seeMore {
    margin-top: auto;
  }
      
.btn-seeMore {
    display: inline-block;
    padding: 10px 28px;
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
  
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  
    /* 主色系 */
    background: linear-gradient(135deg, #6e143e, #b23a6f);
  
    position: relative;
    overflow: hidden;
  
    transition: all 0.35s ease;
  }
  
  /* 外層光暈 */
  .btn-seeMore::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
  
    background: linear-gradient(120deg,
      rgba(178,58,111,.6),
      rgba(110,20,62,.6)
    );
  
    filter: blur(10px);
    opacity: 0;
    transition: 0.35s;
    z-index: -1;
  }
  
  /* 掃描光 */
  .btn-seeMore::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
  
    background: linear-gradient(
      120deg,
      transparent,
      rgba(255,255,255,0.5),
      transparent
    );
  
    transform: skewX(-20deg);
  }
  
  /* Hover */
  .btn-seeMore:hover {
    transform: translateY(-3px) scale(1.02);
    letter-spacing: 1.5px;
  
    color: #fff;
    box-shadow: 0 8px 22px rgba(110, 20, 62, 0.4);
  }
  
  .btn-seeMore:hover::before {
    opacity: 1;
  }
  
  .btn-seeMore:hover::after {
    left: 120%;
    transition: 0.8s;
  }
  
  /* Active */
  .btn-seeMore:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
  }

/* ===== 提示文字 ===== */
.partner-hint {
    color: rgba(255,255,255,0.6);
    font-size: 1.5em;
}

/* ===== 可點擊卡片 ===== */
.partner-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 游標提示 */
.partner-link:hover {
    cursor: pointer;
}

.partner-link:hover .card {
    transform: translateY(-8px) scale(1.03);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        0 0 20px rgba(255,80,140,0.6);
}


/* ===== 排版平衡（精修版） ===== */
@media (min-width: 768px) {

    .timeline-item.even .col-md-6:first-child {
        transform: translateX(-10px);
        padding-right:60px;
    }

    .timeline-item.even .col-md-6:last-child {
        padding-left:60px;
    }

    .timeline-item .order-md-2 {
        transform: translateX(10px);
        padding-left:60px;
    }

    .timeline-item .order-md-1 {
        padding-right:60px;
    }
}

/* 手機 */
@media (max-width: 767px) {

    .timeline::before {
        left: 12px;
    }

    .timeline-item::before {
        left: -5px;
        transform: none;
    }

    .timeline-item.full-text::before {
        left: -17px;
        top: 0;
    }

    .timeline-item.full-text {
        text-align: start!important;
    }

    .timeline-item {
        padding-left: 40px;
    }

    section{
        padding: 100px 10px;
    }

    .timeline-glow {
        display: none !important;
    }

    .timeline-video-center .ratio {
        width: 100%!important;
    }
}

/* ================= FOOTER ================= */

footer {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(180deg,#1a0610,#0a0004);
}

/* ✅ 正中心光線（修正） */
footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,80,140,0.8) 50%,
        transparent
    );
}

/* 光暈 */
footer::before {

    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        ellipse at center,
        rgba(255,80,140,0.2) 0%,
        rgba(255,80,140,0.08) 30%,
        transparent 70%
    );

    opacity: 0.7;
    will-change: transform;
}

@keyframes footerGlow {
    from { transform: translate(0,0); }
    to { transform: translate(-5%, -5%); }
}

.footer-content {
    position: relative;
    z-index: 2;
}
