/* news.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 65% 130% at 10% 50%, rgba(200, 16, 46, .26) 0%, transparent 55%), linear-gradient(125deg, #3D0A10 0%, #1A0A06 42%, #0D0806 72%, #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: 840px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ----- 重點公告橫幅 ----- */
.banner {
    background: linear-gradient(135deg, var(--ink), var(--red-deep));
    border-radius: 4px;
    padding: 1.3rem 1.6rem;
    margin: 3rem 0 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 6px 22px rgba(26, 10, 6, .18);
}

.bn-ico {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.bn-ttl {
    font-size: .76rem;
    font-weight: 900;
    color: var(--gold-light);
    letter-spacing: .1em;
    margin-bottom: .36rem;
    font-family: 'Noto Sans TC', sans-serif;
}

.bn-txt {
    font-size: .78rem;
    line-height: 1.9;
    color: rgba(253, 248, 240, .7);
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: .03em;
}

    .bn-txt strong {
        color: var(--gold-light);
    }

/* ----- 區塊標題 ----- */
.sec-hd {
    padding: 2.8rem 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 1.4rem;
}

.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;
    }

/* ----- 時間軸新聞卡片 ----- */
.nlist {
    display: flex;
    flex-direction: column;
    padding-bottom: 4.5rem;
}

.ncard {
    display: flex;
    gap: 0;
    position: relative;
}

.nd-col {
    width: 82px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: .15rem;
}

.nd-box {
    background: #fff;
    border: 1.5px solid rgba(212, 168, 67, .2);
    border-radius: 3px;
    padding: .42rem .45rem;
    text-align: center;
    min-width: 58px;
    box-shadow: 0 2px 8px rgba(26, 10, 6, .06);
    position: relative;
    z-index: 2;
}

.nd-mo {
    display: block;
    font-size: .54rem;
    letter-spacing: .16em;
    color: var(--red);
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
}

.nd-dy {
    display: block;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--ink);
    line-height: 1.05;
}

.nd-yr {
    display: block;
    font-size: .5rem;
    letter-spacing: .1em;
    color: var(--ink-light);
    font-family: 'Noto Sans TC', sans-serif;
    margin-top: .08rem;
}

.nd-line {
    flex: 1;
    width: 1px;
    background: linear-gradient(to bottom, rgba(212, 168, 67, .32), rgba(212, 168, 67, .07));
    margin: 5px 0;
    min-height: 1.5rem;
}

.ncard:last-child .nd-line {
    display: none;
}

.nb-col {
    flex: 1;
    background: #fff;
    border: 1px solid rgba(212, 168, 67, .13);
    border-radius: 4px;
    padding: 1.25rem 1.45rem;
    margin-left: 1.3rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 3px 14px rgba(26, 10, 6, .055);
    position: relative;
    overflow: hidden;
    transition: box-shadow .22s, transform .22s;
}

    .nb-col::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(to bottom, var(--gold), var(--red));
    }

.ncard:hover .nb-col {
    box-shadow: 0 8px 26px rgba(26, 10, 6, .1);
    transform: translateX(3px);
}

.ntag {
    display: inline-block;
    font-size: .57rem;
    letter-spacing: .12em;
    font-weight: 700;
    font-family: 'Noto Sans TC', sans-serif;
    padding: .16rem .56rem;
    border-radius: 1px;
    border: 1px solid;
    margin-bottom: .55rem;
}

.t-red {
    background: rgba(200, 16, 46, .09);
    border-color: rgba(200, 16, 46, .24);
    color: var(--red);
}

.t-gold {
    background: rgba(212, 168, 67, .11);
    border-color: rgba(212, 168, 67, .34);
    color: #8A6A10;
}

.t-green {
    background: rgba(0, 150, 100, .08);
    border-color: rgba(0, 150, 100, .26);
    color: #005E40;
}

.t-blue {
    background: rgba(21, 101, 192, .09);
    border-color: rgba(21, 101, 192, .26);
    color: #0D47A1;
}

.t-ink {
    background: rgba(26, 10, 6, .07);
    border-color: rgba(26, 10, 6, .18);
    color: var(--ink-mid);
}

.ntitle {
    font-size: .98rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: .05em;
    line-height: 1.55;
    margin-bottom: .55rem;
}

.nbody {
    font-size: .81rem;
    line-height: 1.95;
    color: var(--ink-light);
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: .04em;
}

/* ----- 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);
    }

/* ----- 頁腳 (若 _Layout 未提供) ----- */
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;
    }


/* ----- 滾入動畫 ----- */
.rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

    .rv.in {
        opacity: 1;
        transform: translateY(0);
    }

/* ----- 響應式調整 ----- */
@media (max-width: 600px) {
    .nd-col {
        width: 62px;
    }

    .nd-box {
        min-width: 48px;
        padding: .36rem .36rem;
    }

    .nd-dy {
        font-size: 1.2rem;
    }

    .nb-col {
        padding: 1rem 1rem;
        margin-left: .85rem;
    }

    .ntitle {
        font-size: .9rem;
    }
}
