@import url("https://assets.mlcdn.com/fonts.css?version=1764685");
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200;400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;700&display=swap");

@import url("./main.css");
@import url("./header.css");
@import url("./home.css");
@import url("./books.css");
@import url("./merch.css");
@import url("./author.css");
@import url("./activity.css");
@import url("./contact.css");
@import url("./promo.css");
@import url("./admin.css");

/* =========================================
   首頁樣式調整 (Home Page Adjustments)
   ========================================= */

/* 1. 購書管道及版面寬度調整 */
/* 1. 購書管道及版面寬度調整 */
.home-align-container {
    width: fit-content !important;
    min-width: 450px !important;
    /* 維持標題最小間隙感 */
    max-width: 95vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 雙黃線緊貼 Banner */
.hero-carousel {
    margin-bottom: 0 !important;
}

#home.page-section {
    padding-top: 0 !important;
}

.home-divider {
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    width: 100% !important;
    /* 確保隨容器伸縮 */
}

/* 2. New Publication 標題調整 */
.news-title {
    font-size: 72px !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 200 !important;
    /* Extra Light */
    text-align: justify !important;
    text-align-last: justify !important;
    width: 100% !important;
    display: block !important;
    letter-spacing: -0.01em !important;
    word-spacing: -0.4em !important;
    /* 再次縮小單字之間的空格 (再小 1/2) */
    line-height: 1.2 !important;
    /* Wix 式標題行高 */
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    /* 增加標題與下方內容的間距 */
    white-space: nowrap !important;
    overflow: hidden;
}

/* 3. 書籍列表與年度區塊間距 */
.year-block {
    margin-bottom: 45px !important;
    /* 增加年度區塊之間的間距 */
    padding-bottom: 0 !important;
}

.year-title {
    margin-bottom: 25px !important;
    /* 年度標題與書籍列表的間距 */
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

.book-list-row {
    display: grid;
    grid-template-columns: auto auto;
    /* 讓欄位隨內容伸縮 */
    gap: 12px 60px !important;
    /* 增加左右間距使畫面更大氣 */
}

.book-list-item {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    /* 書籍名稱行高 */
    display: flex;
    align-items: center;
    white-space: nowrap !important;
    /* 強制不換行 */
}

/* 書籍分類圖細節 */
.home-book-tag {
    height: 25.5px !important;
    margin-right: 12px !important;
    /* 圖標與文字間距 */
}

/* 購書管道區塊 */
.shop-channels {
    margin-top: 20px !important;
    margin-bottom: 80px !important;
    /* 底部留白 */
}

.shop-header {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    margin-bottom: 25px !important;
    /* 與年度標題一致 */
}

.shop-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 2rem !important;
    /* 內容行距與書籍列表一致 */
    margin-top: 0 !important;
    line-height: 1.6 !important;
    padding-left: 20px !important;
}

/* 手機版樣式同步 */
@media (max-width: 768px) {
    .home-align-container {
        width: 95% !important;
        min-width: auto !important;
    }

    .book-list-row {
        grid-template-columns: 1fr !important;
        /* 手機版改為單欄以應對窄螢幕 */
    }

    .book-list-item {
        white-space: normal !important;
    }

    .year-block {
        margin-bottom: 35px !important;
    }

    .shop-items {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding-left: 20px !important;
    }

    .news-title {
        font-size: 32px !important;
        white-space: normal !important;
        margin-bottom: 30px !important;
        text-align: center !important;
        text-align-last: center !important;
        word-spacing: 1ch !important;
        /* 間隔一個字元寬度 */
        letter-spacing: normal !important;
    }
}

/* 4. 字體大小調整 (原本 1rem 的部分) */
#homeYearlyList .year-title,
#homeYearlyList h3,
#homeYearlyList .book-list-item,
#homeYearlyList h4 {
    font-size: 0.9rem !important;
    /* 改為 0.9rem */
    font-weight: 400 !important;
    /* 維持不加粗 */
}

/* 確保購書管道內的段落或清單也符合雙欄位 */
.shop-items p,
.shop-items div {
    margin: 0;
}

.rich-text-content ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    width: 100%;
}