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

:root {
    --bg-color: #fcf8f2;
    --text-primary: #3d312a;
    --text-secondary: #5e4c41;
    --c-teal: #36b5ad;
    --c-yellow: #f2c94c;
    --c-pink: #f26d7d;
    --c-red: #d33c44;
    --c-border: #e6dac3;
}

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
}

/* 頂部裝飾：掛旗 */
.bunting-container {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.bunting-string {
    position: absolute;
    top: 20px;
    left: -5%;
    width: 110%;
    height: 100px;
    border-top: 2px solid #555;
    border-radius: 50%;
    z-index: 1;
}
.flag {
    position: absolute;
    top: 19px;
    width: 60px;
    height: 70px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 2;
    transform-origin: top center;
    animation: swing 4s ease-in-out infinite alternate;
}
@keyframes swing {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

/* 燈籠裝飾 */
.lantern {
    position: absolute;
    font-size: 5rem;
    z-index: 0;
    opacity: 0.8;
    filter: drop-shadow(0 10px 15px rgba(211, 60, 68, 0.3));
    animation: float 6s ease-in-out infinite alternate;
    pointer-events: none;
}
.lantern.left { top: 15%; left: -20px; animation-delay: -2s; }
.lantern.right { top: 40%; right: -20px; }
@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

header {
    text-align: center;
    padding: 3rem 1rem 1rem;
    position: relative;
    z-index: 10;
}

.title-box {
    display: inline-block;
    border: 2px solid var(--text-primary);
    padding: 0.5rem 1.5rem;
    background: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    font-family: 'Noto Serif TC', serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

h1 {
    font-family: 'Noto Serif TC', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--c-red);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding: 0 1rem;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
}

/* 列表資訊 */
.info-list {
    list-style: none;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.info-tag {
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.info-tag.teal { background: var(--c-teal); }
.info-tag.yellow { background: var(--c-yellow); color: var(--text-primary); }
.info-tag.pink { background: var(--c-pink); }

.info-content {
    flex: 1;
    font-size: 1.1rem;
    padding-top: 0.2rem;
}

.highlight {
    font-weight: 700;
    color: var(--c-red);
}

/* 表單 */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--c-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--c-teal);
    box-shadow: 0 0 0 4px rgba(54, 181, 173, 0.1);
}

.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: var(--c-red);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(211, 60, 68, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 60, 68, 0.4);
    background: #bd3138;
}

.form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .info-item { flex-direction: column; gap: 0.5rem; }
    .glass-card { padding: 1.5rem; }
    .lantern { font-size: 3.5rem; }
    .hero-animation { width: 200px; height: 200px; }
}

/* 卡通風格宣傳動畫 */
.hero-animation {
    width: 250px;
    height: 250px;
    margin: -10px auto 10px;
    position: relative;
    z-index: 15;
}
.magic-sparkle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}
.magic-sparkle.s1 { left: 15%; top: 30%; animation: magicFly 2.5s linear infinite 0.2s; }
.magic-sparkle.s2 { left: 80%; top: 25%; animation: magicFly 3s linear infinite 0.8s; font-size: 1.2rem; color: #FFCB77; }
.magic-sparkle.s3 { left: 50%; top: 70%; animation: magicFly 2.2s linear infinite 1.5s; font-size: 2rem; color: #EF476F; }
.magic-sparkle.s4 { left: 20%; top: 60%; animation: magicFly 2.8s linear infinite 0.5s; }

@keyframes magicFly {
    0% { opacity: 0; transform: translate(0, 0) scale(0.5) rotate(0deg); }
    20% { opacity: 1; transform: translate(-15px, -25px) scale(1) rotate(45deg); }
    80% { opacity: 1; transform: translate(15px, -75px) scale(1.2) rotate(180deg); }
    100% { opacity: 0; transform: translate(25px, -100px) scale(0.5) rotate(240deg); }
}
