 .banner-of-the-top {
            display: block;
            text-align: center;
            margin-left: auto;
            margin-right: auto;
        }

        .banner {
            margin: 0 auto;
            display: block;
            max-width: 100%;
            width: 600px;
            height: auto;
        }

        .yellow-line {
            width: 100px;
            height: 3px;
            background-color: #FFD700; /* 黃色線 */
            margin: 0 auto 40px; /* 置中 + 下面空間 */
        }

        /* 文章列表樣式 */
        .latest-articles-section {
            max-width: 1000px; /* 限制寬度，唔太闊 */
            margin: 40px auto 0; /* 上方間距，自動居中 */
        }

        h2 {
            text-align: center;
            color: #333;
            
            
            margin: 30px 0px;
            font-size: 2em;
            
        }

        /* 每篇文章格仔 - 左右布局 */
        .passage-info {
            background: white;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* 輕陰影，卡片感 */
            transition: box-shadow 0.3s ease;
            display: flex; /* 新增：flex布局 */
            gap: 20px; /* 左右間距 */
            align-items: flex-start; /* 頂部對齊 */
        }

        .passage-info:hover {
            box-shadow: 0 4px 20px rgba(0,0,0,0.15); /* hover加陰影 */
        }

        /* 左邊文字區 */
        .passage-text {
            flex: 1; /* 佔剩餘空間 */
            margin: 0;
        }

        .passage-info h3 {
            margin-bottom: 10px;
            font-size: 1.5em;
        }

        .passage-info h3 a {
            color: #4adbed; /* 藍色link */
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .passage-info h3 a:hover {
            opacity: 0.8;
        }

        .passage-info .post-date {
            color: #666;
            font-size: 0.95em;
            
            font-weight: 500;
            margin-bottom: 10px;
            
        }

        /* 新增：預覽文字 */
        .passage-info .preview {
            color: #555;
            font-size: 0.95em;
            margin: 0 0 16px 0;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3; /* 限制3行，省略號 */
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Tag buttons */
        .passage-info .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .passage-info .tag-button {
            background: #ffc709; /* 黃色底 */
            color: white;
            border: none;
            padding: 5px 12px;
            border-radius: 20px; /* 圓角 */
            font-size: 0.85em;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .passage-info .tag-button:hover {
            opacity: 0.8;
            
        }

        /* 右邊圖片 */
        .passage-info .article-thumb {
            flex: 0 0 30%; /* 固定佔30%寬度，唔伸縮 */
            height: auto;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            object-fit: cover;
            max-width: 350px; /* 大螢幕上限，防太闊 */
        }

        /* 小螢幕：堆疊布局 */
        @media (max-width: 768px) {
            .passage-info {
                flex-direction: column; /* 垂直堆疊 */
                padding: 15px;
                margin-bottom: 15px;
            }
            .passage-info h3 {
                font-size: 1.3em;
            }
            .passage-info .article-thumb {
                width: 100%; /* 全寬 */
                max-width: 300px; /* 唔太闊 */
                align-self: center; /* 圖片居中 */
            }
        }

        

    .main-page-hero {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;               /* 防止圖片載入前閃白 */
  }

 

  /* 關鍵修正 1：display: flex */
  .hero-wrapper {
    
    display: flex;                  /* 呢句係重點！ */
    width: 100%;
    transform: translateX(0);
    transition: transform 0.8s ease-in-out;
  }



  .hero-item {
    min-width: 100%;                /* 每張佔滿視窗 */
    flex-shrink: 0;                 /* 唔畀壓縮 */
    position: relative;
  }

  .hero-item img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;                 /* 左右置中，貼頂 */
  }

/* ─── 窄螢幕專用強制修正（≤675px）─── */
@media (max-width: 675px) {
    .main-page-hero {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    /* 這三行係重點中的重點 */
    .hero-wrapper {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        transform: translateX(0);   /* 防止 JS 初次計算錯 */
    }

    .hero-item {
        width: 100% !important;        /* 改用 width 而唔係 min-width */
        min-width: 100% !important;    /* 雙保險 */
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .hero-item img {
        width: 100% !important;
        height: auto !important;
        display: block;
        object-fit: contain;
        background: #000;
    }
}

  .hero-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 18px 24px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
  }

  .hero-caption a {
    color: white;
    text-decoration: none;
    display: block;
  }

  .hero-caption a:hover { opacity: 0.9; }

  /* 小圓點放喺圖下面（你原本想要嘅位置） */
  .hero-dots {
    text-align: center;
    padding: 16px 0 8px;
  }

  .hero-dots span {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin: 0 6px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
  }

  .hero-dots span.active {
    background: #333;
  }

  
    .grids {
        display:grid;
        grid-template-columns:repeat(3,1fr);
        gap:20px;
        max-width:1400px;
        margin:50px auto;
        width:100%;
    }
    .grid-item{
        position:relative;
        overflow:hidden;
        border:4px solid white;
        border-radius:12px;
        aspect-ratio:1/1;
        cursor:pointer;
    }
    .grid-item:hover img{
        transform:scale(1.05);
        filter: brightness(0.75);
        transition: transform 0.4s ease, filter 0.4s ease;
    }
    .grid-item img{
        width:100%;
        height:100%;
        object-fit:cover;
        transition:transform .4s ease;
        display:block;
    }
    .title-overlay{
        position:absolute;
        top:0; left:0; right:0;
        /*padding:12px 14px;*/
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
        color:white;
        font-size:1.15rem;           /* 文字細啲 */
        font-weight:bold;
        text-shadow:2px 2px 8px rgba(0,0,0,0.9);
        pointer-events:none;
        z-index:2;
        line-height:1.3;
    }
    /* 手機版 */
    @media (max-width:400px){
        .grids{grid-template-columns:1fr;}
    }
    @media (min-width:401px) and (max-width:700px){
        .grids{grid-template-columns:repeat(2,1fr);}
    }