:root {
    --primary-color: #b92547;
    --second-color: #2c363f;
    --accent-color: #e5b461;
    --bg-color: #faf8f5;
    --text-color: #333333;
    --light-text: #ffffff;
    --transition: 0.4s ease;
}

/* 基礎重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 頂部 Hero 區塊設計 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('Images/走讀北勢寮.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--light-text);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* 特色資訊卡片：玻璃擬物化風格 */
.trip-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.info-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
    color: #e0e0e0;
}

.info-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* 按鈕容器與次要按鈕 */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--light-text);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--light-text);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* 脈衝動畫按鈕（增加下單動力） */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(185, 37, 71, 0.8); }
    70% { box-shadow: 0 0 0 15px rgba(185, 37, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(185, 37, 71, 0); }
}

.badge {
    background: #e74c3c;
    color: white;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
    font-weight: normal;
}

.urgency-text {
    color: #ffd700;
    font-size: 1.1rem;
    margin-top: 25px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 通用按鈕樣式 */
.btn-primary, .btn-large {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(185, 37, 71, 0.4);
}

.btn-primary:hover, .btn-large:hover {
    background: #9b1e3b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(185, 37, 71, 0.6);
}

/* 內容區塊排版設定 */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--second-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 25px;
}

/* 時間軸與清單式排版 */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.timeline-item.reverse {
    flex-direction: row-reverse;
}

/* 圖片容器與替換圖片樣式 */
.timeline-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.placeholder-img {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    background-color: #e2e8f0;
}

.timeline-item:hover .placeholder-img {
    transform: scale(1.05); /* 滑鼠懸停的微放大互動 */
}

/* 專案本地生成的高畫質圖片 */
#img-market { background-image: url('Images/market.png'); }
#img-lunch { background-image: url('Images/飲食文化2.jpg'); }
#img-snack { background-image: url('Images/snack.png'); }
#img-medicine { background-image: url('Images/medicine.png'); }

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--second-color);
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* 底部行動呼籲區塊 */
.cta-section {
    background: var(--second-color);
    color: var(--light-text);
    text-align: center;
    padding: 80px 20px;
    margin-top: 50px;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* 頁腳 */
footer {
    background: #1a252f;
    color: #fff;
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 進場動畫效果 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 捲動時顯示的動畫 */
.appear-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.appear-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 響應式手機版設計 */
@media (max-width: 768px) {
    .timeline-item, .timeline-item.reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .trip-info {
        flex-direction: column;
        gap: 15px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
}
