* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc2626;
    --secondary-color: #991b1b;
    --accent-color: #fbbf24;
    --text-light: #ffffff;
    --text-muted: #9ca3af;
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
    --card-bg: rgba(30, 41, 59, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(251, 191, 36, 0.6);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-color);
    letter-spacing: 0.1em;
}

.datetime, .weather {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.music-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.music-icon {
    font-size: 1.3rem;
    display: inline-block;
}

.music-btn.playing .music-icon {
    animation: musicBounce 0.5s ease-in-out infinite;
}

@keyframes musicBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.admin-icon {
    font-size: 1.2rem;
}

.main {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.decoration {
    position: absolute;
    z-index: 5;
}

.decoration-left {
    top: 80px;
    left: 50px;
}

.decoration-right {
    top: 80px;
    right: 50px;
}

.decoration-element {
    width: 120px;
    height: 120px;
    position: relative;
    animation: floatDecoration 4s ease-in-out infinite;
}

.decoration-right .decoration-element {
    animation-delay: -2s;
}

.decoration-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.2), inset 0 0 40px rgba(251, 191, 36, 0.1);
}

.decoration-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes floatDecoration {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}
}

.countdown-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.countdown-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
    line-height: 1.2;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.8));
    }
}

.countdown-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.festival-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.tag {
    padding: 0.5rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.timer-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    min-width: 140px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.timer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.timer-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.timer-value {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.timer-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.content-section {
    margin-top: 4rem;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.card-image {
    width: 160px;
    min-width: 160px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.card-placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

.card-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.footer {
    position: relative;
    z-index: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-text,
.footer-info,
.footer-license,
.footer-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-text {
    color: var(--accent-color);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .lantern {
        display: none;
    }
}

@media (max-width: 1024px) {
    .decoration {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .countdown-title {
        font-size: 2rem;
    }

    .countdown-subtitle {
        font-size: 1rem;
    }

    .timer-value {
        font-size: 3rem;
    }

    .timer-item {
        padding: 1rem 1.5rem;
        min-width: 100px;
    }

    .countdown-timer {
        gap: 1rem;
    }

    .content-card {
        flex-direction: column;
    }

    .card-image {
        width: 100%;
        min-width: 100%;
        height: 150px;
    }

    .card-content {
        padding: 1rem;
    }

    .main {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .timer-item {
        min-width: 80px;
        padding: 0.75rem 1rem;
    }

    .timer-value {
        font-size: 2.5rem;
    }

    .timer-label {
        font-size: 0.9rem;
    }
}
