 * { box-sizing: border-box; margin: 0; padding: 0; }
       /* 原本格式 body { font-family: -apple-system, BlinkMacSystemFont, sans-serif; background-color: #f5f5f7; color: #333; }*/
         
        body {
	padding: 1rem .5rem;
	font-size: 1.3rem;
	line-height: 1.2;
	max-width: 60rem;
	margin: 0 auto;
	color: #333;
        background: #dadada;
        text-align: center;
}
 
        
        img { 
            width: 100%; 
            height: 100%; 
            object-fit: contain; /* 自動縮小配合 DIV，不裁切 */
            display: block; 
        }
        
        /* 導覽列 */
        .header { 
            background-color: #fff; 
            padding: 15px 20px; 
            border-bottom: 1px solid #e5e5e5; 
            position: sticky; 
            top: 0; 
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .header h1 { font-size: 1.3rem; font-weight: 600; }
        
        .year-select {
            padding: 8px 16px;
            font-size: 1rem;
            border: 1px solid #d2d2d7;
            border-radius: 8px;
            background-color: #fff;
            cursor: pointer;
        }

        .year-section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin: 40px 0 20px 0;
            color: #1d1d1f;
            border-left: 5px solid #0071e3;
            padding-left: 12px;
            scroll-margin-top: 80px; 
        }

        .timeline-container { max-width: 800px; margin: 0 auto; padding: 0 20px 40px 20px; }
        
        /* 卡片主體 */
        .album-card { 
            background: #fff; 
            border-radius: 16px; 
            overflow: hidden; 
            margin-bottom: 30px; 
            box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
            display: flex;
            flex-direction: column;
        }
        
        /* 文字標題區：點擊可另開視窗 */
        .card-meta-link {
            text-decoration: none;
            color: inherit;
            display: block;
            padding: 15px 20px; 
            background: #fff;
            transition: background 0.2s;
        }
        .card-meta-link:hover {
            background: #fdfdfd;
        }
        .card-date { font-size: 1.1rem; font-weight: 700; color: #1d1d1f; }
        .card-location { font-size: 0.9rem; color: #0071e3; margin-top: 2px; }
        
        /* 💡 首頁照片展示容器 (加上相對定位以利浮動按鈕排版) */
        .photo-wrapper {
            position: relative;
            height: 400px;
            background-color: #111; /* 留白處背景色 */
            overflow: hidden;
        }
        
        /* 點擊照片本身也能另開視窗的超連結層 */
        .photo-click-overlay {
            display: block;
            width: 100%;
            height: 100%;
        }

        /* 💡 首頁左右側浮動案件/按鈕 */
        .card-nav {
            position: absolute;
            top: 0;
            height: 100%;
            width: 6%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            background: linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0));
            color: rgba(255,255,255,0.6);
            font-size: 1.8rem;
            user-select: none;
            transition: all 0.2s;
            z-index: 10;
            opacity: 0; /* 預設隱藏，滑鼠移入卡片才顯現，畫面更乾淨 */
        }
        /* 滑鼠移入照片範圍時顯現按鈕 */
        .photo-wrapper:hover .card-nav {
            opacity: 1;
        }
        .card-nav:hover {
            background: rgba(0,0,0,0.6);
            color: #fff;
        }
        .nav-left { left: 0; background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0)); }
        .nav-right { right: 0; background: linear-gradient(to left, rgba(0,0,0,0.4), rgba(0,0,0,0)); }
        
        @media (max-width: 768px) {
            .header { flex-direction: column; gap: 10px; text-align: center; }
            .timeline-container { padding: 0 10px; }
            .photo-wrapper { height: 250px; }
            .card-nav { opacity: 1; width: 15%; font-size: 1.5rem; } /* 手機端按鈕保持常開方便觸控 */
        }

      
      