
/* ========================================
   本週焦點：動態文章與輪播
======================================== */

.featured-slider {
    width: 100%;
    overflow: hidden;
}

.featured-track {
    display: flex;
    width: 100%;
    transition: transform .55s ease;
    will-change: transform;
}

.featured-track > .featured-grid {
    flex: 0 0 100%;
    min-width: 0;
    grid-template-columns: 1.08fr .92fr;
    gap: 38px;
}

/* 主打文章：圖片在上、文字在下 */
.featured-section .feature-main {
    display: block;
    min-width: 0;
}

.featured-section .featured-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #edf1f7;
}

.featured-section .featured-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.featured-section .featured-cover:hover img {
    transform: scale(1.04);
}

.featured-section .featured-info {
    padding-top: 15px;
}

.featured-section .featured-info h3 {
    font-size: 19px;
    line-height: 1.55;
    margin: 10px 0;
}

.featured-section .featured-info p {
    font-size: 12px;
    line-height: 1.9;
    color: #8793a4;
    margin: 0 0 14px;
}

.featured-section .feature-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    gap: 16px;
    min-width: 0;
}


/* 右側兩篇小文章：圖片左、文字右 */
.featured-section .feature-small {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    min-width: 0;
    padding: 0 0 18px;
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.featured-section .feature-small .featured-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.featured-section .feature-small .featured-info {
    min-width: 0;
    padding-top: 0;
}

.featured-section .feature-small h3 {
    font-size: 14px;
    line-height: 1.55;
    margin: 6px 0;
}

.featured-section .feature-small .article-meta {
    font-size: 9px;
}

.featured-section .feature-small .read-link {
    font-size: 10px;
}


.featured-section .feature-small:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.featured-section .feature-small .featured-cover {
    aspect-ratio: 16 / 9;
}

.featured-section .feature-small .featured-info {
    padding-top: 10px;
}

.featured-section .feature-small h3 {
    font-size: 14px;
    line-height: 1.55;
    margin: 6px 0;
}

.featured-section .feature-small .article-meta {
    font-size: 9px;
}

.featured-section .feature-small .read-link {
    font-size: 10px;
}

/* 輪播頁面指示點 */
.featured-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
}

.featured-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50px;
    background: #d8deea;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.featured-dot.active {
    width: 24px;
    background: var(--blue);
}

/* 平板 */
@media (max-width: 1050px) {
    .featured-track > .featured-grid {
        gap: 24px;
    }

    .featured-section .featured-info h3 {
        font-size: 17px;
    }
}

/* 手機 */
@media (max-width: 760px) {
    .featured-track > .featured-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .featured-section .feature-list {
        gap: 20px;
    }

    .featured-section .featured-info h3 {
        font-size: 16px;
    }

    .featured-section .feature-small h3 {
        font-size: 13px;
    }

    .featured-section .featured-info p {
        font-size: 11px;
    }
}
.story-art {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
}

.story-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-symbol {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    overflow: hidden;
    border-radius: 50%;
}

.app-symbol img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

.review-visual a {
    display: block;
    width: 100%;
    height: 100%;
}

.review-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.review-card:hover .review-visual img {
    transform: scale(1.04);
}
.latest-thumb {
    display: block;
    width: 143px;
    height: 174px;
    flex: 0 0 143px;
    overflow: hidden;
    border-radius: 12px;
}

.latest-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.latest-thumb:hover img {
    transform: scale(1.05);
}
/* =====================================
   SoftBlog 首頁全站連結 Hover 效果
===================================== */

/* 一般文字連結 */
a {
    transition: color .25s ease, background-color .25s ease;
}

/* 文章標題 */
.article-card h3 a:hover,
.review-card h3 a:hover,
.latest-feature h3 a:hover,
.compact-copy b:hover {
    color: #2563eb;
}

/* 更多連結：文字與箭頭同步互動 */
.more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .25s ease;
}

.more-link:hover {
    color: #2563eb;
}

.more-link span {
    display: inline-block;
    transition: transform .25s ease;
}

.more-link:hover span {
    transform: translate(4px, -2px);
}
.more-link {
    transition: color .25s ease, transform .25s ease;
}

.more-link:hover {
    transform: translateX(3px);
}
/* 右側清單連結 */
.latest-links a,
.popular-items a {
    transition: color .25s ease, padding-left .25s ease;
}

.latest-links a:hover,
.popular-items a:hover {
    color: #2563eb;
}

/* 導覽選單 */
nav a {
    transition: color .25s ease;
}

nav a:hover {
    color: #2563eb;
}

/* 按鈕 */
button,
.btn,
.button {
    transition: background-color .25s ease,
                color .25s ease,
                transform .25s ease;
}

button:hover,
.btn:hover,
.button:hover {
    transform: translateY(-2px);
}

/* 尊重減少動態效果設定 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
/* 預設隱藏摘要 */
.featured-summary {
    display: none;
}

/* 每組第一篇主打文章顯示摘要 */
.feature-main .featured-summary {
    display: block;
}
/* 首頁廣告區域 */
.home-ad-wrap {
    width: 100%;
    max-width: 1350px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.home-ad-inner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

.home-ad-inner ins {
    display: block;
    max-width: 100%;
}

/* 手機版 */
@media (max-width: 767px) {
    .home-ad-wrap {
        margin: 25px auto;
        padding: 0 12px;
    }
}
/* 最新文章：從最新文章開始按鈕 */
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition:
        color .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.btn-light b {
    display: inline-block;
    transition: transform .25s ease;
}

/* 滑鼠移入 */
.btn-light:hover {
    color: #fff;
    background-color: #087cf0;
    border-color: #087cf0;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(8, 124, 240, .18);
}

.btn-light:hover b {
    color: #fff !important;
    transform: translate(3px, -3px);
}
/* =================================
   教學指南：圖片與連結 Hover 效果
================================= */

/* 文章圖片 */
.story-art {
    display: block;
    overflow: hidden;
    position: relative;
}

.story-art img {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform .4s ease, filter .3s ease;
}

/* 滑鼠移入圖片 */
.story-art:hover img {
    transform: scale(1.0);
    filter: brightness(.5);
}

/* HOW TO 標籤 */
.story-art .art-chip {
    transition: background-color .25s ease, color .25s ease;
}

.story-art:hover .art-chip {
    background-color: #087cf0;
    color: #fff;
}

/* 文章標題 */
.story-card h3 a {
    transition: color .25s ease;
}

.story-card h3 a:hover {
    color: #087cf0;
}
.featured-info h3 a:hover {
    color: #087cf0;
}
/* 閱讀文章連結 */
.story-card .read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .25s ease;
}

.story-card .read-link:hover {
    color: #087cf0;
}

.story-card .read-link b {
    display: inline-block;
    transition: transform .25s ease;
}

.story-card .read-link:hover b {
    transform: translateX(3px);
}

/* 整張文章卡片 */
.story-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.story-card:hover {
    transform: translateY(-2px);
}

/* 減少動態效果設定 */
@media (prefers-reduced-motion: reduce) {
    .story-card,
    .story-art img,
    .story-card a,
    .story-art .art-chip {
        transition: none !important;
    }
}
/* Windows 工具箱：前往軟體吧下載 */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition:
        color .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.btn-outline b {
    display: inline-block;
    transition: transform .25s ease;
}

/* 滑鼠移入 */
.btn-outline:hover {
    color: #fff;
    background-color: #087cf0;
    border-color: #087cf0;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(8, 124, 240, .18);
}

.btn-outline:hover b {
    color: #fff !important;
    transform: translate(3px, -3px);
}
/* =====================================
   最新文章：手機版第一篇改為上下排列
===================================== */

@media screen and (max-width: 767px) {

    /* 主文章強制單欄排列 */
    #latest .latest-layout .latest-feature {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        align-items: start !important;
        gap: 0 !important;
    }

    /* 第一篇文章縮圖 */
    #latest .latest-feature > .latest-thumb {
        display: block !important;
        grid-column: 1 !important;
        grid-row: 1 !important;

        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;

        flex: none !important;
        overflow: hidden;
        border-radius: 12px;
    }

    #latest .latest-feature > .latest-thumb img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 文章文字放在圖片下方 */
    #latest .latest-feature > div {
        grid-column: 1 !important;
        grid-row: 2 !important;

        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        padding: 20px 18px !important;
    }

    /* 分類與日期 */
    #latest .latest-feature .article-meta {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* 標題與摘要 */
    #latest .latest-feature h3,
    #latest .latest-feature p {
        width: 100%;
        word-break: normal;
        overflow-wrap: anywhere;
    }
}