/* =========================================================
   百家樂研究所 — 黑金精品主題延伸
   僅針對自訂首頁、Header、Footer 與相關卡片，不改文章正文全站字體。
   ========================================================= */

:root {
    --qy-black: #070707;
    --qy-black-2: #0f0f0f;
    --qy-black-3: #171512;
    --qy-gold: #c8a96b;
    --qy-gold-light: #ead7a5;
    --qy-gold-deep: #8f7444;
    --qy-cream: #f8f4ec;
    --qy-paper: #fffdf9;
    --qy-ink: #171717;
    --qy-muted: #736e65;
    --qy-line: rgba(200, 169, 107, .32);
    --qy-shadow: 0 18px 50px rgba(29, 22, 12, .12);
    --qy-radius-lg: 24px;
    --qy-radius-md: 18px;
    --qy-radius-sm: 12px;
    --qy-font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Header ---------- */
#gh-head.qy-head {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 76px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), transparent 48%),
        rgba(6, 6, 6, .94);
    border-bottom: 1px solid rgba(200,169,107,.55);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-family: var(--qy-font);
}

#gh-head.qy-head::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--qy-gold), transparent);
    opacity: .68;
}

#gh-head.qy-head .gh-head-inner {
    min-height: 76px;
    column-gap: 26px;
}

#gh-head.qy-head .gh-head-logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

#gh-head.qy-head .gh-head-logo img {
    max-height: 48px;
    width: auto;
    filter: drop-shadow(0 4px 11px rgba(0,0,0,.24));
}

#gh-head.qy-head .gh-head-menu .nav {
    gap: 5px;
}

#gh-head.qy-head .gh-head-menu .nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 10px;
    color: rgba(255,255,255,.86);
    font-size: 1.38rem;
    font-weight: 650;
    letter-spacing: .015em;
    border-radius: 8px;
    transition: color .2s ease, background-color .2s ease;
}

#gh-head.qy-head .gh-head-menu .nav a::after {
    position: absolute;
    right: 11px;
    bottom: 3px;
    left: 11px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--qy-gold), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

#gh-head.qy-head .gh-head-menu .nav a:hover,
#gh-head.qy-head .gh-head-menu .nav-current a {
    color: var(--qy-gold-light);
    background: rgba(255,255,255,.045);
}

#gh-head.qy-head .gh-head-menu .nav a:hover::after,
#gh-head.qy-head .gh-head-menu .nav-current a::after {
    transform: scaleX(1);
}

.qy-head-actions {
    gap: 12px !important;
}

#gh-head.qy-head .gh-search {
    color: #f6eddc;
}

.qy-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 17px;
    color: #17120a !important;
    background: linear-gradient(180deg, #ead7a5 0%, #c8a96b 100%);
    border: 1px solid rgba(255,244,211,.76);
    border-radius: 999px;
    box-shadow: 0 7px 18px rgba(200,169,107,.16), inset 0 1px 0 rgba(255,255,255,.58);
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.qy-nav-cta:hover {
    color: #0d0b08 !important;
    transform: translateY(-1px);
    box-shadow: 0 9px 23px rgba(200,169,107,.22), inset 0 1px 0 rgba(255,255,255,.72);
    filter: brightness(1.04);
}

/* ---------- Homepage base ---------- */
.qy-home {
    overflow: hidden;
    background: var(--qy-cream);
    color: var(--qy-ink);
    font-family: var(--qy-font);
}

.qy-home a {
    text-decoration: none;
}

.qy-home-section {
    padding: 86px 0;
}

.qy-home-section .inner,
.qy-home-hero .inner,
.qy-footer .inner {
    max-width: 1220px;
}

.qy-section-heading {
    margin-bottom: 34px;
}

.qy-section-heading--center {
    max-width: 720px;
    margin-right: auto;
    margin-bottom: 38px;
    margin-left: auto;
    text-align: center;
}

.qy-section-heading--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.qy-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--qy-gold-deep);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.qy-section-kicker::before {
    width: 27px;
    height: 1px;
    content: "";
    background: var(--qy-gold);
}

.qy-section-heading h2,
.qy-about-card h2 {
    margin: 0;
    color: #17130d;
    font-size: clamp(3rem, 4vw, 4.6rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.qy-section-heading p {
    margin: 10px 0 0;
    color: var(--qy-muted);
    font-size: 1.55rem;
    line-height: 1.75;
}

/* ---------- Hero ---------- */
.qy-home-hero {
    position: relative;
    min-height: 610px;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 23%, rgba(200,169,107,.20), transparent 34%),
        radial-gradient(circle at 19% 9%, rgba(255,255,255,.055), transparent 27%),
        linear-gradient(116deg, #050505 0%, #0b0a08 48%, #14100a 100%);
    border-bottom: 1px solid rgba(200,169,107,.42);
    color: #fff;
}

.qy-home-hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    opacity: .22;
    background-image:
        linear-gradient(rgba(200,169,107,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,169,107,.045) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to right, #000 0, #000 48%, transparent 88%);
}

.qy-home-hero::after {
    position: absolute;
    right: -160px;
    bottom: -230px;
    width: 650px;
    height: 650px;
    z-index: -1;
    content: "";
    border: 1px solid rgba(200,169,107,.20);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(200,169,107,.025), 0 0 0 85px rgba(200,169,107,.018);
}

.qy-home-hero__glow {
    position: absolute;
    top: 50%;
    left: 44%;
    width: 3px;
    height: 60%;
    background: linear-gradient(transparent, rgba(200,169,107,.7), transparent);
    filter: blur(.2px);
    opacity: .38;
}

.qy-home-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
    align-items: center;
    gap: 58px;
    min-height: 610px;
    padding-top: 54px;
    padding-bottom: 54px;
}

.qy-home-hero__copy {
    position: relative;
    z-index: 3;
}

.qy-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 13px;
    color: var(--qy-gold-light);
    border: 1px solid rgba(200,169,107,.55);
    border-radius: 999px;
    font-size: 1.16rem;
    font-weight: 760;
    letter-spacing: .11em;
    background: rgba(255,255,255,.025);
}

.qy-home-eyebrow__dot {
    width: 7px;
    height: 7px;
    background: var(--qy-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(200,169,107,.12);
}

.qy-home-hero h1 {
    margin: 0;
    color: #f4e7c5;
    font-size: clamp(5.6rem, 7.2vw, 8.7rem);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.07em;
    text-shadow: 0 6px 26px rgba(0,0,0,.36);
}

.qy-home-hero__subtitle {
    margin: 28px 0 0;
    color: #f2e8d4;
    font-size: clamp(1.9rem, 2.1vw, 2.65rem);
    font-weight: 720;
    letter-spacing: .04em;
}

.qy-home-hero__lead {
    max-width: 630px;
    margin: 15px 0 0;
    color: rgba(255,255,255,.68);
    font-size: 1.6rem;
    line-height: 1.86;
}

.qy-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.qy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 62px;
    padding: 11px 22px;
    border-radius: 15px;
    font-family: var(--qy-font);
    line-height: 1.18;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.qy-btn strong {
    display: block;
    font-size: 1.48rem;
    font-weight: 850;
}

.qy-btn small {
    display: block;
    margin-top: 3px;
    font-size: 1.05rem;
    font-weight: 650;
    opacity: .62;
}

.qy-btn__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    font-size: 1.8rem;
}

.qy-btn--gold {
    color: #1b160d;
    background: linear-gradient(180deg, #efdfb7 0%, #c8a96b 100%);
    border: 1px solid rgba(255,247,221,.85);
    box-shadow: 0 12px 28px rgba(200,169,107,.20), inset 0 1px 0 rgba(255,255,255,.75);
}

.qy-btn--gold .qy-btn__icon {
    background: rgba(255,255,255,.36);
}

.qy-btn--dark {
    color: #f4ead6;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(200,169,107,.52);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.qy-btn--dark .qy-btn__icon {
    color: var(--qy-gold-light);
    background: rgba(200,169,107,.10);
}

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

.qy-btn--gold:hover {
    color: #0d0b08;
    box-shadow: 0 15px 34px rgba(200,169,107,.27), inset 0 1px 0 rgba(255,255,255,.84);
}

.qy-btn--dark:hover {
    color: #fff2d3;
    border-color: rgba(234,215,165,.82);
    background: rgba(255,255,255,.06);
}

.qy-home-hero__visual {
    position: relative;
    align-self: stretch;
    min-height: 500px;
    overflow: hidden;
    border-left: 1px solid rgba(200,169,107,.16);
}

.qy-home-hero__visual::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 120px;
    content: "";
    background: linear-gradient(to top, #0c0a08 0%, rgba(12,10,8,.82) 22%, transparent 100%);
    pointer-events: none;
}

.qy-home-hero__visual img {
    position: absolute;
    right: 8%;
    bottom: 18px;
    z-index: 2;
    width: auto;
    max-width: none;
    height: calc(100% - 38px);
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.28));
    transform: none;
}

.qy-home-hero__halo {
    position: absolute;
    top: 95px;
    right: 50px;
    width: 280px;
    height: 280px;
    z-index: 1;
    border: 1px solid rgba(200,169,107,.35);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(200,169,107,.035), 0 0 80px rgba(200,169,107,.08);
}

.qy-researcher-badge {
    position: absolute;
    right: auto;
    bottom: 24px;
    left: 18px;
    z-index: 3;
    padding: 10px 15px;
    color: #241c10;
    background: linear-gradient(180deg, #efe0b9, #c9aa6d);
    border: 1px solid rgba(255,244,209,.88);
    border-radius: 999px;
    box-shadow: 0 9px 26px rgba(0,0,0,.27);
    font-size: 1.22rem;
    font-weight: 850;
    letter-spacing: .04em;
    transition: filter .2s ease, transform .2s ease;
}

.qy-researcher-badge:hover,
.qy-researcher-badge:focus-visible {
    color: #17120a;
    filter: brightness(1.08);
    transform: translateY(-2px);
}

/* ---------- Category cards ---------- */
.qy-home-section--categories {
    background:
        radial-gradient(circle at 8% 10%, rgba(200,169,107,.10), transparent 24%),
        var(--qy-cream);
}

.qy-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.qy-category-card {
    position: relative;
    overflow: hidden;
    color: var(--qy-ink);
    background: var(--qy-paper);
    border: 1px solid rgba(91,74,45,.12);
    border-radius: var(--qy-radius-md);
    box-shadow: 0 9px 30px rgba(36,29,18,.07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.qy-category-card:hover {
    color: var(--qy-ink);
    transform: translateY(-5px);
    border-color: rgba(200,169,107,.48);
    box-shadow: 0 18px 42px rgba(36,29,18,.12);
}

.qy-category-card__visual {
    position: relative;
    display: grid;
    min-height: 136px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(200,169,107,.24), transparent 34%),
        linear-gradient(145deg, #0a0a09, #1b1710);
    border-bottom: 1px solid rgba(200,169,107,.32);
}

.qy-category-card__visual::before,
.qy-category-card__visual::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(200,169,107,.13);
    border-radius: 50%;
}

.qy-category-card__visual::before {
    width: 95px;
    height: 95px;
}

.qy-category-card__visual::after {
    width: 128px;
    height: 128px;
}

.qy-category-card__visual span {
    position: relative;
    z-index: 2;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    color: var(--qy-gold-light);
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(200,169,107,.46);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
    font-size: 3rem;
    font-weight: 600;
}

.qy-category-card__body {
    position: relative;
    padding: 23px 21px 22px;
}

.qy-category-card__number {
    position: absolute;
    top: 17px;
    right: 19px;
    color: rgba(91,74,45,.25);
    font-size: 2.3rem;
    font-weight: 900;
}

.qy-category-card h3 {
    margin: 0;
    padding-right: 40px;
    color: #19150f;
    font-size: 2.1rem;
    font-weight: 850;
    letter-spacing: -.02em;
}

.qy-category-card p {
    min-height: 73px;
    margin: 10px 0 17px;
    color: #716b61;
    font-size: 1.38rem;
    line-height: 1.72;
}

.qy-text-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #7f673a;
    font-size: 1.26rem;
    font-weight: 800;
}

.qy-text-link b {
    transition: transform .2s ease;
}

.qy-category-card:hover .qy-text-link b {
    transform: translateX(4px);
}

/* ---------- About ---------- */
.qy-home-section--about {
    padding-top: 34px;
    background: var(--qy-cream);
}

.qy-about-card {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    min-height: 430px;
    overflow: hidden;
    background: linear-gradient(108deg, #080808 0%, #11100d 58%, #18130c 100%);
    border: 1px solid rgba(200,169,107,.36);
    border-radius: var(--qy-radius-lg);
    box-shadow: 0 22px 60px rgba(19,15,9,.16);
}

.qy-about-card__visual {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 42% 46%, rgba(200,169,107,.18), transparent 40%),
        linear-gradient(145deg, #0b0a08 0%, #15110b 100%);
    border-right: 1px solid rgba(200,169,107,.20);
}

.qy-about-card__visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, transparent 70%, rgba(9,9,8,.76) 100%),
        radial-gradient(circle at 48% 44%, rgba(200,169,107,.11), transparent 52%);
    pointer-events: none;
}

.qy-about-card__visual img {
    position: absolute;
    right: 50%;
    bottom: 16px;
    width: auto;
    height: calc(100% - 32px);
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.24));
    transform: translateX(50%);
}

.qy-about-card__copy {
    align-self: center;
    padding: 54px 56px;
    color: #fff;
}

.qy-about-card .qy-section-kicker {
    color: var(--qy-gold-light);
}

.qy-about-card h2 {
    color: #f3e4bd;
}

.qy-about-card__copy > p {
    max-width: 690px;
    margin: 15px 0 0;
    color: rgba(255,255,255,.68);
    font-size: 1.48rem;
    line-height: 1.85;
}

.qy-about-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    margin-top: 26px;
}

.qy-about-points span {
    padding: 11px 12px;
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(200,169,107,.18);
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.qy-about-points b {
    display: block;
    margin-bottom: 3px;
    color: var(--qy-gold);
    font-size: 1.05rem;
    letter-spacing: .08em;
}

.qy-inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
    color: var(--qy-gold-light);
    font-size: 1.3rem;
    font-weight: 800;
}

.qy-inline-cta:hover {
    color: #fff2cd;
}

.qy-inline-cta span {
    transition: transform .2s ease;
}

.qy-inline-cta:hover span {
    transform: translateX(4px);
}

/* ---------- Article cards ---------- */
.qy-home-section--featured {
    padding-top: 76px;
    background: linear-gradient(to bottom, var(--qy-cream), #fffaf1);
}

.qy-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.qy-home-card {
    overflow: hidden;
    background: var(--qy-paper);
    border: 1px solid rgba(91,74,45,.13);
    border-radius: 16px;
    box-shadow: 0 10px 34px rgba(33,26,16,.07);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.qy-home-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200,169,107,.5);
    box-shadow: 0 18px 43px rgba(33,26,16,.12);
}

.qy-home-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.qy-home-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease, filter .45s ease;
}

.qy-home-card:hover .qy-home-card__image img {
    transform: scale(1.035);
    filter: saturate(1.04);
}

.qy-home-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--qy-gold);
    background: radial-gradient(circle, #2a2318, #090909 68%);
    font-size: 4rem;
}

.qy-home-card__tag {
    position: absolute;
    left: 14px;
    bottom: 12px;
    padding: 6px 10px;
    color: #1a140b;
    background: linear-gradient(180deg, #ead7a5, #c8a96b);
    border: 1px solid rgba(255,244,211,.72);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,.20);
    font-size: 1.03rem;
    font-weight: 850;
}

.qy-home-card__body {
    padding: 21px 20px 18px;
}

.qy-home-card h3 {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 850;
    line-height: 1.45;
    letter-spacing: -.015em;
}

.qy-home-card h3 a {
    color: #1c1812;
}

.qy-home-card h3 a:hover {
    color: #806538;
}

.qy-home-card__body > p {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: #777066;
    font-size: 1.34rem;
    line-height: 1.72;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.qy-home-card footer {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    color: #9b9489;
    font-size: 1.08rem;
}

.qy-home-card__arrow {
    display: grid;
    width: 30px;
    height: 30px;
    margin-left: auto;
    place-items: center;
    color: #1c160d;
    background: #dbc187;
    border-radius: 50%;
    font-size: 1.35rem;
    font-weight: 900;
    transition: transform .2s ease, background .2s ease;
}

.qy-home-card__arrow:hover {
    color: #0e0b07;
    background: #ead7a5;
    transform: translateX(2px);
}

/* ---------- Latest ---------- */
.qy-home-section--latest {
    padding-top: 38px;
    background: #fffaf1;
}

.qy-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.qy-home-card--compact {
    display: grid;
    grid-template-columns: minmax(220px, 44%) minmax(0,1fr);
    align-items: center;
    min-height: 0;
}

.qy-home-card--compact .qy-home-card__image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    background: #0c0b09;
    border-right: 1px solid rgba(200,169,107,.18);
}

.qy-home-card--compact .qy-home-card__image img {
    object-fit: contain;
    object-position: center;
}

.qy-home-card--compact .qy-home-card__body {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    padding: 18px 18px 16px;
}

.qy-home-card--compact h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.58rem;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.qy-home-card--compact .qy-home-card__tag--inline {
    position: static;
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qy-home-card--compact footer {
    margin-top: auto;
    padding-top: 12px;
}

.qy-home-more {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.qy-btn--simple {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 1.34rem;
    font-weight: 850;
}

/* ---------- Footer ---------- */
.qy-footer {
    position: relative;
    overflow: hidden;
    color: rgba(255,255,255,.76);
    background:
        radial-gradient(circle at 92% 20%, rgba(200,169,107,.14), transparent 27%),
        linear-gradient(118deg, #050505 0%, #0a0907 58%, #151008 100%);
    border-top: 1px solid rgba(200,169,107,.48);
    font-family: var(--qy-font);
}

.qy-footer::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .16;
    background-image: radial-gradient(rgba(200,169,107,.45) .55px, transparent .55px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to right, transparent, #000 50%, #000);
}

.qy-footer__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(180px, .78fr) minmax(0, 1.35fr);
    gap: 44px 34px;
    align-items: start;
    padding-top: 58px;
    padding-right: 220px;
    padding-bottom: 47px;
}

.qy-footer__brand {
    max-width: 360px;
}

.qy-footer__logo {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    color: #f0dfb5;
    font-size: 2rem;
    font-weight: 850;
}

.qy-footer__logo img {
    max-width: 210px;
    max-height: 58px;
    object-fit: contain;
}

.qy-footer__brand p,
.qy-footer__panel p {
    margin: 15px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 1.28rem;
    line-height: 1.78;
}

.qy-footer__panel p {
    margin-bottom: 22px;
}

.qy-footer h3 {
    margin: 0 0 14px;
    color: var(--qy-gold-light);
    font-size: 1.37rem;
    font-weight: 850;
    letter-spacing: .03em;
}

.qy-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.qy-footer__links a,
.qy-footer__links span {
    color: rgba(255,255,255,.63);
    font-size: 1.24rem;
    line-height: 1.45;
}

.qy-footer__links a:hover {
    color: var(--qy-gold-light);
}

.qy-footer__cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-self: stretch;
}

.qy-footer__panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px 22px 20px;
    border-radius: 24px;
    border: 1px solid rgba(200,169,107,.20);
    background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 28px rgba(0,0,0,.16);
}

.qy-footer__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 850;
    color: #1a140a;
    background: linear-gradient(180deg, #ead7a5, #c8a96b);
    border: 1px solid rgba(255,244,211,.70);
    box-shadow: 0 8px 18px rgba(0,0,0,.20);
    transition: transform .18s ease, filter .18s ease;
}

.qy-footer__action:hover {
    color: #0e0b07;
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.qy-footer__mascot-link {
    position: absolute;
    right: 12px;
    bottom: 18px;
    z-index: 2;
    width: 176px;
    height: 260px;
    display: block;
    text-decoration: none;
    outline: none;
}

.qy-footer__mascot-frame {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,.22));
    transition: transform .25s ease, filter .25s ease;
}

.qy-footer__mascot-link:hover .qy-footer__mascot-frame,
.qy-footer__mascot-link.is-hover .qy-footer__mascot-frame,
.qy-footer__mascot-link:focus-visible .qy-footer__mascot-frame {
    transform: translateY(-4px);
    filter: drop-shadow(0 16px 26px rgba(0,0,0,.28));
}

.qy-footer__mascot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    transition: opacity .25s ease, transform .25s ease;
}

.qy-footer__mascot--idle {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.qy-footer__mascot--hover {
    opacity: 0;
    transform: translateY(8px) scale(.985);
}

.qy-footer__mascot-link:hover .qy-footer__mascot--idle,
.qy-footer__mascot-link.is-hover .qy-footer__mascot--idle,
.qy-footer__mascot-link:focus-visible .qy-footer__mascot--idle {
    opacity: 0;
    transform: translateY(8px) scale(.985);
}

.qy-footer__mascot-link:hover .qy-footer__mascot--hover,
.qy-footer__mascot-link.is-hover .qy-footer__mascot--hover,
.qy-footer__mascot-link:focus-visible .qy-footer__mascot--hover {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.qy-footer__bottom {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 17px;
    padding-bottom: 18px;
    border-top: 1px solid rgba(200,169,107,.22);
}

.qy-footer__bottom p {
    margin: 0;
    color: rgba(255,255,255,.45);
    font-size: 1.08rem;
    line-height: 1.55;
}

/* ---------- Reveal motion ---------- */
.qy-reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .55s ease, transform .55s ease;
}

.qy-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .qy-reveal,
    .qy-reveal.is-visible,
    .qy-category-card,
    .qy-home-card,
    .qy-btn,
    .qy-nav-cta {
        transition: none !important;
        transform: none !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
    #gh-head.qy-head .gh-head-inner {
        column-gap: 13px;
    }

    #gh-head.qy-head .gh-head-menu .nav {
        gap: 0;
    }

    #gh-head.qy-head .gh-head-menu .nav a {
        padding: 0 7px;
        font-size: 1.22rem;
    }

    .qy-nav-cta {
        padding: 0 13px;
        font-size: 1.2rem;
    }

    .qy-home-hero__inner {
        grid-template-columns: 1fr .82fr;
        gap: 26px;
    }

    .qy-home-hero__visual img {
        right: 4%;
        width: auto;
        height: calc(100% - 42px);
    }

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

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

    .qy-home-card--compact {
        grid-template-columns: minmax(180px, 42%) minmax(0, 1fr);
    }

    .qy-footer__inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(170px, .78fr) minmax(0, 1.25fr);
        padding-right: 185px;
    }

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

    .qy-footer__mascot-link {
        width: 156px;
        height: 234px;
        right: 6px;
    }
}

@media (max-width: 900px) {
    #gh-head.qy-head {
        height: 66px;
    }

    #gh-head.qy-head .gh-head-inner {
        min-height: 66px;
    }

    #gh-head.qy-head .gh-head-logo img {
        max-height: 41px;
    }

    #gh-head.qy-head .gh-head-actions .gh-search,
    #gh-head.qy-head .qy-nav-cta {
        display: none;
    }

    #gh-head.qy-head.gh-head-open,
    .gh-head-open #gh-head.qy-head .gh-head-actions {
        background: #080706;
    }

    #gh-head.qy-head .gh-head-menu {
        background: #080706;
        border-top: 1px solid rgba(200,169,107,.18);
    }

    #gh-head.qy-head .gh-head-menu .nav a {
        color: #f4ead5;
        font-size: 1.55rem;
    }

    .gh-head-open #gh-head.qy-head .gh-head-menu::after {
        display: block;
        margin: 14px 20px 4px;
        padding: 12px 15px;
        content: "挑戰百家樂 ↗";
        color: #17120a;
        background: linear-gradient(180deg, #ead7a5, #c8a96b);
        border-radius: 999px;
        text-align: center;
        font-size: 1.35rem;
        font-weight: 850;
    }

    .qy-home-hero {
        min-height: auto;
    }

    .qy-home-hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 65px;
        padding-bottom: 0;
    }

    .qy-home-hero__copy {
        max-width: 720px;
    }

    .qy-home-hero__visual {
        min-height: 520px;
        margin-top: 10px;
        border-top: 1px solid rgba(200,169,107,.15);
        border-left: 0;
    }

    .qy-home-hero__visual img {
        right: 50%;
        bottom: 14px;
        width: auto;
        height: calc(100% - 28px);
        max-height: none;
        object-position: center bottom;
        transform: translateX(50%);
    }

    .qy-about-card {
        grid-template-columns: 1fr;
    }

    .qy-about-card__visual {
        min-height: 430px;
        border-right: 0;
        border-bottom: 1px solid rgba(200,169,107,.18);
    }

    .qy-about-card__visual::after {
        background: linear-gradient(to bottom, transparent 72%, rgba(9,9,8,.74) 100%);
    }

    .qy-about-card__visual img {
        right: 50%;
        bottom: 14px;
        width: auto;
        height: calc(100% - 28px);
        object-position: center bottom;
        transform: translateX(50%);
    }

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

    .qy-home-card:not(.qy-home-card--compact) {
        display: grid;
        grid-template-columns: 45% 55%;
    }

    .qy-home-card:not(.qy-home-card--compact) .qy-home-card__image {
        height: 100%;
        aspect-ratio: auto;
    }

    .qy-footer__inner {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

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

    .qy-footer__mascot-link {
        position: relative;
        right: auto;
        bottom: auto;
        margin-left: auto;
        width: 150px;
        height: 210px;
    }
}

@media (max-width: 700px) {
    .qy-home-section {
        padding: 64px 0;
    }

    .qy-home-hero__inner {
        padding-top: 48px;
    }

    .qy-home-hero h1 {
        font-size: clamp(5rem, 15vw, 7rem);
    }

    .qy-home-hero__subtitle {
        font-size: 2rem;
        line-height: 1.5;
    }

    .qy-home-hero__lead {
        font-size: 1.45rem;
    }

    .qy-home-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .qy-btn {
        justify-content: flex-start;
        width: 100%;
    }

    .qy-home-hero__visual {
        min-height: 440px;
    }

    .qy-home-hero__visual img {
        right: 50%;
        bottom: 12px;
        width: auto;
        height: calc(100% - 24px);
        transform: translateX(50%);
    }

    .qy-researcher-badge {
        right: auto;
        bottom: 17px;
        left: 10px;
    }

    .qy-category-grid,
    .qy-latest-grid {
        grid-template-columns: 1fr;
    }

    .qy-category-card {
        display: grid;
        grid-template-columns: 126px 1fr;
    }

    .qy-category-card__visual {
        min-height: 100%;
        border-right: 1px solid rgba(200,169,107,.28);
        border-bottom: 0;
    }

    .qy-category-card p {
        min-height: auto;
    }

    .qy-about-card__copy {
        padding: 36px 25px;
    }

    .qy-about-card__visual {
        min-height: 390px;
    }

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

    .qy-home-card:not(.qy-home-card--compact),
    .qy-home-card--compact {
        display: block;
    }

    .qy-home-card:not(.qy-home-card--compact) .qy-home-card__image,
    .qy-home-card--compact .qy-home-card__image {
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-right: 0;
        border-bottom: 1px solid rgba(200,169,107,.18);
    }

    .qy-footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .qy-footer__mascot-link {
        width: 138px;
        height: 198px;
    }

    .qy-footer__bottom {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .qy-section-heading h2,
    .qy-about-card h2 {
        font-size: 3.3rem;
    }

    .qy-about-card__visual {
        min-height: 350px;
    }

    .qy-category-card {
        grid-template-columns: 105px 1fr;
    }

    .qy-category-card__body {
        padding: 18px 16px;
    }

    .qy-category-card h3 {
        font-size: 1.78rem;
    }

    .qy-category-card p {
        font-size: 1.25rem;
    }

    .qy-home-hero__visual {
        min-height: 390px;
    }

    .qy-footer__inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .qy-footer__panel {
        padding: 20px 18px 18px;
    }

    .qy-footer__action {
        width: 100%;
    }

    .qy-footer__mascot-link {
        width: 124px;
        height: 182px;
    }
}

/* ---------- Post: 精選延伸閱讀（不改正文 typography） ---------- */
.qy-read-more-wrap {
    margin-top: 72px;
    padding: 70px 0 76px;
    background:
        radial-gradient(circle at 10% 0%, rgba(200,169,107,.10), transparent 24%),
        #faf6ee;
    border-top: 1px solid rgba(200,169,107,.22);
    font-family: var(--qy-font);
}

.qy-read-more-heading {
    margin-bottom: 30px;
}

.qy-read-more-heading > span {
    display: block;
    margin-bottom: 7px;
    color: var(--qy-gold-deep);
    font-size: 1.1rem;
    font-weight: 850;
    letter-spacing: .15em;
}

.qy-read-more-heading h2 {
    margin: 0;
    color: #17130d;
    font-size: clamp(3rem, 4vw, 4.2rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.qy-read-more-heading p {
    margin: 9px 0 0;
    color: #786f63;
    font-size: 1.42rem;
    line-height: 1.7;
}

.qy-read-more {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 20px;
}

@media (max-width: 900px) {
    .qy-read-more {
        grid-template-columns: 1fr;
    }

    .qy-read-more .qy-home-card {
        display: grid;
        grid-template-columns: 42% 58%;
    }

    .qy-read-more .qy-home-card__image {
        height: 100%;
        aspect-ratio: auto;
    }
}

@media (max-width: 650px) {
    .qy-read-more-wrap {
        margin-top: 50px;
        padding: 55px 0 60px;
    }

    .qy-read-more .qy-home-card {
        display: block;
    }

    .qy-read-more .qy-home-card__image {
        aspect-ratio: 16 / 9;
    }
}

.qy-mobile-cta {
    display: none;
}

@media (max-width: 900px) {
    .gh-head-open #gh-head.qy-head .gh-head-menu::after {
        display: none;
        content: none;
    }

    .qy-mobile-cta {
        display: none;
        margin: 14px 20px 6px;
        padding: 12px 15px;
        color: #17120a !important;
        background: linear-gradient(180deg, #ead7a5, #c8a96b);
        border: 1px solid rgba(255,244,211,.75);
        border-radius: 999px;
        text-align: center;
        font-size: 1.35rem;
        font-weight: 850;
    }

    .gh-head-open .qy-mobile-cta {
        display: block;
    }
}

/* ---------- 1.3：導覽、全部文章與內容頁一致性 ---------- */
.qy-nav-all {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-left: 6px;
    padding: 0 14px;
    color: var(--qy-gold-light) !important;
    border: 1px solid rgba(200,169,107,.36);
    border-radius: 999px;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease;
}

.qy-nav-all:hover {
    background: rgba(200,169,107,.09);
    border-color: rgba(234,215,165,.72);
}

.qy-hero-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 19px;
    color: rgba(255,255,255,.72);
    font-size: 1.22rem;
    font-weight: 760;
    letter-spacing: .03em;
}

.qy-hero-all-link:hover {
    color: var(--qy-gold-light);
}

.qy-hero-all-link span {
    color: var(--qy-gold);
}

.qy-home-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 27px 0 0;
    padding: 19px 0 0;
    border-top: 1px solid rgba(200,169,107,.16);
    list-style: none;
}

.qy-home-proof li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.58);
    font-size: 1.1rem;
    font-weight: 680;
}

.qy-home-proof b {
    color: var(--qy-gold);
    font-size: .95rem;
    letter-spacing: .08em;
}

.qy-category-card__visual span svg {
    width: 31px;
    height: 31px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qy-section-all-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 10px 14px;
    color: #6d5731;
    border-bottom: 1px solid rgba(143,116,68,.35);
    font-size: 1.24rem;
    font-weight: 800;
}

.qy-section-all-link:hover {
    color: #17130d;
    border-color: var(--qy-gold-deep);
}

.qy-article-count,
.qy-archive-count {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    color: #715b33;
    background: rgba(200,169,107,.10);
    border: 1px solid rgba(143,116,68,.22);
    border-radius: 999px;
    font-size: 1.17rem;
    font-weight: 800;
    white-space: nowrap;
}

.qy-article-filters {
    display: flex;
    gap: 8px;
    margin: -8px 0 27px;
    padding: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.qy-article-filters a {
    flex: 0 0 auto;
    padding: 9px 14px;
    color: #6e675e;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(91,74,45,.12);
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 750;
}

.qy-article-filters a:hover,
.qy-article-filters a.is-active {
    color: #18130b;
    background: linear-gradient(180deg, #ead7a5, #c8a96b);
    border-color: rgba(143,116,68,.42);
}

.qy-home-card__placeholder {
    gap: 9px;
    align-content: center;
    background:
        linear-gradient(rgba(200,169,107,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,169,107,.045) 1px, transparent 1px),
        radial-gradient(circle at 50% 35%, #2b2418, #090909 68%);
    background-size: 26px 26px, 26px 26px, auto;
}

.qy-home-card__placeholder svg {
    width: 37px;
    height: 37px;
    fill: none;
    stroke: var(--qy-gold-light);
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qy-home-card__placeholder span {
    color: rgba(234,215,165,.72);
    font-size: .93rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.qy-empty-state {
    grid-column: 1 / -1;
    padding: 55px 24px;
    color: #766e62;
    background: rgba(255,255,255,.7);
    border: 1px dashed rgba(143,116,68,.34);
    border-radius: var(--qy-radius-md);
    text-align: center;
}

.qy-empty-state > span {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0 auto 13px;
    place-items: center;
    color: #6e5529;
    background: #e7d3a3;
    border-radius: 50%;
    font-size: 2rem;
}

.qy-empty-state h2,
.qy-empty-state h3 {
    margin: 0;
    color: #211b12;
    font-size: 2rem;
}

.qy-empty-state p {
    margin: 8px 0 0;
    font-size: 1.3rem;
}

.qy-home-pagination {
    margin-top: 38px;
    font-family: var(--qy-font);
}

.qy-home-pagination .pagination {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.qy-home-pagination .newer-posts,
.qy-home-pagination .older-posts {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    color: #211a0f;
    background: #fffdf9;
    border: 1px solid rgba(143,116,68,.30);
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 800;
}

.qy-home-pagination .newer-posts { justify-self: start; }
.qy-home-pagination .older-posts { justify-self: end; }
.qy-home-pagination .page-number {
    color: #8a806f;
    font-size: 1.13rem;
    font-weight: 700;
}

/* ---------- 分類與作者彙整頁 ---------- */
.qy-archive {
    min-height: 68vh;
    padding: 70px 0 90px;
    color: var(--qy-ink);
    background:
        radial-gradient(circle at 8% 2%, rgba(200,169,107,.11), transparent 25%),
        var(--qy-cream);
    font-family: var(--qy-font);
}

.qy-archive-hero {
    position: relative;
    margin-bottom: 38px;
    padding: 40px 42px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 0%, rgba(200,169,107,.17), transparent 34%),
        linear-gradient(118deg, #070707, #161109);
    border: 1px solid rgba(200,169,107,.34);
    border-radius: var(--qy-radius-lg);
    box-shadow: var(--qy-shadow);
}

.qy-archive-back {
    display: inline-flex;
    margin-bottom: 27px;
    color: rgba(255,255,255,.60);
    font-size: 1.15rem;
    font-weight: 750;
}

.qy-archive-back:hover { color: var(--qy-gold-light); }
.qy-archive-hero .qy-section-kicker { color: var(--qy-gold-light); }
.qy-archive-hero h1 {
    margin: 0;
    color: #f2e2b9;
    font-size: clamp(4rem, 6vw, 6.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.055em;
}

.qy-archive-hero p {
    max-width: 690px;
    margin: 14px 0 20px;
    color: rgba(255,255,255,.66);
    font-size: 1.45rem;
    line-height: 1.8;
}

.qy-archive-hero .qy-archive-count {
    color: #2a2113;
    background: linear-gradient(180deg, #ead7a5, #c8a96b);
}

.qy-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 20px;
}

.qy-author-hero { padding-left: 164px; }
.qy-author-avatar {
    position: absolute;
    top: 42px;
    left: 42px;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 3px solid rgba(234,215,165,.75);
    border-radius: 50%;
}

/* ---------- 文章導覽細節 ---------- */
.qy-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 24px;
    color: #9a9287;
    font-family: var(--qy-font);
    font-size: 1.15rem;
}

.qy-breadcrumb a { color: #75603a; }
.qy-breadcrumb a:hover { color: #2a2114; }
.qy-post-footer {
    margin-top: 48px;
    padding-top: 25px;
    border-top: 1px solid rgba(143,116,68,.22);
    font-family: var(--qy-font);
}

.qy-post-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #725b31;
    font-size: 1.25rem;
    font-weight: 800;
}

@media (max-width: 900px) {
    .qy-nav-all {
        display: block;
        min-height: 0;
        margin: 8px 20px 0;
        padding: 13px 15px;
        text-align: center;
    }

    .qy-archive-grid { grid-template-columns: 1fr; }
    .qy-archive-grid .qy-home-card {
        display: grid;
        grid-template-columns: 42% 58%;
    }
    .qy-archive-grid .qy-home-card__image {
        height: 100%;
        aspect-ratio: auto;
    }
}

@media (max-width: 700px) {
    .qy-home-proof { display: none; }
    .qy-section-heading--row { align-items: flex-start; }
    .qy-section-all-link { display: none; }
    .qy-article-count { margin-top: 5px; }
    .qy-home-pagination .pagination { grid-template-columns: 1fr 1fr; }
    .qy-home-pagination .page-number {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }
    .qy-home-pagination .newer-posts,
    .qy-home-pagination .older-posts { grid-row: 2; }
    .qy-archive { padding: 45px 0 65px; }
    .qy-archive-hero { padding: 30px 25px; }
    .qy-author-hero { padding-top: 126px; }
    .qy-author-avatar { top: 28px; left: 25px; width: 72px; height: 72px; }
    .qy-archive-grid .qy-home-card { display: block; }
    .qy-archive-grid .qy-home-card__image { aspect-ratio: 16 / 9; }
}
