:root {
    /* ===== JBD / 潔必達視覺語言（奶油底 + 金色導覽 + 深綠主CTA + 少量橘） ===== */
    --bg: #f6f4ee;
    /* 奶油底 */
    --surface: #ffffff;
    /* 卡片白 */
    --text: #101010;
    --muted: rgba(16, 16, 16, .62);

    --border: rgba(16, 16, 16, .12);
    --border-strong: rgba(16, 16, 16, .18);

    --brand: #1f3d2b;
    /* 深綠（主CTA/重點） */
    --brand-soft: rgba(31, 61, 43, .10);

    --gold: #caa24a;
    /* 潔必達常見金色系 */
    --gold-soft: rgba(202, 162, 74, .18);

    --accent: #d28a1a;
    /* 橘（文章橘條/提示） */
    --accent-soft: rgba(210, 138, 26, .16);

    --radius: 22px;
    --radius-sm: 14px;

    --max: 85vw;
    --pad: 28px;

    /* 字級：更像你文章頁的層級（H1大、H2乾淨、內文舒展） */
    --h1: clamp(30px, 3.4vw, 46px);
    --h2: clamp(18px, 2.1vw, 24px);

    --shadow: 0 18px 50px rgba(0, 0, 0, .10);
    --shadow-sm: 0 12px 30px rgba(0, 0, 0, .08);

    --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    line-height: 1.75;
    letter-spacing: .02em;
}

body {
    background-color: #ffffff;
}

/* 主容器整體呼吸 */
.page,
.main,
.hub {
    padding-top: 96px;
    padding-bottom: 140px;
}


a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}


.wrap {
    padding: 26px var(--pad) 88px;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
}


/* ===== HERO：更像潔必達的「大留白 + 柔金」 ===== */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) + 10px);
    border: 1px solid rgba(16, 16, 16, .10);
    background:
        linear-gradient(180deg, rgba(202, 162, 74, .18), rgba(202, 162, 74, 0) 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
    box-shadow: var(--shadow-sm);
    padding: 30px 28px 22px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -300px -240px auto auto;
    width: 520px;
    height: 520px;
    background:
        radial-gradient(circle at 30% 30%, rgba(61, 35, 31, 0.18), rgba(61, 35, 31, 0.18) 60%),
        radial-gradient(circle at 60% 60%, rgba(210, 138, 26, .18), rgba(210, 138, 26, 0) 62%);
    transform: rotate(80deg);
    pointer-events: none;
    filter: blur(3px);
}

.hero__top {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero h1 {
    font-size: var(--h1);
    margin: 0;
    letter-spacing: .06em;
    font-weight: 900;
}

.hero__badge {
    font-size: 12px;
    letter-spacing: .22em;
    color: rgba(16, 16, 16, .62);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(16, 16, 16, .12);
    padding: 9px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.hero p {
    margin: 12px 0 0;
    color: rgba(16, 16, 16, .62);
    max-width: 72ch;
    font-size: 14px;
}

/* ===== 搜尋：唯一主CTA，視覺更乾淨更像你首頁/文章頁的節奏 ===== */
.searchRow {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.search {
    width: min(720px, 100%);
    border-radius: 999px;
    padding: .6% 2%;
    display: flex;
    align-items: center;
    gap: 10px;

    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(16, 16, 16, .12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
    backdrop-filter: blur(8px);
}

.search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 10px 10px 16px;
    font-size: 14px;
}

.search input::placeholder {
    color: rgba(16, 16, 16, .42);
}

.search button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    letter-spacing: .14em;
    white-space: nowrap;

    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px rgba(31, 61, 43, .20);
    transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}

.search button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(31, 61, 43, .22);
}

.search button:active {
    transform: translateY(0);
}

/* 可用鍵盤操作時，給潔必達風格 outline */
:focus-visible {
    outline: 3px solid rgba(202, 162, 74, .40);
    outline-offset: 3px;
    border-radius: 10px;
}

/* ===== 進階篩選（你目前HTML有留filters結構時可直接啟用） ===== */
.filters {
    width: min(720px, 100%);
    margin: 12px auto 0;
}

.filters details {
    border: 1px solid rgba(16, 16, 16, .12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .78);
    padding: 12px 14px;
}

.filters summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: rgba(16, 16, 16, .70);
    letter-spacing: .10em;
}

.filters summary::-webkit-details-marker {
    display: none;
}

.filters summary .hint {
    color: rgba(16, 16, 16, .52);
    letter-spacing: .04em;
}

.filters__grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.chip {
    border: 1px solid rgba(16, 16, 16, .12);
    background: #fff;
    border-radius: 14px;
    padding: 10px 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: rgba(16, 16, 16, .78);
}

.chip input {
    width: 16px;
    height: 16px;
}

.filters__actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn {
    border: 1px solid rgba(16, 16, 16, .12);
    background: rgba(255, 255, 255, .92);
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: .08em;
    cursor: pointer;
}

.btn--primary {
    border-color: rgba(31, 61, 43, .22);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 750;
}

/* ===== 狀況入口：卡片更有層級、留白更乾淨 ===== */
.routes {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.route {
    position: relative;
    overflow: hidden;
    min-height: 104px;

    border-radius: var(--radius);
    border: 1px solid rgba(16, 16, 16, .12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
    padding: 16px 16px 14px;

    transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}

.route::after {
    content: "";
    position: absolute;
    inset: -60px -70px auto auto;
    width: 190px;
    height: 190px;
    background:
        radial-gradient(circle at 35% 35%, rgba(202, 162, 74, .22), rgba(202, 162, 74, 0) 62%);
    transform: rotate(10deg);
    pointer-events: none;
}

.route:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 16, 16, .18);
    box-shadow: var(--shadow-sm);
}

.route__title {
    margin: 0;
    font-size: 14px;
    letter-spacing: .10em;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.route__title span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 0 7px rgba(31, 61, 43, .10);
    flex: 0 0 auto;
}

.route__desc {
    margin: 10px 0 0;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 1.2;
    color: rgba(16, 16, 16, .62);
}

.route__meta {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    border: 1px solid rgba(16, 16, 16, .12);
    background: rgba(255, 255, 255, .92);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .08em;
    color: rgba(16, 16, 16, .68);
}

.tag--accent {
    background: var(--gold-soft);
    border-color: rgba(202, 162, 74, .28);
    color: rgba(120, 90, 28, .92);
    font-weight: 800;
}

/* ===== “第一次來？”：做成你文章頁常見的「左側色條提示」 ===== */
.newbie {
    margin-top: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(16, 16, 16, .12);
    background:
        linear-gradient(90deg, rgba(210, 138, 26, .18), rgba(210, 138, 26, 0) 26%),
        rgba(255, 255, 255, .84);
    padding: 16px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.newbie strong {
    letter-spacing: .10em;
    font-weight: 900;
}

.newbie p {
    margin: 8px 0 0;
    color: rgba(16, 16, 16, .62);
    font-size: 13px;
    max-width: 72ch;
}

.newbie a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(31, 61, 43, .22);
    background: var(--brand-soft);
    color: var(--brand);
    padding: 11px 14px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: .10em;
    font-weight: 900;
    white-space: nowrap;
}

/* ===== 下半部：分類（更像你現站：乾淨橫列＋底線） ===== */
.section {
    margin-top: 28px;
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.section__head h2 {
    margin: 0;
    font-size: var(--h2);
    letter-spacing: .08em;
    font-weight: 900;
    position: relative;
    padding-left: 12px;
}

.section__head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .22em;
    width: 4px;
    height: 1.15em;
    border-radius: 99px;
    background: var(--gold);
}

.section__head small {
    font-size: 13px;
    color: rgba(16, 16, 16, .56);
}

.cats {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0 16px;
    border-bottom: 1px solid rgba(16, 16, 16, .12);
    overflow: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cats::-webkit-scrollbar {
    display: none;
}

.cat {
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: .10em;
    color: rgba(16, 16, 16, .62);
    position: relative;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.cat:hover {
    background: rgba(16, 16, 16, .04);
    color: rgba(16, 16, 16, .90);
}

.cat.is-active {
    background: var(--gold-soft);
    color: rgba(16, 16, 16, .92);
    font-weight: 900;
}

.cat.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -16px;
    height: 2px;
    background: var(--brand);
    border-radius: 99px;
}

/* ===== 卡片列表：更有「閱讀層級」(分類>標題>摘要>閱讀) ===== */
.grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--surface);
    border: 1px solid rgba(16, 16, 16, .12);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
    transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 16, 16, .18);
    box-shadow: var(--shadow);
}

.thumb {
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid rgba(16, 16, 16, .10);
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}



.card__body {
    padding: 16px;
}

.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.meta .left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(16, 16, 16, .12);
    background: rgba(255, 255, 255, .92);
    letter-spacing: .08em;
    color: rgba(16, 16, 16, .66);
}

.pill--brand {
    background: var(--brand-soft);
    border-color: rgba(31, 61, 43, .22);
    color: rgba(31, 61, 43, .92);
    font-weight: 850;
}

.date {
    font-size: 12px;
    color: rgba(16, 16, 16, .52);
    font-family: var(--mono);
    white-space: nowrap;
}

.title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: .04em;
    font-weight: 900;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desc {
    margin: 0;
    color: rgba(16, 16, 16, .62);
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(16, 16, 16, .10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cta a {
    color: var(--brand);
    font-weight: 900;
    letter-spacing: .10em;
    font-size: 13px;
    position: relative;
}

.cta a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: rgba(31, 61, 43, .18);
    border-radius: 99px;
    transform: scaleX(.0);
    transform-origin: left;
    transition: transform .2s ease;
}

.card:hover .cta a::after {
    transform: scaleX(1);
}

.cta span {
    font-size: 12px;
    color: rgba(16, 16, 16, .52);
    font-family: var(--mono);
}

/* ===== RWD：留白依裝置縮放 ===== */
@media (max-width: 980px) {
    .routes {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wrap {
        padding: 22px 18px 76px;
    }
}

@media (max-width: 560px) {
    .wrap {
        padding: 18px 14px 66px;
    }

    .hero {
        padding: 22px 16px 18px;
    }

    .routes {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .filters__grid {
        grid-template-columns: 1fr;
    }

    .search {
        border-radius: 18px;
        padding: 10px;
    }
}

/* 動畫降噪 */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }

    .route,
    .card,
    .search button {
        transition: none !important;
    }

    .route:hover,
    .card:hover,
    .search button:hover {
        transform: none !important;
    }
}


























.footer {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    background-color: #444;
}

.footer a {
    color: #f8f8f8;
}

.footer__info {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #f8f8f8;
}

.footer__nav {
    width: 20vw;
}

.footer__nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer__nav ul li {
    margin: 4vh auto;
    font-size: 1.5vw;
}

.footer__nav ul li img {
    width: 10vw;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    padding: 0 10vw;
    border-left: 0.25vw #f8f8f8 solid;
}

.footer__company {
    margin: 3vh 0 20vh;
}

.footer__company--ch {
    font-size: 2.8vw;
    margin: 0 0 4vh;
    letter-spacing: 5px;
}

.footer__company--en {
    font-size: 2.8vw;
    letter-spacing: 8px;
}

.footer__address {
    margin: 1vh 0;
    font-size: 1.3vw;
    letter-spacing: 2px;
}

.footer__address p {
    margin: 2vh 0;
}

.Yuuhakuchi {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 10vh;
    text-align: center;
    letter-spacing: 2px;
    background-color: #f8f8f8;
}

body.no-scroll {
    overflow: hidden;
    /* 禁止滾動 */
}