body {
    margin: 0;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

.container {
    text-align: center;
    padding-top: 20px;
    position: relative;
}

.camera {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 400px;
    position: relative;
}

.camera-img {
    max-width: 400px;
    height: auto;
    cursor: pointer;
}

.camera-img:hover {
    transform: none;
}

.polaroid {
    position: fixed;
    top: 318px;
    left: calc(50% + 2px);
    transform: translateX(-50%);
    z-index: 2;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.25) 2px,
        rgba(0, 0, 0, 0.15) 4px,
        rgba(255, 255, 255, 1) 5px
    ), white;
    padding: 15px 15px 45px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    box-sizing: border-box;
    animation: none;
    transform-origin: top center;
    overflow: hidden;
}

@keyframes slideOut {
    0% {
        height: 0;
        opacity: 0;
        transform: translateX(-50%);
    }
    30% {
        height: 100px;
        opacity: 1;
        transform: translateX(-50%);
    }
    100% {
        height: 335px;
        opacity: 1;
        transform: translateX(-50%);
    }
}

.photo {
    width: 270px;
    height: 270px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: developPhoto 4.5s ease-out 4s forwards;
    filter: brightness(2) contrast(0.3) saturate(0);
    cursor: pointer;
    transition: transform 0.3s ease;
}

@keyframes developPhoto {
    0% {
        opacity: 0;
        filter: brightness(2) contrast(0.3) saturate(0) blur(10px);
    }
    20% {
        opacity: 0.2;
        filter: brightness(1.8) contrast(0.4) saturate(0.2) blur(8px);
    }
    40% {
        opacity: 0.4;
        filter: brightness(1.6) contrast(0.5) saturate(0.4) blur(6px);
    }
    60% {
        opacity: 0.6;
        filter: brightness(1.4) contrast(0.6) saturate(0.6) blur(4px);
    }
    80% {
        opacity: 0.8;
        filter: brightness(1.2) contrast(0.8) saturate(0.8) blur(2px);
    }
    100% {
        opacity: 1;
        filter: brightness(1) contrast(1) saturate(1) blur(0);
    }
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.shutter-button {
    position: absolute;
    top: 116px;
    right: 291px;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.camera:hover .shutter-button {
    animation: pulseStrong 1s infinite;
}

@keyframes pulseStrong {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 0, 0, 0);
        transform: scale(1.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
        transform: scale(1);
    }
}

.shutter-button:hover {
    animation: none;
}

/* 添加相机抖动动画 */
@keyframes cameraShake {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) rotate(-0.5deg) translateY(-1px);
    }
    75% {
        transform: translateX(-50%) rotate(0.5deg) translateY(1px);
    }
}

/* 添加抖动动画类 */
.camera.shake {
    animation: cameraShake 0.15s ease-in-out;
}

/* 添加大图查看样式 */
.photo {
    width: 270px;
    height: 270px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: developPhoto 4.5s ease-out 4s forwards;
    filter: brightness(2) contrast(0.3) saturate(0);
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* 添加全屏遮罩 */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 15px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 加载动画容器 */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    display: none;
}

/* 宝丽来风格的加载动画 */
.loading-spinner::after {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 6px solid white;
    border-color: white transparent white transparent;
    animation: spinner 1.2s linear infinite;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 历史照片导航按钮 */
.nav-button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 80px;
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.3s;
    display: none;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-prev {
    left: 20px;
}

.nav-next {
    right: 20px;
}

.quote {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 14px;
    color: #333;
    margin-top: 8px;
    padding: 0 10px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 8.5s forwards;  /* 显影完成后显示文字 */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
} 