﻿@charset "utf-8";

/* ==========================================================
   ESG / Sitemap
   僅放網站地圖專用樣式。
   Header、Title、次選單、Footer、主 RWD 由 ESG 共用 CSS 負責。
   ========================================================== */

.sitemap-page {
    width: 95%;
    margin: 0 auto;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

    .sitemap-page *,
    .sitemap-page *::before,
    .sitemap-page *::after {
        box-sizing: border-box;
    }

.sitemap-intro {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}

/* ---------- 分類網格 ---------- */

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 24px;
    align-items: start;
}

/* ---------- 單一分類 ---------- */

.sitemap-section {
    min-width: 0;
    padding: 0 0 12px;
}

    .sitemap-section h2 {
        margin: 0;
        padding: 0 0 9px;
        border-bottom: 2px solid #2e3289;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.4;
    }

        .sitemap-section h2 a,
        .sitemap-section h2 a:link,
        .sitemap-section h2 a:visited {
            color: #2e3289;
            text-decoration: none;
        }

            .sitemap-section h2 a:hover,
            .sitemap-section h2 a:focus {
                color: #636bda;
                text-decoration: none;
            }

/* ---------- 子項目 ---------- */

.sitemap-links {
    margin: 0;
    padding: 4px 0 0;
    list-style: none;
}

    .sitemap-links li {
        position: relative;
        margin: 0;
        padding: 8px 4px 8px 18px;
        border-bottom: 1px dotted #d0d0d0;
    }

        .sitemap-links li::before {
            position: absolute;
            top: 17px;
            left: 4px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #636bda;
            content: "";
        }

    .sitemap-links a,
    .sitemap-links a:link,
    .sitemap-links a:visited {
        display: block;
        color: #555;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

        .sitemap-links a:hover,
        .sitemap-links a:focus {
            color: #2e3289;
            text-decoration: underline;
        }

/* ---------- Tablet ---------- */

@media screen and (max-width: 900px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 600px) {
    .sitemap-page {
        width: 100%;
        margin: 0;
    }

    .sitemap-intro {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sitemap-section {
        padding-bottom: 4px;
    }

        .sitemap-section h2 {
            padding-bottom: 7px;
            font-size: 17px;
        }

    .sitemap-links {
        padding-top: 2px;
    }

        .sitemap-links li {
            padding-top: 7px;
            padding-bottom: 7px;
            font-size: 13px;
        }

            .sitemap-links li::before {
                top: 15px;
            }
}
