body {
    background: #000;
    overflow: hidden;
    color: white; /* 添加全局字体颜色 */
}

.gold-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FFD700;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    max-width: 500px;
    margin: 5rem auto;
    text-align: center; /* 容器内文本居中 */
}

.input-group {
    margin: 1rem 0;
    display: flex; /* 使标签和输入框在同一行 */
    align-items: center; /* 垂直居中 */
    justify-content: flex-start; /* 居左对齐 */
}

.input-group label {
    margin-right: 1rem; /* 标签和输入框之间的间距 */
    min-width: 100px; /* 固定标签宽度 */
}

input {
    padding: 0.5rem;
    border: 2px solid #D4AF37;
    border-radius: 5px;
    width: 80%;
}

button {
    background: #D4AF37;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    margin: 0 auto; /* 按钮居中 */
}

button:hover {
    background: #B8860B;
}

.display {
    font-size: 3rem;
    margin: 2rem 0;
    color: #FFF;
    text-shadow: 0 0 10px #FFD700;
}

@keyframes coinFall {
    0% { transform: translateY(-100px) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

@keyframes coinFlow {
    0% { transform: translate(-100px, -100px) rotate(0deg); }
    100% { transform: translate(100vw, 100vh) rotate(360deg); }
}

@keyframes sparkle {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

.coin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('coin.png') no-repeat center center/contain;
    animation: coinFlow linear infinite;
    filter: drop-shadow(0 0 5px #FFD700);
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #FFF, #FFD700);
    border-radius: 50%;
    animation: sparkle 0.5s infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#coinContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}