/* 作品案例內頁 */
.page-portfolio .pf-section {
    display: block !important;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.page-portfolio .pf-inner {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* --- Hero：全幅底圖 + 遮罩（與 proposal / prop-rental 內頁一致） --- */
.pf-hero {
    position: relative;
    isolation: isolate;
    min-height: 72vh;
    padding: 150px 5% 100px;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
.pf-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.pf-hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.01);
}
.pf-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(10, 10, 14, 0.72) 0%, rgba(18, 12, 22, 0.62) 45%, rgba(10, 10, 14, 0.52) 100%);
}
.pf-hero .pf-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}
.pf-hero__eyebrow {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.55);
    margin-bottom: 20px;
}
.pf-hero__title {
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    font-weight: 300;
    letter-spacing: 5px;
    color: var(--gold-light);
    line-height: 1.38;
    max-width: 18em;
    margin-bottom: 24px;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.pf-hero__lead {
    font-size: 1.05rem;
    color: rgba(230, 230, 235, 0.92);
    max-width: 38em;
    line-height: 1.95;
    letter-spacing: 0.4px;
    margin-bottom: 32px;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}
.pf-hero__lead strong {
    color: var(--gold-light);
    font-weight: 600;
}
.pf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
}
.pf-hero__note {
    font-size: 0.88rem;
    color: #8a8a8a;
    letter-spacing: 0.4px;
}

/* --- 分類篩選 --- */
.pf-filter {
    padding: 48px 5% 28px !important;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.pf-filter__inner {
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}
.pf-filter__label {
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.45);
    margin-bottom: 16px;
}
.pf-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
    justify-content: center;
}
.pf-filter__btn {
    font-family: inherit;
    font-size: 0.92rem;
    letter-spacing: 1px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-sub);
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.pf-filter__btn:hover {
    color: var(--gold-light);
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.06);
}
.pf-filter__btn.is-active {
    color: var(--bg-dark);
    background: linear-gradient(145deg, var(--gold) 0%, #c9a227 100%);
    border-color: transparent;
    box-shadow: 0 4px 24px rgba(212, 175, 55, 0.25);
}

/* --- 作品網格 --- */
.pf-grid-section {
    padding: 36px 5% 100px !important;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-lighter) 100%);
}
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 26px;
    max-width: 1180px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}
.pf-card {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(8, 8, 12, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.pf-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.28);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
}
.pf-card[hidden] {
    display: none !important;
}
.pf-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.pf-card__figure {
    position: relative;
    aspect-ratio: 2000 / 1334;
    overflow: hidden;
    background: #121218;
}
.pf-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-card:hover .pf-card__img {
    transform: scale(1.05);
}
.pf-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.72rem;
    letter-spacing: 2px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(10, 10, 14, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-light);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pf-card__body {
    padding: 22px 22px 24px;
}
.pf-card__title {
    font-size: 1.12rem;
    font-weight: 400;
    color: var(--gold-light);
    letter-spacing: 2px;
    margin-bottom: 8px;
    line-height: 1.45;
}
.pf-card__meta {
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.65;
    letter-spacing: 0.3px;
}

.pf-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-sub);
    font-size: 0.98rem;
}
.pf-empty[hidden] {
    display: none !important;
}
.pf-empty--all {
    grid-column: auto;
    max-width: 520px;
    margin: 0 auto;
}

/* --- CTA --- */
.pf-cta {
    padding: 80px 5% 96px !important;
    text-align: center;
    background: radial-gradient(ellipse 100% 80% at 50% 100%, rgba(80, 45, 60, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-lighter) 0%, #0a0a0e 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}
.pf-cta .pf-inner {
    max-width: 560px;
}
.pf-cta h2 {
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    color: var(--gold-light);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.pf-cta p {
    color: var(--text-sub);
    font-size: 0.96rem;
    line-height: 1.88;
    margin-bottom: 22px;
}

@media (max-width: 1000px) {
    .pf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .pf-hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 72px;
    }
}
@media (max-width: 600px) {
    .pf-grid {
        grid-template-columns: 1fr;
    }
    .pf-filter__chips {
        gap: 8px;
    }
    .pf-filter__btn {
        padding: 10px 16px;
        font-size: 0.88rem;
    }
}
