@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;700;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    --primary-yellow: #ffff00;
    --primary-pink: #ff0080;
    --primary-cyan: #00ffff;
    --bg-black: #000000;
    --text-white: #ffffff;
    --accent-purple: #8000ff;
    --accent-green: #00ff80;
}

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 粒子背景效果 */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: float 10s infinite linear;
    opacity: 0.6;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 背景網格效果 */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 0, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 0, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite, gridPulse 4s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* 導航欄 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-pink), var(--primary-cyan), var(--primary-yellow)) 1;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-yellow);
    text-shadow:
        2px 2px 0 var(--primary-pink),
        -2px -2px 0 var(--primary-cyan),
        0 0 20px rgba(255, 255, 0, 0.5);
    font-family: 'Space Mono', monospace;
    animation: logoGlow 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: hue-rotate(45deg);
}

@keyframes logoGlow {

    0%,
    100% {
        text-shadow: 2px 2px 0 var(--primary-pink), -2px -2px 0 var(--primary-cyan), 0 0 20px rgba(255, 255, 0, 0.5);
    }

    50% {
        text-shadow: 2px 2px 0 var(--primary-cyan), -2px -2px 0 var(--primary-pink), 0 0 30px rgba(255, 255, 0, 0.8);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 15px;
    border-radius: 0; /* 改為直角 */
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-cyan));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    border-radius: 0; /* 改為直角 */
}

.nav-menu a:hover {
    color: var(--bg-black);
    text-shadow: none;
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a.active {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-cyan);
}

/* 主要內容區域 */
.main-content {
    margin-top: 80px;
}

.section {
    min-height: 100vh;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 首頁 Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 128, 0.2), rgba(255, 255, 0, 0.1), transparent);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 0, 128, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 0, 0.2) 0%, transparent 40%);
    animation: backgroundShift 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundShift {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    33% {
        transform: scale(1.1) rotate(120deg);
    }

    66% {
        transform: scale(0.9) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary-yellow);
    text-shadow:
        3px 3px 0 var(--primary-pink),
        -3px -3px 0 var(--primary-cyan),
        0 0 30px rgba(255, 255, 0, 0.8);
    margin-bottom: 30px;
    animation: glitchTitle 4s infinite;
    position: relative;
}

.hero-content h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    color: var(--primary-cyan);
    clip: rect(0, 0, 0, 0);
    animation: glitchClip 4s infinite;
}

@keyframes glitchTitle {

    0%,
    100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }

    10% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }

    20% {
        transform: translate(-4px, -2px);
        filter: hue-rotate(180deg);
    }

    30% {
        transform: translate(4px, 2px);
        filter: hue-rotate(270deg);
    }

    40% {
        transform: translate(2px, -4px);
        filter: hue-rotate(360deg);
    }

    50% {
        transform: translate(-2px, 4px);
        filter: hue-rotate(180deg);
    }

    60% {
        transform: translate(4px, -2px);
        filter: hue-rotate(90deg);
    }
}

@keyframes glitchClip {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }

    5% {
        clip: rect(12px, 9999px, 59px, 0);
    }

    10% {
        clip: rect(48px, 9999px, 29px, 0);
    }

    15% {
        clip: rect(42px, 9999px, 73px, 0);
    }

    20% {
        clip: rect(63px, 9999px, 27px, 0);
    }

    25% {
        clip: rect(34px, 9999px, 55px, 0);
    }

    30% {
        clip: rect(86px, 9999px, 73px, 0);
    }

    35% {
        clip: rect(20px, 9999px, 20px, 0);
    }

    40% {
        clip: rect(26px, 9999px, 60px, 0);
    }

    45% {
        clip: rect(25px, 9999px, 66px, 0);
    }

    50% {
        clip: rect(57px, 9999px, 98px, 0);
    }

    55% {
        clip: rect(5px, 9999px, 46px, 0);
    }

    60% {
        clip: rect(82px, 9999px, 31px, 0);
    }

    65% {
        clip: rect(54px, 9999px, 27px, 0);
    }

    70% {
        clip: rect(28px, 9999px, 99px, 0);
    }

    75% {
        clip: rect(45px, 9999px, 69px, 0);
    }

    80% {
        clip: rect(23px, 9999px, 85px, 0);
    }

    85% {
        clip: rect(54px, 9999px, 84px, 0);
    }

    90% {
        clip: rect(45px, 9999px, 56px, 0);
    }

    95% {
        clip: rect(37px, 9999px, 25px, 0);
    }

    100% {
        clip: rect(4px, 9999px, 91px, 0);
    }
}

.hero-content p {
    font-size: 1.8rem;
    color: var(--primary-cyan);
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    animation: textFloat 3s ease-in-out infinite;
}

@keyframes textFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.quick-nav {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* 按鈕樣式 */
.btn {
    padding: 18px 35px;
    background: transparent;
    border: 3px solid var(--primary-yellow);
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-radius: 0; /* 改為直角 */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(45deg, var(--primary-yellow), var(--primary-pink));
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 0; /* 改為直角 */
}

.btn:hover {
    color: var(--bg-black);
    border-color: var(--primary-pink);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 0, 0.4);
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

.btn-glow {
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 0 5px var(--primary-yellow);
    }

    50% {
        box-shadow: 0 0 25px var(--primary-yellow), 0 0 50px var(--primary-yellow);
    }
}

/* 標題樣式 */
.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-yellow);
    text-shadow:
        3px 3px 0 var(--primary-pink),
        -3px -3px 0 var(--primary-cyan);
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-cyan), var(--primary-yellow));
    border-radius: 0; /* 改為直角 */
    animation: lineGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 3px 3px 0 var(--primary-pink), -3px -3px 0 var(--primary-cyan);
    }

    50% {
        text-shadow: 3px 3px 0 var(--primary-cyan), -3px -3px 0 var(--primary-pink), 0 0 20px var(--primary-yellow);
    }
}

@keyframes lineGlow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--primary-pink);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-cyan);
    }
}

/* 展覽資訊區 */
.info-section {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(128, 0, 255, 0.15));
    position: relative;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(128, 0, 255, 0.3) 0%, transparent 50%);
    animation: sectionFlow 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sectionFlow {

    0%,
    100% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(20px) scale(1.05);
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.info-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-cyan), var(--accent-purple)) 1;
    padding: 35px;
    border-radius: 0; /* 改為直角 */
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.info-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
    border-image: linear-gradient(45deg, var(--primary-yellow), var(--primary-pink)) 1;
}

.info-card:hover::before {
    left: 100%;
}

.info-card h3 {
    color: var(--primary-cyan);
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 作品展示區 */
.works-section {
    background: linear-gradient(45deg, rgba(255, 255, 0, 0.15), rgba(255, 0, 128, 0.15));
    position: relative;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.work-card {
    background: rgba(0, 0, 0, 0.85);
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-pink), var(--primary-yellow)) 1;
    border-radius: 0; /* 改為直角 */
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    position: relative;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 128, 0.1), rgba(255, 255, 0, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.work-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(255, 0, 128, 0.4);
    border-image: linear-gradient(45deg, var(--primary-cyan), var(--accent-green)) 1;
}

.work-card:hover::before {
    opacity: 1;
}

.work-image {
    height: 280px;
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--bg-black);
    font-weight: 900;
    position: relative;
    overflow: hidden;
}

/* 圖片樣式 */
.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: all 0.4s ease;
}

.work-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--bg-black);
    font-weight: 900;
    z-index: 1;
}

.work-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 3;
}

.work-card:hover .work-image::before {
    transform: translateX(100%);
}

.work-card:hover .work-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.work-content {
    padding: 30px;
}

.work-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.work-title-en {
    font-size: 1.1rem;
    color: var(--primary-cyan);
    font-style: italic;
    margin-bottom: 18px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.work-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.work-description-en {
    font-size: 0.95rem;
    color: #bbb;
    font-style: italic;
    line-height: 1.7;
}

/* 策展理念區 */
.curatorial-section {
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.15), rgba(255, 0, 128, 0.15));
}

.curatorial-content {
    background: rgba(255, 255, 255, 0.08);
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, var(--accent-purple), var(--primary-pink)) 1;
    padding: 50px;
    border-radius: 0; /* 改為直角 */
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.curatorial-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(128, 0, 255, 0.1), transparent);
    animation: rotateGradient 8s linear infinite;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 互動區 */
.interactive-section {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.15), rgba(255, 255, 0, 0.15));
}

.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.interactive-card {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid var(--primary-cyan);
    padding: 30px;
    border-radius: 0; /* 改為直角 */
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, var(--primary-cyan), transparent);
    transition: height 0.4s ease;
    opacity: 0.2;
}

.interactive-card:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.3);
    transform: translateY(-8px);
}

.interactive-card:hover::before {
    height: 100%;
}

/* 關於我們區 */
.about-section {
    background: linear-gradient(135deg, rgba(255, 255, 0, 0.15), rgba(128, 0, 255, 0.15));
}

/* 聯絡資訊區 */
.contact-section {
    background: linear-gradient(45deg, rgba(255, 0, 128, 0.15), rgba(0, 255, 255, 0.15));
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-pink), var(--primary-cyan)) 1;
    padding: 30px;
    border-radius: 0; /* 改為直角 */
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 0, 128, 0.3);
    border-image: linear-gradient(45deg, var(--primary-yellow), var(--accent-green)) 1;
}

.contact-card h3 {
    color: var(--primary-pink);
    font-size: 1.4rem;
    margin-bottom: 18px;
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

/* 地圖容器 */
.map-container {
    width: 100%;
    height: 350px;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-cyan), var(--primary-yellow)) 1;
    border-radius: 0; /* 改為直角 */
    overflow: hidden;
    margin-top: 30px;
    transition: all 0.4s ease;
}

.map-container:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

/* 回到頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-cyan));
    color: var(--text-white);
    border: none;
    border-radius: 0; /* 改為直角 */
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(255, 0, 128, 0.3);
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: linear-gradient(45deg, var(--primary-yellow), var(--accent-green));
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 255, 0, 0.4);
}

/* 漢堡選單 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-yellow);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 0; /* 改為直角 */
}

/* 彈窗樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-black);
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-pink), var(--primary-cyan), var(--primary-yellow)) 1;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 0; /* 改為直角 */
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-cyan));
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--bg-black);
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
}

.close {
    color: var(--bg-black);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0; /* 改為直角 */
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 40px;
    max-height: 70vh;
    overflow-y: auto;
}

/* 表單樣式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-cyan);
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--primary-cyan);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 0; /* 改為直角 */
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.rating-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-group input[type="radio"] {
    display: none;
}

.rating-group label {
    padding: 12px 20px;
    border: 2px solid var(--primary-cyan);
    background: transparent;
    color: var(--primary-cyan);
    border-radius: 0; /* 改為直角 */
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
    font-weight: 600;
    text-align: center;
}

.rating-group input[type="radio"]:checked + label {
    background: var(--primary-cyan);
    color: var(--bg-black);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.rating-group label:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

/* 留言板樣式 */
.guestbook-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 0; /* 改為直角 */
    margin-bottom: 40px;
    border: 2px solid var(--primary-pink);
}

.guestbook-form h3 {
    color: var(--primary-pink);
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.guestbook-messages h3 {
    color: var(--primary-cyan);
    margin-bottom: 25px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary-cyan);
    padding-bottom: 10px;
}

.messages-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.message-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--primary-cyan);
    border-radius: 0; /* 改為直角 */
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.message-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-yellow);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.message-author {
    font-weight: 700;
    color: var(--primary-yellow);
    font-size: 1.1rem;
}

.message-date {
    color: #aaa;
    font-size: 0.9rem;
}

.message-content {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.message-reply {
    background: rgba(0, 255, 255, 0.1);
    border-left: 3px solid var(--primary-cyan);
    padding: 15px;
    margin-top: 15px;
    border-radius: 0; /* 改為直角 */
}

.reply-author {
    font-weight: 600;
    color: var(--primary-cyan);
    margin-bottom: 8px;
}

/* 管理者後台樣式 */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    z-index: 3000;
    overflow-y: auto;
}

.admin-header {
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-cyan));
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--bg-black);
}

.admin-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
}

.admin-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid var(--primary-cyan);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active,
.tab-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-bottom-color: var(--primary-cyan);
}

.admin-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-message-item,
.admin-survey-item {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--primary-cyan);
    border-radius: 0; /* 改為直角 */
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.admin-message-item:hover,
.admin-survey-item:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-item-info {
    flex: 1;
}

.admin-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-item-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.reply-form {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 0; /* 改為直角 */
    border: 1px solid var(--primary-cyan);
}

.reply-form textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 15px;
}

/* 滾動效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease;
        backdrop-filter: blur(15px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-menu a {
        font-size: 1.3rem;
        padding: 15px 25px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .interactive-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .rating-group {
        flex-direction: column;
    }
    
    .rating-group label {
        text-align: center;
    }
    
    .admin-item-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-item-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .work-image {
        height: 220px;
        font-size: 3rem;
    }
}

/* 自定義滾動條 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0; /* 改為直角 */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-cyan));
    border-radius: 0; /* 改為直角 */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--primary-yellow), var(--accent-green));
}

/* 載入動畫 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 成功/錯誤訊息 */
.message-success {
    background: rgba(0, 255, 128, 0.2);
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    padding: 15px 20px;
    border-radius: 0; /* 改為直角 */
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
}

.message-error {
    background: rgba(255, 0, 80, 0.2);
    border: 2px solid var(--primary-pink);
    color: var(--primary-pink);
    padding: 15px 20px;
    border-radius: 0; /* 改為直角 */
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
}

/* 印刷樣式 */
@media print {
    .navbar,
    .back-to-top,
    .modal,
    .admin-panel {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* 直書中文引號樣式 */
.quote-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 0.2em;
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 1;
    vertical-align: middle;
}

.quote-space {
    display: inline-block;
    width: 0.6em;
    height: 1.2em;
    vertical-align: middle;
}

/* 大標題的引號樣式 */
.quote-large {
    margin: 0 0.1em;
    transform: scale(1.2);
}

.quote-large .quote-space {
    width: 0.8em;
    height: 1.5em;
}

/* Logo 中的引號效果 */
.logo .quote-wrapper {
    color: var(--primary-cyan);
    text-shadow: 
        1px 1px 0 var(--primary-pink),
        -1px -1px 0 var(--primary-yellow),
        0 0 10px rgba(0, 255, 255, 0.6);
    animation: logoQuotePulse 3s ease-in-out infinite;
    font-size: 0.95em;
}

@keyframes logoQuotePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.05);
        filter: brightness(1.2);
    }
    50% {
        opacity: 1;
        transform: scale(0.98);
        filter: brightness(0.9);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

/* Hero 標題中的引號效果 */
.hero-content h1 .quote-wrapper {
    color: var(--primary-pink);
    text-shadow: 
        2px 2px 0 var(--primary-cyan),
        -2px -2px 0 var(--primary-yellow),
        0 0 20px rgba(255, 0, 128, 0.8);
    animation: heroQuoteGlitch 4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 0, 128, 0.6));
}

@keyframes heroQuoteGlitch {
    0%, 100% {
        color: var(--primary-pink);
        text-shadow: 
            2px 2px 0 var(--primary-cyan),
            -2px -2px 0 var(--primary-yellow),
            0 0 20px rgba(255, 0, 128, 0.8);
        transform: translate(0, 0) scale(1.2);
    }
    10% {
        color: var(--primary-cyan);
        text-shadow: 
            2px 2px 0 var(--primary-yellow),
            -2px -2px 0 var(--primary-pink),
            0 0 25px rgba(0, 255, 255, 0.9);
        transform: translate(-1px, 1px) scale(1.18);
    }
    20% {
        color: var(--primary-yellow);
        text-shadow: 
            2px 2px 0 var(--primary-pink),
            -2px -2px 0 var(--primary-cyan),
            0 0 30px rgba(255, 255, 0, 1);
        transform: translate(1px, -1px) scale(1.22);
    }
    30% {
        color: var(--primary-pink);
        text-shadow: 
            2px 2px 0 var(--primary-cyan),
            -2px -2px 0 var(--primary-yellow),
            0 0 20px rgba(255, 0, 128, 0.8);
        transform: translate(-1px, -1px) scale(1.2);
    }
    50% {
        color: var(--primary-cyan);
        text-shadow: 
            3px 3px 0 var(--primary-yellow),
            -3px -3px 0 var(--primary-pink),
            0 0 35px rgba(0, 255, 255, 1);
        transform: translate(0, 1px) scale(1.25);
    }
    70% {
        color: var(--primary-yellow);
        text-shadow: 
            2px 2px 0 var(--primary-pink),
            -2px -2px 0 var(--primary-cyan),
            0 0 25px rgba(255, 255, 0, 0.9);
        transform: translate(1px, 0) scale(1.19);
    }
}

/* 懸停效果 */
.logo:hover .quote-wrapper {
    animation-duration: 1s;
    transform: scale(1.1);
    filter: brightness(1.3) saturate(1.2);
}

/* 引號的特殊故障效果 */
.hero-content h1 .quote-wrapper::before {
    content: '﹁　﹂';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--primary-cyan);
    opacity: 0;
    z-index: -1;
    animation: quoteGlitchShadow 4s infinite;
}

@keyframes quoteGlitchShadow {
    0%, 90%, 100% {
        opacity: 0;
        transform: translate(0, 0);
    }
    5% {
        opacity: 0.8;
        transform: translate(-2px, 2px);
    }
    10% {
        opacity: 0.6;
        transform: translate(2px, -2px);
    }
    15% {
        opacity: 0.9;
        transform: translate(-2px, -2px);
    }
    20% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

/* 響應式調整 */
@media (max-width: 768px) {
    .quote-wrapper {
        margin: 0 0.15em;
        font-size: 0.9em;
    }
    
    .quote-large {
        transform: scale(1.1);
    }
    
    .quote-space {
        width: 0.5em;
        height: 1em;
    }
    
    .quote-large .quote-space {
        width: 0.7em;
        height: 1.3em;
    }
}

@media (max-width: 480px) {
    .quote-wrapper {
        margin: 0 0.1em;
        font-size: 0.85em;
    }
    
    .quote-large {
        transform: scale(1.05);
    }
    
    .quote-space {
        width: 0.4em;
        height: 0.9em;
    }
    
    .quote-large .quote-space {
        width: 0.6em;
        height: 1.2em;
    }
}

/* 確保引號與文字對齊 */
.logo,
.hero-content h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.logo {
    justify-content: flex-start;
}

/* 增強引號的可見性 */
.quote-wrapper {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
    position: relative;
    z-index: 2;
}

/* Footer Copyright */
.footer-copyright {
    background: var(--bg-black);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-pink), var(--primary-cyan), var(--primary-yellow)) 1;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.footer-copyright .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease;
        backdrop-filter: blur(15px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-menu a {
        font-size: 1.3rem;
        padding: 15px 25px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .interactive-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .rating-group {
        flex-direction: column;
    }
    
    .rating-group label {
        text-align: center;
    }
    
    .admin-item-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-item-actions {
        justify-content: flex-start;
    }
    
    /* 行動裝置下回到頂部按鈕變小 */
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
    
    /* Footer 響應式 */
    .footer-copyright {
        padding: 25px 15px;
    }
    
    .footer-copyright p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .work-image {
        height: 220px;
        font-size: 3rem;
    }
    
    /* 小螢幕下回到頂部按鈕更小 */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 15px;
        right: 15px;
    }
    
    /* Footer 小螢幕響應式 */
    .footer-copyright {
        padding: 20px 10px;
    }
    
    .footer-copyright p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* 作品編號樣式 */
.work-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, var(--primary-yellow), var(--primary-pink));
    color: var(--bg-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    z-index: 10;
    border-radius: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.work-card:hover .work-number {
    transform: scale(1.1);
    background: linear-gradient(45deg, var(--primary-cyan), var(--accent-green));
}

/* 創作者姓名樣式 */
.work-artist {
    font-size: 0.95rem;
    color: var(--primary-pink);
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(255, 0, 128, 0.4);
    border-bottom: 1px solid rgba(255, 0, 128, 0.3);
    padding-bottom: 8px;
}

/* 單選按鈕組樣式 */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    padding: 12px 24px;
    border: 2px solid var(--primary-cyan);
    background: transparent;
    color: var(--primary-cyan);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.radio-group input[type="radio"]:checked + label {
    background: var(--primary-cyan);
    color: var(--bg-black);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.radio-group label:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .work-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: 10px;
        left: 10px;
    }
    
    .work-artist {
        font-size: 0.9rem;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .radio-group label {
        text-align: center;
        min-width: auto;
    }
}