:root {
    --bg: #f7f6f2;
    --surface: #ffffff;
    --text: #202321;
    --muted: #777a75;
    --line: #e6e4de;
    --accent: #0c3b45;
    --accent-soft: #e9f0f1;
    --shadow: 0 18px 55px rgba(21, 26, 24, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
main { flex: 1; }

/* 導覽列：維持簡單、乾淨，不讓品牌與活動圖互相搶畫面 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.nav-inner {
    min-height: 74px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; letter-spacing: .06em; }
.brand-text span { margin-top: 4px; color: var(--muted); font-size: .73rem; letter-spacing: .08em; }
.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    font-size: .95rem;
    white-space: nowrap;
}
.main-nav a {
    padding: 10px 0;
    color: #363936;
    transition: color .2s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav .login-link {
    padding: 8px 18px;
    border: 1px solid #cfd4d2;
    border-radius: 999px;
}
.main-nav .login-link:hover { border-color: var(--accent); }
.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
}

/* 首頁主視覺：中央清晰活動圖 + 左右模糊預覽 */
.activity-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,.98) 0%, rgba(248,247,243,.98) 44%, rgba(236,234,228,.98) 100%);
    border-bottom: 1px solid var(--line);
    padding: 28px 0 18px;
}
.carousel-stage {
    position: relative;
    width: min(1420px, 100%);
    height: clamp(520px, 72vh, 760px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(340px, 460px) minmax(160px, 1fr);
    align-items: center;
    justify-items: center;
    gap: clamp(16px, 3vw, 46px);
    padding: 0 clamp(62px, 7vw, 110px);
}
.focus-card {
    position: relative;
    z-index: 5;
    height: 100%;
    max-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.focus-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 24px 70px rgba(0,0,0,.18);
    background: white;
}
.preview-card {
    position: relative;
    width: min(100%, 330px);
    height: 70%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: .62;
    transition: opacity .25s ease, transform .25s ease;
}
.preview-card:hover {
    opacity: .78;
    transform: scale(1.015);
}
.preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(5px) saturate(.78);
    transform: scale(1.035);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.preview-left { justify-self: end; }
.preview-right { justify-self: start; }
.preview-left::after,
.preview-right::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(247,246,242,.16);
    pointer-events: none;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(35,40,38,.16);
    border-radius: 50%;
    background: rgba(255,255,255,.86);
    color: #353936;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0,0,0,.09);
    transition: transform .2s ease, background .2s ease;
}
.carousel-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}
.carousel-arrow.prev { left: 26px; }
.carousel-arrow.next { right: 26px; }
.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding-top: 4px;
}
.dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c5c8c5;
    cursor: pointer;
    transition: width .2s ease, border-radius .2s ease, background .2s ease;
}
.dot.active {
    width: 24px;
    border-radius: 99px;
    background: var(--accent);
}
@keyframes slideInRight {
    from { opacity: .45; transform: translateX(20px) scale(.985); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideInLeft {
    from { opacity: .45; transform: translateX(-20px) scale(.985); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
.slide-in-right { animation: slideInRight .32s ease; }
.slide-in-left { animation: slideInLeft .32s ease; }

/* 首頁下方只留必要入口，避免資訊太多 */
.home-summary {
    max-width: 1160px;
    margin: 0 auto;
    padding: 74px 28px 90px;
}
.summary-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: end;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}
.kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
}
.summary-head h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: .03em;
}
.summary-copy {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}
.home-links { display: grid; grid-template-columns: repeat(3, 1fr); }
.home-links a {
    min-height: 152px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 30px 22px;
    border-bottom: 1px solid var(--line);
    transition: background .2s ease;
}
.home-links a + a { border-left: 1px solid var(--line); }
.home-links a:hover { background: #f0efea; }
.home-links span { color: #a2a5a1; font-size: .78rem; }
.home-links strong { display: block; margin-bottom: 3px; font-size: 1.1rem; }
.home-links small { color: var(--muted); }
.home-links b { color: var(--accent); font-size: 1.2rem; font-weight: 500; }

/* 其餘頁面維持簡潔，先不搶首頁焦點 */
.page-hero, .section {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
}
.page-hero { padding-top: 82px; padding-bottom: 36px; }
.page-hero h1 { margin: 10px 0 14px; font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.08; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.section { padding-top: 34px; padding-bottom: 78px; }
.eyebrow { color: var(--accent); font-size: .76rem; letter-spacing: .15em; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card, .panel, .auth-card, .stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.card, .panel { padding: 24px; }
.card p, .muted { color: var(--muted); }
.card a { color: var(--accent); font-weight: 700; }
.pill {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
}
.pill.warning { background: #fff0db; color: #9a5718; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.wide { width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-placeholder {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    background: #ecebe6;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
}
.photo-card { display: grid; gap: 8px; }
.auth-wrap { min-height: 68vh; display: grid; place-items: center; padding: 64px 24px; }
.auth-card { width: min(460px, 100%); padding: 32px; }
.auth-card label { display: block; margin-top: 14px; margin-bottom: 6px; font-weight: 700; }
.auth-card input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.auth-card .btn { margin-top: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat { padding: 20px; display: flex; flex-direction: column; }
.stat strong { font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .88rem; }
.big-number { font-size: 3.6rem; font-weight: 800; margin: 10px 0; }
.admin-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 28px 80px;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
}
.admin-nav {
    align-self: start;
    position: sticky;
    top: 94px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    border-radius: 12px;
    background: #202522;
    color: white;
}
.admin-nav a { padding: 9px 10px; border-radius: 7px; color: #d7dbd8; }
.admin-nav a.active, .admin-nav a:hover { background: #323a36; color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: #f2f1ed; font-size: .85rem; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    min-height: 130px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.25; }
.footer-brand span { color: var(--muted); font-size: .75rem; }
.footer-links { display: flex; gap: 24px; color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 74px;
        padding: 16px 28px 22px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: white;
        border-bottom: 1px solid var(--line);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 11px 0; }
    .main-nav .login-link { border: 0; border-radius: 0; }

    .carousel-stage {
        grid-template-columns: minmax(100px, .55fr) minmax(300px, 430px) minmax(100px, .55fr);
        padding-left: 54px;
        padding-right: 54px;
        gap: 18px;
    }
    .preview-card { height: 58%; }
    .summary-head { grid-template-columns: 1fr; gap: 18px; }
    .home-links { grid-template-columns: 1fr; }
    .home-links a + a { border-left: 0; }
    .cards, .cards.four { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .admin-shell, .split { grid-template-columns: 1fr; }
    .admin-nav { position: static; }
}

@media (max-width: 680px) {
    .brand-text { display: none; }
    .nav-inner { min-height: 66px; padding: 8px 18px; }
    .brand img { width: 46px; height: 46px; }
    .main-nav { top: 66px; }

    .activity-hero { padding-top: 16px; }
    .carousel-stage {
        height: min(72vh, 640px);
        min-height: 480px;
        display: flex;
        justify-content: center;
        padding: 0 46px;
    }
    .preview-card { display: none; }
    .focus-card { width: 100%; }
    .focus-card img { max-width: 100%; max-height: 100%; height: auto; }
    .carousel-arrow { width: 38px; height: 38px; font-size: 1.7rem; }
    .carousel-arrow.prev { left: 8px; }
    .carousel-arrow.next { right: 8px; }

    .home-summary { padding: 56px 20px 70px; }
    .home-links a { min-height: 126px; padding-left: 10px; padding-right: 10px; }
    .cards, .cards.four, .gallery, .stat-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-links { flex-wrap: wrap; }
}

/* Instagram 懸浮 QR Code：僅新增此元件，其他第二版樣式不變 */
.instagram-float {
    position: fixed;
    right: 22px;
    bottom: 24px;
    width: 168px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    z-index: 9999;
}
.instagram-float p {
    margin: 0 0 10px;
    padding: 0 18px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}
.instagram-float img {
    width: 138px;
    height: 138px;
    margin: 0 auto;
    object-fit: contain;
    background: #fff;
}
.instagram-float small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: .72rem;
}
.instagram-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
}

@media (max-width: 680px) {
    .instagram-float {
        right: 12px;
        bottom: 12px;
        width: 132px;
        padding: 10px;
    }
    .instagram-float img {
        width: 108px;
        height: 108px;
    }
    .instagram-float p { font-size: .78rem; }
}


/* 關於我們 / 朝聖護照：沿用第二版配色與排版，只補內容閱讀樣式 */
.prose { max-width: 920px; }
.prose-section {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.prose-section:first-child { padding-top: 0; }
.prose-section:last-child { border-bottom: 0; }
.prose-section h2 { margin: 0 0 12px; font-size: 1.45rem; }
.prose-section h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.prose-section p { margin: 0 0 12px; color: var(--muted); }
.prose-section p:last-child { margin-bottom: 0; }
.clean-list {
    margin: 10px 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}
.clean-list li + li { margin-top: 7px; }
.notice-box {
    margin-top: 18px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.notice-box strong { display: block; margin-bottom: 6px; color: var(--text); }

/* 輪播主圖必須完整顯示，不以固定高度裁切圖片內容 */
.focus-card { min-height: 0; }
.carousel-stage .focus-card img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100% - 8px);
    object-fit: contain;
}

@media (max-width: 680px) {
    .carousel-stage .focus-card img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: calc(100% - 8px);
        object-fit: contain;
    }
}

/* v2 功能補強：首頁精選活動輪播文字，不改原有整體配色與版型 */
.carousel-caption {
    max-width: 720px;
    margin: 10px auto 0;
    padding: 0 24px;
    text-align: center;
}
.carousel-caption strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 1rem;
}
.carousel-caption span {
    color: var(--muted);
    font-size: .9rem;
}
.carousel-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
}
.carousel-empty strong { color: var(--text); }

/* 本版只補活動資料呈現，不更動第二版整體視覺 */
.summary-head-single {
    grid-template-columns: 1fr;
}

.activity-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.activity-list-card {
    display: grid;
    grid-template-columns: minmax(150px, 210px) 1fr;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.activity-list-image {
    min-height: 300px;
    background: #efeee9;
}
.activity-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.activity-list-body {
    padding: 24px;
}
.activity-list-body h2 {
    margin: 12px 0 10px;
}
.activity-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
}
.activity-list-actions a {
    color: var(--accent);
    font-weight: 700;
}

.activity-detail-head {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 390px);
    gap: 42px;
    align-items: start;
}
.activity-detail-poster {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

@media (max-width: 980px) {
    .activity-list-grid {
        grid-template-columns: 1fr;
    }
    .activity-detail-head {
        grid-template-columns: 1fr;
    }
    .activity-detail-poster {
        width: min(100%, 430px);
    }
}

@media (max-width: 680px) {
    .activity-list-card {
        grid-template-columns: 1fr;
    }
    .activity-list-image {
        min-height: 0;
        max-height: 520px;
    }
    .activity-list-image img {
        height: auto;
        max-height: 520px;
        object-fit: contain;
        background: #fff;
    }
}

/* 會員註冊、投稿與審核流程：延續 v2 原有配色與元件 */
.flash-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 18px auto 0;
}
.flash-message {
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.flash-message.success { border-color: #b9d3c0; background: #f2f8f3; }
.flash-message.error { border-color: #e4b9b9; background: #fff4f4; }

.form-error,
.field-error {
    margin-top: 7px;
    color: #a33737;
    font-size: .88rem;
}
.form-error ul,
.field-error ul { margin: 0; padding-left: 1.1rem; }
.form-help {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .88rem;
}

.member-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 18px;
}
.upload-panel,
.quota-panel { align-self: start; }
.upload-panel h2,
.quota-panel h2 { margin-top: 8px; }
.upload-form label {
    display: block;
    margin: 16px 0 7px;
    font-weight: 700;
}
.upload-form select,
.upload-form input[type="text"],
.upload-form input[type="file"],
.review-actions input[type="text"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.upload-form .btn { margin-top: 18px; }
.quota-list { border-top: 1px solid var(--line); }
.quota-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.quota-row div { display: flex; flex-direction: column; }
.quota-row small { color: var(--muted); margin-top: 2px; }
.quota-row b { color: var(--accent); white-space: nowrap; }
.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}
.section-heading-row h2 { margin: 7px 0 0; }
.member-submission-grid,
.public-photo-grid,
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.member-submission-card,
.public-photo-card,
.review-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.member-submission-card img,
.public-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #efeee9;
}
.member-submission-body,
.public-photo-card > div { padding: 16px; }
.member-submission-body h3 { margin: 10px 0 6px; }
.member-submission-body p,
.public-photo-card p { margin: 6px 0; color: var(--muted); }
.member-submission-body small { color: var(--muted); }
.review-note { font-size: .9rem; }
.empty-state {
    grid-column: 1 / -1;
    padding: 34px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.48);
}

.status-approved { background: #e9f4eb; color: #2d7141; }
.status-pending { background: #fff5df; color: #8b641a; }
.status-manual_rejected,
.status-auto_rejected { background: #fae9e9; color: #953b3b; }
.status-removed { background: #ededed; color: #666; }

.table-thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 7px;
}
.admin-recent-head { margin-top: 28px; }
.review-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.review-filter a {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
}
.review-filter a.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}
.review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-card { display: grid; grid-template-columns: minmax(180px, 42%) 1fr; }
.review-card.compact { grid-template-columns: minmax(150px, 35%) 1fr; }
.review-image { background: #efeee9; min-height: 280px; }
.review-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.review-card-body { padding: 20px; }
.review-card-body h2,
.review-card-body h3 { margin: 10px 0; }
.review-card-body p { margin: 8px 0; }
.review-actions { margin-top: 16px; }
.review-actions > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.member-admin-stats { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
    .member-grid { grid-template-columns: 1fr; }
    .member-submission-grid,
    .public-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .member-submission-grid,
    .public-photo-grid { grid-template-columns: 1fr; }
    .section-heading-row { align-items: flex-start; flex-direction: column; }
    .review-card,
    .review-card.compact { grid-template-columns: 1fr; }
    .review-image { min-height: 0; max-height: 520px; }
    .review-image img { height: auto; max-height: 520px; }
    .member-admin-stats { grid-template-columns: 1fr 1fr; }
}

/* 多圖投稿、同會員同活動審核群組、頁首右側操作 */
.page-hero-with-action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}
.page-hero-with-action > div {
    min-width: 0;
}
.page-hero-action {
    flex-shrink: 0;
    margin-bottom: 8px;
}

.review-page-note {
    margin-top: -8px;
    margin-bottom: 18px;
}
.review-group-list {
    display: grid;
    gap: 22px;
}
.review-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.58);
}
.review-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #f6f5f1;
}
.review-group-head h2 {
    margin: 6px 0 2px;
    font-size: 1.1rem;
}
.review-group-head p {
    margin: 0;
    color: var(--muted);
}
.review-group-head > strong {
    color: var(--accent);
    white-space: nowrap;
}
.review-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
}
.grouped-review-card {
    grid-template-columns: 1fr;
}
.grouped-review-card .review-image {
    min-height: 0;
    height: 300px;
}
.grouped-review-card .review-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 980px) {
    .page-hero-with-action {
        align-items: flex-start;
    }
    .review-group-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .page-hero-with-action {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .page-hero-action {
        align-self: flex-end;
        margin-bottom: 0;
    }
    .review-group-head {
        align-items: flex-start;
    }
    .grouped-review-card .review-image {
        height: auto;
        max-height: 520px;
    }
    .grouped-review-card .review-image img {
        height: auto;
        max-height: 520px;
    }
}


/* 首頁入口移除 01/02/03 後維持原版排版 */
.home-links a {
    grid-template-columns: 1fr auto;
}

/* 批次審核 */
.batch-review-bar {
    position: sticky;
    top: 86px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
    backdrop-filter: blur(8px);
}
.batch-select-all,
.group-select-all,
.review-select-box {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}
.batch-review-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.review-group-head-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.grouped-review-card {
    position: relative;
}
.review-select-box {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    padding: 6px 9px;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    font-size: .82rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.review-select-box input,
.batch-select-all input,
.group-select-all input {
    width: 16px;
    height: 16px;
}

/* 公開活動照片篩選 */
.photo-gallery-controls-section {
    padding-top: 0;
    padding-bottom: 6px;
}
.photo-gallery-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.photo-gallery-filter label {
    color: var(--muted);
    font-size: .92rem;
}
.photo-gallery-filter select {
    min-width: 220px;
    max-width: min(420px, 100%);
    padding: 10px 38px 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
}
.photo-grid-after-filter {
    padding-top: 14px;
}

@media (max-width: 680px) {
    .batch-review-bar {
        top: 72px;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .batch-review-actions {
        width: 100%;
        margin-left: 0;
    }
    .review-group-head-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }
    .photo-gallery-filter {
        justify-content: stretch;
        align-items: stretch;
        flex-direction: column;
    }
    .photo-gallery-filter select {
        width: 100%;
        max-width: none;
    }
}

/* 活動照片愛心 */
.public-photo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.public-photo-meta form {
    margin: 0;
}
.photo-like-button {
    min-width: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    line-height: 1;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.photo-like-button > span:first-child {
    font-size: 1.08rem;
}
.photo-like-button:hover,
.photo-like-button.active {
    color: #b3263e;
    border-color: rgba(179, 38, 62, .28);
    background: #fff7f8;
}
.photo-like-button.login-required {
    text-decoration: none;
}

/* 全站頁尾上方：醒村實體快閃店 */
.popup-store-section {
    border-top: 1px solid var(--line);
    background: #f2f0ea;
}
.popup-store-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 52px 28px 48px;
    display: grid;
    grid-template-columns: minmax(260px, .8fr) 1.2fr;
    gap: 52px;
    align-items: start;
}
.popup-store-head h2 {
    margin: 8px 0 6px;
    font-size: clamp(1.55rem, 2.6vw, 2.25rem);
    line-height: 1.25;
}
.popup-store-head p,
.popup-store-note {
    margin: 0;
    color: var(--muted);
}
.popup-store-info {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
}
.popup-store-info div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.popup-store-info dt {
    color: var(--muted);
    font-size: .9rem;
}
.popup-store-info dd {
    margin: 0;
    font-weight: 650;
}
.popup-store-note {
    grid-column: 2;
    margin-top: -28px;
    font-size: .9rem;
}

@media (max-width: 800px) {
    .popup-store-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 42px 22px;
    }
    .popup-store-note {
        grid-column: 1;
        margin-top: -10px;
    }
}

@media (max-width: 560px) {
    .popup-store-info {
        grid-template-columns: 1fr;
    }
    .popup-store-info div {
        grid-template-columns: 82px 1fr;
    }
}

/* 頁尾快閃店資訊：與關於我們／限時活動／社群平台同區塊 */
.footer-popup-store {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 430px;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}
.footer-popup-store strong {
    color: var(--text);
    font-size: .9rem;
}
.footer-popup-store small {
    color: var(--muted);
}
@media (max-width: 980px) {
    .footer-popup-store {
        max-width: 100%;
    }
}


/* 手機版仍顯示完整品牌名稱 */
@media (max-width: 680px) {
    .brand-text {
        display: flex;
        min-width: 0;
    }
    .brand-text strong {
        font-size: .88rem;
        letter-spacing: .03em;
        white-space: nowrap;
    }
    .brand-text span {
        margin-top: 2px;
        font-size: .62rem;
        letter-spacing: .045em;
        white-space: nowrap;
    }
    .brand { gap: 8px; }
    .brand img { width: 42px; height: 42px; }
}

@media (max-width: 380px) {
    .brand-text strong { font-size: .82rem; }
    .brand-text span { font-size: .58rem; }
    .brand img { width: 40px; height: 40px; }
}

/* 頁尾醒村地址連結 */
.footer-popup-store a {
    color: inherit;
    text-decoration: none;
}
.footer-popup-store a:hover {
    text-decoration: underline;
}

/* 活動照片：社群平台風格完整預覽 */
.public-photo-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: inherit;
}
.public-photo-open img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #efeee9;
}
body.photo-viewer-open { overflow: hidden; }
.photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}
.photo-viewer.open { display: flex; }
.photo-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 22, 21, .86);
    backdrop-filter: blur(8px);
}
.photo-viewer-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, 96vw);
    height: min(820px, 90vh);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    overflow: hidden;
    border-radius: 14px;
    background: #171918;
    box-shadow: 0 30px 90px rgba(0,0,0,.38);
}
.photo-viewer-stage {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #111312;
}
.photo-viewer-stage img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.photo-viewer-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 22px 22px;
    background: #fff;
}
.photo-viewer-side h2 {
    margin: 10px 0 6px;
    font-size: 1.15rem;
    line-height: 1.45;
}
.photo-viewer-side p {
    margin: 0;
    color: var(--muted);
}
.photo-download-button { width: 100%; }
.photo-viewer-close {
    position: absolute;
    top: 12px;
    right: 252px;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.52);
    color: #fff;
    font-size: 1.7rem;
    cursor: pointer;
}

@media (max-width: 760px) {
    .photo-viewer { padding: 0; }
    .photo-viewer-dialog {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
    }
    .photo-viewer-stage { padding: 8px; }
    .photo-viewer-side {
        padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
        flex-direction: row;
        align-items: center;
    }
    .photo-viewer-side > div { min-width: 0; }
    .photo-viewer-side h2 {
        margin: 4px 0 0;
        font-size: 1rem;
    }
    .photo-viewer-side p { display: none; }
    .photo-download-button {
        width: auto;
        flex-shrink: 0;
    }
    .photo-viewer-close {
        top: calc(12px + env(safe-area-inset-top));
        right: 12px;
    }
}

/* 活動照片完整檢視：愛心 + 手機系統分享 / 電腦複製連結 */
.photo-viewer-actions {
    display: grid;
    gap: 10px;
    width: 100%;
}
.photo-viewer-actions form { margin: 0; }
.photo-viewer-actions .btn {
    width: 100%;
    justify-content: center;
}
.photo-viewer-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}
.photo-viewer-like.active {
    color: #a02f36;
    border-color: rgba(160,47,54,.24);
    background: #fff7f7;
}
.photo-viewer-like span:first-child {
    font-size: 1.15rem;
    line-height: 1;
}
.photo-share-button { border: 0; }

@media (max-width: 760px) {
    .photo-viewer-side {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 12px;
    }
    .photo-viewer-info .eyebrow,
    .photo-viewer-info #photoViewerHint { display: none; }
    .photo-viewer-actions {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr);
        gap: 10px;
    }
    .photo-viewer-actions .btn {
        min-height: 46px;
        padding-left: 12px;
        padding-right: 12px;
        white-space: nowrap;
    }
}
