/* --- 1. 全局精緻化設定 --- */
:root {
    --primary-color: #b76e79;
    /* 玫瑰金/乾燥玫瑰色 */
    --accent-color: #d4af37;
    /* 香檳金 */
    --bg-color: #fff9f9;
    --text-color: #5a4a4e;
}

body {
    font-family: 'Noto Serif TC', serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    /* 防止橫向滾動 */
}

/* 藝術字體 */
.script-font {
    font-family: 'Parisienne', cursive;
    color: var(--primary-color);
}

/* --- 2. 載入動畫 (Loading) --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.heart-beat {
    color: var(--primary-color);
    font-size: 3rem;
    animation: beat 1s infinite;
}

@keyframes beat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* --- 3. 音樂播放器按鈕 --- */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: 1px solid var(--primary-color);
    transition: 0.3s;
}

.music-control:hover {
    transform: scale(1.1);
}

.music-spin {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* --- 4. 導覽列 (毛玻璃效果) --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    /* 關鍵：毛玻璃 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.navbar-brand {
    font-family: 'Parisienne', cursive;
    font-size: 2rem;
    color: var(--text-color) !important;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- 5. 首頁 Hero (視差滾動) --- */
.hero {
    position: relative;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    background-attachment: fixed;
    /* 視差滾動關鍵 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* 稍微調亮一點 */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    border-radius: 15px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    font-size: 24px;
    opacity: 0.8;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- 6. 計時器區塊 (互動元素) --- */
.counter-section {
    padding: 60px 0;
    background: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.count-box {
    padding: 20px;
}

.count-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Arial', sans-serif;
}

.count-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: #999;
}

/* --- 7. 故事時間軸 (升級版) --- */
.timeline-section {
    padding: 100px 0;
    background-image: linear-gradient(to bottom, #fff9f9, #fff);
}

.timeline-item {
    margin-bottom: 60px;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border-left: 5px solid var(--primary-color);
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(183, 110, 121, 0.2);
}

.date-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* --- 8. 照片牆 (拍立得風格) --- */
.photo-card {
    background: white;
    padding: 10px 10px 40px 10px;
    /* 底部留白像拍立得 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: 0.4s;
    position: relative;
}

.photo-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: sepia(20%);
    /* 復古濾鏡 */
}

.photo-card:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.photo-card:nth-child(even) {
    transform: rotate(2deg);
}

.photo-caption {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Parisienne', cursive;
    font-size: 1.5rem;
    color: #555;
}

/* --- 9. 夢想清單 (卡片式) --- */
.dream-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: 0.3s;
    border: 1px solid #eee;
}

.dream-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.dream-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* --- Footer --- */
footer {
    background: #fff;
    padding: 50px 0;
    border-top: 1px solid #eee;
}
