:root {
    --wlgat-bg: #f7f5ef;
    --wlgat-paper: #fffdf8;
    --wlgat-text: #272625;
    --wlgat-muted: #66615b;
    --wlgat-line: #ddd8cc;
    --wlgat-green: #66765a;
    --wlgat-gold: #c8a65d;
    --wlgat-rose: #c75f7a;
}

html {
    margin: 0 !important;
}

body.wlgat-design-body {
    margin: 0;
    background: var(--wlgat-bg);
    color: var(--wlgat-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", sans-serif;
    letter-spacing: 0;
}

.wlgat-design-body #wpadminbar {
    position: fixed;
}

.wlgat-site {
    min-height: 100vh;
    background: var(--wlgat-bg);
}

.wlgat-topbar {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wlgat-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--wlgat-text);
    text-decoration: none;
}

.wlgat-brand img,
.wlgat-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-grid;
    place-items: center;
    background: var(--wlgat-green);
    color: #fff;
}

.wlgat-brand strong {
    font-size: 18px;
    line-height: 1;
}

.wlgat-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    font-size: 16px;
    white-space: nowrap;
}

.wlgat-nav a {
    color: #3f3d3a;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding: 8px 0;
}

.wlgat-nav a[aria-current="page"],
.wlgat-nav a:hover {
    border-color: var(--wlgat-gold);
}

.wlgat-main {
    padding-bottom: 72px;
}

.wlgat-home-hero,
.wlgat-category-hero {
    width: 100%;
    overflow: hidden;
    background: #e9e4d8;
}

.wlgat-home-hero img {
    width: 100%;
    height: clamp(260px, 48vw, 640px);
    display: block;
    object-fit: cover;
    object-position: center 54%;
}

.wlgat-category-hero {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    border: 1px solid var(--wlgat-line);
    background: var(--wlgat-paper);
}

.wlgat-category-hero img {
    width: 100%;
    height: clamp(300px, 58vw, 620px);
    display: block;
    object-fit: cover;
    object-position: center;
}

.wlgat-intro,
.wlgat-category-intro,
.wlgat-entry-grid,
.wlgat-searchbar,
.wlgat-category-body {
    width: min(1120px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.wlgat-intro {
    padding: 68px 0 30px;
}

.wlgat-category-intro {
    padding: 46px 0 30px;
}

.wlgat-eyebrow {
    margin: 0 0 16px;
    color: var(--wlgat-green);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
}

.wlgat-intro h1,
.wlgat-category-intro h1 {
    margin: 0 0 22px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    font-weight: 850;
}

.wlgat-intro p:last-child,
.wlgat-category-intro p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--wlgat-muted);
    font-size: 20px;
    line-height: 1.85;
}

.wlgat-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wlgat-entry-card,
.wlgat-post-card a,
.wlgat-empty {
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid var(--wlgat-line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(39, 38, 37, 0.07);
}

.wlgat-entry-card {
    min-height: 255px;
    color: var(--wlgat-text);
    text-decoration: none;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.wlgat-entry-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wlgat-entry-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wlgat-green);
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-size: 15px;
    font-weight: 800;
}

.wlgat-entry-label,
.wlgat-post-meta {
    color: var(--wlgat-muted);
    font-size: 14px;
}

.wlgat-entry-card strong {
    display: block;
    font-size: 30px;
    line-height: 1.2;
}

.wlgat-entry-card span:last-child {
    color: var(--wlgat-muted);
    font-size: 17px;
    line-height: 1.8;
}

.wlgat-searchbar {
    padding: 0 0 8px;
}

.wlgat-search {
    display: flex;
    gap: 10px;
    max-width: 420px;
}

.wlgat-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border: 1px solid var(--wlgat-line);
    border-radius: 999px;
    background: var(--wlgat-paper);
    color: var(--wlgat-text);
    font-size: 15px;
}

.wlgat-search input[type="search"]:focus {
    outline: 2px solid var(--wlgat-gold);
    outline-offset: 2px;
}

.wlgat-search button {
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    background: var(--wlgat-green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.wlgat-search button:hover {
    background: #545f49;
}

.wlgat-category-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: start;
}

.wlgat-posts {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wlgat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wlgat-sidebar-block {
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid var(--wlgat-line);
    border-radius: 8px;
    padding: 22px;
}

.wlgat-sidebar-block h2 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 800;
    color: var(--wlgat-green);
}

.wlgat-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wlgat-sidebar-list a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--wlgat-text);
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid transparent;
}

.wlgat-sidebar-list a:hover {
    border-color: var(--wlgat-gold);
}

.wlgat-sidebar-list a span {
    color: var(--wlgat-muted);
    font-size: 13px;
}

.wlgat-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.wlgat-sidebar-tags a {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--wlgat-bg);
    border: 1px solid var(--wlgat-line);
    color: var(--wlgat-muted);
    font-size: 14px;
    text-decoration: none;
}

.wlgat-sidebar-tags a:hover {
    border-color: var(--wlgat-gold);
    color: var(--wlgat-text);
}

.wlgat-post-card {
    margin: 0;
}

.wlgat-post-card a {
    min-height: 220px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--wlgat-text);
    text-decoration: none;
}

.wlgat-post-card strong {
    font-size: 23px;
    line-height: 1.35;
}

.wlgat-post-card span:last-child {
    color: var(--wlgat-muted);
    line-height: 1.75;
    font-size: 16px;
}

.wlgat-empty {
    grid-column: 1 / -1;
    padding: 32px;
}

.wlgat-empty strong {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.wlgat-empty p {
    margin: 0;
    color: var(--wlgat-muted);
    line-height: 1.8;
}

@media (max-width: 780px) {
    .wlgat-topbar {
        width: calc(100% - 40px);
        padding: 18px 0 14px;
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .wlgat-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 22px;
        overflow-x: auto;
        padding-bottom: 2px;
        font-size: 15px;
    }

    .wlgat-home-hero img {
        height: 260px;
    }

    .wlgat-category-hero {
        width: 100%;
        border-left: 0;
        border-right: 0;
    }

    .wlgat-category-hero img {
        height: 360px;
    }

    .wlgat-intro,
    .wlgat-category-intro {
        padding-top: 56px;
    }

    .wlgat-intro p:last-child,
    .wlgat-category-intro p:last-child {
        font-size: 18px;
    }

    .wlgat-entry-grid,
    .wlgat-posts {
        grid-template-columns: 1fr;
    }

    .wlgat-category-body {
        grid-template-columns: 1fr;
    }

    .wlgat-entry-card {
        min-height: 232px;
    }
}

@media (max-width: 430px) {
    .wlgat-topbar,
    .wlgat-intro,
    .wlgat-category-intro,
    .wlgat-entry-grid,
    .wlgat-searchbar,
    .wlgat-category-body {
        width: calc(100% - 40px);
    }

    .wlgat-home-hero img {
        height: 258px;
        object-position: center center;
    }

    .wlgat-category-hero img {
        height: 430px;
    }

    .wlgat-intro h1,
    .wlgat-category-intro h1 {
        font-size: 38px;
    }

    .wlgat-entry-card strong {
        font-size: 28px;
    }
}
