* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

html {
    background: #f8f2e7;
}

body {
    overflow: hidden;
    font-family:
        "Noto Serif TC",
        "Microsoft JhengHei",
        "PingFang TC",
        serif;
    color: #302D29;
    background:
        radial-gradient(
            circle at center,
            #fffdf7 0%,
            #f8f2e7 48%,
            #eee5d6 100%
        );
}

.exhibition-cover {
    position: relative;
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@supports not (height: 100dvh) {
    .exhibition-cover {
        height: 100vh;
    }
}

.exhibition-cover::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 248, 225, 0.9) 0%,
            rgba(255, 248, 225, 0.45) 42%,
            rgba(255, 248, 225, 0) 72%
        );
    animation: softGlow 6s ease-in-out infinite alternate;
    pointer-events: none;
}

.cover-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px 20px 25px;
}

.guanyin-area {
    position: relative;
    width: min(42vw, 450px);
    height: min(42vw, 450px);
    min-width: 270px;
    min-height: 270px;
    max-width: 450px;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    opacity: 0;
    animation: imageAppear 2s ease 0.1s forwards;
}

.guanyin-glow {
    position: absolute;
    width: 82%;
    height: 82%;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 244, 200, 0.7) 0%,
            rgba(255, 240, 195, 0.32) 45%,
            rgba(255, 240, 195, 0) 72%
        );
    filter: blur(10px);
    animation: glowPulse 4s ease-in-out infinite;
}

.guanyin-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.guanyin-ring-outer {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(155, 128, 80, 0.38);
    animation: ringRotate 35s linear infinite;
}

.guanyin-ring-outer::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 7px;
    height: 7px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #9B8050;
}

.guanyin-ring-inner {
    width: 88%;
    height: 88%;
    border: 1px solid rgba(155, 128, 80, 0.18);
}

.guanyin-image {
    position: relative;
    z-index: 3;
    width: 72%;
    height: 72%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(70, 55, 35, 0.12));
    animation: imageFloat 5s ease-in-out infinite;
}

.artist-name {
    position: relative;
    z-index: 6;
    font-size: clamp(13px, 1.4vw, 17px);
    letter-spacing: 5px;
    color: #9B8050;
    opacity: 0;
    animation: textAppear 1.2s ease 0.9s forwards;
}

.exhibition-title {
    position: relative;
    z-index: 6;
    margin: 7px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: 9px;
    line-height: 1.4;
    color: #302D29;
    opacity: 0;
    animation: titleAppear 1.4s ease 1.05s forwards;
}

.exhibition-subtitle {
    margin-top: 9px;
    font-size: clamp(14px, 1.6vw, 19px);
    letter-spacing: 5px;
    line-height: 1.6;
    color: #756B5E;
    opacity: 0;
    animation: textAppear 1.3s ease 1.3s forwards;
}

.exhibition-date {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(12px, 1.3vw, 15px);
    letter-spacing: 3px;
    color: #806A48;
    opacity: 0;
    animation: textAppear 1.2s ease 1.55s forwards;
}

.date-line {
    width: 30px;
    height: 1px;
    background: rgba(155, 128, 80, 0.5);
}

.exhibition-location {
    margin-top: 15px;
    font-size: clamp(11px, 1.2vw, 14px);
    letter-spacing: 3px;
    color: #766B5D;
    opacity: 0;
    animation: textAppear 1.2s ease 1.7s forwards;
}

.organizer-row {
    width: min(760px, 82vw);
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    animation: textAppear 1.2s ease 1.9s forwards;
}

.organizer-text {
    flex: 0 0 auto;
    min-width: 75px;
    text-align: right;
}

.organizer-label {
    display: inline-block;
    font-size: clamp(11px, 1.15vw, 14px);
    letter-spacing: 3px;
    color: #766B5D;
    white-space: nowrap;
}

.logo-placeholders {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 34px;
}

.logo-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(155, 128, 80, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(118, 107, 93, 0.55);
    overflow: hidden;
}

.logo-placeholder span {
    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 1px;
    opacity: 0.65;
}

.logo-wide {
    width: 180px;
    aspect-ratio: 4.26 / 1;
}

.logo-square {
    width: 50px;
    aspect-ratio: 1 / 1;
}

/* 進入展場現在不是 fixed，而是直接排在主辦單位下方 */
.enter-area {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: textAppear 3.2s ease 2.8s forwards;
}

.skip-button {
    position: relative;
    width: 110px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #9B8050;
    background: rgba(255, 255, 255, 0.78);
    color: #806A48;
    font-family:
        "Microsoft JhengHei",
        "Noto Serif TC",
        serif;
    font-size: 13px;
    letter-spacing: 3px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.skip-button:hover {
    background: #9B8050;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.skip-button::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 28px;
    height: 1px;
    transform: translateX(-50%);
    background: #9B8050;
    opacity: 0.5;
}

/* 桌機上方左右線條維持原本 */
.decor-line {
    position: absolute;
    top: 50%;
    width: 12vw;
    max-width: 180px;
    height: 1px;
    background:
        linear-gradient(
            to right,
            transparent,
            rgba(155, 128, 80, 0.35)
        );
    opacity: 0.7;
}

.decor-line-left {
    left: 0;
}

.decor-line-right {
    right: 0;
    transform: rotate(180deg);
}

.fade-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: #f8f2e7;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-overlay.active {
    opacity: 1;
}

@keyframes softGlow {
    from {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.55;
    }
    to {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.9;
    }
}

@keyframes imageAppear {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes titleAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 15px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 9px;
    }
}

@keyframes textAppear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.9;
    }
}

@keyframes imageFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* =========================
   手機版
========================= */

@media (max-width: 600px) {

    .cover-content {
        padding: 8px 16px 20px;
    }

    .guanyin-area {
        width: 66vw;
        height: 66vw;
        min-width: 210px;
        min-height: 210px;
        max-width: 300px;
        max-height: 300px;
        margin-bottom: 2px;
    }

    .artist-name {
        font-size: 13px;
        letter-spacing: 4px;
    }

    .exhibition-title {
        font-size: 27px;
        letter-spacing: 5px;
        margin-top: 5px;
    }

    .exhibition-subtitle {
        font-size: 13px;
        letter-spacing: 2.5px;
        margin-top: 6px;
    }

    .exhibition-date {
        margin-top: 11px;
        font-size: 11px;
        letter-spacing: 2px;
    }

    .date-line {
        width: 18px;
    }

    .exhibition-location {
        margin-top: 8px;
        font-size: 10.5px;
        letter-spacing: 1.8px;
        white-space: nowrap;
    }

    .organizer-row {
        width: auto;
        margin-top: 4px;
        flex-direction: column;
        gap: 3px;
    }

    .organizer-text {
        min-width: 0;
        text-align: center;
    }

    .organizer-label {
        font-size: 10.5px;
        letter-spacing: 2px;
    }

    .logo-placeholders {
        gap: 8px;
    }

    .logo-wide {
        width: 125px;
    }

    .logo-square {
        width: 36px;
    }

    .logo-placeholder span {
        font-size: 6px;
    }

    .decor-line {
        width: 7vw;
    }

    /* ★ 就放在第二個圖下方，距離 16px */
    .enter-area {
        margin-top: 16px;
        animation-delay: 2.8s;
        animation-duration: 3.2s;
        transform: translateY(10px);
    }

    .skip-button {
        width: 110px;
        height: 35px;
        font-size: 12px;
    }
}


/* 手機矮螢幕 */

@media (max-width: 900px) and (max-height: 700px) {
    .enter-area {
        margin-top: 12px !important;
        transform: translateY(10px);
    }


    .cover-content {
        padding-top: 3px;
        padding-bottom: 15px;
    }

    .guanyin-area {
        width: min(34vh, 260px);
        height: min(34vh, 260px);
        min-width: 175px;
        min-height: 175px;
    }

    .exhibition-title {
        font-size: 23px;
    }

    .exhibition-subtitle {
        margin-top: 2px;
        font-size: 11px;
    }

    .exhibition-date {
        margin-top: 5px;
    }

    .exhibition-location {
        margin-top: 4px;
    }

    .organizer-row {
        margin-top: 3px;
    }

    .logo-wide {
        width: 108px;
    }

    .logo-square {
        width: 32px;
    }

    .enter-area {
        margin-top: 12px;
        animation-delay: 2.8s;
    }
}


/* 桌機小高度 */
@media (max-height: 700px) and (min-width: 601px) {

    .guanyin-area {
        width: min(41vh, 340px);
        height: min(41vh, 340px);
    }

    .exhibition-subtitle {
        margin-top: 5px;
    }

    .exhibition-date {
        margin-top: 10px;
    }

    .exhibition-location {
        margin-top: 8px;
    }

    .organizer-row {
        margin-top: 9px;
    }

    .enter-area {
        margin-top: 18px;
    }
}


/* ========================================
   手機版：進入展場最終位置
   只移動「進入展場」，不影響主辦單位與圖片
======================================== */
@media (max-width: 600px) {
    .enter-area {
        position: relative !important;
        top: 30px !important;
        margin-top: 16px !important;
        transform: none !important;
    }
}

@media (max-width: 900px) and (max-height: 700px) {
    .enter-area {
        position: relative !important;
        top: 30px !important;
        margin-top: 12px !important;
        transform: none !important;
    }
}


/* ========================================
   手機版文字優化
   主標「觀自在．心自在」維持原設定
======================================== */
@media (max-width: 600px) {

    .artist-name {
        font-size: 15px !important;
        letter-spacing: 4px !important;
        line-height: 1.9 !important;
        margin-bottom: 4px !important;
    }

    .exhibition-subtitle {
        font-size: 15px !important;
        letter-spacing: 3px !important;
        line-height: 2 !important;
        margin-top: 10px !important;
    }

    .exhibition-date {
        font-size: 13px !important;
        letter-spacing: 2px !important;
        line-height: 2 !important;
        margin-top: 15px !important;
    }

    .exhibition-location {
        font-size: 12px !important;
        letter-spacing: 2px !important;
        line-height: 2 !important;
        margin-top: 12px !important;
    }

    .organizer-label {
        font-size: 12px !important;
        letter-spacing: 2px !important;
        line-height: 2 !important;
    }

    .organizer-row {
        margin-top: 7px !important;
        gap: 6px !important;
    }

    .enter-area {
        line-height: 2 !important;
    }
}

/* 手機版最終微調 */
@media (max-width: 600px) {
    .artist-name {
        line-height: 1.65 !important;
    }

    .exhibition-subtitle {
        line-height: 1.7 !important;
        margin-top: 8px !important;
    }

    .exhibition-date {
        line-height: 1.7 !important;
        margin-top: 12px !important;
    }

    .exhibition-location {
        line-height: 1.7 !important;
        margin-top: 9px !important;
    }

    .organizer-label {
        line-height: 1.7 !important;
    }

    .organizer-row {
        margin-top: 5px !important;
        gap: 5px !important;
    }

    /* 進入展場：由原本 30px 上移至 20px */
    .enter-area {
        top: 20px !important;
    }
}

@media (max-width: 900px) and (max-height: 700px) {
    .enter-area {
        top: 20px !important;
    }
}


/* 主辦單位 Logo */
.logo-placeholder {
    border: none;
    background: transparent;
}

.logo-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ========================================
   桌機版文字全面放大
   手機版維持目前設定
======================================== */
@media (min-width: 601px) {

    .artist-name {
        font-size: 24px !important;
        letter-spacing: 6px !important;
    }

    .exhibition-title {
        font-size: 40px !important;
        letter-spacing: 8px !important;
    }

    .exhibition-subtitle {
        font-size: 22px !important;
        letter-spacing: 5px !important;
    }

    .exhibition-date {
        font-size: 17px !important;
        letter-spacing: 3px !important;
    }

    .exhibition-location {
        font-size: 16px !important;
        letter-spacing: 3px !important;
    }

    .organizer-label {
        font-size: 15px !important;
        letter-spacing: 3px !important;
    }

    .enter-button {
        font-size: 18px !important;
        letter-spacing: 4px !important;
    }
}


/* Mobile-only line break for exhibition location */
.mobile-break {
    display: none;
}

@media (max-width: 600px) {
    .mobile-break {
        display: block;
    }

    .exhibition-location {
        white-space: normal !important;
    }
}
