/* =========================================================
   AnnAI 雜誌風：只處理頁首／主視覺
   其他區塊完全沿用預設名片頁樣式。
   ========================================================= */


body.theme-magazine .mag-header {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: min(100%, 720px);
    padding: 26px 42px;
    color: #fff;
    background: transparent;
    border-bottom: 0;
    transform: translateX(-50%);
}
body.theme-magazine .mag-brand { display: none !important; }
body.theme-magazine .mag-header[hidden] { display: none !important; }
body.theme-magazine .mag-footer { display: none !important; }
body.theme-magazine .mag-brand {
    color: #fff;
    font-family: 'Noto Serif TC', 'Songti TC', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .16em;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
body.theme-magazine .mag-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}
body.theme-magazine .mag-nav a {
    color: rgba(255,255,255,.9);
    font-size: 13px;
    letter-spacing: .04em;
    text-decoration: none;
    text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
body.theme-magazine .mag-nav a:hover { color: #fff; }

body.theme-magazine .hero-section {
    position: relative;
    min-height: 580px;
    padding: 0;
    overflow: hidden;
    text-align: left;
    background: #111;
}
body.theme-magazine .hero-cover,
body.theme-magazine .card-container:not(.is-wide) .hero-cover {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100% !important;
    border-radius: 0;
    background-position: center;
    background-size: cover;
}
body.theme-magazine .hero-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(var(--magazine-hero-mask-rgb, 8, 12, 18), var(--magazine-hero-mask-opacity, 0)) 0%, rgba(var(--magazine-hero-mask-rgb, 8, 12, 18), 0) 100%);
}
body.theme-magazine .hero-content,
body.theme-magazine .card-container:not(.is-wide) .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 580px;
    margin-top: 0;
    padding: 132px 42px 48px !important;
    text-align: left;
}
body.theme-magazine .hero-primary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
body.theme-magazine .hero-primary .avatar-wrapper {
    width: 88px !important;
    height: 88px !important;
    border: 3px solid rgba(255,255,255,.42);
    background: rgba(0,0,0,.18);
    box-shadow: 0 8px 26px rgba(0,0,0,.28);
}
body.theme-magazine .hero-digu {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.32);
}
body.theme-magazine .hero-digu-text { color: #fff; }
body.theme-magazine .merchant-name,
body.theme-magazine .card-container:not(.is-wide) .merchant-name {
    max-width: 620px;
    color: #fff;
    font-family: 'Noto Serif TC', 'Songti TC', serif;
    font-size: 46px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: .02em;
    text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
body.theme-magazine .merchant-subtitle,
body.theme-magazine .card-container:not(.is-wide) .merchant-subtitle {
    max-width: 560px;
    margin-top: 14px;
    color: rgba(255,255,255,.9);
    font-size: 16px;
    line-height: 1.9;
    text-shadow: 0 1px 12px rgba(0,0,0,.38);
}
body.theme-magazine .merchant-tags {
    justify-content: flex-start;
    margin-top: 18px;
}
body.theme-magazine .merchant-tag {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.32);
}
body.theme-magazine .hero-section .share-bar { margin-top: 18px; }
body.theme-magazine .hero-section .share-btn {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
body.theme-magazine .hero-section .share-btn:hover {
    color: #1c1b19;
    background: #fff;
    border-color: #fff;
}

@media (max-width: 760px) {
    body.theme-magazine .mag-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        padding: 18px 20px;
    }
    body.theme-magazine .mag-brand { font-size: 15px; }
    body.theme-magazine .mag-nav {
        justify-content: flex-start;
        gap: 12px 16px;
    }
    body.theme-magazine .mag-nav a { font-size: 11.5px; }
    body.theme-magazine .hero-section { min-height: 560px; }
    body.theme-magazine .hero-cover,
    body.theme-magazine .card-container:not(.is-wide) .hero-cover { height: 100% !important; }
    body.theme-magazine .hero-cover::after {
        background: linear-gradient(180deg, rgba(var(--magazine-hero-mask-rgb, 8, 12, 18), var(--magazine-hero-mask-opacity, 0)) 0%, rgba(var(--magazine-hero-mask-rgb, 8, 12, 18), 0) 100%);
    }
    body.theme-magazine .hero-content,
    body.theme-magazine .card-container:not(.is-wide) .hero-content {
        justify-content: flex-end;
        min-height: 560px;
        padding: 138px 22px 34px !important;
    }
    body.theme-magazine .hero-primary .avatar-wrapper {
        width: 78px !important;
        height: 78px !important;
    }
    body.theme-magazine .merchant-name,
    body.theme-magazine .card-container:not(.is-wide) .merchant-name {
        font-size: 36px;
        line-height: 1.2;
    }
    body.theme-magazine .merchant-subtitle,
    body.theme-magazine .card-container:not(.is-wide) .merchant-subtitle {
        max-width: 100%;
        font-size: 14.5px;
        line-height: 1.75;
    }
    body.theme-magazine .merchant-tags { margin-top: 14px; }
    body.theme-magazine .hero-section .share-bar { margin-top: 14px; }
}