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

@font-face {
  font-family: 'DongFangDaKai';
  src: url('fonts/AlimamaDongFangDaKai-Regular.woff2') format('woff2');
  font-display: swap;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    background: radial-gradient(circle at 50% 25%, rgba(255,223,127,0.12) 0%, rgba(255,223,127,0.06) 6%, #0b1220 35%, #071224 100%);
    color: #111827;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* 添加容器以包含poster-label和controls */
.poster-controls-wrapper {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}
/* 容器样式，包含poster-label和controls */
.poster-controls-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 100;
    width: 100%;
    max-width: 400px;
}

/* floating label shown near canvas (non-on-poster label) */
#poster-label {
    background: rgba(255,255,255,0.9);
    color: #0b1220;
    padding: 8px 14px;
    border-radius: 18px;
    border: 1px solid rgba(11,18,32,0.06);
    font-size: 18px;
    pointer-events: auto;
    cursor: pointer;
    margin-bottom: 10px;
}

/* controls样式调整 */
.controls {
    display: flex;
    gap: 15px;
}

/* 在小屏幕上调整布局 */
@media (max-width: 768px) {
    .poster-controls-container {
        gap: 10px;
    }
    #poster-label {
        font-size: 16px;
    }
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.btn {
    padding: 10px 20px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(11,18,32,0.06);
    color: #0b1220;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all .18s ease;
}

.btn:hover {
    background: rgba(255,245,225,0.98);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,200,100,0.12);
}

.info {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #fff3e0;
    text-shadow: 0 0 8px rgba(0,0,0,.45);
}

.info h2 {
    font-size: 50px;
    margin: 0;
}

.info p {
    margin: 0;
    font-size: 14px;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 24px;
    text-shadow: 0 0 15px rgba(0,150,255,.8);
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* 美观的提示框样式 */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: rgba(255,255,255,0.95);
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 9999;
    text-align: center;
    backdrop-filter: blur(8px);
    animation: slideIn 0.3s ease-out;
}

.notification.hidden {
    display: none;
}

.notification-title {
    font-size: 24px;
    color: #0b1220;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.notification-message {
    font-size: 16px;
    color: #556;
    margin: 0;
    line-height: 1.6;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
}

/* 海报动画：使用CSS transform实现更平滑的动画效果 */
@keyframes posterPulse {
    0% {
        transform: scale(1) rotateY(0deg);
    }
    50% {
        transform: scale(1.01) rotateY(1deg);
    }
    100% {
        transform: scale(1) rotateY(0deg);
    }
}

.poster-animation {
    animation: posterPulse 6s ease-in-out infinite;
}

/* 优化后的粒子背景动画 */
@keyframes particleRotate {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.particle-rotate {
    animation: particleRotate 20s linear infinite;
}
