/* media.css - 青青餐廳媒體報導頁面專用樣式 */

:root {
    --red: #C8102E;
    --red-dark: #8B0A1E;
    --red-deep: #5A0612;
    --gold: #D4A843;
    --gold-light: #F0CC78;
    --ink: #1A0A06;
    --ink-mid: #3D1A0C;
    --ink-light: #6B3A20;
    --paper: #FDF8F0;
    --cream: #FBF5E8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif TC', serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
}

/* ----- 導航列 (與 Layout 共用，此處保留確保樣式完整) ----- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(26, 10, 6, .96);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}

.nav-logo img {
    height: 54px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
}

    .nav-links a {
        font-size: .85rem;
        font-weight: 600;
        color: rgba(253, 248, 240, .78);
        text-decoration: none;
        letter-spacing: .08em;
        transition: color .2s;
    }

        .nav-links a:hover {
            color: var(--gold-light);
        }

        .nav-links a.active {
            color: var(--gold);
        }

.nav-cta {
    background: var(--red) !important;
    color: #fff !important;
    padding: .38rem 1.1rem;
    border-radius: 2px;
}

.ham {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

    .ham span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--gold-light);
        border-radius: 2px;
    }

@media (max-width: 860px) {
    .ham {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 72px;
        right: 0;
        width: 240px;
        height: 100vh;
        background: rgba(26, 10, 6, .97);
        padding: 2rem 1.5rem;
        gap: 1.4rem;
        border-left: 2px solid var(--gold);
    }

        .nav-links.open {
            display: flex;
        }
}

/* ----- Hero 區塊 ----- */
.hero {
    margin-top: 72px;
    height: clamp(180px, 22vw, 250px);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 120% at 15% 50%, rgba(200, 16, 46, .3) 0%, transparent 55%), linear-gradient(125deg, #3D0A10 0%, #1A0A06 40%, #0D0806 70%, #1C1004 100%);
}

.hero-gd {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(212, 168, 67, .03) 47px, rgba(212, 168, 67, .03) 48px), repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(212, 168, 67, .03) 47px, rgba(212, 168, 67, .03) 48px);
}

.hero-cnt {
    position: relative;
    z-index: 2;
    padding-left: clamp(2rem, 6%, 7rem);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.hero-eye {
    font-size: .6rem;
    letter-spacing: .55em;
    color: var(--gold);
    opacity: .8;
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .hero-eye::before,
    .hero-eye::after {
        content: '';
        width: 14px;
        height: 1px;
        background: var(--gold);
        opacity: .5;
    }

.hero-h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: .2em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

    .hero-h1 em {
        color: var(--gold-light);
        font-style: normal;
    }

.hero-sub {
    font-size: .74rem;
    color: rgba(253, 248, 240, .34);
    letter-spacing: .26em;
    font-family: 'Noto Sans TC', sans-serif;
}

/* ----- 主要內容容器 ----- */
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ----- 區塊標題 ----- */
.sec-hd {
    padding: 3.2rem 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 1.5rem;
}

.s-lbl {
    font-size: .6rem;
    letter-spacing: .52em;
    color: var(--red);
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 600;
    margin-bottom: .36rem;
}

.s-ttl {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: .12em;
    padding-bottom: .58rem;
    position: relative;
}

    .s-ttl::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 30px;
        height: 2px;
        background: var(--gold);
    }

.cnt-badge {
    font-size: .7rem;
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--ink-light);
    letter-spacing: .06em;
}

    .cnt-badge strong {
        color: var(--red);
        font-size: .92rem;
    }

/* ----- 篩選按鈕 ----- */
.filters {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}

.ftab {
    font-size: .68rem;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    letter-spacing: .1em;
    padding: .34rem .86rem;
    border-radius: 2px;
    border: 1.5px solid rgba(26, 10, 6, .14);
    background: transparent;
    color: var(--ink-light);
    cursor: pointer;
    transition: all .2s;
}

    .ftab:hover {
        border-color: var(--gold);
        color: var(--ink);
    }

    .ftab.on {
        background: var(--red);
        border-color: var(--red);
        color: #fff;
    }

/* ----- 影片網格卡片 ----- */
.vgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.6rem;
    padding-bottom: 5rem;
}

.vcard {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 67, .13);
    box-shadow: 0 4px 18px rgba(26, 10, 6, .07);
    transition: transform .22s, box-shadow .22s;
    display: flex;
    flex-direction: column;
}

    .vcard:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 36px rgba(26, 10, 6, .13);
    }

/* 影片縮圖區域 */
.vthumb {
    position: relative;
    padding-top: 56.25%;
    cursor: pointer;
    overflow: hidden;
    background: #111;
}

    .vthumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s;
    }

.vcard:hover .vthumb img {
    transform: scale(1.04);
}

.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .28);
    transition: background .2s;
}

.vthumb:hover .play-btn {
    background: rgba(0, 0, 0, .46);
}

.play-btn svg {
    width: 54px;
    height: 54px;
    fill: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
    transition: transform .2s;
}

.vthumb:hover .play-btn svg {
    transform: scale(1.12);
}

.play-btn::before {
    content: '';
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(200, 16, 46, .75);
    z-index: -1;
}

/* 影片資訊區 */
.vinfo {
    padding: 1.1rem 1.25rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.vtag {
    display: inline-block;
    font-size: .56rem;
    letter-spacing: .14em;
    font-weight: 700;
    font-family: 'Noto Sans TC', sans-serif;
    padding: .16rem .56rem;
    border-radius: 1px;
    border: 1px solid;
    align-self: flex-start;
}

.vtitle {
    font-size: .94rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: .04em;
    line-height: 1.55;
}

.vsrc {
    font-size: .72rem;
    color: var(--ink-light);
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: .05em;
}

.vdesc {
    font-size: .78rem;
    line-height: 1.85;
    color: var(--ink-light);
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: .04em;
    flex: 1;
}

.vlink {
    display: inline-block;
    font-size: .72rem;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    color: var(--red);
    letter-spacing: .06em;
    text-decoration: none;
    margin-top: .3rem;
    transition: color .2s;
}

    .vlink:hover {
        color: var(--red-dark);
    }

/* ----- 統計數據欄 ----- */
.stats-bar {
    background: linear-gradient(135deg, var(--ink), var(--red-deep));
    border-radius: 4px;
    padding: 1.4rem 2rem;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-light);
    letter-spacing: .04em;
}

.stat-lbl {
    font-size: .62rem;
    letter-spacing: .2em;
    color: rgba(253, 248, 240, .5);
    font-family: 'Noto Sans TC', sans-serif;
    margin-top: .18rem;
}

/* ----- CTA 區域 ----- */
.sec-cta {
    background: var(--red);
    padding: 2.6rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .sec-cta::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(255, 255, 255, .025) 28px, rgba(255, 255, 255, .025) 56px);
    }

    .sec-cta > * {
        position: relative;
        z-index: 1;
    }

.cta-label {
    font-size: .6rem;
    letter-spacing: .45em;
    color: rgba(255, 255, 255, .38);
    margin-bottom: .36rem;
    font-family: 'Noto Sans TC', sans-serif;
}

.cta-title {
    font-size: clamp(1.1rem, 2.5vw, 1.65rem);
    color: #fff;
    font-weight: 900;
    letter-spacing: .1em;
    margin-bottom: .38rem;
}

.cta-address {
    font-size: .74rem;
    color: rgba(255, 255, 255, .5);
    letter-spacing: .08em;
    margin-bottom: 1.1rem;
    font-family: 'Noto Sans TC', sans-serif;
}

.cta-buttons {
    display: flex;
    gap: .85rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #fff;
    color: var(--red);
    font-weight: 900;
    font-size: .84rem;
    letter-spacing: .1em;
    padding: .65rem 1.7rem;
    border-radius: 2px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
    transition: transform .2s;
}

    .btn-primary:hover {
        transform: translateY(-2px);
    }

.btn-secondary {
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: .84rem;
    letter-spacing: .1em;
    padding: .65rem 1.7rem;
    border-radius: 2px;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, .4);
    transition: background .2s, border-color .2s;
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, .1);
        border-color: rgba(255, 255, 255, .8);
    }

/* ----- 頁腳 ----- */
footer {
    background: var(--ink);
    border-top: 2px solid var(--gold);
    padding: 1.8rem 5%;
    text-align: center;
    font-size: .73rem;
    color: rgba(253, 248, 240, .37);
    letter-spacing: .1em;
    line-height: 2.3;
}

    footer strong {
        color: var(--gold);
        font-size: .83rem;
    }

    footer a {
        color: rgba(212, 168, 67, .46);
        text-decoration: none;
    }


/* ----- 影片 Modal ----- */
.modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s;
}

    .modal-wrap.open {
        opacity: 1;
        pointer-events: all;
    }

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(6px);
}

.modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
    transform: scale(.94);
    transition: transform .28s;
}

.modal-wrap.open .modal-box {
    transform: scale(1);
}

.modal-box iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1rem;
    background: rgba(26, 10, 6, .95);
    border-bottom: 1px solid rgba(212, 168, 67, .2);
}

.modal-title {
    font-size: .82rem;
    color: rgba(253, 248, 240, .85);
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: .04em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gold);
    font-size: 1.3rem;
    padding: .2rem .4rem;
    line-height: 1;
    opacity: .8;
    transition: opacity .2s;
}

    .modal-close:hover {
        opacity: 1;
    }

/* ----- 滾入動畫效果 ----- */
.rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

    .rv.in {
        opacity: 1;
        transform: translateY(0);
    }

/* ----- 響應式調整 ----- */
@media (max-width: 640px) {
    .vgrid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: .6rem;
        padding: 1rem 1.2rem;
    }
}
