
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    background-color: #eaeff9;
    color: #231815;
    line-height: 1.8;
    position: relative;
    overflow-x: hidden;
}

/* 背景底圖 */
body::before {
    content: "";
    position: absolute; 
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; 
    aspect-ratio: 1 / 1;
    /* 改為auto，讓圖片1:1呈現原始大小 */
    background: url('../images/bg.jpg') top center/auto no-repeat;
    z-index: -1;
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 0px;
}

/* 圖片1:1 */
.image-1-1-container {
    display: flex; 
    justify-content: center; 
    align-items: center;
    margin: 0 auto; 
    overflow: hidden;
}

.image-1-1-container img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain;
}

/* === 動態效果 === */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-layer {
    opacity: 0;
    animation: fadeUp 1.5s ease forwards;
}

.layer-1 { animation-delay: 0.2s; }
.layer-2 { animation-delay: 0.5s; }
.layer-3 { animation-delay: 2.2s; } 
.layer-4 { animation-delay: 2.5s; }
.layer-5 { animation-delay: 2.8s; }


.row-animate {
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards; 
}


.company-card:nth-child(1), .company-card:nth-child(2), .company-card:nth-child(3) { animation-delay: 0.8s; }
.company-card:nth-child(4), .company-card:nth-child(5), .company-card:nth-child(6) { animation-delay: 1.1s; }
.company-card:nth-child(7), .company-card:nth-child(8) { animation-delay: 1.4s; }

/* === 表頭樣式 === */
.header-section { 
    text-align: center; 
    margin-bottom: 10px; 
}

.title-container { 
    max-width: 1200px;
    margin-top: 230px; 
}

.intro-section { 
    margin-bottom: 30px; 
}

.intro-text-box {
    width: 1000px;
    margin: 0 auto; 
    text-align: center;
    color: #221815; 
    font-size: 22px; 
    margin-bottom: 25px; 
}

.date-box { text-align: center; }
.date-img { max-width: 100%; height: auto; }

/* === 參訪公司 === */
.companies-grid {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center;
    gap: 25px; 
    margin-bottom: 40px;
}

.company-card {
    flex: 0 0 calc(33.333% - 20px);
    position: relative;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* --- 背景S曲線線條 (重疊與溢出隱藏) --- */
/* 上半部：去左框，右側彎曲，紫到粉紅漸層 */
.snake-top-wrapper {
    position: absolute;
    top: 0; 
    left: 40px; 
    right: 0; 
    height: 60px;
    overflow: hidden; 
    z-index: 0;
}

.snake-top-inner {
    position: absolute;
    top: 0; left: -2px; right: 0; bottom: 0; /* left: -2px 隱藏左側框線 */
    border-radius: 0 30px 30px 0;
    padding: 2px; /* 框線粗細 */
    background: linear-gradient(to right bottom, #7b2cbf, #d84594);
    /* 遮罩：保留邊框 */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* 下半部：去右框，左側彎曲，粉紅到橘色漸層 */
.snake-bottom-wrapper {
    position: absolute;
    top: 58px; /* 精準重疊上半部的底線(60px - 2px)結合成一體 */
    left: 0; 
    right: 30px; 
    bottom: 0;
    overflow: hidden; 
    z-index: 0;
}

.snake-bottom-inner {
    position: absolute;
    top: 0; left: 0; right: -2px; bottom: 0; /* right: -2px 隱藏右側框線 */
    border-radius: 30px 0 0 30px;
    padding: 2px;
    background: linear-gradient(to right bottom, #d84594, #ffce44);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* --- 裝飾點 --- */
.dot { position: absolute; z-index: 1; border-radius: 50%; }

.top-dot {
    top: -4px; 
    left: 30px; 
    width: 10px; 
    height: 10px;
    border: 2px solid #7b2cbf;
    background: #f0f0f0;
}

.bottom-dot {
    bottom: -3px; 
    right: 28px;
    width: 8px; 
    height: 8px;
    background: linear-gradient(135deg, #d84594, #ffce44);
}

/* --- 內容 --- */
.card-content {
    position: relative;
    z-index: 2;
    padding: 0 25px 15px 25px;
}

.card-title {
    color: #d32f2f;
    font-size: 34px;
    font-weight: bold;
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.card-text {
    color: #231815;
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
    padding-top: 10px;
}

/* === 按鈕 === */
.actions-section { 
    text-align: center; 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    margin-bottom: 40px; 
}

.glass-btn {
    background: rgba(255, 120, 0, 1); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5); 
    box-shadow: 0 5px 20px rgba(255, 120, 0, 0.3);
    color: #ffffff; 
    font-size: 35px; 
    font-weight: bold; 
    text-decoration: none; 
    padding: 5px 30px; 
    border-radius: 50px; 
    transition: all 0.3s ease;
}

.glass-btn:hover { 
    background: rgba(255, 140, 0, 0.9); 
    transform: translateY(-3px); 
}

/* === 優惠價格 === */
.price-bar { 
    background: linear-gradient(to right, #1e9cd9, #0b3a95); 
    padding: 0px; 
    text-align: center; 
    width: 100%; 
}

.price-content { 
    font-size: 32px; 
    font-weight: bold; 
    display: flex; 
    justify-content: center; 
    align-items: baseline; 
    flex-wrap: wrap; 
    gap: 10px; 
}

.text-white { color: #ffffff; } 
.text-yellow { color: #fff100; } 
.spacer { margin: 0 10px; }

.currency { font-size: 16px; margin-right: 2px; }

.highlight-price { 
    font-size: 50px; 
    margin-right: 15px; 
}

/* === footer === */
.site-footer { 
    background-color: #bce1df; 
    padding: 30px 20px; 
}

.contact-box { 
    display: flex;
    width: 1000px;
    margin: 0 auto; 
    justify-content: center; 
    gap: 40px; 
}

.contact-container { 
    max-width: 1100px; 
}


/* === 手機版RWD響應式 === */
@media (max-width: 768px) {
    body::before { 
        width: 100%;
        aspect-ratio: 1 / 1;
        background-size: 255% 160%; 
        background-position: top center; 
    }

    .page-container { padding: 30px 10px 0px; }
    
    /* title 1:1 */
    .title-container { 
        width: 100%; 
        max-width: 100%; 
        margin-top: -40px; 
        aspect-ratio: 1 / 1; 
    }
    
    .intro-text-box { 
        width: 95%; 
        margin: 0 auto 30px; 
        text-align: left; 
        font-size: 18px;
        margin-top: -130px;
        margin-bottom: 20px; 
    }

    .intro-section { 
        margin-bottom: 20px; 
    }

    
    .companies-grid { 
        gap: 30px 15px; 
    }

    /* 兩家排列 */
    .company-card { 
        flex: 0 0 calc(50% - 7.5px); 
    }
    
   
    .company-card:nth-child(1), .company-card:nth-child(2) { animation-delay: 0.5s; }
    .company-card:nth-child(3), .company-card:nth-child(4) { animation-delay: 0.8s; }
    .company-card:nth-child(5), .company-card:nth-child(6) { animation-delay: 1.1s; }
    .company-card:nth-child(7), .company-card:nth-child(8) { animation-delay: 1.4s; }

    .card-title { 
        font-size: 24px; 
        line-height: 26px;
    }

    .card-text { 
        font-size: 16px;
        line-height: 1.6;
/*        text-align: justify;*/
        padding-top: 10px; 
   }

    .card-content {
        padding: 0 15px 15px 15px;
    }

    
    /* 裝飾圓點 */
    .snake-top-wrapper { 
        left: 35px; 
    }

    .snake-bottom-wrapper { 
        right: 35px; 
    }

    .top-dot { 
        left: 25px; 
    }

    .bottom-dot { 
        right: 30px; 
    }

    .actions-section { flex-direction: column; align-items: center; gap: 15px; }

    .glass-btn { 
        width: 85%; 
        max-width: 300px; 
        font-size: 32px; 
    }
    
    /* 團費與早鳥優惠 */
    .price-content {  
        flex-direction: column; 
        align-items: center; 
        font-size: 22px; 
        padding: 15px 0;
        gap: 5px;
    } 

    .spacer { display: none; }

    .highlight-price { 
        font-size: 34px; 
        margin-right: 5px; 
    }

    .currency { font-size: 14px; }


    .contact-box { 
        width: 100%; 
        flex-direction: column; 
        align-items: center; 
        gap: 20px; 
    } 
    
    .contact-container { 
        width: 100%; 
        max-width: 370px; 
    }

    .site-footer {  
        padding: 25px 15px; 
    }

}