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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #ff6b6b 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* 灯笼样式 */
.lantern {
    position: fixed;
    top: -20px;
    z-index: 10;
    animation: swing 3s ease-in-out infinite;
}

.lantern-left {
    left: 5%;
    animation-delay: 0s;
}

.lantern-right {
    right: 5%;
    animation-delay: 1.5s;
}

.lantern-rope {
    width: 4px;
    height: 40px;
    background: linear-gradient(to bottom, #8B4513, #D2691E);
    margin: 0 auto;
}

.lantern-body {
    width: 80px;
    height: 100px;
    background: linear-gradient(145deg, #ff0000, #cc0000);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 215, 0, 0.3);
    border: 3px solid #ffd700;
}

.lantern-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.lantern-tassel {
    width: 20px;
    height: 40px;
    background: linear-gradient(to bottom, #ffd700, #ff8c00);
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* 鞭炮样式 */
.firecrackers {
    position: fixed;
    top: 30%;
    z-index: 5;
}

.firecrackers-left {
    left: 2%;
}

.firecrackers-right {
    right: 2%;
}

.firecracker {
    width: 20px;
    height: 60px;
    background: linear-gradient(145deg, #ff4444, #cc0000);
    border-radius: 5px;
    margin: 5px 0;
    position: relative;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.firecracker::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: #ffd700;
}

.firecracker::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: linear-gradient(to bottom, #ffd700, #ff8c00);
    border-radius: 0 0 3px 3px;
}

/* 红纸屑效果 */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ff0000;
    top: -20px;
    z-index: 2;
    animation: fall linear infinite;
    opacity: 0.8;
}

.confetti:nth-child(1) {
    left: 10%;
    animation-duration: 5s;
    animation-delay: 0s;
    background: #ff0000;
    border-radius: 50%;
}

.confetti:nth-child(2) {
    left: 20%;
    animation-duration: 6s;
    animation-delay: 1s;
    background: #ffd700;
    width: 8px;
    height: 12px;
    border-radius: 0;
}

.confetti:nth-child(3) {
    left: 35%;
    animation-duration: 4s;
    animation-delay: 2s;
    background: #ff6b6b;
    border-radius: 50%;
}

.confetti:nth-child(4) {
    left: 50%;
    animation-duration: 7s;
    animation-delay: 0.5s;
    background: #ff8c00;
    width: 6px;
    height: 14px;
    border-radius: 0;
}

.confetti:nth-child(5) {
    left: 65%;
    animation-duration: 5.5s;
    animation-delay: 1.5s;
    background: #d32f2f;
    border-radius: 50%;
}

.confetti:nth-child(6) {
    left: 80%;
    animation-duration: 4.5s;
    animation-delay: 3s;
    background: #ffd700;
    width: 9px;
    height: 9px;
    border-radius: 0;
}

.confetti:nth-child(7) {
    left: 90%;
    animation-duration: 6.5s;
    animation-delay: 2.5s;
    background: #ff0000;
    border-radius: 50%;
}

.confetti:nth-child(8) {
    left: 15%;
    animation-duration: 5s;
    animation-delay: 4s;
    background: #ff6b6b;
    width: 7px;
    height: 11px;
    border-radius: 0;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0.5;
    }
}

.container {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 10px rgba(255, 215, 0, 0.2),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    max-width: 850px;
    width: 90%;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 3;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff6b6b, #ffd700, #ff6b6b, #ff8c00, #ff6b6b);
    background-size: 400% 400%;
    border-radius: 33px;
    z-index: -1;
    animation: borderGlow 8s ease infinite;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

.header h1 {
    font-size: 2.5em;
    color: #d32f2f;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #ff6b6b, 0 0 20px #ff6b6b;
    }
    to {
        text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700;
    }
}

.subtitle {
    font-size: 1.2em;
    color: #f57c00;
    margin-bottom: 10px;
    font-weight: 500;
}

.date {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

.decoration-line {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1.5em;
    animation: bounce 1s ease-in-out infinite;
}

.decoration-line span {
    display: inline-block;
    animation: bounce 1s ease-in-out infinite;
}

.decoration-line span:nth-child(1) { animation-delay: 0s; }
.decoration-line span:nth-child(2) { animation-delay: 0.1s; }
.decoration-line span:nth-child(3) { animation-delay: 0.2s; }
.decoration-line span:nth-child(4) { animation-delay: 0.3s; }
.decoration-line span:nth-child(5) { animation-delay: 0.4s; }

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

.countdown-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: nowrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    flex-shrink: 0;
}

.countdown-value {
    font-size: 3.5em;
    font-weight: bold;
    color: #d32f2f;
    background: linear-gradient(145deg, #fff5f5, #ffe0e0);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 
        5px 5px 15px rgba(0, 0, 0, 0.1),
        -5px -5px 15px rgba(255, 255, 255, 0.8),
        inset 0 0 20px rgba(255, 0, 0, 0.05);
    min-width: 140px;
    font-family: 'Courier New', monospace;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.countdown-value:hover {
    transform: scale(1.05);
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            5px 5px 15px rgba(0, 0, 0, 0.1),
            -5px -5px 15px rgba(255, 255, 255, 0.8),
            inset 0 0 20px rgba(255, 0, 0, 0.05);
    }
    50% {
        box-shadow: 
            5px 5px 25px rgba(211, 47, 47, 0.3),
            -5px -5px 25px rgba(255, 215, 0, 0.3),
            inset 0 0 30px rgba(255, 0, 0, 0.1);
    }
}

.countdown-label {
    font-size: 1.2em;
    color: #666;
    margin-top: 10px;
    font-weight: 500;
}

.countdown-separator {
    font-size: 3.5em;
    font-weight: bold;
    color: #d32f2f;
    margin: 0 10px;
}

.info-box {
    background: linear-gradient(145deg, #fff9c4, #ffeb3b);
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    font-size: 1.3em;
    color: #5d4037;
    box-shadow: 
        inset 0 2px 10px rgba(255, 235, 59, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #ffd700, #ff6b6b);
    animation: slide 2s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.highlight {
    font-size: 1.5em;
    font-weight: bold;
    color: #d32f2f;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.message {
    font-size: 1.5em;
    color: #d32f2f;
    margin: 20px 0;
    font-weight: bold;
    min-height: 40px;
    transition: all 0.5s ease;
}

.message.arrived {
    animation: celebrate 1s ease-in-out infinite;
    color: #ff6b6b;
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.footer {
    margin-top: 30px;
    font-size: 1.1em;
    color: #d32f2f;
    font-weight: 500;
}

.wishes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.wishes span {
    background: linear-gradient(145deg, #fff5f5, #ffe0e0);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #d32f2f;
    box-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 0 10px rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(211, 47, 47, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wishes span:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        4px 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 0 15px rgba(255, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .date {
        font-size: 0.9em;
    }

    .countdown-box {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .countdown-value {
        font-size: 2.5em;
        padding: 15px 20px;
        min-width: 100px;
    }

    .countdown-label {
        font-size: 1em;
    }

    .countdown-separator {
        font-size: 2.5em;
        margin: 0 5px;
    }

    .info-box {
        font-size: 1.1em;
        padding: 15px;
    }

    .highlight {
        font-size: 1.3em;
    }

    .message {
        font-size: 1.2em;
    }

    .footer {
        font-size: 0.9em;
    }

    .wishes {
        gap: 8px;
    }

    .wishes span {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}

@media (max-width: 400px) {
    .countdown-box {
        gap: 5px;
    }

    .countdown-separator {
        margin: 0 3px;
    }

    .countdown-value {
        font-size: 2em;
        padding: 12px 15px;
        min-width: 80px;
    }
}